/* ==========================================================================
   CLEBSCH ROBOTICS CLUB - ULTRA-PREMIUM SOLID BLACK MONOCHROME THEME
   Theme: Pure Deep Obsidian Black (#08080a), Titanium Silver & Crisp White (#ffffff)
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Iceland&family=Rajdhani:wght@500;600;700;800&family=Outfit:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500;600;700&display=swap");

:root {
  /* Default Theme: Crisp Luxury White Palette */
  --bg-core: #f8f8fc;
  --bg-primary: #f8f8fc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f0f0f6;
  --bg-surface-hover: #e6e6f0;
  --bg-surface-glass: rgba(255, 255, 255, 0.92);

  /* High-Contrast Deep Solid Typography */
  --text-primary: #000000;
  --text-secondary: #0f172a;
  --text-muted: #334155;
  --text-silver: #1e293b;
  --white-pure: #000000;
  --black-pure: #ffffff;

  --border-subtle: rgba(0, 0, 0, 0.14);
  --border-active: rgba(0, 0, 0, 0.5);
  --border-highlight: #000000;

  --accent-color: #000000;
  --accent-glow: rgba(0, 0, 0, 0.15);

  --font-heading: "Iceland", "Rajdhani", sans-serif;
  --font-robotics: "Iceland", "Rajdhani", sans-serif;
  --font-body: "Rajdhani", "Outfit", sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  --transition-smooth: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-core);
}

body {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-primary);
  background-color: var(--bg-core);
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(0, 0, 0, 0.02) 0%, transparent 60%),
    linear-gradient(to bottom, #ffffff 0%, #f4f4f8 50%, #eaeaf2 100%);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Subtle Technical Grid on Light Background */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: 
    linear-gradient(to right, rgba(0, 0, 0, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* ==========================================================================
   TYPOGRAPHY & UTILITIES
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading) !important;
  letter-spacing: 0.04em;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-primary);
}

p {
  font-family: var(--font-body);
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: 0.015em;
  line-height: 1.6;
  color: var(--text-secondary);
}

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

.font-mono { font-family: var(--font-mono) !important; font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-robotics);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-subtle);
  padding: 0.4rem 1.1rem;
  border-radius: 100px;
  margin-bottom: 1rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.section-title {
  font-family: var(--font-heading) !important;
  font-size: clamp(2.4rem, 4.5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.04em;
  color: var(--text-primary);
}

.section-subtitle {
  font-family: var(--font-body) !important;
  color: var(--text-secondary) !important;
  font-size: 1.18rem !important;
  font-weight: 600 !important;
  max-width: 760px;
  margin: 0.8rem auto 0;
  line-height: 1.6;
  text-transform: none;
}

.text-white { color: #ffffff; }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }

.w-full { width: 100%; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mr-2 { margin-right: 0.5rem; }

.container {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

.section {
  width: 100%;
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-subtle);
  padding: 0.4rem 1.1rem;
  border-radius: 100px;
  margin-bottom: 1rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.section-title {
  font-family: var(--font-heading) !important;
  font-size: clamp(2.4rem, 4.5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.04em;
  color: var(--text-primary);
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 720px;
  margin: 0.8rem auto 0;
  line-height: 1.65;
  text-transform: none;
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */

.cyber-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: var(--transition-smooth);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 75px;
  max-width: 100%;
  padding: 0 clamp(1.2rem, 3vw, 2.8rem);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  text-decoration: none;
  flex-shrink: 0;
  white-space: nowrap;
}

.brand-logo-img {
  height: 28px;
  width: 28px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
  transition: transform 0.25s ease;
}

.brand-logo:hover .brand-logo-img {
  transform: scale(1.08);
}

.logo-dark {
  display: block !important;
}

.logo-light {
  display: none !important;
}

.logo-hex {
  width: 38px;
  height: 38px;
  background: #000000;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.15rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.brand-telemetry {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1.2;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(0.25rem, 0.75vw, 0.75rem);
  list-style: none;
  flex-wrap: nowrap;
}

.nav-links li {
  flex-shrink: 0;
  white-space: nowrap;
}

.nav-links a {
  font-family: var(--font-heading);
  font-size: clamp(0.9rem, 0.98vw, 0.98rem);
  font-weight: 700;
  color: #1e293b;
  position: relative;
  padding: 0.4rem 0.55rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  letter-spacing: 0.01em;
  white-space: nowrap !important;
  flex-shrink: 0;
}

.nav-links a i {
  font-size: 0.92rem;
  color: #10b981;
  transition: transform 0.22s ease, color 0.22s ease;
  flex-shrink: 0;
}

.nav-links a:hover {
  color: #000000;
  background: rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.nav-links a:hover i {
  transform: scale(1.18);
  color: #059669;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: #10b981;
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-links a:hover::after {
  width: 65%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.audio-btn {
  background: #f0f0f5;
  border: 1px solid rgba(0, 0, 0, 0.14);
  color: #050508;
  padding: 0.45rem 0.95rem;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  transition: var(--transition-smooth);
}

.audio-btn:hover, .audio-btn.active {
  border-color: #000000;
  background: #000000;
  color: #ffffff;
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  color: #000000;
  font-size: 1.4rem;
  cursor: pointer;
}

/* ==========================================================================
   HERO SECTION — FULL VIEWPORT 3D + CLEAN FLOATING TITLE (NO BOX DIV)
   ========================================================================== */

.hero-fullscreen {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-height: 620px;
  max-width: 100%;
  overflow: hidden;
  background: #070709;
}

.hero-bg-backdrop-text {
  position: absolute;
  top: 52%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  text-align: center;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.backdrop-big-title {
  font-family: var(--font-robotics);
  font-size: clamp(5rem, 18vw, 19rem);
  font-weight: 900;
  letter-spacing: 0.14em;
  line-height: 0.85;
  color: transparent;
  -webkit-text-stroke: 2.5px rgba(255, 255, 255, 0.18);
  text-shadow: 0 0 80px rgba(255, 255, 255, 0.08);
  text-transform: uppercase;
}

body.light-theme .backdrop-big-title {
  -webkit-text-stroke: 2.5px rgba(0, 0, 0, 0.12);
  text-shadow: 0 0 80px rgba(0, 0, 0, 0.03);
}

.hero-spline-fullbg {
  position: absolute;
  inset: 0 0 -55px 0;
  width: 100%;
  height: calc(100% + 55px);
  left: 0;
  top: 0;
  z-index: 1;
  pointer-events: auto;
  transform: scale(1.05) translateY(18px);
  transform-origin: center top;
  overflow: hidden;
}

.hero-spline-fullbg canvas,
.hero-spline-fullbg spline-viewer {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

/* Hide any Spline watermark or badge */
#spline-logo,
spline-viewer::part(logo),
spline-viewer::part(brand),
a[href*="spline.design"],
.spline-watermark,
#logo {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

.hero-spline-loader {
  position: absolute;
  inset: 0;
  background: var(--bg-core);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

body.dark-theme .hero-spline-loader {
  background: #070709;
}

.spline-tech-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(16, 185, 129, 0.18);
  border-top-color: #10b981;
  border-radius: 50%;
  animation: spin 0.85s linear infinite;
  margin-bottom: 1.1rem;
}

.spline-loader-text {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.08em;
  margin-bottom: 0.85rem;
}

.spline-loader-bar {
  width: 170px;
  height: 3px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

body.dark-theme .spline-loader-bar {
  background: rgba(255, 255, 255, 0.12);
}

.spline-loader-fill {
  width: 50%;
  height: 100%;
  background: #10b981;
  border-radius: 3px;
  animation: pulse-fill 1.4s ease-in-out infinite;
}

@keyframes pulse-fill {
  0% { transform: translateX(-100%); }
  50% { transform: translateX(80%); }
  100% { transform: translateX(220%); }
}

/* PURE FLOATING TITLE (ELEVATED TO UPPER-LEFT, NO OVERLAP WITH ROBOT) */
.hero-floating-title-wrap {
  position: absolute;
  left: clamp(2rem, 5.5vw, 5rem);
  top: clamp(16%, 22vh, 28%);
  bottom: auto;
  z-index: 10;
  pointer-events: none;
  max-width: 650px;
}

.hero-floating-title-wrap * {
  pointer-events: auto;
}

.hero-single-title {
  font-family: var(--font-robotics);
  font-size: clamp(1.8rem, 3.5vw, 2.9rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 0.45rem;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .hero-single-title {
    white-space: normal;
  }
}

.hero-institution-sub {
  font-family: var(--font-mono);
  font-size: clamp(0.85rem, 1.2vw, 1.05rem);
  font-weight: 600;
  color: #10b981;
  letter-spacing: 0.06em;
  text-transform: none;
  margin-bottom: 1.35rem;
  opacity: 0.95;
  text-align: center;
  width: 100%;
  display: block;
}

body.light-theme .hero-institution-sub {
  color: #334155;
}

.hero-floating-actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.hero-scroll-bottom {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.scroll-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  opacity: 0.75;
  transition: opacity 0.25s ease;
}

.scroll-link:hover {
  opacity: 1;
}

.scroll-mouse {
  width: 22px;
  height: 34px;
  border: 2px solid #ffffff;
  border-radius: 12px;
  position: relative;
}

.scroll-wheel {
  width: 3px;
  height: 6px;
  background: #ffffff;
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: mouse-scroll 1.6s infinite;
}

@keyframes mouse-scroll {
  0% { transform: translate(-50%, 0); opacity: 1; }
  100% { transform: translate(-50%, 14px); opacity: 0; }
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.cyber-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.65rem 1.4rem;
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.cyber-btn-cyan, .cyber-btn-primary {
  background: #ffffff;
  color: #000000;
  border: 1px solid #ffffff;
  box-shadow: 0 4px 18px rgba(255, 255, 255, 0.2);
}

.cyber-btn-cyan:hover, .cyber-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.35);
  background: #eaeaea;
}

.cyber-btn-outline {
  background: rgba(14, 14, 19, 0.7);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.cyber-btn-outline:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

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

.stats-banner-section {
  padding: 3rem 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: #0b0b0f;
}

.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
  width: 100%;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.4rem;
}

@media (max-width: 900px) {
  .hero-stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

.mobile-menu-btn {
  display: none;
}


/* ==========================================================================
   THEME TOGGLE BUTTON (Dark <-> Light)
   ========================================================================== */

.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: #f0f0f5;
  border: 1px solid rgba(0, 0, 0, 0.14);
  color: #050508;
  padding: 0.4rem 0.85rem;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  user-select: none;
  flex-shrink: 0;
}

.theme-toggle-btn:hover {
  border-color: rgba(0, 0, 0, 0.35);
  background: #e4e4ee;
}

.theme-toggle-track {
  display: inline-flex;
  align-items: center;
  width: 38px;
  height: 20px;
  background: #d8d8e4;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 100px;
  position: relative;
  transition: background 0.3s ease;
  flex-shrink: 0;
}

.theme-toggle-thumb {
  width: 16px;
  height: 16px;
  background: #000000;
  border-radius: 50%;
  position: absolute;
  left: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.5rem;
  color: #ffffff;
  transition: left 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* ========================================================================
   FULL THEME SWITCHING (LIGHT THEME DEFAULT // DARK THEME OVERRIDE)
   ======================================================================== */
body.dark-theme,
html[data-theme="dark"],
html[data-theme="dark"] body {
  /* Solid Deep Obsidian Black Palette */
  --bg-core: #070709;
  --bg-primary: #070709;
  --bg-surface: #0e0e13;
  --bg-surface-elevated: #15151c;
  --bg-surface-hover: #1e1e28;
  --bg-surface-glass: rgba(10, 10, 15, 0.9);

  /* Crisp Pure White & Silver Typography */
  --text-primary: #ffffff;
  --text-secondary: #dcdce6;
  --text-muted: #9e9ea8;
  --text-silver: #c4c4d0;
  --white-pure: #ffffff;
  --black-pure: #000000;

  --border-subtle: rgba(255, 255, 255, 0.12);
  --border-active: rgba(255, 255, 255, 0.45);
  --border-highlight: #ffffff;

  --accent-color: #ffffff;
  --accent-glow: rgba(255, 255, 255, 0.25);

  color: #ffffff !important;
  background-color: #070709 !important;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.05) 0%, transparent 60%),
    radial-gradient(circle at 80% 50%, rgba(255, 255, 255, 0.02) 0%, transparent 40%),
    linear-gradient(to bottom, #070709 0%, #0c0c10 50%, #070709 100%) !important;
}

body.dark-theme::before,
html[data-theme="dark"] body::before {
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
}

body.dark-theme .cyber-nav,
html[data-theme="dark"] .cyber-nav {
  background: rgba(7, 7, 9, 0.88);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

body.dark-theme .brand-logo { color: #ffffff; }
body.dark-theme .logo-light { display: block !important; }
body.dark-theme .logo-dark { display: none !important; }
body.dark-theme .nav-links a { color: #d1d5db; }
body.dark-theme .nav-links a:hover { 
  color: #ffffff; 
  background: rgba(255, 255, 255, 0.08); 
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.2); 
}
body.dark-theme .nav-links a i { color: #10b981; }
body.dark-theme .nav-links a:hover i { color: #34d399; }
body.dark-theme .nav-links a::after { background: #10b981; }
body.dark-theme .audio-btn { color: #ffffff; background: #15151c; border-color: rgba(255, 255, 255, 0.15); }
body.dark-theme .mobile-menu-btn { color: #ffffff; }

body.dark-theme .section-tag, html[data-theme="dark"] .section-tag { color: #ffffff; background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.12); }
body.dark-theme h1, html[data-theme="dark"] h1,
body.dark-theme h2, html[data-theme="dark"] h2,
body.dark-theme h3, html[data-theme="dark"] h3,
body.dark-theme h4, html[data-theme="dark"] h4,
body.dark-theme h5, html[data-theme="dark"] h5,
body.dark-theme h6, html[data-theme="dark"] h6,
body.dark-theme .section-title, html[data-theme="dark"] .section-title,
body.dark-theme .cmd-panel-title, html[data-theme="dark"] .cmd-panel-title,
body.dark-theme .robot-lab-title, html[data-theme="dark"] .robot-lab-title,
body.dark-theme .project-title, html[data-theme="dark"] .project-title,
body.dark-theme .gallery-title, html[data-theme="dark"] .gallery-title,
body.dark-theme .team-name, html[data-theme="dark"] .team-name,
body.dark-theme .channel-title, html[data-theme="dark"] .channel-title { color: #ffffff !important; }

body.dark-theme p, html[data-theme="dark"] p,
body.dark-theme .cmd-panel-desc, html[data-theme="dark"] .cmd-panel-desc,
body.dark-theme .project-desc, html[data-theme="dark"] .project-desc,
body.dark-theme .gallery-desc, html[data-theme="dark"] .gallery-desc,
body.dark-theme .team-bio, html[data-theme="dark"] .team-bio,
body.dark-theme .channel-text, html[data-theme="dark"] .channel-text,
body.dark-theme .section-subtitle, html[data-theme="dark"] .section-subtitle { color: #e2e8f0 !important; }

body.dark-theme .text-muted, body.dark-theme .stat-label,
body.dark-theme .team-role { color: #9e9ea8; }

body.dark-theme .stats-banner-section { background: #0c0c12; border-color: rgba(255, 255, 255, 0.08); }
body.dark-theme .stat-number { color: #ffffff; }

body.dark-theme .tilt-card, body.dark-theme .robot-lab-card,
body.dark-theme .cmd-panel, body.dark-theme .project-card, body.dark-theme .gallery-card,
body.dark-theme .contact-channel-card, body.dark-theme .contact-form-card,
body.dark-theme .intake-form-box, body.dark-theme .flagship-countdown-box,
body.dark-theme .team-card, body.dark-theme .glass-panel {
  background: #0d0d14 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
  border-radius: 16px !important;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

body.dark-theme .tilt-card:hover, body.dark-theme .robot-lab-card:hover,
body.dark-theme .project-card:hover, body.dark-theme .gallery-card:hover,
body.dark-theme .contact-channel-card:hover,
body.dark-theme .team-card:hover, body.dark-theme .glass-panel:hover {
  border-color: rgba(255, 255, 255, 0.45) !important;
  transform: translateY(-5px) !important;
  box-shadow: 0 20px 45px -8px rgba(0, 0, 0, 0.9), 0 0 25px rgba(255, 255, 255, 0.07) !important;
}

body.dark-theme .wing-icon-box { background: #15151c; border-color: rgba(255, 255, 255, 0.12); color: #ffffff; }
body.dark-theme .tech-tag { background: #15151c; border-color: rgba(255, 255, 255, 0.12); color: #dcdce6; }
body.dark-theme .robot-lab-id { background: #15151c; border-color: rgba(255, 255, 255, 0.12); color: #9e9ea8; }
body.dark-theme .robot-lab-header { border-bottom-color: rgba(255, 255, 255, 0.12); }
body.dark-theme .lab-mini-controls-bar { background: rgba(14, 14, 19, 0.92); border-color: rgba(255, 255, 255, 0.12); }
body.dark-theme .mini-mode-btn { background: #15151c; border-color: rgba(255, 255, 255, 0.12); color: #9e9ea8; }
body.dark-theme .mini-mode-btn.active,
body.dark-theme .mini-mode-btn:hover { background: #ffffff; color: #000000; border-color: #ffffff; }
body.dark-theme .mini-rotate-toggle { color: #ffffff; }
body.dark-theme .mini-metric-box { background: #15151c; border-color: rgba(255, 255, 255, 0.1); }
body.dark-theme .mini-metric-lbl { color: #9e9ea8; }
body.dark-theme .mini-metric-val { color: #ffffff; }
body.dark-theme .mini-radar-strip { background: #15151c; border-color: rgba(255, 255, 255, 0.1); color: #dcdce6; }

body.dark-theme .filter-btn { background: #0e0e13; border-color: rgba(255, 255, 255, 0.12); color: #9e9ea8; }
body.dark-theme .filter-btn.active,
body.dark-theme .filter-btn:hover { background: #ffffff; border-color: #ffffff; color: #000000; }
body.dark-theme .cyber-btn-cyan, body.dark-theme .cyber-btn-primary {
  background: #ffffff; color: #000000; border-color: #ffffff;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.15);
}
body.dark-theme .cyber-btn-cyan:hover, body.dark-theme .cyber-btn-primary:hover {
  background: #e0e0e8; box-shadow: 0 6px 20px rgba(255, 255, 255, 0.25);
}
body.dark-theme .cyber-btn-outline {
  background: rgba(14, 14, 19, 0.85); color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}
body.dark-theme .cyber-btn-outline:hover {
  background: #ffffff; color: #000000; border-color: #ffffff;
}

body.dark-theme .team-avatar-box { background: #ffffff; color: #000000; border-color: rgba(255, 255, 255, 0.1); }
body.dark-theme .social-icon-btn { background: #15151c; border-color: rgba(255, 255, 255, 0.1); color: #ffffff; }
body.dark-theme .social-icon-btn:hover { background: #ffffff; color: #000000; border-color: #ffffff; }
body.dark-theme .channel-icon-box { background: #ffffff; color: #000000; }

body.dark-theme .cyber-input, body.dark-theme .cyber-select, body.dark-theme .cyber-textarea {
  background: #15151c; border-color: rgba(255, 255, 255, 0.12); color: #ffffff;
}
body.dark-theme .cyber-input:focus, body.dark-theme .cyber-select:focus,
body.dark-theme .cyber-textarea:focus { border-color: #ffffff; background: #0e0e13; }
body.dark-theme .form-label { color: #9e9ea8; }

body.dark-theme .theme-toggle-track,
html[data-theme="dark"] .theme-toggle-track {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
}

body.dark-theme .theme-toggle-thumb,
html[data-theme="dark"] .theme-toggle-thumb {
  left: 20px;
  background: #ffffff;
  color: #000000;
}

body.dark-theme .theme-toggle-btn,
html[data-theme="dark"] .theme-toggle-btn {
  background: #15151c;
  border-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

body.dark-theme .theme-toggle-btn:hover,
html[data-theme="dark"] .theme-toggle-btn:hover {
  background: #20202a;
  border-color: rgba(255, 255, 255, 0.35);
}

body.dark-theme .audio-btn,
html[data-theme="dark"] .audio-btn {
  background: #15151c;
  border-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

body.dark-theme .audio-btn:hover,
html[data-theme="dark"] .audio-btn:hover {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

/* ========================================================================
   LIGHT THEME ENHANCED CARD & DIV SURFACES
   ======================================================================== */
body.light-theme .robot-lab-title, body.light-theme .project-title,
body.light-theme .gallery-title, body.light-theme .team-name,
body.light-theme .channel-title { color: #0a0a0f; }

body.light-theme p, body.light-theme .wing-desc, body.light-theme .project-desc,
body.light-theme .gallery-desc, body.light-theme .team-bio,
body.light-theme .channel-text, body.light-theme .section-subtitle { color: #3f3f4e; }

body.light-theme .text-muted, body.light-theme .stat-label,
body.light-theme .team-role { color: #6e6e80; }

body.light-theme .stats-banner-section { 
  background: #ffffff; 
  border-top: 1px solid rgba(0, 0, 0, 0.06); 
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}
body.light-theme .stat-number { color: #000000; font-weight: 800; }

body.light-theme .tilt-card, body.light-theme .robot-lab-card,
body.light-theme .project-card, body.light-theme .gallery-card,
body.light-theme .contact-channel-card, body.light-theme .contact-form-card,
body.light-theme .intake-form-box, body.light-theme .flagship-countdown-box,
body.light-theme .team-card, body.light-theme .glass-panel {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.06), 0 2px 6px -1px rgba(0, 0, 0, 0.03) !important;
  border-radius: 16px !important;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

body.light-theme .tilt-card:hover, body.light-theme .robot-lab-card:hover,
body.light-theme .project-card:hover, body.light-theme .gallery-card:hover,
body.light-theme .contact-channel-card:hover,
body.light-theme .team-card:hover, body.light-theme .glass-panel:hover {
  border-color: rgba(0, 0, 0, 0.35) !important;
  transform: translateY(-5px) !important;
  box-shadow: 0 20px 35px -5px rgba(0, 0, 0, 0.12), 0 8px 16px -6px rgba(0, 0, 0, 0.05) !important;
}

body.light-theme .wing-icon-box { 
  background: #f4f4f9; 
  border: 1px solid rgba(0, 0, 0, 0.08); 
  color: #050508; 
  border-radius: 12px;
}
body.light-theme .tech-tag { 
  background: #f4f4f9; 
  border: 1px solid rgba(0, 0, 0, 0.08); 
  color: #272733; 
  border-radius: 8px;
  font-weight: 600;
}
body.light-theme .robot-lab-id { 
  background: #f4f4f9; 
  border: 1px solid rgba(0, 0, 0, 0.08); 
  color: #64748b; 
  border-radius: 8px;
}
body.light-theme .robot-lab-header { border-bottom: 1px solid rgba(0, 0, 0, 0.06); }
body.light-theme .robot-lab-viewport {
  background-color: #0d1019;
  background-image: 
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.06) 0%, rgba(14, 18, 26, 0.9) 60%, #090c14 100%),
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 100% 100%, 20px 20px, 20px 20px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.4);
}
body.light-theme .lab-mini-controls-bar {
  background: rgba(14, 18, 26, 0.88);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
body.light-theme .mini-mode-btn { 
  background: rgba(255, 255, 255, 0.08); 
  border: 1px solid rgba(255, 255, 255, 0.12); 
  color: #c4c4d0; 
  border-radius: 8px;
}
body.light-theme .mini-mode-btn.active,
body.light-theme .mini-mode-btn:hover { 
  background: #ffffff; 
  color: #000000; 
  border-color: #ffffff; 
}
body.light-theme .mini-rotate-toggle { color: #ffffff; }
body.light-theme .mini-metric-box { 
  background: #f4f4f9; 
  border: 1px solid rgba(0, 0, 0, 0.07); 
  border-radius: 8px;
}
body.light-theme .mini-metric-lbl { color: #717182; }
body.light-theme .mini-metric-val { color: #000000; font-weight: 700; }
body.light-theme .mini-radar-strip { 
  background: #f8f8fd; 
  border-top: 1px solid rgba(0, 0, 0, 0.06); 
  color: #3f3f4e; 
}

body.light-theme .filter-btn { 
  background: #ffffff; 
  border: 1px solid rgba(0, 0, 0, 0.12); 
  color: #4a4a58; 
  border-radius: 100px;
  font-weight: 600;
}
body.light-theme .filter-btn.active,
body.light-theme .filter-btn:hover { 
  background: #000000; 
  border-color: #000000; 
  color: #ffffff; 
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18); 
}
body.light-theme .cyber-btn-cyan, body.light-theme .cyber-btn-primary {
  background: #000000; 
  color: #ffffff; 
  border: 1px solid #000000;
  border-radius: 100px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  font-weight: 700;
}
body.light-theme .cyber-btn-cyan:hover, body.light-theme .cyber-btn-primary:hover {
  background: #252528; 
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transform: translateY(-2px);
}
body.light-theme .cyber-btn-outline {
  background: #ffffff; 
  color: #050508;
  border: 1px solid rgba(0, 0, 0, 0.15); 
  border-radius: 100px;
  font-weight: 600;
}
body.light-theme .cyber-btn-outline:hover {
  background: #000000; 
  color: #ffffff; 
  border-color: #000000;
}

body.light-theme .project-badge { 
  background: #000000; 
  color: #ffffff; 
  border: 1px solid #000000;
  border-radius: 100px;
  font-weight: 700;
}
body.light-theme .project-specs-mini { 
  background: #f6f6fb; 
  border: 1px solid rgba(0, 0, 0, 0.07); 
  color: #333340; 
  border-radius: 12px;
}
body.light-theme .gallery-badge { 
  background: #000000; 
  color: #ffffff; 
  border: 1px solid #000000;
  border-radius: 100px;
  font-weight: 700;
}
body.light-theme .gallery-cam-tag { 
  background: rgba(0, 0, 0, 0.05); 
  color: #272733; 
  border: 1px solid rgba(0, 0, 0, 0.08); 
  border-radius: 6px;
}
body.light-theme .gallery-footer { 
  border-top: 1px solid rgba(0, 0, 0, 0.06); 
  color: #5a5a6a; 
}

body.light-theme .timer-slot { 
  background: #f6f6fb; 
  border: 1px solid rgba(0, 0, 0, 0.08); 
  border-radius: 12px;
}
body.light-theme .timer-val { color: #000000; font-weight: 800; }
body.light-theme .timer-unit { color: #717182; }
body.light-theme .event-date-badge { color: #000000; font-weight: 700; }

body.light-theme .team-avatar-box { 
  background: #000000; 
  color: #ffffff; 
  border: 1px solid rgba(0, 0, 0, 0.08); 
}
body.light-theme .team-dept-badge { 
  background: rgba(0, 0, 0, 0.05); 
  border: 1px solid rgba(0, 0, 0, 0.08); 
  color: #0a0a0f; 
  font-weight: 700;
  border-radius: 100px;
}
body.light-theme .social-icon-btn { 
  background: #f4f4f9; 
  border: 1px solid rgba(0, 0, 0, 0.1); 
  color: #050508; 
  border-radius: 10px;
}
body.light-theme .social-icon-btn:hover { 
  background: #000000; 
  color: #ffffff; 
  border-color: #000000; 
}

body.light-theme .channel-icon-box { 
  background: #000000; 
  color: #ffffff; 
  border-radius: 12px;
}
body.light-theme .cyber-input, 
body.light-theme .cyber-select, 
body.light-theme .cyber-textarea {
  background: #f7f7fc; 
  border: 1.5px solid rgba(0, 0, 0, 0.1); 
  color: #050508;
  border-radius: 10px;
  font-weight: 500;
}
body.light-theme .cyber-input:focus, 
body.light-theme .cyber-select:focus,
body.light-theme .cyber-textarea:focus { 
  border-color: #000000; 
  background: #ffffff; 
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}
body.light-theme .form-label { color: #3f3f4e; font-weight: 600; }

body.light-theme .cyber-modal { background: rgba(0, 0, 0, 0.55); backdrop-filter: blur(12px); }
body.light-theme .modal-content {
  background: #ffffff; 
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.25);
  border-radius: 20px;
}
body.light-theme .modal-close-btn { color: #5a5a6a; }
body.light-theme .modal-close-btn:hover { color: #000000; }
body.light-theme .spec-row { border-bottom: 1px solid rgba(0, 0, 0, 0.06); }
body.light-theme .spec-label { color: #717182; }
body.light-theme .spec-val { color: #000000; font-weight: 700; }
body.light-theme .bom-item { color: #3f3f4e; }
body.light-theme .cyber-toast { 
  background: #000000; 
  color: #ffffff; 
  border: 1px solid #000000; 
  border-radius: 100px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

/* Modal title & headings stay dark on light background */
body.light-theme #blueprint-title,
body.light-theme #event-reg-name { color: #000000 !important; font-weight: 800; }
body.light-theme .modal-content h4 { color: #111111 !important; font-weight: 700; }
body.light-theme .modal-content p,
body.light-theme .modal-content #blueprint-desc { color: #444444 !important; }

body.light-theme .hero-fullscreen { background: #f4f4f8; }
body.light-theme .spline-loader { background: #f4f4f8; }
body.light-theme .hero-single-title {
  color: #000000;
  text-shadow: 0 2px 20px rgba(255,255,255,0.9), 0 0 10px rgba(255,255,255,0.8);
}
body.light-theme .scroll-mouse { border-color: #000000; }
body.light-theme .scroll-wheel { background: #000000; }

body.light-theme .cyber-footer { background: #f2f2f7; border-top-color: rgba(0,0,0,0.1); }
body.light-theme .footer-bottom { border-top-color: rgba(0,0,0,0.1); }


/* NAV TERMINAL BUTTON - PREMIUM CYBER BUTTON */
.nav-terminal-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 1.05rem;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #10b981 !important;
  font-family: var(--font-mono) !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.2), inset 0 0 10px rgba(16, 185, 129, 0.08);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.nav-terminal-btn::after {
  display: none !important;
}

.terminal-live-dot {
  width: 7px;
  height: 7px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
  display: inline-block;
  animation: pulseGreenDot 1.8s infinite;
  flex-shrink: 0;
}

@keyframes pulseGreenDot {
  0% {
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1.15);
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.nav-terminal-btn:hover {
  background: #10b981 !important;
  color: #000000 !important;
  border-color: #10b981 !important;
  box-shadow: 0 0 24px rgba(16, 185, 129, 0.6), 0 4px 14px rgba(0,0,0,0.4);
  transform: translateY(-2px);
}

.nav-terminal-btn:hover .terminal-live-dot {
  background: #000000;
  box-shadow: 0 0 4px #000000;
}

body.light-theme .nav-terminal-btn {
  background: #000000 !important;
  border-color: #000000 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

body.light-theme .nav-terminal-btn .terminal-live-dot {
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

body.light-theme .nav-terminal-btn:hover {
  background: #252525 !important;
  color: #ffffff !important;
  border-color: #000000 !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  transform: translateY(-2px);
}

/* ==========================================================================
   ULTRA-SMOOTH MOBILE & PERFORMANCE OPTIMIZATIONS
   ========================================================================== */
html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* Smooth anchor offset for fixed navbar */
section, .section {
  scroll-margin-top: 85px;
}

/* ==========================================================================
   ULTRA-SMOOTH MOBILE & RESPONSIVE PERFECTION (PHONES & TABLETS)
   ========================================================================== */

@media (max-width: 768px) {
  /* 1. Header & Navigation */
  .cyber-nav {
    height: 62px !important;
  }

  .nav-container {
    padding: 0 0.85rem !important;
    height: 62px !important;
    max-width: 100% !important;
  }

  .brand-logo {
    font-size: 1.05rem !important;
    gap: 0.45rem !important;
  }

  .brand-logo-img {
    height: 24px !important;
    width: 24px !important;
  }

  .brand-telemetry {
    font-size: 0.52rem !important;
  }

  .nav-actions {
    gap: 0.4rem !important;
  }

  /* Compact Theme Toggle Button */
  .theme-toggle-btn {
    padding: 0.35rem 0.5rem !important;
    font-size: 0.72rem !important;
  }

  #theme-label {
    display: none !important;
  }

  /* Compact Audio Toggle Button */
  .audio-btn {
    width: 35px !important;
    height: 35px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    flex-shrink: 0 !important;
  }

  #audio-label {
    display: none !important;
  }

  /* Mobile Hamburger Menu Button */
  .mobile-menu-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 8px !important;
    font-size: 1.05rem !important;
    background: rgba(0, 0, 0, 0.06) !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    color: #0f172a !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
  }

  body.dark-theme .mobile-menu-btn {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
  }

  /* Fullscreen Slide-Down Mobile Drawer Menu */
  .nav-links {
    position: fixed !important;
    top: 62px !important;
    left: 0 !important;
    width: 100% !important;
    height: calc(100vh - 62px) !important;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
    flex-direction: column !important;
    padding: 1.5rem 1.2rem !important;
    gap: 0.65rem !important;
    overflow-y: auto !important;
    display: none !important;
    z-index: 9999 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
  }

  body.dark-theme .nav-links {
    background: rgba(7, 7, 9, 0.98) !important;
  }

  .nav-links.open {
    display: flex !important;
  }

  .nav-links li {
    width: 100% !important;
  }

  .nav-links a {
    width: 100% !important;
    padding: 0.75rem 1rem !important;
    font-size: 1.05rem !important;
    border-radius: 8px !important;
    background: rgba(0, 0, 0, 0.04) !important;
    color: #0f172a !important;
    justify-content: flex-start !important;
  }

  body.dark-theme .nav-links a {
    background: rgba(255, 255, 255, 0.04) !important;
    color: #ffffff !important;
  }

  .nav-links .nav-terminal-btn {
    width: 100% !important;
    justify-content: center !important;
    padding: 0.75rem 1rem !important;
    margin-top: 0.5rem !important;
  }

  /* 2. Hero Section on Mobile */
  .hero-fullscreen {
    height: 100svh !important;
    min-height: 560px !important;
    max-height: 920px !important;
    position: relative !important;
    overflow: hidden !important;
  }

  .hero-floating-title-wrap {
    position: absolute !important;
    top: 76px !important;
    left: 0.75rem !important;
    right: 0.75rem !important;
    width: calc(100% - 1.5rem) !important;
    max-width: 100% !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    z-index: 10 !important;
    pointer-events: none !important;
  }

  .hero-floating-title-wrap * {
    pointer-events: auto !important;
  }

  .hero-single-title {
    font-size: clamp(1.4rem, 5.2vw, 1.85rem) !important;
    line-height: 1.15 !important;
    margin-bottom: 0.25rem !important;
    text-align: center !important;
    white-space: normal !important;
    letter-spacing: 0.02em !important;
    max-width: 360px !important;
  }

  .hero-institution-sub {
    font-size: clamp(0.75rem, 2.7vw, 0.85rem) !important;
    margin-bottom: 0.75rem !important;
    text-align: center !important;
    width: 100% !important;
  }

  .hero-floating-actions {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 0.5rem !important;
    width: 100% !important;
    flex-wrap: nowrap !important;
  }

  .hero-floating-actions .cyber-btn {
    padding: 0.52rem 0.85rem !important;
    font-size: 0.74rem !important;
    min-height: 38px !important;
    white-space: nowrap !important;
    border-radius: 999px !important;
    flex: 0 1 auto !important;
  }

  /* Shift 3D robot downward on mobile so head starts below buttons */
  .hero-spline-fullbg {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    transform: scale(0.85) translateY(105px) !important;
    transform-origin: center 40% !important;
    pointer-events: auto !important;
  }

  .hero-scroll-bottom {
    bottom: 1.2rem !important;
  }

  .scroll-mouse {
    width: 18px !important;
    height: 28px !important;
  }

  /* 3. Section Sizing & Padding */
  section, .section {
    padding: 3.5rem 0 !important;
  }

  .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .section-title {
    font-size: 1.65rem !important;
    line-height: 1.2 !important;
  }

  .section-subtitle {
    font-size: 0.86rem !important;
    margin-bottom: 1.5rem !important;
  }

  /* 4. Stats Banner */
  .hero-stats-row {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.2rem !important;
  }

  .stat-number {
    font-size: 2.2rem !important;
  }

  /* 5. Command Center / Technical Wings */
  .cmd-center-grid {
    grid-template-columns: 1fr !important;
    gap: 1.2rem !important;
  }

  .schematic-flow-grid {
    grid-template-columns: 1fr !important;
    gap: 0.6rem !important;
  }

  .schematic-arrow {
    transform: rotate(90deg) !important;
    margin: 0.2rem auto !important;
  }

  .cmd-schematic-box {
    padding: 1rem !important;
  }

  .wings-grid {
    grid-template-columns: 1fr !important;
    gap: 1.2rem !important;
  }

  /* 6. 3D Robot Lab Section */
  .robot-lab-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  .robot-lab-card {
    padding: 1.2rem !important;
  }

  .robot-lab-viewport {
    height: 240px !important;
  }

  .robot-lab-metrics-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.5rem !important;
  }

  .mini-metric-box {
    padding: 0.55rem 0.75rem !important;
  }

  .mini-radar-strip {
    flex-wrap: wrap !important;
    gap: 0.4rem !important;
    font-size: 0.68rem !important;
  }

  /* 7. Active Fleet Prototypes */
  .proj-filter-bar {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    justify-content: flex-start !important;
    padding-bottom: 0.6rem !important;
    gap: 0.4rem !important;
    width: 100% !important;
    scrollbar-width: none !important;
  }

  .proj-filter-bar::-webkit-scrollbar {
    display: none !important;
  }

  .proj-filter-btn {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    font-size: 0.75rem !important;
    padding: 0.45rem 0.85rem !important;
  }

  .projects-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  /* 8. 3D CAD Gallery */
  .gallery-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  .gallery-card-viewport {
    height: 230px !important;
  }

  .gallery-specs-row {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.4rem !important;
  }

  /* 9. Events & Conclave (3D Rocket Active + Clean Mobile Flow) */
  .events-spline-section {
    position: relative !important;
    overflow: hidden !important;
  }

  .events-spline-bg-container {
    display: block !important;
    position: absolute !important;
    top: 140px !important;
    left: 0 !important;
    width: 100% !important;
    height: 380px !important;
    z-index: 1 !important;
    pointer-events: auto !important;
    overflow: hidden !important;
  }

  .events-spline-bg-container spline-viewer {
    width: 100% !important;
    height: 100% !important;
    transform: scale(0.95) !important;
    transform-origin: center center !important;
  }

  .events-spline-overlay-gradient {
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(to bottom, transparent 0%, transparent 260px, rgba(255, 255, 255, 0.95) 340px, #ffffff 380px) !important;
    pointer-events: none !important;
    z-index: 2 !important;
  }

  body.dark-theme .events-spline-overlay-gradient {
    background: linear-gradient(to bottom, transparent 0%, transparent 260px, rgba(7, 7, 10, 0.95) 340px, #070709 380px) !important;
  }

  .events-interactive-hint {
    display: inline-flex !important;
    font-size: 0.68rem !important;
    padding: 0.35rem 0.85rem !important;
    margin-bottom: 0.5rem !important;
  }

  .events-2col-layout {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.2rem !important;
  }

  /* Dedicated 3D Rocket Stage on Mobile */
  .events-rocket-stage {
    display: block !important;
    height: 300px !important;
    width: 100% !important;
    order: -1 !important;
    pointer-events: auto !important;
    position: relative !important;
    z-index: 4 !important;
  }

  .events-info-sidebar {
    width: 100% !important;
    position: relative !important;
    z-index: 5 !important;
  }

  .events-hero-banner {
    padding: 1.3rem 1.1rem !important;
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
    position: relative !important;
    z-index: 5 !important;
  }

  body.dark-theme .events-hero-banner {
    background: #0d0d12 !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
  }

  .events-phases-stack {
    gap: 0.75rem !important;
    position: relative !important;
    z-index: 5 !important;
  }

  .events-phases-stack .event-card {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04) !important;
  }

  body.dark-theme .events-phases-stack .event-card {
    background: #0d0d12 !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important;
  }

  .events-cta-btns {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.5rem !important;
  }

  /* 10. Leadership Team */
  .team-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  /* 11. Contact Section (3D Robot Active + Clean Mobile Flow) */
  .contact-spline-section {
    position: relative !important;
    overflow: hidden !important;
  }

  .contact-spline-bg-container {
    display: block !important;
    position: absolute !important;
    top: 420px !important;
    left: 0 !important;
    width: 100% !important;
    height: 380px !important;
    z-index: 1 !important;
    pointer-events: auto !important;
    overflow: hidden !important;
  }

  .contact-spline-bg-container spline-viewer {
    width: 100% !important;
    height: 100% !important;
    transform: scale(0.95) !important;
    transform-origin: center center !important;
  }

  .contact-spline-overlay-gradient {
    display: none !important;
  }

  .contact-layout-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.5rem !important;
    position: relative !important;
    z-index: 5 !important;
  }

  .contact-info-panel.compact-panel {
    max-width: 100% !important;
    width: 100% !important;
    order: 1 !important;
    position: relative !important;
    z-index: 5 !important;
  }

  /* Dedicated 3D Cyber Robot Stage on Mobile */
  .contact-center-space {
    display: block !important;
    height: 300px !important;
    width: 100% !important;
    order: 2 !important;
    pointer-events: auto !important;
    position: relative !important;
    z-index: 4 !important;
  }

  .contact-form-card.compact-form {
    max-width: 100% !important;
    width: 100% !important;
    order: 3 !important;
    position: relative !important;
    z-index: 5 !important;
  }

  .contact-channel-card.glass-panel,
  .contact-form-card.glass-panel {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
  }

  body.dark-theme .contact-channel-card.glass-panel,
  body.dark-theme .contact-form-card.glass-panel {
    background: #0d0d12 !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
  }
}

@media (max-width: 420px) {
  .hero-floating-actions {
    flex-direction: column !important;
    gap: 0.45rem !important;
  }

  .hero-floating-actions .cyber-btn {
    width: 100% !important;
    justify-content: center !important;
  }

  .events-cta-btns {
    grid-template-columns: 1fr !important;
  }

  .robot-lab-viewport {
    height: 210px !important;
  }
}

