/* ==========================================================================
   IT Club 2026/27 - Master Stylesheet
   Design System: Sci-Fi HUD / Cinematic Grid & Theme Shifting
   ========================================================================== */

:root {
  /* Default Neutral Dark Theme */
  --bg-color: #080a0f;
  --bg-secondary: #0f141d;
  --accent-color: #2563eb;
  --accent-glow: rgba(37, 99, 235, 0.35);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border-color: rgba(248, 250, 252, 0.12);
  --grid-line: rgba(248, 250, 252, 0.06);

  /* Typography Stack */
  --font-primary: 'Ubuntu', 'Roboto', 'Inter', -apple-system, sans-serif;
  --font-display: 'Bebas Neue', 'Teko', 'Chakra Petch', 'Orbitron', 'Roboto Condensed', sans-serif;
  --font-mono: 'Fira Code', monospace;
  
  --transition-speed: 0.6s;
  --border-radius: 8px;
}

/* Department Color Tokens */
[data-theme="blue"] {
  --bg-color: #0b1220;
  --bg-secondary: #0f182c;
  --accent-color: #2563eb;
  --accent-glow: rgba(37, 99, 235, 0.4);
  --border-color: rgba(37, 99, 235, 0.3);
  --grid-line: rgba(37, 99, 235, 0.12);
}

[data-theme="red"] {
  --bg-color: #140a0a;
  --bg-secondary: #1f1010;
  --accent-color: #ef4444;
  --accent-glow: rgba(239, 68, 68, 0.4);
  --border-color: rgba(239, 68, 68, 0.3);
  --grid-line: rgba(239, 68, 68, 0.12);
}

[data-theme="violet"] {
  --bg-color: #16131f;
  --bg-secondary: #201c2c;
  --accent-color: #8b5cf6;
  --accent-glow: rgba(139, 92, 246, 0.4);
  --border-color: rgba(139, 92, 246, 0.3);
  --grid-line: rgba(139, 92, 246, 0.12);
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-primary);
  background-color: #05070a;
  color: var(--text-main);
  overflow-x: hidden;
}

/* Custom Sci-Fi Vertical Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(8, 10, 15, 0.95);
  border-left: 1px solid var(--border-color);
}

::-webkit-scrollbar-thumb {
  background: var(--accent-color);
  border-radius: 4px;
  box-shadow: 0 0 10px var(--accent-glow);
  transition: background var(--transition-speed) ease;
}

::-webkit-scrollbar-thumb:hover {
  background: #ffffff;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--accent-color) rgba(8, 10, 15, 0.95);
}

body {
  background-color: var(--bg-color);
  transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
  position: relative;
  line-height: 1.6;
}

/* Custom Sci-Fi Arrow Pointer Cursor */
@media (hover: hover) and (pointer: fine) {
  body, a, button, input, textarea, [role="button"] {
    cursor: none !important;
  }
}

.custom-cursor {
  position: fixed;
  top: -30px;
  left: -30px;
  width: 22px;
  height: 22px;
  pointer-events: none;
  z-index: 99999;
  transform: translate(0, 0);
  transition: transform 0.12s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
  filter: drop-shadow(0 0 8px var(--accent-glow));
}

.custom-cursor svg path {
  fill: var(--accent-color);
  transition: fill var(--transition-speed) ease;
}

.custom-cursor-follower {
  position: fixed;
  top: -40px;
  left: -40px;
  width: 36px;
  height: 36px;
  border: 1.5px dashed var(--accent-color);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease-out, border-color var(--transition-speed) ease, background-color 0.3s ease;
  animation: spin 12s linear infinite;
}

@keyframes spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Click / Mousedown Pressed State */
body.cursor-active .custom-cursor {
  transform: scale(0.8);
}

body.cursor-active .custom-cursor-follower {
  transform: translate(-50%, -50%) scale(0.65);
  border-style: solid;
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
}

/* Hover state on interactive elements */
body.cursor-hover .custom-cursor {
  transform: scale(1.3);
  filter: drop-shadow(0 0 12px #ffffff);
}

body.cursor-hover .custom-cursor svg path {
  fill: #ffffff;
}

body.cursor-hover .custom-cursor-follower {
  transform: translate(-50%, -50%) scale(1.45);
  border-color: #ffffff;
  border-style: solid;
}

/* Click Energy Ripple Effect */
.custom-cursor-ripple {
  position: fixed;
  top: -50px;
  left: -50px;
  width: 12px;
  height: 12px;
  border: 2px solid var(--accent-color);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99997;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
}

.custom-cursor-ripple.animate-ripple {
  animation: ripple-burst 0.45s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
}

@keyframes ripple-burst {
  0% {
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 1;
    border-width: 3px;
  }
  100% {
    transform: translate(-50%, -50%) scale(5.5);
    opacity: 0;
    border-width: 1px;
  }
}

/* Canvas & Overlays */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -3;
  pointer-events: none;
}

.grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: 
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: -2;
  pointer-events: none;
  transition: background-image var(--transition-speed) ease;
}

.vignette {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at center, transparent 40%, rgba(0, 0, 0, 0.85) 100%);
  z-index: -1;
  pointer-events: none;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  position: relative;
  padding: 120px 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 2px;
  color: var(--accent-color);
  margin-bottom: 12px;
  text-transform: uppercase;
  transition: color var(--transition-speed) ease;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 16px;
  color: var(--text-main);
}

.section-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 650px;
  margin-bottom: 48px;
}

/* Corner & Side Tags */
.corner-tag {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  color: var(--accent-color);
  opacity: 0.8;
  z-index: 10;
  text-transform: uppercase;
}
.corner-tag.top-left { top: 30px; left: 30px; }
.corner-tag.top-right { top: 30px; right: 30px; }

.vertical-tag {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 3px;
  color: var(--accent-color);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  opacity: 0.7;
}
.vertical-tag.left-side { left: 25px; top: 50%; transform: translateY(-50%) rotate(180deg); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent-color);
  color: #ffffff;
  border: 1px solid var(--accent-color);
  box-shadow: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: none;
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

.btn-secondary {
  background: rgba(248, 250, 252, 0.04);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(248, 250, 252, 0.1);
  border-color: var(--text-main);
  transform: translateY(-2px);
}

.btn-sm { padding: 8px 18px; font-size: 0.8rem; }
.btn-lg { padding: 16px 36px; font-size: 1rem; }
.btn-xl { padding: 20px 48px; font-size: 1.1rem; }

/* Sticky Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 16px 0;
  background: rgba(8, 10, 15, 0.7);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: background var(--transition-speed) ease, border-color var(--transition-speed) ease;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav-brand-card {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  transition: border-color var(--transition-speed) ease;
}

.nav-logo {
  height: 44px;
  width: auto;
  display: block;
}

.footer-logo {
  height: 32px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 24px;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--accent-color);
}

/* 2. Hero Section - Horizontal Slider */
.hero-slider-section {
  position: relative;
  width: 100vw;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slider-container {
  width: 100%;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.hero-track {
  display: flex;
  width: 400vw;
  height: 100vh;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-slide {
  width: 100vw;
  height: 100vh;
  flex-shrink: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 0 80px;
}

.hero-bg-collage {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.collage-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.layer-robots {
  width: 45%;
  left: -5%;
  opacity: 0.25;
  filter: blur(1px) contrast(1.2);
}

.layer-cyber {
  width: 45%;
  right: -5%;
  left: auto;
  opacity: 0.25;
  filter: blur(1px) contrast(1.2);
}

.layer-dev {
  width: 50%;
  top: -10%;
  left: 25%;
  opacity: 0.15;
  filter: blur(2px);
}

.full-poster {
  width: 100%;
  height: 100%;
  opacity: 0.22;
  filter: blur(1px);
}

.bg-poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(8, 10, 15, 0.4) 0%, rgba(8, 10, 15, 0.95) 90%);
}

.hero-slide-content {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-card-badge {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  background: rgba(15, 20, 29, 0.8);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  margin-bottom: 24px;
  box-shadow: 0 0 30px rgba(0,0,0,0.5);
}

.hero-logo-img {
  height: 36px;
  width: auto;
}

.badge-text {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-color);
  letter-spacing: 1.5px;
  margin-left: 12px;
}

.hero-dept-chip {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 2px;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.blue-chip { background: rgba(37, 99, 235, 0.2); border: 1px solid #2563eb; color: #60a5fa; }
.red-chip { background: rgba(239, 68, 68, 0.2); border: 1px solid #ef4444; color: #f87171; }
.violet-chip { background: rgba(139, 92, 246, 0.2); border: 1px solid #8b5cf6; color: #c084fc; }

.hero-headline {
  font-family: var(--font-display);
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 24px;
  line-height: 1.05;
  width: 100%;
}

.hero-headline .outlined-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.6rem, 4.5vw, 4.5rem);
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--accent-color);
  paint-order: stroke fill;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: -webkit-text-stroke var(--transition-speed) ease;
  text-shadow: 0 0 15px var(--accent-glow);
}

.hero-headline .solid-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.4rem, 6.5vw, 6.5rem);
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: 2px;
  text-transform: uppercase;
  text-shadow: 0 0 25px rgba(255,255,255,0.15);
}

.hero-subline {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 650px;
}

.hero-cta-group {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

/* HUD Slider Controls */
.hero-controls-hud {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 24px;
  background: rgba(15, 20, 29, 0.85);
  border: 1px solid var(--border-color);
  padding: 10px 24px;
  border-radius: 30px;
  backdrop-filter: blur(12px);
  box-shadow: 0 0 30px rgba(0,0,0,0.6);
}

.hud-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hud-btn:hover {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: #ffffff;
  box-shadow: none;
}

.hud-dots {
  display: flex;
  gap: 10px;
}

.dot-btn {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(248, 250, 252, 0.2);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot-btn.active {
  background: var(--accent-color);
  width: 28px;
  border-radius: 6px;
  box-shadow: 0 0 10px var(--accent-glow);
}

.hud-counter {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-color);
  letter-spacing: 1px;
}

/* 3. About & History Section */
.about-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}

.about-metric-card {
  background: rgba(15, 20, 29, 0.7);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 32px 28px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.about-metric-card:hover {
  border-color: var(--accent-color);
  transform: translateY(-4px);
  background: rgba(15, 20, 29, 0.95);
}

.metric-top {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
}

.counter-number, .metric-val {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 900;
  color: var(--accent-color);
  line-height: 1;
}

.metric-unit {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: 2px;
}

.metric-title {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-color);
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}

.metric-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.about-values-header {
  margin-bottom: 32px;
}

.about-values-header h3 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: 2px;
}

.about-pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.pillar-card {
  background: rgba(248, 250, 252, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 28px 20px;
  transition: all 0.3s ease;
}

.pillar-card:hover {
  border-color: var(--accent-color);
  transform: translateY(-4px);
  background: rgba(248, 250, 252, 0.04);
}

.pillar-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-color);
  margin-bottom: 14px;
}

.pillar-card h4 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--text-main);
}

.pillar-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* 4. Departments 3x3 Intro Grid */
.grid-3x3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.matrix-cell {
  background: rgba(248, 250, 252, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.3s ease;
}

.matrix-cell:hover {
  transform: translateY(-4px);
  border-color: var(--accent-color);
  box-shadow: 0 0 20px var(--accent-glow);
}

.cell-dept {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-color);
}

.cell-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}

.cell-track {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.cell-ml { border-left: 3px solid #2563eb; }
.cell-cyber { border-left: 3px solid #ef4444; }
.cell-dev { border-left: 3px solid #8b5cf6; }

/* 5-7. Department Showcase Sections */
.dept-section {
  position: relative;
}

.dept-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 60px;
  align-items: center;
}

.dept-headline {
  display: flex;
  flex-direction: column;
  line-height: 0.95;
  margin-bottom: 16px;
}

.dept-headline .outlined-text {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4rem);
  letter-spacing: 3px;
}

.dept-headline .solid-text {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  letter-spacing: 4px;
}

.dept-tagline {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent-color);
  letter-spacing: 1.5px;
  margin-bottom: 24px;
}

.dept-description {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.focus-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}

.chip {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 6px 14px;
  background: rgba(248, 250, 252, 0.04);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  color: var(--text-main);
}

.dept-footer-line {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 2px;
  padding: 10px 18px;
  border: 1px solid var(--border-color);
  display: inline-block;
  color: var(--text-main);
  text-transform: uppercase;
}

.dept-poster-side {
  display: flex;
  justify-content: center;
}

.poster-card {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 0 40px var(--accent-glow);
  width: 480px;
  height: 480px;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

/* Cyber Terminal Styling */
.cyber-terminal {
  background: #0a0505;
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: 8px;
  font-family: var(--font-mono);
  margin-bottom: 28px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.2);
}

.terminal-header {
  background: #140a0a;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(239, 68, 68, 0.2);
}

.term-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.red-dot { background: #ef4444; }
.yellow-dot { background: #eab308; }
.green-dot { background: #22c55e; }

.term-title {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-left: 6px;
}

.terminal-body {
  padding: 16px;
  min-height: 100px;
  color: #ef4444;
  font-size: 0.9rem;
}

.prompt { color: #f8fafc; font-weight: bold; }
.cursor { animation: blink 1s infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* 8. Tracks Section - Pipeline Layout */
.tracks-pipeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 60px;
  position: relative;
}

.track-pipeline-card {
  display: grid;
  grid-template-columns: 80px 1fr 60px;
  align-items: center;
  gap: 32px;
  padding: 36px 40px;
  background: rgba(15, 20, 29, 0.6);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.track-pipeline-card:first-child {
  border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.track-pipeline-card:last-child {
  border-radius: 0 0 var(--border-radius) var(--border-radius);
}

.track-pipeline-card:not(:last-child) {
  border-bottom: none;
}

.track-pipeline-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
}

.track-blue::before { background: #2563eb; box-shadow: 2px 0 20px rgba(37,99,235,0.5); }
.track-red::before  { background: #ef4444; box-shadow: 2px 0 20px rgba(239,68,68,0.5); }
.track-violet::before { background: #8b5cf6; box-shadow: 2px 0 20px rgba(139,92,246,0.5); }

.track-pipeline-card:hover {
  background: rgba(15, 20, 29, 0.95);
  transform: translateX(6px);
}

.track-blue:hover { border-color: #2563eb; }
.track-red:hover  { border-color: #ef4444; }
.track-violet:hover { border-color: #8b5cf6; }

.track-pipeline-num {
  font-family: var(--font-display);
  font-size: 4.5rem;
  font-weight: 900;
  line-height: 1;
  opacity: 0.15;
  color: var(--text-main);
  user-select: none;
}

.track-blue:hover .track-pipeline-num { opacity: 0.4; color: #2563eb; }
.track-red:hover .track-pipeline-num  { opacity: 0.4; color: #ef4444; }
.track-violet:hover .track-pipeline-num { opacity: 0.4; color: #8b5cf6; }

.track-pipeline-body {
  flex: 1;
}

.track-pipeline-phase {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.track-blue .track-pipeline-phase { color: #2563eb; }
.track-red .track-pipeline-phase  { color: #ef4444; }
.track-violet .track-pipeline-phase { color: #8b5cf6; }

.track-pipeline-body h3 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: 2px;
  margin-bottom: 8px;
  color: var(--text-main);
}

.track-pipeline-body p {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 16px;
  line-height: 1.6;
}

.track-pipeline-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.track-pipeline-tags span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(248, 250, 252, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
}

.track-pipeline-arrow, .track-pipeline-end {
  font-size: 2rem;
  opacity: 0.3;
  color: var(--text-main);
  text-align: center;
  transition: opacity 0.3s ease;
}

.track-pipeline-card:hover .track-pipeline-arrow,
.track-pipeline-card:hover .track-pipeline-end {
  opacity: 1;
}

.track-pipeline-end { color: #22c55e; font-size: 1.5rem; }

.tracks-closing {
  text-align: center;
  margin-top: 48px;
}

.punchy-quote {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: 1px;
}

/* 9. Proof of Work */
.proof-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.proof-card {
  background: rgba(15, 20, 29, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 36px;
  transition: all 0.3s ease;
}

.proof-card:hover {
  border-color: var(--accent-color);
  transform: translateY(-4px);
}

.proof-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  color: var(--accent-color);
  opacity: 0.85;
}

.proof-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.proof-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.proof-card p {
  color: var(--text-muted);
}

/* 9.5 BODs (Board of Directors) */
.bods-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.bod-card {
  background: rgba(15, 20, 29, 0.7);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 40px 24px;
  text-align: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
}

.bod-card:hover {
  border-color: var(--accent-color);
  transform: translateY(-4px);
  background: rgba(15, 20, 29, 0.95);
}

.bod-photo {
  width: 120px;
  height: 120px;
  margin: 0 auto 24px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--border-color);
  transition: border-color 0.3s ease;
}

.bod-card:hover .bod-photo {
  border-color: var(--accent-color);
  box-shadow: 0 0 20px var(--accent-glow);
}

.bod-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bod-card h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-bottom: 8px;
  color: var(--text-main);
  letter-spacing: 1px;
}

.bod-card p {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* 10. Timeline Section - Horizontal Scroll Hijack */
.timeline-outer {
  /* height drives scroll distance — more = slower travel */
  height: 500vh;
  position: relative;
}

.timeline-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 60px;
  background: var(--bg-color);
}

.timeline-header {
  margin-bottom: 40px;
}

.timeline-header .section-title {
  margin-bottom: 0;
}

.timeline-track-wrapper {
  overflow: hidden;
  width: 100%;
  /* padding gives dots room so overflow:hidden doesn't crop them */
  padding-top: 14px;
  padding-bottom: 8px;
  margin-top: -14px; /* pull up so the layout doesn't shift */
}

.timeline-track {
  display: flex;
  align-items: flex-start;
  gap: 0;
  width: max-content;
  /* JS will translate this via transform */
  will-change: transform;
  position: relative;
}

/* The horizontal connecting line behind nodes */
.timeline-track::before {
  content: '';
  position: absolute;
  /* top = half dot height (9px) — sits dead-center through every dot */
  top: 9px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-color), rgba(248,250,252,0.08));
  z-index: 0;
}

.tl-node {
  display: flex;
  flex-direction: column;
  /* align children (marker + card) to center so dot is above card center */
  align-items: center;
  width: 320px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.tl-node:last-child { width: 320px; }

.tl-marker {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 18px;
  margin-bottom: 24px;
  position: relative;
}

.tl-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg-color);
  border: 2px solid var(--border-color);
  display: block;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  transition: all 0.4s ease;
}

.tl-node.tl-highlight .tl-dot {
  background: var(--accent-color);
  border-color: var(--accent-color);
  box-shadow: 0 0 20px var(--accent-color);
}

.tl-node.tl-active .tl-dot {
  background: #f8fafc;
  border-color: #f8fafc;
  box-shadow: 0 0 16px rgba(248,250,252,0.5);
  transform: scale(1.3);
}

.tl-card {
  background: rgba(15, 20, 29, 0.7);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 28px 28px 22px;
  width: 300px;
  transition: all 0.4s ease;
  backdrop-filter: blur(8px);
}

.tl-node.tl-active .tl-card {
  border-color: rgba(248,250,252,0.3);
  background: rgba(15, 20, 29, 0.95);
  transform: translateY(-4px);
}

.tl-node.tl-highlight.tl-active .tl-card {
  border-color: var(--accent-color);
  box-shadow: 0 0 30px rgba(37,99,235,0.2);
}

.tl-date {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: 2px;
  color: var(--accent-color);
  line-height: 1;
  margin-bottom: 8px;
}

.tl-phase {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 3px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.tl-card h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: 1px;
  margin-bottom: 10px;
  color: var(--text-main);
}

.tl-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 18px;
}

.tl-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 2px;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
}

.tl-tag.tl-blue  { border-color: #2563eb; color: #2563eb; }
.tl-tag.tl-red   { border-color: #ef4444; color: #ef4444; }
.tl-tag.tl-violet{ border-color: #8b5cf6; color: #8b5cf6; }
.tl-tag.tl-green { border-color: #22c55e; color: #22c55e; }

.timeline-progress-bar {
  margin-top: 40px;
  height: 2px;
  background: rgba(248,250,252,0.08);
  border-radius: 2px;
  overflow: hidden;
}

.timeline-progress-fill {
  height: 100%;
  background: var(--accent-color);
  width: 0%;
  transition: width 0.1s linear;
  border-radius: 2px;
}


/* 12. Apply Section & Countdown */
.apply-section {
  text-align: center;
}

.apply-box {
  background: rgba(15, 20, 29, 0.8);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 80px 40px;
  position: relative;
  box-shadow: 0 0 50px rgba(0,0,0,0.8);
}

.apply-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 900;
  margin-bottom: 16px;
}

.apply-text {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.countdown-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-bottom: 48px;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.countdown-unit span {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  color: var(--accent-color);
  line-height: 1;
}

.countdown-unit label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 8px;
}

.countdown-sep {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--border-color);
}

.apply-actions {
  display: flex;
  justify-content: center;
  gap: 24px;
}

/* 13. Footer */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 60px 0;
  background: rgba(5, 7, 10, 0.95);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.footer-tagline {
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 12px;
}

.telegram-link {
  font-family: var(--font-mono);
  color: var(--accent-color);
  text-decoration: none;
  font-size: 0.95rem;
}

.telegram-link:hover {
  text-decoration: underline;
}

.footer-hashtags code {
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ============================================================
   RESPONSIVE — Tablet (≤ 992px) + Mobile (≤ 640px)
   ============================================================ */

/* ── Tablet ── */
@media (max-width: 992px) {

  /* Navbar — hide links, keep logo + CTA */
  .nav-links { display: none; }
  .nav-container { padding: 0 20px; }

  /* Hero */
  .hero-main-title { font-size: clamp(3rem, 10vw, 6rem); }
  .hero-dept-title  { font-size: clamp(2.5rem, 8vw, 5rem); }
  .hero-hud-controls { gap: 12px; }

  /* Departments — stack vertically, hide poster */
  .dept-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .dept-poster-side { display: none; }

  /* About: 3-col metrics → 2-col */
  .about-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  /* Pillars: 4-col → 2-col */
  .about-pillars-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  /* Departments intro grid: 3-col → 2-col */
  .grid-3x3 {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Tracks: tighten column widths */
  .track-pipeline-card {
    grid-template-columns: 56px 1fr 36px;
    gap: 16px;
    padding: 28px 24px;
  }
  .track-pipeline-num { font-size: 3.5rem; }

  /* Proof of Work: 2×2 stays fine — already 2 cols */

  /* BODs: 3-col → 1-col */
  .bods-grid { grid-template-columns: 1fr; }

  /* Timeline — disable scroll-hijack, become vertical stepper */
  .timeline-outer { height: auto; }
  .timeline-sticky {
    position: relative;
    height: auto;
    padding: 80px 30px 60px;
    overflow: visible;
  }
  .timeline-track-wrapper {
    overflow: visible;
    padding-top: 0;
    margin-top: 0;
  }
  .timeline-track {
    flex-direction: column;
    width: 100%;
    transform: none !important;
    gap: 28px;
    align-items: stretch;
  }
  /* Vertical connecting line */
  .timeline-track::before {
    top: 0;
    bottom: 0;
    left: 9px;
    right: auto;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent-color), rgba(248,250,252,0.06));
  }
  .tl-node {
    flex-direction: row;
    align-items: flex-start;
    width: 100% !important;
    gap: 20px;
  }
  .tl-marker {
    flex-direction: column;
    width: 18px;
    height: auto;
    justify-content: flex-start;
    flex-shrink: 0;
    margin-bottom: 0;
    padding-top: 4px;
  }
  .tl-card { width: 100%; }
  .timeline-progress-bar { display: none; }

  /* Apply */
  .apply-box { padding: 60px 28px; }
  .apply-headline { font-size: clamp(1.6rem, 4vw, 2.5rem); }
}

/* ── Mobile ── */
@media (max-width: 640px) {

  /* Base */
  .section { padding: 72px 0; min-height: auto; }
  .container { padding: 0 16px; }

  /* Navbar */
  .navbar { padding: 10px 0; }
  .nav-logo { height: 36px; }
  .nav-brand-card { padding: 4px 10px; }

  /* Hero — lock to first slide, disable slider on mobile */
  .hero-main-title  { font-size: clamp(2.4rem, 12vw, 4.5rem); }
  .hero-dept-title  { font-size: clamp(2rem, 10vw, 3.5rem); }
  .hero-subline     { font-size: 0.95rem; max-width: 100%; }
  .hero-slide-content { padding: 0 16px; }
  .hero-cta-group   { flex-direction: column; gap: 10px; width: 100%; }
  .hero-cta-group .btn { width: 100%; justify-content: center; }
  .hero-controls-hud { display: none !important; }   /* correctly hide prev/next + dots */
  /* Force hero-track to stay at slide 0 */
  .hero-track       { transform: translateX(0) !important; transition: none !important; }
  /* Only first slide visible, rest off-screen but not accessible */
  .hero-slider-container { overflow: hidden; }

  /* Section typography */
  .section-title { font-size: clamp(1.8rem, 8vw, 2.6rem); }
  .section-lead  { font-size: 1rem; margin-bottom: 28px; }

  /* About: metrics → 1-col */
  .about-metrics-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 36px;
  }
  .about-metric-card { padding: 24px 20px; }
  .counter-number, .metric-val { font-size: 3rem; }
  .about-values-header h3 { font-size: 1.6rem; }

  /* Pillars → 1-col */
  .about-pillars-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .pillar-card { padding: 22px 18px; }

  /* Departments intro grid → 1-col */
  .grid-3x3 {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* Department text section */
  .dept-section-content { padding: 0; }
  .dept-title { font-size: clamp(2rem, 10vw, 3.5rem); }
  .focus-chips { gap: 8px; }
  .chip { font-size: 0.75rem; padding: 6px 12px; }

  /* Tracks pipeline → stack to single col */
  .track-pipeline-card {
    grid-template-columns: 1fr;
    padding: 22px 18px;
    gap: 10px;
  }
  .track-pipeline-num  { font-size: 2.8rem; }
  .track-pipeline-body h3 { font-size: 1.8rem; }
  .track-pipeline-arrow,
  .track-pipeline-end  { display: none; }
  .track-pipeline-card:hover { transform: none; }
  .track-pipeline-card:first-child  { border-radius: var(--border-radius) var(--border-radius) 0 0; }
  .track-pipeline-card:last-child   { border-radius: 0 0 var(--border-radius) var(--border-radius); }

  /* Proof of Work → 1-col */
  .proof-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .proof-card { padding: 24px 18px; }

  /* BODs → 1-col */
  .bods-grid { grid-template-columns: 1fr; gap: 16px; margin-top: 24px; }
  .bod-card { padding: 32px 20px; }
  .bod-photo { width: 100px; height: 100px; }

  /* Timeline */
  .timeline-sticky { padding: 60px 16px 40px; }
  .tl-card { padding: 18px 16px; }
  .tl-card h3 { font-size: 1.25rem; }
  .tl-date  { font-size: 1.6rem; }
  .timeline-header { margin-bottom: 28px; }
  .timeline-header .section-title { font-size: clamp(1.6rem, 7vw, 2.4rem); }

  /* Hide absolute positioned tags on mobile to prevent overlap */
  .corner-tag, .vertical-tag { display: none; }
  .apply-box  { padding: 44px 16px; border-radius: 10px; }
  .apply-headline { font-size: clamp(1.3rem, 6vw, 1.9rem); }
  .apply-text { font-size: 0.95rem; margin-bottom: 28px; }
  .countdown-container { gap: 10px; flex-wrap: wrap; justify-content: center; }
  .countdown-unit span { font-size: 2.2rem; }
  .apply-actions { flex-direction: column; gap: 10px; }
  .apply-actions .btn { width: 100%; justify-content: center; }

  /* Footer */
  .footer { padding: 36px 0; }
  .footer-logo { height: 28px; }
  .footer-tagline { font-size: 0.85rem; }
  .telegram-link  { font-size: 0.9rem; }
  .footer-hashtags code { font-size: 0.78rem; }
}


