/* ===== CSS Variables & Reset ===== */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-card: #ffffff;
    --bg-card-hover: #fff5f5;
    --text-primary: #1a1a2e;
    --text-secondary: #555770;
    --text-muted: #8b8fa8;
    --accent-red: #DC2626;
    --accent-darkred: #991B1B;
    --accent-lightred: #FEE2E2;
    --accent-green: #16a34a;
    --accent-cyan: #DC2626;
    --accent-purple: #B91C1C;
    --accent-pink: #DC2626;
    --gradient-primary: linear-gradient(135deg, #DC2626, #991B1B);
    --gradient-warm: linear-gradient(135deg, #DC2626, #B91C1C);
    --gradient-cool: linear-gradient(135deg, #DC2626, #EF4444);
    --border-color: rgba(0, 0, 0, 0.08);
    --shadow-glow: 0 4px 24px rgba(220, 38, 38, 0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Space Grotesk', 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

img { max-width: 100%; }

ul { list-style: none; }

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

/* ===== Canvas Background ===== */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.4s ease;
    backdrop-filter: blur(0px);
}

.navbar.scrolled {
    padding: 10px 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo-img {
    height: 100px;
    width: auto;
    object-fit: contain;
    display: block;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1001;
}

.logo-icon {
    width: 40px;
    height: 40px;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo-highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.3s;
    position: relative;
}

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

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

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

/* --- More Dropdown --- */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    font-family: inherit;
    padding: 0;
    transition: color 0.3s;
}

.nav-dropdown-toggle:hover {
    color: var(--text-primary);
}

.nav-dropdown-toggle svg {
    transition: transform 0.3s;
}

.nav-dropdown:hover .nav-dropdown-toggle svg {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    min-width: 200px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.25s ease;
    z-index: 1002;
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.nav-dropdown-menu a:hover {
    background: var(--accent-lightred);
    color: var(--accent-red);
}

.nav-dropdown-menu a svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--text-muted);
    transition: color 0.2s;
}

.nav-dropdown-menu a:hover svg {
    color: var(--accent-red);
}

.nav-dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 6px 0;
}

@media (max-width: 768px) {
    .nav-dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: transparent;
        padding: 0 0 0 16px;
        min-width: auto;
        display: none;
    }
    .nav-dropdown:focus-within .nav-dropdown-menu,
    .nav-dropdown.open .nav-dropdown-menu {
        display: block;
    }
    .nav-dropdown-menu a {
        padding: 8px 12px;
    }
}

.nav-btn {
    padding: 10px 24px;
    background: var(--gradient-primary);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    transition: transform 0.3s, box-shadow 0.3s;
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(220, 38, 38, 0.3);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s;
}

/* ===== Quick Aggregate Calculator Bar ===== */
.quick-calc-bar {
    position: sticky;
    top: 68px;
    z-index: 999;
    background: linear-gradient(135deg, #1a0505 0%, #2d0a0a 50%, #1a0505 100%);
    border-bottom: 1px solid rgba(220, 38, 38, 0.3);
    box-shadow: 0 4px 24px rgba(220, 38, 38, 0.15);
    padding: 12px 24px;
}

.quick-calc-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.quick-calc-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #FEE2E2;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
}

.quick-calc-label svg {
    color: #DC2626;
    flex-shrink: 0;
}

.quick-calc-fields {
    display: flex;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.qc-field {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(220, 38, 38, 0.25);
    border-radius: 8px;
    padding: 6px 12px;
    flex: 1;
    min-width: 0;
}

.qc-field label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #fca5a5;
    white-space: nowrap;
    flex-shrink: 0;
}

.qc-max {
    color: rgba(252, 165, 165, 0.5);
    font-weight: 400;
}

.qc-field input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font-display);
    text-align: right;
    width: 100%;
}

.qc-field input::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.quick-calc-result {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(220, 38, 38, 0.15);
    border: 1px solid rgba(220, 38, 38, 0.4);
    border-radius: 8px;
    padding: 8px 16px;
    flex-shrink: 0;
}

.qc-result-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #fca5a5;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.qc-result-value {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
    min-width: 60px;
    text-align: center;
}

.qc-merit {
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: 20px;
    padding: 4px 12px;
    flex-shrink: 0;
    transition: all 0.3s;
}

.qc-merit.high { background: rgba(22, 163, 74, 0.25); color: #4ade80; border: 1px solid rgba(22, 163, 74, 0.4); }
.qc-merit.mid { background: rgba(234, 179, 8, 0.2); color: #facc15; border: 1px solid rgba(234, 179, 8, 0.35); }
.qc-merit.low { background: rgba(220, 38, 38, 0.2); color: #f87171; border: 1px solid rgba(220, 38, 38, 0.35); }

@media (max-width: 768px) {
    .quick-calc-bar { padding: 10px 16px; }
    .quick-calc-inner { gap: 10px; }
    .quick-calc-label { display: none; }
    .qc-field { padding: 5px 10px; }
    .qc-result-value { font-size: 1.1rem; }
}

/* ===== Hero ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 24px 80px;
    max-width: 1200px;
    margin: 0 auto;
    z-index: 1;
}

.hero-content {
    flex: 1;
    max-width: 650px;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(220, 38, 38, 0.08);
    border: 1px solid rgba(220, 38, 38, 0.2);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent-red);
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
    animation: fadeInUp 0.6s ease 0.1s both;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.typing-text {
    display: inline-block;
    min-width: 200px;
    border-right: 3px solid var(--accent-red);
    animation: blink 0.8s infinite;
}

@keyframes blink {
    0%, 100% { border-color: var(--accent-red); }
    50% { border-color: transparent; }
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 540px;
    margin-bottom: 32px;
    animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-stats {
    display: flex;
    gap: 32px;
    margin-bottom: 40px;
    animation: fadeInUp 0.6s ease 0.3s both;
}

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

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    animation: fadeInUp 0.6s ease 0.4s both;
}

.hero-3d {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-indicator {
    width: 24px;
    height: 40px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    position: relative;
}

.scroll-indicator::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--accent-red);
    border-radius: 2px;
    animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
    50% { transform: translateX(-50%) translateY(12px); opacity: 0.3; }
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(220, 38, 38, 0.3);
}

.btn-glow::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;
}

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

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--accent-red);
    border: 1px solid rgba(220, 38, 38, 0.3);
}

.btn-outline:hover {
    background: rgba(220, 38, 38, 0.06);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 18px 36px;
    font-size: 1.05rem;
}

/* ===== Sections ===== */
.section {
    position: relative;
    z-index: 1;
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(220, 38, 38, 0.08);
    border: 1px solid rgba(220, 38, 38, 0.2);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-red);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 12px;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== Subject Cards ===== */
.subjects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.subject-card {
    perspective: 1000px;
}

.card-3d-wrapper {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    transform-style: preserve-3d;
    overflow: hidden;
}

.card-3d-wrapper:hover {
    transform: translateY(-8px) rotateX(2deg);
    box-shadow: var(--shadow-glow);
    border-color: rgba(220, 38, 38, 0.2);
}

.card-glow {
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0;
    transition: opacity 0.4s;
}

.card-3d-wrapper:hover .card-glow {
    opacity: 1;
}

.biology-glow { background: rgba(22, 163, 74, 0.1); }
.chemistry-glow { background: rgba(220, 38, 38, 0.1); }
.physics-glow { background: rgba(153, 27, 27, 0.1); }
.english-glow { background: rgba(234, 88, 12, 0.1); }
.logical-glow { background: rgba(220, 38, 38, 0.1); }

.card-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 20px;
    color: var(--accent-cyan);
}

[data-subject="biology"] .card-icon { color: #16a34a; }
[data-subject="chemistry"] .card-icon { color: #DC2626; }
[data-subject="physics"] .card-icon { color: #991B1B; }
[data-subject="english"] .card-icon { color: #ea580c; }
[data-subject="logical"] .card-icon { color: #DC2626; }

.card-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.card-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.card-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.mcq-count, .topic-count {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-red);
    padding: 4px 12px;
    background: rgba(220, 38, 38, 0.06);
    border-radius: 100px;
}

.topic-count {
    color: var(--accent-darkred);
    background: rgba(153, 27, 27, 0.06);
}

.card-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.topic-tag {
    font-size: 0.75rem;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    color: var(--text-muted);
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-red);
    transition: gap 0.3s;
}

.card-link:hover {
    gap: 12px;
}

/* ===== Past Papers ===== */
.papers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.paper-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.paper-card:hover {
    transform: translateY(-4px);
    border-color: rgba(220, 38, 38, 0.2);
    box-shadow: var(--shadow-glow);
}

.paper-card.featured {
    border-color: rgba(220, 38, 38, 0.3);
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.04), rgba(153, 27, 27, 0.04));
}

.paper-year {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.paper-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 4px 12px;
    background: var(--gradient-primary);
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.paper-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.paper-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.paper-info {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.papers-more {
    text-align: center;
    margin-top: 40px;
}

/* ===== Practice CTA ===== */
.cta-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 60px;
    display: flex;
    gap: 60px;
    align-items: center;
    overflow: hidden;
}

.cta-3d-bg {
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(220, 38, 38, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

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

.cta-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 500px;
}

.cta-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 36px;
}

.cta-feature {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.feature-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(220, 38, 38, 0.08);
    border-radius: var(--radius-sm);
    color: var(--accent-red);
}

.cta-feature strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.cta-feature p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.cta-visual {
    flex: 0 0 380px;
    position: relative;
    z-index: 1;
}

.mock-test-preview {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    transform: perspective(800px) rotateY(-5deg) rotateX(3deg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.preview-tag {
    padding: 4px 12px;
    background: rgba(220, 38, 38, 0.08);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-red);
}

.preview-timer {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-pink);
}

.preview-q-num {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.preview-q-text {
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 16px;
    line-height: 1.5;
}

.preview-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.preview-option {
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: all 0.3s;
}

.preview-option.correct {
    background: rgba(22, 163, 74, 0.08);
    border-color: rgba(22, 163, 74, 0.3);
    color: var(--accent-green);
}

/* ===== Syllabus ===== */
.syllabus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.syllabus-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.syllabus-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.syllabus-header {
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.syllabus-header h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
}

.weight {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 100px;
}

.biology-bg { background: linear-gradient(135deg, rgba(22, 163, 74, 0.08), rgba(22, 163, 74, 0.03)); }
.chemistry-bg { background: linear-gradient(135deg, rgba(220, 38, 38, 0.08), rgba(153, 27, 27, 0.03)); }
.physics-bg { background: linear-gradient(135deg, rgba(153, 27, 27, 0.08), rgba(220, 38, 38, 0.03)); }
.english-bg { background: linear-gradient(135deg, rgba(234, 88, 12, 0.08), rgba(220, 38, 38, 0.03)); }

.syllabus-list {
    padding: 8px 24px 16px;
}

.syllabus-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.syllabus-list li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-red);
    flex-shrink: 0;
}

.syllabus-list li:last-child {
    border-bottom: none;
}

.syllabus-card .card-link {
    display: block;
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
}

/* ===== Resources ===== */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.resource-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.resource-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.resource-img {
    height: 160px;
    display: flex;
    align-items: flex-end;
    padding: 16px;
}

.resource-category {
    padding: 4px 12px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.resource-body {
    padding: 20px 24px 24px;
}

.resource-body h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.resource-body p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.resource-body a {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-red);
}

/* ===== Ad Units ===== */
.ad-unit {
    text-align: center;
    padding: 16px 0;
    overflow: hidden;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.ad-unit-inline {
    text-align: center;
    padding: 24px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    margin: 32px 0;
}

.ad-label {
    display: block;
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 8px;
}

/* ===== Calculator ===== */
.calculator-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 48px;
    display: flex;
    gap: 48px;
    align-items: center;
}

.calc-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.calc-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.calc-field input {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: var(--font-primary);
    transition: border-color 0.3s;
    outline: none;
}

.calc-field input:focus {
    border-color: var(--accent-red);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.calc-field input::placeholder {
    color: var(--text-muted);
}

.calc-result {
    flex: 0 0 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.result-circle {
    position: relative;
    width: 160px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.result-circle svg {
    position: absolute;
    width: 100%;
    height: 100%;
}

.result-number {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    z-index: 1;
}

.result-breakdown {
    width: 100%;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.breakdown-item:last-child { border-bottom: none; }

.breakdown-item span:last-child {
    font-weight: 600;
    color: var(--text-primary);
}

/* ===== FAQ ===== */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color 0.3s;
}

.faq-item[open] {
    border-color: rgba(220, 38, 38, 0.2);
}

.faq-item summary {
    padding: 20px 24px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    transition: color 0.3s;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: '+';
    font-size: 1.3rem;
    font-weight: 300;
    color: var(--accent-red);
    transition: transform 0.3s;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item summary:hover { color: var(--accent-red); }

.faq-item p {
    padding: 0 24px 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== Footer ===== */
.footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px;
    background: var(--bg-secondary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about p {
    margin-top: 16px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    max-width: 300px;
}

.footer-links h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.footer-links a {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 6px 0;
    transition: color 0.3s;
}

.footer-links a:hover { color: var(--accent-red); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    color: var(--text-muted);
    transition: color 0.3s;
}

.footer-social a:hover { color: var(--accent-red); }

/* ===== Animations ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 968px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 100px;
    }

    .hero-content { max-width: 100%; }
    .hero-subtitle { margin: 0 auto 32px; }
    .hero-stats { justify-content: center; }
    .hero-actions { justify-content: center; }
    .hero-3d { min-height: 250px; }

    .cta-card {
        flex-direction: column;
        padding: 40px;
    }

    .cta-visual { flex: none; width: 100%; }

    .mock-test-preview {
        transform: none;
    }

    .calculator-card {
        flex-direction: column;
        padding: 32px;
    }

    .calc-result { flex: none; width: 100%; }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 360px;
        height: 100vh;
        background: #ffffff;
        flex-direction: column;
        padding: 100px 32px 32px;
        gap: 24px;
        transition: right 0.4s ease;
        border-left: 1px solid var(--border-color);
    }

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

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .nav-toggle.active span:nth-child(2) { opacity: 0; }
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 20px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .subjects-grid { grid-template-columns: 1fr; }
    .papers-grid { grid-template-columns: 1fr; }
    .syllabus-grid { grid-template-columns: 1fr; }
    .resources-grid { grid-template-columns: 1fr; }

    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}
