/* ── Syne Font ── */
@font-face {
  font-family: 'Syne';
  src: url('syne/Syne-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Syne';
  src: url('syne/Syne-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Syne';
  src: url('syne/Syne-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Syne';
  src: url('syne/Syne-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Syne';
  src: url('syne/Syne-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

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

:root {
  --bg: #F3EFE7;
  --fg: #131210;
  --muted: #8A7E74;
  --card-bg: #E5DDD0;
  --accent: #2C4A9E;
  --accent-soft: #EBF0FF;
  --gap: 2rem;
  --max-w: 1200px;
  --header-h: 64px;
  --font-sans: 'Syne', 'Helvetica Neue', Arial, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ── Header ── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  height: var(--header-h);
}

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

.logo { display: flex; align-items: center; white-space: nowrap; }
.logo-img { height: 52px; width: auto; object-fit: contain; }

.nav { display: flex; gap: 2rem; align-items: center; }
.nav a { font-size: 0.875rem; color: var(--muted); transition: color 0.2s; }
.nav a:hover { color: var(--accent); }

.header-right { display: flex; align-items: center; gap: 1rem; }

.social-icon {
  color: var(--fg);
  display: flex;
  align-items: center;
  opacity: 0.65;
  transition: opacity 0.2s;
}
.social-icon:hover { opacity: 1; }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--fg);
  transition: transform 0.25s, opacity 0.25s;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── Hero Parallax ── */
.hero-parallax {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-center {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 2rem;
  pointer-events: none;
}

.hero-name {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 1.25rem;
}

.hero-tagline {
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  color: var(--muted);
  line-height: 1.6;
}

/* Floating thumbnails */
.p-thumb {
  position: absolute;
  width: 200px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.13);
  cursor: pointer;
  will-change: transform;
  transition: box-shadow 0.25s;
  z-index: 5;
}

.p-thumb:hover { box-shadow: 0 20px 52px rgba(44,74,158,0.22); }

.p-thumb img {
  display: block;
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.p-thumb-label { display: none; }

/* Individual positions + default rotations + staggered lag */
.p-thumb--1 { top: 8%;    left: 8%;   transform: rotate(-10deg); transition: transform 0.10s ease-out; }
.p-thumb--2 { top: 10%;   right: 9%;  transform: rotate(7deg);   transition: transform 0.18s ease-out; }
.p-thumb--3 { top: 52%;   left: 7%;   transform: rotate(-4deg);  transition: transform 0.25s ease-out; }
.p-thumb--4 { top: 30%;   left: 16%;  transform: rotate(-7deg);  transition: transform 0.14s ease-out; }
.p-thumb--5 { bottom: 7%; left: 18%;  transform: rotate(13deg);  transition: transform 0.30s ease-out; }
.p-thumb--6 { bottom: 8%; right: 16%; transform: rotate(-8deg);  transition: transform 0.20s ease-out; }
.p-thumb--7 { top: 42%;   right: 5%;  transform: rotate(3deg);   transition: transform 0.22s ease-out; }


/* ── Work Grid ── */
.work {
  padding: 2rem var(--gap) 6rem;
  max-width: var(--max-w);
  margin: 0 auto;
}

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

.project-card {
  cursor: pointer;
}

.card-img-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--card-bg);
  overflow: hidden;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

.card-img-wrap img { transition: transform 0.45s ease; }
.project-card:hover .card-img-wrap img { transform: scale(1.04); }

.card-title {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: opacity 0.2s;
}
.project-card:hover .card-title { opacity: 0.5; }

/* ── About ── */
.about {
  padding: 5rem var(--gap);
  border-top: 1px solid rgba(0,0,0,0.08);
  max-width: var(--max-w);
  margin: 0 auto;
}
.about-inner { max-width: 640px; }
.section-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 1.5rem;
}
.about-text { font-size: 1.1rem; line-height: 1.7; }

/* ── Contact ── */
.contact {
  padding: 5rem var(--gap);
  border-top: 1px solid rgba(0,0,0,0.08);
  max-width: var(--max-w);
  margin: 0 auto;
}

.contact .section-label {
  font-size: 1rem;
  letter-spacing: 0.18em;
  font-weight: 600;
  margin-bottom: 1rem;
}
.contact-email {
  font-size: clamp(1.4rem, 3vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
  display: inline-block;
}
.contact-email:hover { border-color: var(--accent); color: var(--accent); }

.contact-headline {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 0.75rem;
}

.contact-status {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  margin-top: 2.5rem;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted);
  transition: color 0.2s;
}

.contact-link svg {
  color: var(--accent);
  flex-shrink: 0;
}

.contact-link:hover { color: var(--accent); }
.contact-location { cursor: default; }
.contact-location:hover { color: var(--muted); }

/* ── Footer ── */
.footer {
  padding: 2rem var(--gap);
  border-top: 1px solid rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-w);
  margin: 0 auto;
  font-size: 0.8rem;
  color: var(--muted);
}
.footer-socials { display: flex; gap: 1.5rem; }
.footer-socials a { color: var(--muted); transition: color 0.2s; }
.footer-socials a:hover { color: var(--accent); }

/* ═══════════════════════════════════════
   MODAL
═══════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10, 10, 10, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  position: relative;
  background: #FDFAF6;
  border-radius: 8px;
  width: 100%;
  max-width: 1100px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateY(20px) scale(0.98);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.modal-overlay.open .modal {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 1.1rem;
  right: 1.25rem;
  z-index: 10;
  background: none;
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  padding: 4px 6px;
  transition: color 0.2s;
}
.modal-close:hover { color: var(--fg); }

/* Modal body: side-by-side on desktop */
.modal-body {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

/* Left: info panel */
.modal-info {
  width: 320px;
  flex-shrink: 0;
  padding: 3rem 2rem 2rem 2.5rem;
  border-right: 1px solid rgba(0,0,0,0.07);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: var(--bg);
}

.modal-category {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.modal-title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.modal-year {
  font-size: 0.82rem;
  color: var(--muted);
}

.modal-desc {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--muted);
  margin-top: 0.5rem;
}

.modal-disclaimer {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: auto;
  padding-top: 1.5rem;
  line-height: 1.5;
}
.modal-disclaimer:empty { display: none; }

/* Right: slider */
.modal-slider-wrap {
  flex: 1;
  position: relative;
  background: #ffffff;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.slider-viewport {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.slider-track {
  display: flex;
  height: 100%;
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.slider-slide {
  flex-shrink: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.slider-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 2px;
}

/* Prev / Next arrows */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  background: rgba(255,255,255,0.9);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg);
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
  transition: background 0.2s, opacity 0.2s;
}
.slider-btn:hover { background: #fff; }
.slider-btn:disabled { opacity: 0.25; cursor: default; }
.slider-btn.hidden { display: none; }

.slider-prev { left: 1rem; }
.slider-next { right: 1rem; }

/* Dots */
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 0.75rem 1rem;
  background: var(--card-bg);
}

.slider-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ccc;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}
.slider-dot.active {
  background: var(--accent);
  transform: scale(1.3);
}

/* ══════════════════════════════════════
   ABOUT PAGE
══════════════════════════════════════ */

.nav-active { color: var(--accent) !important; }

/* Hero */
.about-hero {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 5rem var(--gap) 4rem;
}

.about-hero-inner {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 5rem;
  align-items: start;
}

.about-photo-wrap {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 160px 160px 120px 120px;
  background: var(--card-bg);
  position: sticky;
  top: calc(var(--header-h) + 2rem);
}

.about-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.about-intro {
  padding-top: 0.5rem;
}

.about-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.about-heading {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 0.4rem;
}

.about-location {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

.about-bio {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--fg);
  max-width: 560px;
  margin-bottom: 2.5rem;
}

.about-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.about-cta a {
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.65rem 1.5rem;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}

.about-cta a:first-child {
  background: var(--accent);
  color: #fff;
}
.about-cta a:first-child:hover { background: #1e3580; }

.about-cta a:last-child {
  border: 1px solid rgba(44,74,158,0.3);
  color: var(--accent);
}
.about-cta a:last-child:hover { border-color: var(--accent); background: var(--accent-soft); }

/* Accordion section */
.accordion-section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gap) 6rem;
}

.accordion-inner {
  border-top: 1px solid rgba(0,0,0,0.1);
}

.accordion-group {
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: -0.01em;
  text-align: left;
}

.accordion-trigger:hover { opacity: 0.7; }

.accordion-arrow {
  flex-shrink: 0;
  transition: transform 0.3s ease;
  color: var(--muted);
}

.accordion-group.open .accordion-arrow {
  transform: rotate(180deg);
  color: var(--accent);
}

/* Animated body */
.accordion-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-group.open .accordion-body {
  grid-template-rows: 1fr;
}

.accordion-group.open .accordion-trigger {
  color: var(--accent);
}

.accordion-content {
  overflow: hidden;
  padding-bottom: 0;
  transition: padding-bottom 0.35s ease;
}

.accordion-group.open .accordion-content {
  padding-bottom: 2rem;
}

/* Experience items */
.exp-item {
  padding: 1.25rem 0;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.exp-item:first-child { border-top: none; }

.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.6rem;
}

.exp-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.exp-company {
  font-size: 0.85rem;
  color: var(--muted);
}

.exp-date {
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
  padding-top: 2px;
}

.exp-desc {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--muted);
  max-width: 600px;
}

/* Skill lists */
.skill-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.skill-list li {
  font-size: 0.9rem;
  color: #444;
  padding-left: 1rem;
  position: relative;
}

.skill-list li::before {
  content: '+';
  position: absolute;
  left: 0;
  color: var(--accent);
}

.skill-list--grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem 1rem;
}

/* ── Responsive ── */
@media (max-width: 860px) {
  .modal-body { flex-direction: column; }
  .modal-info {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid rgba(0,0,0,0.07);
    padding: 2rem 1.5rem 1.25rem;
    max-height: 220px;
  }
  .modal-slider-wrap { min-height: 320px; }
}

@media (max-width: 860px) {
  .about-hero-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .about-photo-wrap {
    position: static;
    max-width: 280px;
    aspect-ratio: 1 / 1;
  }
  .skill-list--grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --gap: 1.25rem; }
  .p-thumb { display: none; }
  .hero-parallax { min-height: 60vh; }

  .nav {
    display: none;
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: var(--bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    z-index: 99;
  }
  .nav.open { display: flex; }
  .nav a { font-size: 1.4rem; color: var(--fg); }
  .hamburger { display: flex; }

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

  .footer { flex-direction: column; gap: 1rem; text-align: center; }

  .modal-overlay { padding: 0; }
  .modal { max-height: 100dvh; border-radius: 0; }

  .exp-header { flex-direction: column; gap: 0.25rem; }
  .exp-date { padding-top: 0; }
}

@media (max-width: 480px) {
  .hero { padding: 4rem var(--gap) 3rem; }
  .contact-email { font-size: 1.3rem; }
  .modal-info { max-height: 200px; }
  .modal-slider-wrap { min-height: 260px; }
  .about-hero { padding: 3rem var(--gap) 2.5rem; }
  .skill-list--grid { grid-template-columns: 1fr; }
}
