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

:root {
  --bg: #05061a;
  --bg-deep: #020310;
  --blue-grad: #1a1aff;
  --blue-mid: #0a0a8a;
  --accent: #a0a8ff;
  --accent-bright: #c8ccff;
  --white: #ffffff;
  --text-dim: rgba(255,255,255,0.6);
  --text-muted: rgba(255,255,255,0.35);
  --border: rgba(255,255,255,0.08);
  --border-bright: rgba(255,255,255,0.18);
  --mono: 'JetBrains Mono', monospace;
  --sans: 'Inter', sans-serif;
  --display: 'Inter', sans-serif;
  --radius: 50px;
  --radius-sm: 8px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg-deep);
  color: var(--white);
  font-family: var(--sans);
  line-height: 1.6;
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 2px; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.5rem 3rem;
  background: transparent;
}

.nav-logo {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.1em;
}
.nav-logo .accent { color: var(--accent); }
.nav-logo .bracket { color: rgba(255,255,255,0.15); }

.cursor-blink { display: inline-block; color: var(--accent); animation: blink 1s step-end infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

.nav-links { display: flex; list-style: none; gap: 2.5rem; }
.nav-links a {
  font-size: 0.75rem; font-weight: 500;
  color: rgba(255,255,255,0.45);
  text-decoration: none; letter-spacing: 0.08em;
  text-transform: uppercase; transition: color 0.2s;
}
.nav-links a:hover { color: #fff; }

.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.4rem; cursor: pointer; }
.mobile-menu {
  display: none; position: fixed; top: 64px; left: 0; right: 0; z-index: 99;
  background: rgba(5,6,26,0.97); border-bottom: 0.5px solid var(--border);
  padding: 1.5rem 2rem;
}
.mobile-menu.open { display: block; }
.mobile-menu ul { list-style: none; display: flex; flex-direction: column; gap: 1.25rem; }
.mobile-menu a { font-size: 0.9rem; font-weight: 600; color: rgba(255,255,255,0.5); text-decoration: none; text-transform: uppercase; letter-spacing: 0.08em; transition: color 0.2s; }
.mobile-menu a:hover { color: #fff; }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 7rem 2rem 4rem;
  background: #0d0d8a;
  background: radial-gradient(ellipse 100% 80% at 50% 30%, #2828d4 0%, #1010a0 30%, #080850 55%, #05061a 80%);
}

/* Subtle grid overlay */
.hero::after {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* Badge */
.hero-badge {
  position: relative; z-index: 2;
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: rgba(255,255,255,0.06);
  border: 0.5px solid rgba(255,255,255,0.15);
  border-radius: 50px;
  padding: 0.45rem 1.25rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
}
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: #00e676; box-shadow: 0 0 8px #00e676; }

/* Giant oversized headline */
.hero-headline {
  position: relative; z-index: 2;
  font-size: clamp(5rem, 14vw, 13rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 1rem;
  width: 110%;
  margin-left: -5%;
}

.hero-headline .line1 { display: block; }
.hero-headline .line2 {
  display: block;
  color: var(--accent-bright);
  opacity: 0.75;
}

/* Watermark text behind */
.hero-watermark {
  position: absolute; z-index: 1;
  font-size: clamp(8rem, 22vw, 20rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.04);
  white-space: nowrap;
  pointer-events: none;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  user-select: none;
}

.hero-sub {
  position: relative; z-index: 2;
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: var(--text-dim);
  max-width: 520px;
  margin: 0 auto 3rem;
  line-height: 1.8;
  font-weight: 400;
}

.hero-cta {
  position: relative; z-index: 2;
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
}

.btn {
  font-size: 0.82rem; font-weight: 600;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: all 0.25s;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.btn-primary {
  background: #fff; color: #05061a;
  border: none;
}
.btn-primary:hover { background: #e8e8ff; transform: translateY(-2px); box-shadow: 0 8px 30px rgba(255,255,255,0.15); }
.btn-outline {
  background: rgba(255,255,255,0.06);
  color: #fff;
  border: 0.5px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(10px);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); transform: translateY(-2px); }

/* ===== STATS BAR ===== */
.stats-bar {
  position: relative; z-index: 2;
  display: flex; justify-content: center; gap: 4rem;
  padding: 3rem 2rem 2rem;
  background: linear-gradient(to bottom, transparent, rgba(5,6,26,0.8));
}
.stat-item { text-align: center; }
.stat-number {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1;
}
.stat-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-top: 0.4rem;
}

/* ===== SECTIONS ===== */
.section { padding: 6rem 0; position: relative; }

.section-dark {
  background: var(--bg-deep);
}

.section-blue {
  background: linear-gradient(135deg, #0c0c50 0%, #080838 40%, #05061a 80%);
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 3rem; }

.section-eyebrow {
  display: flex; align-items: center; gap: 0.75rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
}
.eyebrow-num { color: var(--accent); }
.eyebrow-divider { width: 1px; height: 12px; background: var(--border-bright); }

.section-title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  color: #fff;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 3.5rem;
}
.section-title span { color: var(--accent-bright); }

/* ===== ABOUT ===== */
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 5rem; align-items: start; }

.about-text p { color: var(--text-dim); margin-bottom: 1.5rem; font-size: 1.05rem; line-height: 1.85; }
.about-text strong { color: #fff; font-weight: 600; }

.about-stats { display: flex; gap: 3rem; margin-top: 2.5rem; padding-top: 2.5rem; border-top: 0.5px solid var(--border); }
.stat { display: flex; flex-direction: column; }
.stat-num-lg { font-size: 3rem; font-weight: 900; color: #fff; line-height: 1; letter-spacing: -0.02em; }
.stat-lbl { font-family: var(--mono); font-size: 0.62rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.12em; margin-top: 0.35rem; }

.about-card {
  background: rgba(255,255,255,0.03);
  border: 0.5px solid var(--border);
  border-radius: 16px; overflow: hidden;
  backdrop-filter: blur(10px);
}
.about-card-header { padding: 0.7rem 1.1rem; background: rgba(255,255,255,0.04); border-bottom: 0.5px solid var(--border); font-family: var(--mono); font-size: 0.7rem; color: var(--text-muted); }
.about-json { padding: 1.25rem; font-family: var(--mono); font-size: 0.75rem; line-height: 2; white-space: pre-wrap; color: var(--text-dim); }
.json-key { color: var(--accent); }
.json-str { color: rgba(255,255,255,0.55); }
.json-num { color: #ffd32a; }
.json-bool { color: #00e676; }

/* ===== SKILLS ===== */
.skills-3col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-bottom: 1.5rem; }
.skills-bottom { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; max-width: 67%; }

.skill-cat {
  background: rgba(255,255,255,0.03);
  border: 0.5px solid var(--border);
  border-radius: 16px; padding: 1.75rem;
  transition: border-color 0.2s, background 0.2s;
}
.skill-cat:hover { border-color: rgba(160,168,255,0.3); background: rgba(160,168,255,0.05); }

.skill-cat-icon { font-size: 1.5rem; margin-bottom: 0.75rem; }
.skill-cat-title { font-size: 0.72rem; font-weight: 700; color: var(--text-muted); margin-bottom: 1.25rem; letter-spacing: 0.12em; text-transform: uppercase; }

.skill-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag { font-family: var(--mono); font-size: 0.68rem; padding: 0.3rem 0.75rem; border-radius: 50px; letter-spacing: 0.02em; }
.tag-red { background: rgba(255,71,87,0.1); color: rgba(255,120,130,0.9); border: 0.5px solid rgba(255,71,87,0.2); }
.tag-blue { background: rgba(160,168,255,0.1); color: rgba(180,188,255,0.9); border: 0.5px solid rgba(160,168,255,0.2); }
.tag-green { background: rgba(0,230,118,0.08); color: rgba(80,230,140,0.9); border: 0.5px solid rgba(0,230,118,0.18); }
.tag-yellow { background: rgba(255,211,42,0.08); color: rgba(255,220,80,0.9); border: 0.5px solid rgba(255,211,42,0.18); }

/* ===== PROJECTS ===== */
.projects-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.5rem; }

.project-card {
  background: rgba(255,255,255,0.03);
  border: 0.5px solid var(--border);
  border-radius: 20px; padding: 2rem;
  transition: border-color 0.25s, transform 0.25s, background 0.25s;
  position: relative; overflow: hidden;
}
.project-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(160,168,255,0.4), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.project-card:hover { border-color: rgba(160,168,255,0.25); transform: translateY(-5px); background: rgba(160,168,255,0.04); }
.project-card:hover::before { opacity: 1; }
.project-card-featured { border-color: rgba(160,168,255,0.2); }

.project-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 1rem; }
.project-icon { font-size: 2.25rem; }
.project-link { font-family: var(--mono); font-size: 0.68rem; color: var(--text-muted); text-decoration: none; transition: color 0.2s; padding: 0.3rem 0.75rem; border: 0.5px solid var(--border); border-radius: 50px; }
.project-link:hover { color: #fff; border-color: var(--border-bright); }

.featured-badge { display: inline-block; font-family: var(--mono); font-size: 0.6rem; color: var(--accent); background: rgba(160,168,255,0.1); border: 0.5px solid rgba(160,168,255,0.25); padding: 0.2rem 0.7rem; border-radius: 50px; letter-spacing: 0.08em; margin-bottom: 0.6rem; text-transform: uppercase; }

.project-name { font-size: 1.6rem; font-weight: 800; color: #fff; margin-bottom: 0.25rem; letter-spacing: -0.02em; }
.project-tagline { font-family: var(--mono); font-size: 0.68rem; color: var(--accent); margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.7; }
.project-desc { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 1.25rem; line-height: 1.75; }

.project-role { background: rgba(160,168,255,0.06); border-left: 2px solid rgba(160,168,255,0.5); border-radius: 0 6px 6px 0; padding: 0.6rem 0.9rem; margin-bottom: 1.25rem; }
.role-label { color: var(--text-muted); font-family: var(--mono); font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.08em; }
.role-text { color: var(--accent-bright); display: block; margin-top: 0.2rem; font-size: 0.85rem; }

.project-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.ptag { font-family: var(--mono); font-size: 0.65rem; padding: 0.2rem 0.65rem; background: rgba(255,255,255,0.04); color: var(--text-muted); border-radius: 50px; border: 0.5px solid var(--border); }

/* ===== CERTS ===== */
.certs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }

.cert-card { background: rgba(255,255,255,0.03); border: 0.5px solid var(--border); border-radius: 16px; padding: 1.5rem; display: flex; align-items: center; gap: 1.25rem; transition: border-color 0.2s, background 0.2s; }
.cert-card:hover { border-color: rgba(160,168,255,0.25); background: rgba(160,168,255,0.04); }
.cert-card.cert-wip { opacity: 0.5; }

.cert-icon { font-size: 1.75rem; }
.cert-name { font-weight: 700; font-size: 0.92rem; color: #fff; margin-bottom: 0.2rem; }
.cert-body { font-family: var(--mono); font-size: 0.68rem; color: var(--text-muted); margin-bottom: 0.4rem; }
.cert-status { display: inline-block; font-family: var(--mono); font-size: 0.6rem; padding: 0.15rem 0.6rem; border-radius: 50px; background: rgba(255,255,255,0.04); color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.cert-status.active { background: rgba(0,230,118,0.1); color: #00e676; }
.cert-status.wip { background: rgba(255,211,42,0.1); color: #ffd32a; }

/* ===== CONTACT ===== */
.contact-wrap {
  background: linear-gradient(135deg, #1010aa 0%, #0a0a6a 40%, #05061a 100%);
  border-radius: 24px;
  padding: 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.contact-wrap::before {
  content: '';
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}
.contact-title { position: relative; z-index: 1; font-size: clamp(2rem, 5vw, 4rem); font-weight: 900; color: #fff; letter-spacing: -0.03em; margin-bottom: 1rem; }
.contact-intro { position: relative; z-index: 1; color: var(--text-dim); font-size: 1rem; max-width: 480px; margin: 0 auto 2.5rem; line-height: 1.8; }
.contact-links { position: relative; z-index: 1; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.contact-btn { display: flex; align-items: center; gap: 0.65rem; font-size: 0.8rem; font-weight: 600; padding: 0.9rem 1.75rem; border: 0.5px solid rgba(255,255,255,0.2); border-radius: 50px; color: rgba(255,255,255,0.7); text-decoration: none; background: rgba(255,255,255,0.06); transition: all 0.2s; letter-spacing: 0.05em; backdrop-filter: blur(10px); }
.contact-btn:hover { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.4); transform: translateY(-2px); }
.contact-icon { font-size: 1rem; }

/* ===== FOOTER ===== */
.footer { padding: 2.5rem 3rem; text-align: center; border-top: 0.5px solid var(--border); font-family: var(--mono); font-size: 0.7rem; color: var(--text-muted); line-height: 2.2; letter-spacing: 0.06em; text-transform: uppercase; }
.footer span { color: var(--accent); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .skills-3col { grid-template-columns: 1fr 1fr; }
  .skills-bottom { grid-template-columns: 1fr 1fr; max-width: 100%; }
  .stats-bar { gap: 2rem; }
  .navbar { padding: 1rem 1.5rem; }
  .container { padding: 0 1.5rem; }
  .contact-wrap { padding: 2.5rem 1.5rem; }
}
@media (max-width: 600px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .hero-headline { font-size: clamp(3.5rem, 16vw, 6rem); width: 100%; margin-left: 0; }
  .container { padding: 0 1.25rem; }
  .about-stats { flex-direction: column; gap: 1.5rem; }
  .contact-links { flex-direction: column; align-items: center; }
  .skills-3col { grid-template-columns: 1fr; }
  .skills-bottom { grid-template-columns: 1fr; max-width: 100%; }
  .stats-bar { flex-wrap: wrap; gap: 1.5rem; }
}

/* ===== ANIMATIONS ===== */
.fade-in { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
