/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Stunning warm gradient: lavender → pink → coral → red-orange */
    --color-lavender: #e5d4ff;
    --color-pink: #ff6b9d;
    --color-coral: #ff8566;
    --color-red-orange: #ff5544;
    
    --primary-color: #ff6b9d;
    --primary-dark: #e85589;
    --secondary-color: #ff5544;
    --accent-color: #ff8566;
    --text-primary: #2d1b3d;
    --text-secondary: #5a4668;
    --text-light: #8b7a99;
    --bg-primary: #ffffff;
    --bg-secondary: #fef8fb;
    --bg-accent: #fff5f9;
    --border-color: #ffe8f0;
    --shadow-sm: 0 2px 4px 0 rgba(255, 107, 157, 0.1);
    --shadow-md: 0 6px 12px -2px rgba(255, 107, 157, 0.15);
    --shadow-lg: 0 12px 24px -4px rgba(255, 107, 157, 0.2);
    --shadow-xl: 0 24px 48px -8px rgba(255, 107, 157, 0.25);
    
    /* Warm gradient matching the provided image */
    --gradient-primary: linear-gradient(90deg, #e5d4ff 0%, #ff6b9d 35%, #ff8566 65%, #ff5544 100%);
    --gradient-secondary: linear-gradient(135deg, #ff6b9d 0%, #ff8566 50%, #ff5544 100%);
    --gradient-accent: linear-gradient(135deg, #e5d4ff 0%, #ff6b9d 50%, #ff8566 100%);
    --gradient-card: linear-gradient(135deg, rgba(229, 212, 255, 0.08) 0%, rgba(255, 107, 157, 0.05) 100%);
    --gradient-glow: radial-gradient(circle, rgba(255, 107, 157, 0.15), transparent);
    
    --border-radius: 18px;
    --border-radius-lg: 28px;
    --transition: all 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Header Styles - Modern Glassmorphism */
.header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid rgba(200, 182, 255, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.25rem 0;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(200, 182, 255, 0.08);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 32px rgba(200, 182, 255, 0.15);
    border-bottom: 1px solid rgba(200, 182, 255, 0.15);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    box-shadow: var(--shadow-md);
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

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

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

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

.auth-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.admin-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.admin-link:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.login-btn, .signup-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

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

.login-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.signup-btn {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 16px rgba(200, 182, 255, 0.3);
    position: relative;
    overflow: hidden;
}

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

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

.signup-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(200, 182, 255, 0.4);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* Main Content */
.main-content {
    margin-top: 80px;
}

/* Hero Section - Stunning Gradient Background */
.hero-section {
    background: var(--gradient-primary);
    color: white;
    padding: 8rem 0 6rem;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { 
        background: linear-gradient(90deg, #e5d4ff 0%, #ff6b9d 35%, #ff8566 65%, #ff5544 100%);
    }
    50% { 
        background: linear-gradient(90deg, #ff5544 0%, #ff8566 35%, #ff6b9d 65%, #e5d4ff 100%);
    }
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
    filter: blur(40px);
    opacity: 0.3;
}

.shape-1 {
    width: 140px;
    height: 140px;
    top: 15%;
    left: 8%;
    background: radial-gradient(circle, rgba(229, 212, 255, 0.7), transparent);
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    top: 55%;
    right: 12%;
    background: radial-gradient(circle, rgba(255, 107, 157, 0.6), transparent);
    animation-delay: 2s;
}

.shape-3 {
    width: 120px;
    height: 120px;
    bottom: 18%;
    left: 18%;
    background: radial-gradient(circle, rgba(255, 133, 102, 0.7), transparent);
    animation-delay: 4s;
}

.shape-4 {
    width: 170px;
    height: 170px;
    top: 28%;
    right: 28%;
    background: radial-gradient(circle, rgba(255, 85, 68, 0.6), transparent);
    animation-delay: 1.5s;
}

@keyframes float {
    0%, 100% { 
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
    33% { 
        transform: translate(-30px, -30px) scale(1.1);
        opacity: 0.5;
    }
    66% { 
        transform: translate(30px, -15px) scale(0.9);
        opacity: 0.4;
    }
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-left {
    flex: 1;
}

.hero-badges {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.badge {
    background: rgba(255, 255, 255, 0.25);
    padding: 0.6rem 1.25rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(16px) saturate(180%);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    transition: var(--transition);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.badge:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.badge-primary {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.badge-secondary {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.title-line {
    display: block;
    opacity: 0.95;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.title-highlight {
    display: block;
    color: #ffffff !important;
    text-shadow: 
        0 0 30px rgba(255, 255, 255, 0.8),
        0 0 60px rgba(255, 61, 143, 0.5),
        0 4px 24px rgba(0, 0, 0, 0.3),
        2px 2px 0 rgba(255, 61, 143, 0.3),
        -2px -2px 0 rgba(255, 136, 68, 0.3);
    position: relative;
    font-weight: 900 !important;
    letter-spacing: -0.01em;
    animation: glowPulse 3s ease-in-out infinite;
    -webkit-text-fill-color: #ffffff !important;
    background: none !important;
    filter: none;
}

@keyframes glowPulse {
    0%, 100% { 
        text-shadow: 
            0 0 30px rgba(255, 255, 255, 0.8),
            0 0 60px rgba(255, 61, 143, 0.5),
            0 4px 24px rgba(0, 0, 0, 0.3),
            2px 2px 0 rgba(255, 61, 143, 0.3),
            -2px -2px 0 rgba(255, 136, 68, 0.3);
    }
    50% { 
        text-shadow: 
            0 0 40px rgba(255, 255, 255, 1),
            0 0 80px rgba(255, 61, 143, 0.7),
            0 4px 24px rgba(0, 0, 0, 0.3),
            3px 3px 0 rgba(255, 61, 143, 0.4),
            -3px -3px 0 rgba(255, 136, 68, 0.4);
        transform: scale(1.02);
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    line-height: 1.6;
    max-width: 600px;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-circle {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
}

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

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.cta-button {
    padding: 1.2rem 2.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cta-button:hover::before {
    width: 300px;
    height: 300px;
}

.cta-button.primary {
    background: white;
    color: #c8b6ff;
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 1;
}

.cta-button.primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(255, 255, 255, 0.4);
    color: #a89cdf;
}

.cta-button.secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(16px) saturate(180%);
}

.cta-button.secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.7);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.2);
}

.trust-indicators {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.trust-text {
    font-size: 0.9rem;
    opacity: 0.8;
}

.institution-logos {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.logo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.8;
    transition: var(--transition);
}

.logo-item:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.logo-item i {
    font-size: 1.5rem;
}

.logo-item span {
    font-size: 0.8rem;
    opacity: 0.9;
}

/* Hero Right Side */
.hero-right {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-visual {
    position: relative;
    max-width: 500px;
    width: 100%;
}

.video-demo-container {
    position: relative;
    margin-bottom: 2rem;
}

.video-preview {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(255, 255, 255, 0.15);
    transition: var(--transition);
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.video-preview:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 70px rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    min-height: 350px;
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1)),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 300"><defs><linearGradient id="bg" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:rgba(255,255,255,0.95)"/><stop offset="100%" style="stop-color:rgba(255,200,200,0.85)"/></linearGradient></defs><rect fill="url(%23bg)" width="400" height="300"/><circle cx="120" cy="100" r="40" fill="%23ff3d8f" opacity="0.3"/><circle cx="280" cy="150" r="50" fill="%23ff6b5a" opacity="0.3"/><circle cx="200" cy="200" r="35" fill="%23ff8844" opacity="0.3"/><path d="M50,250 Q100,220 150,250 T250,250" stroke="%23ff3d8f" stroke-width="3" fill="none" opacity="0.4"/><rect x="150" y="80" width="100" height="80" rx="10" fill="white" opacity="0.4"/><circle cx="200" cy="120" r="15" fill="%23ff3d8f"/><polygon points="195,115 205,120 195,125" fill="white"/></svg>');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    min-height: 350px;
    max-height: 450px;
    display: block;
    object-fit: cover;
    border-radius: var(--border-radius-lg);
    opacity: 1;
    transition: opacity 0.5s ease;
    position: relative;
    z-index: 1;
}

.video-thumbnail img[style*="opacity: 0"] {
    opacity: 0 !important;
}

/* Loading state placeholder */
.video-thumbnail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08)),
        linear-gradient(45deg, #ff3d8f22 25%, transparent 25%, transparent 75%, #ff3d8f22 75%, #ff3d8f22),
        linear-gradient(45deg, #ff3d8f22 25%, transparent 25%, transparent 75%, #ff3d8f22 75%, #ff3d8f22);
    background-size: 100% 100%, 20px 20px, 20px 20px;
    background-position: 0 0, 0 0, 10px 10px;
    border-radius: var(--border-radius-lg);
    animation: shimmerBg 2s infinite;
}

@keyframes shimmerBg {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.5; }
}

.video-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 16px rgba(255, 61, 143, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.5);
    z-index: 10;
}

.video-badge i {
    color: #ff3d8f;
    font-size: 0.9rem;
}

.video-badge span {
    color: #2d3748;
    font-weight: 700;
    font-size: 0.85rem;
}

/* Learning Icons Overlay - Floating Educational Icons */
.learning-icons-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 2;
}

.icon-float {
    position: absolute;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(255, 61, 143, 0.3);
    animation: floatIcon 6s ease-in-out infinite;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.icon-float i {
    font-size: 1.3rem;
    background: linear-gradient(135deg, #ff3d8f, #ff8844);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.icon-1 {
    top: 15%;
    left: 10%;
    animation-delay: 0s;
}

.icon-2 {
    top: 25%;
    right: 15%;
    animation-delay: 1.5s;
}

.icon-3 {
    bottom: 25%;
    left: 15%;
    animation-delay: 3s;
}

.icon-4 {
    bottom: 15%;
    right: 20%;
    animation-delay: 4.5s;
}

@keyframes floatIcon {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-15px) rotate(10deg);
        opacity: 1;
    }
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
}

.play-button i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-left: 5px;
}

.play-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: white;
    box-shadow: var(--shadow-xl);
}

.video-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 2rem 1rem 1rem;
    color: white;
}

.overlay-content h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.overlay-content p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* AI Tutor Demo */
.ai-tutor-demo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.tutor-avatar {
    position: relative;
    width: 50px;
    height: 50px;
    background: var(--gradient-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.avatar-ring {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

.tutor-message {
    flex: 1;
}

.message-bubble {
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    border-radius: 20px;
    margin-bottom: 0.5rem;
    position: relative;
}

.message-bubble::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 8px solid rgba(255, 255, 255, 0.9);
}

.typing-indicator {
    display: flex;
    gap: 4px;
    padding-left: 1rem;
}

.typing-indicator span {
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(1) { animation-delay: 0s; }
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-10px); }
}

/* Learning Progress */
.learning-progress {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.progress-percentage {
    font-weight: 700;
    color: var(--secondary-color);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-accent);
    border-radius: 4px;
    transition: width 2s ease-in-out;
    animation: progressFill 2s ease-out;
}

@keyframes progressFill {
    from { width: 0%; }
    to { width: 75%; }
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Features Section - Modern Card Design */
.features-section {
    padding: 8rem 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9ff 100%);
    position: relative;
}

.features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-primary);
}

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

.section-badge {
    display: inline-block;
    background: var(--gradient-primary);
    color: white;
    padding: 0.65rem 1.75rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 16px rgba(200, 182, 255, 0.3);
    transition: var(--transition);
}

.section-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(200, 182, 255, 0.4);
}

.section-title {
    font-size: 3.25rem;
    font-weight: 900;
    margin-bottom: 1rem;
    color: var(--text-primary);
    line-height: 1.2;
    letter-spacing: -0.02em;
    position: relative;
    background: linear-gradient(135deg, var(--text-primary), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

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

.feature-card {
    background: white;
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 4px 16px rgba(200, 182, 255, 0.08);
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    background-clip: padding-box;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.feature-card::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius-lg);
    opacity: 0;
    z-index: -1;
    transition: var(--transition);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover::after {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(200, 182, 255, 0.2);
    background: white;
}

.feature-icon {
    margin-bottom: 1.5rem;
}

.icon-background {
    width: 85px;
    height: 85px;
    background: var(--gradient-accent);
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.1rem;
    box-shadow: 0 8px 28px rgba(255, 107, 157, 0.35);
    transition: var(--transition);
}

.feature-card:hover .icon-background {
    transform: rotate(5deg) scale(1.1);
    box-shadow: 0 12px 36px rgba(255, 107, 157, 0.45);
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.feature-benefits {
    list-style: none;
    margin-bottom: 2rem;
}

.feature-benefits li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.feature-benefits i {
    color: var(--accent-color);
    font-size: 0.9rem;
}

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

.learn-more-btn {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.learn-more-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Subjects Section */
.subjects-section {
    padding: 8rem 0;
    background: linear-gradient(180deg, #f8f9ff 0%, #ffffff 100%);
    position: relative;
}

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

.subject-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 4px 16px rgba(200, 182, 255, 0.08);
    transition: var(--transition);
    border: 2px solid transparent;
    text-align: center;
    position: relative;
    overflow: hidden;
    background-clip: padding-box;
}

.subject-card::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius-lg);
    opacity: 0;
    z-index: -1;
    transition: var(--transition);
}

.subject-card:hover::after {
    opacity: 0.15;
}

.subject-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(200, 182, 255, 0.25);
}

.subject-icon {
    width: 95px;
    height: 95px;
    background: var(--gradient-secondary);
    border-radius: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2.6rem;
    box-shadow: 0 10px 30px rgba(255, 85, 68, 0.4);
    position: relative;
    z-index: 2;
    transition: var(--transition);
}

.subject-card:hover .subject-icon {
    transform: rotate(-5deg) scale(1.1);
    box-shadow: 0 14px 40px rgba(255, 85, 68, 0.5);
}

.subject-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    position: relative;
    z-index: 2;
}

.subject-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.subject-levels {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.level-tag {
    background: var(--bg-accent);
    color: var(--text-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.subject-stats {
    display: flex;
    justify-content: space-around;
    position: relative;
    z-index: 2;
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* How It Works Section */
.how-it-works {
    padding: 8rem 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9ff 100%);
    position: relative;
}

.steps-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.step-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    transform: translateY(-50%);
    z-index: 1;
}

.step {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.step:nth-child(even) {
    flex-direction: row-reverse;
}

.step-number {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 800;
    box-shadow: 0 8px 24px rgba(200, 182, 255, 0.4);
    flex-shrink: 0;
    transition: var(--transition);
}

.step:hover .step-number {
    transform: scale(1.15) rotate(360deg);
}

.step-content {
    flex: 1;
    text-align: center;
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.step-icon {
    width: 75px;
    height: 75px;
    background: var(--gradient-secondary);
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.85rem;
    box-shadow: 0 8px 24px rgba(255, 85, 68, 0.35);
    transition: var(--transition);
}

.step:hover .step-icon {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 10px 30px rgba(255, 85, 68, 0.45);
}

.step-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.step-content p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Testimonials Section */
.testimonials-section {
    padding: 8rem 0;
    background: linear-gradient(180deg, #f8f9ff 0%, #ffffff 100%);
}

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

.testimonial-card {
    background: white;
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 4px 16px rgba(200, 182, 255, 0.08);
    border: 2px solid transparent;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    background-clip: padding-box;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 8rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.15;
    font-family: Georgia, serif;
    font-weight: 700;
}

.testimonial-card::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius-lg);
    opacity: 0;
    z-index: -1;
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 32px rgba(200, 182, 255, 0.2);
}

.testimonial-card:hover::after {
    opacity: 0.15;
}

.testimonial-content {
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.stars {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.stars i {
    color: var(--secondary-color);
    font-size: 1rem;
}

.testimonial-content p {
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1.1rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 2;
}

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

.author-info h4 {
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.author-info span {
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: block;
}

.improvement {
    color: var(--accent-color) !important;
    font-weight: 600;
}

/* Pricing Section */
.pricing-section {
    padding: 8rem 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9ff 100%);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    background: white;
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 4px 16px rgba(200, 182, 255, 0.08);
    border: 2px solid transparent;
    transition: var(--transition);
    position: relative;
    text-align: center;
    background-clip: padding-box;
}

.pricing-card::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius-lg);
    opacity: 0;
    z-index: -1;
    transition: var(--transition);
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(200, 182, 255, 0.2);
}

.pricing-card:hover::after {
    opacity: 0.1;
}

.pricing-card.featured {
    transform: scale(1.08);
    box-shadow: 0 8px 32px rgba(200, 182, 255, 0.25);
}

.pricing-card.featured::after {
    opacity: 0.2;
}

.pricing-card.featured:hover {
    transform: scale(1.08) translateY(-10px);
    box-shadow: 0 24px 48px rgba(200, 182, 255, 0.3);
}

.plan-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.plan-header {
    margin-bottom: 2rem;
}

.plan-header h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
}

.currency {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

.amount {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
}

.period {
    font-size: 1rem;
    color: var(--text-secondary);
}

.plan-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.plan-features {
    list-style: none;
    margin-bottom: 2rem;
    text-align: left;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.plan-features i {
    color: var(--accent-color);
    font-size: 0.9rem;
}

.plan-btn {
    width: 100%;
    padding: 1.2rem;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    transition: var(--transition);
    background: var(--gradient-primary);
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(200, 182, 255, 0.3);
}

.plan-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.plan-btn:hover::before {
    width: 400px;
    height: 400px;
}

.plan-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(200, 182, 255, 0.4);
}

.plan-btn.featured {
    background: var(--gradient-secondary);
    box-shadow: 0 4px 16px rgba(255, 107, 107, 0.3);
}

.plan-btn.featured:hover {
    box-shadow: 0 8px 24px rgba(255, 107, 107, 0.4);
}

/* CTA Section - Eye-Catching Gradient */
.cta-section {
    padding: 8rem 0;
    background: var(--gradient-primary);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15), transparent);
    border-radius: 50%;
    top: -250px;
    right: -100px;
    animation: float 10s ease-in-out infinite;
}

.cta-section::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent);
    border-radius: 50%;
    bottom: -200px;
    left: -50px;
    animation: float 12s ease-in-out infinite reverse;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    letter-spacing: -0.02em;
}

.cta-content p {
    font-size: 1.35rem;
    margin-bottom: 3rem;
    opacity: 0.95;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 4rem 0 1rem;
}

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

.footer-section h4 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.footer-section p {
    color: #9ca3af;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

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

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

.footer-section ul li a {
    color: #9ca3af;
    text-decoration: none;
    transition: var(--transition);
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

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

.social-link {
    width: 40px;
    height: 40px;
    background: #374151;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: #9ca3af;
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

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

/* Authentication Modal */
.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.auth-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: var(--border-radius-lg);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: var(--transition);
    box-shadow: var(--shadow-xl);
}

.auth-modal.active .modal-content {
    transform: scale(1);
}

.modal-header {
    padding: 2rem 2rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 700;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    color: var(--text-primary);
    background: var(--bg-accent);
}

.modal-body {
    padding: 2rem;
}

.auth-tabs {
    display: flex;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.tab-btn {
    flex: 1;
    padding: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: var(--transition);
    border-bottom: 2px solid transparent;
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.auth-providers {
    margin-bottom: 2rem;
}

.google-auth-btn {
    width: 100%;
    padding: 1rem;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.google-auth-btn:hover {
    border-color: var(--primary-color);
    background: var(--bg-accent);
}

.divider {
    text-align: center;
    margin: 2rem 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
}

.divider span {
    background: white;
    padding: 0 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.form-group input,
.form-group select {
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.forgot-password:hover {
    text-decoration: underline;
}

.auth-submit-btn {
    padding: 1rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.auth-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.loading-spinner {
    text-align: center;
    color: white;
}

.spinner-ring {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .subjects-grid {
        grid-template-columns: 1fr;
    }
    
    .step {
        flex-direction: column !important;
        text-align: center;
    }
    
    .step-line {
        display: none;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .pricing-card.featured:hover {
        transform: translateY(-8px);
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .modal-content {
        width: 95%;
        margin: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-badges {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button {
        width: 100%;
        max-width: 300px;
    }
}

/* Animation Classes */
[data-aos] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

[data-aos="fade-up"] {
    transform: translateY(30px);
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
}

[data-aos="fade-left"] {
    transform: translateX(-30px);
}

[data-aos="fade-left"].aos-animate {
    transform: translateX(0);
}

[data-aos="fade-right"] {
    transform: translateX(30px);
}

[data-aos="fade-right"].aos-animate {
    transform: translateX(0);
}

[data-aos="zoom-in"] {
    transform: scale(0.8);
}

[data-aos="zoom-in"].aos-animate {
    transform: scale(1);
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    padding: 1rem 1.5rem;
    z-index: 10000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    border-left: 4px solid var(--primary-color);
    max-width: 400px;
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    border-left-color: #10b981;
}

.notification-error {
    border-left-color: #ef4444;
}

.notification-info {
    border-left-color: #3b82f6;
}

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

.notification-content i {
    font-size: 1.25rem;
}

.notification-success .notification-content i {
    color: #10b981;
}

.notification-error .notification-content i {
    color: #ef4444;
}

.notification-info .notification-content i {
    color: #3b82f6;
}

.notification-content span {
    color: var(--text-primary);
    font-weight: 500;
}

/* Responsive notifications */
@media (max-width: 768px) {
    .notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        transform: translateY(-100%);
    }
    
    .notification.show {
        transform: translateY(0);
    }
}

/* Enhanced Role Selection Modal Styles */
.role-selection-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease-out;
}

.role-selection-content {
    background: var(--bg-primary);
    border-radius: var(--border-radius-lg);
    padding: 0;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    animation: slideInUp 0.4s ease-out;
    border: 1px solid var(--border-color);
}

.role-selection-header {
    text-align: center;
    padding: 2rem 2rem 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.welcome-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.role-selection-header h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.user-info {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.instruction {
    font-size: 1.1rem;
    opacity: 0.8;
    margin-bottom: 0;
}

.role-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    padding: 2rem;
}

.role-card {
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

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

.role-card:hover::before {
    left: 100%;
}

.role-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.role-card.selected {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(79, 70, 229, 0.05));
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.role-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.role-card:hover .role-icon {
    transform: scale(1.1);
}

.role-card.selected .role-icon {
    color: var(--primary-dark);
}

.role-info h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.role-info p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.role-features {
    list-style: none;
    margin-bottom: 1.5rem;
    text-align: left;
}

.role-features li {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.role-features i {
    color: var(--accent-color);
    margin-right: 0.5rem;
    font-size: 0.8rem;
}

.role-select-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.role-select-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.role-select-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.modal-actions {
    padding: 1rem 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    background: var(--bg-secondary);
    border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
}

.role-disclaimer {
    text-align: center;
    padding: 1rem 2rem;
    background: var(--bg-accent);
    border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
}

.role-disclaimer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

.role-disclaimer i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .role-selection-content {
        width: 95%;
        margin: 1rem;
    }
    
    .role-options {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }
    
    .role-selection-header {
        padding: 1.5rem 1rem 1rem;
    }
    
    .welcome-icon {
        font-size: 2.5rem;
    }
    
    .role-selection-header h3 {
        font-size: 1.5rem;
    }
    
    .role-card {
        padding: 1rem;
    }
    
    .role-icon {
        font-size: 2.5rem;
    }
    
    .modal-actions,
    .role-disclaimer {
        padding: 1rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form Help Text */
.form-help {
    display: block;
    color: var(--text-light);
    font-size: 0.85rem;
    margin-top: 0.25rem;
    line-height: 1.4;
}