/*
 * NEET Vidyalay Main Stylesheet
 * Premium Dark Theme & Glassmorphism Design System
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    --bg-primary: #111111;
    --bg-secondary: #0f1329;
    --bg-card: rgba(255, 255, 255, 0.03);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.18);
    
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    
    /* Premium Palette accents */
    --accent-cyan: #00f2fe;
    --accent-violet: #8b5cf6;
    --accent-green: #10b981;
    --accent-orange: #f59e0b;
    --accent-red: #ef4444;
    
    --gradient-primary: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
    --gradient-violet: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);
    --gradient-glow: 0 0 20px rgba(0, 242, 254, 0.25);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    width: 100%;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: #ffffff;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

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

/* Background Glowing Elements */
.glow-orb {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(150px);
    z-index: -1;
    opacity: 0.15;
    pointer-events: none;
}
.orb-cyan {
    background: var(--accent-cyan);
    top: -100px;
    right: -100px;
}
.orb-violet {
    background: var(--accent-violet);
    bottom: -100px;
    left: -100px;
}

/* Header & Navigation */
header {
    background: rgba(7, 9, 19, 0.7);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-text-group {
    display: flex;
    flex-direction: column;
}

.logo-tagline {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 500;
    margin-top: -2px;
}

.logo-img {
    height: 40px;
    width: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid var(--accent-cyan);
}

.logo-text {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(to right, var(--accent-cyan), var(--accent-violet));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.5px;
}

.logo-badge {
    background: rgba(0, 242, 254, 0.1);
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 50px;
    text-transform: uppercase;
}

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

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition-smooth);
}

.nav-link:hover, .nav-link.active {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Buttons */
.btn-premium {
    background: var(--gradient-primary);
    color: #000000;
    border: none;
    padding: 12px 28px;
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.2);
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 242, 254, 0.4);
    opacity: 0.95;
}

.btn-outline {
    background: transparent;
    color: #ffffff;
    border: 1px solid var(--border-color);
    padding: 12px 28px;
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    transition: var(--transition-smooth);
}

.glass-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(-4px);
}

/* Hero Section */
.hero-section {
    padding: 100px 0 80px 0;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-cols: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}

.hero-content h1 {
    font-size: 54px;
    line-height: 1.15;
    margin-bottom: 24px;
}

.gradient-text {
    background: linear-gradient(to right, var(--accent-cyan), var(--accent-violet));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    color: var(--text-secondary);
    font-size: 18px;
    margin-bottom: 36px;
    max-width: 550px;
}

.hero-btns {
    display: flex;
    gap: 16px;
}

/* Inline SVG Hero Art Styling */
.hero-art-container {
    position: relative;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

.hero-art {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 40px rgba(0, 242, 254, 0.15));
    animation: float 6s ease-in-out infinite;
}

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

/* Pulse Animation for DNA/Cells in SVG */
.pulse-element {
    animation: pulse 3s infinite ease-in-out;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* Stats / Features Grid */
.stats-section {
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.01);
}

.stats-grid {
    display: grid;
    grid-template-cols: repeat(4, 1fr);
    gap: 24px;
}

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

.stat-number {
    font-family: 'Outfit', sans-serif;
    font-size: 40px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 8px;
    background: linear-gradient(to right, #ffffff, var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Subject Grid section */
.subjects-section {
    padding: 100px 0;
}

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

.section-header h2 {
    font-size: 36px;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.subjects-grid {
    display: grid;
    grid-template-cols: repeat(3, 1fr);
    gap: 30px;
}

.subject-card {
    position: relative;
    overflow: hidden;
}

.subject-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
}

.subject-card.biology .subject-icon {
    color: var(--accent-green);
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.2);
}

.subject-card.chemistry .subject-icon {
    color: var(--accent-cyan);
    background: rgba(0, 242, 254, 0.1);
    border-color: rgba(0, 242, 254, 0.2);
}

.subject-card.physics .subject-icon {
    color: var(--accent-violet);
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.2);
}

.subject-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
}

.subject-card p {
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 20px;
}

.subject-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
}

/* Dashboard Layout */
.dashboard-grid {
    display: grid;
    grid-template-cols: 280px 1fr;
    gap: 40px;
    padding: 40px 0;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: 10px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.sidebar-btn:hover, .sidebar-btn.active {
    background: var(--bg-card);
    color: #ffffff;
    border-color: var(--border-color);
}

.sidebar-btn.active {
    background: rgba(0, 242, 254, 0.05);
    border-color: rgba(0, 242, 254, 0.2);
    color: var(--accent-cyan);
}

/* Dashboard Metrics Section */
.metrics-row {
    display: grid;
    grid-template-cols: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.metric-card {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.metric-header {
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
}

.metric-value {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
}

.metric-change {
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.change-up { color: var(--accent-green); }
.change-down { color: var(--accent-red); }

/* Progress Rings Container */
.dashboard-main-row {
    display: grid;
    grid-template-cols: 1.1fr 0.9fr;
    gap: 30px;
    margin-bottom: 30px;
}

.progress-rings-card {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.progress-ring-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.ring-info h4 {
    font-size: 18px;
    margin-bottom: 4px;
}

.ring-info p {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Circular Progress SVG */
.circle-progress-container {
    position: relative;
    width: 70px;
    height: 70px;
}

.circle-progress-svg {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}

.circle-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.05);
    stroke-width: 6;
}

.circle-val {
    fill: none;
    stroke-width: 6;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.8s ease;
}

.circle-val.biology { stroke: var(--accent-green); }
.circle-val.chemistry { stroke: var(--accent-cyan); }
.circle-val.physics { stroke: var(--accent-violet); }

.circle-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
}

/* Test List Table */
.tests-list-card h3 {
    margin-bottom: 20px;
    font-size: 20px;
}

.tests-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.tests-table th {
    padding: 14px 16px;
    color: var(--text-muted);
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
}

.tests-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}

.tests-table tr:last-child td {
    border-bottom: none;
}

.test-title {
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
}

.test-desc {
    font-size: 12px;
    color: var(--text-secondary);
}

.badge-tag {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.badge-cyan { background: rgba(0, 242, 254, 0.1); color: var(--accent-cyan); border: 1px solid rgba(0, 242, 254, 0.2); }
.badge-violet { background: rgba(139, 92, 246, 0.1); color: var(--accent-violet); border: 1px solid rgba(139, 92, 246, 0.2); }
.badge-green { background: rgba(16, 185, 129, 0.1); color: var(--accent-green); border: 1px solid rgba(16, 185, 129, 0.2); }

/* Daily Challenge Quiz */
.daily-challenge-card {
    border: 1px dashed rgba(0, 242, 254, 0.3);
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.02) 0%, rgba(124, 58, 237, 0.02) 100%);
}

.daily-header {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-cyan);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.daily-question {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 16px;
}

.daily-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.daily-opt-btn {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 12px 16px;
    border-radius: 8px;
    color: var(--text-secondary);
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    transition: var(--transition-smooth);
    width: 100%;
}

.daily-opt-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--border-hover);
    color: #ffffff;
}

.daily-opt-btn.correct {
    background: rgba(16, 185, 129, 0.1) !important;
    border-color: var(--accent-green) !important;
    color: var(--accent-green) !important;
}

.daily-opt-btn.wrong {
    background: rgba(239, 68, 68, 0.1) !important;
    border-color: var(--accent-red) !important;
    color: var(--accent-red) !important;
}

/* Mock Test Engine Styles */
.test-layout {
    display: grid;
    grid-template-cols: 1fr 340px;
    gap: 30px;
    padding: 30px 0;
}

.test-main-card {
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.test-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
    margin-bottom: 24px;
}

.test-title-info h2 {
    font-size: 22px;
}

.timer-box {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--accent-orange);
    padding: 8px 16px;
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.question-meta-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 14px;
}

.q-subject {
    color: var(--accent-cyan);
    font-weight: 700;
    text-transform: uppercase;
}

.q-number-title {
    font-weight: 600;
    color: var(--text-secondary);
}

.question-text-box {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #ffffff;
}

.test-options-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 40px;
}

.option-choice {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 16px 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.option-choice:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-hover);
}

.option-choice.selected {
    background: rgba(0, 242, 254, 0.06);
    border-color: var(--accent-cyan);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.1);
}

.option-letter {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    transition: var(--transition-smooth);
}

.option-choice.selected .option-letter {
    background: var(--accent-cyan);
    color: #000000;
    border-color: var(--accent-cyan);
}

.test-controls-row {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
}

/* Sidebar / Question Palette */
.palette-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.palette-status-grid {
    display: grid;
    grid-template-cols: 1fr 1fr;
    gap: 10px;
    font-size: 12px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
}

.status-label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
}

.status-color {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}
.status-color.answered { background: var(--accent-green); }
.status-color.skipped { background: var(--accent-red); }
.status-color.marked { background: var(--accent-violet); }
.status-color.unvisited { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border-color); }

.palette-title {
    font-size: 16px;
    font-weight: 600;
}

.palette-grid {
    display: grid;
    grid-template-cols: repeat(5, 1fr);
    gap: 10px;
}

.palette-num {
    aspect-ratio: 1;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition-smooth);
}

.palette-num:hover {
    background: rgba(255, 255, 255, 0.08);
}

.palette-num.current {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.2);
}

.palette-num.answered {
    background: var(--accent-green);
    border-color: var(--accent-green);
    color: #ffffff;
}

.palette-num.skipped {
    background: var(--accent-red);
    border-color: var(--accent-red);
    color: #ffffff;
}

.palette-num.marked {
    background: var(--accent-violet);
    border-color: var(--accent-violet);
    color: #ffffff;
}

/* Banner Section */
.banner-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.banner-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.banner-wrapper:hover .banner-img {
    transform: scale(1.03);
}

/* Feature Showcase */
.feature-showcase {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
}

.showcase-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.accent-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-cyan);
    box-shadow: 0 0 10px var(--accent-cyan);
}

.showcase-stat {
    display: flex;
    gap: 24px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.showcase-stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-lbl {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
}

.stat-val {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
}

.cta-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.04) 0%, rgba(139, 92, 246, 0.04) 100%);
    border: 1px solid rgba(0, 242, 254, 0.12);
    padding: 48px;
    border-radius: 20px;
}

.cta-content h2 {
    font-size: 32px;
    margin-bottom: 12px;
}

.cta-content p {
    color: var(--text-secondary);
    font-size: 16px;
    max-width: 600px;
}

.cta-actions {
    flex-shrink: 0;
}

/* Footer Section */
footer {
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
    margin-top: 80px;
    background: rgba(255, 255, 255, 0.01);
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo-img {
    height: 30px;
    width: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--accent-violet);
}

.footer-links {
    display: flex;
    gap: 24px;
    list-style: none;
}

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition-smooth);
}

.footer-link:hover {
    color: #ffffff;
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 20px;
    text-align: center;
}

/* Responsive Styling */
@media (max-width: 1024px) {
    .hero-grid, .dashboard-grid, .dashboard-main-row, .test-layout {
        grid-template-cols: 1fr;
    }
    .stats-grid {
        grid-template-cols: repeat(2, 1fr);
    }
    .subjects-grid {
        grid-template-cols: 1fr;
    }
    .metrics-row {
        grid-template-cols: repeat(2, 1fr);
    }
    .cta-card {
        padding: 36px;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        height: auto;
        padding: 16px 20px;
        gap: 12px;
    }
    .nav-links {
        gap: 16px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .cta-card {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }
    .cta-content p {
        margin: 0 auto;
    }
    .hero-section {
        padding: 60px 0 40px 0;
    }
    .hero-content {
        text-align: center;
    }
    .hero-content p {
        margin: 0 auto 24px auto;
    }
    .hero-btns {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .metrics-row, .stats-grid {
        grid-template-cols: 1fr;
    }
    .hero-content h1 {
        font-size: 36px;
    }
    .hero-btns {
        flex-direction: column;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
    .hero-btns a {
        width: 100%;
        justify-content: center;
    }
    .footer-content {
        flex-direction: column;
        gap: 20px;
    }
    #nav-link-db-setup {
        display: none;
    }
}

/* Orientation adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        padding: 40px 0 20px 0;
    }
    .nav-container {
        height: auto;
        padding: 10px 20px;
    }
    .subjects-section {
        padding: 50px 0;
    }
    .cta-section {
        padding: 40px 0;
    }
}

/* Header Tagline & Brand Groups */
.logo-text-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.logo-tagline {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.5px;
    font-family: 'Inter', sans-serif;
}

/* About NEET Vidyalay Section */
.about-section {
    padding: 60px 0 40px 0;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.about-section h2 {
    font-size: 32px;
    margin-bottom: 16px;
    background: linear-gradient(to right, #ffffff, var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-section p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.8;
}

/* Tri-subject Gradient Student Login Button */
.btn-login-pattern {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 36px;
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    background: #0f1329;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-smooth);
    z-index: 1;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(0, 242, 254, 0.1);
    margin: 30px auto;
}

.btn-login-pattern::before {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    background: linear-gradient(135deg, var(--accent-green) 0%, var(--accent-cyan) 50%, var(--accent-violet) 100%);
    border-radius: 50px;
    z-index: -1;
    transition: var(--transition-smooth);
}

.btn-login-pattern:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 242, 254, 0.3);
}

.btn-login-pattern:hover::before {
    opacity: 0.9;
    filter: blur(2px);
}

/* NEET Syllabus Section */
.syllabus-section {
    padding: 60px 0 80px 0;
    text-align: center;
}

.syllabus-section h2 {
    font-size: 28px;
    margin-bottom: 24px;
}

.syllabus-grid {
    display: grid;
    grid-template-cols: repeat(3, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.btn-syllabus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 24px;
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    border-radius: 12px;
    text-decoration: none;
    transition: var(--transition-smooth);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.btn-syllabus.physics {
    background: rgba(139, 92, 246, 0.05);
    border-color: rgba(139, 92, 246, 0.2);
}

.btn-syllabus.physics:hover {
    background: rgba(139, 92, 246, 0.15);
    border-color: var(--accent-violet);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
    transform: translateY(-2px);
}

.btn-syllabus.chemistry {
    background: rgba(0, 242, 254, 0.05);
    border-color: rgba(0, 242, 254, 0.2);
}

.btn-syllabus.chemistry:hover {
    background: rgba(0, 242, 254, 0.15);
    border-color: var(--accent-cyan);
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.3);
    transform: translateY(-2px);
}

.btn-syllabus.biology {
    background: rgba(16, 185, 129, 0.05);
    border-color: rgba(16, 185, 129, 0.2);
}

.btn-syllabus.biology:hover {
    background: rgba(16, 185, 129, 0.15);
    border-color: var(--accent-green);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
    transform: translateY(-2px);
}

/* Secure Login Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Modal Content Card */
.modal-content {
    background: rgba(15, 19, 41, 0.85);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    width: 100%;
    max-width: 420px;
    padding: 36px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    position: relative;
}

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

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

.modal-header h3 {
    font-size: 24px;
    background: linear-gradient(to right, var(--accent-cyan), var(--accent-violet));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.modal-close:hover {
    color: #ffffff;
}

.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.form-group label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.form-input {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 12px 16px;
    border-radius: 8px;
    color: #ffffff;
    font-size: 15px;
    transition: var(--transition-smooth);
    font-family: inherit;
}

.form-input:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.2);
    outline: none;
}

.login-error-alert {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid var(--accent-red);
    color: #fca5a5;
    padding: 12px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 20px;
    text-align: center;
}

@media (max-width: 768px) {
    /* Header & Navigation stacking */
    .nav-container {
        flex-direction: column;
        height: auto;
        padding: 15px 24px;
        gap: 12px;
        text-align: center;
    }
    .nav-links {
        gap: 16px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .logo-text {
        font-size: 20px;
    }

    /* Hero Grid vertical stacking */
    .hero-grid {
        grid-template-cols: 1fr !important;
        gap: 30px;
        text-align: center;
    }
    .hero-content h1 {
        font-size: 36px;
    }
    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-btns {
        justify-content: center;
    }

    /* Stats Grid stacking */
    .stats-grid {
        grid-template-cols: repeat(2, 1fr) !important;
        gap: 20px;
    }

    /* Subjects Grid stacking */
    .subjects-grid {
        grid-template-cols: 1fr !important;
        gap: 20px;
    }

    /* Syllabus Grid responsive mapping */
    .syllabus-grid {
        grid-template-cols: 1fr !important;
        max-width: 480px;
    }
}

/* Privacy Consent Overlay & Centered Modal Popup */
.privacy-consent-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(7, 9, 19, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeInOverlay 0.3s ease forwards;
}

@keyframes fadeInOverlay {
    from { opacity: 0; }
    to { opacity: 1; }
}

.privacy-consent-modal {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(0, 242, 254, 0.25);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 242, 254, 0.15);
    padding: 36px;
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    text-align: center;
    transform: translateY(20px);
    opacity: 0;
    animation: slideUpConsentModal 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
}

@keyframes slideUpConsentModal {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.privacy-consent-content {
    margin-bottom: 24px;
}

.privacy-consent-content h4 {
    font-size: 22px;
    margin-bottom: 12px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.privacy-consent-content p {
    color: var(--text-secondary);
    font-size: 14.5px;
    line-height: 1.6;
}

.privacy-consent-content a {
    color: var(--accent-cyan);
    text-decoration: underline;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.privacy-consent-content a:hover {
    color: #ffffff;
}

.privacy-consent-actions {
    display: flex;
    justify-content: center;
}



