/* ─── FONTS ─────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400&family=Jost:wght@200;300;400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

/* ─── VARIABLES ─────────────────────────────────────────── */
:root {
  --dark-1: #1E2328;
  --dark-2: #2A2E34;
  --dark-3: #3B3F46;
  --gold-dark: #C87D00;
  --gold-mid: #F5B301;
  --gold-light: #FED053;
  --gold-glow: rgba(245, 179, 1, 0.15);
  --white: #FFFFFF;
  --gray-light: #E8E8E8;
  --gray: #9AA0A6;
  --gray-dark: #5A6070;
  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'Jost', sans-serif;
  --font-mono: 'Space Mono', monospace;
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-fast: 0.2s ease;
  --radius: 4px;
  --radius-lg: 12px;
}

/* ─── RESET & BASE ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background-color: var(--dark-1);
  color: var(--gray-light);
  line-height: 1.7;
  overflow-x: hidden;
  cursor: none;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ─── CUSTOM CURSOR ──────────────────────────────────────── */
.cursor-dot {
  width: 8px; height: 8px;
  background: var(--gold-mid);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease, opacity 0.3s ease;
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1.5px solid rgba(245, 179, 1, 0.6);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease, width 0.3s ease, height 0.3s ease, border-color 0.3s ease;
}
.cursor-ring.hovering {
  width: 56px; height: 56px;
  border-color: var(--gold-mid);
  background: rgba(245, 179, 1, 0.05);
}

/* ─── LOADER ─────────────────────────────────────────────── */
#loader {
  position: fixed; inset: 0;
  background: var(--dark-1); z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 24px;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#loader.hidden { opacity: 0; visibility: hidden; }
.loader-monogram {
  font-family: var(--font-display);
  font-size: 72px; font-weight: 300;
  color: var(--gold-mid); letter-spacing: 8px;
  animation: loaderPulse 1.5s ease-in-out infinite;
}
.loader-bar {
  width: 200px; height: 1px;
  background: var(--dark-3); position: relative; overflow: hidden;
}
.loader-bar::after {
  content: '';
  position: absolute; left: -100%; top: 0;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, var(--gold-mid), transparent);
  animation: loaderSweep 1.2s ease-in-out infinite;
}
@keyframes loaderPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
@keyframes loaderSweep { to { left: 200%; } }

/* ─── NAVBAR ─────────────────────────────────────────────── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 24px 60px;
  display: flex; align-items: center; justify-content: space-between;
  transition: background 0.4s ease, padding 0.4s ease, backdrop-filter 0.4s ease;
}
#navbar.scrolled {
  padding: 16px 60px;
  background: rgba(30, 35, 40, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(245, 179, 1, 0.1);
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 28px; font-weight: 600;
  color: var(--gold-mid); letter-spacing: 2px;
  transition: var(--transition-fast);
}
.nav-logo span { color: var(--white); }
.nav-links {
  display: flex; align-items: center; gap: 40px;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
/* Hide nav links when hero is in view */
#navbar.in-hero .nav-links {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.nav-links a {
  font-family: var(--font-body);
  font-size: 12px; font-weight: 500;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--gray); transition: color var(--transition-fast);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--gold-mid);
  transition: width var(--transition);
}
.nav-links a:hover { color: var(--gold-mid); }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  padding: 10px 24px;
  border: 1px solid var(--gold-mid);
  color: var(--gold-mid) !important;
  font-size: 11px !important; letter-spacing: 2px;
  transition: background var(--transition-fast), color var(--transition-fast) !important;
}
.nav-cta:hover { background: var(--gold-mid) !important; color: var(--dark-1) !important; }
.nav-cta::after { display: none !important; }
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px;
}
.nav-hamburger span {
  display: block; width: 24px; height: 1.5px;
  background: var(--gold-mid); transition: var(--transition);
}
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
.mobile-menu {
  display: none; position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(30, 35, 40, 0.98); z-index: 999;
  flex-direction: column; align-items: center; justify-content: center; gap: 32px;
  opacity: 0; transition: opacity 0.3s ease;
}
.mobile-menu.open { display: flex; opacity: 1; }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: 36px; color: var(--white);
  transition: color var(--transition-fast);
}
.mobile-menu a:hover { color: var(--gold-mid); }

/* ─── HERO (new 3-column layout) ────────────────────────── */
#hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 160px 1fr 160px;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 100px 0 80px;
}

.hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 45%, rgba(245, 179, 1, 0.07) 0%, transparent 70%), var(--dark-1);
}
.hero-bg-image {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0.1; filter: grayscale(100%);
}

/* Floating shapes */
.hero-shapes { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.shape {
  position: absolute;
  border: 1px solid rgba(245, 179, 1, 0.10);
  animation: shapeFloat linear infinite;
}
.shape-1 { width: 320px; height: 320px; top: 5%; right: 8%; animation-duration: 22s; border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
.shape-2 { width: 140px; height: 140px; bottom: 15%; left: 15%; animation-duration: 17s; animation-delay: -6s; }
.shape-3 { width: 70px; height: 70px; top: 25%; left: 8%; animation-duration: 20s; animation-delay: -10s; border-radius: 50%; }
.shape-4 { width: 180px; height: 1px; bottom: 30%; right: 12%; background: linear-gradient(90deg, transparent, var(--gold-mid), transparent); border: none; animation: shimmer 4s ease-in-out infinite; }
@keyframes shapeFloat { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-28px) rotate(180deg); } }
@keyframes shimmer { 0%, 100% { opacity: 0.1; transform: scaleX(1); } 50% { opacity: 0.4; transform: scaleX(1.2); } }

/* Noise texture */
.noise-overlay {
  position: fixed; inset: 0; pointer-events: none; z-index: 1; opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ─── LEFT: Vertical side nav ────────────────────────────── */
.hero-side-nav {
  position: relative; z-index: 2;
  display: flex; flex-direction: column;
  align-items: flex-start; justify-content: center;
  gap: 4px;
  padding-left: 48px;
  height: 100%;
  opacity: 0; transform: translateX(-20px);
  animation: fadeRight 0.8s ease forwards 1.6s;
}
.hero-side-link {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gray);
  writing-mode: horizontal-lr;
  padding: 10px 0 10px 14px;
  border-left: 2px solid rgba(245, 179, 1, 0.2);
  transition: color var(--transition-fast), border-color var(--transition-fast), padding-left 0.3s ease, background 0.3s ease;
  position: relative;
}
.hero-side-link:hover {
  color: var(--gold-mid);
  border-left-color: var(--gold-mid);
  padding-left: 20px;
  background: rgba(245, 179, 1, 0.04);
}
.hero-side-link--cta {
  margin-top: 20px;
  color: var(--gold-mid);
  background: rgba(245, 179, 1, 0.08);
  border: 1px solid rgba(245, 179, 1, 0.5);
  border-left: 2px solid var(--gold-mid);
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 600;
}
.hero-side-link--cta:hover {
  background: var(--gold-mid);
  color: var(--dark-1);
  border-color: var(--gold-mid);
  padding-left: 16px;
}

/* ─── CENTER: Avatar + Name ──────────────────────────────── */
.hero-center {
  position: relative; z-index: 2;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  gap: 0;
}

/* Avatar wrapper */
.hero-avatar-wrapper {
  position: relative;
  display: flex; flex-direction: column;
  align-items: center;
  margin-bottom: 32px;
  opacity: 0; transform: translateY(30px);
  animation: fadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.6s;
}

/* Rotating rings */
.hero-avatar-ring {
  position: absolute;
  top: 50%; left: 50%;
  width: 280px; height: 280px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(245, 179, 1, 0.18);
  animation: ringRotate 16s linear infinite;
  pointer-events: none;
}
.hero-avatar-ring--2 {
  width: 320px; height: 320px;
  border: 1px dashed rgba(245, 179, 1, 0.10);
  animation-duration: 28s;
  animation-direction: reverse;
}
@keyframes ringRotate { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(360deg); } }

/* The circular avatar — enlarged */
.hero-avatar {
  width: 240px; height: 240px;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(245, 179, 1, 0.5);
  cursor: none;
  transform-style: preserve-3d;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
}
.hero-avatar:hover {
  border-color: var(--gold-mid);
  box-shadow: 0 0 60px rgba(245, 179, 1, 0.4), 0 0 120px rgba(245, 179, 1, 0.15);
}

/* Base photo layer */
.avatar-layer--base {
  position: absolute; inset: 0;
  border-radius: 50%; overflow: hidden;
  transform: translateZ(0);
}
.avatar-photo {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  border-radius: 50%;
  display: block;
}
.avatar-placeholder {
  width: 100%; height: 100%;
  background: var(--dark-3);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 8px;
  border-radius: 50%;
}
.avatar-placeholder svg { width: 64px; height: 64px; }
.avatar-placeholder span {
  font-family: var(--font-display);
  font-size: 40px; font-weight: 300;
  color: var(--gold-mid); letter-spacing: 4px;
}

/* Sheen (light reflection that moves with mouse) */
.avatar-sheen {
  position: absolute; inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.18) 0%, transparent 65%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  mix-blend-mode: screen;
}
.hero-avatar:hover .avatar-sheen { opacity: 1; }

/* Depth shadow that shifts with tilt */
.avatar-depth-shadow {
  position: absolute; inset: -8px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle at 70% 70%, rgba(0,0,0,0.5) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.hero-avatar:hover .avatar-depth-shadow { opacity: 0.6; }

/* Gold glow pulse */
.avatar-glow {
  position: absolute; inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(245, 179, 1, 0.0);
  pointer-events: none;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}
.hero-avatar:hover .avatar-glow {
  border-color: rgba(245, 179, 1, 0.4);
  box-shadow: inset 0 0 30px rgba(245, 179, 1, 0.08);
}

/* Eyebrow label below avatar */
.hero-avatar-eyebrow {
  display: flex; align-items: center; gap: 12px;
  margin-top: 24px;
  opacity: 0.8;
}
.hero-eyebrow-line {
  display: block; width: 32px; height: 1px;
  background: var(--gold-mid);
}
.hero-avatar-eyebrow span {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 3.5px;
  text-transform: uppercase; color: var(--gold-mid);
}

/* ─── Hero Name — single line ──────────────────────────── */
.hero-name {
  font-family: var(--font-display);
  font-size: clamp(22px, 3.8vw, 58px);
  font-weight: 300;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 20px;
  text-align: center;
  white-space: nowrap;
}
.hero-name .line {
  display: inline;
}
.hero-name .line-sep {
  display: inline;
  color: rgba(245, 179, 1, 0.4);
  margin: 0 0.15em;
}
.hero-name .name-middle {
  color: var(--gold-mid);
  font-style: italic;
}
/* Staggered reveal for the single name */
.hero-name {
  opacity: 0; transform: translateY(30px);
  animation: fadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.9s;
}

.hero-tagline {
  font-size: 14px; font-weight: 300;
  color: var(--gray); letter-spacing: 0.5px;
  max-width: 420px; margin-bottom: 36px;
  opacity: 0; transform: translateY(20px);
  animation: fadeUp 0.8s ease forwards 1.3s;
  text-align: center;
}
.hero-tagline strong { color: var(--gold-light); font-weight: 500; }

.hero-actions {
  display: flex; align-items: center; gap: 24px;
  opacity: 0; transform: translateY(20px);
  animation: fadeUp 0.8s ease forwards 1.5s;
}

/* ─── RIGHT: Stats — enlarged ────────────────────────────── */
.hero-stats {
  position: relative; z-index: 2;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 32px;
  padding-right: 48px;
  opacity: 0; transform: translateX(20px);
  animation: fadeLeft 0.8s ease forwards 1.6s;
}
.hero-stat {
  text-align: center;
  border-bottom: 1px solid rgba(245, 179, 1, 0.3);
  padding-bottom: 20px;
  width: 100px;
}
.hero-stat:last-child { border-bottom: none; padding-bottom: 0; }
.hero-stat-number {
  font-family: var(--font-display);
  font-size: 40px; font-weight: 600;
  color: var(--gold-mid); line-height: 1;
  margin-bottom: 6px;
  letter-spacing: 1px;
}
.hero-stat-label {
  font-size: 10px; letter-spacing: 3px;
  text-transform: uppercase; color: var(--gray);
  font-weight: 500;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute; bottom: 36px; left: 60px;
  display: flex; align-items: center; gap: 12px; z-index: 2;
  opacity: 0; animation: fadeUp 0.8s ease forwards 1.9s;
}
.scroll-line {
  width: 1px; height: 52px;
  background: linear-gradient(to bottom, transparent, var(--gold-mid));
  animation: scrollPulse 2s ease-in-out infinite;
}
.hero-scroll span {
  font-family: var(--font-mono);
  font-size: 9px; letter-spacing: 3px;
  text-transform: uppercase; color: var(--gray-dark);
  writing-mode: vertical-rl;
}
@keyframes scrollPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

/* ─── CTA Buttons ────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 32px;
  background: var(--gold-mid); color: var(--dark-1);
  font-family: var(--font-body); font-size: 11px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(245, 179, 1, 0.3);
}
.btn-secondary {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 500;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--gray); transition: color var(--transition-fast);
}
.btn-secondary:hover { color: var(--gold-mid); }
.btn-secondary .arrow {
  width: 28px; height: 1px; background: currentColor; position: relative;
  transition: width var(--transition);
}
.btn-secondary:hover .arrow { width: 44px; }
.btn-secondary .arrow::after {
  content: '';
  position: absolute; right: 0; top: -3px;
  width: 6px; height: 6px;
  border-right: 1px solid currentColor; border-top: 1px solid currentColor;
  transform: rotate(45deg);
}

/* ─── SECTION BASE ───────────────────────────────────────── */
section { padding: 100px 60px; position: relative; }
.section-header {
  margin-bottom: 64px;
  display: flex; align-items: flex-end; justify-content: space-between;
  flex-wrap: wrap; gap: 24px;
}
.section-label {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 4px;
  text-transform: uppercase; color: var(--gold-mid);
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 12px;
}
.section-label::before { content: ''; display: block; width: 24px; height: 1px; background: var(--gold-mid); }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 60px); font-weight: 300;
  color: var(--white); line-height: 1.1;
}
.section-title em { color: var(--gold-mid); font-style: italic; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-40px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal-left.visible { opacity: 1; transform: translateX(0); }

/* ─── ABOUT ──────────────────────────────────────────────── */
#about { background: var(--dark-2); }
.about-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 80px; align-items: start; }
.about-image-wrapper { position: relative; }
.about-image-frame {
  position: relative; aspect-ratio: 3/4;
  background: var(--dark-3); overflow: hidden;
}
.about-image-frame img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(20%); transition: filter 0.4s ease, transform 0.6s ease;
}
.about-image-frame:hover img { filter: grayscale(0%); transform: scale(1.03); }
.about-image-frame::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to bottom, transparent 60%, rgba(30, 35, 40, 0.6));
}
.about-image-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 12px; color: var(--gray-dark);
}
.about-image-placeholder svg { width: 48px; height: 48px; opacity: 0.4; }
.about-image-placeholder span { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; }
.about-image-deco {
  position: absolute; width: 100%; height: 100%; top: 16px; left: 16px;
  border: 1px solid rgba(245, 179, 1, 0.3); z-index: -1;
  transition: top 0.4s ease, left 0.4s ease;
}
.about-image-wrapper:hover .about-image-deco { top: 20px; left: 20px; }
.about-badge {
  position: absolute; bottom: -24px; right: -24px;
  background: var(--gold-mid); color: var(--dark-1); padding: 20px; text-align: center;
}
.about-badge-year { font-family: var(--font-display); font-size: 32px; font-weight: 700; line-height: 1; }
.about-badge-label { font-size: 9px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; margin-top: 4px; }
.about-content h3 { font-family: var(--font-display); font-size: 28px; font-weight: 300; color: var(--white); margin-bottom: 20px; }
.about-content p { font-size: 15px; color: var(--gray); line-height: 1.9; margin-bottom: 20px; }
.about-details { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 32px 0; }
.about-detail { border-left: 2px solid var(--dark-3); padding-left: 16px; transition: border-color var(--transition-fast); }
.about-detail:hover { border-color: var(--gold-mid); }
.about-detail-label { font-size: 10px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--gold-mid); margin-bottom: 4px; }
.about-detail-value { font-size: 14px; color: var(--gray-light); }
.interests-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.interest-tag {
  padding: 6px 14px; border: 1px solid var(--dark-3);
  font-size: 12px; letter-spacing: 1px; color: var(--gray);
  transition: border-color var(--transition-fast), color var(--transition-fast);
}
.interest-tag:hover { border-color: var(--gold-mid); color: var(--gold-mid); }

/* ─── SKILLS ─────────────────────────────────────────────── */
#skills { background: var(--dark-1); }
.skills-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.skill-item {
  padding: 24px; background: var(--dark-2);
  border: 1px solid transparent;
  transition: border-color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
}
.skill-item:hover { border-color: rgba(245, 179, 1, 0.3); background: var(--dark-3); transform: translateY(-2px); }
.skill-header { display: flex; justify-content: space-between; margin-bottom: 12px; }
.skill-name { font-size: 14px; font-weight: 500; color: var(--white); }
.skill-level { font-family: var(--font-mono); font-size: 12px; color: var(--gold-mid); }
.skill-bar { height: 2px; background: var(--dark-3); position: relative; overflow: visible; }
.skill-fill {
  height: 100%; background: linear-gradient(90deg, var(--gold-dark), var(--gold-mid));
  width: 0%; transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1); position: relative;
}
.skill-fill::after {
  content: ''; position: absolute; right: -3px; top: -3px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold-mid); box-shadow: 0 0 8px var(--gold-mid);
}
.skill-category-tag { font-family: var(--font-mono); font-size: 9px; letter-spacing: 2px; text-transform: uppercase; color: var(--gray-dark); margin-top: 8px; }

/* ─── PROJECTS ───────────────────────────────────────────── */
#projects { background: var(--dark-2); }
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--dark-3); }
.project-card {
  background: var(--dark-2); padding: 40px 36px;
  position: relative; overflow: hidden;
  transition: background var(--transition-fast);
  display: flex; flex-direction: column;
}
.project-card::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-mid));
  transform: scaleX(0); transform-origin: left; transition: transform var(--transition);
}
.project-card:hover::before { transform: scaleX(1); }
.project-card:hover { background: var(--dark-3); }
.project-image { height: 180px; margin: -40px -36px 32px; background: var(--dark-3); overflow: hidden; position: relative; }
.project-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; filter: grayscale(30%); }
.project-card:hover .project-image img { transform: scale(1.05); filter: grayscale(0%); }
.project-image-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--gray-dark); font-size: 32px; }
.project-number { font-family: var(--font-mono); font-size: 10px; letter-spacing: 3px; color: var(--gold-mid); margin-bottom: 16px; }
.project-title { font-family: var(--font-display); font-size: 24px; font-weight: 400; color: var(--white); margin-bottom: 12px; transition: color var(--transition-fast); }
.project-card:hover .project-title { color: var(--gold-mid); }
.project-desc { font-size: 14px; color: var(--gray); line-height: 1.7; flex: 1; margin-bottom: 20px; }
.project-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.project-tag { padding: 4px 10px; font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: var(--gold-mid); border: 1px solid rgba(245, 179, 1, 0.3); }
.project-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
  color: var(--gray-dark); transition: color var(--transition-fast); margin-top: auto;
}
.project-link:hover { color: var(--gold-mid); }
.project-link svg { width: 16px; height: 16px; transition: transform var(--transition-fast); }
.project-link:hover svg { transform: translateX(4px); }

/* ─── EDUCATION ──────────────────────────────────────────── */
#education { background: var(--dark-1); }
.edu-timeline { position: relative; padding-left: 40px; }
.edu-timeline::before {
  content: ''; position: absolute; left: 0; top: 8px; width: 1px; bottom: 8px;
  background: linear-gradient(to bottom, var(--gold-mid), transparent);
}
.edu-item {
  position: relative; margin-bottom: 48px; padding: 32px;
  background: var(--dark-2); border: 1px solid transparent;
  transition: border-color var(--transition-fast);
}
.edu-item:hover { border-color: rgba(245, 179, 1, 0.2); }
.edu-item::before {
  content: ''; position: absolute; left: -46px; top: 32px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--gold-mid); border: 3px solid var(--dark-1);
  box-shadow: 0 0 0 2px var(--gold-mid);
}
.edu-year { font-family: var(--font-mono); font-size: 11px; letter-spacing: 3px; color: var(--gold-mid); margin-bottom: 12px; }
.edu-school { font-family: var(--font-display); font-size: 28px; font-weight: 400; color: var(--white); margin-bottom: 6px; }
.edu-degree { font-size: 14px; color: var(--gold-light); margin-bottom: 4px; }
.edu-major { font-size: 14px; color: var(--gray); margin-bottom: 16px; }
.edu-desc { font-size: 14px; color: var(--gray); line-height: 1.7; }
.achievements-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin-top: 48px; }
.achievement-card {
  padding: 24px; background: var(--dark-2); border-left: 3px solid var(--gold-mid);
  position: relative; transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.achievement-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,0.3); }
.achievement-year { font-family: var(--font-mono); font-size: 10px; letter-spacing: 2px; color: var(--gold-mid); margin-bottom: 8px; }
.achievement-title { font-size: 16px; font-weight: 600; color: var(--white); margin-bottom: 6px; }
.achievement-desc { font-size: 13px; color: var(--gray); }

/* ─── GALLERY ────────────────────────────────────────────── */
#gallery { background: var(--dark-2); }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.gallery-item { aspect-ratio: 4/3; background: var(--dark-3); overflow: hidden; position: relative; cursor: pointer; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease, filter 0.4s ease; filter: grayscale(20%); }
.gallery-item:hover img { transform: scale(1.08); filter: grayscale(0%); }
.gallery-item::after { content: ''; position: absolute; inset: 0; background: rgba(245, 179, 1, 0); transition: background 0.4s ease; }
.gallery-item:hover::after { background: rgba(245, 179, 1, 0.08); }
.gallery-empty { grid-column: 1/-1; padding: 80px; text-align: center; color: var(--gray-dark); border: 1px dashed var(--dark-3); font-size: 14px; }

/* ─── CONTACT ────────────────────────────────────────────── */
#contact { background: var(--dark-1); position: relative; overflow: hidden; }
#contact::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-mid), transparent); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.contact-headline { font-family: var(--font-display); font-size: clamp(40px, 5vw, 72px); font-weight: 300; color: var(--white); line-height: 1.1; margin-bottom: 24px; }
.contact-headline em { color: var(--gold-mid); font-style: italic; }
.contact-subtitle { font-size: 15px; color: var(--gray); line-height: 1.7; margin-bottom: 40px; }
.contact-links { display: flex; flex-direction: column; gap: 16px; }
.contact-link {
  display: flex; align-items: center; gap: 16px; padding: 20px 24px;
  background: var(--dark-2); border: 1px solid transparent;
  transition: border-color var(--transition-fast), transform var(--transition-fast);
  color: var(--gray-light); font-size: 14px;
}
.contact-link:hover { border-color: rgba(245, 179, 1, 0.3); transform: translateX(8px); color: var(--gold-mid); }
.contact-link-icon { width: 40px; height: 40px; background: var(--dark-3); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--gold-mid); }
.contact-link-label { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--gray-dark); }
.contact-link-value { font-size: 14px; color: var(--gray-light); }
.contact-big-text { font-family: var(--font-display); font-size: clamp(60px, 12vw, 180px); font-weight: 700; color: transparent; -webkit-text-stroke: 1px rgba(245, 179, 1, 0.15); line-height: 1; user-select: none; white-space: nowrap; }

/* ─── FOOTER ─────────────────────────────────────────────── */
footer { background: var(--dark-2); padding: 32px 60px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--dark-3); }
.footer-copy { font-size: 12px; color: var(--gray-dark); font-family: var(--font-mono); letter-spacing: 1px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--gray-dark); transition: color var(--transition-fast); }
.footer-links a:hover { color: var(--gold-mid); }

/* ─── LIGHTBOX ───────────────────────────────────────────── */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.92); z-index: 5000; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; }
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 90vw; max-height: 90vh; object-fit: contain; }
.lightbox-close { position: absolute; top: 24px; right: 24px; width: 48px; height: 48px; background: rgba(245, 179, 1, 0.1); border: 1px solid rgba(245, 179, 1, 0.3); color: var(--gold-mid); font-size: 24px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s ease; }
.lightbox-close:hover { background: rgba(245, 179, 1, 0.2); }

/* ─── CUSTOM SECTIONS ────────────────────────────────────── */
.custom-section { background: var(--dark-1); }
.custom-section:nth-child(even) { background: var(--dark-2); }
.custom-content { font-size: 15px; color: var(--gray); line-height: 1.9; max-width: 800px; }
.custom-content p { margin-bottom: 16px; }

/* ─── SCROLL PROGRESS ────────────────────────────────────── */
.scroll-progress { position: fixed; top: 0; left: 0; height: 2px; background: linear-gradient(90deg, var(--gold-dark), var(--gold-mid)); z-index: 9999; transform-origin: left; width: 0%; transition: width 0.1s linear; }

/* ─── ANIMATIONS ─────────────────────────────────────────── */
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
@keyframes fadeRight { to { opacity: 1; transform: translateX(0); } }
@keyframes fadeLeft { to { opacity: 1; transform: translateX(0); } }
@keyframes slideUp { to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  section { padding: 80px 40px; }
  #navbar { padding: 20px 40px; }
  #navbar.scrolled { padding: 14px 40px; }
  #hero { grid-template-columns: 100px 1fr 120px; }
  .hero-side-nav { padding-left: 24px; }
  .about-grid { grid-template-columns: 1fr; gap: 60px; }
  .about-image-wrapper { max-width: 400px; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .contact-big-text { display: none; }
}

@media (max-width: 768px) {
  section { padding: 60px 24px; }
  #hero { grid-template-columns: 1fr; padding: 100px 24px 60px; display: flex; flex-direction: column; align-items: center; gap: 32px; }
  #navbar { padding: 16px 24px; }
  #navbar.scrolled { padding: 12px 24px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .hero-side-nav { display: none; }
  .hero-stats { flex-direction: row; padding-right: 0; gap: 24px; }
  .hero-stat { border-bottom: none; border-right: 1px solid rgba(245, 179, 1, 0.25); padding-right: 24px; padding-bottom: 0; }
  .hero-stat:last-child { border-right: none; padding-right: 0; }
  .skills-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .about-details { grid-template-columns: 1fr; }
  footer { flex-direction: column; gap: 16px; text-align: center; }
  .hero-scroll { display: none; }
  .section-header { flex-direction: column; }
  .hero-name { white-space: normal; font-size: clamp(20px, 5vw, 32px); }
}
