:root {
    --primary: #0288D1; /* Sky Blue */
    --secondary: #03A9F4; /* Lighter Sky Blue */
    --accent: #FFD700;
    --accent-light: #FFF0E0;
    --dark: #0F172A;
    --text-main: #1E293B;
    --text-muted: #64748B;
    --bg-light: #F8FAFC;
    --white: #FFFFFF;
    --shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 30px 60px rgba(2, 136, 209, 0.1);
    --border-radius: 20px;
    --gradient-blue: linear-gradient(135deg, #0288D1 0%, #03A9F4 100%);
    --glass-bg: rgba(255, 255, 255, 0.8);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

body {
    background-color: var(--white);
    color: var(--text-main);
    line-height: 1.7;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* --- Header --- */
.nav-header {
    height: 90px;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0,0,0,0.03);
    transition: 0.4s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-box {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-box img {
    height: 50px;
    transition: 0.3s;
    border-radius: 50%;
}

.logo-text {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
    transition: 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: 0.3s;
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary);
}

.header-btns {
    display: flex;
    gap: 15px;
    align-items: center;
}

.btn {
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn:hover {
    transform: translateY(-3px);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 10px 20px rgba(0, 71, 171, 0.2);
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 10px 20px rgba(0, 71, 171, 0.2);
}

.btn-primary:hover {
    box-shadow: 0 15px 30px rgba(0, 71, 171, 0.3);
}

/* --- Animated Glowing Button --- */
.btn-glow-animate {
    position: relative;
    z-index: 1;
    overflow: hidden;
    background: #000 !important; /* Dark background to pop the glow */
    border: none !important;
}

.btn-glow-animate::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        transparent 0%,
        var(--primary) 25%,
        var(--accent) 50%,
        var(--secondary) 75%,
        transparent 100%
    );
    animation: rotateBtnBeam 3s linear infinite;
    z-index: -1;
}

.btn-glow-animate::after {
    content: "";
    position: absolute;
    inset: 2px; /* Border thickness */
    background: #000;
    border-radius: 10px; /* Matching button radius minus inset */
    z-index: -1;
}

@keyframes rotateBtnBeam {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.btn-glow-animate:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.4);
}

/* --- Hero Section --- */
.hero-section {
    background: #E8F0FE;
    background-image: radial-gradient(circle at 2px 2px, rgba(0, 71, 171, 0.05) 1px, transparent 0);
    background-size: 32px 32px;
    padding: 100px 0;
    border-bottom-left-radius: 80px;
    border-bottom-right-radius: 80px;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.smart-tag {
    background: var(--accent-light);
    color: var(--accent);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 107, 0, 0.2);
}

.hero-content h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 25px;
    letter-spacing: -2px;
}

.hero-content h1 span {
    color: var(--secondary);
    display: block;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 550px;
}

.hero-btns {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.hero-img-box {
    position: relative;
    display: flex;
    justify-content: center;
    flex: 1.2;
    padding: 10px;
    perspective: 1000px;
}

/* Cinematic Border Beam Container */
.hero-student-img {
    width: 100%;
    max-width: 800px;
    z-index: 1;
    padding: 4px; /* Border thickness */
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 32px;
    position: relative;
    overflow: hidden; /* Clips the rotating beam */
    box-shadow:
        0 10px 30px -5px rgba(0, 0, 0, 0.1),
        0 20px 60px -10px rgba(0, 0, 0, 0.1);
    transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* The Rotating Beam */
.hero-student-img::before {
    content: "";
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: conic-gradient(
        transparent 0deg,
        transparent 160deg,
        var(--primary) 180deg,
        var(--accent) 200deg,
        transparent 220deg,
        transparent 360deg
    );
    animation: rotateBeam 4s linear infinite;
    z-index: -1;
}

/* Inner Image Container */
.hero-student-img img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 28px;
    background: white;
    position: relative;
    z-index: 2;
}

@keyframes rotateBeam {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-student-img:hover {
    transform: translateY(-15px) scale(1.01);
    box-shadow:
        0 30px 70px -15px rgba(0, 71, 171, 0.2),
        0 0 30px 5px rgba(99, 102, 241, 0.1);
}

/* Download Banner Beam Effect */
.download-banner-beam {
    width: 100%;
    position: relative;
    padding: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 22px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.4s ease;
}

.download-banner-beam::before {
    content: "";
    position: absolute;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        transparent 0deg,
        var(--primary) 120deg,
        var(--accent) 180deg,
        var(--secondary) 240deg,
        transparent 360deg
    );
    animation: rotateBeam 3s linear infinite;
    z-index: 0;
}

.download-banner-beam img {
    width: 100%;
    border-radius: 20px;
    position: relative;
    z-index: 1;
    display: block;
    background: white;
}

.download-banner-beam:hover {
    transform: scale(1.02);
}

.hero-student-img:hover {
    transform: scale(1.02) translateY(-15px);
    animation-play-state: paused;
    box-shadow: 0 35px 80px rgba(0, 71, 171, 0.25);
}

.stats-overlay {
    position: absolute;
    right: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 2;
}

.stat-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    padding: 18px 24px;
    border-radius: 18px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 230px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: 0.3s;
}

.stat-card:hover {
    transform: translateX(-10px);
    background: var(--white);
}

.stat-card i {
    font-size: 1.6rem;
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-info h4 { font-size: 1.4rem; font-weight: 800; line-height: 1.2; }
.stat-info p { font-size: 0.85rem; color: var(--text-muted); margin: 0; font-weight: 600; }

/* --- Categories --- */
.categories-section {
    padding-bottom: 80px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 25px;
    margin-top: -60px;
    z-index: 10;
    position: relative;
}

.category-card {
    background: var(--white);
    padding: 35px 25px;
    border-radius: 24px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0,0,0,0.03);
}

.category-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.cat-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.category-card h4 { margin-bottom: 8px; font-weight: 800; font-size: 1.2rem; }
.category-card p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 20px; font-weight: 600; }
.category-card .arrow {
    width: 40px;
    height: 40px;
    background: #F1F5F9;
    color: var(--primary);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.category-card:hover .arrow {
    background: var(--primary);
    color: var(--white);
}

/* --- Main Stats --- */
.main-stats-bar {
    background: var(--gradient-blue);
    padding: 60px 0;
    color: var(--white);
    border-radius: 30px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
    margin: 80px 0;
    box-shadow: 0 20px 50px rgba(0, 71, 171, 0.2);
}

.main-stat-item {
    padding: 0 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.main-stat-item:last-child { border-right: none; }
.main-stat-item h2 { font-size: 2.8rem; font-weight: 800; margin-bottom: 5px; }
.main-stat-item p { font-size: 1rem; font-weight: 500; opacity: 0.8; }

/* --- Popular Courses --- */
.popular-courses {
    padding: 40px 0 100px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -1px;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 30px;
}

.course-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: 0.4s;
    border: 1px solid rgba(0,0,0,0.03);
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.course-img {
    height: 180px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fcfaff;
    overflow: hidden;
}

.course-icon-display {
    font-size: 5rem;
    color: white;
    opacity: 0.9;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.2));
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.course-card:hover .course-icon-display {
    transform: scale(1.15) rotate(5deg);
}

.course-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    padding: 6px 14px;
    border-radius: 50px;
    color: white;
    font-size: 0.7rem;
    font-weight: 800;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 5;
}

/* Multi-color gradients for courses */
.course-grad-1 { background: linear-gradient(135deg, #4285F4, #34A853); }
.course-grad-2 { background: linear-gradient(135deg, #673AB7, #E91E63); }
.course-grad-3 { background: linear-gradient(135deg, #FF9800, #F44336); }
.course-grad-4 { background: linear-gradient(135deg, #00BCD4, #2196F3); }
.course-grad-5 { background: linear-gradient(135deg, #8BC34A, #009688); }
.course-grad-6 { background: linear-gradient(135deg, #FFC107, #FF5722); }
.course-grad-7 { background: linear-gradient(135deg, #795548, #5D4037); }
.course-grad-8 { background: linear-gradient(135deg, #607D8B, #455A64); }
.course-grad-9 { background: linear-gradient(135deg, #9C27B0, #673AB7); }
.course-grad-10 { background: linear-gradient(135deg, #E91E63, #880E4F); }

.course-content {
    padding: 25px;
}

.course-content h4 { margin-bottom: 12px; font-size: 1.2rem; font-weight: 800; color: var(--dark); }
.course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #F1F5F9;
}

.course-meta span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* --- App Test Prep Grid --- */
.app-test-prep-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 60px;
    padding: 100px 0;
    align-items: center;
}

.promo-card {
    background: #F8FAFC;
    padding: 40px;
    border-radius: 30px;
    border: 1px solid #E2E8F0;
    position: relative;
    overflow: hidden;
}

.test-prep-card {
    background: var(--white);
    padding: 40px;
    border-radius: 30px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0,0,0,0.03);
}

.test-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #F8FAFC;
    padding: 20px;
    border-radius: 16px;
    transition: 0.3s;
    cursor: pointer;
    border: 1px solid transparent;
}

.test-item:hover {
    background: var(--white);
    border-color: var(--primary);
    transform: translateX(10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

/* --- Newsletter --- */
.newsletter-box {
    background: var(--primary);
    background-image: linear-gradient(135deg, #0047AB 0%, #0056D2 100%);
    padding: 60px;
    border-radius: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: -100px;
    margin-bottom: 100px;
    color: var(--white);
    box-shadow: 0 30px 60px rgba(0, 71, 171, 0.3);
}

.newsletter-box h3 { font-size: 2rem; font-weight: 800; margin-bottom: 10px; }
.newsletter-box p { opacity: 0.8; font-weight: 500; }

.subscribe-form {
    display: flex;
    gap: 12px;
    background: var(--white);
    padding: 8px;
    border-radius: 16px;
    width: 100%;
    max-width: 500px;
}

.subscribe-form input {
    border: none;
    padding: 10px 20px;
    outline: none;
    flex: 1;
    font-size: 1rem;
    font-weight: 500;
}

/* --- Footer --- */
.footer {
    background: #001A41;
    color: #94A3B8;
    padding: 120px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
}

.footer-logo-text { color: var(--white); font-size: 1.8rem; font-weight: 800; margin-bottom: 25px; letter-spacing: -1px; }
.footer-col h4 { color: var(--white); margin-bottom: 30px; font-size: 1.2rem; font-weight: 700; position: relative; }
.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 40px;
    height: 3px;
    background: var(--accent);
    border-radius: 10px;
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 15px; }
.footer-links a { color: inherit; text-decoration: none; transition: 0.3s; font-weight: 500; }
.footer-links a:hover { color: var(--white); transform: translateX(5px); display: inline-block; }

.social-links a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: 0.3s;
    font-size: 1.2rem;
    text-decoration: none;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-5px);
}

/* --- User Profile in Header --- */
.user-profile-header {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    cursor: pointer;
    transition: 0.3s;
}

.user-profile-header:hover {
    background: #f1f5f9;
}

.user-profile-header img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}

.user-profile-header span {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--dark);
}

.profile-dropdown {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    width: 220px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    border: 1px solid #f1f5f9;
    padding: 10px;
    display: none;
    z-index: 2000;
    animation: slideDown 0.3s ease;
}

.profile-dropdown.active {
    display: block;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.profile-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    text-decoration: none;
    color: #475569;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 12px;
    transition: 0.3s;
}

.profile-dropdown-item:hover {
    background: #f8fafc;
    color: var(--primary);
}

.profile-dropdown-item.logout {
    color: #ef4444;
}

.profile-dropdown-item.logout:hover {
    background: #fef2f2;
}

/* --- Header & Mobile Menu --- */
.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
    width: 45px;
    height: 45px;
    background: var(--bg-light);
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.mobile-menu-btn:hover { background: var(--primary); color: white; }

/* --- Responsive --- */
@media (max-width: 1024px) {
    .nav-links { gap: 15px; }
    .nav-links a { font-size: 0.85rem; }
    .hero-content h1 { font-size: 3.5rem; }
    .main-stats-bar { grid-template-columns: repeat(2, 1fr); gap: 40px; }
    .main-stat-item { border-right: none; }
}

@media (max-width: 992px) {
    .nav-header { height: 75px; }
    .mobile-menu-btn { display: flex; }

    #nav-menu {
        position: fixed;
        top: 75px;
        left: 0;
        width: 100%;
        background: white;
        padding: 30px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        display: none;
        z-index: 999;
    }

    #nav-menu.active { display: block; animation: slideIn 0.3s ease; }

    @keyframes slideIn {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .nav-links { flex-direction: column; gap: 20px; text-align: center; }
    .nav-links a { font-size: 1.1rem; display: block; padding: 10px; }
    .nav-links a::after { display: none; }

    .hero-grid, .app-test-prep-grid { grid-template-columns: 1fr; text-align: center; overflow: hidden; }
    .hero-content h1 { font-size: 3rem; }
    .hero-content p { margin-left: auto; margin-right: auto; }
    .stats-overlay { position: static; flex-direction: row; flex-wrap: wrap; justify-content: center; margin-top: 40px; right: 0; padding: 0 10px; width: 100%; }
    .stat-card { min-width: auto; flex: 1; }
    .hero-btns { justify-content: center; }
    .newsletter-box { flex-direction: column; text-align: center; gap: 40px; }

    .about-grid { grid-template-columns: 1fr !important; gap: 40px !important; text-align: center; }
    .about-content h2 { font-size: 2rem !important; }
}

@media (max-width: 768px) {
    .container { padding: 0 20px; }
    .hero-section { padding: 60px 0 80px; }
    .hero-content h1 { font-size: 2.5rem; letter-spacing: -1px; }
    .hero-content h1 span { display: inline; }
    .hero-btns { flex-direction: column; }
    .btn { width: 100%; justify-content: center; }

    .categories-grid { grid-template-columns: 1fr 1fr; margin-top: -40px; gap: 15px; }
    .category-card { padding: 25px 15px; }
    .cat-icon { font-size: 2.2rem; }

    .main-stats-bar { padding: 40px 0; margin: 50px 0; }
    .main-stat-item h2 { font-size: 2rem; }

    .footer-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .footer-col h4::after { left: 50%; transform: translateX(-50%); }
    .social-links { justify-content: center; }

    .promo-card { padding: 25px; }
    .promo-card > div:first-child { flex-direction: column; text-align: center; }

    .d-none-mobile { display: none !important; }
}

@media (max-width: 480px) {
    .categories-grid { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 2.2rem; }
    .main-stats-bar { border-radius: 20px; }
}
