/* @import url(https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap) */

html,
body {
  max-width: 100%;
  overflow-x: hidden; /*This prevents d side-scrolling entirely*/
  margin: 0;
  padding: 0;
}

:root {
  --primary: #2563eb;
  --dark: #1e293b;
  --light: #f8fafc;
  --max-width: 1300px;
}
body {
  font-family: "Inter", sans-serif;
  margin: 0;
  line-height: 1.6;
  background-color: var(--light);
  color: var(--dark);
}
/* Mobile-First Header */
header {
  background: white;
  padding: 1rem 5%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 2000;
  height: 70px; /*Fixed height helps prevent layout shifts*/
}
.logo {
  font-weight: bold;
  font-size: 1.25rem;
  color: var(--primary);
}
/* Hero Section */
.hero {
  padding: 4rem 1.5rem;
  text-align: center;
  background: linear-gradient(to bottom, #ffffff, #e2e8f0);
}
.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}
.cta-button {
  background: var(--primary);
  color: white;
  padding: 1rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  margin-top: 1.5rem;
}
.btn-msg {
  border: none;
  cursor: pointer;
  width: 100%;
}
/* Hamburger Icon Styling */
.menu-toggle {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 3000;
  padding: 10px;
  position: relative;
}
.hamburger {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--dark);
  position: relative;
  transition: background 0.3s;
}
.hamburger::before,
.hamburger::after {
  content: "";
  width: 25px;
  height: 3px;
  background: var(--dark);
  position: absolute;
  left: 0;
  transition: 0.3s;
}
.hamburger::before {
  top: -8px;
}
.hamburger::after {
  bottom: -8px;
}
/*Force d hamburger n its parts to be dark/visible*/
.hamburger,
.hamburger::before,
.hamburger::after {
  background: #1e293b; /*A dark navy/black color*/
}
/*The X Transformation Menu Transformation (The "X" shape) */
.menu-toggle.is-active .hamburger {
  background: transparent !important; /*Hide d middle line*/
}
.menu-toggle.is-active .hamburger::before {
  transform: rotate(45deg);
  top: 0;
  background: #1e293b;
}
.menu-toggle.is-active .hamburger::after {
  transform: rotate(-45deg);
  bottom: 0;
  background: #1e293b;
}
/* Navigation Logic */
.nav-menu {
  position: fixed;
  top: 0;
  right: -100%; /* Hidden off-screen */
  width: 260px; /*Fixed width feels more stable than %*/
  height: 100vh;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  padding-top: 80px; /*Space for d logo/close btn*/
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
  z-index: 2500;
  transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-left: 1px solid #f1f5f9;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
/*Position d X btn inside d menu container*/
.menu-toggle.is-active {
  position: fixed;
  right: 20px;
  top: 15px;
}
/*Show d menu when active*/
.nav-menu.is-active {
  right: 0; /* Slides in */
} /*Ensure links are stacked nicely*/
.nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 80px 20px; /*Space at d top for d X btn are*/
}
.nav-links a {
  text-decoration: none;
  color: var(--dark);
  font-size: 1.2rem;
  font-weight: bold;
}
/* Desktop View (Show links, hide hamburger) */
@media (min-width: 768px) {
  /*Hide d hamburger icon on desktops*/
  .menu-toggle {
    display: none;
  }
  /*Reset d nav-menu to show normally*/
  .nav-menu {
    position: static;
    width: auto;
    height: auto;
    background: none;
    box-shadow: none;
    padding-top: 0;
    right: 0;
  }
  .nav-links {
    flex-direction: row; /*Horizontal on desktop*/
    padding: 0;
  }
}

/* Student Dashboard Container (Vanilla JS Target) */
.js-container {
  padding: 2rem 1rem;
  max-width: 600px;
  margin: 0 auto;
}
.js-container p {
  text-align: center;
}
/* Stats Styling */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  padding: 2rem 1rem;
  background: var(--dark);
  color: white;
  text-align: center;
}
.stat-card h3 {
  font-size: 2rem;
  margin: 0;
  color: #60a5fa; /* Light blue */
}
/* Testimonials Styling */
.testimonials {
  padding: 3rem 1rem;
  background: white;
}
.testimonial-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}
.testimonials h2 {
  text-align: center;
}
.testimonial-card {
  background: #f1f5f9;
  padding: 1.5rem;
  border-left: 5px solid var(--primary);
  border-radius: 8px;
  margin: 0;
}
.testimonial-card p {
  font-style: italic;
  margin-bottom: 1rem;
}
/* Responsive Tablet/Desktop View */
@media (min-width: 768px) {
  .testimonial-container {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-section {
  padding: 4rem 1rem;
  background-color: #f8fafc;
}
.contact-container {
  max-width: 600px;
  margin: 0 auto;
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}
.form-group {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
}
.form-group label {
  font-weight: bold;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.8rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
/* Semantic Footer */
footer {
  background: var(--dark);
  color: white;
  padding: 3rem 1.5rem;
  margin-top: 4rem;
}
footer p {
  text-align: center;
  font-size: 0.8rem;
}
footer hr {
  border: 0;
  border-top: 1px solid #334155;
  margin: 2rem 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .hero h1 {
    font-size: 3.5rem;
  }
}
.footer-links {
  list-style: none;
  padding: 0;
}
.footer-links li {
  margin-bottom: 0.5rem;
}
.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
}

/* Enhanced Student Dashboard */
.student-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  padding-top: 1rem;
}
.student-card {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  transition: transform 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.student-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}
.track-badge {
  background: #dbeafe;
  color: #1e40af;
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  width: fit-content;
  font-weight: bold;
}
