/* ==========================================================================
   INTERNWELL SLIET - Modern Premium Club Design System
   Sleek Dark Mode with Professional Blue & Red Accents (Matching Official Logo)
   ========================================================================== */

:root {
  /* Brand Color Palette */
  --bg-deep: #080c14;
  --bg-dark: #0c121e;
  --bg-surface: #131c2e;
  --bg-surface-elevated: #1a263e;
  --bg-glass: rgba(15, 23, 42, 0.75);
  --bg-glass-card: rgba(18, 27, 46, 0.7);
  --bg-glass-hover: rgba(26, 38, 64, 0.85);

  /* InternWell Official Accents */
  --blue-primary: #2563eb;
  --blue-light: #38bdf8;
  --blue-glow: rgba(37, 99, 235, 0.35);

  --red-accent: #e11d48;
  --red-glow: rgba(225, 29, 72, 0.35);

  --emerald-accent: #10b981;
  --emerald-glow: rgba(16, 185, 129, 0.3);

  /* Typography Colors */
  --text-main: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  /* Borders & Gradients */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(56, 189, 248, 0.4);
  --brand-gradient: linear-gradient(135deg, #38bdf8 0%, #2563eb 50%, #e11d48 100%);
  --brand-gradient-soft: linear-gradient(135deg, #38bdf8 0%, #2563eb 100%);
  --surface-gradient: linear-gradient(180deg, rgba(30, 41, 59, 0.4) 0%, rgba(15, 23, 42, 0.8) 100%);

  /* UI Tokens */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --nav-height: 80px;

  --transition-fast: 0.2s ease;
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 25px rgba(37, 99, 235, 0.25);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  color-scheme: dark;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-deep);
  color: var(--text-main);
  overflow-x: hidden;
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--blue-primary);
  color: #ffffff;
}

/* Custom Clean Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--blue-primary);
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6, .font-display {
  font-family: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--text-main);
}

.font-mono {
  font-family: 'JetBrains Mono', monospace;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  outline: none;
}

/* Subtle Modern Dot-Grid Background (Not overly hacker) */
.cyber-grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.6;
}

/* 3D WebGL Canvas Layer - Prominent in Hero, Automatically Fades on Scroll */
#webgl-canvas-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity;
}

/* Ambient Subtle Lighting Orbs */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.15;
}

.ambient-glow-1 {
  top: -10%;
  left: -5%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, var(--blue-primary), transparent 70%);
}

.ambient-glow-2 {
  bottom: 10%;
  right: -5%;
  width: 45vw;
  height: 45vw;
  background: radial-gradient(circle, var(--red-accent), transparent 70%);
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

/* Section Common */
section {
  position: relative;
  padding: 100px 0;
  z-index: 2;
}

/* Content sections have solid backdrops so background 3D canvas never affects text readability */
#about, #motive, #domains, #events, #projects, #team, #faq {
  background-color: var(--bg-deep);
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-full);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 18px;
}

.section-tag .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-light);
}

.section-title {
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  font-weight: 700;
  margin-bottom: 18px;
  background: linear-gradient(135deg, #ffffff 40%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-title span.highlight {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-desc {
  font-size: 1.08rem;
  color: var(--text-secondary);
  max-width: 620px;
  margin-bottom: 44px;
  line-height: 1.7;
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 100;
  transition: all var(--transition-smooth);
}

.navbar.scrolled {
  background: rgba(8, 12, 20, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  height: 72px;
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo-img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  background: #ffffff;
  padding: 2px;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.25);
  transition: transform var(--transition-fast);
}

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

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-badge {
  font-size: 0.65rem;
  font-family: 'JetBrains Mono', monospace;
  background: rgba(37, 99, 235, 0.15);
  color: var(--blue-light);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.brand-subtext {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 6px 0;
  transition: color var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: #ffffff;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--blue-light);
  transition: width var(--transition-smooth);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Sound Toggle Pill (Subtle & Clean) */
.sound-toggle-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-family: 'JetBrains Mono', monospace;
  transition: all var(--transition-fast);
}

.sound-toggle-btn:hover {
  border-color: rgba(56, 189, 248, 0.4);
  color: #ffffff;
}

.sound-waves {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 12px;
}

.sound-waves span {
  width: 2px;
  background: var(--text-muted);
  border-radius: 1px;
  height: 5px;
  transition: height 0.2s ease, background 0.2s ease;
}

.sound-toggle-btn.active .sound-waves span {
  background: var(--blue-light);
  animation: wave 1.2s infinite ease-in-out;
}

.sound-toggle-btn.active .sound-waves span:nth-child(2) { animation-delay: 0.2s; }
.sound-toggle-btn.active .sound-waves span:nth-child(3) { animation-delay: 0.4s; }
.sound-toggle-btn.active .sound-waves span:nth-child(4) { animation-delay: 0.1s; }

@keyframes wave {
  0%, 100% { height: 4px; }
  50% { height: 12px; }
}

/* Clean Modern Buttons */
.btn-cyber-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--blue-primary);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 18px rgba(37, 99, 235, 0.35);
  transition: all var(--transition-fast);
}

.btn-cyber-primary:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(37, 99, 235, 0.45);
}

.btn-cyber-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.btn-cyber-outline:hover {
  border-color: rgba(56, 189, 248, 0.4);
  background: rgba(37, 99, 235, 0.08);
  transform: translateY(-2px);
}

/* Mobile Toggle */
.mobile-nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
  z-index: 101;
}

.mobile-nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: var(--transition-fast);
}

/* ==========================================================================
   HERO SECTION (CLEAN & BALANCED)
   ========================================================================== */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-height) + 30px);
  padding-bottom: 60px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 40px;
}

.hero-content {
  order: 1;
  position: relative;
  z-index: 3;
}

.hero-subheading {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-full);
  margin-bottom: 22px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--blue-light);
}

.pulse-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald-accent);
  box-shadow: 0 0 10px var(--emerald-accent);
}

.hero-title {
  font-size: clamp(2.6rem, 5.2vw, 4.4rem);
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 22px;
  letter-spacing: -0.025em;
}

.hero-title .glow-cyan {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-tagline {
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: 34px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 44px;
}

/* 3D Visual Stage in Hero - Contained, Dedicated Box for 3D Logo */
.hero-visual-stage {
  order: 2;
  position: relative;
  height: 460px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: opacity 0.3s ease;
}

.hero-visual-stage canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
  pointer-events: auto;
}

/* Hero Stats Bar */
.hero-stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  background: var(--bg-glass-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
  backdrop-filter: blur(12px);
}

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

.stat-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.1rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 6px;
  background: var(--brand-gradient-soft);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   CARDS & FEATURES (CLEAN MODERN)
   ========================================================================== */
.cyber-card {
  background: var(--bg-glass-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px;
  backdrop-filter: blur(12px);
  position: relative;
  transition: all var(--transition-smooth);
}

.cyber-card:hover {
  transform: translateY(-5px);
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: var(--shadow-card);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.feature-box {
  background: rgba(18, 27, 46, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
  transition: all var(--transition-smooth);
}

.feature-box:hover {
  border-color: rgba(56, 189, 248, 0.3);
  background: rgba(24, 35, 58, 0.7);
  transform: translateY(-3px);
}

.feature-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-light);
  font-size: 1.25rem;
  margin-bottom: 14px;
}

.feature-title {
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: #ffffff;
}

.feature-desc {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.about-visual-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
}

.about-visual-card img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  display: block;
}

.about-visual-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: rgba(11, 16, 27, 0.85);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}

/* ==========================================================================
   DOMAINS SECTION
   ========================================================================== */
.domains-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.domain-card {
  background: var(--bg-glass-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-smooth);
}

.domain-card:hover {
  transform: translateY(-6px);
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: var(--shadow-card);
}

.domain-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
}

.domain-code-id {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  color: var(--blue-light);
  background: rgba(37, 99, 235, 0.1);
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.domain-icon {
  font-size: 1.8rem;
  color: var(--blue-light);
}

.domain-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.domain-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 22px;
}

.domain-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.tech-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  color: var(--text-secondary);
}

/* ==========================================================================
   TIMELINE SECTION
   ========================================================================== */
.timeline-container {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  padding: 30px 0;
}

.timeline-line {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, var(--blue-primary) 0%, var(--red-accent) 100%);
  opacity: 0.6;
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 20px 36px;
  box-sizing: border-box;
}

.timeline-item.left {
  left: 0;
  text-align: right;
}

.timeline-item.right {
  left: 50%;
  text-align: left;
}

.timeline-node {
  position: absolute;
  top: 32px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-deep);
  border: 3px solid var(--blue-primary);
  z-index: 5;
}

.timeline-item.left .timeline-node {
  right: -7px;
}

.timeline-item.right .timeline-node {
  left: -7px;
}

.timeline-card-inner {
  background: var(--bg-glass-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: all var(--transition-smooth);
}

.timeline-card-inner:hover {
  border-color: rgba(56, 189, 248, 0.35);
  transform: translateY(-4px);
}

.timeline-badge {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--blue-light);
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.2);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 10px;
}

.timeline-event-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #ffffff;
}

.timeline-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   PROJECTS SHOWCASE (AUTHENTIC)
   ========================================================================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.project-card {
  background: var(--bg-glass-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-smooth);
}

.project-card:hover {
  border-color: rgba(56, 189, 248, 0.35);
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
}

.project-image-box {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: #0f172a;
}

.project-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.project-card:hover .project-image-box img {
  transform: scale(1.05);
}

.project-badge-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(8, 12, 20, 0.85);
  border: 1px solid var(--border-subtle);
  color: var(--blue-light);
}

.project-info {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.project-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.project-meta-bottom {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.project-link-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--blue-light);
  font-weight: 600;
}

.project-link-btn:hover {
  text-decoration: underline;
}

/* ==========================================================================
   TERMINAL (CLEAN & SUBTLE)
   ========================================================================== */
.terminal-wrapper {
  background: #0d131f;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  max-width: 860px;
  margin: 0 auto;
}

.terminal-header {
  background: #131c2e;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

.terminal-dots {
  display: flex;
  gap: 8px;
}

.dot-ctrl {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.terminal-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.terminal-body {
  padding: 22px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.86rem;
  line-height: 1.7;
  min-height: 280px;
  max-height: 380px;
  overflow-y: auto;
  color: #cbd5e1;
}

.terminal-welcome {
  color: var(--blue-light);
  margin-bottom: 14px;
}

.terminal-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.terminal-prompt-prefix {
  color: var(--blue-light);
  font-weight: 600;
}

.terminal-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.86rem;
}

.terminal-hints {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
}

.terminal-hint-pill {
  font-size: 0.72rem;
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.terminal-hint-pill:hover {
  background: var(--blue-primary);
  color: #ffffff;
  border-color: var(--blue-primary);
}

/* ==========================================================================
   TEAM SECTION (CLEAN & PROFESSIONAL)
   ========================================================================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.team-card {
  background: var(--bg-glass-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
  text-align: center;
  transition: all var(--transition-smooth);
}

.team-card:hover {
  transform: translateY(-5px);
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: var(--shadow-card);
}

.team-avatar-box {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  margin: 0 auto 16px;
  padding: 3px;
  background: var(--brand-gradient-soft);
}

.team-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #0f172a;
}

.team-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.team-role {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.76rem;
  color: var(--blue-light);
  margin-bottom: 10px;
}

.team-bio {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 14px;
}

.team-socials {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.team-social-link {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 0.85rem;
  transition: all var(--transition-fast);
}

.team-social-link:hover {
  background: var(--blue-primary);
  color: #ffffff;
  border-color: var(--blue-primary);
}

/* ==========================================================================
   FAQ SECTION
   ========================================================================== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--bg-glass-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item.active {
  border-color: rgba(56, 189, 248, 0.35);
}

.faq-header {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}

.faq-question {
  font-size: 1.04rem;
  font-weight: 600;
}

.faq-icon {
  font-size: 1rem;
  color: var(--blue-light);
  transition: transform var(--transition-smooth);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-smooth), padding var(--transition-smooth);
  padding: 0 24px;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.65;
}

.faq-item.active .faq-answer {
  max-height: 280px;
  padding: 0 24px 20px;
}

/* ==========================================================================
   MODAL
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 7, 14, 0.85);
  backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-smooth);
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: #0f172a;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  max-width: 580px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  position: relative;
  padding: 32px;
  transform: scale(0.95);
  transition: transform var(--transition-smooth);
}

.modal-overlay.open .modal-card {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.modal-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.modal-subtitle {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
  text-transform: uppercase;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.92rem;
  transition: border-color var(--transition-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--blue-primary);
  outline: none;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: #050810;
  border-top: 1px solid var(--border-subtle);
  padding: 70px 0 28px;
  position: relative;
  z-index: 2;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 36px;
  margin-bottom: 50px;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 14px;
  max-width: 320px;
  line-height: 1.6;
}

.footer-col-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 18px;
  color: #ffffff;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  font-size: 0.86rem;
  color: var(--text-secondary);
}

.footer-link:hover {
  color: #ffffff;
  padding-left: 3px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* Desktop mobile menu CTA hidden by default */
.mobile-menu-cta {
  display: none;
}

/* ==========================================================================
   RESPONSIVENESS (BOTH DESKTOP AND WITHOUT DESKTOP / MOBILE VIEW)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
  }
  .hero-visual-stage {
    order: 1;
    width: 100%;
    max-width: 280px;
    height: 230px;
    margin: 0 auto;
  }
  .hero-content {
    order: 2;
    width: 100%;
  }
  .hero-tagline {
    margin: 0 auto 26px;
  }
  .hero-buttons {
    justify-content: center;
  }
  .domains-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .navbar-container {
    padding: 0 16px;
  }
  /* Keep brand compact on mobile so top bar never overflows */
  .brand-subtext {
    display: none;
  }
  .brand-name {
    font-size: 1.05rem;
  }
  .brand-logo-img {
    width: 36px;
    height: 36px;
  }
  #sound-status-text {
    display: none;
  }
  .sound-toggle-btn {
    padding: 8px 10px;
  }
  /* Hide top desktop join button on mobile to prevent navbar overflow */
  .nav-desktop-join-btn {
    display: none;
  }
  .mobile-menu-cta {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: var(--nav-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--nav-height));
    background: rgba(8, 12, 20, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    transition: left var(--transition-smooth);
    padding: 24px;
  }
  .nav-menu.open {
    left: 0;
  }
  .mobile-nav-toggle {
    display: flex;
  }

  /* Hero Section Mobile Optimization: ZERO OVERLAP */
  .hero-section {
    padding-top: calc(var(--nav-height) + 10px);
    padding-bottom: 40px;
    min-height: auto;
  }
  .hero-visual-stage {
    height: 220px;
    max-width: 250px;
    margin: 0 auto 6px;
  }
  .hero-subheading {
    font-size: 0.74rem;
    padding: 6px 12px;
    margin-bottom: 14px;
  }
  .hero-title {
    font-size: clamp(1.9rem, 7vw, 2.5rem);
    line-height: 1.15;
    margin-bottom: 14px;
  }
  .hero-tagline {
    font-size: 0.94rem;
    line-height: 1.6;
    margin-bottom: 22px;
  }
  .hero-buttons {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 300px;
    margin: 0 auto 28px;
    gap: 12px;
  }
  .hero-buttons .btn-cyber-primary,
  .hero-buttons .btn-cyber-outline {
    width: 100%;
    justify-content: center;
    padding: 12px 18px;
  }
  .hero-stats-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 14px;
  }
  .stat-number {
    font-size: 1.6rem;
  }
  .stat-label {
    font-size: 0.72rem;
  }

  /* Content Sections */
  section {
    padding: 70px 0;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .about-visual-card img {
    height: 280px;
  }
  .about-features-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .domains-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .timeline-line {
    left: 18px;
  }
  .timeline-item {
    width: 100%;
    padding-left: 45px;
    padding-right: 12px;
    text-align: left;
  }
  .timeline-item.left, .timeline-item.right {
    left: 0;
  }
  .timeline-item.left .timeline-node, .timeline-item.right .timeline-node {
    left: 11px;
  }
  .team-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
