/* =========================================
   CORE THEME VARIABLES & RESET
   ========================================= */
   :root {
    /* Dark Mode (Hacker Theme) */
    --bg-primary: #050505;
    --bg-secondary: #0a0a0c;
    --accent-color: #00ff88;
    --accent-glow: rgba(0, 255, 136, 0.4);
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --border-color: rgba(0, 255, 136, 0.2);
    --card-bg: rgba(15, 15, 20, 0.8);
    --transition-speed: 0.4s;
}

[data-theme="light"] {
    --bg-primary: #f4f7f6;
    --bg-secondary: #ffffff;
    --accent-color: #0077ff;
    --accent-glow: rgba(0, 119, 255, 0.2);
    --text-primary: #1a1a1a;
    --text-secondary: #555555;
    --border-color: rgba(0, 119, 255, 0.2);
    --card-bg: #ffffff;
}

* {
    transition: background-color var(--transition-speed), color var(--transition-speed), border-color var(--transition-speed), box-shadow var(--transition-speed);
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
}

/* --- THEME-TRANSITION SMOOTHING --- */
body.hacker-theme {
    transition: background 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================
   HERO SECTION - ULTRA COMPACT & CENTERED
   ========================================= */
.hero-section {
    padding: 100px 0 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    background: radial-gradient(circle at center, var(--accent-glow) 0%, transparent 70%);
}

.hero-glitch {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.terminal-box.typing-box {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    padding: 15px 25px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* =========================================
   CARDS - INTERACTIVE HOVER
   ========================================= */
.join-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 60px 0;
}

.step-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 3rem 2rem;
    border-radius: 20px;
    position: relative;
    z-index: 1;
    overflow: hidden;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Glass Shine Effect on Card */
.step-card::after {
    content: "";
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
}

.step-card:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: var(--accent-color);
}

.step-card:hover::after {
    opacity: 0.15;
}

.step-number {
    font-size: 4rem;
    font-family: 'JetBrains Mono', monospace;
    position: absolute;
    top: 10px; right: 20px;
    opacity: 0.05;
    font-weight: 900;
    color: var(--accent-color);
}

/* =========================================
   FORM - NEXT GEN TERMINAL
   ========================================= */
.form-terminal.size-large {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    background: var(--bg-secondary);
}

.terminal-input {
    width: 100%;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 15px;
    color: var(--text-primary);
    font-family: 'JetBrains Mono', monospace;
    transition: all 0.3s ease;
}

.terminal-input:focus {
    outline: none;
    background: rgba(0, 255, 136, 0.05);
    border-color: var(--accent-color);
    box-shadow: 0 0 15px var(--accent-glow);
}

/* =========================================
   GLITCH BUTTONS
   ========================================= */
.btn-glitch-effect {
    background: var(--accent-color);
    color: #000 !important;
    font-weight: 700;
    padding: 16px 30px;
    border-radius: 4px;
    text-transform: uppercase;
    clip-path: polygon(7% 0, 100% 0, 100% 70%, 93% 100%, 0 100%, 0% 30%);
    transition: 0.3s;
    border: none;
    cursor: pointer;
}

.btn-glitch-effect:hover {
    letter-spacing: 2px;
    filter: brightness(1.1);
    box-shadow: 0 0 25px var(--accent-glow);
}

/* =========================================
   RESPONSIVE UTILITIES
   ========================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
}

.center-text { text-align: center; }
/* --- UNIFIED CYBER HEADERS (H1 & H2) --- */
/* Apply this to your h1, h2, and cards */
.section-header-glitch {
  color: var(--accent-color);
  text-shadow: 0 0 15px var(--accent-glow);
}

[data-theme="light"] .section-header-glitch {
  /* Use a slight offset shadow in light mode for "depth" instead of just "glow" */
  text-shadow: 2px 2px 0px rgba(0,0,0,0.05), 0 0 10px var(--accent-glow);
}
/* Force Terminal to stay dark regardless of theme */
.terminal-window.glass-panel {
  background: rgba(10, 10, 15, 0.95) !important;
  color: #00ff88 !important; /* Force green text */
  border: 1px solid rgba(0, 255, 136, 0.3);
}
.hero-glitch, 
.section-header-glitch {
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(2.2rem, 6vw, 3.8rem); /* Slightly larger for H1 */
    font-weight: 800;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 6px;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    text-shadow: 0 0 15px var(--accent-glow);
    position: relative;
    transition: all 0.3s ease;
}

/* Specific Wrapper for Centering & Line Scanner */
.glitch-wrapper, 
.section-header-terminal {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 40px;
    text-align: center;
}

/* Animated Scanner Line for ALL headers */
.line-scanner {
    width: 100%;
    max-width: 500px;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--accent-color), 
        transparent
    );
    margin-top: 15px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 10px var(--accent-glow);
}

.line-scanner::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.9), 
        transparent
    );
    animation: scan-line-move 3s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes scan-line-move {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Hover Interaction: Expand and Brighten */
.glitch-wrapper:hover .hero-glitch,
.section-header-terminal:hover .section-header-glitch {
    letter-spacing: 10px;
    filter: brightness(1.2);
    cursor: default;
}

/* Light Mode Visibility Adjustment */
[data-theme="light"] .hero-glitch,
[data-theme="light"] .section-header-glitch {
    color: var(--accent-color);
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}
/* --- ENHANCED SECTION HEADER --- */
.section-header-terminal {
  display: flex;
  flex-direction: column;
  align-items: center; /* Centers horizontally */
  justify-content: center;
  margin-bottom: 50px;
  position: relative;
  width: 100%;
}

.section-header-terminal h2 {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(2rem, 5vw, 3.5rem); /* Responsive sizing */
  font-weight: 800;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 6px; /* High-end tech look */
  margin: 0;
  padding: 10px 20px;
  position: relative;
  text-shadow: 0 0 15px var(--accent-glow);
  display: inline-flex;
  align-items: center;
  gap: 20px;
  transition: all 0.3s ease;
}

/* The Icon Styling */
.section-header-terminal h2 i {
  font-size: 0.8em;
  opacity: 0.8;
  filter: drop-shadow(0 0 8px var(--accent-color));
}

/* The Animated Scanner Line */
.line-scanner {
  width: 100%;
  max-width: 600px; /* Limits the scan line width */
  height: 2px;
  background: linear-gradient(90deg, 
      transparent, 
      var(--accent-color), 
      transparent
  );
  margin-top: 10px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 10px var(--accent-glow);
}
/* --- SPACING FIXES --- */
#main-container {
  /* Ensures space for the fixed navbar and adds room at the bottom */
  padding-top: 100px;
  padding-bottom: 80px; /* Adjust this for the gap before the footer */
}

.terminal-updates {
  /* Adds specific space below the Live Feed terminal */
  margin-bottom: 60px;
}

#footer-placeholder {
  /* Ensures the footer itself doesn't hug the content above it */
  margin-top: 40px;
  border-top: 1px solid var(--border-color);
}
/* Scanning Light Movement */
.line-scanner::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
      transparent, 
      rgba(255, 255, 255, 0.8), 
      transparent
  );
  animation: scan-move 3s infinite linear;
}

/* Light Theme Overrides */
[data-theme="light"] .section-header-terminal h2 {
  color: var(--accent-color);
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}

@keyframes scan-move {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Hover effect for the Header */
.section-header-terminal:hover h2 {
  letter-spacing: 10px; /* Expands slightly on hover */
  filter: brightness(1.2);
}
/* ================= JOIN US - ENHANCED STYLES ================= */

/* Fix navbar overlap  */
#main-container {
    padding-top: 100px;
}
.hero-section .hero-content {
    padding-left: 40px;
    padding-right: 40px;
}

/* --- HERO OVERRIDES --- */
.typing-box {
    min-height: 120px;
    display: flex;
    align-items: flex-start;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.mission-status-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    padding: 10px 20px;
    background: rgba(0, 170, 255, 0.05);
    border: 1px solid rgba(0, 170, 255, 0.2);
    border-radius: 50px;
    opacity: 0; /* For Animation */
}

.status-label { color: var(--text-secondary); font-size: 0.9rem; }
.status-value { color: var(--accent-color); font-weight: bold; letter-spacing: 1px; }
.status-indicator {
    width: 10px; height: 10px;
    background: #00ff88;
    border-radius: 50%;
    box-shadow: 0 0 10px #00ff88;
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% { opacity: 0.5; box-shadow: 0 0 0 #00ff88; }
    50% { opacity: 1; box-shadow: 0 0 15px #00ff88; }
    100% { opacity: 0.5; box-shadow: 0 0 0 #00ff88; }
}

/* --- STEPS SECTION --- */
.cyber-steps-section {
    background: var(--bg-secondary);
    padding: 100px 0;
    position: relative;
}

.join-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.step-card {
    background: var(--card-bg);
    padding: 40px 30px;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid var(--border-color);
    opacity: 0; /* For Stagger Animation */
    transform: translateY(50px);
}

/* Holographic Border Effect on Hover */
.card-border {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    border-radius: 16px;
    pointer-events: none;
    box-shadow: inset 0 0 0 2px transparent;
    transition: all 0.4s ease;
    z-index: 2;
}

.step-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.step-card:hover .card-border {
    box-shadow: inset 0 0 20px rgba(0, 170, 255, 0.1);
    border: 1px solid var(--accent-color);
}

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

.step-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--bg-primary);
    -webkit-text-stroke: 2px var(--border-color);
    opacity: 0.5;
    line-height: 1;
    transition: color 0.3s;
}

.step-card:hover .step-number {
    color: rgba(0, 170, 255, 0.1);
    -webkit-text-stroke: 2px var(--accent-color);
    opacity: 1;
}

.step-icon-wrapper {
    width: 60px; height: 60px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--text-secondary);
    transition: all 0.3s;
}

.step-card:hover .step-icon-wrapper {
    background: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
    transform: rotate(10deg);
    box-shadow: 0 5px 15px rgba(0, 170, 255, 0.3);
}

.step-card h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.step-card p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 30px;
}

/* --- BUTTONS --- */
.btn-glitch-effect {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 15px 0;
    background: var(--accent-color);
    color: white;
    font-weight: bold;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    overflow: hidden;
    transition: 0.2s;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.btn-glitch-effect:hover {
    background: #fff;
    color: #000;
    box-shadow: 0 0 20px var(--accent-color);
}

.btn-hollow-tech {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 14px 0;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-weight: bold;
    text-decoration: none;
    letter-spacing: 1px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.btn-hollow-tech:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background: rgba(0, 170, 255, 0.05);
}

.btn-hollow-tech i { margin-right: 8px; }

/* --- LIVE TERMINAL --- */
.glass-panel {
    background: rgba(20, 20, 30, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

.terminal-header {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid var(--border-color);
}

.traffic-lights { display: flex; gap: 8px; margin-right: 15px; }
.light { width: 12px; height: 12px; border-radius: 50%; }
.light.red { background: #ff5f56; }
.light.yellow { background: #ffbd2e; }
.light.green { background: #27c93f; }

.terminal-header .title {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-family: 'Courier New', monospace;
}

.terminal-body {
    padding: 20px;
    height: 300px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Scrollbar for terminal */
.terminal-body::-webkit-scrollbar { width: 6px; }
.terminal-body::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 3px; }
.terminal-body::-webkit-scrollbar-track { background: transparent; }

.log-line { opacity: 0; display: flex; gap: 10px; }
.log-time { color: var(--text-secondary); }
.log-proc { color: #ff0055; font-weight: bold; }
.log-msg { color: var(--text-primary); }
.log-msg.success { color: #00ff88; }

.center-text { text-align: center; margin-bottom: 40px; }

.hero-glitch {
  text-align: center;
  margin-top: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    #main-container {
        padding-top: 130px;
    }
    .join-steps-grid { grid-template-columns: 1fr; }
    .hero-glitch { font-size: 2.5rem; }
    .hero-section .hero-content {
        padding-left: 5px;
        padding-right: 5px;
    }
}

/* Force glitch even in light theme */
.glitch-force {
  color: var(--accent-color);
  text-shadow:
    0 0 8px rgba(0, 170, 255, 0.6),
    0 0 15px rgba(0, 170, 255, 0.4);
}

.glitch-force::before,
.glitch-force::after {
  display: block !important;
}

/* Bigger title only for Connection Protocol */
.protocol-title {
  font-size: clamp(2.6rem, 4.5vw, 4rem);
  letter-spacing: 1px;
  font-weight: 600;
}


/* ADD TO BOTTOM OF CSS FILE */
.join-form-section { padding: 4rem 0; }
.form-terminal {
  max-width: 600px;
  margin: 0 auto;
  background: rgba(10, 10, 10, 0.95);
  border: 1px solid var(--accent-color);
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.1);
}
.cyber-form .form-group { margin-bottom: 1.5rem; }
.cyber-form label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}
.terminal-input {
  width: 80%;
  background: rgba(255, 255, 255, 0.05);
  border: none;
  border-bottom: 2px solid #333;
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  padding: 12px;
  transition: border-color 0.3s;
}
.terminal-input:focus {
  outline: none;
  border-bottom-color: var(--accent-color);
  background: rgba(0, 255, 136, 0.05);
}

/* --- ENHANCED REGISTRATION SECTION --- */

/* 1. Increase Section Size & Spacing */
.join-form-section {
  padding: 8rem 0; /* Larger vertical spacing */
  background: radial-gradient(circle at center, rgba(0, 255, 136, 0.03) 0%, transparent 70%);
}

/* 2. Larger Terminal Window with Glow */
.form-terminal.size-large {
  max-width: 800px; /* Increased from 600px */
  width: 90%;
  margin: 0 auto;
  min-height: 500px; /* Ensure it looks substantial */
  border: 1px solid var(--accent-color);
  box-shadow: 0 0 30px rgba(0, 255, 136, 0.15); /* Stronger glow */
  backdrop-filter: blur(10px);
}

/* 3. Input Field Enhancement */
.terminal-input {
  font-size: 1.1rem; /* Larger text */
  padding: 15px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid #333;
}

.terminal-input:focus {
  background: rgba(0, 255, 136, 0.05);
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.1);
}

/* 4. Submit Button Full Width */
.submit-btn {
  width: 100%;
  margin-top: 2rem;
  height: 50px;
  font-size: 1.1rem;
}

/* 5. RESPONSIVENESS (Mobile Layout) */
.responsive-flex {
  display: flex;
  gap: 20px;
}

.flex-item {
  flex: 1;
}

@media (max-width: 768px) {
  .join-form-section {
    padding: 4rem 0;
  }
  
  .responsive-flex {
    flex-direction: column; /* Stack name fields on mobile */
    gap: 0;
  }
  
  .form-terminal.size-large {
    width: 95%;
  }
}