/* ============================================================
   PORTFOLIO — style.css
   Fonts: Cormorant Garamond (display) + DM Mono (body/code)
   Theme: Dark sophisticated
   ============================================================ */

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

:root {
  --bg:          #0c0c0d;
  --bg-alt:      #111113;
  --surface:     #18181b;
  --border:      #2a2a2e;
  --text:        #e8e6e0;
  --text-muted:  #7a7870;
  --text-faint:  #3a3835;
  --accent:      #c9a96e;
  --accent-dim:  #7a5c30;
  --white:       #f5f3ef;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-mono:    'DM Mono', 'Courier New', monospace;

  --section-pad: clamp(80px, 12vw, 140px);
  --container:   1100px;
  --radius:      4px;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:   cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.75;
  overflow-x: hidden;
  cursor: default;
}

::selection { background: var(--accent); color: var(--bg); }

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

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


/* ═══════════════════════════════════════
   NAV
═══════════════════════════════════════ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.4s var(--ease-in-out),
              border-color 0.4s var(--ease-in-out);
  border-bottom: 1px solid transparent;
}
#navbar.scrolled {
  background: rgba(12,12,13,0.92);
  backdrop-filter: blur(12px);
  border-color: var(--border);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 22px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--white);
}
.nav-logo .dot { color: var(--accent); }
.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
}
.nav-links a {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }
.nav-cta {
  border: 1px solid var(--accent) !important;
  color: var(--accent) !important;
  padding: 7px 18px;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s !important;
}
.nav-cta:hover { background: var(--accent) !important; color: var(--bg) !important; }

/* hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px; height: 1px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* mobile menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 16px 40px 28px;
  gap: 18px;
  background: rgba(12,12,13,0.98);
  border-top: 1px solid var(--border);
}
.mobile-menu a {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--white); }
.mobile-menu.open { display: flex; }


/* ═══════════════════════════════════════
   HERO
═══════════════════════════════════════ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 0 40px;
}

/* giant background text */
.hero-bg-text {
  position: absolute;
  right: -2vw;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: clamp(80px, 16vw, 220px);
  font-weight: 600;
  color: transparent;
  -webkit-text-stroke: 1px var(--text-faint);
  letter-spacing: 0.05em;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  opacity: 0.6;
}

.hero-content {
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
  padding-top: 80px;
}

.hero-eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
  opacity: 0;
  animation: fadeUp 0.8s 0.3s var(--ease-out-expo) forwards;
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(58px, 10vw, 130px);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.01em;
  color: var(--white);
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.9s 0.45s var(--ease-out-expo) forwards;
}
.hero-name em {
  font-style: italic;
  color: var(--accent);
}

.hero-title {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 52px;
  opacity: 0;
  animation: fadeUp 0.9s 0.6s var(--ease-out-expo) forwards;
}

.hero-actions {
  display: flex;
  gap: 20px;
  align-items: center;
  opacity: 0;
  animation: fadeUp 0.9s 0.75s var(--ease-out-expo) forwards;
}

.btn-primary {
  display: inline-block;
  padding: 14px 34px;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: background 0.25s, transform 0.2s;
}
.btn-primary:hover { background: #d4b47a; transform: translateY(-2px); }

.btn-ghost {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
}
.btn-ghost:hover { color: var(--white); }

.hero-scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
  opacity: 0;
  animation: fadeIn 1s 1.4s forwards;
}
.hero-scroll-hint::after {
  content: '';
  display: block;
  width: 1px;
  height: 40px;
  background: var(--accent-dim);
  margin: 8px auto 0;
  animation: scrollLine 2s 1.6s ease-in-out infinite;
}


/* ═══════════════════════════════════════
   SECTIONS — shared
═══════════════════════════════════════ */
.section {
  padding: var(--section-pad) 40px;
}
.section-alt { background: var(--bg-alt); }

.section > *,
.section-alt > * {
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
}
/* Override so direct children are constrained */
.section, .section-alt {
  --inner: var(--container);
}
/* Constrain direct block children */
.section > .section-label,
.section > .section-heading,
.section > .about-grid,
.section > .timeline,
.section > .skills-grid,
.section > .projects-grid,
.section > .edu-list,
.section-alt > .section-label,
.section-alt > .section-heading,
.section-alt > .about-grid,
.section-alt > .timeline,
.section-alt > .skills-grid,
.section-alt > .projects-grid,
.section-alt > .edu-list {
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
}

.section-label {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
  display: block;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 300;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 60px;
}
.section-heading em {
  font-style: italic;
  color: var(--accent);
}


/* ═══════════════════════════════════════
   ABOUT
═══════════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 80px;
  align-items: start;
}

.about-photo-wrap {
  position: sticky;
  top: 100px;
}

.about-photo-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  overflow: hidden;
}
/* When you replace with <img>, it inherits the same styling via: */
.about-photo-wrap img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: block;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 22px;
  font-size: 13px;
  line-height: 1.9;
}

.about-stats {
  display: flex;
  gap: 40px;
  margin-top: 44px;
  padding-top: 44px;
  border-top: 1px solid var(--border);
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-num {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
}
.stat-label {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}


/* ═══════════════════════════════════════
   TIMELINE (Experience)
═══════════════════════════════════════ */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-left: 1px solid var(--border);
  margin-left: 20px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  padding: 36px 0 36px 44px;
  position: relative;
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}
.timeline-item:last-child { border-bottom: none; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 44px;
  width: 9px; height: 9px;
  background: var(--bg-alt);
  border: 1px solid var(--accent);
  border-radius: 50%;
  transition: background 0.3s;
}
.timeline-item:hover::before { background: var(--accent); }

.timeline-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 3px;
}
.timeline-date {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.timeline-company {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.timeline-body h3 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.2;
}
.timeline-body p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 18px;
}


/* ═══════════════════════════════════════
   SKILLS
═══════════════════════════════════════ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2px;
}

.skill-card {
  background: var(--surface);
  padding: 38px 32px;
  border: 1px solid var(--border);
  transition: border-color 0.3s, transform 0.3s var(--ease-out-expo);
}
.skill-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.skill-icon {
  font-size: 24px;
  color: var(--accent);
  margin-bottom: 22px;
  display: block;
}
.skill-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 10px;
}
.skill-card p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}
.skill-card ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.skill-card li {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  padding-left: 14px;
  position: relative;
}
.skill-card li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent-dim);
}


/* ═══════════════════════════════════════
   EDUCATION
═══════════════════════════════════════ */
.edu-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.edu-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 40px;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}
.edu-item:first-child { border-top: 1px solid var(--border); }

.edu-year {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  padding-top: 4px;
}
.edu-details h3 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 6px;
  line-height: 1.2;
}
.edu-institution {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-bottom: 12px;
}
.edu-details p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.8;
}


/* ═══════════════════════════════════════
   TAGS
═══════════════════════════════════════ */
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--text-muted);
  background: var(--bg);
}


/* ═══════════════════════════════════════
   CONTACT
═══════════════════════════════════════ */
.section-contact {
  background: var(--bg);
  text-align: center;
}
.contact-inner {
  max-width: 600px;
  margin: 0 auto;
}
.contact-heading {
  text-align: center;
  margin-bottom: 20px;
}
.contact-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 44px;
  line-height: 1.8;
}
.contact-email {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(22px, 4vw, 42px);
  font-weight: 300;
  font-style: italic;
  color: var(--accent);
  border-bottom: 1px solid var(--accent-dim);
  padding-bottom: 4px;
  margin-bottom: 48px;
  transition: color 0.2s, border-color 0.2s;
}
.contact-email:hover { color: #d4b47a; border-color: #d4b47a; }

.social-links {
  display: flex;
  justify-content: center;
  gap: 36px;
}
.social-links a {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
}
.social-links a:hover { color: var(--white); }


/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 28px 40px;
  text-align: center;
}
footer p {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}


/* ═══════════════════════════════════════
   SCROLL REVEAL
═══════════════════════════════════════ */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out-expo),
              transform 0.7s var(--ease-out-expo);
}
[data-reveal].revealed {
  opacity: 1;
  transform: none;
}


/* ═══════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}


/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }

  #hero { padding: 0 24px; }
  .section, .section-alt { padding: var(--section-pad) 24px; }
  footer { padding: 24px; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .about-photo-wrap { position: static; max-width: 300px; }

  .timeline { margin-left: 0; border-left: none; }
  .timeline-item {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 28px 0;
    padding-left: 0;
    border-top: 1px solid var(--border);
    border-bottom: none;
  }
  .timeline-item::before { display: none; }

  .edu-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .about-stats {
    flex-direction: column;
    gap: 24px;
  }

  .nav-inner { padding: 18px 24px; }
  .mobile-menu { padding: 14px 24px 24px; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: flex-start; gap: 14px; }
  .skills-grid { grid-template-columns: 1fr; }
}
