/* --- Variables & Reset --- */
:root {
    --primary: #0f172a;    /* Navy Blue */
    --accent: #3b82f6;     /* Bright Blue */
    --gold: #f59e0b;       /* Highlight Color */
    --bg: #f8fafc;         /* Light Gray BG */
    --surface: #ffffff;    /* White Cards */
    --text: #334155;       /* Dark Gray Text */
    --text-light: #64748b; /* Light Gray Text */
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --radius: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }
body { background-color: var(--bg); color: var(--text); line-height: 1.6; overflow-x: hidden; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

/* --- Navigation --- */
.navbar {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    padding: 0.8rem 0;
}

.nav-container {
    max-width: 1200px; margin: 0 auto; padding: 0 20px;
    display: flex; justify-content: space-between; align-items: center;
}

.brand-logo { height: 45px; width: auto; display: block; }

.nav-links { display: flex; gap: 2.5rem; }
.nav-links a { font-weight: 500; color: var(--text); font-size: 0.95rem; }
.nav-links a:hover, .nav-links a.active { color: var(--accent); }

.nav-actions { display: flex; gap: 1rem; align-items: center; }
.mobile-toggle { display: none; cursor: pointer; color: var(--primary); }

/* --- Buttons --- */
.btn {
    padding: 0.6rem 1.4rem; border-radius: 6px; font-weight: 600;
    font-size: 0.9rem; cursor: pointer; border: none; display: inline-block;
}
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: #2563eb; transform: translateY(-2px); }
.btn-outline { background: transparent; border: 1px solid var(--text-light); color: var(--text); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-text { background: none; color: var(--text); font-weight: 600; }
.btn-full { width: 100%; background: var(--primary); color: white; margin-top: 1rem; }
.btn-lg { padding: 14px 32px; font-size: 1rem; }
.shadow-hover { box-shadow: 0 10px 20px -5px rgba(59, 130, 246, 0.4); transition: 0.3s; }
.shadow-hover:hover { transform: translateY(-3px); box-shadow: 0 15px 25px -5px rgba(59, 130, 246, 0.5); }
.icon-btn { display: flex; align-items: center; gap: 8px; }

/* --- Hero Section --- */
.hero-section {
    position: relative; padding: 6rem 20px 4rem;
    background: linear-gradient(to bottom, #ffffff 0%, #f8fafc 100%);
    overflow: hidden; min-height: 90vh; display: flex; align-items: center;
}

.hero-container {
    max-width: 1200px; margin: 0 auto; width: 100%;
    display: grid; grid-template-columns: 1fr 1fr; gap: 4rem;
    align-items: center; position: relative; z-index: 2;
}

/* Background Decorations */
.hero-bg-shape { position: absolute; border-radius: 50%; filter: blur(80px); z-index: 1; opacity: 0.5; }
.shape-1 { width: 400px; height: 400px; background: #dbeafe; top: -100px; right: -100px; }
.shape-2 { width: 300px; height: 300px; background: #fef3c7; bottom: 50px; left: -100px; }

/* Left Text Content */
.hero-badge {
    display: inline-flex; align-items: center; gap: 10px;
    background: white; padding: 8px 16px; border-radius: 30px;
    border: 1px solid #e2e8f0; font-size: 0.85rem; font-weight: 600;
    color: var(--primary); margin-bottom: 24px; box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.pulse-dot {
    width: 8px; height: 8px; background: #22c55e; border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2); animation: pulse 2s infinite;
}

.hero-text h1 {
    font-size: 3.5rem; line-height: 1.1; font-weight: 800;
    color: var(--primary); margin-bottom: 20px; letter-spacing: -1px;
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent) 0%, #2563eb 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.hero-sub {
    font-size: 1.1rem; color: var(--text-light); margin-bottom: 35px;
    max-width: 500px; line-height: 1.7;
}

.hero-actions { display: flex; gap: 15px; margin-bottom: 45px; }

/* Social Proof */
.hero-trust { display: flex; align-items: center; gap: 20px; border-top: 1px solid #e2e8f0; padding-top: 25px; }
.avatar-group { display: flex; }
.avatar {
    width: 35px; height: 35px; border-radius: 50%; border: 2px solid white;
    background: #cbd5e1; display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem; font-weight: 700; color: white; margin-left: -10px;
}
.avatar:first-child { margin-left: 0; }
.avatar.count { background: var(--primary); font-size: 0.7rem; }
.trust-text { display: flex; flex-direction: column; font-size: 0.85rem; font-weight: 500; }
.stars { display: flex; gap: 2px; margin-bottom: 2px; }
.star-icon { width: 14px; height: 14px; color: var(--gold); }

/* Right Visual */
.hero-visual { display: flex; justify-content: center; perspective: 1000px; }
.composition-container { position: relative; width: 450px; height: 500px; }
.card-layer { position: absolute; border-radius: 20px; transition: 0.3s; }
.back-card {
    top: 20px; right: 20px; width: 90%; height: 90%;
    background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);
    transform: rotate(5deg); border: 1px solid #bfdbfe; z-index: 1;
}
.main-card {
    top: 50px; left: 0; width: 90%; height: 80%;
    background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(10px);
    border: 1px solid white; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
    z-index: 2; padding: 30px; display: flex; flex-direction: column;
}

/* Dashboard Mockup */
.card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 40px; }
.card-title { display: flex; gap: 15px; align-items: center; }
.icon-box {
    width: 45px; height: 45px; background: #f1f5f9; border-radius: 10px;
    display: flex; align-items: center; justify-content: center; color: var(--primary);
}
.card-title h4 { font-size: 1.1rem; color: var(--primary); margin-bottom: 2px; }
.card-title small { color: var(--text-light); font-size: 0.85rem; }
.badge-success {
    background: #dcfce7; color: #166534; padding: 4px 10px;
    border-radius: 4px; font-size: 0.75rem; font-weight: 700;
}
.chart-area {
    display: flex; justify-content: space-between; align-items: flex-end;
    height: 150px; border-bottom: 1px solid #f1f5f9; padding-bottom: 10px;
}
.bar { width: 12%; background: #e2e8f0; border-radius: 4px 4px 0 0; transition: 0.5s; }
.bar.active { background: var(--accent); box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3); }

/* Floating Elements */
.float-element {
    position: absolute; background: white; padding: 12px 16px;
    border-radius: 12px; box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    display: flex; align-items: center; gap: 12px; z-index: 3;
    animation: float 6s ease-in-out infinite; min-width: 180px;
}
.float-1 { top: 20px; left: -20px; border-left: 4px solid #10b981; }
.float-2 { bottom: 80px; right: -30px; animation-delay: 3s; border-left: 4px solid #f59e0b; }
.check-icon {
    width: 24px; height: 24px; background: #10b981; color: white;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.icon-circle { width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; }
.float-element div strong { display: block; font-size: 0.9rem; color: var(--primary); }
.float-element div small { font-size: 0.75rem; color: var(--text-light); }

/* --- Courses & Sections --- */
.section-padding { padding: 5rem 20px; max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { font-size: 2.2rem; color: var(--primary); margin-bottom: 0.5rem; }

.filter-container { display: flex; justify-content: center; gap: 1rem; margin-bottom: 3rem; flex-wrap: wrap; }
.filter-btn {
    background: white; border: 1px solid var(--border); padding: 10px 24px;
    border-radius: 30px; cursor: pointer; font-size: 0.95rem; transition: 0.3s;
    color: var(--text-light); font-weight: 500;
}
.filter-btn.active, .filter-btn:hover { background: var(--primary); color: white; border-color: var(--primary); }

.course-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2.5rem; }
.course-card {
    background: var(--surface); border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow); transition: 0.3s; border: 1px solid var(--border);
}
.course-card:hover { transform: translateY(-5px); box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); }
.card-image { height: 180px; background-color: #cbd5e1; }
.foundation-bg { background: linear-gradient(120deg, #fbc2eb 0%, #a6c1ee 100%); }
.boards-bg { background: linear-gradient(120deg, #84fab0 0%, #8fd3f4 100%); }
.competitive-bg { background: linear-gradient(120deg, #e0c3fc 0%, #8ec5fc 100%); }
.neet-bg { background: linear-gradient(120deg, #f093fb 0%, #f5576c 100%); }
.card-body { padding: 1.5rem; }
.badge { font-size: 0.75rem; font-weight: 700; color: var(--accent); text-transform: uppercase; margin-bottom: 0.5rem; display: block; }
.card-body h3 { font-size: 1.3rem; margin-bottom: 0.5rem; color: var(--primary); }
.card-body p { font-size: 0.95rem; color: var(--text-light); margin-bottom: 1.5rem; }
.card-meta { display: flex; justify-content: space-between; font-size: 0.9rem; color: var(--text-light); border-top: 1px solid #f1f5f9; padding-top: 1rem; }
.rating { display: flex; align-items: center; gap: 5px; color: var(--text); font-weight: 600; }
.star-small { width: 14px; height: 14px; color: var(--gold); }

/* --- Features --- */
.features-section { background: var(--surface); padding: 5rem 20px; }
.features-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 3rem; }
.feature-item { background: var(--bg); padding: 2.5rem; border-radius: var(--radius); text-align: center; }
.feature-icon-circle {
    width: 60px; height: 60px; background: var(--accent); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
}
.feature-item h4 { font-size: 1.25rem; margin-bottom: 0.5rem; color: var(--primary); }
.feature-item p { color: var(--text-light); }

/* --- Footer --- */
footer { background: var(--primary); color: white; padding: 4rem 20px 1rem; }
.footer-container {
    max-width: 1200px; margin: 0 auto 3rem;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 3rem;
}
.footer-logo { height: 40px; margin-bottom: 15px; filter: brightness(0) invert(1); }
.footer-brand p { color: #94a3b8; font-size: 0.9rem; line-height: 1.6; }
.footer-links h4, .footer-contact h4 { margin-bottom: 1.5rem; color: var(--accent); }
.footer-links a { display: block; margin-bottom: 0.8rem; color: #cbd5e1; font-size: 0.95rem; }
.footer-links a:hover { color: white; }
.footer-contact p { color: #cbd5e1; margin-bottom: 0.8rem; font-size: 0.95rem; }
.copyright { text-align: center; border-top: 1px solid #1e293b; padding-top: 1.5rem; color: #64748b; font-size: 0.85rem; max-width: 1200px; margin: 0 auto; }

/* --- Animations --- */
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); } 70% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }

/* --- Mobile Responsive --- */
@media (max-width: 992px) {
    .hero-container { grid-template-columns: 1fr; text-align: center; gap: 3rem; }
    .hero-text h1 { font-size: 2.8rem; }
    .hero-sub { margin: 0 auto 30px; }
    .hero-actions { justify-content: center; }
    .hero-trust { justify-content: center; flex-direction: column; }
    .hero-visual { display: none; }
}
@media (max-width: 768px) {
    .nav-links, .nav-actions { display: none; }
    .mobile-toggle { display: block; }
    .navbar.mobile-active .nav-links {
        display: flex; flex-direction: column; position: absolute;
        top: 70px; left: 0; width: 100%; background: white;
        padding: 1.5rem; box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }
}