/* CSS Variables */
:root {
    --primary-color: #5AA897; /* Soft Sage Green */
    --secondary-color: #F7CAC9; /* Soft Pink / Coral */
    --accent-color: #FEE189; /* Warm Yellow */
    --text-dark: #333333;
    --text-light: #F8F8F8;
    --bg-light: #F8FBF8; /* Off-white / very light green */
    --bg-dark: #2F4F4F; /* Dark Teal */
    --cream: #FFFCEE; /* Light Cream for backgrounds */

    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Open Sans', sans-serif;

    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 4rem;
    --section-padding: 6rem;

    --border-radius: 8px;
    --shadow-light: 0 4px 15px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.12);
    --transition-speed: 0.3s ease-in-out;
}

/* Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale; /* For better font rendering */
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

h1 { font-size: 3.5rem; font-weight: 700; }
h2 { font-size: 2.5rem; font-weight: 600; }
h3 { font-size: 1.8rem; font-weight: 600; }
h4 { font-size: 1.3rem; font-weight: 600; }

p {
    margin-bottom: var(--spacing-sm);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--bg-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section-padding {
    padding: var(--section-padding) 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.bg-dark {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.bg-dark h2, .bg-dark h3, .bg-dark p {
    color: var(--text-light);
}
.bg-dark a {
    color: var(--accent-color);
}
.bg-dark a:hover {
    color: var(--primary-color);
}


.text-center {
    text-align: center;
}

.text-light {
    color: var(--text-light) !important;
}

.mt-xl {
    margin-top: var(--spacing-xl);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    text-align: center;
    transition: all var(--transition-speed);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-light);
}

.btn-primary:hover {
    background-color: var(--bg-dark);
    border-color: var(--bg-dark);
    color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--text-dark);
    border-color: var(--secondary-color);
    box-shadow: var(--shadow-light);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.btn-primary-outline {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary-outline:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.btn-secondary-outline {
    background-color: transparent;
    color: var(--bg-dark);
    border-color: var(--bg-dark);
}

.btn-secondary-outline:hover {
    background-color: var(--bg-dark);
    color: var(--text-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.btn-link {
    background: none;
    border: none;
    color: var(--primary-color);
    padding: 0;
    font-size: 1rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

.btn-link i {
    margin-left: 0.5rem;
    transition: transform var(--transition-speed);
}

.btn-link:hover {
    color: var(--bg-dark);
}

.btn-link:hover i {
    transform: translateX(5px);
}

.section-tag {
    display: block;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Header */
.header {
    background: var(--cream);
    padding: var(--spacing-md) 0;
    position: fixed;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: background-color 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

.header.sticky {
    padding: var(--spacing-sm) 0;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-light);
    backdrop-filter: blur(5px);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--bg-dark);
    display: flex;
    align-items: center;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.nav-menu a {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1.05rem;
    position: relative;
    padding: 0.5rem 0;
}

.nav-menu a:not(.nav-btn)::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 3px;
    background-color: var(--primary-color);
    transition: width var(--transition-speed);
}

.nav-menu a:not(.nav-btn):hover::after {
    width: 100%;
}

.nav-menu .nav-btn {
    margin-left: var(--spacing-md);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1001;
    padding: 5px; /* Increase clickable area */
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    transition: all 0.3s ease;
}

.hamburger.active .bar:nth-child(2) {
    opacity: 1;
}

.hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    position: relative;
    overflow: hidden;
    background: url('images/image_14.jpg') no-repeat center center/cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(47, 79, 79, 0.8) 0%, rgba(90, 168, 151, 0.7) 100%); /* Dark teal to sage green */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.hero h1 {
    font-size: 4.5rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-sm);
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.hero h1 span {
    color: var(--accent-color);
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xl);
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
}

/* Animations for Hero Section */
.animate-fade-in-up {
    opacity: 1;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
}
.animate-fade-in-up.delay-1 { animation-delay: 0.3s; }
.animate-fade-in-up.delay-2 { animation-delay: 0.6s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.about-image img {
    border-radius: var(--border-radius);
    transition: transform 0.6s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

.image-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(255,255,255,0) 50%, rgba(90, 168, 151, 0.2) 100%);
    border-radius: var(--border-radius);
}

.about-content h2 {
    margin-bottom: var(--spacing-md);
    position: relative;
}

.about-content h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

/* Features Section */
.features h2 {
    margin-bottom: var(--spacing-xl);
    position: relative;
    display: inline-block; /* For pseudo-element centering */
}

.features h2::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -10px;
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.feature-card {
    background-color: var(--cream);
    padding: var(--spacing-xl) var(--spacing-lg);
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 5px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    opacity: 1;.1;
    transition: height 0.3s ease;
}

.feature-card:hover::before {
    height: 100%;
}


.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
}

.feature-card .icon-large {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
    transition: color 0.3s ease;
}

.feature-card:hover .icon-large {
    color: var(--bg-dark);
}

.feature-card h3 {
    margin-bottom: var(--spacing-sm);
    color: var(--bg-dark);
}

/* Programs Section */
.programs h2 {
    margin-bottom: var(--spacing-xl);
    position: relative;
    display: inline-block;
}

.programs h2::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -10px;
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.program-card {
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.program-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
}

.program-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-bottom: 3px solid var(--primary-color);
}

.program-content {
    padding: var(--spacing-lg);
}

.program-content h3 {
    margin-bottom: var(--spacing-sm);
    color: var(--bg-dark);
}

/* Gallery Section */
.gallery h2 {
    margin-bottom: var(--spacing-xl);
    position: relative;
    display: inline-block;
}

.gallery h2::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -10px;
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.gallery-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    position: relative;
    cursor: pointer;
}

.gallery-item::before {
    content: '\f00e'; /* Font Awesome search icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: var(--text-light);
    opacity: 1;
    transition: opacity 0.3s ease;
    z-index: 5;
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(90, 168, 151, 0.6); /* Primary color with transparency */
    opacity: 1;
    transition: opacity 0.3s ease;
    z-index: 4;
}

.gallery-item:hover::before,
.gallery-item:hover::after {
    opacity: 1;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Testimonials Section */
.testimonials h2 {
    margin-bottom: var(--spacing-xl);
    position: relative;
    display: inline-block;
}

.testimonials h2::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -10px;
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.testimonial-carousel {
    display: flex; /* Changed to flex for carousel logic */
    overflow: hidden; /* Hide items outside view */
    position: relative;
    max-width: 800px;
    margin: 0 auto var(--spacing-lg) auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    background-color: var(--cream);
    transition: transform 0.5s ease-in-out; /* Add transition */
}

.testimonial-item {
    flex: 0 0 100%; /* Each item takes full width */
    padding: var(--spacing-xl);
    text-align: center;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.testimonial-item p {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
    max-width: 600px;
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.testimonial-author img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    box-shadow: var(--shadow-light);
}

.testimonial-author h4 {
    margin: 0;
    color: var(--bg-dark);
}

.testimonial-author span {
    font-size: 0.9rem;
    color: #666;
}

.testimonial-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-lg);
}

.nav-button {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--primary-color);
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
    padding: var(--spacing-xs);
}

.nav-button:hover {
    color: var(--bg-dark);
    transform: scale(1.1);
}

.dots-container {
    display: flex;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    background-color: #ccc;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.dot.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--spacing-xl);
    background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white on dark background */
    padding: var(--spacing-xl);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
}

.contact-info {
    color: var(--text-light);
}

.contact-info h3 {
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
    position: relative;
}

.contact-info h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 50px;
    height: 3px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

.contact-info p {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    line-height: 1.5;
}

.contact-info p i {
    color: var(--accent-color);
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 3px;
}

.social-links {
    margin-top: var(--spacing-md);
    display: flex;
    gap: var(--spacing-md);
}

.social-links a {
    color: var(--accent-color);
    font-size: 1.5rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-5px);
}

.contact-form h3 {
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
}

.contact-form .form-group {
    margin-bottom: var(--spacing-md);
}

.contact-form label {
    display: block;
    margin-bottom: var(--spacing-xs);
    color: var(--accent-color);
    font-weight: 600;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: var(--spacing-sm);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius);
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.2);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn-primary {
    width: auto;
    padding: var(--spacing-sm) var(--spacing-xl);
}

/* Footer */
.footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: var(--section-padding) 0 var(--spacing-md) 0;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer h3 {
    color: var(--accent-color);
    margin-bottom: var(--spacing-sm);
    font-size: 1.2rem;
}

.footer ul {
    padding: 0;
}

.footer ul li {
    margin-bottom: var(--spacing-xs);
}

.footer ul a {
    color: var(--text-light);
    transition: color 0.3s ease;
}

.footer ul a:hover {
    color: var(--primary-color);
}

.footer-contact p {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xs);
}

.footer-contact p i {
    color: var(--secondary-color);
    font-size: 1rem;
    margin-top: 3px;
}

.footer-social .social-links a {
    color: var(--text-light);
    font-size: 1.3rem;
    margin-right: var(--spacing-md);
}

.footer-social .social-links a:hover {
    color: var(--primary-color);
    transform: none; /* Override contact section hover effect */
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media screen and (max-width: 992px) {
    h1 { font-size: 3.5rem; }
    h2 { font-size: 2rem; }

    .nav-menu {
        gap: var(--spacing-md);
    }
    .nav-menu .nav-btn {
        padding: var(--spacing-xs) var(--spacing-md);
    }

    .about-grid, .contact-grid {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: -1; /* Image above content on smaller screens */
    }

    .contact-grid {
        padding: var(--spacing-lg);
    }

    .features-grid, .programs-grid, .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media screen and (max-width: 768px) {
    h1 { font-size: 2.8rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.5rem; }

    .section-padding {
        padding: var(--spacing-xl) 0;
    }

    .hero {
        min-height: 500px;
    }
    .hero-content {
        padding: 0 var(--spacing-md);
    }
    .hero p {
        font-size: 1.2rem;
    }
    .hero-actions {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .nav-menu {
        position: fixed;
        top: 0; /* Header height offset handled by JS logic. Adjust if header height varies a lot */
        right: -100%; /* Start off-screen */
        width: 70%;
        max-width: 300px; /* Cap width on larger tablets */
        height: 100vh;
        background-color: var(--bg-dark); /* Dark background for mobile menu */
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease-in-out;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.15);
        padding-top: 60px; /* Account for header height */
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu a {
        color: var(--text-light); /* Light text on dark background */
        font-size: 1.5rem;
        padding: var(--spacing-sm) 0;
        width: 100%;
        text-align: center;
    }
    .nav-menu a:not(.nav-btn)::after {
        background-color: var(--accent-color); /* Different color for mobile hover underline */
        height: 2px;
    }
    .nav-menu a:hover {
        color: var(--accent-color);
    }
    .nav-menu .nav-btn {
        margin-left: 0;
        margin-top: var(--spacing-md);
        padding: var(--spacing-sm) var(--spacing-lg);
        background-color: var(--accent-color);
        color: var(--bg-dark);
        border-color: var(--accent-color);
    }
    .nav-menu .nav-btn:hover {
        background-color: var(--primary-color);
        border-color: var(--primary-color);
        color: var(--text-light);
    }

    .hamburger {
        display: flex;
    }

    .about-image {
        margin-bottom: var(--spacing-lg);
    }
    .about-content h2::after, .contact-info h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .feature-card, .program-card, .gallery-item {
        margin-bottom: var(--spacing-md);
    }

    .testimonial-carousel {
        max-width: 100%;
        margin: 0 auto var(--spacing-md) auto;
    }
    .testimonial-item {
        padding: var(--spacing-lg);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-contact p, .footer-links ul {
        align-items: center;
        justify-content: center;
    }
    .footer-social .social-links {
        justify-content: center;
    }
}

@media screen and (max-width: 480px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.3rem; }

    .hero p {
        font-size: 1rem;
    }

    .btn {
        padding: var(--spacing-sm) var(--spacing-md);
    }

    .footer-grid {
        gap: var(--spacing-lg);
    }
}


/* Scroll Reveal Animations */
.animate-on-scroll .reveal-left,
.animate-on-scroll .reveal-right,
.animate-on-scroll .reveal-bottom,
.animate-on-scroll h2,
.animate-on-scroll .section-tag {
    opacity: 1;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll .reveal-left {
    transform: translateX(-50px);
}
.animate-on-scroll .reveal-right {
    transform: translateX(50px);
}
.animate-on-scroll .reveal-bottom {
    transform: translateY(30px);
}
.animate-on-scroll h2,
.animate-on-scroll .section-tag {
     transform: translateY(20px);
}


/* Delay for individual elements within a grid/list */
.animate-on-scroll .delay-1 { transition-delay: 0.1s; }
.animate-on-scroll .delay-2 { transition-delay: 0.2s; }
.animate-on-scroll .delay-3 { transition-delay: 0.3s; }
.animate-on-scroll .delay-4 { transition-delay: 0.4s; }
.animate-on-scroll .delay-5 { transition-delay: 0.5s; }
.animate-on-scroll .delay-6 { transition-delay: 0.6s; }


.animate-on-scroll .is-visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* Animation states when visible - FIXED: Only opacity: 1 */
.animate-fade-in-up.visible,
.animate-fade-in-left.visible,
.animate-fade-in-right.visible,
.animate-bounce-y.visible,
.section-scroll-animate.visible,
.text-animate-up.visible,
.reveal-item.visible,
.scroll-reveal.visible,
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-fade-in-up.visible.fade-in,
.section-scroll-animate.visible.fade-in {
    opacity: 1;
}

.animate-fade-in-up.visible.slide-up,
.section-scroll-animate.visible.slide-up {
    transform: translateY(0);
}
/* Safe visibility overrides (auto-added) */
:root, html, body, main, header, footer, section, .container, .content {
  opacity: 1 !important;
  visibility: visible !important;
}
