/* ===================== VARIABLES ===================== */
:root {
  --bg-dark: #0a0a0f;
  --bg-light: #f8fafc;
  --text-light: #e5e7eb;
  --text-dark: #0f172a;
  --accent-blue: #00bfff;
  --accent-purple: #9932cc;
  --accent-pink: #ff00aa;
  --accent-green: #00ff9f;
  --accent-orange: #f97316;
  --radius: 12px;
  --transition: 0.3s ease;
}

/* ===================== BASE ===================== */
body {
  margin: 0;
  font-family: "JetBrains Mono", monospace;
  background: var(--bg-dark);
  color: var(--text-light);
  transition: background var(--transition), color var(--transition);
  overflow-x: hidden;
  position: relative;
}

body[data-theme="light"] {
  background: var(--bg-light);
  color: var(--text-dark);
}

a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: color var(--transition), text-shadow var(--transition);
}

a:hover {
  color: var(--accent-purple);
  text-shadow: 0 0 12px rgba(180,0,255,0.8);
}

#trail-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none; /* clicks go through */
  z-index: 9999;
}

/* ===================== HEADER ===================== */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  backdrop-filter: blur(10px);
  background: rgba(10,10,15,0.85);
  z-index: 1000;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: top 0.3s;
}

.site-header a {
  margin-left: 1rem;
  font-weight: 600;
  text-transform: uppercase;
}

/* ===================== HERO ===================== */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  text-align: center;
  color: var(--accent-blue);
}

.hero h1 {
  font-family: "Orbitron", "JetBrains Mono", monospace;
  font-size: 3rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 8px var(--accent-blue);
}

.hero-subtitle {
  font-size: 1.25rem;
  opacity: 0.8;
  text-shadow: 0 0 4px var(--accent-blue);
  margin-bottom: 2rem;
}

.btn {
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  margin-right: 1rem;
  display: inline-block;
  border: 2px solid var(--accent-blue);
  color: var(--accent-blue);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition);
}

.btn.primary:hover {
  background: var(--accent-blue);
  color: #0a0a0f;
  box-shadow: 0 0 12px var(--accent-blue);
}

/* ===================== SECTION ===================== */
.section {
  position: relative;
  padding: 6rem 2rem;
  max-width: 1000px;
  margin: auto;
}

h2 {
  font-family: "Orbitron", monospace;
  color: var(--accent-purple);
  text-shadow: 0 0 6px var(--accent-purple);
  margin-bottom: 2rem;
}

/* ===================== CARDS ===================== */
.skill-grid, .project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.skill-card, .project-card {
  border-radius: var(--radius);
  padding: 1rem;
  background: rgba(10,10,15,0.6);
  border: 1px solid rgba(255,255,255,0.1);
  transition: all var(--transition);
  box-shadow: 0 0 4px rgba(0,0,0,0.4);
}

.skill-card:hover, .project-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-purple);
  box-shadow: 0 0 12px var(--accent-purple);
}

.project-card .project-body {
  display: none;
  margin-top: 1rem;
}

.project-card.expanded .project-body {
  display: block;
}

/* ===================== HERO PARTICLES & CURSOR ===================== */
#hero-canvas, body > canvas:last-of-type {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

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

/* ===================== SCROLL ANIMATION ===================== */
.animate {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===================== THEME BUTTON ===================== */
.theme-btn {
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  border: 2px solid var(--accent-blue);
  background: transparent;
  color: var(--accent-blue);
  cursor: pointer;
  font-weight: 600;
  text-transform: uppercase;
  margin-right: 4rem; /* pushes it left of the last nav link */
  margin-left: 1rem;
}

.theme-btn:hover {
  background: var(--accent-blue);
  color: #0a0a0f;
  box-shadow: 0 0 12px var(--accent-blue);
}

/* ===================== FLYING SHIPS ===================== */
.ship {
  position: absolute;
  width: 40px;
  height: 20px;
  z-index: 0;
  pointer-events: none;
  opacity: 0.8;
}

/* ================= HERO CYBERPUNK TEXT ================= */
.hero-title {
  font-family: 'Orbitron', monospace;
  font-size: 4rem;
  color: #00f0ff;
  text-shadow: 
    0 0 8px #00f0ff,
    0 0 16px #8b5cf6,
    0 0 24px #22c55e,
    0 0 32px #f97316;
  animation: neon-flicker 1.5s infinite alternate;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Neon flicker animation */
@keyframes neon-flicker {
  0%, 19%, 21%, 50%, 51%, 100% { text-shadow:
      0 0 4px #00f0ff,
      0 0 8px #8b5cf6,
      0 0 12px #22c55e;
  }
  20% { text-shadow: 0 0 12px #00f0ff, 0 0 16px #8b5cf6; }
  50% { text-shadow: 0 0 8px #22c55e, 0 0 12px #f97316; }
}

/* News feed cards */
.news-feed .project-card {
  background: rgba(0, 0, 0, 0.6);
  border-left: 3px solid #00f0ff;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  color: #e0e0e0;
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.2);
  transition: transform 0.3s, box-shadow 0.3s;
}

.news-feed .project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 24px rgba(0, 255, 255, 0.5);
}

/* Post header */
.project-header h3 {
  color: #00f0ff;
  font-family: 'Orbitron', monospace;
}

.project-header .post-date {
  font-size: 0.8rem;
  color: #8b5cf6;
  display: block;
  margin-top: 0.25rem;
}

/* Links */
.project-body a {
  color: #22c55e;
  text-decoration: none;
  font-weight: bold;
}
.project-body a:hover {
  color: #f97316;
  text-shadow: 0 0 8px #f97316;
}

/* Optional: slight scanline overlay for cyberpunk feel */
.hero::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.02),
    rgba(255,255,255,0.02) 1px,
    transparent 1px,
    transparent 2px
  );
  pointer-events: none;
}
 
/* ===================== CONTACT CARD ===================== */
.contact-card {
  position: relative;
  background: rgba(15, 15, 25, 0.85); /* dark glass panel */
  border-radius: 16px;
  padding: 2rem;
  max-width: 650px;
  margin: 4rem auto;
  text-align: center;
  color: #e0e0e0;
  box-shadow: 0 0 12px rgba(0,0,0,0.4), 0 0 32px rgba(100,100,255,0.1);
  overflow: hidden;
  backdrop-filter: blur(6px);
  font-family: 'Orbitron', monospace;
  border: 1px solid rgba(255,255,255,0.05);
}

/* Title */
.contact-title {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: #88f;
  letter-spacing: 1px;
  text-shadow: 0 0 4px rgba(136,136,255,0.4);
}

/* Subtitle / text */
.contact-text {
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  opacity: 0.8;
}

/* Links buttons */
.contact-links a.contact-btn {
  display: inline-block;
  margin: 0.5rem 0.75rem;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  border: 1px solid rgba(136, 136, 255, 0.5);
  color: #88f;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  background: rgba(10, 10, 20, 0.5);
  backdrop-filter: blur(4px);
}

.contact-links a.contact-btn:hover {
  background: rgba(136, 136, 255, 0.15);
  box-shadow: 0 0 12px rgba(136,136,255,0.4), 0 0 24px rgba(88,200,255,0.2);
  transform: translateY(-2px);
}

/* ===================== HOLOGRAPHIC PANEL EFFECT ===================== */
.holo-panel {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border-radius: 16px;
  pointer-events: none;
  box-shadow: inset 0 0 6px rgba(88, 200, 255, 0.3);
  background: linear-gradient(45deg, rgba(88,200,255,0.02), transparent 70%);
  mix-blend-mode: overlay;
}

/* ===================== PARTICLES CANVAS ===================== */
#contact-particles {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}

/* ===================== BD-1 HOLO ORB ===================== */
.bd1-orb {
  position: absolute;
  width: 40px;      /* bigger orb */
  height: 40px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(88,200,255,0.9) 0%, rgba(88,200,255,0.2) 70%);
  box-shadow: 0 0 20px rgba(88,200,255,0.6), 0 0 40px rgba(88,200,255,0.3);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 10;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

/* Hover interaction */
.contact-btn:hover ~ .bd1-orb {
  box-shadow: 0 0 28px rgba(88,200,255,1), 0 0 56px rgba(88,200,255,0.6);
  transform: scale(1.7);
}

/* ===================== ABOUT POSTER ===================== */
.about-poster {
  position: relative;
  background: rgba(15, 10, 25, 0.9);
  border: 2px solid rgba(180, 100, 220, 0.4);
  border-radius: 16px;
  padding: 2rem;
  max-width: 800px;
  margin: 4rem auto;
  box-shadow: 0 0 12px rgba(180,100,220,0.3), 0 0 24px rgba(200,150,250,0.2);
  overflow: hidden;
}

.poster-header h2 {
  font-family: 'Orbitron', sans-serif;
  color: #d9a3ff;
  font-weight: 700;
  text-shadow: 0 0 6px rgba(180,100,220,0.5), 0 0 12px rgba(200,150,250,0.3);
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.poster-body p {
  color: #e0d6f0;
  font-family: 'JetBrains Mono', monospace;
  line-height: 1.6;
  margin-bottom: 1rem;
  text-shadow: 0 0 2px rgba(200,150,250,0.2);
}

/* ===================== SCAN LINES ===================== */
.scan-lines {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  background: repeating-linear-gradient(
    rgba(255,255,255,0.03) 0 1px,
    transparent 1px 3px
  );
  animation: scan 3s linear infinite;
}

@keyframes scan {
  0% { background-position-y: 0; }
  100% { background-position-y: 6px; }
}

/* ===================== GLYPHS CANVAS ===================== */
.poster-glyphs {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 1;
}

html {
  scroll-behavior: smooth;
}

/* ===================== CYBERPUNK MAIN TITLE ===================== */
.cyberpunk-title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(4.5rem, 10vw, 8rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;

  color: #7dd3fc; /* muted cyberpunk yellow */
  position: relative;
  line-height: 0.95;

  /* cinematic depth without neon burn */
  text-shadow:
    2px 2px 0 rgba(255, 60, 60, 0.6),
    -2px -2px 0 rgba(0, 200, 255, 0.4),
    0 0 14px rgba(242, 201, 76, 0.25);
}

/* angled cyberpunk cut */
.cyberpunk-title::after {
  content: "";
  position: absolute;
  left: -10%;
  bottom: -12px;
  width: 120%;
  height: 4px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(242, 201, 76, 0.8),
    transparent
  );
  transform: skewX(-20deg);
}

/* subtle glitch jitter (rare, not constant) */
@keyframes cyberpunk-glitch {
  0% { transform: translate(0); }
  2% { transform: translate(2px, -1px); }
  4% { transform: translate(-1px, 1px); }
  6% { transform: translate(0); }
  100% { transform: translate(0); }
}

.cyberpunk-title {
  animation: cyberpunk-glitch 3s infinite;
}

/* ===================== DIAGONAL SLICE REVEAL ===================== */
.reveal {
  position: relative;
  overflow: hidden;
}

.reveal span {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: title-fade-in 0.6s ease forwards;
  animation-delay: 0.6s;
}

/* diagonal slicing overlay */
.reveal::before {
  content: "";
  position: absolute;
  top: -120%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    120deg,
    transparent 40%,
    rgba(255,255,255,0.12) 50%,
    transparent 60%
  );
  transform: translateX(-100%);
  animation: slice-reveal 1.5s ease forwards;
}

/* animations */
@keyframes slice-reveal {
  to {
    transform: translateX(100%);
  }
}

@keyframes title-fade-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal span {
  text-shadow:
    1px 0 rgba(255,80,80,0.4),
   -1px 0 rgba(80,200,255,0.4);
}

/* ===================== TERMINAL SUBTITLE ===================== */
.hero-subtitle.terminal {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  color: rgba(220, 210, 255, 0.85);
  margin-bottom: 2.5rem;
}

/* blinking terminal cursor */
.cursor {
  display: inline-block;
  margin-left: 4px;
  animation: blink 1s steps(2, start) infinite;
  opacity: 0.8;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* ===================== HERO ACTIONS ===================== */
.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}


/* Cyberpunk UI chip */
.action-chip {
  position: relative;
  padding: 0.85rem 1.75rem;
  font-family: 'Orbitron', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;

  color: rgba(230, 220, 255, 0.85);
  background: rgba(20, 15, 30, 0.85);

  border: 1px solid rgba(180, 150, 255, 0.35);
  border-radius: 2px;

  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

/* Subtle cyber edge */
.action-chip::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(180,150,255,0.15), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.action-chip:hover {
  transform: translateY(-2px);
  border-color: rgba(200,170,255,0.7);
  background: rgba(30, 20, 45, 0.95);
}

.action-chip:hover::before {
  opacity: 1;
}

.ui-label {
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  opacity: 0.4;
  margin-bottom: 0.75rem;
}

/* ===================== SEQUENTIAL ENTRY ===================== */
.hero-actions .action-chip {
  opacity: 0;
  transform: translateY(12px);
  animation: chip-enter 0.6s ease forwards;
}

/* Delay per button */
.hero-actions .action-chip:nth-child(1) { animation-delay: 0s; }
.hero-actions .action-chip:nth-child(2) { animation-delay: 1s; }
.hero-actions .action-chip:nth-child(3) { animation-delay: 1.5s; }
.hero-actions .action-chip:nth-child(4) { animation-delay: 2s; }

@keyframes chip-enter {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===================== SYSTEM BOOT SEQUENCE ===================== */
#boot-sequence {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, #0c0b14, #05040a);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease;
}

#boot-sequence.hidden {
  opacity: 0;
  pointer-events: none;
}

.boot-terminal {
  max-width: 600px;
  width: 90%;
  background: rgba(15, 10, 25, 0.85);
  border: 1px solid rgba(180, 150, 255, 0.35);
  padding: 1.5rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85rem;
  color: rgba(220, 210, 255, 0.9);
  box-shadow: 0 0 30px rgba(120, 90, 200, 0.25);
}

.boot-terminal pre {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.6;
}

/* blinking cursor */
.boot-terminal::after {
  content: "▌";
  animation: blink 1s infinite;
  margin-left: 2px;
}

@keyframes blink {
  50% { opacity: 0; }
}

.btn.secondary {
  background: transparent;
  border: 1px solid rgba(200, 180, 255, 0.35);
  color: rgba(220, 210, 255, 0.85);
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.75rem 1.5rem;
  transition: all 0.3s ease;
}

.btn.secondary:hover {
  background: rgba(160, 130, 220, 0.15);
  box-shadow: 0 0 12px rgba(160, 130, 220, 0.35);
}

/* ===================== SYSTEM HUD ===================== */
#system-hud {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: rgba(12, 10, 20, 0.85);
  border: 1px solid rgba(180, 150, 255, 0.25);
  padding: 0.75rem 1rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  color: rgba(220, 210, 255, 0.9);
  box-shadow: 0 0 20px rgba(120, 90, 200, 0.25);
  backdrop-filter: blur(8px);
  z-index: 999;
  min-width: 180px;
}

.hud-title {
  font-size: 0.65rem;
  opacity: 0.6;
  margin-bottom: 0.3rem;
  letter-spacing: 0.1em;
}

#hud-status {
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

#system-monitor {
  display: flex;
  gap: 1rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: rgba(210, 200, 240, 0.85);
  align-items: center;
}

#system-monitor span {
  opacity: 0.8;
}

#system-monitor strong {
  color: rgba(230, 220, 255, 0.95);
}

#system-monitor .security strong {
  color: rgba(180, 200, 160, 0.95); /* muted green, NOT neon */
}


.hud-metric {
  font-size: 0.65rem;
  opacity: 0.75;
  margin-top: 0.25rem;
}

@media (max-width: 768px) {
  #system-hud {
    bottom: 0.75rem;
    right: 50%;
    transform: translateX(50%);
    padding: 0.5rem 0.75rem;
    font-size: 0.6rem;
    min-width: unset;
  }

  .hud-title {
    display: none;
  }
}

/* ===================== LOGO HUD ===================== */
.logo-hud {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Orbitron', monospace;
  font-weight: 700;
  color: #88f; /* soft cyberpunk glow */
  text-shadow: 0 0 4px rgba(136,136,255,0.4), 0 0 12px rgba(88,200,255,0.2);
  font-size: 0.95rem;
}

.logo-icon {
  display: inline-block;
  font-size: 1.3rem;
  animation: pulse 2s infinite alternate;
}

.logo-status {
  font-size: 0.8rem;
  color: #8b5cf6;
  text-shadow: 0 0 3px rgba(139,92,246,0.5);
}

/* Soft pulsing animation for the icon */
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(1); opacity: 0.8; }
}

/* =================== NAVBAR HOLO PANEL =================== */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 2rem;
  background: rgba(10, 10, 20, 0.65); /* dark holo panel */
  backdrop-filter: blur(12px);
  border: 1px solid rgba(200, 200, 255, 0.1);
  box-shadow: 0 0 12px rgba(88, 200, 255, 0.15);
  z-index: 1000;
}

/* Logo hologram style */
.logo-holo {
  font-family: 'Orbitron', monospace;
  font-weight: 700;
  color: rgba(88,200,255,0.8);
  text-shadow: 0 0 4px rgba(88,200,255,0.5), 0 0 12px rgba(200,150,255,0.3);
  letter-spacing: 2px;
  font-size: 1.25rem;
  user-select: none;
  position: relative;
}

/* Optional flicker animation for holo logo */
@keyframes holo-flicker {
  0%, 19%, 21%, 50%, 51%, 100% { opacity: 1; }
  20% { opacity: 0.7; }
  50% { opacity: 0.8; }
}

.logo-holo .logo-text {
  animation: holo-flicker 1.5s infinite alternate;
}

/* Navbar links */
.nav-holo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-link, .theme-btn {
  position: relative;
  padding: 0.5rem 1rem;
  border-radius: 12px;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(150,150,255,0.9);
  font-family: 'JetBrains Mono', monospace;
  border: 1px solid rgba(150,150,255,0.2);
  background: rgba(20,20,35,0.4);
  backdrop-filter: blur(6px);
  transition: all 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0%;
  height: 2px;
  background: rgba(88,200,255,0.8);
  transition: width 0.3s ease;
}

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

/* Primary mission objective: Blog button glows/pulses */
.nav-link.primary-objective {
  color: #88f;
  border-color: rgba(136,136,255,0.5);
  box-shadow: 0 0 6px rgba(136,136,255,0.4);
  animation: pulse-glow 2s infinite alternate;
}

@keyframes pulse-glow {
  0% { box-shadow: 0 0 6px rgba(136,136,255,0.3); }
  50% { box-shadow: 0 0 18px rgba(88,200,255,0.6); }
  100% { box-shadow: 0 0 8px rgba(136,136,255,0.3); }
}

/* Holo overlay subtle moving lines */
.holo-overlay {
  pointer-events: none;
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: repeating-linear-gradient(
    0deg,
    rgba(255,255,255,0.03) 0 1px,
    transparent 1px 4px
  );
  animation: holo-scan 3s linear infinite;
  mix-blend-mode: overlay;
}

@keyframes holo-scan {
  0% { background-position-y: 0; }
  100% { background-position-y: 4px; }
}

/* Responsive: collapse nav links into menu on mobile */
@media (max-width: 768px) {
  .nav-holo {
    display: none; /* could later replace with hamburger menu */
  }
}

/* Desktop: show nav normally, hide toggle */
.nav-holo {
  display: flex;
  gap: 1rem;
}

.nav-toggle {
  display: none;
}

.mobile-only {
  display: none;
}

.desktop-only {
  display: inline-block;
}

/* Mobile styles */
@media (max-width: 768px) {
  /* Show hamburger toggle only on mobile */
  .nav-toggle {
    display: block;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: var(--accent-purple);
    cursor: pointer;
    z-index: 1002;
  }

  /* Hide nav links initially */
  .nav-holo {
    flex-direction: column;
    background: rgba(15,10,25,0.95);
    backdrop-filter: blur(6px);
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s ease;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1001;
  }

  .mobile-only {
    display: inline-block;
  }

  .desktop-only {
    display: none;
  }

  /* Mobile nav hidden by default */
  #main-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background: rgba(10,10,15,0.95);
    padding: 1rem 0;
  }

  #main-nav.open {
    display: flex;
  }

  /* When toggled open */
  .nav-holo.show {
    max-height: 500px; /* big enough to show all links */
  }
}

/* ================= PROJECT GRID ================= */

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

/* ================= PROJECT CARD ================= */

.project-card {
  position: relative;
  background: rgba(10, 16, 28, 0.75);
  border: 1px solid rgba(120,180,255,0.25);
  border-radius: 14px;
  padding: 26px;
  overflow: hidden;
  backdrop-filter: blur(6px);
  transition: transform .25s ease, box-shadow .25s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 30px rgba(120,180,255,0.25);
}

/* holographic sweep */

.project-scan {
  position: absolute;
  inset: -100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(120,180,255,0.15),
    transparent
  );
  transform: rotate(25deg);
  transition: 0.8s;
}

.project-card:hover .project-scan {
  inset: 100%;
}

/* ================= PROJECT TEXT ================= */

.project-desc {
  opacity: .9;
  line-height: 1.5;
}

.project-impact {
  margin-top: 10px;
  font-size: 0.9rem;
  opacity: .75;
}

/* ================= PROJECT BADGES ================= */

.project-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.project-badges span {
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(120,180,255,0.15);
  border: 1px solid rgba(120,180,255,0.35);
}

/* ================= PROJECT BUTTON ROW ================= */

.project-actions {
  display: flex;
  gap: 12px;
  margin-top: 14px;
}

/* ================= EXPERIENCE TIMELINE ================= */

.exp-timeline {
  display: grid;
  gap: 28px;
  margin-top: 40px;
  position: relative;
}

/* vertical timeline line */

.exp-timeline::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(120,180,255,0.25);
}

/* ================= EXPERIENCE CARD ================= */

.exp-card {
  position: relative;
  margin-left: 48px;
  padding: 24px;
  border-radius: 14px;
  background: rgba(10,16,28,0.75);
  border: 1px solid rgba(120,180,255,0.25);
  backdrop-filter: blur(6px);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}

.exp-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 26px rgba(120,180,255,0.25);
}

/* timeline node */

.exp-card::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 26px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(120,180,255,0.9);
  box-shadow: 0 0 10px rgba(120,180,255,0.9);
}

/* holo sweep */

.exp-scan {
  position: absolute;
  inset: -120%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(120,180,255,0.12),
    transparent
  );
  transform: rotate(25deg);
  transition: .9s;
}

.exp-card:hover .exp-scan {
  inset: 120%;
}

/* ================= HEADER ================= */

.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.exp-status {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(120,180,255,0.4);
  background: rgba(120,180,255,0.15);
}

/* ================= META ================= */

.exp-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.85rem;
  opacity: 0.75;
  margin: 8px 0 14px;
}

/* ================= BULLETS ================= */

.exp-bullets {
  margin: 0;
  padding-left: 18px;
  line-height: 1.6;
}

/* ================= TAGS ================= */

.exp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.exp-tags span {
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(120,180,255,0.15);
  border: 1px solid rgba(120,180,255,0.35);
}

/* ================= EDUCATION GRID (SINGLE) ================= */

.edu-grid-single {
  display: flex;
  justify-content: center; /* Centers the card on the page */
  margin-top: 40px;
}

.edu-card {
  position: relative;
  max-width: 900px; /* Prevents it from getting too wide on large screens */
  width: 100%;
  padding: 32px; /* Increased padding for a more "premium" feel */
  border-radius: 16px;
  background: rgba(12,18,30,0.75);
  border: 1px solid rgba(140,170,255,0.25);
  backdrop-filter: blur(6px);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}

/* Kept your existing hover and scan effects below */
.edu-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 30px rgba(140,170,255,0.15);
}

.edu-scan {
  position: absolute;
  inset: -120%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(140,170,255,0.12),
    transparent
  );
  transform: rotate(25deg);
  transition: .9s;
}

.edu-card:hover .edu-scan {
  inset: 120%;
}

.edu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.edu-header h3 {
  font-size: 1.5rem; /* Slightly larger for the main focus */
  color: #fff;
}

.edu-status {
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(140,170,255,0.4);
  background: rgba(140,170,255,0.15);
  white-space: nowrap;
}

.edu-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.95rem;
  color: rgba(140,170,255,0.8);
  margin-bottom: 20px;
}

.edu-desc {
  line-height: 1.7;
  opacity: 0.9;
  font-size: 1.05rem;
  margin-bottom: 24px;
}

.edu-columns {
  display: grid;
  gap: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(140,170,255,0.1);
}

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

.edu-columns h4 {
  color: rgba(140,170,255,1);
  margin-bottom: 12px;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.edu-columns ul {
  margin: 0;
  padding-left: 18px;
  line-height: 1.8;
}

/* =============== BLOG POSTER DESIGN =============== */
.news-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.filter-chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.chip {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(160,120,255,0.35);
  background: rgba(160,120,255,0.12);
  cursor: pointer;
  font-size: 0.8rem;
  transition: .25s;
}

.chip:hover,
.chip.active {
  background: rgba(160,120,255,0.22);
}

.news-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.filter-chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.chip {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(160,120,255,0.35);
  background: rgba(160,120,255,0.12);
  cursor: pointer;
  font-size: 0.8rem;
  transition: .25s;
}

.chip:hover,
.chip.active {
  background: rgba(160,120,255,0.22);
}

.featured-poster {
  position: relative;
  margin: 36px 0;
  padding: 40px;
  border-radius: 18px;
  overflow: hidden;

  background:
    radial-gradient(circle at 20% 20%, rgba(160,120,255,0.15), transparent),
    rgba(15,18,30,0.9);

  border: 1px solid rgba(160,120,255,0.3);
}

.poster-overlay {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      180deg,
      transparent,
      transparent 3px,
      rgba(255,255,255,0.03) 4px
    );
  pointer-events: none;
}

.poster-label {
  font-size: 0.7rem;
  letter-spacing: 2px;
  opacity: 0.7;
}

.poster-content h3 {
  font-size: 2rem;
  margin: 10px 0;
}

.poster-meta {
  display: flex;
  gap: 14px;
  margin: 14px 0;
  opacity: 0.75;
}

.news-grid {
  display: grid;
  gap: 22px;
}

@media (min-width: 900px) {
  .news-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.news-card {
  position: relative;
  padding: 22px;
  border-radius: 14px;
  background: rgba(12,18,30,0.75);
  border: 1px solid rgba(160,120,255,0.25);
  transition: .25s;
  overflow: hidden;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 22px rgba(160,120,255,0.2);
}

/* signal bar animation */

.signal-bar {
  height: 4px;
  width: 40%;
  margin-bottom: 12px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(160,120,255,0.8),
    transparent
  );
  animation: signalMove 3s linear infinite;
}

@keyframes signalMove {
  from { transform: translateX(-40%); }
  to { transform: translateX(200%); }
}

.news-card-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.news-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
}

.tag {
  font-size: 0.7rem;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(160,120,255,0.18);
  border: 1px solid rgba(160,120,255,0.35);
}

.new-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  font-size: 0.65rem;
  letter-spacing: 1px;
  border-radius: 999px;

  background: rgba(80,255,180,0.18);
  border: 1px solid rgba(80,255,180,0.5);
  color: rgba(120,255,200,0.95);

  animation: badgePulse 2.2s infinite;
}

@keyframes badgePulse {
  0% { box-shadow: 0 0 0 rgba(80,255,180,0.0); }
  50% { box-shadow: 0 0 10px rgba(80,255,180,0.35); }
  100% { box-shadow: 0 0 0 rgba(80,255,180,0.0); }
}

/* ===================== BLOG MOBILE ===================== */

@media (max-width: 700px) {

  .featured-poster {
    padding: 22px;
  }

  .poster-content h3 {
    font-size: 1.4rem;
  }

  .news-card {
    padding: 18px;
  }

  .news-card-header {
    flex-direction: column;
    gap: 6px;
  }

  .post-date {
    font-size: 0.75rem;
    opacity: 0.7;
  }

  .news-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .filter-chips {
    width: 100%;
  }

  .chip {
    flex: 1;
    text-align: center;
  }
}

/* ===================== MISSION SECTION ===================== */

.mission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.mission-card {
  position: relative;
  padding: 22px;
  border-radius: 14px;

  background: rgba(20, 30, 40, 0.55);
  border: 1px solid rgba(120,180,255,0.18);

  backdrop-filter: blur(10px);
  transition: transform .25s ease, box-shadow .25s ease;
}

.mission-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 22px rgba(120,180,255,0.25);
}

.mission-card h3 {
  margin-top: 10px;
  margin-bottom: 8px;
}

.mission-tag {
  display: inline-block;
  font-size: 0.65rem;
  letter-spacing: 1px;
  padding: 3px 10px;
  border-radius: 999px;

  background: rgba(80,200,255,0.15);
  border: 1px solid rgba(80,200,255,0.45);
  color: rgba(140,220,255,0.95);
}
