:root {
  --bg: #0b0f19;
  --bg-alt: #111827;
  --surface: #161d2e;
  --text: #e5e9f0;
  --text-muted: #9aa4b8;
  --accent: #5b8cff;
  --accent-soft: rgba(91, 140, 255, 0.14);
  --border: #232c40;
  --shadow: 0 10px 30px -12px rgba(0,0,0,0.45);
  --radius: 14px;
  --max-width: 1080px;
}

[data-theme="light"] {
  --bg: #f7f8fc;
  --bg-alt: #ffffff;
  --surface: #ffffff;
  --text: #16192a;
  --text-muted: #5a6275;
  --accent: #3f6bff;
  --accent-soft: rgba(63, 107, 255, 0.1);
  --border: #e4e7f0;
  --shadow: 0 10px 30px -12px rgba(30, 40, 80, 0.15);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  transition: background 0.3s ease, color 0.3s ease;
  line-height: 1.6;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* NAVBAR */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.logo span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--accent); }

.theme-toggle {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  cursor: pointer;
  font-size: 1rem;
  margin-left: 16px;
  color: var(--text);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.hamburger span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* HERO */
.hero {
  padding: 120px 0 90px;
  background:
    radial-gradient(circle at 15% 20%, var(--accent-soft), transparent 45%),
    radial-gradient(circle at 85% 0%, var(--accent-soft), transparent 40%);
}

.hero-eyebrow {
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin: 0 0 8px;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  margin: 0 0 12px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hero-title {
  font-size: clamp(1.05rem, 2.4vw, 1.4rem);
  font-weight: 600;
  color: var(--text-muted);
  margin: 0 0 20px;
}

.hero-loc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0 0 20px;
}

.hero-desc {
  max-width: 640px;
  color: var(--text-muted);
  margin: 0 0 32px;
  font-size: 1.05rem;
}

.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  border: 1px solid transparent;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

/* SECTIONS */
.section { padding: 90px 0; }
.section-alt { background: var(--bg-alt); }

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin: 0 0 40px;
  letter-spacing: -0.02em;
}
.section-title span {
  color: var(--accent);
  margin-right: 6px;
  font-weight: 700;
}

/* ABOUT */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: start;
}
.about-text { color: var(--text-muted); font-size: 1.05rem; margin: 0; }

.about-traits {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.about-traits li {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 500;
  font-size: 0.95rem;
}

/* SKILLS */
.top-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.pill {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}
.pill-accent {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: transparent;
  font-weight: 600;
  font-size: 0.95rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.skill-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.skill-card h4 {
  margin: 0 0 16px;
  font-size: 1.05rem;
  font-weight: 700;
}
.pills { display: flex; flex-wrap: wrap; gap: 8px; }

/* TIMELINE */
.timeline {
  position: relative;
  padding-left: 32px;
  border-left: 2px solid var(--border);
}
.timeline-item {
  position: relative;
  padding-bottom: 36px;
}
.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -39px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.timeline-content h4 {
  margin: 0 0 4px;
  font-size: 1.15rem;
  font-weight: 700;
}
.timeline-company {
  display: inline-block;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 8px;
}
.timeline-content p {
  color: var(--text-muted);
  margin: 0;
  max-width: 600px;
}

.timeline-note {
  margin-top: 28px;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}

/* SERVICES */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  font-weight: 600;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}
.service-card h4 { margin: 0; font-size: 1rem; }

/* CERTIFICATIONS */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.cert-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}
.cert-icon { font-size: 1.8rem; }
.cert-card h4 { margin: 12px 0 6px; }
.cert-card p { margin: 0; color: var(--text-muted); font-size: 0.9rem; }

/* CONTACT */
.contact-inner { text-align: center; }
.contact-text {
  max-width: 560px;
  margin: 0 auto 32px;
  color: var(--text-muted);
  font-size: 1.05rem;
}
.contact-links { display: flex; justify-content: center; gap: 16px; }

/* FOOTER */
.footer {
  padding: 28px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
}

/* RESPONSIVE */
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-links {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 20px 24px;
    gap: 18px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
}
