/* ============================================
   Campus360 — Premium Aesthetic Stylesheet
   ============================================ */

/* --- 0. CSS Custom Properties --- */
:root {
  /* Primary palette */
  --primary: #0f62fe;
  --primary-light: #2f80ff;
  --primary-dark: #003cc6;
  --accent: #ff5f1f;
  --accent-light: #ff8a57;
  --accent-soft: rgba(255, 95, 31, 0.12);

  /* Neutrals */
  --bg: #f7f4ea;
  --bg-card: #fffef8;
  --bg-card-solid: #fffef8;
  --text: #111827;
  --text-muted: #4b5563;
  --text-light: #6b7280;
  --border: rgba(17, 24, 39, 0.35);

  /* Glassmorphism */
  --glass-bg: #fffef8;
  --glass-border: rgba(17, 24, 39, 0.35);
  --glass-blur: 0px;

  /* Shadows */
  --shadow-sm: 3px 3px 0 #111827;
  --shadow-md: 6px 6px 0 #111827;
  --shadow-lg: 10px 10px 0 #111827;
  --shadow-glow: 0 0 0 transparent;

  /* Radii */
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 16px;
  --radius-xl: 18px;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 0.3s;

  /* Typography */
  --font:
    "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display-font: "Archivo Black", "Arial Black", sans-serif;
  --section-width: 980px;
}

/* --- 1. Base Styles & Reset --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  background: var(--bg);
  background-image:
    linear-gradient(90deg, rgba(17, 24, 39, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(17, 24, 39, 0.05) 1px, transparent 1px);
  background-size: 26px 26px;
  color: var(--text);
  line-height: 1.7;
  transition:
    background var(--duration) var(--ease),
    color var(--duration) var(--ease);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--duration) var(--ease);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* --- 2. Scroll Reveal Animations --- */
.scroll-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children */
.scroll-reveal .feature-item,
.scroll-reveal .stat,
.scroll-reveal .quicklink,
.scroll-reveal blockquote,
.scroll-reveal .faq-item,
.scroll-reveal .service-card {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.5s var(--ease),
    transform 0.5s var(--ease);
}

.scroll-reveal.revealed .feature-item,
.scroll-reveal.revealed .stat,
.scroll-reveal.revealed .quicklink,
.scroll-reveal.revealed blockquote,
.scroll-reveal.revealed .faq-item,
.scroll-reveal.revealed .service-card {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays */
.scroll-reveal.revealed :nth-child(1) {
  transition-delay: 0.05s;
}
.scroll-reveal.revealed :nth-child(2) {
  transition-delay: 0.1s;
}
.scroll-reveal.revealed :nth-child(3) {
  transition-delay: 0.15s;
}
.scroll-reveal.revealed :nth-child(4) {
  transition-delay: 0.2s;
}
.scroll-reveal.revealed :nth-child(5) {
  transition-delay: 0.25s;
}
.scroll-reveal.revealed :nth-child(6) {
  transition-delay: 0.3s;
}
.scroll-reveal.revealed :nth-child(7) {
  transition-delay: 0.35s;
}
.scroll-reveal.revealed :nth-child(8) {
  transition-delay: 0.4s;
}
.scroll-reveal.revealed :nth-child(9) {
  transition-delay: 0.45s;
}

/* --- 3. Hero Section --- */
.hero {
  color: #fff;
  position: relative;
  padding: 0;
  text-align: center;
  min-height: 520px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #ffdc58 0%, #ff7b2f 56%, #ff4f4f 100%);
  z-index: 1;
}

/* Floating particle effect (CSS-only) */
.hero-overlay::before,
.hero-overlay::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  animation: float 6s var(--ease) infinite alternate;
}

.hero-overlay::before {
  width: 300px;
  height: 300px;
  top: -60px;
  right: -80px;
  animation-delay: 0s;
}

.hero-overlay::after {
  width: 200px;
  height: 200px;
  bottom: -40px;
  left: -50px;
  animation-delay: 3s;
}

@keyframes float {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(30px, -30px) scale(1.15);
  }
}

.hero-content {
  max-width: 700px;
  margin: 0 auto;
  padding: 4rem 2rem 2rem;
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  font-family: var(--display-font);
  text-transform: uppercase;
  letter-spacing: -0.5px;
  color: #fff;
  margin-bottom: 0.4em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
  line-height: 1.15;
}

.hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  margin-bottom: 1.8em;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 400;
  line-height: 1.6;
}

.hero nav {
  position: sticky;
  top: 0.8rem;
  z-index: 2;
  padding: 0.6rem 0 1.4rem;
  width: min(96%, 1060px);
  margin: 0 auto;
}

.hero nav ul {
  display: flex;
  justify-content: center;
  gap: 2rem;
  background: #111827;
  border: 2px solid #111827;
  border-radius: var(--radius-xl);
  padding: 0.78rem 1.4rem;
  box-shadow: 5px 5px 0 #f7f4ea;
}

body.nav-scrolled .hero nav ul {
  background: #111827;
  box-shadow: 6px 6px 0 #f7f4ea;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(17, 24, 39, 0.35);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  margin-left: auto;
}

.nav-toggle-bar {
  width: 18px;
  height: 2px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 99px;
}

.hero nav a {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  position: relative;
  padding-bottom: 4px;
  transition: color var(--duration) var(--ease);
}

.hero nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: width var(--duration) var(--ease);
}

.hero nav a:hover {
  color: #fff;
}

.hero nav a:hover::after {
  width: 100%;
}

.hero nav a.active {
  color: #fff;
}

.hero nav a.active::after {
  width: 100%;
}

/* CTA Button */
.cta-btn {
  display: inline-block;
  background: #111827;
  color: #fffef8;
  padding: 0.85em 2.4em;
  border-radius: 12px;
  border: 2px solid #111827;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.3px;
  box-shadow: 4px 4px 0 #ffdc58;
  transition:
    transform var(--duration) var(--ease),
    box-shadow var(--duration) var(--ease);
  position: relative;
  overflow: hidden;
}

.cta-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.25),
    transparent
  );
  transition: left 0.5s var(--ease);
}

.cta-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 #ffdc58;
}

.cta-btn:hover::before {
  left: 100%;
}

/* --- 4. Sections (Glass) --- */
section {
  background: var(--glass-bg);
  border: 2px solid var(--glass-border);
  margin: 2.2rem auto;
  padding: 2.7rem 2.3rem;
  border-radius: var(--radius-lg);
  max-width: var(--section-width);
  box-shadow: var(--shadow-md);
  transition:
    background var(--duration) var(--ease),
    box-shadow var(--duration) var(--ease),
    border var(--duration) var(--ease);
}

section p {
  line-height: 1.75;
}

section h2 + * {
  margin-top: 0.9rem;
}

section h2 {
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  font-weight: 700;
  font-family: var(--display-font);
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 0.3em;
  letter-spacing: -0.3px;
  position: relative;
  display: inline-block;
}

section h2::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 3px;
  margin-top: 0.5em;
  margin-bottom: 1em;
}

/* --- 6. Home Card & Stats --- */
.home-card {
  background: linear-gradient(
    135deg,
    var(--glass-bg) 60%,
    rgba(99, 102, 241, 0.08) 100%
  );
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
}

.home-welcome {
  text-align: center;
  margin-bottom: 2em;
}

.home-welcome h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--text);
  margin-bottom: 0.4em;
}

.home-welcome h2::after {
  margin-left: auto;
  margin-right: auto;
}

.home-welcome p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

.home-quicklinks {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5em;
  flex-wrap: wrap;
}

.quicklink {
  background: var(--bg-card-solid);
  color: var(--primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.65em 1.4em;
  font-weight: 500;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 0.5em;
  transition: all var(--duration) var(--ease);
  box-shadow: var(--shadow-sm);
}

.quicklink:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.25);
}

.home-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.stat {
  background: var(--bg-card-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.3em 2.2em;
  text-align: center;
  min-width: 150px;
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--duration) var(--ease),
    box-shadow var(--duration) var(--ease);
}

.stat:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.stat-num {
  display: block;
  font-size: 1.6em;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  display: block;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  margin-top: 0.3em;
  letter-spacing: 0.2px;
}

/* --- 7. Features Section --- */
.features-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.7rem;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 2rem 1.2rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--duration) var(--ease),
    box-shadow var(--duration) var(--ease),
    border-color var(--duration) var(--ease);
}

.feature-item:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow-lg);
  border-color: rgba(99, 102, 241, 0.3);
}

.feature-icon {
  font-size: 1.6em;
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.1),
    rgba(244, 63, 94, 0.08)
  );
  border-radius: 50%;
  width: 3em;
  height: 3em;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform var(--duration) var(--ease);
}

.feature-item:hover .feature-icon {
  transform: scale(1.1);
}

.feature-item strong {
  font-size: 1.05rem;
  color: var(--text);
  font-weight: 600;
}

.feature-item p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

/* --- 8. Testimonials --- */
#testimonials {
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.04),
    rgba(244, 63, 94, 0.04)
  );
}

#testimonials h2::after {
  background: linear-gradient(90deg, var(--primary), var(--accent-light));
}

.testimonial-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.testimonial-list blockquote {
  background: var(--bg-card-solid);
  border-left: 4px solid var(--primary);
  margin: 0;
  padding: 1.5em 1.3em;
  border-radius: var(--radius-md);
  color: var(--text);
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.65;
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--duration) var(--ease),
    box-shadow var(--duration) var(--ease);
}

.testimonial-list blockquote:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.testimonial-list footer {
  margin-top: 0.8em;
  font-size: 0.85rem;
  font-style: normal;
  font-weight: 600;
  color: var(--primary);
}

/* --- 9. FAQ Section --- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.faq-item {
  background: var(--bg-card-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition:
    border-color var(--duration) var(--ease),
    box-shadow var(--duration) var(--ease);
}

.faq-item:hover {
  border-color: rgba(99, 102, 241, 0.3);
}

.faq-item summary {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  padding: 1em 1.3em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  user-select: none;
  transition: background var(--duration) var(--ease);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "▸";
  font-size: 1.1em;
  color: var(--primary);
  transition: transform var(--duration) var(--ease);
  flex-shrink: 0;
  margin-left: 1em;
}

.faq-item[open] summary::after {
  transform: rotate(90deg);
}

.faq-item summary:hover {
  background: rgba(99, 102, 241, 0.04);
}

.faq-item p {
  padding: 0 1.3em 1.2em;
  color: var(--text-muted);
  font-size: 0.93rem;
  line-height: 1.65;
  margin: 0;
}

/* --- 10. About Section --- */
#about {
  background: linear-gradient(
    135deg,
    var(--glass-bg) 70%,
    rgba(99, 102, 241, 0.06) 100%
  );
}

#about p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 700px;
}

/* --- 11. Services Section --- */
#services {
  background: linear-gradient(
    135deg,
    var(--glass-bg) 70%,
    rgba(244, 63, 94, 0.04) 100%
  );
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.2rem;
  margin-top: 0.5rem;
}

.service-card {
  background: var(--bg-card-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.3em 1.2em;
  display: flex;
  align-items: center;
  gap: 0.8em;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--duration) var(--ease),
    box-shadow var(--duration) var(--ease),
    border-color var(--duration) var(--ease);
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(99, 102, 241, 0.3);
}

.service-card .service-icon {
  font-size: 1.5em;
  flex-shrink: 0;
}

/* Fallback for ul/li services (if HTML not updated) */
#services ul {
  padding-left: 0;
  list-style: none;
}

#services li {
  padding: 0.7em 1em;
  background: var(--bg-card-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.6em;
  color: var(--text);
  font-weight: 500;
  transition: transform var(--duration) var(--ease);
}

#services li:hover {
  transform: translateX(6px);
}

/* --- 12. Footer --- */
footer#contact {
  background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 100%);
  color: rgba(255, 255, 255, 0.85);
  padding: 2.5rem 2rem 1.5rem;
  text-align: center;
  margin-top: 3rem;
  position: relative;
  overflow: hidden;
}

/* Subtle grid pattern overlay */
footer#contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1em;
  position: relative;
  z-index: 1;
}

.footer-brand {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: linear-gradient(
    135deg,
    var(--primary-light),
    var(--accent-light)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-contact {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-contact b {
  color: rgba(255, 255, 255, 0.8);
}

.footer-contact a {
  color: var(--primary-light);
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}

.footer-contact a:hover {
  color: #fff;
}

.footer-social {
  display: flex;
  gap: 0.8em;
  margin-top: 0.3em;
}

.footer-social-icon {
  font-size: 1.3em;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all var(--duration) var(--ease);
}

.footer-social-icon i {
  font-size: 1rem;
  line-height: 1;
}

.footer-social-icon:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
}

/* --- 13. Dark Mode Toggle --- */
#darkModeToggle {
  position: fixed;
  top: 1.2rem;
  right: 1.5rem;
  background: var(--bg-card-solid);
  border: 1px solid var(--border);
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: all var(--duration) var(--ease);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
}

#darkModeToggle:hover {
  transform: scale(1.1) rotate(15deg);
  box-shadow: var(--shadow-lg);
}

#darkModeIcon svg {
  display: block;
  width: 22px;
  height: 22px;
  pointer-events: none;
}

/* ======================================
   14. DARK MODE OVERRIDES
   ====================================== */
body.dark-mode {
  --primary: #7eaefe;
  --primary-light: #a4beff;
  --primary-dark: #5d8df6;
  --accent: #7eaefe;
  --accent-light: #a4beff;
  --accent-soft: rgba(126, 174, 254, 0.16);
  --bg: #0a1228;
  --bg-card: #11172b;
  --bg-card-solid: #11172b;
  --text: #dbe8ff;
  --text-muted: #9fb0d8;
  --text-light: #8ea2cf;
  --border: rgba(164, 190, 255, 0.32);
  --glass-bg: #11172b;
  --glass-border: rgba(164, 190, 255, 0.32);
  --shadow-sm: 3px 3px 0 #050914;
  --shadow-md: 6px 6px 0 #050914;
  --shadow-lg: 8px 8px 0 #050914;
  --shadow-glow: 0 0 0 transparent;
}

body.dark-mode {
  background-image:
    radial-gradient(circle, rgba(164, 190, 255, 0.22) 1.1px, transparent 1.1px),
    radial-gradient(circle, rgba(126, 174, 254, 0.12) 1.1px, transparent 1.1px),
    linear-gradient(180deg, #0a1228 0%, #0b1020 100%);
  background-size:
    24px 24px,
    24px 24px,
    100% 100%;
  background-position:
    0 0,
    12px 12px,
    0 0;
}

.dark-mode .hero-overlay {
  background: linear-gradient(135deg, #0f152a 0%, #16203a 58%, #1d2b4f 100%);
}

.dark-mode .hero nav ul {
  background: #11172b;
  border-color: #a4beff;
  box-shadow: 5px 5px 0 #050914;
}

body.dark-mode.nav-scrolled .hero nav ul {
  box-shadow: 6px 6px 0 #050914;
}

.dark-mode .hero nav a {
  color: #c6d7ff;
}

.dark-mode .hero nav a::after {
  background: #a4beff;
}

.dark-mode .hero nav a:hover,
.dark-mode .hero nav a.active {
  color: #dbe8ff;
}

.dark-mode .cta-btn {
  background: #16203a;
  color: #dbe8ff;
  border-color: #a4beff;
  box-shadow: 4px 4px 0 #050914;
}

.dark-mode .cta-btn:hover {
  box-shadow: 6px 6px 0 #050914;
}

.dark-mode section,
.dark-mode .feature-item,
.dark-mode .quicklink,
.dark-mode .stat,
.dark-mode .faq-item,
.dark-mode .service-card,
.dark-mode .testimonial-list blockquote {
  border-color: #90b0ff;
}

.dark-mode section h2 {
  color: var(--text);
}

.dark-mode .stat-num {
  background: linear-gradient(
    135deg,
    var(--primary-light),
    var(--accent-light)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dark-mode .feature-item strong {
  color: var(--text);
}

.dark-mode .feature-icon {
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.15),
    rgba(244, 63, 94, 0.1)
  );
  border-color: rgba(129, 140, 248, 0.2);
}

.dark-mode .testimonial-list blockquote {
  border-left-color: var(--primary-light);
}

.dark-mode #testimonials {
  background: #11172b;
}

.dark-mode .faq-item summary {
  color: var(--text);
}

.dark-mode .faq-item summary:hover {
  background: rgba(99, 102, 241, 0.08);
}

.dark-mode #darkModeToggle {
  background: #16203a;
  border-color: #a4beff;
  box-shadow: 3px 3px 0 #050914;
}

.dark-mode #darkModeToggle:hover {
  background: #7eaefe;
  box-shadow: 4px 4px 0 #050914;
}

.dark-mode footer#contact {
  background: linear-gradient(135deg, #0f152a 0%, #11172b 100%);
  border-top: 2px solid #90b0ff;
}

.dark-mode .quicklink:hover {
  background: var(--primary);
  color: #fff;
}

/* --- 15. Media Queries --- */
@media (max-width: 1000px) {
  .features-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .features-list {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .home-quicklinks {
    flex-direction: column;
    align-items: center;
  }

  .hero-content {
    padding: 3rem 1.2rem 1.5rem;
  }

  .hero nav ul {
    display: none;
    gap: 0.35rem;
    flex-wrap: nowrap;
    flex-direction: column;
    align-items: stretch;
    padding: 0.45rem;
    border-radius: var(--radius-md);
    margin-top: 0.6rem;
  }

  .hero nav ul.open {
    display: flex;
  }

  .hero nav {
    width: min(95%, 520px);
    top: 0.4rem;
    padding: 0.5rem 0 1rem;
  }

  .hero nav a {
    display: block;
    padding: 0.52rem 0.72rem;
    border-radius: var(--radius-sm);
  }

  .hero nav a:hover {
    background: rgba(255, 255, 255, 0.1);
  }

  .nav-toggle {
    display: inline-flex;
  }

  section {
    margin: 1.5rem 1rem;
    padding: 2rem 1.3rem;
  }

  .home-stats {
    gap: 1rem;
  }

  .stat {
    min-width: 120px;
    padding: 1em 1.3em;
  }

  #darkModeToggle {
    top: 0.8rem;
    right: 0.8rem;
    width: 38px;
    height: 38px;
  }

  .testimonial-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .hero nav ul {
    gap: 0.8rem;
    font-size: 0.88rem;
  }

  .home-card {
    padding: 2rem 1rem;
  }
}
