:root {
    /* Color Palette - Modern Light Theme */
    --primary: #4F46E5; /* Indigo */
    --primary-light: #818CF8;
    --secondary: #EC4899; /* Pink/Purple accent */
    --accent: #10B981; /* Success accent */
    --bg-main: #F8FAFC;
    --bg-card: rgba(255, 255, 255, 0.8);
    --text-main: #1E293B;
    --text-muted: #64748B;
    --white: #FFFFFF;
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-blur: 12px;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    background-color: #0f172a; /* Match footer background to prevent white block at bottom */
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: -0.025em;
}

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

ul {
    list-style: none;
}

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

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

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

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-base);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    box-shadow: 0 10px 20px -5px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -5px rgba(79, 70, 229, 0.4);
}

.section-padding {
    padding: 6rem 0;
}

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

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 10% 20%, rgba(79, 70, 229, 0.05) 0%, transparent 40%),
                radial-gradient(circle at 90% 80%, rgba(236, 72, 153, 0.05) 0%, transparent 40%);
}

.hero-content {
    /* max-width controlled by hero-grid responsive rules */
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition-base);
}

nav.scrolled {
    padding: 1rem 0;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    box-shadow: var(--shadow-md);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.05);
}

.logo span {
    color: var(--secondary);
}

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

.nav-links a {
    font-weight: 600;
    position: relative;
}

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

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

/* Float Animation */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.floating {
    animation: float 6s ease-in-out infinite;
}

/* Wave Backgrounds */
.wave-container {
    position: relative;
    background: white;
    padding-top: 100px;
}

.wave-divider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

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

.wave-divider.bottom {
    top: auto;
    bottom: 0;
}

/* FAQ Styles */
.faq-item {
    background: white;
    margin-bottom: 1rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition-base);
}

.faq-question {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.1rem;
}

.faq-answer {
    padding: 0 2rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    color: var(--text-muted);
}

.faq-item.open .faq-answer {
    max-height: 200px;
    padding-bottom: 1.5rem;
}

.faq-item.open {
    box-shadow: var(--shadow-lg);
}

/* Stats Section */
.stat-card {
    text-align: center;
    padding: 2rem;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
    display: block;
}

/* Mobile Navigation */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-toggle span {
    width: 30px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
    transition: var(--transition-base);
}

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

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        transition: var(--transition-base);
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        z-index: 1000;
        display: flex !important; /* Override the none in baseline */
    }

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

    .hero-btns {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }

    .hero-btns a {
        width: 100%;
        margin-left: 0 !important;
    }
}

/* Fix Review Carousel for Mobile */
@media (max-width: 576px) {
    .review-card {
        flex: 0 0 100%;
        max-width: none;
    }
    
    .reviews-carousel {
        padding: 1rem 0;
        gap: 1rem;
    }
}
/* Review Carousel Styles */
.reviews-carousel {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 1rem 0 3rem;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    margin: 0 -1rem;
    padding: 1rem;
}

.reviews-carousel::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.review-card {
    flex: 0 0 100%;
    scroll-snap-align: center;
    max-width: 600px;
    margin: 0 auto;
}

@media (min-width: 992px) {
    .review-card {
        flex: 0 0 calc(50% - 1rem);
    }
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cbd5e1;
    cursor: pointer;
    transition: var(--transition-base);
}


/* Blog Section */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.blog-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: var(--transition-base);
}

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

.blog-img {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

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

.blog-date {
    display: block;
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.blog-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.blog-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.read-more:hover {
    gap: 0.75rem;
}

/* ============================================
   HERO SECTION — REDESIGNED CTA
   ============================================ */

/* Grid layout */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 5rem;
    padding-top: 2rem;
    padding-bottom: 4rem;
}

/* ---- Background animated blobs ---- */
.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.55;
    pointer-events: none;
    animation: blobPulse 8s ease-in-out infinite;
}

.hero-blob-1 {
    width: 520px; height: 520px;
    background: radial-gradient(circle, rgba(79,70,229,0.18) 0%, transparent 70%);
    top: -100px; left: -120px;
    animation-delay: 0s;
}

.hero-blob-2 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(236,72,153,0.14) 0%, transparent 70%);
    bottom: -80px; right: 5%;
    animation-delay: 3s;
}

.hero-blob-3 {
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(16,185,129,0.10) 0%, transparent 70%);
    top: 40%; right: 38%;
    animation-delay: 5s;
}

@keyframes blobPulse {
    0%, 100% { transform: scale(1) translate(0, 0); }
    33%  { transform: scale(1.08) translate(15px, -20px); }
    66%  { transform: scale(0.95) translate(-10px, 12px); }
}

/* ---- Trust badge ---- */
.hero-trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(79, 70, 229, 0.07);
    border: 1px solid rgba(79, 70, 229, 0.18);
    color: var(--primary);
    padding: 0.45rem 1.1rem;
    border-radius: var(--radius-full);
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.trust-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #10B981;
    box-shadow: 0 0 0 3px rgba(16,185,129,0.25);
    animation: trustedPulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes trustedPulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(16,185,129,0.25); }
    50%       { box-shadow: 0 0 0 6px rgba(16,185,129,0.10); }
}

/* ---- Heading ---- */
.hero h1 {
    font-size: 3.6rem;
    line-height: 1.12;
    margin-bottom: 1.25rem;
}

/* ---- Subtitle ---- */
.hero-subtitle {
    font-size: 1.15rem !important;
    color: var(--text-muted) !important;
    margin-bottom: 1.75rem !important;
    max-width: 520px;
    line-height: 1.65 !important;
}

/* ---- Mini benefits ---- */
.hero-benefits {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.hero-benefit-item {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    background: white;
    border: 1px solid #E2E8F0;
    border-radius: var(--radius-full);
    padding: 0.4rem 1rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-main);
    box-shadow: var(--shadow-sm);
    white-space: nowrap;
}

.benefit-icon { font-size: 1rem; }

/* ---- CTA Buttons ---- */
.hero-btns {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    align-items: center;
}

/* Pulse glow on primary CTA */
.btn-pulse {
    position: relative;
}

.btn-pulse::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    opacity: 0;
    animation: ctaPulse 2.5s ease-in-out infinite;
    z-index: -1;
}

@keyframes ctaPulse {
    0%   { transform: scale(1);    opacity: 0.5; }
    70%  { transform: scale(1.14); opacity: 0; }
    100% { transform: scale(1.14); opacity: 0; }
}

/* Outline button for secondary CTA */
.btn-hero-outline {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
    box-shadow: 0 4px 12px rgba(79,70,229,0.10);
}

.btn-hero-outline:hover {
    background: rgba(79,70,229,0.06);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(79,70,229,0.18);
}

/* ---- Urgency bar ---- */
.hero-urgency {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.88rem;
    color: #B45309;
    background: rgba(251,191,36,0.12);
    border: 1px solid rgba(251,191,36,0.35);
    border-radius: var(--radius-full);
    padding: 0.4rem 1rem;
}

.urgency-dot {
    width: 8px; height: 8px;
    background: #F59E0B;
    border-radius: 50%;
    animation: trustedPulse 1.5s ease-in-out infinite;
    flex-shrink: 0;
}

/* ---- Visual / Image side ---- */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-img-wrap {
    position: relative;
    width: 420px;
    max-width: 100%;
}

.hero-main-img {
    width: 100%;
    height: 440px;
    object-fit: cover;
    border-radius: 2.5rem;
    box-shadow: 0 30px 60px -10px rgba(79,70,229,0.25), 0 10px 20px rgba(0,0,0,0.08);
    display: block;
}

/* ---- Floating cards ---- */
.hero-float-card {
    position: absolute;
    background: white;
    border-radius: 1rem;
    padding: 0.85rem 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-width: 180px;
    border: 1px solid rgba(255,255,255,0.9);
    animation: floatCard 4s ease-in-out infinite;
}

.hero-float-card--students {
    bottom: -18px;
    left: -28px;
    animation-delay: 0s;
}

.hero-float-card--rating {
    top: 22px;
    right: -26px;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    min-width: 140px;
    animation-delay: 1.5s;
}

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

.float-avatars {
    display: flex;
}

.float-avatar {
    width: 30px; height: 30px;
    border-radius: 50%;
    color: white;
    font-weight: 700;
    font-size: 0.78rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: -7px;
    border: 2px solid white;
}

.float-avatar:first-child { margin-left: 0; }

.float-card-title {
    font-weight: 700;
    font-size: 0.83rem;
    color: var(--text-main);
    line-height: 1.2;
}

.float-card-sub {
    font-size: 0.73rem;
    color: var(--text-muted);
}

.float-stars { font-size: 0.82rem; letter-spacing: -1px; }

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

    .hero-content {
        max-width: 100%;
        align-items: center;
        display: flex;
        flex-direction: column;
    }

    .hero-benefits { justify-content: center; }
    .hero-btns { justify-content: center; }

    .hero-subtitle {
        max-width: 600px;
        text-align: center;
    }

    .hero-visual { order: -1; }

    .hero-img-wrap { width: 340px; }
    .hero-main-img { height: 360px; }
}

@media (max-width: 640px) {
    .hero h1 { font-size: 2.4rem !important; }
    .hero-img-wrap { width: 280px; }
    .hero-main-img { height: 300px; }
    .hero-float-card--students { left: -8px; bottom: -14px; }
    .hero-float-card--rating { right: -8px; top: 14px; }
    .hero-benefits { gap: 0.65rem; }
    .hero-trust-badge { font-size: 0.78rem; }
}
