/*
=================================================
--- ⭐️ VMRF LANDING PAGE STYLES ⭐️ ---
=================================================
*/

/* --- Import Font --- */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap");

:root {
  --primary-color: #007fff;
  --secondary-color: #ff00fb;
  --text-dark: #111827;
  --text-light: #f9fafb;
  --text-muted: #6b7280;
  --bg-dark: #111827;
  --bg-light: #f0f4f8;
  --radius-lg: 16px;
  --radius-md: 8px;
  --success-color: #10b981;
  --danger-color: #ef4444;

  /* --- ADD THESE TWO LINES --- */
  --electric-blue: var(--text-light);
  --vibrant-pink: var(--primary-color);
  /* ------------------------- */
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  background: var(--bg-light);
  color: var(--text-dark);
  overflow-x: hidden;
  overflow-y: auto;
}

/* ======================= */
/* 1. Main Header */
/* ======================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
/* Scrolled state for header */
body.scrolled .site-header {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}
.logo a {
  color: #fff;
  text-decoration: none;
}
body.scrolled .logo a {
  color: var(--text-dark);
  text-shadow: none;
}
.logo .text-primary {
  color: var(--primary-color);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 25px;
}
.site-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}
body.scrolled .site-nav a {
  color: var(--text-muted);
  text-shadow: none;
}
body.scrolled .site-nav a:hover {
  color: var(--primary-color);
}
.site-nav a:hover {
  color: #eee;
}
body.scrolled .site-nav a:hover {
  color: var(--primary-color);
}

.login-nav-btn {
  border: none;
  background: #fff;
  color: var(--primary-color);
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  font-family: "Poppins", sans-serif;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}
.login-nav-btn:hover {
  background: var(--primary-color);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(67, 56, 202, 0.3);
}

/* ================================== */
/* 9. NEW Animated Hamburger Icon     */
/* ================================== */

/* Reset the button styles for our new <span>-based icon */
.mobile-nav-toggle {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  z-index: 1001;
  transition: color 0.3s ease;
  width: 30px;
  height: 24px;
  position: relative;
  display: none; /* Still hidden on desktop */
}

/* The three lines (spans) */
.mobile-nav-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background: #fff; /* WHITE by default (at top) */
  border-radius: 2px;
  position: absolute;
  left: 0;
  transition: all 0.3s ease-in-out;
}

.mobile-nav-toggle span:nth-child(1) {
  top: 0;
}
.mobile-nav-toggle span:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}
.mobile-nav-toggle span:nth-child(3) {
  bottom: 0;
}

/* --- VISIBILITY FIX --- */
/* When scrolled, make the lines DARK */
body.scrolled .mobile-nav-toggle span {
  background: var(--text-dark);
}

/* --- ANIMATION TO 'X' --- */
/* When menu is open, make the 'X' lines DARK */
body.mobile-nav-open .mobile-nav-toggle span {
  background: var(--text-dark); /* ALWAYS DARK */
}

/* Rotate top line */
body.mobile-nav-open .mobile-nav-toggle span:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}
/* Hide middle line */
body.mobile-nav-open .mobile-nav-toggle span:nth-child(2) {
  opacity: 0;
}
/* Rotate bottom line */
body.mobile-nav-open .mobile-nav-toggle span:nth-child(3) {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

/* This rule from section 8 is still needed to show the button */
@media (max-width: 900px) {
  .mobile-nav-toggle {
    display: block; /* Show hamburger button */
  }
}
/* ======================= */
/* 2. Hero Section */
/* ======================= */
.hero-section {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  color: #fff;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.2) 0%,
    rgba(0, 0, 0, 0.6) 100%
  );
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 20px;
}
.hero-content h1 {
  font-size: 4.5rem;
  font-weight: 800;
  margin: 0;
  text-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  letter-spacing: -2px;
}
.hero-content p {
  font-size: 1.5rem;
  font-weight: 400;
  margin: 10px 0 30px 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
.hero-cta {
  background: #fff;
  color: var(--primary-color);
  padding: 15px 35px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}
.hero-cta:hover {
  background: var(--primary-color);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(67, 56, 202, 0.4);
}
.scroll-down-prompt {
  position: absolute;
  bottom: 30px;
  z-index: 2;
  font-size: 1.5rem;
  color: #fff;
  animation: bounce 2s infinite ease-in-out;
}
@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* ======================= */
/* 3. Content Section */
/* ======================= */
.content-wrapper {
  padding: 80px 40px;
  position: relative;
  background: var(--bg-light);
  z-index: 5;
}
.content-card {
  background: #fff;
  border-radius: var(--radius-lg, 16px);
  padding: 40px;
  margin: 40px auto;
  max-width: 900px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}
.content-scene {
  max-width: 1100px;
  margin: 80px auto;
}
.scene-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 10px;
}
.scene-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Feature Section (About) */
.feature-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  max-width: 1200px;
  margin: 80px auto;
}
.feature-content {
  padding-right: 20px;
}
.feature-content .scene-title {
  text-align: left;
}
.feature-content p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 15px;
}
.feature-image-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}
.feature-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Category Cards */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}
.category-card {
  background: #fff;
  border-radius: var(--radius-lg, 16px);
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
}
.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(67, 56, 202, 0.1);
  border-color: var(--primary-color);
}
.category-card i {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}
.category-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 10px;
}
.category-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Image Break */
.image-break {
  height: 400px;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  border-radius: var(--radius-lg, 16px);
  overflow: hidden;
  margin: 80px 0;
}
.image-break-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}
.image-break-overlay h3 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Procedure List */
.procedure-wrapper {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.procedure-step {
  display: flex;
  align-items: flex-start;
  gap: 25px;
  background: #fff;
  border-radius: var(--radius-lg, 16px);
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid #e5e7eb;
}
.procedure-step span {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  background: color-mix(in srgb, var(--primary-color) 10%, transparent);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.procedure-text h3 {
  margin: 0 0 10px 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-dark);
}
.procedure-text p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Requirements Grid */
.requirements-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 30px;
}
.requirements-card {
  border-radius: var(--radius-lg);
  padding: 30px;
}
.requirements-card h4 {
  margin: 0 0 15px 0;
  font-size: 1.2rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}
.requirements-card ul {
  list-style: none;
  padding-left: 0;
  font-size: 0.95rem;
  line-height: 1.7;
}
.requirements-card.positive {
  background: color-mix(in srgb, var(--success-color) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--success-color) 30%, transparent);
}
.requirements-card.positive h4 {
  color: var(--success-color);
}
.requirements-card.negative {
  background: color-mix(in srgb, var(--danger-color) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--danger-color) 30%, transparent);
}
.requirements-card.negative h4 {
  color: var(--danger-color);
}

/* Scroll Animations */
.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.scroll-animate.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ======================= */
/* 4. Off-Canvas Login Panel */
/* ======================= */
.login-panel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s;
  backdrop-filter: blur(8px);
}
.login-panel-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

/* *** UPDATED: Login Panel CSS Fix *** */
.login-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 480px; /* Fixed width on desktop */
  max-width: 100%; /* Safety */
  height: 100vh;
  background: transparent;
  z-index: 1002;
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  display: grid;
  place-content: center;
  padding: 40px;
  /* overflow-y: auto; */
}
.login-panel.is-open {
  transform: translateX(0);
}

.login-panel-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: var(--danger-color);
  color: #fff;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}
.login-panel-close:hover {
  background: color-mix(in srgb, var(--danger-color) 85%, black);
  transform: scale(1.1);
  color: #fff;
}

/* =========================================== */
/* 5. STYLES FOR THE LOGIN BOX (copied) */
/* =========================================== */
.login-box {
  width: 420px;
  max-width: 100%;
  padding: 40px 35px;
  position: relative;
  overflow: hidden;
  z-index: 2;
  background: rgba(17, 24, 39, 0.75);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-origin: center;
}
.login-box:hover {
  transform: scale(1.03);
}
.login-box::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200%;
  height: 200%;
  z-index: -2;
  background: conic-gradient(
    transparent,
    transparent,
    transparent,
    #0091ff,
    #ff00fb,
    transparent
  );
  animation: neon-spin 4s linear infinite;
}
.login-box::after {
  content: "";
  position: absolute;
  inset: 3px;
  background: #111827;
  border-radius: 8px;
  z-index: -1;
}
@keyframes neon-spin {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.login-form {
  display: flex;
  flex-direction: column;
}
.login-form h2 {
  color: #ffffff;
  font-weight: 600;
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 5px;
}
.login-form p {
  color: #9ca3af; /* Gray text */
  text-align: center;
  font-size: 0.9rem;
  margin-bottom: 30px;
}

.form-group {
  width: 100%;
  border-radius: 5px;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 25px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 15px 20px;
  border: none;
  outline: none;
  background: #111827;
  border-radius: 5px;
  color: #ffffff;
  font-size: 14px;
  font-family: "Poppins", sans-serif;
  transition: 0.3s ease;
  position: relative;
  z-index: 2;
  box-sizing: border-box;
}
.form-group input[type="date"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  color: #9d9d9d;
}
.form-group input[type="date"]:focus,
.form-group input[type="date"]:valid {
  color: #ffffff;
}
.form-group input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
  cursor: pointer;
}
.form-group input:-webkit-autofill,
.form-group input:-webkit-autofill:hover,
.form-group input:-webkit-autofill:focus,
.form-group input:-webkit-autofill:active {
  -webkit-text-fill-color: #ffffff !important;
  color: #ffffff !important;
  box-shadow: 0 0 0 100px #111827 inset !important;
  transition: background-color 5000s ease-in-out 0s;
  font-family: "Poppins", sans-serif;
  font-size: 14px;
}
.form-group label {
  font-size: 14px;
  background: #111827;
  padding: 0 10px;
  pointer-events: none;
  position: absolute;
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
  transition: 0.3s ease;
  color: #9d9d9d;
  z-index: 3;
}
.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group select:focus ~ label,
.form-group select:valid ~ label,
.form-group input[type="date"]:focus ~ label,
.form-group input[type="date"]:valid ~ label {
  top: 0;
  transform: translateY(-50%) scale(0.9);
  color: #0091ff;
}
.form-group .input-bg {
  position: absolute;
  inset: -2px;
  z-index: -1;
  border-radius: 5px;
  transform: scaleX(0);
  transition: 0.3s ease;
}
.form-group input:focus ~ .input-bg {
  background: linear-gradient(to right, #0091ff, #ff00fb);
  transform: scaleX(1);
}

.login-btn {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 5px;
  background: linear-gradient(to right, #0091ff, #ff00fb);
  color: white;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.login-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 0 20px rgba(0, 145, 255, 0.5);
}

.social-icons {
  text-align: center;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: center;
  gap: 20px;
}
.social-icons a {
  color: #9ca3af;
  text-decoration: none;
  font-size: 1rem;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid #9ca3af;
  transition: all 0.3s ease;
}
.social-icons a:hover {
  color: #fff;
  background: #0091ff;
  border-color: #0091ff;
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 145, 255, 0.4);
}
.form-footer {
  text-align: center;
  margin-top: 20px;
}
.form-footer a {
  color: #9ca3af;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.form-footer a:hover {
  color: #0091ff;
}
.error-message {
  text-align: center;
  margin-bottom: 15px;
  color: #f87171;
  background-color: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 10px;
  border-radius: 8px;
}

/* ======================= */
/* 6. Footer */
/* ======================= */
.site-footer {
  background: var(--text-dark);
  color: var(--text-muted);
  padding: 60px 40px;
}
.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}
.footer-column h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 20px;
}
.footer-column p {
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 400px;
}
.footer-column.links ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-column.links li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-column.links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}
.footer-column.links a:hover {
  color: var(--text-light);
}
.social-icons-footer {
  margin-top: 20px;
  display: flex;
  gap: 15px;
}
.social-icons-footer a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}
.social-icons-footer a:hover {
  color: #fff;
  transform: scale(1.1) translateY(-2px);
}
.footer-bottom {
  max-width: 1200px;
  margin: 40px auto 0 auto;
  padding-top: 20px;
  border-top: 1px solid #374151; /* dark border */
  text-align: center;
  font-size: 0.9rem;
}

/* ======================= */
/* 7. Modal (for student login) */
/* ======================= */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease-out;
}
.modal-content {
  background-color: #1f2937;
  color: #f9fafb;
  padding: 30px;
  border-radius: 10px;
  width: 100%;
  max-width: 350px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.modal-content h3 {
  color: #f87171;
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.25rem;
}
.modal-content p {
  margin-bottom: 20px;
  font-size: 1rem;
  color: #d1d5db;
}
.modal-close-btn {
  background: #4338ca;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  transition: background-color 0.3s;
}
.modal-close-btn:hover {
  background-color: #3730a3;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ================================== */
/* 8. Responsive (Mobile Optimization) */
/* ================================== */

/* --- Medium Screens (Tablets) --- */
@media (max-width: 900px) {
  .site-header {
    padding: 15px 20px;
  }

  /* --- NEW Mobile Nav --- */
  .mobile-nav-toggle {
    display: block; /* Show hamburger */
  }
  .site-nav {
    /* Becomes the mobile menu panel */
    position: fixed;
    top: 0;
    right: 0;
    width: 300px; /* Width of the mobile panel */
    max-width: 80vw;
    height: 100vh;

    /* --- 1. UPDATED: "Glassmorphism" Effect --- */
    background: rgba(255, 255, 255, 0.85); /* Was #e0e0e0 */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px); /* For Safari */

    /* --- 2. UPDATED: Softer Shadow & Subtle Border --- */
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.1); /* Softer, darker shadow */
    border-left: 1px solid rgba(255, 255, 255, 0.1); /* Defines the glass edge */

    flex-direction: column;
    padding: 100px 30px 30px 30px;
    gap: 20px; /* Slightly smaller gap */
    align-items: flex-start;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 99;
  }
  body.mobile-nav-open .site-nav {
    transform: translateX(0);
  }

  /* --- 3. UPDATED: Mobile Nav Link Styling --- */
  .site-nav a {
    color: var(--text-dark); /* Darker text for a light bg */
    font-size: 1.15rem;
    font-weight: 500; /* Slightly bolder */
    text-shadow: none;
    display: block;
    width: 100%;
    padding: 10px 15px; /* Add padding for hover effect */
    border-radius: 8px; /* Rounded corners for hover */
    transition: all 0.25s ease-out; /* Smooth transition */
  }
  .site-nav a:hover {
    color: var(--primary-color);
    background: color-mix(
      in srgb,
      var(--primary-color) 10%,
      transparent
    ); /* "Pill" background */
    transform: translateX(5px); /* Slight bump on hover */
  }

  /* Mobile Login Button */
  .login-nav-btn {
    background: var(--primary-color);
    color: #fff;
    width: 100%;
    justify-content: center;
    padding: 15px;
    margin-top: 10px;
    transition: all 0.25s ease-out; /* Add transition */
  }
  .login-nav-btn:hover {
    background: color-mix(in srgb, var(--primary-color) 85%, black);
    transform: scale(1.03); /* Add a slight grow effect */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  }

  /* --- (Rest of your styles) --- */
  .hero-content h1 {
    font-size: 3rem;
  }
  .hero-content p {
    font-size: 1.2rem;
  }
  .content-wrapper {
    padding: 40px 20px;
  }
  .scene-title {
    font-size: 2rem;
  }
  .feature-section {
    grid-template-columns: 1fr; /* Stack on mobile */
  }
  .requirements-grid {
    grid-template-columns: 1fr; /* Stack on mobile */
  }
  .footer-content {
    grid-template-columns: 1fr; /* Stack on mobile */
    gap: 30px;
  }
}
/* --- Small Screens (Phones) --- */
@media (max-width: 500px) {
  /* *** UPDATED: Login Panel Fix for Small Screens *** */
  .login-panel {
    width: 100%; /* Full width */
    padding: 40px 25px;
    /* Allow scrolling on small screens */
    display: block;
    overflow-y: auto;
  }
  .login-box {
    width: 100%;
    padding: 30px 25px;
  }

  /* Make modal smaller */
  .modal-content {
    max-width: 90vw;
    padding: 25px;
  }

  /* Adjust hero text */
  .hero-content h1 {
    font-size: 2.5rem;
  }
  .hero-content p {
    font-size: 1.1rem;
  }
}

/* ======================= */
/* 10. Hero Wave Animation */
/* ======================= */

.card-header {
  color: var(--electric-blue); /* This is your white color */
  font-size: 4.5rem;
  font-weight: 800;
  letter-spacing: -2px;
  text-align: center;
  cursor: default;
  transition: all 0.3s ease-in-out;
  margin: 0;

  /* FIX 1: Added base text-shadow. 
    This matches the default hero shadow so the animation starts smoothly.
  */
  text-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.card-header span.l {
  display: inline-block;
  position: relative;
  transform: translateY(0);
  transition: none;
}

.card-header:hover span.l {
  /* *** UPDATED: Changed from 4s to 3s *** */
  animation: waveTravel 3s ease-in-out infinite;
}

/* *** UPDATED: Staggered Delay - Adjusted for 3s (0.075s) *** */
.card-header span.l:nth-child(1) {
  animation-delay: 0s;
}
.card-header span.l:nth-child(2) {
  animation-delay: 0.075s;
}
.card-header span.l:nth-child(3) {
  animation-delay: 0.15s;
}
.card-header span.l:nth-child(4) {
  animation-delay: 0.225s;
}
.card-header span.l:nth-child(5) {
  animation-delay: 0.3s;
}
.card-header span.l:nth-child(6) {
  animation-delay: 0.375s;
}
.card-header span.l:nth-child(7) {
  animation-delay: 0.45s;
}
.card-header span.l:nth-child(8) {
  animation-delay: 0.525s;
}
.card-header span.l:nth-child(9) {
  animation-delay: 0.6s;
}
.card-header span.l:nth-child(10) {
  animation-delay: 0.675s;
}
.card-header span.l:nth-child(11) {
  animation-delay: 0.75s;
}
.card-header span.l:nth-child(12) {
  animation-delay: 0.825s;
}
.card-header span.l:nth-child(13) {
  animation-delay: 0.9s;
}
.card-header span.l:nth-child(14) {
  animation-delay: 0.975s;
}
.card-header span.l:nth-child(15) {
  animation-delay: 1.05s;
}
.card-header span.l:nth-child(16) {
  animation-delay: 1.125s;
}
/* Add more if needed for more letters */

/* FIX 2: Corrected Keyframes.
  The shadow now matches your white base text and blue "wave" color.
*/
@keyframes waveTravel {
  0%,
  100% {
    transform: translateY(0);
    color: var(--electric-blue); /* Your white text */
    text-shadow: 0 5px 20px rgba(0, 0, 0, 0.3); /* Default dark shadow */
  }
  15% {
    transform: translateY(-10px);
    color: var(--vibrant-pink); /* Your primary blue */
    /* New blue glow (from #007fff) */
    text-shadow: 0 5px 20px rgba(0, 127, 255, 0.5);
  }
  30% {
    transform: translateY(0);
    color: var(--electric-blue); /* Your white text */
    text-shadow: 0 5px 20px rgba(0, 0, 0, 0.3); /* Default dark shadow */
  }
}

/* --- Fix hero text size on mobile --- */
@media (max-width: 900px) {
  .card-header {
    font-size: 3rem;
  }
}
@media (max-width: 500px) {
  .card-header {
    font-size: 2.5rem;
  }
}
