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

:root {
  --bg: #0a0a0f;
  --bg-card: #12121a;
  --bg-card-hover: #1a1a26;
  --border: #1e1e2e;
  --border-accent: #2a2a3e;
  --text: #e2e2e8;
  --text-muted: #8888a0;
  --text-dim: #55556a;
  --accent: #6ee7b7;
  --accent-dim: rgba(110, 231, 183, 0.1);
  --accent-glow: rgba(110, 231, 183, 0.15);
  --font-display: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --nav-bg: rgba(10, 10, 15, 0.85);
}

[data-theme="light"] {
  --bg: #fafafa;
  --bg-card: #ffffff;
  --bg-card-hover: #f0f0f5;
  --border: #e0e0e8;
  --border-accent: #d0d0dc;
  --text: #1a1a2e;
  --text-muted: #5a5a72;
  --text-dim: #8888a0;
  --accent: #059669;
  --accent-dim: rgba(5, 150, 105, 0.08);
  --accent-glow: rgba(5, 150, 105, 0.12);
  --nav-bg: rgba(250, 250, 250, 0.85);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

/* Subtle grid background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(110, 231, 183, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(110, 231, 183, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

[data-theme="light"] body::before {
  background-image:
    linear-gradient(rgba(5, 150, 105, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(5, 150, 105, 0.04) 1px, transparent 1px);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: var(--text);
}

/* ── Nav ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.2rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

nav .logo {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.05em;
  text-decoration: none;
}

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

nav .nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  transition: color 0.3s;
}

nav .nav-links a:hover,
nav .nav-links a.active {
  color: var(--accent);
}

/* ── Theme toggle ── */
.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.35rem 0.55rem;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1;
  transition: border-color 0.3s, color 0.3s;
}

.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ── Layout ── */
.container {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 80px;
}

.hero-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 0.2s;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 0.4s;
}

.hero h1 .accent { color: var(--accent); }

.hero .subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 0.6s;
}

.hero .status {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 0.7s;
}

.hero .status a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 0.8s;
}

.hero-links a {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: all 0.3s;
}

.hero-links a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

.hero-links a.primary {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
  font-weight: 500;
}

.hero-links a.primary:hover {
  background: #5dd4a6;
  border-color: #5dd4a6;
}

[data-theme="light"] .hero-links a.primary:hover {
  background: #047857;
  border-color: #047857;
}

/* ── Section headers ── */
.section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  padding-top: 6rem;
}

.section-header .number {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
}

.section-header h2 {
  font-size: 1.6rem;
  font-weight: 600;
}

.section-header::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── About content ── */
.about-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.about-content p {
  color: var(--text-muted);
  font-size: 1rem;
}

.about-content p strong {
  color: var(--text);
  font-weight: 500;
}

/* ── Skills ── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.2rem 1.4rem;
  transition: all 0.3s;
}

.skill-card:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
}

.skill-card .skill-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.skill-card .skill-list {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Experience ── */
.experience-item {
  border-left: 1px solid var(--border);
  padding-left: 2rem;
  padding-bottom: 2.5rem;
  position: relative;
}

.experience-item::before {
  content: '';
  position: absolute;
  left: -4px;
  top: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.experience-item:last-child { padding-bottom: 0; }

.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.3rem;
}

.exp-company {
  font-weight: 600;
  font-size: 1.05rem;
}

.exp-dates {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}

.exp-title {
  font-size: 0.9rem;
  color: var(--accent);
  margin-bottom: 0.3rem;
}

.exp-location {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 0.8rem;
}

.exp-team {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 0.8rem;
  margin-bottom: 0.4rem;
}

.exp-bullets {
  list-style: none;
  padding: 0;
}

.exp-bullets li {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 0.25rem 0;
  padding-left: 1rem;
  position: relative;
}

.exp-bullets li::before {
  content: '\203A';
  position: absolute;
  left: 0;
  color: var(--text-dim);
}

/* ── Contact strip ── */
.contact-strip {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.contact-strip a {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: all 0.3s;
}

.contact-strip a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

/* ── Footer ── */
footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 3rem 2rem;
  border-top: 1px solid var(--border);
  margin-top: 4rem;
}

footer p {
  font-size: 0.8rem;
  color: var(--text-dim);
}

footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1rem;
}

footer .footer-links a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s;
}

footer .footer-links a:hover { color: var(--accent); }

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 640px) {
  nav { padding: 1rem; }
  nav .nav-links { gap: 1rem; }
  .container { padding: 0 1.2rem; }
  .exp-header { flex-direction: column; }
  .hero-links { flex-direction: column; }
  .hero-links a { text-align: center; }
}
