:root {
  --bg: #080c12;
  --bg-soft: #0f1724;
  --line: rgba(88, 225, 255, 0.2);
  --text: #e8f4ff;
  --muted: #9fb6ca;
  --cyan: #3ce7ff;
  --blue: #008dff;
  --panel: rgba(12, 24, 38, 0.78);
  --shadow: 0 20px 60px rgba(0, 130, 255, 0.16);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: "Manrope", sans-serif;
  background: radial-gradient(circle at 10% 10%, #0f2235 0%, var(--bg) 38%),
    linear-gradient(180deg, #070b10 0%, #04070b 100%);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(circle at center, black 45%, transparent 100%);
  opacity: 0.4;
  z-index: -2;
}

.radial-light {
  position: fixed;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  filter: blur(110px);
  background: rgba(0, 167, 255, 0.2);
  top: -10rem;
  right: -10rem;
  pointer-events: none;
  z-index: -1;
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(5, 10, 16, 0.7);
  border-bottom: 1px solid rgba(140, 220, 255, 0.16);
}

.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.95rem 0;
}

.logo {
  color: var(--text);
  text-decoration: none;
  font-family: "Orbitron", sans-serif;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.logo span {
  color: var(--cyan);
}

nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.25s ease;
}

nav a:hover {
  color: var(--cyan);
}

/* Menu toggle button (hamburger) */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 30;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--cyan);
  transition: all 0.3s ease;
  box-shadow: 0 0 8px rgba(60, 231, 255, 0.4);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.hero {
  padding: 5rem 0 2rem;
}

.kicker {
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.76rem;
  margin-bottom: 0.8rem;
}

h1,
h2,
h3 {
  margin: 0 0 0.7rem;
  line-height: 1.2;
}

h1 {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(1.8rem, 4.4vw, 3.5rem);
}

h1 span {
  color: var(--cyan);
  text-shadow: 0 0 18px rgba(60, 231, 255, 0.35);
}

.hero-copy {
  max-width: 74ch;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  gap: 0.9rem;
  margin: 1.6rem 0 2.1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.7rem 1.2rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #001826;
  background: linear-gradient(120deg, var(--cyan), #9cf5ff);
  box-shadow: 0 14px 25px rgba(60, 231, 255, 0.25);
}

.btn-ghost {
  border: 1px solid rgba(60, 231, 255, 0.5);
  color: var(--cyan);
}

.btn-ghost:hover {
  box-shadow: 0 0 20px rgba(60, 231, 255, 0.22);
}

.hero-stats {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.section {
  padding: 4rem 0 0.4rem;
}

.section-head {
  margin-bottom: 1.2rem;
}

.card {
  background: var(--panel);
  border: 1px solid rgba(140, 220, 255, 0.15);
  border-radius: 1rem;
  padding: 1.15rem 1.2rem;
  box-shadow: var(--shadow);
}

.chips {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.chips span {
  border: 1px solid rgba(140, 220, 255, 0.28);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  font-size: 0.86rem;
}

.timeline {
  display: grid;
  gap: 1rem;
}

.timeline-item {
  border-left: 3px solid rgba(60, 231, 255, 0.5);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.project ul {
  margin: 0.7rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.cert-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.8rem;
}

.contact-panel {
  display: grid;
  gap: 0.6rem;
}

.contact-panel a {
  color: var(--cyan);
  text-decoration: none;
  font-weight: 700;
}

.contact-panel a:hover {
  text-decoration: underline;
}

.site-footer {
  margin-top: 4rem;
  border-top: 1px solid rgba(140, 220, 255, 0.16);
}

.site-footer p {
  margin: 0;
  padding: 1.4rem 0 2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 760px) {
  .container {
    width: min(1100px, 90vw);
  }

  .nav-wrap {
    padding: 0.7rem 0;
  }

  .menu-toggle {
    display: flex;
  }

  nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(5, 10, 16, 0.98);
    border-bottom: 1px solid rgba(140, 220, 255, 0.16);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease;
  }

  nav.active {
    max-height: 300px;
    opacity: 1;
  }

  nav a {
    font-size: 0.95rem;
    padding: 0.9rem 1.5rem;
    border-bottom: 1px solid rgba(140, 220, 255, 0.08);
  }

  nav a:hover {
    background: rgba(60, 231, 255, 0.08);
  }

  .hero {
    padding-top: 3rem;
    padding-bottom: 1.5rem;
  }

  h1 {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
    line-height: 1.25;
  }

  .hero-copy {
    font-size: 0.95rem;
  }

  .hero-actions {
    flex-direction: column;
    gap: 0.75rem;
  }

  .btn {
    width: 100%;
    text-align: center;
    padding: 0.85rem 1.5rem;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .hero-stats article {
    padding-left: 0.6rem;
  }

  .hero-stats article h3 {
    font-size: 0.82rem;
  }

  .hero-stats article p {
    font-size: 0.9rem;
  }

  .section {
    padding: 3rem 0 0.4rem;
  }

  .section-head h2 {
    font-size: 1.6rem;
  }

  .card {
    padding: 1rem;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .cert-list {
    grid-template-columns: 1fr;
  }

  .timeline-item h3 {
    font-size: 1.1rem;
  }

  .boot-logo {
    font-size: 1.5rem;
  }

  #boot-lines {
    font-size: 0.72rem;
    line-height: 1.8;
  }

  /* Availability section mobile fixes */
  .availability-card {
    padding: 1.5rem 1rem;
  }

  .availability-title {
    font-size: 1.4rem;
  }

  .availability-text {
    font-size: 0.9rem;
  }

  .availability-actions {
    flex-direction: column;
    gap: 0.75rem;
  }

  .availability-actions .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(1100px, 88vw);
  }

  h1 {
    font-size: 1.6rem;
  }

  .kicker {
    font-size: 0.72rem;
  }

  .logo {
    font-size: 0.95rem;
  }

  .menu-toggle span {
    width: 20px;
  }

  .btn {
    font-size: 0.92rem;
    padding: 0.75rem 1.2rem;
  }

  .chips span {
    font-size: 0.8rem;
    padding: 0.25rem 0.6rem;
  }

  .boot-logo {
    font-size: 1.3rem;
  }

  #boot-lines {
    font-size: 0.68rem;
  }

  .site-footer p {
    font-size: 0.88rem;
  }

  .availability-card {
    padding: 1.2rem 0.8rem;
  }

  .availability-title {
    font-size: 1.25rem;
  }

  .availability-status .kicker {
    font-size: 0.8rem;
  }

  .status-dot {
    width: 8px;
    height: 8px;
  }
}


/* ─── JARVIS / HUD Animations ─────────────────────────────────────────── */

/* Boot overlay */
#boot-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: #04070b;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.7s ease;
}

#boot-overlay.done {
  opacity: 0;
  pointer-events: none;
}

.boot-inner {
  text-align: left;
  width: min(500px, 88vw);
}

.boot-logo {
  font-family: "Orbitron", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.6rem;
  letter-spacing: 0.1em;
}

.boot-logo span {
  color: var(--cyan);
}

#boot-lines {
  font-family: "Courier New", monospace;
  font-size: 0.82rem;
  color: var(--cyan);
  line-height: 2;
  min-height: 8rem;
}

#boot-lines p {
  margin: 0;
  opacity: 0;
  animation: boot-line-in 0.15s forwards;
}

@keyframes boot-line-in {
  to { opacity: 1; }
}

.boot-bar {
  margin-top: 1.6rem;
  height: 2px;
  background: rgba(60, 231, 255, 0.12);
  border-radius: 2px;
  overflow: hidden;
}

.boot-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: boot-fill 2.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes boot-fill {
  to { width: 100%; }
}

/* HUD canvas */
#hud-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.55;
}

/* Hero position for scan line */
.hero {
  position: relative;
  overflow: hidden;
}

/* Scan sweep line */
.scan-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(60, 231, 255, 0.5) 35%,
    rgba(60, 231, 255, 0.9) 50%,
    rgba(60, 231, 255, 0.5) 65%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 2;
  animation: scan-sweep 5.5s linear infinite;
}

@keyframes scan-sweep {
  0%   { top: 0%;   opacity: 0; }
  4%   { opacity: 1; }
  96%  { opacity: 0.6; }
  100% { top: 100%; opacity: 0; }
}

/* Kicker pulse dot */
.kicker::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan), 0 0 18px rgba(60, 231, 255, 0.4);
  margin-right: 10px;
  vertical-align: middle;
  animation: dot-pulse 2.5s ease-in-out infinite;
}

@keyframes dot-pulse {
  0%, 100% { opacity: 1;   transform: scale(1);   box-shadow: 0 0 8px var(--cyan), 0 0 18px rgba(60,231,255,0.4); }
  50%       { opacity: 0.25; transform: scale(0.5); box-shadow: none; }
}

/* HUD corner brackets on cards */
.card {
  position: relative;
}

.card::before,
.card::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--cyan);
  border-style: solid;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.card::before {
  top: -2px;
  left: -2px;
  border-width: 2px 0 0 2px;
  transform: translate(5px, 5px);
}

.card::after {
  bottom: -2px;
  right: -2px;
  border-width: 0 2px 2px 0;
  transform: translate(-5px, -5px);
}

.card:hover::before {
  opacity: 1;
  transform: translate(0, 0);
}

.card:hover::after {
  opacity: 1;
  transform: translate(0, 0);
}

/* Logo glitch on hover */
@keyframes glitch {
  0%   { text-shadow: none; transform: none; }
  15%  { text-shadow: -3px 0 #ff003c, 3px 0 var(--cyan); transform: translate(-1px, 0); }
  30%  { text-shadow: 3px 0 #ff003c, -3px 0 var(--cyan); transform: translate(1px, 0); }
  50%  { text-shadow: none; transform: none; }
  65%  { text-shadow: 2px 0 var(--cyan), -2px 0 #ff003c; transform: translate(-1px, 0); }
  100% { text-shadow: none; transform: none; }
}

.logo:hover {
  animation: glitch 0.45s steps(2) 1;
}

/* Hero h1 accent span continuous glow */
#hero-h1 span {
  animation: glow-pulse 3.5s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% { text-shadow: 0 0 16px rgba(60, 231, 255, 0.3); }
  50%       { text-shadow: 0 0 30px rgba(60, 231, 255, 0.75), 0 0 55px rgba(60, 231, 255, 0.25); }
}

/* Hero stats HUD accent */
.hero-stats article {
  position: relative;
  border-left: 2px solid rgba(60, 231, 255, 0.25);
  padding-left: 0.75rem;
}

.hero-stats article h3 {
  font-family: "Orbitron", sans-serif;
  font-size: 0.88rem;
  color: var(--cyan);
  letter-spacing: 0.08em;
}

/* Nav underline sweep */
nav a::after {
  content: '';
  display: block;
  height: 1px;
  background: var(--cyan);
  box-shadow: 0 0 6px var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

nav a:hover::after {
  transform: scaleX(1);
}

/* Button glow on hover */
.btn-primary:hover {
  box-shadow: 0 0 28px rgba(60, 231, 255, 0.5), 0 14px 25px rgba(60, 231, 255, 0.25);
}

/* Chip hover glow */
.chips span {
  transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.chips span:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 10px rgba(60, 231, 255, 0.2);
  cursor: default;
}

/* Availability section */
.availability-section {
  padding: 2rem 0;
}

.availability-card {
  text-align: center;
  background: linear-gradient(135deg, rgba(12,24,38,0.9) 0%, rgba(8,12,18,0.95) 100%);
  border: 1px solid rgba(60,231,255,0.3);
  padding: 2.5rem;
}

.availability-status {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.availability-status .kicker {
  margin: 0;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
}

.status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: #00ff88;
  border-radius: 50%;
  box-shadow: 0 0 12px #00ff88;
  animation: dot-pulse 2.5s ease-in-out infinite;
}

.availability-title {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: var(--cyan);
}

.availability-text {
  max-width: 600px;
  margin: 0 auto 1.5rem;
  opacity: 0.85;
}

.availability-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Coming Soon card */
.coming-soon-card {
  text-align: center;
  grid-column: 1 / -1;
}

.coming-soon-title {
  color: var(--cyan);
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 0.1em;
}

.coming-soon-text {
  margin-top: 1rem;
  opacity: 0.7;
}


