/* ===================== ROOT & GLOBAL ===================== */

:root {
  --bg: #050816;
  --bg-soft: #0b1020;
  --card-bg: #111827;
  --accent: #6366f1;
  --accent-soft: rgba(99, 102, 241, 0.1);
  --text: #f9fafb;
  --muted: #9ca3af;
  --border-subtle: rgba(148, 163, 184, 0.2);
  --danger: #ef4444;
  --success: #22c55e;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.9);
}

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

html,
body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: radial-gradient(circle at top left, #111827, #020617 55%);
  color: var(--text);
  line-height: 1.6;
}

/* Generic containers */
section {
  padding: 80px 16px;
}

@media (min-width: 1024px) {
  section {
    padding: 96px 48px;
  }
}

h1,
h2,
h3,
h4 {
  font-weight: 700;
  margin: 0 0 12px;
}

p {
  margin: 0 0 10px;
}

/* Utility Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #f9fafb;
  border: none;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 15px 30px rgba(79, 70, 229, 0.45);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 35px rgba(79, 70, 229, 0.65);
}

/* ===================== NAVBAR ===================== */

#navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(3, 7, 18, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-subtle);
}

.navbar {
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: radial-gradient(circle, #22c55e, #166534);
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.8);
}

.nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 999px;
  transition: color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.nav-menu a:hover {
  color: var(--text);
  background: rgba(148, 163, 184, 0.12);
  transform: translateY(-0.5px);
}

@media (max-width: 768px) {
  .nav-menu {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: #020617;
    border-bottom: 1px solid var(--border-subtle);
    padding: 10px 16px 16px;
    gap: 8px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease;
  }
  .nav-menu.active {
    max-height: 260px;
  }
  .hamburger {
    display: flex;
  }
}

.hamburger {
  display: none;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 3px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 14px;
  height: 2px;
  background: #e5e7eb;
  border-radius: 999px;
}

/* ===================== HERO ===================== */

#hero {
  padding-top: 32px;
  padding-bottom: 80px;
}

.hero-container {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.hero-left h1 {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.1;
  margin-bottom: 10px;
}

.hero-left p {
  color: var(--muted);
  max-width: 460px;
  margin-bottom: 20px;
}

.hero-tagline {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(94, 234, 212, 0.25);
  background: rgba(8, 47, 73, 0.6);
  color: #e0f2fe;
  font-size: 11px;
  gap: 4px;
  margin-bottom: 10px;
}

.hero-tagline span.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #22c55e;
}

.hero-right {
  display: flex;
  justify-content: flex-end;
}

.hero-right img {
  max-width: 100%;
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: var(--shadow-soft);
  background: radial-gradient(circle at top, #1e293b, #020617);
}

@media (max-width: 900px) {
  .hero-container {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-right {
    order: -1;
    justify-content: center;
  }
}

/* ===================== TIMER (ORANGE ACCENT) ===================== */

#timer {
  background: radial-gradient(circle at top, #020617, #020617 55%);
  padding: 60px 16px;
}

.timer-container {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

/* Gradient heading: White to Orange */
.timer-container h2 {
  margin-bottom: 24px;
  background: linear-gradient(to right, #f9fafb, #eff1f2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 28px;
}

.timer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.timer-box {
  background: linear-gradient(145deg, #111827, #020617);
  border-radius: var(--radius-md);
  padding: 15px 10px;
  /* Orange-tinted border */
  border: 1px solid rgba(251, 146, 60, 0.2);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

/* Hover effect: Glow and lift */
.timer-box:hover {
  transform: translateY(-5px);
  border-color: #fb923c;
  box-shadow: 0 15px 35px rgba(251, 146, 60, 0.15);
}

/* Vibrant Orange accent line at the bottom */
.timer-box::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: #fb923c;
  opacity: 0.8;
}

.timer-box span {
  display: block;
  font-size: 28px; 
  font-weight: 800;
  /* Vibrant Orange Numbers */
  color: #fb923c;
  text-shadow: 0 0 15px rgba(251, 146, 60, 0.4);
  line-height: 1;
  margin-bottom: 4px;
  animation: pulse-orange 2s infinite ease-in-out;
}

.timer-box small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
}

/* Orange pulsing animation */
@keyframes pulse-orange {
  0% { text-shadow: 0 0 10px rgba(251, 146, 60, 0.4); }
  50% { text-shadow: 0 0 25px rgba(251, 146, 60, 0.7); }
  100% { text-shadow: 0 0 10px rgba(251, 146, 60, 0.4); }
}

@media (max-width: 600px) {
  .timer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

/* ===================== STATS ===================== */

#stats {
  background: radial-gradient(circle at center, #020617, #020617 55%);
}

.stats-container {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.stat-item {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  text-align: center;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.8);
}

.stat-item h3 {
  font-size: 22px;
  margin-bottom: 6px;
}

.stat-item p {
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 768px) {
  .stats-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .stats-container {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ===================== MENTOR ===================== */

#mentor {
  background: radial-gradient(circle at top, #020617, #020617 60%);
}

.mentor-container {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

.mentor-info h2 {
  margin-bottom: 10px;
}

.mentor-info p {
  color: var(--muted);
}

.mentor-photo img {
  width: 100%;
  border-radius: 20px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  object-fit: cover;
}

@media (max-width: 900px) {
  .mentor-container {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ================= ABOUT SECTION HOVER ================= */

#about {
  background: radial-gradient(circle at top, #020617, #020617 60%);
  overflow: hidden;
}

.about-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 40px 20px;
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  /* Smooth transition for all properties */
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Elevates and adds a subtle purple glow when user hovers over the text block */
.about-container:hover {
  background: rgba(17, 24, 39, 0.5);
  border-color: var(--accent-soft);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 
              0 0 20px rgba(99, 102, 241, 0.1);
}

.about-container h2 {
  transition: color 0.3s ease;
}

.about-container:hover h2 {
  color: var(--accent); /* Heading turns purple on hover */
}

/* ================= STATS SECTION HOVER ================= */

#stats {
  background: radial-gradient(circle at center, #020617, #020617 55%);
}

.stats-container {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.stat-item {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 30px 20px;
  text-align: center;
  border: 1px solid var(--border-subtle);
  cursor: default;
  /* Premium spring animation */
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
              border-color 0.3s ease, 
              box-shadow 0.4s ease;
}

/* Individual Stat Card Hover */
.stat-item:hover {
  transform: translateY(-10px) scale(1.05);
  border-color: var(--accent);
  box-shadow: 0 15px 35px rgba(99, 102, 241, 0.25);
  background: #161e2e;
}

.stat-item h3 {
  font-size: 28px;
  margin-bottom: 8px;
  transition: transform 0.3s ease;
}

/* Makes the number "jump" slightly when the card is hovered */
.stat-item:hover h3 {
  transform: scale(1.1);
  color: var(--accent);
}

@media (max-width: 768px) {
  .stats-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .stats-container {
    grid-template-columns: 1fr;
  }
}

/* ===================== Alumni STACK ===================== */

/* Alumni Logo Slider Styling */
.alumni-tagline { opacity: 0.5; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 3px; margin-bottom: 40px; }
.logo-slider { overflow: hidden; white-space: nowrap; padding: 20px 0; }
.logo-track { 
    display: inline-flex; gap: 100px; align-items: center; 
    animation: scrollLogos 25s linear infinite; font-size: 3.5rem; color: rgba(255,255,255,0.2); 
}

@keyframes scrollLogos {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); } /* Scrolls half-way through the duplicated list */
}


/* ===================== WHY JOIN ===================== */

#why-join {
  background: radial-gradient(circle at bottom, #020617, #020617 60%);
}

.why-join-container {
  max-width: 900px;
  margin: 0 auto;
}

.why-join-container h2 {
  text-align: center;
  margin-bottom: 18px;
}

.why-join-container ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.why-join-container li {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 14px 12px;
  border: 1px solid var(--border-subtle);
}

/* ===================== QUIZ ===================== */

#quiz {
  background: radial-gradient(circle at top, #020617, #020617 60%);
}

.quiz-container {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  background: rgba(15, 23, 42, 0.9);
  border-radius: 24px;
  padding: 24px 18px;
  border: 1px solid rgba(129, 140, 248, 0.5);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.9);
}

.quiz-container h2 {
  margin-bottom: 12px;
}

.quiz-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.quiz-buttons button {
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--text);
  border: 1px solid rgba(129, 140, 248, 0.7);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.quiz-buttons button:hover {
  background: rgba(79, 70, 229, 0.85);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(79, 70, 229, 0.55);
}

#result-area h3 {
  margin-bottom: 8px;
}

#result-area p {
  color: var(--muted);
}

/* ===================== CURRICULUM ===================== */

/* ================= CURRICULUM CENTERED LAYOUT ================= */

#curriculum {
  background: radial-gradient(circle at center, #020617, #020617 55%);
}

.roadmap {
  display: flex;
  flex-direction: column;
  align-items: center; /* Centers the items horizontally */
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 0;
}

/* The vertical line connecting the dots */
.roadmap::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--border-subtle);
  transform: translateX(-50%);
  z-index: 0;
}

.roadmap-item {
  position: relative;
  width: 100%;
  margin-bottom: 40px;
  display: flex;
  justify-content: center; /* Centers content within the item */
  align-items: center;
  z-index: 1;
}

/* ================= DOT STYLING & HOVER ================= */

.roadmap-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #020617;
  border: 3px solid var(--accent);
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%); /* Keeps dot exactly on the line */
  transition: all 0.3s ease;
  z-index: 2;
}

/* Dot Glow Effect on Hover */
.roadmap-item:hover .roadmap-dot {
  background: var(--accent);
  box-shadow: 0 0 20px var(--accent);
  transform: translateX(-50%) scale(1.4);
}

/* ================= CONTENT BOX STYLING & HOVER ================= */

.roadmap-content {
  background: var(--card-bg);
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  width: 45%; /* Limits width so it doesn't span the whole screen */
  margin-top: 30px; /* Moves text below the dot */
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Content Box Lift on Hover */
.roadmap-item:hover .roadmap-content {
  border-color: var(--accent);
  transform: translateY(-5px);
  background: #161e2e;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.roadmap-content h3 {
  font-size: 20px;
  color: var(--text);
  margin-bottom: 8px;
  transition: color 0.3s ease;
}

.roadmap-item:hover .roadmap-content h3 {
  color: var(--accent);
}

.roadmap-content p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

/* Responsive: Make content wider on small screens */
@media (max-width: 768px) {
  .roadmap-content {
    width: 90%;
  }
}

/* ================= SYLLABUS BUTTON HOVER ================= */

.btn-secondary {
  display: inline-block;
  padding: 12px 28px;
  background: transparent;
  color: var(--text);
  border: 2px solid var(--accent);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-top: 15px;
}

.btn-secondary:hover {
  background: var(--accent);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
  transform: scale(1.05);
  color: #fff;
}

/* ===================== COURSES ===================== */

#courses {
  background: radial-gradient(circle at bottom, #020617, #020617 60%);
}

.courses-container {
  max-width: 1000px;
  margin: 0 auto;
}

.courses-container h2 {
  text-align: center;
  margin-bottom: 22px;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.course-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 16px;
  border: 1px solid var(--border-subtle);
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    box-shadow 0.35s ease, border-color 0.35s ease;
  cursor: pointer;
  position: relative;
}

.course-card:hover {
  transform: translateY(-12px) scale(1.03);
  border-color: var(--accent);
  box-shadow: 0 25px 55px rgba(99, 102, 241, 0.35);
  z-index: 5;
}

/* Featured / Popular course */
.course-card.popular:hover {
  transform: translateY(-14px) scale(1.06);
}

/* ===================== CONTACT ===================== */

#contact {
  background: radial-gradient(circle at center, #020617, #020617 55%);
}

.contact-container {
  max-width: 720px;
  margin: 0 auto;
}

.contact-container h2 {
  text-align: center;
  margin-bottom: 16px;
}

.contact-container form {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 18px 16px;
  border: 1px solid var(--border-subtle);
  display: grid;
  gap: 10px;
}

.contact-container input,
.contact-container textarea {
  width: 100%;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: #020617;
  color: var(--text);
  font-size: 14px;
}

.contact-container input:focus,
.contact-container textarea:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.5);
}

/* ===================== FOOTER ===================== */

#footer {
  border-top: 1px solid var(--border-subtle);
  background: #020617;
}

.footer-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 14px 16px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

/* ===================== HOVER FIXES (GLOBAL) ===================== */

/* Roadmap hover - use with .roadmap-item and .roadmap-dot */
.roadmap-item {
  position: relative;
  padding-left: 1.5rem;
  border-left: 3px solid var(--border-subtle);
  margin-bottom: 20px;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.roadmap-dot {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 3px solid var(--accent);
  background: #020617;
  position: absolute;
  left: -10px;
  top: 0;
  transition: all 0.3s ease;
}

.roadmap-item:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.roadmap-item:hover .roadmap-dot {
  background: var(--accent);
  box-shadow: 0 0 20px var(--accent);
  transform: scale(1.35);
}

/* Alumni icons hover */
.logo-track i {
  transition: color 0.3s ease, transform 0.3s ease;
}

.logo-track i:hover {
  color: var(--accent);
  transform: translateY(-3px);
  cursor: pointer;
}

/* Quiz options hover */
.quiz-opt,
.quiz-buttons button {
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease,
    box-shadow 0.2s ease;
}

.quiz-opt:hover,
.quiz-buttons button:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateX(10px);
  box-shadow: 0 12px 24px rgba(99, 102, 241, 0.55);
  color: #f9fafb;
}
