/* CSS Redesign for Refunda SanBer - Fundación Resurgir */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
    /* Color Palette derived from logo */
    --color-primary: #2f4179; /* Navy blue from logo */
    --color-primary-dark: #0f0d42; /* Dark navy from logo */
    --color-secondary: #2e3433; /* Charcoal grey from logo */
    --color-accent: #74878d; /* Slate grey from logo */
    --color-accent-warm: #f59e0b; /* Amber highlight */
    --color-success: #10b981;
    --color-bg-light: #f4f7f6; /* Very light slate-teal */
    --color-bg-card: #ffffff;
    --color-text-dark: #2e3433;
    --color-text-muted: #5a6664;
    --color-text-light: #f8fafc;
    
    /* Typography */
    --font-headings: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;

    /* Transitions & Shadows */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-subtle: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
    --shadow-medium: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.08);
    --shadow-premium: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    /* Borders */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
}

/* Reset & Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-light);
    color: var(--color-text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headings);
    font-weight: 700;
    line-height: 1.25;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: var(--shadow-subtle);
    transition: var(--transition-smooth);
}

header.scrolled {
    background: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

header.scrolled .logo-text {
    color: var(--color-text-light);
}

header.scrolled .nav-links a {
    color: rgba(255, 255, 255, 0.8);
}

header.scrolled .nav-links a:hover, header.scrolled .nav-links a.active {
    color: var(--color-primary);
}

header.scrolled .menu-toggle span {
    background-color: var(--color-text-light);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-smooth);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
    transition: var(--transition-smooth);
}

.logo-icon {
    font-size: 1.75rem;
    color: var(--color-primary);
    animation: rotateLogo 8s linear infinite;
}

.logo-text {
    font-family: var(--font-headings);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
    color: var(--color-secondary);
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    transition: var(--transition-smooth);
}

.logo-text span {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-text-muted);
}

header.scrolled .logo-text span {
    color: rgba(255, 255, 255, 0.6);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.25rem;
    list-style: none;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-text-muted);
    position: relative;
    padding: 0.25rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: var(--transition-smooth);
}

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

.nav-links a:hover, .nav-links a.active {
    color: var(--color-primary);
}

.btn-contact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white !important;
    padding: 0.6rem 1.25rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(47, 65, 121, 0.2);
}

.btn-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(47, 65, 121, 0.3);
}

.btn-contact i {
    font-size: 1.1rem;
}

#nav-whatsapp {
    background: rgba(37, 211, 102, 0.08);
    border: 1.5px solid rgba(37, 211, 102, 0.3);
    color: #128c7e !important;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.1);
    position: relative;
    padding-right: 1.75rem;
}

#nav-whatsapp::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: #25D366;
    border-radius: 50%;
    right: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    animation: pulseWhatsapp 2s infinite;
}

#nav-whatsapp:hover {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white !important;
    border-color: transparent;
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.4);
    padding-right: 1.75rem;
}

#nav-whatsapp:hover::after {
    background-color: white;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
}

@keyframes pulseWhatsapp {
    0% {
        transform: translateY(-50%) scale(0.95);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        transform: translateY(-50%) scale(1);
        box-shadow: 0 0 0 6px rgba(37, 211, 102, 0);
    }
    100% {
        transform: translateY(-50%) scale(0.95);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at 10% 20%, rgba(20, 184, 166, 0.08) 0%, rgba(15, 23, 42, 0.03) 90%), url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="%2314b8a6" opacity="0.15"/></svg>');
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.2) 0%, rgba(255, 255, 255, 0) 70%);
    top: -100px;
    right: -100px;
    z-index: 1;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
    bottom: -50px;
    left: -50px;
    z-index: 1;
    pointer-events: none;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 680px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(20, 184, 166, 0.1);
    color: var(--color-primary-dark);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 3.75rem;
    color: var(--color-secondary);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1.5px;
}

.hero-title span {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
    padding: 0.85rem 2rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(20, 184, 166, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(20, 184, 166, 0.4);
}

.btn-outline {
    border: 2px solid var(--color-secondary);
    color: var(--color-secondary);
    padding: 0.85rem 2rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-outline:hover {
    background-color: var(--color-secondary);
    color: white;
    transform: translateY(-2px);
}

.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-card {
    position: relative;
    background: white;
    padding: 1rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-premium);
    transform: rotate(3deg);
    transition: var(--transition-smooth);
}

.hero-image-card:hover {
    transform: rotate(0deg) scale(1.02);
}

.hero-image-card img {
    border-radius: calc(var(--radius-md) - 6px);
    width: 100%;
    max-width: 360px;
    height: 450px;
    object-fit: cover;
    display: block;
}

.hero-card-badge {
    position: absolute;
    bottom: -1.5rem;
    left: -1.5rem;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-medium);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hero-card-badge i {
    font-size: 1.5rem;
    color: var(--color-accent);
}

.hero-card-badge .badge-text {
    display: flex;
    flex-direction: column;
}

.hero-card-badge .badge-text strong {
    font-size: 1.1rem;
    color: var(--color-secondary);
}

.hero-card-badge .badge-text span {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

/* Sections Global */
section {
    padding: 6.5rem 0;
    position: relative;
}

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

.section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 4rem auto;
}

.section-title {
    font-size: 2.5rem;
    color: var(--color-secondary);
    margin-bottom: 1.25rem;
    position: relative;
    display: inline-block;
    letter-spacing: -0.5px;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--color-primary);
    margin: 0.75rem auto 0 auto;
    border-radius: 2px;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--color-text-muted);
}

/* Mision Section */
.mission {
    background: linear-gradient(135deg, #111a36 0%, #2f4179 100%);
    color: #ffffff;
    overflow: hidden;
}

.mission::before {
    content: '';
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.05);
    top: -50px;
    left: -50px;
}

.mission-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
    align-items: center;
}

.mission-meta h4 {
    color: #a3b8cc; /* Soft light blue-grey for headers */
    letter-spacing: 1px;
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.mission-text {
    font-size: 1.75rem;
    font-family: var(--font-headings);
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: -0.5px;
    position: relative;
    color: #ffffff;
}

.mission-text::before {
    content: '“';
    font-family: var(--font-headings);
    font-size: 6rem;
    color: rgba(255, 255, 255, 0.12);
    position: absolute;
    top: -3.5rem;
    left: -2.5rem;
    line-height: 1;
}

.mission-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.mission-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: var(--transition-smooth);
}

.mission-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.25);
}

.mission-card i {
    font-size: 2.25rem;
    color: #38bdf8; /* Very bright sky blue for icons inside dark backgrounds */
    margin-bottom: 1.25rem;
}

.mission-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: #ffffff;
}

.mission-card p {
    font-size: 0.9rem;
    color: #cbd5e1; /* Clear white-grey for perfect reading contrast */
}

/* Heroes Section */
.heroes {
    background: white;
}

.heroes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.heroes-content h4 {
    color: var(--color-primary);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.heroes-title {
    font-size: 2.5rem;
    color: var(--color-secondary);
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

.heroes-p {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

.heroes-quote {
    background: var(--color-bg-light);
    border-left: 4px solid var(--color-accent);
    padding: 1.25rem 1.75rem;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin-bottom: 2rem;
    font-style: italic;
    font-weight: 500;
}

.heroes-image-container {
    position: relative;
}

.heroes-image-frame {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-premium);
}

.heroes-image-frame img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    display: block;
}

.heroes-floating-badge {
    position: absolute;
    top: 2rem;
    right: -2rem;
    background: var(--color-accent);
    color: var(--color-secondary);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-medium);
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: bounceSlow 3s ease-in-out infinite;
}

.heroes-floating-badge i {
    font-size: 1.25rem;
}

/* Initiatives & Projects Grid */
.projects {
    background-color: var(--color-bg-light);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.project-card {
    background: var(--color-bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-subtle);
    border: 1px solid rgba(15, 23, 42, 0.03);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-premium);
    border-color: rgba(20, 184, 166, 0.15);
}

.project-img-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.project-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.project-card:hover .project-img-wrapper img {
    transform: scale(1.08);
}

.project-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: white;
    padding: 0.3rem 0.85rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.project-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-card-title {
    font-size: 1.35rem;
    color: var(--color-secondary);
    margin-bottom: 0.85rem;
}

.project-card-text {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.75rem;
    flex-grow: 1;
    line-height: 1.7;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--color-primary-dark);
}

.project-link i {
    transition: var(--transition-smooth);
}

.project-card:hover .project-link i {
    transform: translateX(4px);
}

/* Stats Section */
.stats {
    background: linear-gradient(135deg, var(--color-secondary) 0%, #050b14 100%);
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 5rem;
    align-items: center;
}

.stats-intro h4 {
    color: var(--color-primary);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.stats-intro h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

.stats-intro p {
    color: rgba(248, 250, 252, 0.75);
    margin-bottom: 2rem;
    font-size: 1.05rem;
    line-height: 1.8;
}

.stats-callout {
    font-family: var(--font-headings);
    font-size: 1.25rem;
    font-weight: 500;
    border-left: 3px solid var(--color-primary);
    padding-left: 1.5rem;
    color: white;
}

.stats-numbers {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.stat-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-sm);
    background: rgba(20, 184, 166, 0.1);
    border: 1px solid rgba(20, 184, 166, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--color-primary);
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-headings);
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.1;
    color: white;
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.95rem;
    color: rgba(248, 250, 252, 0.7);
    font-weight: 500;
}

/* Call to Action - How to help */
.help {
    background: white;
}

.help-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.help-card {
    padding: 3rem;
    border-radius: var(--radius-lg);
    background: var(--color-bg-light);
    border: 1px solid rgba(15, 23, 42, 0.02);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

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

.help-card.featured {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.05) 0%, rgba(15, 23, 42, 0.01) 100%);
    border: 1px solid rgba(20, 184, 166, 0.15);
}

.help-icon {
    width: 56px;
    height: 56px;
    background: white;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--color-primary);
    box-shadow: var(--shadow-subtle);
    margin-bottom: 2rem;
}

.help-card.featured .help-icon {
    background: var(--color-primary);
    color: white;
}

.help-title {
    font-size: 1.75rem;
    color: var(--color-secondary);
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.help-desc {
    color: var(--color-text-muted);
    font-size: 1rem;
    margin-bottom: 2rem;
    line-height: 1.75;
}

.btn-help {
    margin-top: auto;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-primary-dark);
}

.btn-help:hover i {
    transform: translateX(4px);
}

/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.modal.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: white;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 550px;
    padding: 3rem;
    box-shadow: var(--shadow-premium);
    position: relative;
    transform: translateY(30px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--color-bg-light);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--color-text-muted);
    transition: var(--transition-smooth);
}

.modal-close:hover {
    background: var(--color-secondary);
    color: white;
}

.modal-title {
    font-size: 2rem;
    color: var(--color-secondary);
    margin-bottom: 0.75rem;
    letter-spacing: -0.5px;
}

.modal-desc {
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

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

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-text-dark);
}

.form-control {
    width: 100%;
    padding: 0.85rem 1.25rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(15, 23, 42, 0.1);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.form-control:focus {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.1);
}

.btn-submit {
    width: 100%;
    background: var(--color-secondary);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-family: var(--font-headings);
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition-smooth);
    margin-top: 1rem;
}

.btn-submit:hover {
    background: var(--color-primary);
    box-shadow: 0 4px 15px rgba(20, 184, 166, 0.3);
}

/* Footer */
footer {
    background-color: var(--color-secondary);
    color: rgba(255, 255, 255, 0.8);
    padding: 5rem 0 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand .logo-text {
    color: white;
    margin-bottom: 1.5rem;
}

.footer-brand p {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.6);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
}

.social-links a:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    transform: translateY(-3px);
}

.footer-title {
    font-size: 1.15rem;
    color: white;
    margin-bottom: 1.5rem;
    font-family: var(--font-headings);
    font-weight: 600;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-links a:hover {
    color: var(--color-primary);
    padding-left: 4px;
}

.contact-info-list {
    list-style: none;
}

.contact-info-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.contact-info-list i {
    color: var(--color-primary);
    margin-top: 0.25rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

.footer-bottom-links {
    display: flex;
    gap: 2rem;
}

.footer-bottom-links a {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

.footer-bottom-links a:hover {
    color: var(--color-primary);
}

/* Mobile Navigation Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1100;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background-color: var(--color-secondary);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

/* Scroll Animation classes */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Animations */
@keyframes rotateLogo {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes bounceSlow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Responsiveness */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

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

    .hero-actions {
        justify-content: center;
    }

    .hero-image-wrapper {
        order: -1;
    }

    .hero-image-card img {
        max-width: 320px;
        height: 380px;
    }

    .mission-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .heroes-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--color-secondary);
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        padding: 4rem 2rem;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.25);
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1050;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        color: white;
        font-size: 1.25rem;
    }

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

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
        background-color: white;
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -7px);
        background-color: white;
    }

    .hero-title {
        font-size: 2.25rem;
        letter-spacing: -1px;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.75rem;
    }

    .hero-image-card img {
        max-width: 280px;
        height: 320px;
    }

    .hero-card-badge {
        bottom: -1rem;
        left: -1rem;
        padding: 0.75rem 1rem;
    }

    .hero-card-badge strong {
        font-size: 0.95rem;
    }

    section {
        padding: 4rem 0;
    }

    .mission-features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .mission-text {
        font-size: 1.4rem;
    }

    .heroes-image-frame img {
        height: 320px;
    }

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

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .help-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .modal-content {
        padding: 2rem;
    }

    .nav-container {
        padding: 1rem 1.5rem;
    }

    .logo-text {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .hero-image-card {
        transform: rotate(0deg);
    }
    
    .hero-card-badge {
        display: none; /* Hide floating badge on extra narrow screens */
    }

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