*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black: #080808;
  --dark: #141414;
  --card: #1a1a1a;
  --amber: #d6fe51;
  --amber-dim: #99b82b;
  --white: #F0EDE6;
  --muted: #888;
  --line: rgba(214, 254, 81, 0.2);
}

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}

.text-accent {
  color: var(--amber);
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 48px;
  background: linear-gradient(to bottom, rgba(8,8,8,0.95), transparent);
  backdrop-filter: blur(4px);
}
.nav-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem;
  letter-spacing: 0.15em;
  color: var(--amber);
  text-decoration: none;
}
.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a {
  color: var(--muted); font-size: 0.75rem; letter-spacing: 0.12em;
  text-transform: uppercase; text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 48px 80px;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: 
    radial-gradient(ellipse 60% 80% at 70% 50%, rgba(214, 254, 81, 0.07) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 20% 80%, rgba(214, 254, 81, 0.04) 0%, transparent 50%);
}
.hero-eyebrow {
  font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--amber); margin-bottom: 20px;
}
.hero-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(72px, 13vw, 200px);
  line-height: 0.88;
  letter-spacing: -0.01em;
  color: var(--white);
  position: relative;
}
.hero-name span {
  display: block;
  -webkit-text-stroke: 1px rgba(240,237,230,0.2);
  color: transparent;
}
.hero-name em {
  color: var(--white);
  font-style: normal;
  display: block;
}
.hero-bottom {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-top: 48px; padding-top: 32px;
  border-top: 1px solid var(--line);
}
.hero-desc {
  max-width: 420px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
}
.hero-desc strong { color: var(--white); font-weight: 500; }
.hero-meta { text-align: right; }
.hero-meta p { font-size: 0.72rem; letter-spacing: 0.1em; color: var(--amber-dim); text-transform: uppercase; margin-bottom: 6px; }
.hero-meta a {
  display: block; color: var(--white); font-size: 0.85rem;
  text-decoration: none; transition: color 0.2s;
}
.hero-meta a:hover { color: var(--amber); }

/* ── SECTION SHARED ── */
section { padding: 120px 48px; }
.section-label {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 72px;
}
.section-label span {
  font-size: 0.65rem; letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--amber); white-space: nowrap;
}
.section-label::after {
  content: ''; flex: 1; height: 1px; background: var(--line);
}
h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(40px, 6vw, 80px);
  letter-spacing: 0.02em;
  line-height: 1;
  color: var(--white);
}

/* ── ABOUT ── */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
  align-items: start;
}
.about-left h2 { margin-bottom: 32px; }
.about-left p {
  color: var(--muted); font-size: 0.95rem; line-height: 1.8; margin-bottom: 20px;
}
.about-left p strong { color: var(--white); font-weight: 500; }
.about-left p a {
  color: var(--amber);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px dashed rgba(214, 254, 81, 0.4);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.about-left p a:hover {
  color: var(--white);
  border-color: var(--white);
}
.about-right {
  padding-top: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.about-image-wrap {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  background: var(--card);
  width: 100%;
  max-width: 420px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.about-image-wrap:hover {
  border-color: var(--amber);
  box-shadow: 0 0 20px rgba(214, 254, 81, 0.15);
}
.about-image-wrap img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease, filter 0.5s ease;
  filter: grayscale(20%) contrast(1.05);
}
.about-image-wrap:hover img {
  transform: scale(1.03);
  filter: grayscale(0%) contrast(1.02);
}
.stat-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 22px 0; border-bottom: 1px solid var(--line);
}
.stat-row:first-child { border-top: 1px solid var(--line); }
.stat-label { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.stat-value { font-family: 'Bebas Neue', sans-serif; font-size: 2rem; color: var(--amber); letter-spacing: 0.04em; }

/* ── WORK / EXPERIENCE STATS ── */
#work { background: var(--dark); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 4px;
  overflow: hidden;
}
.stat-col {
  padding: 48px 40px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: background-color 0.25s ease;
  cursor: default;
}
.stat-col:last-child {
  border-right: none;
}
.stat-col:hover {
  background-color: rgba(214, 254, 81, 0.04);
}
.stat-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3.5rem, 6vw, 5rem);
  line-height: 1;
  color: var(--amber);
  margin-bottom: 20px;
}
.stat-title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 12px;
}
.stat-desc {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .stat-col {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 40px 32px;
  }
  .stat-col:last-child {
    border-bottom: none;
  }
}

/* ── SKILLS ── */
.skills-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px; margin-top: 24px;
}
.skill-card {
  border: 1px solid var(--line);
  padding: 28px 24px;
  border-radius: 2px;
  transition: border-color 0.2s, background 0.2s;
  cursor: default;
}
.skill-card:hover {
  border-color: var(--amber);
  background: rgba(214, 254, 81, 0.04);
}
.skill-icon {
  margin-bottom: 14px;
  color: var(--amber);
  display: flex;
  align-items: center;
}
.skill-icon svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.5;
}
.skill-name {
  font-size: 0.82rem; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--white);
}

/* ── EDUCATION ── */
#education { background: var(--dark); }
.edu-card {
  display: flex; align-items: flex-start; gap: 48px;
  padding: 48px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--card);
  max-width: 700px;
}
.edu-year {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem; color: var(--amber); letter-spacing: 0.15em;
  white-space: nowrap; padding-top: 4px;
}
.edu-degree {
  font-family: 'DM Serif Display', serif;
  font-size: 1.6rem; color: var(--white); margin-bottom: 8px;
}
.edu-school { font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

/* ── CONTACT ── */
.contact-inner {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 80px 0;
}
.contact-big {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(48px, 8vw, 120px);
  color: var(--white); letter-spacing: 0.02em;
  line-height: 1;
  margin-bottom: 40px;
}
.contact-big em {
  color: transparent;
  -webkit-text-stroke: 1px var(--amber);
  font-style: normal;
}
.contact-links {
  display: flex; gap: 32px; flex-wrap: wrap; justify-content: center;
  margin-bottom: 64px;
}
.contact-link {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 28px;
  border: 1px solid var(--line);
  color: var(--white); text-decoration: none;
  font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase;
  transition: border-color 0.2s, color 0.2s;
  border-radius: 1px;
}
.contact-link:hover { border-color: var(--amber); color: var(--amber); }
.contact-link .icon {
  width: 16px;
  height: 16px;
  stroke-width: 2;
  display: inline-flex;
  align-items: center;
}
.footer-note { font-size: 0.68rem; letter-spacing: 0.15em; color: var(--amber-dim); text-transform: uppercase; }

/* ── SCROLL INDICATOR ── */
.scroll-hint {
  position: absolute; bottom: 40px; right: 48px;
  writing-mode: vertical-rl;
  font-size: 0.65rem; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--amber-dim);
  display: flex; align-items: center; gap: 12px;
}
.scroll-hint::before {
  content: ''; display: block; width: 1px; height: 60px;
  background: linear-gradient(to bottom, transparent, var(--amber));
  animation: scrollLine 1.8s ease-in-out infinite;
}
@keyframes scrollLine {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6) translateY(-10px); }
  50% { opacity: 1; transform: scaleY(1) translateY(0); }
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  nav { padding: 16px 24px; }
  .nav-links { display: none; }
  section { padding: 80px 24px; }
  .hero { padding: 0 24px 64px; }
  .hero-bottom { flex-direction: column; gap: 32px; }
  .hero-meta { text-align: left; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .timeline-item { grid-template-columns: 1fr; gap: 16px; }
  .timeline-left { text-align: left; }
  .timeline-divider { display: none; }
  .scroll-hint { display: none; }
  .contact-links { flex-direction: column; align-items: center; }
}

/* ── FADE IN ── */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ── PORTFOLIO PAGE ── */
.portfolio-hero {
  padding: 160px 48px 80px;
}
.portfolio-header {
  margin-bottom: 48px;
}
.portfolio-subtitle {
  max-width: 600px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-top: 24px;
}
.filter-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.filter-btn {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--white);
  padding: 10px 24px;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 1px;
  cursor: pointer;
  transition: all 0.25s ease;
}
.filter-btn:hover {
  border-color: var(--amber);
  color: var(--amber);
}
.filter-btn.active {
  background: var(--amber);
  color: var(--black);
  border-color: var(--amber);
  font-weight: 500;
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
}
.portfolio-card {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.portfolio-card:hover {
  border-color: var(--amber);
  box-shadow: 0 0 20px rgba(214, 254, 81, 0.1);
}
.portfolio-image-wrap {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.portfolio-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease, filter 0.5s ease;
  filter: grayscale(10%) contrast(1.02);
}
.portfolio-card:hover .portfolio-image-wrap img {
  transform: scale(1.03);
  filter: grayscale(0%) contrast(1);
}
.portfolio-card-info {
  padding: 24px;
}
.portfolio-card-category {
  font-size: 0.68rem;
  color: var(--amber-dim);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 8px;
}
.portfolio-card-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 8px;
  line-height: 1.2;
}
.portfolio-card-desc {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ── LIGHTBOX MODAL ── */
.portfolio-modal {
  position: fixed;
  inset: 0;
  background: rgba(8,8,8,0.92);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 24px;
}
.portfolio-modal.active {
  opacity: 1;
  pointer-events: auto;
}
.portfolio-modal-content {
  background: var(--dark);
  border: 1px solid var(--line);
  border-radius: 6px;
  width: 100%;
  max-width: 1000px;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  overflow: hidden;
  position: relative;
  max-height: 90vh;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.portfolio-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(8,8,8,0.6);
  border: 1px solid var(--line);
  color: var(--white);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
}
.portfolio-modal-close:hover {
  border-color: var(--amber);
  color: var(--amber);
  background: var(--black);
}
.portfolio-modal-media {
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-right: 1px solid var(--line);
  aspect-ratio: 16/9;
}
.portfolio-modal-video {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
.portfolio-modal-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.portfolio-modal-body {
  padding: 40px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.portfolio-modal-category {
  font-size: 0.7rem;
  color: var(--amber);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 8px;
}
.portfolio-modal-title {
  font-family: 'DM Serif Display', serif;
  font-size: 2rem;
  color: var(--white);
  margin-bottom: 24px;
  line-height: 1.15;
}
.portfolio-modal-meta {
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.portfolio-modal-meta p {
  font-size: 0.82rem;
  color: var(--muted);
}
.portfolio-modal-meta p strong {
  color: var(--white);
  font-weight: 500;
}
.portfolio-modal-desc-wrap p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 900px) {
  .portfolio-modal-content {
    grid-template-columns: 1fr;
    max-height: 85vh;
    overflow-y: auto;
  }
  .portfolio-modal-media {
    border-right: none;
    border-bottom: 1px solid var(--line);
    aspect-ratio: 16/9;
  }
  .portfolio-modal-body {
    padding: 24px;
  }
  .portfolio-modal-title {
    font-size: 1.6rem;
    margin-bottom: 16px;
  }
}

@media (max-width: 768px) {
  .portfolio-hero {
    padding: 120px 24px 60px;
  }
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
