/* =====================================================
   DESIGN TOKENS
   ===================================================== */
:root {
  --bg:          #0d1117;
  --surface:     #161b22;
  --surface-2:   #1e2530;
  --accent:      #BD93F9;
  --accent-dim:  rgba(189, 147, 249, 0.15);
  --text:        #e6edf3;
  --muted:       #8b949e;
  --border:      #30363d;
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   16px;
  --max-w:       900px;
  --nav-h:       64px;
  --transition:  0.2s ease;
}

/* =====================================================
   RESET & BASE
   ===================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: opacity var(--transition); }
a:hover { opacity: 0.8; }

img { display: block; max-width: 100%; }

/* =====================================================
   LAYOUT HELPERS
   ===================================================== */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 96px 0; }

/* =====================================================
   NAVIGATION
   ===================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(13, 17, 23, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  letter-spacing: 0.02em;
}

.nav-logo span { color: var(--accent); }

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

.nav-links a {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: color var(--transition);
}

.nav-links a:hover { color: var(--accent); opacity: 1; }

/* Hamburger (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* =====================================================
   HERO
   ===================================================== */
#hero {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  padding: 80px 0;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 64px;
}

.hero-photo {
  flex-shrink: 0;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--accent);
  box-shadow: 0 0 32px rgba(189, 147, 249, 0.2);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-photo-placeholder {
  width: 100%;
  height: 100%;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--muted);
  user-select: none;
}

.hero-text { flex: 1; }

.hero-greeting {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.hero-name {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.hero-title {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 400;
  color: var(--muted);
  margin-bottom: 20px;
}

.hero-tagline {
  font-size: 1rem;
  color: var(--muted);
  max-width: 480px;
  margin-bottom: 36px;
  line-height: 1.8;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: #0d1117;
}

.btn-primary:hover {
  opacity: 1;
  background: #cba8fb;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(189, 147, 249, 0.3);
}

.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* =====================================================
   SECTION HEADINGS
   ===================================================== */
.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-divider {
  width: 48px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin-bottom: 48px;
}

/* =====================================================
   ABOUT
   ===================================================== */
#about { background: var(--surface); }

.about-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.about-text p {
  color: var(--muted);
  margin-bottom: 16px;
  font-size: 1rem;
  line-height: 1.85;
}

.about-text p:last-child { margin-bottom: 0; }

.about-facts {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.fact-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 20px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.fact-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.fact-value {
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 500;
}

/* =====================================================
   SKILLS
   ===================================================== */
.skills-groups { display: flex; flex-direction: column; gap: 36px; }

.skill-group-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.skills-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  padding: 6px 16px;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(189, 147, 249, 0.3);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: all var(--transition);
}

.pill:hover {
  background: rgba(189, 147, 249, 0.25);
  border-color: var(--accent);
}

/* =====================================================
   EXPERIENCE
   ===================================================== */
#experience { background: var(--surface); }

.timeline {
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  margin-bottom: 52px;
}

.timeline-item:last-child { margin-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -40px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--border);
  transition: border-color var(--transition);
}

.timeline-item.current .timeline-dot {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 10px rgba(189, 147, 249, 0.4);
}

.timeline-item.minor .timeline-dot {
  width: 10px;
  height: 10px;
  left: -37px;
  top: 8px;
}

.timeline-meta {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 6px;
}

.timeline-role {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.timeline-company {
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 500;
}

.timeline-period {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 12px;
}

.timeline-body {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.8;
}

.timeline-body ul {
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.timeline-body li::marker { color: var(--accent); }

.timeline-item.minor .timeline-body,
.timeline-item.minor .timeline-meta { opacity: 0.7; }

.cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 48px;
  padding: 10px 20px;
  background: var(--accent-dim);
  border: 1px solid rgba(189, 147, 249, 0.3);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 500;
}

.cert-badge svg { width: 16px; height: 16px; flex-shrink: 0; }

/* =====================================================
   CONTACT
   ===================================================== */
#contact {
  text-align: center;
}

.contact-sub {
  color: var(--muted);
  font-size: 1rem;
  max-width: 480px;
  margin: 0 auto 36px;
  line-height: 1.8;
}

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

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 700px) {
  .hero-inner { flex-direction: column; text-align: center; gap: 32px; }
  .hero-tagline { margin: 0 auto 32px; }

  .about-body { grid-template-columns: 1fr; }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open { display: flex; }

  .nav-links a {
    display: block;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
  }

  .nav-toggle { display: flex; }

  section { padding: 64px 0; }

  .timeline { padding-left: 24px; }
  .timeline-dot { left: -32px; }
  .timeline-item.minor .timeline-dot { left: -29px; }
}
