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

:root {
  --bg: #0f0f13;
  --bg-card: #18181f;
  --bg-card-hover: #1f1f29;
  --accent: #6c8eff;
  --accent-dim: #3d5aff22;
  --text: #e8e8f0;
  --text-muted: #8888aa;
  --border: #2a2a3a;
  --meta-blue: #1877f2;
  --google-blue: #4285f4;
  --amazon-orange: #ff9900;
  --radius: 14px;
  --nav-h: 64px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

a { color: inherit; text-decoration: none; }

/* ─── Nav ───────────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  transition: background 0.3s, backdrop-filter 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}

#navbar.scrolled {
  background: rgba(15, 15, 19, 0.85);
  backdrop-filter: blur(14px);
  border-color: var(--border);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  height: 100%;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--accent);
  padding: 0.25rem 0.6rem;
  border-radius: 8px;
}

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

.nav-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

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

/* ─── Hero ──────────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
  position: relative;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, #6c8eff18 0%, transparent 70%),
    var(--bg);
}

.hero-eyebrow {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

#hero h1 {
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}

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

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  padding: 0.75rem 1.75rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: opacity 0.2s, transform 0.2s;
}

.btn-primary:hover { opacity: 0.85; transform: translateY(-1px); }

.btn-secondary {
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.75rem 1.75rem;
  border-radius: 999px;
  font-size: 0.95rem;
  transition: border-color 0.2s, color 0.2s;
}

.btn-secondary:hover { border-color: var(--accent); color: var(--text); }

.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  font-size: 1.4rem;
  color: var(--text-muted);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ─── Sections ──────────────────────────────────────────────── */
section:not(#hero) {
  padding: 5rem 2rem;
}

#education { background: #0c0c10; }

.container {
  max-width: 860px;
  margin: 0 auto;
}

.section-title {
  font-size: 1.9rem;
  font-weight: 700;
  margin-bottom: 3rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  display: block;
  margin-top: 0.4rem;
  height: 3px;
  width: 2.5rem;
  background: var(--accent);
  border-radius: 2px;
}

/* ─── Jobs ──────────────────────────────────────────────────── */
.job {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 1.5rem;
  transition: background 0.2s, border-color 0.2s;
}

.job:hover {
  background: var(--bg-card-hover);
  border-color: #3a3a50;
}

.job-header {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.company-logo {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 800;
  flex-shrink: 0;
}

.company-logo.meta { background: #1877f210; color: var(--meta-blue); border: 1px solid #1877f230; }
.company-logo.google { background: #4285f410; color: var(--google-blue); border: 1px solid #4285f430; }
.company-logo.amazon { background: #ff990010; color: var(--amazon-orange); border: 1px solid #ff990030; }

.job-meta h3 {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.2;
}

.job-role {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 0.15rem;
}

.job-date {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
}

.job-team {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.78rem;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid #6c8eff33;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
}

.job-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.job-bullets li {
  padding-left: 1.2rem;
  position: relative;
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.job-bullets li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ─── Education ─────────────────────────────────────────────── */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1rem;
}

.edu-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: background 0.2s, border-color 0.2s;
}

.edu-card:hover {
  background: var(--bg-card-hover);
  border-color: #3a3a50;
}

.edu-icon {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.edu-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.edu-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.edu-year {
  display: inline-block;
  margin-top: 0.4rem;
  font-size: 0.75rem;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
}

/* ─── Contact ───────────────────────────────────────────────── */
#contact {
  background: radial-gradient(ellipse 70% 50% at 50% 100%, #6c8eff12 0%, transparent 70%), var(--bg);
}

.contact-inner { text-align: center; }

.contact-sub {
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
}

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

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-size: 0.9rem;
  transition: border-color 0.2s, background 0.2s;
}

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

.contact-icon {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
}

/* ─── Footer ────────────────────────────────────────────────── */
footer {
  text-align: center;
  padding: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 600px) {
  .nav-links { gap: 1.2rem; }
  .job { padding: 1.4rem; }
  .edu-grid { grid-template-columns: 1fr; }
  .job-header { flex-direction: row; }
}
