/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

:root {
  --bg:         #0d0f14;
  --surface:    #13161d;
  --card:       #181c25;
  --border:     #252a36;
  --border-hi:  #2f3647;
  --accent:     #00e5a0;
  --accent-dim: #00b07a;
  --accent2:    #0099ff;
  --danger:     #ff4d6d;
  --warn:       #ffb627;
  --text:       #e2e8f0;
  --muted:      #64748b;
  --mono:       'JetBrains Mono', monospace;
  --sans:       'Syne', sans-serif;
  --radius:     12px;
}

body {
  font-family: var(--mono);
  background: var(--bg);
  color: var(--text);
  margin: 0;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(0,229,160,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,160,.018) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none; z-index: 0;
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-hi); border-radius: 99px; }

/* ─── Site Nav ─── */
.site-nav {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(13,15,20,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-nav-inner {
  display: flex; align-items: center; height: 56px;
  gap: 2rem; max-width: 1280px; margin: 0 auto;
  padding: 0 2rem; width: 100%;
}
.nav-logo {
  font-family: var(--mono); font-size: .85rem; font-weight: 700;
  color: var(--accent); text-decoration: none;
  letter-spacing: -.01em; white-space: nowrap;
  display: flex; align-items: center; gap: .15rem;
}
.nav-logo .brace { color: var(--muted); font-weight: 400; }
.nav-links { display: flex; align-items: center; gap: 1.5rem; flex: 1; }
.nav-links a {
  font-family: var(--mono); font-size: .78rem;
  color: var(--muted); text-decoration: none;
  letter-spacing: .03em; transition: color .14s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }

/* ─── Nav Dropdown ─── */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  display: inline-flex; align-items: center; gap: .35rem;
  background: none; border: none; cursor: pointer;
  font-family: var(--mono); font-size: .78rem;
  color: var(--accent); padding: 0; letter-spacing: .03em; transition: color .14s;
}
.nav-dropdown-toggle:hover { color: #00ffb3; }
.nav-dropdown-toggle svg { transition: transform .2s ease; }
.nav-dropdown.open .nav-dropdown-toggle svg { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: absolute; top: calc(100% + 1rem); left: 50%;
  transform: translateX(-50%); min-width: 210px;
  background: #181c25; border: 1px solid var(--border-hi);
  border-radius: 10px; padding: .4rem;
  display: none; flex-direction: column; gap: .15rem;
  box-shadow: 0 12px 32px rgba(0,0,0,.6); z-index: 999;
}
.nav-dropdown.open .nav-dropdown-menu { display: flex; animation: dropIn .15s ease both; }
.nav-dropdown-menu a {
  display: flex; align-items: center; gap: .6rem;
  padding: .55rem .75rem; border-radius: 7px;
  font-size: .75rem; color: #94a3b8;
  text-decoration: none; transition: background .12s, color .12s;
  white-space: nowrap; letter-spacing: .02em;
}
.nav-dropdown-menu a:hover { background: rgba(0,229,160,.07); color: var(--accent); }
.nav-dropdown-menu a svg { opacity: .55; flex-shrink: 0; }
.nav-dropdown-menu a:hover svg { opacity: 1; }
@keyframes dropIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-6px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.nav-cv {
  font-family: var(--mono); font-size: .72rem; font-weight: 700;
  padding: .35rem .85rem; border-radius: 6px;
  background: var(--accent); color: #0d0f14;
  text-decoration: none; letter-spacing: .05em;
  transition: background .14s; white-space: nowrap; margin-left: auto;
}
.nav-cv:hover { background: #00ffb3; }

/* ─── Mobile menu ─── */
.mobile-menu {
  display: none; padding: 1rem 2rem 1.5rem;
  border-top: 1px solid var(--border);
  background: rgba(13,15,20,.98);
}
.mobile-menu.open { display: block; }
.mobile-link {
  display: block; color: var(--muted); padding: .5rem 0;
  text-decoration: none; font-family: var(--mono); font-size: .85rem;
}
.mobile-link:hover { color: var(--text); }
.hamburger {
  display: none; background: none; border: none; cursor: pointer;
  color: var(--muted); font-size: 1.3rem; margin-left: auto;
}

@media (max-width: 640px) {
  .hamburger { display: block; }
  .nav-links a:not(.nav-dropdown-toggle) { display: none; }
  .nav-cv { display: none; }
}

/* ─── Hero ─── */
#hero {
  position: relative; z-index: 1;
  min-height: calc(100vh - 56px);
  display: flex; align-items: center;
  padding: 4rem 2rem 3rem;
  background:
    radial-gradient(ellipse at 70% 40%, rgba(0,229,160,.06) 0%, transparent 60%),
    radial-gradient(ellipse at 10% 80%, rgba(0,153,255,.04) 0%, transparent 50%),
    var(--bg);
}
.hero-inner {
  max-width: 1160px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1fr auto;
  gap: 3rem; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(0,229,160,.1); border: 1px solid rgba(0,229,160,.3);
  color: var(--accent); padding: .3rem .8rem; border-radius: 20px;
  font-size: .72rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; margin-bottom: 1.2rem;
}
.hero-badge::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .4; transform: scale(1.4); }
}
.hero-title {
  font-family: var(--sans);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 700; line-height: 1.15;
  color: var(--text); margin: 0 0 .5rem; letter-spacing: -.015em;
}
.hero-title span { color: var(--accent); }
.hero-sub {
  font-size: clamp(.9rem, 2.5vw, 1.1rem);
  color: var(--muted); font-weight: 300; margin: 0 0 1.5rem;
}
.hero-desc {
  font-size: .92rem; line-height: 1.9;
  color: #a0a5b5; max-width: 560px; margin-bottom: 2rem;
}
.hero-desc strong { color: var(--text); }
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; }

/* ─── Buttons ─── */
.btn-primary {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--accent); color: #0d0f14;
  padding: .7rem 1.4rem; border-radius: 8px;
  font-family: var(--mono); font-weight: 700; font-size: .85rem;
  text-decoration: none; transition: all .2s; border: 1.5px solid var(--accent);
  letter-spacing: .04em;
}
.btn-primary:hover { background: transparent; color: var(--accent); }
.btn-outline {
  display: inline-flex; align-items: center; gap: .5rem;
  border: 1.5px solid var(--border-hi); color: var(--muted);
  padding: .7rem 1.4rem; border-radius: 8px;
  font-family: var(--mono); font-weight: 500; font-size: .85rem;
  text-decoration: none; transition: all .2s; letter-spacing: .04em;
}
.btn-outline:hover { border-color: var(--text); color: var(--text); background: rgba(255,255,255,.04); }

/* ─── Hero avatar ─── */
.hero-avatar {
  width: 200px; height: 200px; flex-shrink: 0; border-radius: 50%;
  background: linear-gradient(135deg, rgba(0,229,160,.12), rgba(0,153,255,.08));
  border: 1.5px solid rgba(0,229,160,.2);
  display: flex; align-items: center; justify-content: center; position: relative;
}
.hero-avatar i { font-size: 5rem; color: var(--accent); opacity: .8; }
.hero-avatar::after {
  content: ''; position: absolute; inset: -8px; border-radius: 50%;
  border: 1px solid rgba(0,229,160,.1); animation: spin 20s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Tech stack ─── */
.hero-stack { display: flex; align-items: center; gap: .5rem; margin-top: 2rem; flex-wrap: wrap; }
.hero-stack .label-dim { color: var(--muted); font-size: .75rem; margin-right: .25rem; }
.stack-chip {
  background: var(--card); border: 1px solid var(--border);
  color: var(--muted); padding: .18rem .6rem; border-radius: 20px;
  font-size: .72rem; font-family: var(--mono); transition: color .15s, border-color .15s;
}
.stack-chip:hover { color: var(--accent); border-color: rgba(0,229,160,.3); }

/* ─── Sections ─── */
.section { position: relative; z-index: 1; padding: 5rem 2rem; }
.section-alt { background: var(--surface); }
.stats-section { padding-top: 0; padding-bottom: 0; background: var(--bg); }
.section-inner { max-width: 1160px; margin: 0 auto; }
.section-heading {
  font-family: var(--sans); font-size: 1.8rem; font-weight: 700;
  color: var(--text); margin: 0 0 .5rem; letter-spacing: -.01em;
}
.section-heading-accent { color: var(--accent); }
.section-sub { color: var(--muted); margin-bottom: 3rem; font-size: .88rem; }

/* ─── Stats bar ─── */
.stats-bar {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; margin-bottom: 5rem;
}
.stat { background: var(--card); padding: 1.75rem 1.5rem; text-align: center; }
.stat-num { font-family: var(--sans); font-size: 2.2rem; font-weight: 700; color: var(--accent); line-height: 1; }
.stat-label { color: var(--muted); font-size: .75rem; margin-top: .3rem; letter-spacing: .04em; }

/* ─── Skills grid ─── */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.25rem; }
.skill-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem;
  transition: border-color .2s, transform .2s;
}
.skill-card:hover { border-color: rgba(0,229,160,.3); transform: translateY(-3px); }
.skill-card-icon {
  width: 42px; height: 42px; border-radius: 10px;
  background: rgba(0,229,160,.08); border: 1px solid rgba(0,229,160,.2);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem; color: var(--accent); font-size: 1.1rem;
}
.skill-card-icon--success { background: rgba(0,229,160,.08); border-color: rgba(0,229,160,.2); color: var(--accent); }
.skill-card-icon--frontend { background: rgba(255,190,60,.1); border-color: rgba(255,190,60,.2); color: #fbbf24; }
.skill-card-icon--platform { background: rgba(167,139,250,.1); border-color: rgba(167,139,250,.2); color: #a78bfa; }
.skill-card h4 { font-family: var(--sans); color: var(--text); font-size: .9rem; margin: 0 0 .75rem; font-weight: 700; }
.skill-tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.skill-tag {
  background: rgba(255,255,255,.04); border: 1px solid var(--border);
  color: var(--muted); padding: .15rem .55rem; border-radius: 4px;
  font-size: .72rem; font-family: var(--mono);
}

/* ─── Projects grid ─── */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; }
.project-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.75rem;
  transition: border-color .2s, transform .2s; display: flex; flex-direction: column;
}
.project-card:hover { border-color: rgba(0,229,160,.3); transform: translateY(-3px); }
.project-card--ghost { border-style: dashed; opacity: .6; }
.project-card-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: .75rem; }
.project-card h3 { font-family: var(--sans); color: var(--text); font-size: 1rem; font-weight: 700; margin: 0; }
.project-card p { color: var(--muted); font-size: .85rem; line-height: 1.75; flex: 1; }
.project-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin: 1rem 0; }
.project-tag {
  background: rgba(0,229,160,.07); border: 1px solid rgba(0,229,160,.2);
  color: var(--accent); padding: .15rem .6rem; border-radius: 4px;
  font-size: .72rem; font-family: var(--mono);
}
.project-tag--dim { opacity: .5; }
.project-link {
  display: inline-flex; align-items: center; gap: .35rem;
  color: var(--accent); text-decoration: none; font-size: .82rem;
  font-weight: 500; margin-top: auto; padding-top: .75rem;
  border-top: 1px solid var(--border); transition: gap .2s;
}
.project-link:hover { gap: .6rem; }
.project-icon {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(0,229,160,.08); border: 1px solid rgba(0,229,160,.2);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-size: 1rem; flex-shrink: 0;
}
.project-icon--success { background: rgba(0,229,160,.08); border-color: rgba(0,229,160,.2); color: var(--accent); }
.project-icon--dim { background: rgba(255,255,255,.04); border-color: var(--border); color: var(--muted); }

/* ─── Timeline ─── */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: var(--border); }
.timeline-item { position: relative; padding-bottom: 2.5rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute; left: -2.375rem; top: .25rem;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent); border: 2px solid var(--surface);
}
.timeline-dot--success { background: var(--accent); }
.timeline-dot--dim     { background: var(--muted); }
.timeline-period { font-size: .75rem; color: var(--muted); font-family: var(--mono); margin-bottom: .3rem; letter-spacing: .04em; }
.timeline-role { font-family: var(--sans); font-size: .95rem; font-weight: 700; color: var(--text); margin: 0 0 .2rem; }
.timeline-company { color: var(--accent); font-size: .85rem; }
.timeline-desc { color: var(--muted); font-size: .85rem; line-height: 1.75; margin-top: .5rem; }

/* ─── About ─── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.about-text { color: #a0a5b5; font-size: .92rem; line-height: 1.9; margin-bottom: 1.5rem; }
.about-text--mb { margin-bottom: 2rem; }
.about-info-list { display: flex; flex-direction: column; gap: .6rem; }
.about-info-item { display: flex; align-items: center; gap: .75rem; color: var(--muted); font-size: .85rem; }
.about-info-item i { color: var(--accent); }
.experience-label {
  font-family: var(--sans); color: var(--muted); font-size: .8rem; font-weight: 700;
  margin-bottom: 1.5rem; text-transform: uppercase; letter-spacing: .1em;
}

/* ─── CTA ─── */
.cta-section {
  position: relative; z-index: 1;
  background: linear-gradient(135deg, rgba(0,229,160,.04) 0%, rgba(0,153,255,.03) 100%);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.cta-inner { max-width: 700px; margin: 0 auto; text-align: center; padding: 5rem 2rem; }
.cta-inner h2 { font-family: var(--sans); font-size: 2rem; font-weight: 700; color: var(--text); margin-bottom: .75rem; letter-spacing: -.01em; }
.cta-inner p { color: var(--muted); font-size: .95rem; margin-bottom: 2rem; line-height: 1.7; }
.cta-actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }

/* ─── Footer ─── */
footer { position: relative; z-index: 1; background: var(--surface); border-top: 1px solid var(--border); padding: 3rem 2rem 2rem; }
.footer-inner {
  max-width: 1160px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--border);
}
.footer-brand { font-family: var(--mono); font-size: 1rem; color: var(--accent); font-weight: 700; margin-bottom: .75rem; }
.footer-tagline { color: var(--muted); font-size: .82rem; line-height: 1.7; }
.footer-col h5 {
  font-family: var(--sans); color: var(--text); font-size: .75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1rem;
}
.footer-col a { display: block; color: var(--muted); text-decoration: none; font-size: .82rem; margin-bottom: .5rem; transition: color .2s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  max-width: 1160px; margin: 0 auto; padding-top: 1.5rem;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
}
.footer-bottom p { color: var(--muted); font-size: .78rem; margin: 0; }
.footer-socials { display: flex; gap: .75rem; }
.footer-socials a { color: var(--muted); font-size: 1rem; transition: color .2s; text-decoration: none; }
.footer-socials a:hover { color: var(--accent); }

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

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-avatar { display: none; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 480px) {
  .stats-bar { grid-template-columns: 1fr; }
}
