:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --accent-gradient: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);

    --color-primary: #667eea;
    --color-secondary: #f5576c;
    --color-accent: #38f9d7;
    --color-success: #43e97b;

    --neutral-50: #fafafa;
    --neutral-100: #f5f5f5;
    --neutral-200: #e5e5e5;
    --neutral-300: #d4d4d4;
    --neutral-400: #a3a3a3;
    --neutral-500: #737373;
    --neutral-600: #525252;
    --neutral-700: #404040;
    --neutral-800: #262626;
    --neutral-900: #171717;

    --font-primary: 'Inter', sans-serif;
    --font-display: 'Playfair Display', serif;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    /* Refined hover shadows - softer and more diffuse */
    --shadow-hover: 0 10px 30px -10px rgba(0, 0, 0, 0.15);
    --shadow-card-hover: 0 15px 35px -5px rgba(102, 126, 234, 0.2);
    --shadow-elevation: 0 8px 25px -8px rgba(102, 126, 234, 0.35);

    /* Standardized smooth transition */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    --glassmorphism: rgba(255, 255, 255, 0.1);
    --glassmorphism-border: rgba(255, 255, 255, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--neutral-800);
    background: var(--neutral-50);
    overflow-x: hidden;
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.glass {
    background: var(--glassmorphism);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glassmorphism-border);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transform: translateY(0);
}

/* Button icon coordination - ensure icon transitions with button */
.btn i {
    transition: var(--transition-smooth);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-elevation);
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
}

.btn-secondary {
    background: var(--secondary-gradient);
    color: white;
}

.btn-accent {
    background: var(--accent-gradient);
    color: var(--neutral-800);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 1rem 0;
    background-color: rgba(255, 255, 255, 0.5);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
    padding: 0.5rem 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: var(--font-display);
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--neutral-700);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--neutral-700);
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(102, 126, 234, 0.4) 0%, rgba(118, 75, 162, 0.8) 100%);
    opacity: 0.6;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
    max-width: 800px;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-family: var(--font-display);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
    transform: translateY(30px);
    animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1) 0.4s forwards;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease 0.6s forwards;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Strict 3 columns on desktop */
    gap: 2rem;
    margin-top: 4rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease 0.8s forwards;
}

.stat-card {
    background: var(--glassmorphism);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glassmorphism-border);
    padding: 1.75rem;
    border-radius: 16px;
    text-align: center;
    transition: var(--transition-smooth);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Floating Elements */
.floating-shape {
    position: absolute;
    border-radius: 50%;
    background: var(--glassmorphism);
    backdrop-filter: blur(20px);
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 100px;
    height: 100px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 10%;
    animation-delay: 2s;
}

.shape-3 {
    width: 80px;
    height: 80px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

/* Sections */
.section {
    padding: 6rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-family: var(--font-display);
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.01em;
    padding-bottom: 0.5rem;
    /* prevent descender clipping */
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--neutral-600);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* About Section */
.about {
    background: linear-gradient(135deg, var(--neutral-50) 0%, #fafafa 100%);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
}

.about-image {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
    transform: rotate(-2deg);
    transition: transform 0.3s ease;
}

.about-image:hover {
    transform: rotate(0deg) scale(1.05);
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.about-text h3 {
    color: var(--color-primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-family: var(--font-display);
}

.about-text p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Forced 3 columns for desktop */
    gap: 1.5rem;
    margin-top: 3rem;
}

@media (max-width: 968px) {
    .values-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

.value-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition-smooth);
    border: 2px solid transparent;
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--color-primary);
}

.value-card i {
    font-size: 2.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.25rem;
    display: block;
    transition: var(--transition-smooth);
}

.value-card:hover i {
    transform: scale(1.1);
}

.value-card h4 {
    color: var(--neutral-800);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

/* Programs Section */
.programs {
    background: var(--neutral-900);
    color: white;
    position: relative;
    overflow: hidden;
}

.programs::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100%" height="100%" fill="url(%23dots)"/></svg>');
}

.programs .section-title,
.projects .section-title,
.help .section-title,
.contact .section-title {
    color: white;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.programs .section-subtitle {
    color: var(--neutral-300);
}

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

.program-card {
    background: var(--glassmorphism);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glassmorphism-border);
    padding: 2.5rem;
    border-radius: 16px;
    transition: var(--transition-smooth);
    cursor: pointer;
}

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

.program-card i {
    font-size: 2.5rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.25rem;
    display: block;
    transition: var(--transition-smooth);
}

.program-card:hover i {
    transform: scale(1.1);
}

.program-card h4 {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.program-card p {
    line-height: 1.6;
    opacity: 0.9;
}

/* Projects Section */
.projects {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 50%, #4facfe 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.projects-slider {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
}

.projects-track {
    display: flex;
    transition: transform 0.5s ease;
}

.project-slide {
    min-width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 4rem;
    background: var(--glassmorphism);
    backdrop-filter: blur(20px);
}

.project-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.project-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-image:hover img {
    transform: scale(1.1);
}

@media (max-width: 968px) {
    .project-slide {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
        text-align: center;
    }

    .project-image {
        height: 300px;
        /* Reduced height for mobile */
    }

    .project-image img {
        height: 100%;
        width: 100%;
        object-fit: cover;
    }
}

@media (max-width: 480px) {
    .project-image {
        height: 200px;
    }
}

.project-content h3 {
    font-size: 2rem;
    font-family: var(--font-display);
    margin-bottom: 1rem;
}

.project-content p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.slider-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
}

.slider-btn {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: var(--glassmorphism);
    backdrop-filter: blur(20px);
    color: white;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: white;
    color: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: white;
    transform: scale(1.2);
}

/* Impact Section */
.impact {
    background: var(--neutral-100);
}

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

.testimonial-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    position: relative;
    transition: var(--transition-smooth);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: var(--color-primary);
    font-family: var(--font-display);
    opacity: 0.3;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card-hover);
}

.testimonial-content {
    font-style: italic;
    margin-bottom: 2rem;
    line-height: 1.6;
    color: var(--neutral-700);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.5rem;
}

.author-info h5 {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.author-info span {
    color: var(--neutral-500);
    font-size: 0.9rem;
}

/* Help Section */
.help {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: white;
}

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

.help-card {
    background: var(--glassmorphism);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glassmorphism-border);
    padding: 2.5rem;
    border-radius: 16px;
    text-align: center;
    transition: var(--transition-smooth);
}

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

.help-card i {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
}

.help-card h3 {
    margin-bottom: 1rem;
    font-family: var(--font-display);
}

.help-card p {
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Contact Section */
.contact {
    background: var(--neutral-900);
    color: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3 {
    color: var(--color-accent);
    margin-bottom: 2rem;
    font-family: var(--font-display);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--glassmorphism);
    border-radius: 15px;
    border: 1px solid var(--glassmorphism-border);
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: var(--color-primary);
    transform: translateX(10px);
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--color-accent);
}

.contact-form {
    background: var(--glassmorphism);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glassmorphism-border);
    padding: 2.5rem;
    border-radius: 20px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--color-accent);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--glassmorphism-border);
    border-radius: 10px;
    background: var(--glassmorphism);
    color: white;
    font-family: var(--font-primary);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(56, 249, 215, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--neutral-400);
}

/* Footer */
.footer {
    background: var(--neutral-900);
    color: var(--neutral-300);
    border-top: 1px solid var(--neutral-800);
}

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

.footer-section h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-family: var(--font-display);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--neutral-400);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--neutral-800);
    color: var(--neutral-500);
}

/* WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    text-decoration: none;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-xl);
}

/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

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

/* Scroll Animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-animate.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Centros Section */
.centros {
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    overflow: hidden;
}

.centros-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 968px) {
    .centros-content {
        grid-template-columns: 1fr;
    }
}

.centros-text h3 {
    font-size: 2rem;
    font-family: var(--font-display);
    margin-bottom: 2rem;
    color: var(--color-primary);
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.centros-features {
    list-style: none;
    margin: 2rem 0;
    display: grid;
    grid-template-columns: 1fr;
    /* Changed to single column */
    gap: 1.5rem;
}

.centros-features li {
    display: flex;
    align-items: start;
    gap: 0.8rem;
    font-size: 12px;
    line-height: 1.4;
}

.centros-features i {
    color: var(--color-success);
    font-size: 1.2rem;
    margin-top: 2px;
    /* Visual alignment with text */
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .centros-features {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* 3D Carousel */
.carousel-container {
    perspective: 1000px;
    height: 400px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-3d {
    width: 250px;
    height: 200px;
    position: absolute;
    transform-style: preserve-3d;
    transition: transform 1s;
}

.carousel-stage {
    width: 100%;
    height: 100%;
    position: absolute;
    transform-style: preserve-3d;
    transition: transform 1s;
}

.carousel-item {
    position: absolute;
    width: 250px;
    height: 180px;
    left: 10px;
    top: 10px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    border: 3px solid white;
    /* Backface visibility can be hidden if we rotate them */
    /* backface-visibility: hidden; */
    transition: transform 0.5s;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Carousel Controls */
.carousel-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 2rem;
    z-index: 10;
}

.carousel-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    border: none;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--color-primary);
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    transform: scale(1.1);
    background: var(--color-primary);
    color: white;
}

/* Global Responsive Styles */
@media (max-width: 968px) {

    /* Header */
    .header .nav {
        display: none;
        /* Mobile menu logic toggles class 'active' */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        padding: 2rem;
        box-shadow: var(--shadow-xl);
    }

    .header .nav.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    /* Hero */
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-content {
        padding: 0 1rem;
    }

    /* About Grid */
    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-image {
        margin-bottom: 2rem;
    }

    /* Contact Section */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-section {
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {

    /* General Typography */
    html {
        font-size: 14px;
    }

    .section-title {
        font-size: 2rem;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    /* Forms */
    .contact-form {
        padding: 1.5rem;
    }

    /* Help Section */
    .help-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {

    /* Hero adjustments */
    .hero h1 {
        font-size: 2rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-number {
        font-size: 2rem;
    }
}

/* Hero Fixes */
.hero {
    padding-top: 80px;
    /* Ensure content clears fixed header */
}

/* Text Contrast Improvements */
.hero h1,
.hero p,
.program-card i,
.value-card i,
.centros-text h3 {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero h1 {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.section-subtitle {
    color: var(--neutral-700) !important;
    /* Darker for better readability */
}

.project-content p {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .hero {
        padding-top: 100px;
        /* More clearance on mobile */
        align-items: flex-start;
        /* Prevent centering from pushing text up */
    }

    .hero-content {
        margin-top: 2rem;
    }
}

/* Visual Refinements */

/* 1. Links */
a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-secondary);
}

/* 2. Button Hover - More Elegant */
.btn {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy feel */
}

.btn:hover {
    transform: translateY(-4px);
    /* Removed scale to avoid width changes */
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.4);
}

/* 3. Hero Stats Spacing Mobile */
@media (max-width: 600px) {
    .hero-stats {
        margin-top: 2rem;
        gap: 1.5rem;
        padding-bottom: 0.5rem;
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .stat-card {
        width: 90%;
        max-width: 400px;
        margin: 0;
    }
}

/* 4. Desktop Hero Spacing */
.hero {
    padding-bottom: 4rem;
    /* Ensure clearance from bottom edge */
}

/* 5. Section Header Spacing Adjustments */
.section {
    padding: 8rem 0;
    /* Increase breathability between sections */
}

.section-header {
    margin-bottom: 5rem;
}

/* Fix Hero Container on Mobile */
@media (max-width: 768px) {
    .hero .container {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
}

/* Additional Text Contrast & Mobile Fixes */

/* Darker backgrounds text contrast */
.programs .section-subtitle,
.projects .project-content p,
.help .section-subtitle,
.projects .section-subtitle,
.contact .section-subtitle {
    color: rgba(255, 255, 255, 0.9) !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Ensure mobile header spacing is consistent */
@media (max-width: 480px) {
    .section-header {
        margin-bottom: 3rem;
    }

    .section-title {
        font-size: 1.75rem;
    }
}