/* ─── DESIGN TOKENS ──────────────────────────────────────── */
:root {
  --gold:        #C9A227;
  --gold-light:  #E2BE5A;
  --gold-dim:    #8B6F1A;
  --white:       #F8F4EE;
  --off-white:   #EDE5D8;
  --brown:       #3D2B1F;
  --brown-light: #5C3D2E;
  --black:       #0D0B09;
  --charcoal:    #1A1510;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', sans-serif;
  --font-mono:    'DM Mono', monospace;
}

/* ─── RESET & BASE ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--white);
  overflow-x: hidden;
  cursor: none;
}

/* ─── CUSTOM CURSOR ──────────────────────────────────────── */
.cursor {
  position: fixed; z-index: 9999; pointer-events: none;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--gold);
  transform: translate(-50%, -50%);
  transition: transform 0.08s, width 0.2s, height 0.2s, opacity 0.2s;
  mix-blend-mode: difference;
}
.cursor-ring {
  position: fixed; z-index: 9998; pointer-events: none;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  transform: translate(-50%, -50%);
  transition: transform 0.25s ease, width 0.3s, height 0.3s, opacity 0.3s;
  opacity: 0.6;
}
body:hover .cursor { opacity: 1; }

/* ─── SCROLLBAR ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--gold-dim); border-radius: 2px; }

/* ─── NAV ────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 4rem;
  background: rgba(13, 11, 9, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(201, 162, 39, 0.12);
  transition: padding 0.3s;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.04em;
  text-decoration: none;
}
.nav-links { display: flex; gap: 2.4rem; list-style: none; }
.nav-links a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--off-white);
  text-decoration: none;
  position: relative;
  padding-bottom: 3px;
  transition: color 0.2s;
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { width: 100%; }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: none; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--gold); transition: 0.3s; }

/* ─── HERO ───────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 0 4rem;
  gap: 4rem;
}

/* geometric background decoration */
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none;
}
.hero-bg::before {
  content: '';
  position: absolute;
  top: -20%; right: -10%;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,162,39,0.07) 0%, transparent 70%);
}
.hero-bg::after {
  content: '';
  position: absolute;
  bottom: -10%; left: -5%;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(61,43,31,0.4) 0%, transparent 70%);
}

/* fine grid lines */
.hero-grid {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(201,162,39,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,162,39,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-left { position: relative; z-index: 1; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.6rem;
}
.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 32px; height: 1px;
  background: var(--gold);
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(3.6rem, 7vw, 6.5rem);
  font-weight: 300;
  line-height: 1.0;
  letter-spacing: -0.01em;
  color: var(--white);
}
.hero-name strong {
  display: block;
  font-weight: 700;
  color: var(--gold);
}

.hero-divider {
  width: 60px; height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin: 2rem 0;
}

.hero-roles {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--off-white);
  letter-spacing: 0.06em;
  line-height: 1.9;
}
.hero-roles span {
  display: inline-block;
  color: var(--gold-light);
  font-weight: 500;
}

.hero-cta {
  display: flex; gap: 1.2rem; align-items: center;
  margin-top: 2.8rem;
  flex-wrap: wrap;
}
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.85rem 2rem;
  background: var(--gold);
  color: var(--black);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: none;
  transition: background 0.25s, transform 0.2s;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.85rem 2rem;
  border: 1px solid rgba(201,162,39,0.5);
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: none;
  transition: border-color 0.25s, background 0.25s, transform 0.2s;
}
.btn-outline:hover {
  border-color: var(--gold);
  background: rgba(201,162,39,0.08);
  transform: translateY(-2px);
}

/* right side — stat cards */
.hero-right {
  position: relative; z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.stat-card {
  border: 1px solid rgba(201,162,39,0.18);
  background: rgba(26,21,16,0.7);
  backdrop-filter: blur(6px);
  padding: 1.4rem 1.8rem;
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  transition: border-color 0.3s, transform 0.3s;
}
.stat-card:hover {
  border-color: rgba(201,162,39,0.55);
  transform: translateX(6px);
}
.stat-icon {
  width: 44px; height: 44px;
  border: 1px solid rgba(201,162,39,0.3);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--gold);
  font-size: 1.1rem;
}
.stat-text { flex: 1; }
.stat-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
}
.stat-label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--off-white);
  margin-top: 0.25rem;
  opacity: 0.7;
}

.hero-social {
  display: flex; gap: 1rem; margin-top: 0.4rem;
}
.social-link {
  width: 38px; height: 38px;
  border: 1px solid rgba(201,162,39,0.25);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-dim);
  text-decoration: none;
  font-size: 0.9rem;
  transition: border-color 0.25s, color 0.25s, background 0.25s;
}
.social-link:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201,162,39,0.1);
}
.social-link svg { width: 16px; height: 16px; fill: currentColor; }

/* ─── SECTION COMMON ─────────────────────────────────────── */
section { padding: 7rem 4rem; }

.section-label {
  display: inline-flex; align-items: center; gap: 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.8rem;
}
.section-label::before {
  content: '';
  display: inline-block; width: 24px; height: 1px;
  background: var(--gold);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 3.5rem;
}
.section-title em {
  font-style: italic;
  color: var(--gold);
}

/* ─── ABOUT ──────────────────────────────────────────────── */
#about {
  background: var(--charcoal);
  border-top: 1px solid rgba(201,162,39,0.1);
  border-bottom: 1px solid rgba(201,162,39,0.1);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: start;
}

.about-info-block { display: flex; flex-direction: column; gap: 1rem; }
.info-row {
  display: flex;
  gap: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(201,162,39,0.08);
}
.info-key {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dim);
  width: 110px;
  flex-shrink: 0;
  padding-top: 0.1rem;
}
.info-val {
  font-size: 0.88rem;
  color: var(--off-white);
  font-weight: 300;
}
.info-val a { color: var(--gold); text-decoration: none; }
.info-val a:hover { text-decoration: underline; }

.about-summary {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--off-white);
  margin-bottom: 2rem;
}
.about-summary strong { color: var(--gold); font-weight: 600; }

.about-body {
  font-size: 0.9rem;
  line-height: 1.85;
  color: rgba(232,224,214,0.7);
  font-weight: 300;
}

/* cert badge */
.cert-badge {
  display: inline-flex; align-items: center; gap: 0.75rem;
  margin-top: 2rem;
  padding: 0.9rem 1.4rem;
  border: 1px solid rgba(201,162,39,0.3);
  background: rgba(201,162,39,0.05);
}
.cert-badge svg { width: 22px; height: 22px; fill: var(--gold); flex-shrink: 0; }
.cert-text { font-size: 0.78rem; color: var(--off-white); line-height: 1.4; }
.cert-text strong { color: var(--gold); display: block; font-weight: 500; font-size: 0.82rem; }

/* ─── EXPERIENCE ─────────────────────────────────────────── */
#experience { background: var(--black); }

.timeline { position: relative; }
.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--gold), rgba(201,162,39,0.1));
}

.timeline-item {
  position: relative;
  padding-left: 3.5rem;
  padding-bottom: 4rem;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.timeline-item.visible { opacity: 1; transform: none; }
.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
  position: absolute; left: -6px; top: 6px;
  width: 13px; height: 13px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: var(--black);
}
.timeline-dot::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--gold);
  transform: scale(0);
  transition: transform 0.3s;
}
.timeline-item:hover .timeline-dot::after { transform: scale(1); }

.timeline-period {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--gold-dim);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.timeline-role {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 0.2rem;
}

.timeline-company {
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: 1.4rem;
}

.timeline-bullets { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.timeline-bullets li {
  display: flex; gap: 0.8rem;
  font-size: 0.88rem;
  line-height: 1.7;
  color: rgba(232,224,214,0.75);
  font-weight: 300;
}
.timeline-bullets li::before {
  content: '›';
  color: var(--gold);
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

.timeline-tag {
  display: inline-block;
  margin-top: 1.2rem;
  padding: 0.22rem 0.7rem;
  border: 1px solid rgba(201,162,39,0.25);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--gold-dim);
  text-transform: uppercase;
  margin-right: 0.5rem;
}

/* ─── SKILLS ─────────────────────────────────────────────── */
#skills {
  background: var(--brown);
  border-top: 1px solid rgba(201,162,39,0.15);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.skill-group {
  background: rgba(13,11,9,0.5);
  border: 1px solid rgba(201,162,39,0.15);
  padding: 2rem 1.8rem;
  transition: border-color 0.3s;
}
.skill-group:hover { border-color: rgba(201,162,39,0.45); }

.skill-group-title {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.4rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(201,162,39,0.2);
  display: flex; align-items: center; gap: 0.6rem;
}
.skill-group-title svg { width: 14px; height: 14px; fill: currentColor; opacity: 0.8; }

.skill-tags { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.skill-tag {
  padding: 0.35rem 0.85rem;
  border: 1px solid rgba(201,162,39,0.22);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 300;
  color: var(--off-white);
  background: rgba(201,162,39,0.04);
  transition: border-color 0.25s, background 0.25s, color 0.25s;
}
.skill-tag:hover {
  border-color: var(--gold);
  background: rgba(201,162,39,0.12);
  color: var(--gold-light);
}
.skill-tag.highlight {
  border-color: rgba(201,162,39,0.45);
  background: rgba(201,162,39,0.1);
  color: var(--gold-light);
}

/* ─── EDUCATION ──────────────────────────────────────────── */
#education { background: var(--charcoal); }

.edu-card {
  border: 1px solid rgba(201,162,39,0.2);
  background: rgba(26,21,16,0.5);
  padding: 2.4rem 2.8rem;
  max-width: 680px;
  display: flex;
  gap: 2.2rem;
  align-items: flex-start;
  transition: border-color 0.3s;
}
.edu-card:hover { border-color: rgba(201,162,39,0.5); }

.edu-icon {
  width: 56px; height: 56px;
  border: 1px solid rgba(201,162,39,0.35);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--gold);
}
.edu-icon svg { width: 24px; height: 24px; fill: currentColor; }

.edu-degree {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.3rem;
}
.edu-school { color: var(--gold); font-size: 0.85rem; margin-bottom: 0.2rem; }
.edu-period {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: rgba(232,224,214,0.5);
  letter-spacing: 0.12em;
}

/* ─── CONTACT ────────────────────────────────────────────── */
#contact {
  background: var(--black);
  border-top: 1px solid rgba(201,162,39,0.1);
  text-align: center;
  padding: 8rem 4rem;
}

.contact-headline {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1rem;
}
.contact-headline em { color: var(--gold); font-style: italic; }

.contact-sub {
  font-size: 0.9rem;
  color: rgba(232,224,214,0.55);
  font-weight: 300;
  max-width: 500px;
  margin: 0 auto 3rem;
  line-height: 1.7;
}

.contact-links {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
}
.contact-link {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.7rem 1.6rem;
  border: 1px solid rgba(201,162,39,0.25);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--off-white);
  text-decoration: none;
  transition: all 0.25s;
}
.contact-link:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201,162,39,0.07);
}
.contact-link svg { width: 15px; height: 15px; fill: currentColor; }

/* ─── FOOTER ─────────────────────────────────────────────── */
footer {
  padding: 2rem 4rem;
  background: var(--black);
  border-top: 1px solid rgba(201,162,39,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  color: rgba(232,224,214,0.3);
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
}
footer span { color: var(--gold-dim); }

/* ─── SCROLL REVEAL ──────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ─── PROGRESS BAR ───────────────────────────────────────── */
.progress-bar {
  position: fixed; top: 0; left: 0; z-index: 200;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold));
  width: 0%;
  transition: width 0.1s linear;
}

/* ─── MOBILE NAV ─────────────────────────────────────────── */
.mobile-menu {
  display: none;
  position: fixed; inset: 0; z-index: 99;
  background: rgba(13,11,9,0.97);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 300;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--gold); }

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 900px) {
  nav { padding: 1rem 2rem; }
  .nav-links { display: none; }
  .hamburger { display: flex; }

  #hero { grid-template-columns: 1fr; padding: 8rem 2rem 4rem; min-height: auto; gap: 3rem; }
  .hero-right { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

  section { padding: 5rem 2rem; }
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .skills-grid { grid-template-columns: 1fr; }
  #contact { padding: 5rem 2rem; }
  footer { flex-direction: column; gap: 0.5rem; text-align: center; padding: 1.5rem 2rem; }
}

@media (max-width: 600px) {
  .hero-right { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; align-items: flex-start; }
  .stat-card { padding: 1rem 1.2rem; }
}

/* ─── ANIMATIONS ─────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: none; }
}
@keyframes lineGrow {
  from { width: 0; }
  to   { width: 60px; }
}

.hero-left > * {
  animation: fadeUp 0.8s ease backwards;
}
.hero-left > *:nth-child(1) { animation-delay: 0.1s; }
.hero-left > *:nth-child(2) { animation-delay: 0.25s; }
.hero-left > *:nth-child(3) { animation-delay: 0.4s; }
.hero-left > *:nth-child(4) { animation-delay: 0.5s; }
.hero-left > *:nth-child(5) { animation-delay: 0.62s; }

.hero-right .stat-card:nth-child(1) { animation: fadeUp 0.8s 0.3s ease backwards; }
.hero-right .stat-card:nth-child(2) { animation: fadeUp 0.8s 0.45s ease backwards; }
.hero-right .stat-card:nth-child(3) { animation: fadeUp 0.8s 0.6s ease backwards; }
.hero-right .hero-social { animation: fadeUp 0.8s 0.75s ease backwards; }
