/* ---- TOKENS ---- */
:root {
  --bg:        #0a0c10;
  --bg-2:      #0f1117;
  --bg-card:   #13161e;
  --border:    rgba(255,255,255,0.08);
  --text:      #ffffff;
  --muted:     #7a8090;
  --accent:    #00e5ff;
  --mono:      'Fira Code', monospace;
  --sans:      'Space Grotesk', sans-serif;
}

body.light {
  --bg:        #f5f6f8;
  --bg-2:      #eceef2;
  --bg-card:   #ffffff;
  --border:    rgba(0,0,0,0.08);
  --text:      #0f1117;
  --muted:     #5a6270;
  --accent:    #0099bb;
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); background: var(--bg); color: var(--text); overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.mono { font-family: var(--mono); }

/* ---- NAV ---- */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.4rem 4rem;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.nav-logo { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.02em; }
.dot { color: var(--accent); }
.nav-links { display: flex; gap: 2rem; }
.nav-links a {
  font-family: var(--mono); font-size: 0.75rem;
  color: var(--muted); letter-spacing: 0.08em;
}
.nav-links a:hover { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 0.75rem; }

#theme-toggle {
  background: none; border: 1px solid var(--border);
  color: var(--text); cursor: pointer;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}

.nav-hamburger {
  display: none; flex-direction: column; justify-content: space-between;
  width: 22px; height: 16px; background: none; border: none; cursor: pointer; padding: 0;
}
.nav-hamburger span { display: block; width: 100%; height: 2px; background: var(--text); }

/* ---- HERO ---- */
#hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: 8rem 4rem 4rem;
  border-bottom: 1px solid var(--border);
}
.hero-content { max-width: 720px; }
.hero-tag {
  font-size: 0.78rem; color: var(--accent);
  letter-spacing: 0.16em; margin-bottom: 1.5rem; display: block;
}
#hero h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700; line-height: 0.95; letter-spacing: -0.03em;
  margin-bottom: 1.8rem;
}
.hero-sub {
  font-size: 1rem; color: var(--muted); line-height: 1.8;
  max-width: 520px; margin-bottom: 2.5rem;
}
.hero-links { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
.hero-links a {
  font-family: var(--mono); font-size: 0.8rem;
  letter-spacing: 0.08em; color: var(--accent);
  text-decoration: underline; text-underline-offset: 4px;
}

/* ---- CONTAINER ---- */
.container { max-width: 1060px; margin: 0 auto; padding: 0 4rem; }

/* ---- SECTIONS ---- */
section { padding: 6rem 0; border-bottom: 1px solid var(--border); }

.section-label {
  display: block; font-size: 0.7rem; color: var(--accent);
  letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 2.5rem;
}

/* ---- ABOUT ---- */
.about-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.about-grid p { color: var(--muted); line-height: 1.85; font-size: 0.95rem; margin-bottom: 1rem; }

/* ---- PROJECTS ---- */
.projects-grid { display: flex; flex-direction: column; gap: 2.5rem; }
.project-card { background: none; padding: 0; border: none; }
.project-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; }
.project-card p { color: var(--muted); font-size: 0.875rem; line-height: 1.75; margin-bottom: 0.9rem; }
.project-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.9rem; }
.tag { font-size: 0.68rem; color: var(--accent); background: rgba(0,229,255,0.07); border: 1px solid rgba(0,229,255,0.15); padding: 0.2rem 0.55rem; letter-spacing: 0.06em; }
body.light .tag { background: rgba(0,153,187,0.08); border-color: rgba(0,153,187,0.2); }
.project-link { font-size: 0.75rem; color: var(--accent); letter-spacing: 0.06em; text-decoration: underline; text-underline-offset: 4px; }
.project-link:hover { opacity: 0.75; }

/* ---- SKILLS ---- */
.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; }
.skills-group h4 { font-size: 0.7rem; color: var(--accent); letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 1.2rem; }
.skills-group ul { display: flex; flex-direction: column; gap: 0.6rem; list-style: none; }
.skills-group li { font-size: 0.9rem; color: var(--muted); }

/* ---- CERTIFICATIONS ---- */
.cert-list { display: flex; flex-direction: column; gap: 1rem; }
.cert-list li { display: flex; justify-content: space-between; align-items: center; }
.cert-name { font-size: 0.92rem; font-weight: 500; }
a.cert-name:hover { color: var(--accent); }
.cert-status { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; }
.cert-status.issued { color: #22c55e; }
.cert-status.ongoing { color: var(--accent); }

/* ---- CONTACT ---- */
#contact h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 0.8rem; }
.contact-sub { color: var(--muted); font-size: 0.95rem; line-height: 1.75; margin-bottom: 2rem; }
.contact-links { display: flex; flex-direction: column; gap: 0.8rem; }
.contact-links a { font-size: 0.82rem; color: var(--accent); letter-spacing: 0.06em; text-decoration: underline; text-underline-offset: 4px; }
.contact-links a:hover { opacity: 0.75; }

/* ---- FOOTER ---- */
footer { padding: 2rem 0; }
footer p { font-size: 0.72rem; color: var(--muted); letter-spacing: 0.08em; }

/* ---- RESPONSIVE ---- */
@media (max-width: 860px) {
  #navbar, #hero { padding-left: 2rem; padding-right: 2rem; }
  .container { padding: 0 2rem; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .projects-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 560px) {
  .nav-hamburger { display: flex; }
  .nav-links {
    display: none; position: fixed; top: 61px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--border); z-index: 998;
  }
  .nav-links.open { display: flex; }
  .nav-links li a { display: block; padding: 1rem 2rem; border-bottom: 1px solid var(--border); font-size: 0.85rem; }
  .skills-grid { grid-template-columns: 1fr; }
  #hero { padding: 7rem 2rem 4rem; }}