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

:root {
  --bg:       #0a0c10;
  --surface:  #111318;
  --card:     #16191f;
  --border:   #1e2230;
  --accent:   #00d4ff;
  --accent2:  #7b5fff;
  --text:     #e8ecf0;
  --muted:    #7a8499;
  --radius:   12px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* ── Nav ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 6%;
  background: rgba(10,12,16,.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: 'Orbitron', monospace;
  font-size: 1.1rem;
  color: var(--accent);
  letter-spacing: .1em;
  text-decoration: none;
}

.nav-right { display: flex; align-items: center; gap: 2rem; }

.nav-links { display: flex; gap: 2rem; list-style: none; }

.nav-links a {
  color: var(--muted); text-decoration: none; font-size: .9rem;
  transition: color .2s;
}
.nav-links a:hover { color: var(--accent); }

.lang-btn {
  display: flex; align-items: center; gap: .45rem;
  padding: .35rem .85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--muted);
  font-size: .8rem; font-weight: 600; letter-spacing: .08em;
  cursor: pointer; transition: all .2s;
  font-family: 'Inter', sans-serif;
}
.lang-btn:hover { border-color: var(--accent); color: var(--accent); }

.lang-btn .lang-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0;
}

/* ── Hero ── */
#hero {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 2rem 6%;
  position: relative; overflow: hidden;
}

.hero-grid {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(0,212,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}

.hero-glow {
  position: absolute; top: 30%; left: 50%; transform: translate(-50%, -50%);
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,212,255,.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content { position: relative; z-index: 1; max-width: 800px; }

.hero-tag {
  display: inline-block;
  font-size: .75rem; letter-spacing: .15em; text-transform: uppercase;
  color: var(--accent); border: 1px solid rgba(0,212,255,.35);
  padding: .35rem .9rem; border-radius: 999px; margin-bottom: 1.5rem;
}

.hero-title {
  font-family: 'Orbitron', monospace;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  background: linear-gradient(135deg, #fff 30%, var(--accent));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: 1.25rem;
}

.hero-sub {
  font-size: 1.1rem; color: var(--muted); max-width: 520px; margin: 0 auto 2.5rem;
}

.btn-row { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 1.75rem; border-radius: var(--radius);
  font-size: .95rem; font-weight: 600; cursor: pointer;
  text-decoration: none; transition: all .2s;
}

.btn-primary {
  background: var(--accent); color: var(--bg);
  box-shadow: 0 0 20px rgba(0,212,255,.4);
}
.btn-primary:hover { box-shadow: 0 0 32px rgba(0,212,255,.65); transform: translateY(-2px); }

.btn-outline {
  border: 1px solid var(--border); color: var(--text); background: transparent;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* ── Sections ── */
section { padding: 6rem 6%; }

.section-label {
  font-size: .75rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .5rem;
}

.section-title {
  font-family: 'Orbitron', monospace;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 1rem;
}

.section-desc { color: var(--muted); max-width: 560px; margin-bottom: 3.5rem; }

/* ── About ── */
#about { background: var(--bg); }

.about-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; align-items: center;
}

.about-text p { color: var(--muted); margin-bottom: 1rem; }

.skills { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }

.skill-tag {
  font-size: .8rem; padding: .3rem .85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: var(--card);
  transition: all .2s;
}
.skill-tag:hover { border-color: var(--accent); color: var(--accent); }

.stats-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }

.stat-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem; text-align: center;
}

.stat-number {
  font-family: 'Orbitron', monospace;
  font-size: 2rem; font-weight: 900;
  color: var(--accent);
  overflow-wrap: anywhere;
}

.stat-label { font-size: .8rem; color: var(--muted); margin-top: .25rem; }

/* ── Projects ── */
#projects { background: var(--surface); }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
  gap: 1.75rem;
}

.project-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0,212,255,.4);
  box-shadow: 0 12px 40px rgba(0,0,0,.5);
}

.video-wrapper {
  position: relative; width: 100%; padding-bottom: 56.25%;
  background: #0d0f14;
  overflow: hidden;
}

.video-wrapper iframe,
.video-wrapper video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border: none;
}

.video-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: .75rem;
  color: var(--muted); font-size: .85rem;
  border: 2px dashed var(--border);
  cursor: pointer; transition: border-color .2s;
}
.video-placeholder:hover { border-color: var(--accent); color: var(--accent); }

.play-icon {
  width: 52px; height: 52px; border-radius: 50%;
  border: 2px solid currentColor;
  display: flex; align-items: center; justify-content: center;
}
.play-icon svg { width: 20px; height: 20px; fill: currentColor; margin-left: 3px; }

.card-body { padding: 1.4rem; }

.card-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .75rem; }

.card-tag {
  font-size: .7rem; letter-spacing: .1em; text-transform: uppercase;
  padding: .2rem .6rem; border-radius: 999px;
  background: rgba(0,212,255,.1); color: var(--accent);
}

.card-tag.purple {
  background: rgba(123,95,255,.1); color: var(--accent2);
}

.card-title { font-size: 1.05rem; font-weight: 600; margin-bottom: .4rem; }

.card-desc { font-size: .87rem; color: var(--muted); }

/* ── Contact ── */
#contact { background: var(--surface); }

.contact-inner {
  max-width: 600px; margin: 0 auto; text-align: center;
}

.contact-links {
  display: flex; gap: 1rem; justify-content: center;
  flex-wrap: wrap; margin-top: 2rem;
}

.contact-link {
  display: flex; align-items: center; gap: .6rem;
  padding: .85rem 1.5rem; border-radius: var(--radius);
  border: 1px solid var(--border); color: var(--text);
  text-decoration: none; font-size: .9rem;
  background: var(--card); transition: all .2s;
}
.contact-link:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

.contact-link svg { width: 18px; height: 18px; fill: currentColor; }

/* ── Footer ── */
footer {
  text-align: center; padding: 2rem 6%;
  border-top: 1px solid var(--border);
  color: var(--muted); font-size: .82rem;
}

.annotation {
  margin-top: 30px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .about-grid { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  nav { padding: 1rem 4%; }
  .nav-links { gap: 1.2rem; }
  section { padding: 4rem 5%; }
}

@media (max-width: 480px) {
  .nav-links { display: none; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-card { padding: 1.25rem .75rem; }
  .stat-number { font-size: 1.25rem; }
}
