/* ============================================================
   CSS Custom Properties
   ============================================================ */
:root {
  --bg: #FAFAF9;
  --text-primary: #111827;
  --text-secondary: #6B7280;
  --accent: #2563EB;
  --accent-hover: #1D4ED8;
  --divider: #E5E7EB;
  --card-bg: #FFFFFF;
  --nav-height: 64px;
  --max-width: 780px;
  --radius: 10px;
  --shadow-card: 0 1px 3px rgba(0,0,0,.06), 0 4px 12px rgba(0,0,0,.05);
  --shadow-nav: 0 1px 0 var(--divider), 0 4px 20px rgba(0,0,0,.06);
  --transition: 220ms ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  [data-aos] { opacity: 1 !important; transform: none !important; }
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
strong { font-weight: 600; }

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

section {
  padding: 80px 0;
}

section + section {
  border-top: 1px solid var(--divider);
}

/* ============================================================
   Navigation
   ============================================================ */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(250, 250, 249, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: box-shadow var(--transition);
}

#nav.scrolled {
  box-shadow: var(--shadow-nav);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  color: var(--text-primary);
  white-space: nowrap;
}

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

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

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

.nav-linkedin {
  display: flex;
  align-items: center;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.nav-linkedin:hover {
  color: #0A66C2;
}

/* ============================================================
   Hero
   ============================================================ */
#hero {
  padding-top: calc(var(--nav-height) + 80px);
  padding-bottom: 100px;
  min-height: 100svh;
  display: flex;
  align-items: center;
  border-top: none;
}

#hero .container {
  width: 100%;
}

.hero-eyebrow {
  font-size: 1rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 16px;
  opacity: 0;
  animation: fadeSlideUp .6s ease .1s forwards;
}

.hero-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: clamp(3rem, 8vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeSlideUp .7s ease .2s forwards;
}

/* Animated role subtitle */
.hero-role {
  height: 2rem;
  overflow: hidden;
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeSlideUp .7s ease .35s forwards;
}

.role-cycle {
  display: flex;
  flex-direction: column;
  animation: roleCycle 9s ease-in-out infinite;
}

.role-item {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-secondary);
  height: 2rem;
  line-height: 2rem;
  flex-shrink: 0;
}

@keyframes roleCycle {
  0%, 28%   { transform: translateY(0); }
  33%, 61%  { transform: translateY(-2rem); }
  66%, 94%  { transform: translateY(-4rem); }
  99%, 100% { transform: translateY(0); }
}

.hero-summary {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 620px;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeSlideUp .7s ease .5s forwards;
}

.hero-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 60px;
  opacity: 0;
  animation: fadeSlideUp .7s ease .65s forwards;
}

.contact-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--card-bg);
  border: 1px solid var(--divider);
  border-radius: 100px;
  padding: 8px 16px;
  transition: color var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.contact-chip:hover {
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}

.scroll-cue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--divider);
  color: var(--text-secondary);
  opacity: 0;
  animation: fadeSlideUp .7s ease .8s forwards, bobUp 2.4s ease-in-out 1.5s infinite;
  transition: color var(--transition), border-color var(--transition);
}

.scroll-cue:hover {
  color: var(--accent);
  border-color: var(--accent);
}

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

/* ============================================================
   Section Label
   ============================================================ */
.section-label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 40px;
}

/* ============================================================
   Experience / Timeline
   ============================================================ */
.timeline {
  position: relative;
  padding-left: 28px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--divider));
  border-radius: 2px;
}

.exp-card {
  position: relative;
  margin-bottom: 36px;
}

.exp-card:last-child {
  margin-bottom: 0;
}

.exp-marker {
  position: absolute;
  left: -28px;
  top: 14px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 2.5px solid var(--accent);
  box-shadow: 0 0 0 3px var(--bg);
  z-index: 1;
}

.exp-content {
  background: var(--card-bg);
  border: 1px solid var(--divider);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 24px 28px;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition), transform var(--transition);
}

.exp-card:hover .exp-content {
  box-shadow: 0 4px 20px rgba(0,0,0,.1);
  transform: translateY(-2px);
}

.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.exp-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

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

.exp-date {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: #F3F4F6;
  border-radius: 6px;
  padding: 4px 10px;
  white-space: nowrap;
  flex-shrink: 0;
  align-self: flex-start;
}

.exp-bullets {
  padding-left: 18px;
  list-style: disc;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.exp-bullets li {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================================
   Education
   ============================================================ */
.edu-card {
  background: var(--card-bg);
  border: 1px solid var(--divider);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 24px 28px;
  box-shadow: var(--shadow-card);
}

.edu-degree {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.edu-school {
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

/* ============================================================
   Skills
   ============================================================ */
.skill-group {
  margin-bottom: 36px;
}

.skill-group:last-child {
  margin-bottom: 0;
}

.skill-group-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent);
  background: rgba(37, 99, 235, 0.07);
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 100px;
  padding: 7px 16px;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  cursor: default;
  user-select: none;
}

.pill:hover {
  background: rgba(37, 99, 235, 0.13);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15);
}

/* ============================================================
   Contact Section
   ============================================================ */
#contact {
  padding-bottom: 100px;
}

.contact-intro {
  font-size: 1.375rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 32px;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 13px 24px;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.contact-btn:hover {
  transform: translateY(-2px);
}

/* Primary button */
.contact-btn:not(.contact-btn--outline) {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.contact-btn:not(.contact-btn--outline):hover {
  background: var(--accent-hover);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4);
}

/* Outline button */
.contact-btn--outline {
  color: var(--text-primary);
  border: 1.5px solid var(--divider);
  background: var(--card-bg);
}

.contact-btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* ============================================================
   Footer
   ============================================================ */
footer {
  border-top: 1px solid var(--divider);
  padding: 32px 0;
}

footer p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.footer-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text-secondary);
  font-weight: 500;
  transition: color var(--transition);
}

.footer-linkedin:hover {
  color: #0A66C2;
}

/* ============================================================
   Hero keyframes
   ============================================================ */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 600px) {
  #hero {
    padding-top: calc(var(--nav-height) + 48px);
    padding-bottom: 64px;
    min-height: unset;
  }

  .nav-links {
    gap: 20px;
  }

  section {
    padding: 60px 0;
  }

  .exp-header {
    flex-direction: column;
  }

  .exp-date {
    align-self: auto;
  }

  .contact-links {
    flex-direction: column;
  }

  .contact-btn {
    justify-content: center;
  }

  .timeline {
    padding-left: 20px;
  }

  .timeline::before {
    left: 5px;
  }

  .exp-marker {
    left: -20px;
    top: 16px;
    width: 12px;
    height: 12px;
  }
}

@media (max-width: 400px) {
  .nav-name {
    font-size: 0.875rem;
  }
  .nav-links a {
    font-size: 0.8125rem;
  }
  .nav-links {
    gap: 14px;
  }
}
