/* ------------------- CSS Variables & Reset ------------------- */
:root {
    --primary: #005EEA;       /* Vibrant Blue */
    --primary-light: #529BFF;
    --secondary: #FF6B00;     /* Orange */
    --accent: #FFB800;        /* Yellow */
    --accent-light: #FFDC73;  
    --pink: #FF3366;          /* Pink / Magenta */
    --green: #00D084;         /* Green */
    
    --bg-color: #ffffff;
    --bg-light: #F7FAFC;
    --bg-gradient: linear-gradient(135deg, #005EEA 0%, #00C6FF 100%);
    
    --text-main: #2D3748;
    --text-muted: #4A5568;
    --text-light: #ffffff;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Outfit', sans-serif;
    
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    --shadow-glow: 0 0 20px rgba(0, 94, 234, 0.4);
    --shadow-error: 0 0 20px rgba(255, 51, 102, 0.4);
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
}

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

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

/* Typography elements */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.3rem; }

p {
    margin-bottom: 1rem;
    font-size: 1.125rem;
    color: var(--text-muted);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.text-center { text-align: center; }
.relative { position: relative; }
.z-10 { z-index: 10; }
.overflow-hidden { overflow: hidden; }

/* ------------------- Utilities ------------------- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-narrow {
    max-width: 800px;
}

.py-large {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.mt-large {
    margin-top: 3rem;
}

.bg-light {
    background-color: var(--bg-light);
}

.flex-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 3rem;
}

.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }
.rounded-xl { border-radius: var(--radius-lg); }

/* ------------------- Navigation Header for all pages ------------------- */
.navbar {
    position: absolute;
    top: 0; left: 0; right: 0;
    padding: 1.5rem 0;
    z-index: 50;
}
.nav-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
}
.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
}
.nav-links a {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    transition: color 0.3s;
}
.nav-links a:hover, .nav-links a.active {
    color: white;
    text-decoration: underline;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: transform 0.3s;
}

/* Specific page header styles for sub-pages */
.page-header {
    background: var(--bg-gradient);
    padding: 8rem 0 4rem;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-header h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* ------------------- Components ------------------- */
.badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    color: var(--text-light);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.heading-underline {
    height: 4px;
    width: 80px;
    background: var(--accent);
    margin: 0.5rem auto 2rem;
    border-radius: 4px;
}
.heading-underline.left { margin-left: 0; }

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: #25D366; /* WhatsApp Green */
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(37, 211, 102, 0.4);
    background: #128C7E;
}

.cta-button.giant {
    font-size: 1.3rem;
    padding: 1.25rem 2.5rem;
}

.primary-cta {
    background: white;
    color: #25D366;
}
.primary-cta:hover {
    background: #fafafa;
}

/* ------------------- Sections ------------------- */

/* Hero */
.hero {
    background: var(--bg-gradient);
    color: var(--text-light);
    position: relative;
    padding: 8rem 0 8rem;
    overflow: hidden;
}

.hero h1, .hero p {
    color: var(--text-light);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero .subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    position: relative;
    z-index: 2;
}

.hero-text {
    flex: 1;
}

.hero-image {
    flex: 1;
    width: 100%;
    max-width: 500px;
}

.blob-shape {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 8px solid rgba(255,255,255,0.2);
    animation: morph 8s ease-in-out infinite alternate;
}

@keyframes morph {
    0% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
    100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
}

.wave-divider {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.wave-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

.wave-divider .shape-fill { fill: #ffffff; }

/* Problem Section */
.problem-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    z-index: 2;
}

.text-large {
    font-size: 1.3rem;
    color: var(--text-main);
    font-weight: 500;
}

.card-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 51, 102, 0.1);
    color: var(--pink);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: -1rem auto 1.5rem;
    transform: translateY(-20px);
}
.error-glow {
    box-shadow: var(--shadow-error);
}

/* Solution Section */
.solution-content > * {
    flex: 1 1 300px;
}

.solution-text h2 {
    color: var(--primary);
}

.lead-text {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text-main);
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.benefit-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.03);
    height: 100%;
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.icon-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 1.5rem;
    color: white;
}

.green-bg { background: linear-gradient(135deg, #00D084 0%, #00B16A 100%); }
.blue-bg { background: linear-gradient(135deg, #529BFF 0%, #005EEA 100%); }
.orange-bg { background: linear-gradient(135deg, #FF9C4A 0%, #FF6B00 100%); }
.pink-bg { background: linear-gradient(135deg, #FF6B8B 0%, #FF3366 100%); }
.yellow-bg { background: linear-gradient(135deg, #FFDC73 0%, #FFB800 100%); }

/* Program Details Box */
.details-box {
    background: white;
    border-radius: var(--radius-lg);
    padding: 4rem 3rem;
    border: 1px solid rgba(0,0,0,0.05);
}

.details-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.details-list li {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.detail-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
}

.detail-content {
    display: flex;
    flex-direction: column;
}

.detail-content .label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.detail-content .value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
}

/* CTA Section */
.cta-section {
    background: var(--bg-gradient);
    color: white;
}

.cta-section h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 2.5rem;
}

.urgency-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #FF3366;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    padding: 0.75rem 2rem;
    border-radius: var(--radius-full);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-error);
}

.bg-shape-1, .bg-shape-2 {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    z-index: 1;
}
.bg-shape-1 { width: 400px; height: 400px; top: -100px; left: -100px; }
.bg-shape-2 { width: 300px; height: 300px; bottom: -50px; right: -50px; }

/* Footer Links specific styling */
.footer-links {
    margin-top: 1.5rem;
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    z-index: 10;
    position: relative;
}

.footer-links a {
    color: #ffffff !important;
    text-decoration: underline;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s;
    display: inline-block;
    padding: 0.2rem 0.5rem;
}

.footer-links a:hover {
    color: var(--accent) !important;
}

/* Footer */
footer {
    background: var(--text-main);
    color: rgba(255,255,255,0.7);
    padding: 3rem 0;
}
.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
}

/* ------------------- Animations ------------------- */
.pulse {
    animation: pulse-animation 2s infinite;
}
@keyframes pulse-animation {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse-slow {
    animation: pulse-animation 3s infinite;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

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

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}
.reveal.left { transform: translateX(-40px); }
.reveal.right { transform: translateX(40px); }
.reveal.active {
    opacity: 1;
    transform: translateY(0) translateX(0);
}

/* Wave SVGs */
.wave-top { padding-top: 100px; }
.wave-top-svg { top: -1px; bottom: auto; transform: rotate(0); }
.wave-top-svg .shape-fill-light { fill: #ffffff; }

.wave-bottom-svg { bottom: -1px; transform: rotate(180deg); }
.wave-bottom-svg .shape-fill-white { fill: #ffffff; }

@media (min-width: 768px) {
    .sm\:text-left { text-align: left; }
    
    .hero {
        padding: 10rem 0 10rem;
    }
    
    .hero-content {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .hero-text {
        padding-right: 3rem;
    }
    
    .btn-group {
        display: flex;
        gap: 1rem;
    }
    
    .hero h1 { font-size: 3.5rem; }
}

@media (max-width: 767px) {
    .details-list {
        grid-template-columns: 1fr;
    }
    .heading-underline.left { margin: 0.5rem auto 2rem; }
    .solution-text h2 { text-align: center; }
    .solution-text .lead-text { text-align: center; }
    
    .navbar .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
    }
    .mobile-menu-btn {
        display: block;
    }
    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        background: rgba(0, 94, 234, 0.98);
        padding: 1.5rem;
        border-radius: var(--radius-md);
        margin-top: 1rem;
        box-shadow: var(--shadow-xl);
        text-align: center;
        gap: 1.5rem;
    }
    .nav-links.active {
        display: flex;
        animation: slideDown 0.3s ease forwards;
    }
    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }
    
    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 1.25rem;
    }
    
    footer {
        padding-bottom: 6rem;
    }
}
