/* =========== Global Styles =========== */
:root {
    --primary-color: #007AFF; /* A bright, energetic blue */
    --primary-color-dark: #0056b3;
    --accent-coral: #FF6B6B; /* Energetic coral for student CTAs */
    --accent-teal: #00D9C0; /* Fresh teal accent */
    --accent-purple: #8B5CF6; /* Vibrant purple */
    --dark-text: #1a1a1a;
    --body-text: #4a4a4a;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --border-light: #e0e0e0;
    --success-green: #10B981;
    --header-font: 'Poppins', sans-serif;
    --body-font: 'Inter', sans-serif;
}

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

body {
    font-family: var(--body-font);
    color: var(--body-text);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-family: var(--header-font);
    color: var(--dark-text);
    font-weight: 700;
}

h1 {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
}

p {
    margin-bottom: 20px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

/* =========== Header =========== */
.navbar {
    background: var(--white);
    border-bottom: 1px solid var(--border-light);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

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

.nav-logo {
    font-family: var(--header-font);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-text);
}

.navbar nav ul {
    list-style: none;
    display: flex;
    align-items: center;
}

.navbar nav li {
    margin-left: 25px;
}

.nav-link {
    font-weight: 700;
    color: var(--body-text);
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link.active-page {
    color: var(--primary-color);
    position: relative;
}

.nav-link.active-page::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--dark-text);
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

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

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* =========== Buttons =========== */
.nav-button-secondary {
    font-weight: 700;
    padding: 10px 20px;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 50px;
    transition: all 0.3s ease;
}

.nav-button-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Enhanced Primary CTA - Larger and more prominent */
.cta-button-primary {
    display: inline-block;
    background: var(--accent-coral);
    color: var(--white);
    font-family: var(--header-font);
    font-size: 1.2rem;
    font-weight: 700;
    padding: 20px 40px;
    border-radius: 50px;
    margin-top: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
    border: none;
    cursor: pointer;
}

.cta-button-primary:hover {
    background: #ff5252;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.5);
    transform: translateY(-3px);
}

/* Add subtle pulse animation to primary CTA */
@keyframes pulse {
    0%, 100% {
        box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
    }
    50% {
        box-shadow: 0 6px 25px rgba(255, 107, 107, 0.6);
    }
}

.cta-button-primary.pulse {
    animation: pulse 2s ease-in-out infinite;
}

.cta-button-secondary {
    display: inline-block;
    background: var(--white);
    color: var(--primary-color);
    font-family: var(--header-font);
    font-size: 1.1rem;
    font-weight: 700;
    padding: 16px 32px;
    border-radius: 50px;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
}

.cta-button-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 122, 255, 0.3);
}


/* =========== Hero Section =========== */
.hero {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 100px 0;
    text-align: center;
}

.hero h1 {
    max-width: 800px;
    margin: 0 auto 25px auto;
}

.hero-subheadline {
    font-size: 1.3rem;
    max-width: 650px;
    margin: 0 auto 40px auto;
    color: var(--body-text);
    line-height: 1.7;
}

/* Dynamic Text Styling */
.second-line {
    display: block;
}

.dynamic-text-container {
    display: inline-block;
    position: relative;
    height: 1.2em; /* Match line height */
    min-width: 400px; /* Prevents layout shift between words */
    color: var(--accent-coral);
    vertical-align: baseline;
}

.dynamic-word {
    position: absolute;
    left: 25px;
    right: 0;
    top: 10px;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    white-space: nowrap;
}

.dynamic-word.active {
    opacity: 1;
}

/* Trust Bar with Stats */
.trust-bar {
    margin-top: 70px;
    padding-top: 40px;
    border-top: 1px solid var(--border-light);
}

.trust-bar p {
    font-size: 0.9rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
}

.trust-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    margin-top: 25px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: var(--header-font);
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--accent-coral);
    display: block;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--body-text);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Legacy trust bar styling (can keep for backwards compatibility) */
.trust-bar span {
    font-family: var(--header-font);
    font-weight: 700;
    color: #bbb;
    margin: 0 15px;
}

/* =========== How It Works Section =========== */
.how-it-works {
    background: var(--light-bg);
    padding: 100px 0;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
}

.step-card {
    background: var(--white);
    padding: 50px 35px;
    border-radius: 16px;
    border: 1px solid var(--border-light);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.step-number {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--accent-coral) 0%, #ff5252 100%);
    color: var(--white);
    border-radius: 50%;
    font-family: var(--header-font);
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px auto;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.step-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.step-card p {
    line-height: 1.7;
}

/* =========== Success Stories Section =========== */
.success-stories {
    background: var(--white);
    padding: 100px 0;
}

.section-subtitle {
    text-align: center;
    font-size: 1.15rem;
    color: var(--body-text);
    margin-top: -30px;
    margin-bottom: 60px;
    line-height: 1.6;
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    margin-bottom: 20px;
}

.story-card {
    background: var(--light-bg);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.story-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 122, 255, 0.15);
    background: var(--white);
}

.story-amount {
    font-family: var(--header-font);
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--accent-coral);
    margin-bottom: 15px;
}

.story-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--dark-text);
}

.story-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--body-text);
    margin-bottom: 20px;
}

.story-org {
    font-size: 0.85rem;
    color: #999;
    font-style: italic;
    padding-top: 15px;
    border-top: 1px solid var(--border-light);
}

/* =========== Form Styling =========== */
.form-section {
    background: var(--light-bg);
    padding: 100px 0;
}

.form-container {
    max-width: 700px;
    margin: 0 auto;
    background: var(--white);
    padding: 50px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.form-helper-text {
    text-align: center;
    color: var(--accent-coral);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 30px;
    padding: 12px 20px;
    background: rgba(255, 107, 107, 0.1);
    border-radius: 8px;
}

.form-group {
    margin-bottom: 30px;
}

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

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

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

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-submit-button {
    width: 100%;
    background: var(--accent-coral);
    color: var(--white);
    font-family: var(--header-font);
    font-size: 1.2rem;
    font-weight: 700;
    padding: 18px 40px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
    margin-top: 10px;
}

.form-submit-button:hover {
    background: #ff5252;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.5);
}

/* Progress Indicator for Multi-Step Forms */
.form-progress {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
    gap: 15px;
}

.progress-step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--border-light);
    color: var(--body-text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.progress-step.active {
    background: var(--accent-coral);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.progress-step.completed {
    background: var(--success-green);
    color: var(--white);
}

.progress-line {
    width: 60px;
    height: 3px;
    background: var(--border-light);
    transition: all 0.3s ease;
}

.progress-line.active {
    background: var(--accent-coral);
}

/* =========== Resource CTA Section =========== */
.resource-cta {
    background: var(--dark-text);
    color: var(--white);
    padding: 100px 0;
    text-align: center;
}

.resource-cta h2 {
    color: var(--white);
    margin-bottom: 20px;
}

.resource-cta p {
    font-size: 1.15rem;
    color: #e0e0e0;
    max-width: 550px;
    margin: 0 auto 40px auto;
    line-height: 1.7;
}

/* Override button styling for resource CTA */
.resource-cta .cta-button-primary {
    background: var(--accent-coral);
}

.resource-cta .cta-button-primary:hover {
    background: #ff5252;
}

/* =========== Footer =========== */
.footer {
    background: var(--white);
    border-top: 1px solid var(--border-light);
    padding: 40px 0;
    color: #777;
}

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

.footer nav a {
    margin-left: 20px;
    color: #777;
    font-weight: 700;
    transition: color 0.3s ease;
}

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

/* =========== Responsive =========== */
@media (max-width: 768px) {
    h1 {
        font-size: 2.8rem;
    }
    
    h2 {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero-subheadline {
        font-size: 1.1rem;
    }
    
    .dynamic-text-container {
        min-width: 200px;
    }

    /* Show hamburger menu on mobile */
    .hamburger {
        display: flex;
    }

    /* Hide desktop navigation by default on mobile */
    .navbar nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        border-bottom: 1px solid var(--border-light);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    /* Show navigation when active */
    .navbar nav.active {
        display: block;
    }

    .navbar nav ul {
        flex-direction: column;
        padding: 20px 0;
    }

    .navbar nav li {
        margin: 0;
        width: 100%;
        text-align: center;
        padding: 15px 0;
        border-bottom: 1px solid var(--border-light);
    }

    .navbar nav li:last-child {
        border-bottom: none;
    }

    .nav-link.active-page::after {
        display: none;
    }

    .nav-button-secondary {
        display: inline-block;
        width: auto;
        margin: 10px auto;
    }

    .trust-stats {
        gap: 40px;
    }
    
    .stat-number {
        font-size: 2rem;
    }

    .steps-grid,
    .stories-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .how-it-works,
    .success-stories,
    .form-section,
    .resource-cta {
        padding: 60px 0;
    }
    
    .form-container {
        padding: 35px 25px;
    }
    
    .cta-button-primary {
        font-size: 1.1rem;
        padding: 18px 35px;
    }

    .footer .container {
        flex-direction: column;
    }
    .footer p {
        margin-bottom: 15px;
    }
}