/* ===== BASE — variables, reset, shared components ===== */
/* Imported by every page */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #080b12;
  --bg-alt:    #0d1117;
  --surface:   #111827;
  --surface2:  #1a2236;
  --border:    #1e2d40;
  --accent:    #00e5ff;
  --accent2:   #7c3aed;
  --accent3:   #10b981;
  --accent4:   #f59e0b;
  --text:      #e2e8f0;
  --text-muted:#64748b;
  --text-dim:  #94a3b8;
  --red:       #ef4444;
  --yellow:    #f59e0b;
  --green:     #10b981;
  --font-mono: 'JetBrains Mono', monospace;
  --font-sans: 'Inter', sans-serif;
  --radius:    8px;
  --radius-lg: 16px;
  --glow:      0 0 24px rgba(0,229,255,.15);
  --glow-sm:   0 0 10px rgba(0,229,255,.1);
  --glow-purple: 0 0 20px rgba(124,58,237,.2);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
::selection { background: rgba(0,229,255,.2); }

/* ===== CANVAS BG ===== */
#bg-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: .4;
}

/* ===== NAV ===== */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(8,11,18,.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background .3s;
}
.nav-logo {
  font-family: var(--font-mono);
  font-size: .95rem;
  color: var(--accent);
  letter-spacing: -.02em;
}
.nav-logo .prompt   { color: var(--text-muted); }
.nav-logo .nav-name { color: var(--accent); }
.cursor-blink { animation: blink 1s infinite; }

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-family: var(--font-mono);
  font-size: .85rem;
  color: var(--text-dim);
  transition: color .2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width .2s;
}
.nav-links a:hover        { color: var(--accent); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active       { color: var(--accent); }
.nav-links a.active::after{ width: 100%; }

.nav-toggle {
  display: none;
  background: none; border: none;
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer;
}

/* ===== FOOTER ===== */
footer {
  position: relative; z-index: 1;
  border-top: 1px solid var(--border);
  padding: 1.5rem 2rem;
  text-align: center;
}
.footer-text {
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--text-muted);
}
.footer-text .accent { color: var(--accent); }
.footer-text .prompt { color: var(--text-muted); }

/* ===== LAYOUT ===== */
.section {
  position: relative; z-index: 1;
  padding: 5rem 2rem;
}
.section-alt { background: var(--bg-alt); }

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 3rem;
  color: var(--text);
}
.section-title .prompt { color: var(--accent); margin-right: .4rem; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem 1.5rem;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .02em;
  transition: all .2s;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--accent); color: var(--bg);
  border: 1px solid var(--accent);
}
.btn-primary:hover {
  background: transparent; color: var(--accent);
  box-shadow: var(--glow);
}
.btn-outline {
  background: transparent; color: var(--accent);
  border: 1px solid var(--accent);
}
.btn-outline:hover {
  background: rgba(0,229,255,.08);
  box-shadow: var(--glow-sm);
}
.btn-ghost {
  background: transparent; color: var(--text-dim);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ===== BADGES ===== */
.badge {
  font-family: var(--font-mono);
  font-size: .75rem;
  padding: .3rem .75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text-dim);
  transition: all .2s;
  cursor: default;
}
.badge:hover { border-color: var(--accent); color: var(--accent); box-shadow: var(--glow-sm); }

.badge-cloud { display: flex; flex-wrap: wrap; gap: .6rem; }

.award-badge {
  font-family: var(--font-mono);
  font-size: .72rem;
  padding: .2rem .6rem;
  background: rgba(245,158,11,.1);
  border: 1px solid rgba(245,158,11,.3);
  border-radius: 20px;
  color: var(--yellow);
}

/* Platform badges */
.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-family: var(--font-mono);
  font-size: .7rem;
  padding: .25rem .65rem;
  border-radius: 6px;
  border: 1px solid;
  font-weight: 500;
}
.platform-badge.web     { color: #38bdf8; border-color: rgba(56,189,248,.3); background: rgba(56,189,248,.06); }
.platform-badge.mobile  { color: #a78bfa; border-color: rgba(167,139,250,.3); background: rgba(167,139,250,.06); }
.platform-badge.desktop { color: #34d399; border-color: rgba(52,211,153,.3); background: rgba(52,211,153,.06); }
.platform-badge.tablet  { color: #fb923c; border-color: rgba(251,146,60,.3);  background: rgba(251,146,60,.06); }
.platform-badge.api     { color: #f472b6; border-color: rgba(244,114,182,.3); background: rgba(244,114,182,.06); }

/* ===== LINK ACCENT ===== */
.link-accent {
  color: var(--accent);
  border-bottom: 1px solid rgba(0,229,255,.3);
  transition: border-color .2s;
}
.link-accent:hover { border-color: var(--accent); }

/* ===== TECH STACK BARS ===== */
.tech-item { margin-bottom: 1.25rem; }
.tech-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: .4rem;
}
.tech-name  { font-family: var(--font-mono); font-size: .82rem; color: var(--text); }
.tech-level { font-family: var(--font-mono); font-size: .72rem; color: var(--text-muted); }
.tech-bar   { height: 3px; background: var(--border); border-radius: 2px; overflow: hidden; }
.tech-fill  {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 2px;
  transition: width 1.2s cubic-bezier(.4,0,.2,1);
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ===== KEYFRAMES ===== */
@keyframes blink      { 0%,100%{opacity:1} 50%{opacity:0} }
@keyframes fadeInUp   { from{opacity:0;transform:translateY(16px)} to{opacity:1;transform:none} }

/* ===== RESPONSIVE NAV ===== */
@media (max-width: 600px) {
  #navbar { padding: 1rem; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    padding: 1rem 2rem;
    gap: 1rem;
  }
  .nav-toggle { display: block; }
}
