/* ==========================================================================
   FUTURISTIC DESIGN SYSTEM - IBA RING
   ========================================================================== */

:root {
  --bg-color: #030712;
  --bg-gradient: radial-gradient(circle at 50% 50%, #080f25 0%, #02040a 100%);
  --text-color: #f3f4f6;
  --text-muted: #9ca3af;
  
  /* Futuristic Glowing Palette */
  --cyan: #00f2fe;
  --cyan-glow: rgba(0, 242, 254, 0.4);
  --blue: #4facfe;
  --blue-glow: rgba(79, 172, 254, 0.4);
  --green: #00ff88;
  --green-glow: rgba(0, 255, 136, 0.4);
  --red: #ff3b30;
  --red-glow: rgba(255, 59, 48, 0.4);
  --gold: #d4af37;
  --gold-glow: rgba(212, 175, 55, 0.4);
  
  --panel-bg: rgba(6, 11, 25, 0.65);
  --panel-border: rgba(255, 255, 255, 0.08);
  --panel-border-active: rgba(0, 242, 254, 0.3);
  
  --font-title: 'Orbitron', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  
  --transition-speed: 0.4s;
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--cyan) var(--bg-color);
  background: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-body);
  overflow-x: hidden;
}

/* Desktop Scroll Snapping */
@media (min-width: 1024px) {
  html {
    scroll-snap-type: y mandatory;
  }
}

body {
  background: var(--bg-gradient);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ==========================================================================
   HUD SYSTEM LAYERS (POINTER-EVENTS: NONE FOR OVERLAYS)
   ========================================================================== */
.hud-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10;
}

/* Sci-fi tech grid */
.hud-grid {
  position: absolute;
  inset: 0;
  background-size: 60px 60px;
  background-image: 
    linear-gradient(to right, rgba(0, 242, 254, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 242, 254, 0.02) 1px, transparent 1px);
  opacity: 0.8;
}

/* Thin border framing the page */
.hud-border-lines {
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(0, 242, 254, 0.05);
}

/* Tech Crosshairs in 4 corners */
.hud-crosshair {
  position: absolute;
  width: 15px;
  height: 15px;
  border-color: rgba(0, 242, 254, 0.25);
  border-style: solid;
}
.hud-crosshair.top-left { top: 25px; left: 25px; border-width: 2px 0 0 2px; }
.hud-crosshair.top-right { top: 25px; right: 25px; border-width: 2px 2px 0 0; }
.hud-crosshair.bottom-left { bottom: 25px; left: 25px; border-width: 0 0 2px 2px; }
.hud-crosshair.bottom-right { bottom: 25px; right: 25px; border-width: 0 2px 2px 0; }

/* Animated scanner line moving down */
.hud-scanner-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0.15;
  animation: scan 8s linear infinite;
}

@keyframes scan {
  0% { top: 0%; }
  50% { top: 100%; }
  100% { top: 0%; }
}

/* Top HUD status bar */
.hud-status-bar {
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 30px;
  background: rgba(6, 11, 25, 0.4);
  backdrop-filter: blur(10px);
  padding: 6px 20px;
  border: 1px solid rgba(0, 242, 254, 0.1);
  border-radius: 20px;
  font-family: var(--font-title);
  font-size: 0.7rem;
  letter-spacing: 2px;
}

.hud-status-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pulse-indicator {
  width: 6px;
  height: 6px;
  background-color: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--cyan);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.4); opacity: 1; }
}

.hud-label {
  color: var(--text-muted);
}

.hud-coordinates {
  position: absolute;
  top: 120px;
  font-family: var(--font-title);
  font-size: 0.65rem;
  color: rgba(0, 242, 254, 0.25);
  letter-spacing: 1px;
  line-height: 2;
}
.hud-coordinates.left { left: 40px; }

/* ==========================================================================
   LIVE SECURE ACTIVITY LOG (Dynamic Daily Feed)
   ========================================================================== */
.hud-activity-log {
  position: absolute;
  bottom: 40px;
  right: 40px;
  width: 320px;
  background: rgba(3, 7, 18, 0.75);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 242, 254, 0.15);
  border-radius: 8px;
  padding: 12px;
  font-family: var(--font-title);
  pointer-events: auto; /* Allow hovering/scrolling log */
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  transition: border-color 0.3s;
}

.hud-activity-log:hover {
  border-color: var(--cyan);
}

.hud-log-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  letter-spacing: 1px;
  color: var(--cyan);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 8px;
  margin-bottom: 8px;
}

.hud-log-content {
  height: 110px;
  overflow-y: auto;
  font-size: 0.65rem;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: monospace;
}

.hud-log-content::-webkit-scrollbar {
  width: 4px;
}
.hud-log-content::-webkit-scrollbar-thumb {
  background: rgba(0, 242, 254, 0.2);
  border-radius: 2px;
}

.log-entry {
  animation: slideInLog 0.3s ease-out forwards;
}

.log-time {
  color: var(--text-muted);
  margin-right: 4px;
}

@keyframes slideInLog {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   3D CANVAS WRAPPER
   ========================================================================== */
.canvas-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 2;
  pointer-events: none;
}

#canvas-3d {
  width: 100%;
  height: 100%;
  display: block;
}

/* ==========================================================================
   APP HEADER
   ========================================================================== */
.app-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  z-index: 20;
  background: linear-gradient(to bottom, rgba(3, 7, 18, 0.8) 0%, transparent 100%);
  backdrop-filter: blur(4px);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-title);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--text-color);
}

.logo-icon {
  color: var(--cyan);
  filter: drop-shadow(0 0 8px var(--cyan));
}

.logo .thin {
  font-weight: 300;
  color: var(--cyan);
}

.header-tag {
  font-family: var(--font-title);
  font-size: 0.65rem;
  letter-spacing: 2px;
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 4px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-family: var(--font-title);
  font-size: 0.75rem;
  letter-spacing: 1px;
  color: var(--text-muted);
  transition: color 0.3s;
}

.nav-link:hover {
  color: var(--cyan);
  text-shadow: 0 0 8px var(--cyan);
}

/* ==========================================================================
   GLOBAL UTILITIES & BUTTONS
   ========================================================================== */
.btn-primary {
  font-family: var(--font-title);
  font-size: 0.75rem;
  letter-spacing: 2px;
  padding: 10px 20px;
  border-radius: 4px;
  border: 1px solid var(--cyan);
  background: rgba(0, 242, 254, 0.05);
  color: var(--cyan);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.glow-button-cyan:hover {
  background: var(--cyan);
  color: var(--bg-color);
  box-shadow: 0 0 20px var(--cyan);
}

.glass-panel {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  backdrop-filter: blur(16px);
  border-radius: 12px;
  transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}

.tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-family: var(--font-title);
  font-size: 0.65rem;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.icon-xs { width: 12px; height: 12px; }
.icon-sm { width: 14px; height: 14px; }

/* Text colors */
.text-cyan { color: var(--cyan); text-shadow: 0 0 8px var(--cyan-glow); }
.text-green { color: var(--green); text-shadow: 0 0 8px var(--green-glow); }
.text-red { color: var(--red); text-shadow: 0 0 8px var(--red-glow); }
.text-gold { color: var(--gold); text-shadow: 0 0 8px var(--gold-glow); }

.glowing-cyan {
  color: var(--cyan);
  text-shadow: 0 0 10px var(--cyan);
}

/* ==========================================================================
   CONTENT LAYOUT & SECTIONS
   ========================================================================== */
.content-wrapper {
  position: relative;
  z-index: 5;
}

.fullscreen-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 80px 40px;
}

@media (min-width: 1024px) {
  .fullscreen-section {
    scroll-snap-align: start;
    height: 100vh;
  }
}

.section-content {
  width: 100%;
  max-width: 550px; /* Leave right side open for the 3D Ring */
  margin-left: 5%;
  animation: fadeUp 1s ease-out;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.glitch-title {
  font-family: var(--font-title);
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: -1px;
  margin-bottom: 10px;
  position: relative;
}

.sub-headline {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--cyan);
  letter-spacing: 2px;
  margin-bottom: 25px;
  text-shadow: 0 0 10px var(--cyan-glow);
}

.section-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 35px;
}

.section-title {
  font-family: var(--font-title);
  font-size: 2.2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 40px;
}

/* ==========================================================================
   HERO FORM & STATS
   ========================================================================== */
.cta-container {
  margin-bottom: 40px;
}

.futuristic-form {
  display: flex;
  gap: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px;
  border-radius: 8px;
  max-width: 480px;
}

.input-wrapper {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 12px;
  color: rgba(255, 255, 255, 0.3);
  width: 18px;
  height: 18px;
}

.futuristic-form input {
  width: 100%;
  background: transparent;
  border: none;
  padding: 12px 12px 12px 42px;
  color: var(--text-color);
  font-family: var(--font-title);
  font-size: 0.8rem;
  letter-spacing: 1px;
}

.futuristic-form input:focus {
  outline: none;
}

.btn-action {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--cyan);
  border: none;
  padding: 0 20px;
  border-radius: 6px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 1px;
  color: var(--bg-color);
  cursor: pointer;
  transition: all 0.3s;
}

.btn-action:hover {
  box-shadow: 0 0 15px var(--cyan);
}

.form-feedback {
  font-size: 0.75rem;
  margin-top: 10px;
  font-family: var(--font-title);
}

.hero-stats {
  display: flex;
  gap: 20px;
}

.stat-card {
  flex: 1;
  padding: 15px;
  text-align: center;
}

.stat-val {
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.stat-lbl {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ==========================================================================
   BIOMETRICS COMPARISON SECTION
   ========================================================================== */
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 520px;
}

@media (min-width: 640px) {
  .comparison-grid {
    grid-template-columns: 1fr;
  }
}

.comparison-card {
  padding: 24px;
  border: 1px solid var(--panel-border);
}

.comparison-card.border-red:hover {
  border-color: rgba(255, 59, 48, 0.4);
  box-shadow: 0 0 20px rgba(255, 59, 48, 0.05);
}

.comparison-card.border-green {
  border-color: rgba(0, 255, 136, 0.2);
}

.comparison-card.active-glowing {
  border-color: var(--green);
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.1);
}

.card-icon-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.card-icon-header h3 {
  font-family: var(--font-title);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.comparison-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.comparison-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  line-height: 1.4;
}

.comparison-list li i {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 2px;
}

.pulse-glow {
  animation: greenGlowPulse 2s infinite;
}

@keyframes greenGlowPulse {
  0%, 100% { filter: drop-shadow(0 0 2px var(--green)); }
  50% { filter: drop-shadow(0 0 8px var(--green)); }
}

/* ==========================================================================
   DAILY TIMELINE SECTION
   ========================================================================== */
.timeline-container {
  position: relative;
  padding: 30px 20px;
  margin-bottom: 24px;
}

.timeline-progress-bar {
  position: absolute;
  top: 45px;
  left: 40px;
  right: 40px;
  height: 2px;
  background: rgba(255, 255, 255, 0.05);
  z-index: 1;
}

.timeline-progress {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--gold));
  transition: width 0.5s ease;
  box-shadow: 0 0 8px var(--cyan);
}

.timeline-nodes {
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.timeline-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  width: 80px;
}

.node-icon-wrapper {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #0d1527;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.3s ease;
}

.timeline-node:hover .node-icon-wrapper {
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 10px var(--cyan-glow);
}

.timeline-node.active .node-icon-wrapper {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--bg-color);
  box-shadow: 0 0 15px var(--cyan);
}

.node-info {
  margin-top: 10px;
  text-align: center;
}

.node-time {
  font-family: var(--font-title);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-color);
}

.node-title {
  font-size: 0.55rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.timeline-node.active .node-time {
  color: var(--cyan);
}

/* Timeline Details Panel */
.timeline-details {
  padding: 24px;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.detail-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.detail-header i {
  width: 24px;
  height: 24px;
  filter: drop-shadow(0 0 5px var(--cyan-glow));
  transition: color 0.3s;
}

.detail-header h3 {
  font-family: var(--font-title);
  font-size: 1.1rem;
  letter-spacing: 1px;
}

.timeline-details p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 15px;
}

.detail-hologram-log {
  background: rgba(0, 0, 0, 0.25);
  border-left: 2px solid var(--cyan);
  padding: 6px 12px;
  font-family: monospace;
  font-size: 0.7rem;
  letter-spacing: 1px;
  color: var(--cyan);
  animation: pulseScanText 2s infinite;
}

@keyframes pulseScanText {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

.terminal-prompt {
  color: var(--text-muted);
  margin-right: 4px;
}

/* ==========================================================================
   TECHNICAL STACK GRID SECTION
   ========================================================================== */
.tech-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 520px;
}

@media (max-width: 480px) {
  .tech-grid {
    grid-template-columns: 1fr;
  }
}

.tech-card {
  padding: 20px;
  cursor: pointer;
  border-color: rgba(255, 255, 255, 0.05);
}

.tech-card:hover, .tech-card.highlighted {
  border-color: var(--cyan);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.1);
  transform: translateY(-2px);
}

.tech-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.tech-num {
  font-family: var(--font-title);
  font-size: 0.7rem;
  color: var(--cyan);
  border: 1px solid rgba(0, 242, 254, 0.2);
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(0, 242, 254, 0.02);
}

.tech-header h3 {
  font-family: var(--font-title);
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.tech-card p {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ==========================================================================
   CONSORTIUM & GTM ROADMAP SECTION
   ========================================================================== */
.consortium-row {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 30px;
}

.consortium-entity {
  padding: 16px 20px;
}

.entity-logo {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--cyan);
  letter-spacing: 2px;
  margin-bottom: 4px;
  text-shadow: 0 0 8px var(--cyan-glow);
}

.entity-role {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.entity-sign {
  font-family: monospace;
  font-size: 0.65rem;
  color: var(--green);
}

.consortium-title-small {
  font-family: var(--font-title);
  font-size: 1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 30px 0 15px 0;
  border-left: 2px solid var(--gold);
  padding-left: 10px;
}

.gtm-phases {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.gtm-card {
  padding: 16px;
}

.gtm-phase {
  font-family: var(--font-title);
  font-size: 0.65rem;
  color: var(--gold);
  margin-bottom: 6px;
  letter-spacing: 1px;
}

.gtm-card h4 {
  font-family: var(--font-title);
  font-size: 0.85rem;
  text-transform: uppercase;
  margin-bottom: 6px;
  letter-spacing: 1px;
}

.gtm-card p {
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ==========================================================================
   NAVIGATION DOTS
   ========================================================================== */
.scroll-nav {
  position: fixed;
  left: 40px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 10;
}

.scroll-nav-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: all 0.3s ease;
}

.scroll-nav-dot:hover {
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

.scroll-nav-dot.active {
  background: var(--cyan);
  width: 24px;
  border-radius: 4px;
  box-shadow: 0 0 10px var(--cyan);
}

/* ==========================================================================
   RESPONSIVE DESIGN ADAPTATIONS (MOBILE FIRST CRITICAL FIXES)
   ========================================================================== */
.hidden-mobile { display: none !important; }
.hidden-tablet { display: none !important; }

@media (min-width: 640px) {
  .hidden-mobile { display: block !important; }
  .hud-status-item.hidden-mobile { display: flex !important; }
}

@media (min-width: 1024px) {
  .hidden-tablet { display: block !important; }
  
  /* Slide Layout splits content & 3D Ring */
  .section-content {
    margin-left: 10%;
  }
}

@media (max-width: 1023px) {
  /* On tablets and mobile, position the canvas in the background with opacity */
  .canvas-container {
    opacity: 0.45;
  }
  
  .fullscreen-section {
    padding: 100px 24px 60px 24px;
    height: auto;
    min-height: 100vh;
  }
  
  .section-content {
    max-width: 100%;
    margin-left: 0;
  }
  
  .hud-activity-log {
    position: relative;
    bottom: auto;
    right: auto;
    width: 100%;
    margin-top: 30px;
  }
  
  .scroll-nav {
    display: none; /* Hide dots on mobile */
  }
  
  .glitch-title {
    font-size: 2.2rem;
  }
}

@media (max-width: 480px) {
  .app-header {
    padding: 15px 20px;
  }
  
  .header-actions {
    gap: 12px;
  }
  
  .nav-link {
    display: none; /* Hide standard links to save space */
  }
  
  .fullscreen-section {
    padding-top: 80px;
  }
  
  .glitch-title {
    font-size: 1.8rem;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 12px;
  }
  
  .futuristic-form {
    flex-direction: column;
    gap: 8px;
    background: transparent;
    border: none;
    padding: 0;
  }
  
  .input-wrapper {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
  }
  
  .btn-action {
    padding: 14px;
    justify-content: center;
    border-radius: 6px;
  }
}
