/* ============================================
   CUSTOM PROPERTIES
============================================ */
:root {
  --bg:           #0f0d0a;
  --surface:      #141418;
  --surface-2:    #1c1c22;
  --border:       #27272a;
  --text:         #f4f4f5;
  --text-muted:   #71717a;
  --text-soft:    #a1a1aa;
  --accent:       #f59e0b;
  --accent-light: rgba(245,158,11,0.12);
  --accent-glow:  rgba(245,158,11,0.20);
  --font-sans:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:    'Fira Code', 'Courier New', monospace;
  --radius:       12px;
  --ease:         0.25s ease;
  --max-w:        1100px;
  --section-pad:  100px;
}

/* ============================================
   RESET
============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-sans); background: var(--bg); color: var(--text); line-height: 1.6; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ============================================
   ANIMATIONS
============================================ */
@keyframes hero-in {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }

/* Hero entrance */
.hero-animate { opacity: 0; animation: hero-in 0.65s ease forwards; }

/* ============================================
   NAV
============================================ */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background var(--ease), border-bottom var(--ease), backdrop-filter var(--ease);
}
#nav.scrolled {
  background: rgba(12,12,14,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 20px 24px;
  display: flex; align-items: center; justify-content: center;
}
.nav-links { display: flex; gap: 36px; }
.nav-links a {
  font-size: 0.875rem; font-weight: 500; color: var(--text-muted);
  transition: color var(--ease); position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 0; height: 1px; background: var(--accent);
  transition: width var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

/* Back to top */
#back-to-top {
  position: fixed; bottom: 32px; right: 32px; z-index: 200;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text-muted); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity var(--ease), color var(--ease), border-color var(--ease), transform var(--ease);
}
#back-to-top.visible { opacity: 1; pointer-events: auto; }
#back-to-top:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-3px); }
#back-to-top svg { width: 18px; height: 18px; }

/* ============================================
   HERO
============================================ */
#hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  overflow: hidden; padding-top: 80px;
}
/* Vertex canvas */
#bg-canvas { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.hero-content {
  position: relative; z-index: 1;
  max-width: 640px; margin: 0 auto; padding: 0 24px;
  width: 100%;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 0;
}

.hero-name {
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 600; letter-spacing: -0.03em; line-height: 1.1;
  margin-bottom: 12px;
  color: var(--text);
}
.hero-title {
  font-size: 0.95rem; font-weight: 400;
  color: var(--accent); margin-bottom: 20px;
  font-family: var(--font-mono); letter-spacing: 0.05em;
}
.hero-years {
  color: var(--accent); font-weight: 600;
}
.hero-tagline {
  font-size: 1rem; color: var(--text-muted);
  line-height: 1.8; margin-bottom: 36px;
}
.hero-ctas { display: flex; gap: 12px; margin-bottom: 32px; flex-wrap: wrap; justify-content: center; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: 8px;
  font-size: 0.9rem; font-weight: 500;
  transition: all var(--ease); cursor: pointer; border: none;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover {
  background: #d97706;
  box-shadow: 0 0 20px 4px var(--accent-glow);
  transform: translateY(-2px);
}
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

.hero-socials { display: flex; gap: 12px; }
.social-link {
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 10px;
  border: 1px solid var(--border); color: var(--text-muted);
  transition: all var(--ease);
}
.social-link svg { width: 18px; height: 18px; }
.social-link:hover {
  color: var(--accent); border-color: var(--accent);
  background: var(--accent-light); transform: translateY(-3px);
}

/* Photo */
.hero-photo { margin-bottom: 28px; }
.photo-placeholder {
  width: 100px; height: 100px; border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 600;
  color: var(--text-muted); font-family: var(--font-mono);
  /* To use a real photo: replace this div with
     <img src="assets/photo.jpg" alt="Paris" class="photo-img"> */
}
.photo-img {
  width: 100px; height: 100px; border-radius: 50%; object-fit: cover;
  border: 1px solid var(--border);
}


/* ============================================
   SECTION HEADERS
============================================ */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
section { padding: var(--section-pad) 0; }

.section-header { margin-bottom: 60px; }
.section-label {
  font-family: var(--font-mono); font-size: 0.78rem;
  color: var(--accent); letter-spacing: 0.15em;
  text-transform: uppercase; display: block; margin-bottom: 8px;
}
.section-title { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; letter-spacing: -0.02em; }

/* ============================================
   EXPERIENCE
============================================ */
.experience-list { display: flex; flex-direction: column; gap: 40px; }

.experience-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  padding: 36px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--ease), transform var(--ease), box-shadow var(--ease);
}
.experience-card:hover {
  border-color: rgba(245,158,11,0.3);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}

.exp-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.exp-date { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-muted); }
.exp-type {
  font-size: 0.68rem; font-weight: 500; padding: 2px 8px;
  border-radius: 4px; background: var(--accent-light); color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.05em;
}
.exp-role { font-size: 1.2rem; font-weight: 600; margin-bottom: 4px; }
.exp-company { font-size: 0.95rem; color: var(--accent); font-weight: 500; margin-bottom: 14px; }

.exp-bullets { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.exp-bullets li {
  font-size: 0.88rem; color: var(--text-soft); line-height: 1.65;
  padding-left: 16px; position: relative;
}
.exp-bullets li::before {
  content: '▸'; position: absolute; left: 0;
  color: var(--accent); font-size: 0.68rem; top: 4px;
}

.exp-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-family: var(--font-mono); font-size: 0.72rem;
  padding: 3px 9px; border-radius: 4px;
  background: var(--surface-2); color: var(--text-soft); border: 1px solid var(--border);
}

.experience-media { display: flex; align-items: center; justify-content: center; }


/* Experience image */
.exp-image {
  width: 100%; aspect-ratio: 16/9; object-fit: cover;
  border-radius: 10px; border: 1px solid var(--border);
}

/* Video embeds */
.video-embed { width: 100%; }
.video-label {
  font-family: var(--font-mono); font-size: 0.72rem;
  color: var(--text-muted); margin-bottom: 10px; letter-spacing: 0.05em;
}
.video-wrapper {
  position: relative; width: 100%; padding-bottom: 56.25%; /* 16:9 */
  border-radius: 10px; overflow: hidden;
  border: 1px solid var(--border);
}
.video-wrapper iframe {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
}

/* Site screenshots */
.site-screenshots { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.screenshot-link {
  display: block; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--border);
  transition: border-color var(--ease), transform var(--ease), box-shadow var(--ease);
}
.screenshot-link:hover {
  border-color: rgba(245,158,11,0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.screenshot-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }

/* Earlier work */
.experience-earlier {
  padding: 28px 32px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.earlier-label {
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 18px;
}
.earlier-items { display: flex; flex-direction: column; gap: 14px; }
.earlier-item {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding-bottom: 14px; border-bottom: 1px solid var(--border);
}
.earlier-item:last-child { border-bottom: none; padding-bottom: 0; }
.earlier-left { display: flex; flex-direction: column; gap: 2px; }
.earlier-role { font-size: 0.92rem; font-weight: 500; }
.earlier-company { font-size: 0.82rem; color: var(--text-muted); }
.earlier-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.earlier-date { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-muted); white-space: nowrap; }

/* ============================================
   SKILLS
============================================ */
#skills { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.skills-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 44px; }
.skill-group-title {
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--text-muted); margin-bottom: 18px;
}
.skills-icons { display: flex; flex-wrap: wrap; gap: 16px; }
.skill-item { display: flex; flex-direction: column; align-items: center; gap: 7px; cursor: default; }
.skill-icon-wrap {
  width: 52px; height: 52px;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  padding: 10px; transition: all var(--ease);
}
.skill-icon-wrap img { width: 100%; height: 100%; object-fit: contain; }
.skill-item:hover .skill-icon-wrap {
  background: var(--accent-light); border-color: var(--accent);
  transform: translateY(-5px); box-shadow: 0 8px 24px var(--accent-glow);
}
.skill-item span { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-muted); transition: color var(--ease); }
.skill-item:hover span { color: var(--accent); }

/* Express is black — invert for dark theme */
.express-icon img { filter: invert(0.85); }
/* AWS wordmark is white */
.aws-icon img { filter: brightness(0) invert(1) opacity(0.75); }

/* ============================================
   CONTACT
============================================ */
.contact-content { max-width: 520px; }
.contact-text { font-size: 1.05rem; color: var(--text-soft); line-height: 1.75; margin-bottom: 32px; }
.contact-links { display: flex; flex-direction: column; gap: 16px; }
.contact-link {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 1rem; color: var(--text-soft); transition: color var(--ease), gap var(--ease);
}
.contact-link svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--accent); }
.contact-link:hover { color: var(--accent); gap: 18px; }

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

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 900px) {
  .experience-card { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  :root { --section-pad: 64px; }
  .nav-links { gap: 20px; }
  .experience-card { padding: 20px; }
  .earlier-item { flex-direction: column; gap: 8px; }
  .earlier-right { align-items: flex-start; }
}
