/* ==========================================================================
   OSTAD REZAUL KARIM - OFFENSIVE CYBERSECURITY & RED TEAM PORTFOLIO
   OSTAD RED TEAM FORGE // ostadredteam.com
   ========================================================================== */

:root {
  --bg-primary: #060709;
  --bg-secondary: #0d0e14;
  --bg-card: rgba(15, 17, 24, 0.85);
  --bg-card-hover: rgba(26, 28, 40, 0.95);
  --bg-terminal: #07090e;

  --accent-red: #ff1744;
  --accent-crimson: #d50000;
  --accent-bright: #ff3366;
  --accent-glow: rgba(255, 23, 68, 0.45);
  --accent-glow-subtle: rgba(255, 23, 68, 0.15);

  --text-main: #f3f6fa;
  --text-muted: #95a3b8;
  --text-dim: #5e6d82;

  --border-light: rgba(255, 23, 68, 0.2);
  --border-active: rgba(255, 23, 68, 0.65);

  --font-cyber: 'Orbitron', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sub: 'Rajdhani', sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --transition-fast: 0.2s ease;
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Resets */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-body);
}

body {
  overflow-x: hidden;
  line-height: 1.6;
  background-color: var(--bg-primary);
  position: relative;
  min-height: 100vh;
}

/* Background Canvas & Cyber FX */
#cyber-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
}

.scanlines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  background: linear-gradient(
    rgba(18, 16, 16, 0) 50%, 
    rgba(0, 0, 0, 0.25) 50%
  );
  background-size: 100% 4px;
  z-index: 1;
  opacity: 0.6;
}

.vignette {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  background: radial-gradient(circle at center, transparent 40%, rgba(3, 4, 6, 0.85) 95%);
  z-index: 1;
}

/* Top Announcement Bar */
.top-status-bar {
  position: relative;
  z-index: 10;
  background: rgba(10, 11, 16, 0.95);
  border-bottom: 1px solid var(--border-light);
  padding: 6px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.5px;
}

.status-left, .status-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-label {
  color: var(--text-dim);
}

.status-val {
  color: var(--text-muted);
  font-weight: 600;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-red);
}

.pulse-red {
  animation: pulseGlow 1.8s infinite;
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(255, 23, 68, 0.8); }
  70% { box-shadow: 0 0 0 8px rgba(255, 23, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 23, 68, 0); }
}

.glow-red {
  color: var(--accent-bright) !important;
  text-shadow: 0 0 10px var(--accent-glow);
}

.text-crimson {
  color: var(--accent-red);
}

.separator {
  color: #2b3040;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 10, 15, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 23, 68, 0.25);
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.6);
  transition: var(--transition-normal);
}

.nav-container {
  max-width: 1380px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.brand-icon {
  font-size: 1.8rem;
  color: var(--accent-red);
  filter: drop-shadow(0 0 10px var(--accent-glow));
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.primary-brand {
  font-family: var(--font-cyber);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-main);
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}

.sub-brand {
  font-family: var(--font-sub);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-red);
  letter-spacing: 2px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  font-family: var(--font-sub);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 4px;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link i {
  font-size: 0.85rem;
  color: var(--accent-red);
  opacity: 0.8;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-main);
  background: var(--accent-glow-subtle);
  border: 1px solid var(--border-light);
  box-shadow: 0 0 12px rgba(255, 23, 68, 0.2);
}

.nav-cta {
  background: rgba(255, 23, 68, 0.15) !important;
  border: 1px solid var(--accent-red) !important;
  color: var(--accent-bright) !important;
}

.nav-cta:hover {
  background: var(--accent-red) !important;
  color: #fff !important;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-icon {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  width: 38px;
  height: 38px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition-fast);
}

.btn-icon:hover {
  color: var(--accent-red);
  border-color: var(--accent-red);
  box-shadow: 0 0 10px var(--accent-glow);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 24px;
  flex-direction: column;
  justify-content: space-between;
}

.mobile-toggle span {
  width: 100%;
  height: 2.5px;
  background-color: var(--text-main);
  border-radius: 2px;
  transition: var(--transition-fast);
}

/* Main Container & Sections */
main {
  position: relative;
  z-index: 5;
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-container {
  padding: 90px 0;
  border-bottom: 1px solid rgba(255, 23, 68, 0.12);
}

.section-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 60px;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-red);
  letter-spacing: 2px;
  display: inline-block;
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--font-cyber);
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--text-main);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.section-divider {
  width: 140px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-red), transparent);
  margin: 16px auto;
  position: relative;
}

.divider-diamond {
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background-color: var(--accent-red);
  box-shadow: 0 0 8px var(--accent-glow);
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  padding: 80px 0 100px;
  border-bottom: 1px solid rgba(255, 23, 68, 0.15);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 50px;
  align-items: center;
}

.cyber-badge-wrapper {
  margin-bottom: 20px;
}

.cyber-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 23, 68, 0.12);
  border: 1px solid var(--accent-red);
  color: var(--accent-bright);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  padding: 7px 16px;
  border-radius: 4px;
  box-shadow: 0 0 15px rgba(255, 23, 68, 0.25);
}

.hero-name {
  font-family: var(--font-cyber);
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 2px;
  color: #ffffff;
  margin-bottom: 12px;
}

/* Glitch Effect */
.glitch {
  position: relative;
  display: inline-block;
}

.glitch::before, .glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  clip: rect(0, 0, 0, 0);
}

.glitch:hover::before {
  left: 2px;
  text-shadow: -2px 0 #00f0ff;
  animation: glitch-anim-1 2s infinite linear alternate-reverse;
}

.glitch:hover::after {
  left: -2px;
  text-shadow: -2px 0 #ff1744;
  animation: glitch-anim-2 2s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
  0% { clip: rect(20px, 9999px, 45px, 0); }
  25% { clip: rect(60px, 9999px, 85px, 0); }
  50% { clip: rect(10px, 9999px, 30px, 0); }
  75% { clip: rect(75px, 9999px, 95px, 0); }
  100% { clip: rect(40px, 9999px, 60px, 0); }
}

@keyframes glitch-anim-2 {
  0% { clip: rect(50px, 9999px, 75px, 0); }
  25% { clip: rect(15px, 9999px, 35px, 0); }
  50% { clip: rect(80px, 9999px, 99px, 0); }
  75% { clip: rect(25px, 9999px, 50px, 0); }
  100% { clip: rect(70px, 9999px, 85px, 0); }
}

.hero-title {
  font-family: var(--font-sub);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 22px;
}

.typewriter-box {
  background: rgba(14, 17, 24, 0.95);
  border: 1px solid rgba(255, 23, 68, 0.3);
  padding: 12px 18px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.6);
}

.prompt-sym {
  color: var(--accent-red);
  font-weight: 800;
}

.typewriter {
  color: #ff3366;
  font-weight: 600;
}

.cursor {
  color: var(--accent-red);
  animation: blink 0.9s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 35px;
}

/* HUD Metrics */
.hud-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-bottom: 35px;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  padding: 14px 12px;
  border-radius: 6px;
  text-align: center;
  transition: var(--transition-fast);
  backdrop-filter: blur(8px);
}

.metric-card:hover {
  border-color: var(--accent-red);
  box-shadow: 0 0 15px rgba(255, 23, 68, 0.25);
  transform: translateY(-2px);
}

.metric-val {
  display: block;
  font-family: var(--font-cyber);
  font-size: 1.55rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 10px var(--accent-glow);
}

.metric-sub {
  font-family: var(--font-sub);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Hero CTAs */
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.btn {
  font-family: var(--font-sub);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition-normal);
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-red), var(--accent-crimson));
  color: #ffffff;
  box-shadow: 0 0 20px var(--accent-glow);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #ff3366, #ff1744);
  box-shadow: 0 0 30px rgba(255, 23, 68, 0.7);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 23, 68, 0.15);
  border-color: var(--accent-red);
  color: var(--accent-bright);
  box-shadow: 0 0 15px rgba(255, 23, 68, 0.3);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-light);
}

.btn-outline:hover {
  color: #fff;
  border-color: var(--accent-red);
  box-shadow: 0 0 12px rgba(255, 23, 68, 0.25);
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* ==========================================================================
   HERO VISUAL - OFFICIAL BADGE WITH CYBER HUD
   ========================================================================== */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.badge-holo-container {
  position: relative;
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.badge-card {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(14, 16, 22, 0.9);
  border: 2px solid var(--accent-red);
  box-shadow: 0 0 35px rgba(255, 23, 68, 0.4), inset 0 0 25px rgba(255, 23, 68, 0.15);
  transition: var(--transition-normal);
}

.badge-card:hover {
  transform: scale(1.02);
  box-shadow: 0 0 50px rgba(255, 23, 68, 0.65);
}

.badge-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.badge-scanner-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, transparent, #ff1744, #ffffff, #ff1744, transparent);
  box-shadow: 0 0 15px #ff1744;
  animation: scanlineMove 3.5s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes scanlineMove {
  0% { top: 0%; opacity: 0.8; }
  100% { top: 98%; opacity: 0.8; }
}

/* Tactical HUD Brackets */
.hud-bracket {
  position: absolute;
  width: 24px;
  height: 24px;
  border-color: var(--accent-red);
  border-style: solid;
  pointer-events: none;
  z-index: 5;
}

.bracket-tl {
  top: -8px;
  left: -8px;
  border-width: 3px 0 0 3px;
}

.bracket-tr {
  top: -8px;
  right: -8px;
  border-width: 3px 3px 0 0;
}

.bracket-bl {
  bottom: 40px;
  left: -8px;
  border-width: 0 0 3px 3px;
}

.bracket-br {
  bottom: 40px;
  right: -8px;
  border-width: 0 3px 3px 0;
}

.badge-caption {
  margin-top: 16px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 6px 10px;
  background: rgba(10, 12, 18, 0.85);
  border: 1px solid var(--border-light);
  border-radius: 4px;
}

.caption-id {
  color: var(--accent-red);
  font-weight: 700;
}

/* Tactical Borders */
.tactical-border {
  position: relative;
  border: 1px solid var(--border-light);
  background: var(--bg-card);
  border-radius: 8px;
  backdrop-filter: blur(12px);
  transition: var(--transition-normal);
}

.tactical-border:hover {
  border-color: var(--border-active);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 23, 68, 0.18);
}

/* ==========================================================================
   DOSSIER / ABOUT SECTION
   ========================================================================== */
.dossier-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 35px;
}

.dossier-card {
  padding: 35px;
}

.dossier-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255, 23, 68, 0.2);
  padding-bottom: 14px;
}

.dossier-header h3 {
  font-family: var(--font-cyber);
  font-size: 1.15rem;
  letter-spacing: 1px;
  color: var(--text-main);
}

.dossier-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.dossier-table tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dossier-table tr:last-child {
  border-bottom: none;
}

.dossier-table td {
  padding: 12px 6px;
}

.dossier-table .key {
  color: var(--text-dim);
  width: 38%;
  font-weight: 600;
}

.dossier-table .val {
  color: var(--text-main);
}

.pill-red {
  background: rgba(255, 23, 68, 0.15);
  border: 1px solid var(--accent-red);
  color: #ff3366;
  padding: 3px 10px;
  border-radius: 4px;
  font-weight: 700;
}

.status-live {
  color: #00ff88;
  font-weight: 700;
}

.cyber-quote {
  font-family: var(--font-sub);
  font-size: 1.15rem;
  font-style: italic;
  color: #e2e8f0;
  border-left: 3px solid var(--accent-red);
  padding-left: 18px;
  margin-bottom: 20px;
  line-height: 1.6;
}

.dossier-text {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.8;
  margin-bottom: 24px;
}

.spec-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 5px 12px;
  border-radius: 4px;
  transition: var(--transition-fast);
}

.pill:hover {
  border-color: var(--accent-red);
  color: var(--accent-bright);
}

/* ==========================================================================
   FORGE GUILD SECTION
   ========================================================================== */
.forge-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.forge-pillar {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 35px 28px;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.forge-pillar:hover, .active-pillar {
  border-color: var(--accent-red);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 25px rgba(255, 23, 68, 0.25);
  transform: translateY(-4px);
}

.pillar-icon {
  width: 55px;
  height: 55px;
  background: rgba(255, 23, 68, 0.12);
  border: 1px solid var(--accent-red);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--accent-red);
  margin-bottom: 20px;
}

.forge-pillar h3 {
  font-family: var(--font-cyber);
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 14px;
}

.forge-pillar p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 20px;
  flex-grow: 1;
}

.pillar-list {
  list-style: none;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-dim);
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 16px;
}

.pillar-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pillar-list i {
  color: var(--accent-red);
  font-size: 0.75rem;
}

/* ==========================================================================
   CAPABILITIES / SKILL MATRIX
   ========================================================================== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}

.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 24px;
  transition: var(--transition-normal);
}

.skill-card:hover {
  border-color: var(--accent-red);
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(255, 23, 68, 0.15);
}

.skill-card-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.skill-icon {
  width: 44px;
  height: 44px;
  background: rgba(255, 23, 68, 0.1);
  border: 1px solid rgba(255, 23, 68, 0.3);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--accent-red);
}

.skill-meta h4 {
  font-family: var(--font-sub);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}

.skill-level {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-bright);
  letter-spacing: 0.5px;
}

.progress-bar-bg {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 14px;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-crimson), var(--accent-bright));
  box-shadow: 0 0 10px var(--accent-red);
  border-radius: 3px;
}

.skill-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ==========================================================================
   INTERACTIVE CYBER TERMINAL
   ========================================================================== */
.terminal-wrapper {
  background: var(--bg-terminal);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8), 0 0 25px rgba(255, 23, 68, 0.2);
}

.terminal-header {
  background: #0d1017;
  padding: 12px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 23, 68, 0.25);
}

.terminal-dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.term-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.term-btn:hover {
  color: var(--accent-red);
  border-color: var(--accent-red);
}

.terminal-body {
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  min-height: 320px;
  max-height: 480px;
  overflow-y: auto;
  color: #c9d1d9;
  line-height: 1.6;
}

.term-line {
  margin-bottom: 8px;
  white-space: pre-wrap;
  word-break: break-word;
}

.banner-line {
  color: #ff3366;
  font-size: 0.82rem;
  line-height: 1.3;
}

.term-cmd {
  color: #58a6ff;
  font-weight: 600;
}

.term-success {
  color: #3fb950;
}

.term-warn {
  color: #d29922;
}

.term-error {
  color: #f85149;
}

.terminal-input-row {
  display: flex;
  align-items: center;
  padding: 12px 18px;
  background: #090c12;
  border-top: 1px solid rgba(255, 23, 68, 0.2);
  gap: 12px;
}

.term-prompt {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--accent-red);
  font-weight: 700;
  white-space: nowrap;
}

#terminal-input {
  flex-grow: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: #fff;
}

.term-exec-btn {
  background: var(--accent-red);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.term-exec-btn:hover {
  background: #ff3366;
}

/* ==========================================================================
   ARSENAL (TECH STACK)
   ========================================================================== */
.arsenal-categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.arsenal-box {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 26px;
}

.arsenal-box-title {
  font-family: var(--font-cyber);
  font-size: 1.05rem;
  letter-spacing: 1px;
  color: #fff;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 23, 68, 0.2);
  display: flex;
  align-items: center;
  gap: 10px;
}

.tools-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tool-tag {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 8px 14px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-fast);
}

.tool-tag:hover {
  border-color: var(--accent-red);
  background: rgba(255, 23, 68, 0.1);
  color: #fff;
  transform: translateY(-2px);
}

.tool-tag i {
  color: var(--accent-red);
}

/* ==========================================================================
   MISSIONS SECTION
   ========================================================================== */
.missions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.mission-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.mission-status-strip {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 6px 16px;
  color: #fff;
}

.strip-red {
  background: linear-gradient(90deg, var(--accent-crimson), #900010);
}

.strip-crimson {
  background: linear-gradient(90deg, #b00020, #5c0011);
}

.mission-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.mission-code {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-bright);
  font-weight: 600;
  margin-bottom: 8px;
}

.mission-content h3 {
  font-family: var(--font-sub);
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.3;
}

.mission-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 20px;
  flex-grow: 1;
}

.mission-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mission-tags span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-dim);
  padding: 3px 8px;
  border-radius: 3px;
}

/* ==========================================================================
   CONTACT / SECURE COMMS SECTION
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 35px;
}

.contact-channels, .contact-form-box {
  padding: 35px;
}

.channels-title {
  font-family: var(--font-cyber);
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255, 23, 68, 0.2);
  padding-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.channel-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.channel-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: rgba(255, 23, 68, 0.1);
  border: 1px solid rgba(255, 23, 68, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--accent-red);
}

.channel-info {
  display: flex;
  flex-direction: column;
}

.channel-label {
  font-family: var(--font-sub);
  font-size: 0.8rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.channel-link {
  color: var(--text-main);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition-fast);
}

.channel-link:hover {
  color: var(--accent-red);
}

.channel-val {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: #fff;
  font-weight: 600;
}

.pgp-code {
  font-size: 0.85rem;
  color: var(--accent-bright);
}

.pgp-box {
  margin-top: 25px;
  background: #090c12;
  border: 1px solid rgba(255, 23, 68, 0.2);
  border-radius: 6px;
  padding: 14px;
}

.pgp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-bottom: 10px;
}

.copy-btn {
  background: rgba(255, 23, 68, 0.15);
  border: 1px solid var(--accent-red);
  color: var(--accent-bright);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 3px;
  cursor: pointer;
}

.copy-btn:hover {
  background: var(--accent-red);
  color: #fff;
}

.pgp-box pre {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #8b949e;
  overflow-x: auto;
  line-height: 1.4;
}

/* Form Styles */
.cyber-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
  letter-spacing: 0.5px;
}

.cyber-form input, 
.cyber-form select, 
.cyber-form textarea {
  background: rgba(10, 13, 20, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 5px;
  padding: 12px 14px;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition-fast);
}

.cyber-form input:focus, 
.cyber-form select:focus, 
.cyber-form textarea:focus {
  border-color: var(--accent-red);
  box-shadow: 0 0 10px rgba(255, 23, 68, 0.3);
}

.form-feedback {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  margin-top: 10px;
  text-align: center;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  position: relative;
  z-index: 10;
  background: #050608;
  border-top: 1px solid rgba(255, 23, 68, 0.2);
  padding: 60px 24px 30px;
}

.footer-top {
  max-width: 1380px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 25px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-brand .footer-logo {
  font-family: var(--font-cyber);
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  font-family: var(--font-sub);
  font-size: 0.9rem;
  color: var(--text-dim);
  text-decoration: none;
  text-transform: uppercase;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent-red);
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.footer-socials a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 1.1rem;
  transition: var(--transition-fast);
}

.footer-socials a:hover {
  border-color: var(--accent-red);
  color: var(--accent-bright);
  box-shadow: 0 0 12px rgba(255, 23, 68, 0.3);
}

.footer-bottom {
  max-width: 1380px;
  margin: 25px auto 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.8;
}

.disclaimer {
  margin-bottom: 8px;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-content {
    order: 2;
  }

  .hero-visual {
    order: 1;
  }

  .typewriter-box {
    justify-content: center;
  }

  .hero-ctas {
    justify-content: center;
  }

  .dossier-grid, 
  .skills-grid, 
  .forge-grid, 
  .arsenal-categories, 
  .missions-grid, 
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .top-status-bar {
    display: none;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: rgba(8, 10, 15, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 40px 20px;
    transition: var(--transition-normal);
  }

  .nav-menu.active {
    left: 0;
  }

  .mobile-toggle {
    display: flex;
  }

  .hero-name {
    font-size: 2.4rem;
  }

  .hud-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
}
