/* ============================================
   SarkariNotesHub - Multi-Exam Study Platform
   ============================================ */

:root {
  --bg: #fafbfc;
  --bg-alt: #f0f4f8;
  --card: #ffffff;
  --text: #1a1d2e;
  --text2: #4a5568;
  --text3: #94a3b8;
  --border: #e2e8f0;
  --accent: #4f46e5;
  --accent2: #7c3aed;
  --accent-light: #eef2ff;
  --green: #059669;
  --green-light: #ecfdf5;
  --orange: #d97706;
  --orange-light: #fffbeb;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 24px rgba(0,0,0,0.1);
  --radius: 12px;
  --radius-sm: 8px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', -apple-system, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

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

/* ============ Top Bar ============ */
.top-bar {
  background: var(--accent);
  color: white;
  font-size: 12px;
  padding: 6px 0;
  text-align: center;
}
.top-bar-inner {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}
.top-bar span { opacity: 0.9; }

/* ============ Navbar ============ */
.navbar {
  background: white;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(255,255,255,0.95);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-icon { font-size: 28px; }
.logo-name { font-size: 18px; font-weight: 800; color: var(--accent); display: block; line-height: 1.2; }
.logo-tag { font-size: 11px; color: var(--text3); font-weight: 400; }
.nav-links {
  display: flex;
  gap: 28px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text2);
  transition: 0.2s;
  padding: 4px 0;
}
.nav-links a:hover { color: var(--accent); }
.menu-btn {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}
.menu-btn span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; }

/* ============ Hero ============ */
.hero {
  padding: 80px 0 60px;
  text-align: center;
  background: linear-gradient(180deg, #eef2ff 0%, var(--bg) 100%);
}
.hero-badge {
  display: inline-block;
  background: white;
  border: 1px solid var(--border);
  padding: 6px 16px;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text2);
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.hero h1 {
  font-family: 'Merriweather', serif;
  font-size: 44px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}
.gradient-text {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  font-size: 17px;
  color: var(--text2);
  max-width: 680px;
  margin: 0 auto 32px;
  line-height: 1.7;
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat-num { display: block; font-size: 30px; font-weight: 800; color: var(--accent); }
.hero-stat-label { font-size: 12px; color: var(--text3); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 500; }
.hero-cta { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--accent);
  color: white;
}
.btn-primary:hover { background: #4338ca; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline {
  background: white;
  color: var(--accent);
  border: 2px solid var(--border);
}
.btn-outline:hover { border-color: var(--accent); background: var(--accent-light); }

/* ============ Sections ============ */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-badge {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 16px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.section-header h2 {
  font-family: 'Merriweather', serif;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
}
.section-header p {
  font-size: 16px;
  color: var(--text2);
}

/* ============ Exam Grid ============ */
.exam-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.exam-category {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.exam-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.exam-category-header h3 {
  font-size: 18px;
  font-weight: 700;
}
.exam-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.exam-tag.live { background: var(--green-light); color: var(--green); }
.exam-tag.planned { background: var(--orange-light); color: var(--orange); }

.exam-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  padding: 20px;
}
.exam-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.exam-card.available {
  cursor: pointer;
}
.exam-card.available:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.exam-card.coming-soon {
  opacity: 0.7;
  background: var(--bg-alt);
}
.exam-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.exam-icon { font-size: 24px; }
.exam-status {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.exam-status.ready { background: var(--green-light); color: var(--green); }
.exam-status.soon { background: var(--orange-light); color: var(--orange); }
.exam-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.exam-card p {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.5;
}
.exam-card-cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-top: auto;
}

/* ============ Features ============ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: 0.2s;
}
.feature-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}
.feature-icon {
  font-size: 28px;
  margin-bottom: 12px;
}
.feature-card h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}
.feature-card p {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.6;
}

/* ============ About ============ */
.about-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}
.about-content p {
  font-size: 16px;
  color: var(--text2);
  margin-bottom: 16px;
  line-height: 1.7;
}
.about-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 32px;
}
.about-stat {
  text-align: center;
}
.about-stat span {
  display: block;
  font-size: 36px;
  font-weight: 800;
  color: var(--accent);
}
.about-stat p {
  font-size: 13px;
  color: var(--text3);
  margin-bottom: 0;
}

/* ============ Footer ============ */
.footer {
  background: #1a1d2e;
  color: #a0aec0;
  padding: 48px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-logo {
  font-size: 18px;
  font-weight: 700;
  color: white;
  margin-bottom: 8px;
}
.footer h5 {
  font-size: 13px;
  font-weight: 600;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}
.footer a, .footer span {
  display: block;
  font-size: 13px;
  color: #a0aec0;
  padding: 3px 0;
  transition: 0.2s;
}
.footer a:hover { color: white; }
.footer p { font-size: 13px; line-height: 1.6; }
.footer-bottom {
  border-top: 1px solid #2d3348;
  padding-top: 20px;
  text-align: center;
}
.footer-bottom p { font-size: 12px; color: #718096; }

/* ============ Responsive ============ */
@media (max-width: 768px) {
  .hero { padding: 48px 0 40px; }
  .hero h1 { font-size: 28px; }
  .hero-desc { font-size: 15px; }
  .hero-stats { gap: 20px; }
  .hero-stat-num { font-size: 24px; }
  .section { padding: 48px 0; }
  .section-header h2 { font-size: 24px; }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    gap: 12px;
  }
  .nav-links.open { display: flex; }
  .menu-btn { display: flex; }
  .exam-cards { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .about-stats { flex-direction: column; gap: 16px; }
  .hero-cta { flex-direction: column; align-items: center; }
}
