main {
    margin-top: 60px;
    /* Adjust based on nav height */

}

/* Keyframe Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }

    70% {
        transform: scale(0.9);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Scroll-triggered animation classes */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-in-up.animate {
    opacity: 1;
    transform: translateY(0);
}

.fade-in {
    opacity: 0;
    transition: opacity 1s ease-out;
}

.fade-in.animate {
    opacity: 1;
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.slide-in-left.animate {
    opacity: 1;
    transform: translateX(0);
}

.bounce-in {
    opacity: 0;
    transform: scale(0.3);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.bounce-in.animate {
    opacity: 1;
    transform: scale(1);
}



.hero {
    position: relative;
    width: 100%;
    max-width: 1340px;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-image: url('https://images.unsplash.com/photo-1628177142898-93e36e4e3a50?q=80&w=2370&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 50px;
    margin-bottom: 2rem;
    margin: 0 auto;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(21, 76, 121, 0.7);
    /* semi-transparent overlay using primary color */
    z-index: 1;
    border-radius: 50px;

}

.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 600px;
    padding: 2rem;
    animation: fadeInUp 1s ease-out 0.5s both;
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    margin-bottom: 1rem;
    font-weight: var(--fw-bold);
    animation: slideInLeft 1s ease-out 0.7s both;
}

.hero-content p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: 2rem;
    line-height: 1.6;
    animation: slideInRight 1s ease-out 0.9s both;
}

.btn-primary {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--color-accent);
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: var(--fw-semibold);
    transition: all 0.3s ease;
    animation: bounceIn 1s ease-out 1.1s both;
}

.btn-primary:hover {
    background-color: var(--color-highlight);
    transform: scale(1.05);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.btn-secondary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: transparent;
    color: var(--color-primary);
    text-decoration: none;
    border: 2px solid var(--color-primary);
    border-radius: 5px;
    font-weight: var(--fw-semibold);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-bg);
    transform: scale(1.05);
}

/* Services Page */

.services-preview {
    padding: 5rem 0;
    background-color: var(--color-bg);
}

.services-preview-btn {
    display: flex;
    justify-content: end;
}

.services-preview h2 {
    text-align: center;
    color: var(--color-text);
    margin-bottom: 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.service-card {
    background-color: var(--color-bg-card);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.service-card h3 {
    color: var(--color-text);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--color-text-muted);
    line-height: 1.5;
}

/* Why Choose Us */

.why-choose-us {
    padding: 5rem 0;
    background-color: var(--color-bg);
}

.why-choose-us h2 {
    text-align: center;
    color: var(--color-text);
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature {
    text-align: center;
    padding: 2rem;
    background-color: var(--color-bg-card);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2rem;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.feature h3 {
    color: var(--color-text);
    margin-bottom: 1rem;
    font-size: 18px;
}

.feature p {
    color: var(--color-text-muted);
    line-height: 1.5;
    font-size: 16px;
}

/* Testimonials */

.testimonials {
    padding: 5rem 0;
    background-color: var(--color-bg-soft);
}

.testimonials h2 {
    text-align: center;
    color: var(--color-text);
    margin-bottom: 3rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial {
    background-color: var(--color-bg);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--color-accent);
}

.testimonial p {
    color: var(--color-text);
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.testimonial cite {
    color: var(--color-text-muted);
    font-weight: var(--fw-semibold);
}

/* Contact Page */

.contact-preview {
    padding: 5rem 0;
    background-color: var(--color-primary);
    color: var(--color-bg);
    text-align: center;
}

.contact-preview h2 {
    margin-bottom: 1rem;
}

.contact-preview p {
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

/* Mobile responsive adjustments for hero and content */
@media (max-width: 900px) {
    .hero {
        height: auto;
        min-height: 80vh;
        padding: 5rem 1.25rem;
        border-radius: 30px;
        margin-bottom: 1.5rem;
    }

    .hero-content {
        max-width: 85%;
        padding: 1.5rem;
    }

    .hero-content h1 {
        font-size: clamp(1.8rem, 6vw, 3rem);
        line-height: 1.2;
    }

    .hero-content p {
        font-size: clamp(0.95rem, 2.5vw, 1.1rem);
        margin-bottom: 1.5rem;
    }

    .btn-primary {
        padding: 0.85rem 1.6rem;
        font-size: 0.95rem;
    }

    .container {
        padding: 0 1.25rem;
    }
}

@media (max-width: 560px) {

    .hero {
        min-height: 60vh;
        padding: 3.5rem 1rem;
        width: 100%;
        border-radius: 20px;
    }

    .hero-content {
        max-width: 100%;
        padding: 1.25rem;
    }

    .hero-content h1 {
        font-size: clamp(1.5rem, 8vw, 2.1rem);
    }

    .hero-content p {
        font-size: clamp(0.85rem, 3.5vw, 1rem);
    }

    .btn-primary {
        padding: 0.75rem 1.4rem;
        font-size: 0.9rem;
    }

    .services-preview,
    .why-choose-us,
    .testimonials,
    .contact-preview {
        padding: 3rem 0;
    }

    .container {
        padding: 0 1rem;
    }
}