/* ==========================================================
   Personal Website — styles.css
   Dark editorial aesthetic · Cormorant + DM Sans
   ========================================================== */

/* ── Google Fonts are loaded via <link> in index.html ────── */

/* ── Design Tokens ────────────────────────────────────────── */
:root {
  --bg:            #FAFAFA;
  --surface:       #F2F4F8;
  --card:          #E8ECF4;
  --border:        #D1D9E6;
  --border-light:  #C4CDE0;

  --text-primary:  #0D1629;
  --text-secondary:#4A5568;
  --text-muted:    #8896AA;

  --accent:        #1B3A70;       /* deep navy */
  --accent-glow:   rgba(27,58,112,.15);
  --accent-dim:    rgba(27,58,112,.10);
  --accent-warm:   #C2852A;       /* gold */

  --font-display:  'Cormorant', Georgia, serif;
  --font-body:     'DM Sans', system-ui, -apple-system, sans-serif;

  --nav-h:         68px;
  --max-w:         1160px;
  --pad-x:         clamp(24px, 5.5vw, 88px);
  --section-y:     clamp(80px, 11vw, 136px);
  --ease:          cubic-bezier(.4, 0, .2, 1);
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img   { max-width: 100%; display: block; }
a     { text-decoration: none; color: inherit; }
ul    { list-style: none; }
button{ cursor: pointer; border: none; background: none; font: inherit; }

/* ── Global typography ────────────────────────────────────── */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.1;
}
em { font-style: italic; }

/* ── Layout helpers ───────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
.section { padding: var(--section-y) 0; }

/* ── Section labels ───────────────────────────────────────── */
.section-label {
  font-family: var(--font-body);
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(2rem, 3.8vw, 3.25rem);
  font-weight: 300;
  color: var(--text-primary);
  margin-bottom: 28px;
  line-height: 1.12;
}
.section-title em { color: var(--accent-warm); }
.section-header { margin-bottom: clamp(40px, 6vw, 68px); }

/* ── Buttons ──────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  background: var(--accent);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: background .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn-primary:hover {
  background: #142D58;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-glow);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: .8125rem;
  font-weight: 400;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: border-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* ==========================================================
   NAVIGATION
   ========================================================== */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  height: var(--nav-h);
  transition: background .35s var(--ease), border-color .35s var(--ease);
}
.nav.scrolled {
  background: rgba(250,250,250,.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: .04em;
  transition: color .2s;
}
.nav-logo:hover { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-size: .75rem;
  font-weight: 400;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color .2s;
}
.nav-links a:hover        { color: var(--text-primary); }
.nav-links .nav-cta {
  padding: 9px 22px;
  border: 1px solid var(--accent);
  color: var(--accent);
  transition: background .2s, color .2s;
}
.nav-links .nav-cta:hover { background: var(--accent); color: #ffffff; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-primary);
  transition: transform .3s var(--ease), opacity .3s;
  transform-origin: center;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  inset-inline: 0;
  background: rgba(250,250,250,.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 190;
  padding: 36px var(--pad-x) 48px;
  border-bottom: 1px solid var(--border);
  transform: translateY(-4px);
  opacity: 0;
  pointer-events: none;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu ul  { display: flex; flex-direction: column; gap: 22px; }
.mobile-menu a   {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 300;
  color: var(--text-secondary);
  transition: color .2s;
}
.mobile-menu a:hover { color: var(--text-primary); }

/* ==========================================================
   HERO
   ========================================================== */
.hero {
  position: relative;
  height: 100svh;
  min-height: 680px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Canvas background */
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .45;
}

/* Subtle vignette */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 80% at 80% 50%, transparent 40%, rgba(242,244,248,.5) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--nav-h) var(--pad-x) 0;
}

/* Reveal animations (JS adds .visible) */
.hero-eyebrow,
.hero-name,
.hero-tagline,
.hero-actions {
  opacity: 0;
  transform: translateY(22px);
}
.reveal.visible {
  animation: fadeUp .75s var(--ease) forwards;
}
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}
.hero-eyebrow.visible { animation-delay: .08s; }
.hero-name.visible    { animation-delay: .22s; }
.hero-tagline.visible { animation-delay: .40s; }
.hero-actions.visible { animation-delay: .56s; }

.hero-eyebrow {
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.hero-name {
  font-size: clamp(2.75rem, 6.5vw, 7rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -.01em;
  margin-bottom: 28px;
  white-space: nowrap;
}
.hero-name em {
  color: var(--accent-warm);
  font-style: italic;
}
.hero-tagline {
  font-size: clamp(.9375rem, 1.6vw, 1.1875rem);
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 480px;
  margin-bottom: 44px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 36px;
  left: var(--pad-x);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
}
.hero-scroll-hint span {
  font-size: .625rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-muted);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
.scroll-line {
  width: 1px;
  height: 52px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2.2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: .35; transform: scaleY(1); transform-origin: top; }
  50%       { opacity: .9;  transform: scaleY(.65); }
}

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

.about-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: clamp(40px, 7vw, 96px);
  align-items: start;
}

/* Photo */
.about-visual { display: flex; flex-direction: column; gap: 36px; }
.photo-frame {
  position: relative;
  aspect-ratio: 3 / 4;
  width: 100%;
  margin-left: 20px;
}
.photo-frame::before {
  content: '';
  position: absolute;
  left: -18px;
  top: 0;
  bottom: 0;
  width: 5px;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(27, 58, 112, 0.3);
  z-index: 2;
}
.photo-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Stats */
.about-stats { display: flex; gap: 36px; }
.stat        { display: flex; flex-direction: column; gap: 4px; }
.stat-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 300;
  color: var(--accent);
  line-height: 1;
}
.stat-label {
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Text */
.about-text p {
  font-size: .9375rem;
  color: var(--text-secondary);
  line-height: 1.78;
  margin-bottom: 18px;
}
.about-text .btn-primary { margin-top: 12px; }

/* ==========================================================
   EXPERTISE
   ========================================================== */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.expertise-card {
  background: var(--bg);
  padding: 40px 34px;
  transition: background .25s var(--ease);
}
.expertise-card:hover { background: var(--card); }

.card-icon {
  width: 38px;
  height: 38px;
  color: var(--accent);
  margin-bottom: 22px;
}
.expertise-card h3 {
  font-size: 1.4375rem;
  font-weight: 400;
  margin-bottom: 14px;
  color: var(--text-primary);
}
.expertise-card p {
  font-size: .9rem;
  color: var(--text-secondary);
  line-height: 1.72;
  margin-bottom: 22px;
}
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.card-tags li {
  font-size: .625rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 4px 9px;
  border: 1px solid var(--accent-dim);
  background: var(--accent-dim);
}

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

.experience-list { display: flex; flex-direction: column; }
.experience-item {
  display: grid;
  grid-template-columns: 172px 1fr;
  gap: 52px;
  padding: 48px 0;
  border-top: 1px solid var(--border);
}
.experience-item:last-child { border-bottom: 1px solid var(--border); }

.exp-meta {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 6px;
}
.exp-date {
  font-size: .75rem;
  font-weight: 400;
  letter-spacing: .06em;
  color: var(--text-muted);
  white-space: nowrap;
}
.exp-marker {
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  opacity: .55;
}

.exp-header {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.exp-content h3 {
  font-size: 1.625rem;
  font-weight: 300;
  color: var(--text-primary);
}
.exp-company {
  font-size: .8125rem;
  font-weight: 400;
  letter-spacing: .05em;
  color: var(--accent);
}
.exp-content p {
  font-size: .9rem;
  color: var(--text-secondary);
  line-height: 1.78;
  margin-bottom: 18px;
}
.exp-highlights { display: flex; flex-direction: column; gap: 8px; }
.exp-highlights li {
  font-size: .875rem;
  color: var(--text-secondary);
  padding-left: 22px;
  position: relative;
}
.exp-highlights li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: .7rem;
  top: 2px;
}

.education-item .exp-date {
  color: var(--accent);
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .6875rem;
}

/* ==========================================================
   CONTACT
   ========================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(40px, 7vw, 96px);
  align-items: start;
}
.contact-intro p {
  font-size: .9375rem;
  color: var(--text-secondary);
  line-height: 1.78;
  margin-bottom: 36px;
  max-width: 360px;
}
.contact-links { display: flex; flex-direction: column; gap: 14px; }
.contact-link {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: .9rem;
  color: var(--text-secondary);
  transition: color .2s;
}
.contact-link svg { width: 17px; height: 17px; flex-shrink: 0; }
.contact-link:hover { color: var(--accent); }

/* Form */
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group label {
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.form-group input,
.form-group textarea {
  background: var(--card);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 300;
  padding: 13px 16px;
  outline: none;
  resize: vertical;
  transition: border-color .2s;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }
.form-group input:focus,
.form-group textarea:focus { border-color: var(--accent); }
.form-note {
  font-size: .75rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-top: -4px;
}
.form-note a { color: var(--accent); }
.form-note a:hover { text-decoration: underline; }

/* ==========================================================
   FOOTER
   ========================================================== */
.footer { padding: 36px 0; border-top: 1px solid var(--border); }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
}
.footer-copy {
  font-size: .75rem;
  color: var(--text-muted);
}
.footer-links { display: flex; gap: 22px; }
.footer-links a {
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color .2s;
}
.footer-links a:hover { color: var(--accent); }

/* ==========================================================
   SCROLL-REVEAL UTILITY (used by JS)
   ========================================================== */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s var(--ease), transform .65s var(--ease);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */

/* Tablet -------------------------------------------------- */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { flex-direction: row; align-items: flex-start; max-width: 100%; }
  .photo-frame { max-width: 240px; flex-shrink: 0; }
  .expertise-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}

/* Mobile -------------------------------------------------- */
@media (max-width: 768px) {
  .nav-links  { display: none; }
  .nav-toggle { display: flex; }
  .mobile-menu { display: block; }

  .expertise-grid { grid-template-columns: 1fr; }

  .experience-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .exp-meta {
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }
  .exp-marker {
    width: 24px;
    height: 1px;
    background: var(--accent);
    opacity: .55;
  }

  .form-row { grid-template-columns: 1fr; }

  .hero-name { font-size: clamp(1.75rem, 8.5vw, 3.25rem); white-space: normal; }

  .about-visual { flex-direction: column; }
  .photo-frame { max-width: 100%; }
}

/* Small mobile -------------------------------------------- */
@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
  .about-stats { gap: 24px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 8px; }
}
