/* ============================================
   MONTEREY RESUME — Dark Editorial + Fluid Motion
   ============================================ */

:root {
  --bg: #0a0a0a;
  --bg-elevated: #111111;
  --text: #e8e4df;
  --text-dim: #6b6560;
  --accent: #ff4d1a;
  --accent-glow: rgba(255, 77, 26, 0.15);
  --cream: #f5f0e8;
  --font-display: 'Syne', sans-serif;
  --font-serif: 'Playfair Display', serif;
  --font-mono: 'DM Mono', monospace;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

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

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--bg);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-display);
  overflow-x: hidden;
  cursor: none;
}

a {
  color: inherit;
  text-decoration: none;
  cursor: none;
}

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

/* Preloader */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-text {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 700;
  opacity: 0;
  animation: preloaderFadeIn 0.6s ease 0.2s forwards;
}

.preloader-bar {
  width: 120px;
  height: 2px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
  border-radius: 1px;
}

.preloader-fill {
  height: 100%;
  width: 0;
  background: var(--accent);
  animation: preloaderFill 1.2s var(--ease-out-expo) 0.4s forwards;
}

@keyframes preloaderFadeIn {
  to { opacity: 1; }
}

@keyframes preloaderFill {
  to { width: 100%; }
}

/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--accent);
  z-index: 9999;
  transition: none;
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.1);
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 1.2rem;
  cursor: none;
  z-index: 200;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s var(--ease-out-expo), border-color 0.3s ease, box-shadow 0.3s ease;
  pointer-events: none;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(255, 77, 26, 0.25);
}

/* Custom Cursor */
.cursor {
  position: fixed;
  width: 20px;
  height: 20px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.15s var(--ease-out-expo),
              width 0.3s var(--ease-out-expo),
              height 0.3s var(--ease-out-expo),
              background 0.3s ease;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}

.cursor.hover {
  width: 60px;
  height: 60px;
  background: var(--accent);
  mix-blend-mode: normal;
  opacity: 0.3;
}

.cursor-trail {
  position: fixed;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.4s var(--ease-out-expo),
              opacity 0.4s ease;
}

/* Grain Overlay */
.grain {
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 9000;
  opacity: 0.015;
  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");
  animation: grainShift 0.5s steps(1) infinite;
  will-change: transform;
}

@keyframes grainShift {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-5%, -5%); }
  50% { transform: translate(5%, 3%); }
  75% { transform: translate(-3%, 5%); }
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 3rem;
  z-index: 100;
  mix-blend-mode: difference;
}

/* Hamburger Menu Button */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: none;
  padding: 4px;
  z-index: 201;
}

.nav-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform 0.4s var(--ease-out-expo), opacity 0.3s ease, background 0.3s ease;
}

.nav-burger:hover span {
  background: var(--accent);
}

.nav-burger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-burger.active span:nth-child(2) {
  opacity: 0;
}

.nav-burger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Fullscreen Menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 199;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  text-align: center;
}

.mobile-menu-links a {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s ease, transform 0.5s var(--ease-out-expo), color 0.3s ease;
}

.mobile-menu.open .mobile-menu-links a {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu.open .mobile-menu-links a:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.open .mobile-menu-links a:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.open .mobile-menu-links a:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.open .mobile-menu-links a:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu.open .mobile-menu-links a:nth-child(5) { transition-delay: 0.3s; }

.mobile-menu-links a:hover {
  color: var(--accent);
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.4s var(--ease-out-expo);
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-time {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
}

.lang-toggle {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: transparent;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  cursor: none;
  transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.lang-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(255, 77, 26, 0.06);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 3rem;
  position: relative;
  overflow: hidden;
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--text-dim);
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeSlideUp 1s var(--ease-out-expo) 0.5s forwards;
}

.hero-name {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.85;
  letter-spacing: -0.04em;
}

.hero-name .line {
  display: block;
  overflow: hidden;
}

.hero-name .word {
  display: inline-block;
  font-size: clamp(6rem, 18vw, 16rem);
  opacity: 0;
  transform: translateY(100%);
  animation: wordReveal 1.2s var(--ease-out-expo) forwards;
}

.hero-name .line[data-delay="0"] .word {
  animation-delay: 0.3s;
}

.hero-name .line[data-delay="1"] .word {
  animation-delay: 0.5s;
}

.hero-name .outline {
  -webkit-text-stroke: 2px var(--text);
  color: transparent;
  margin-left: 8vw;
}

.hero-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: 4rem;
  opacity: 0;
  animation: fadeSlideUp 1s var(--ease-out-expo) 1s forwards;
}

.hero-scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.hero-scroll span {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  color: var(--text-dim);
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.3; transform: scaleY(0.5); }
}

.hero-tagline {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text-dim);
  text-align: right;
  line-height: 1.6;
}

.hero-year {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.15em;
}

.hero-bg-text {
  position: absolute;
  bottom: -5vh;
  right: -2vw;
  font-family: var(--font-display);
  font-size: clamp(8rem, 25vw, 22rem);
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.03);
  pointer-events: none;
  user-select: none;
  line-height: 1;
}

/* ============================================
   SECTIONS COMMON
   ============================================ */
.section {
  padding: 8rem 3rem;
  position: relative;
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 4rem;
  opacity: 0;
  transform: translateY(20px);
}

.section-label.visible {
  animation: fadeSlideUp 0.8s var(--ease-out-expo) forwards;
}

/* When section-label has data-anim, let data-anim handle the animation */
.section-label[data-anim].visible {
  animation: none;
}

/* ============================================
   ABOUT
   ============================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 6rem;
  align-items: start;
}

.about-photo {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
}

.photo-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--bg-elevated) 0%, #1a1a1a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
}

.photo-placeholder-card {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01)),
    linear-gradient(145deg, #141414 0%, #0d0d0d 68%, #090909 100%);
}

.photo-placeholder-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 77, 26, 0.08), transparent 34%),
    linear-gradient(180deg, transparent, rgba(255,255,255,0.03), transparent);
  opacity: 0.65;
}

.photo-placeholder-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.08;
}

.photo-placeholder-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  text-align: center;
  padding: 2rem;
}

.photo-placeholder-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  color: rgba(232, 228, 223, 0.72);
  text-transform: uppercase;
}

.photo-placeholder-meta {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  color: rgba(232, 228, 223, 0.38);
  text-transform: uppercase;
}

.photo-initial {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(6rem, 12vw, 9rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1;
  opacity: 0.95;
  text-transform: uppercase;
}

.photo-border {
  position: absolute;
  top: 1rem;
  left: 1rem;
  right: -1rem;
  bottom: -1rem;
  border: 1px solid var(--accent);
  pointer-events: none;
  transition: transform 0.6s var(--ease-out-expo), border-color 0.3s ease;
}

.about-photo:hover .photo-border {
  transform: translate(-0.8rem, -0.8rem);
  border-color: rgba(255, 77, 26, 0.8);
}

.about-content h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: 3rem;
}

.about-content h2 em {
  color: var(--accent);
  font-style: italic;
}

.about-content h2 .accent-char {
  color: var(--accent);
}

.about-content h2 .indent-1 {
  display: inline-block;
  padding-left: 1em;
}

.about-content h2 .indent-2 {
  display: inline-block;
  padding-left: 2em;
}

.about-copy {
  max-width: 560px;
  margin-bottom: 2.5rem;
  font-size: 0.98rem;
  line-height: 1.8;
  color: var(--text-dim);
}

.about-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.detail-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.detail-value {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
}

.detail-value.blink {
  color: var(--accent);
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}


/* ============================================
   EXPERIENCE
   ============================================ */
.exp-list {
  display: flex;
  flex-direction: column;
}

.exp-item {
  display: grid;
  grid-template-columns: 150px 1fr 60px;
  gap: 3rem;
  padding: 3rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 2px solid transparent;
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s var(--ease-out-expo), transform 0.3s ease, border-left-color 0.3s ease;
}

.exp-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.exp-item:hover {
  transform: translateX(8px);
  border-left-color: var(--accent);
}
  opacity: 1;
  transform: translateY(0);
}

.exp-item::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.8s var(--ease-out-expo);
}

.exp-item:hover::before {
  width: 100%;
}

.exp-period {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  padding-top: 0.3rem;
}

.exp-role {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.exp-item:hover .exp-role {
  color: var(--accent);
}

.exp-company {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.exp-desc {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-dim);
  max-width: 500px;
}

.exp-index {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.03);
  text-align: right;
  line-height: 1;
  transition: color 0.3s ease;
}

.exp-item:hover .exp-index {
  color: rgba(255, 77, 26, 0.15);
}

/* ============================================
   SKILLS
   ============================================ */
.skills-marquee {
  overflow: hidden;
  padding: 2rem 0;
  margin: -2rem -3rem 4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.skills-marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-track {
  display: flex;
  gap: 2rem;
  animation: marquee 20s linear infinite;
  width: max-content;
}

.marquee-track span {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 800;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.marquee-track span:hover {
  -webkit-text-stroke-color: var(--accent);
  text-shadow: 0 0 40px var(--accent-glow);
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

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

.skill-card {
  background: var(--bg-elevated);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s var(--ease-out-expo), transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.skill-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(255, 77, 26, 0.12);
}
  opacity: 1;
  transform: translateY(0);
}

.skill-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease-out-expo);
}

.skill-card:hover::before {
  transform: scaleX(1);
}

.skill-card:hover {
  background: #161616;
  transform: translateY(-4px);
}

.skill-icon {
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.skill-card h4 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
}

.skill-bar {
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.06);
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  background: var(--accent);
  width: 0;
  transition: width 1.5s var(--ease-out-expo);
}

.skill-card.visible .skill-fill {
  width: var(--fill-width);
}

.skill-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.skill-card li {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  padding-left: 1rem;
  position: relative;
}

.skill-card li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
  opacity: 0.5;
}

/* ============================================
   PROJECTS
   ============================================ */
.projects-list {
  display: flex;
  flex-direction: column;
}

.project-item {
  display: grid;
  grid-template-columns: 60px 1fr auto 40px;
  gap: 2rem;
  align-items: center;
  padding: 2.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s var(--ease-out-expo);
}

.project-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.project-item::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out-expo);
  pointer-events: none;
}

.project-item:hover::after {
  transform: scaleX(1);
}

.project-index {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}

.project-name {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
  transition: color 0.3s ease, transform 0.3s var(--ease-out-expo);
}

.project-item:hover .project-name {
  color: var(--accent);
  transform: translateX(0.5rem);
}

.project-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  padding: 0.4rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.project-arrow {
  font-size: 1.5rem;
  color: var(--text-dim);
  transition: all 0.3s var(--ease-out-expo);
}

.project-item:hover .project-arrow {
  color: var(--accent);
  transform: translate(4px, -4px);
}

/* Project Hover Preview - Hidden for cleaner look */
.project-preview {
  display: none;
}
  border: 1px solid rgba(255,255,255,0.04);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s var(--ease-out-expo);
  z-index: 1;
}

.project-item:hover .project-preview {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.contact-content {
  position: relative;
  z-index: 2;
}

.contact-heading {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 4rem;
}

.contact-heading .line {
  display: block;
}

.contact-heading em {
  color: var(--accent);
  font-style: italic;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.contact-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.8rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.3s var(--ease-out-expo), transform 0.3s ease;
}

.contact-link:hover {
  transform: translateX(8px);
  border-bottom-color: rgba(255, 77, 26, 0.3);
}

.contact-link:hover {
  padding-left: 1.5rem;
  border-bottom-color: var(--accent);
}

.contact-link-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.contact-link-value {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.contact-link:hover .contact-link-value {
  color: var(--accent);
}

.contact-decoration {
  position: absolute;
  bottom: -2rem;
  right: -1rem;
  font-family: var(--font-display);
  font-size: clamp(6rem, 15vw, 14rem);
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.02);
  pointer-events: none;
  user-select: none;
}

/* ============================================
   GAME LINK
   ============================================ */
.game-trigger-section { text-align: center; }

.game-invite {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.game-invite-text {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1.3;
}

.game-invite-text em { color: var(--accent); font-style: italic; }

.game-invite-hint {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 0.08em;
}

.game-start-btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--accent);
  padding: 1rem 2.5rem;
  cursor: none;
  text-decoration: none;
  transition: all 0.3s ease, transform 0.3s var(--ease-out-expo);
}

.game-start-btn:hover {
  background: var(--accent);
  color: var(--bg);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 77, 26, 0.3);
}

@keyframes screenShake {
  0%, 100% { transform: translate(0, 0); }
  10% { transform: translate(-4px, 2px); }
  30% { transform: translate(3px, -3px); }
  50% { transform: translate(-2px, 3px); }
  70% { transform: translate(4px, -1px); }
  90% { transform: translate(-1px, 2px); }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 3rem;
  background: var(--bg);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  transition: opacity 0.6s ease;
}

.footer-left,
.footer-center,
.footer-right a {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--text-dim);
}

.footer-right a {
  transition: color 0.3s ease;
}

.footer-right a:hover {
  color: var(--accent);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes wordReveal {
  from {
    opacity: 0;
    transform: translateY(100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Diverse Entry Animations */
/* clip-path reveal */
[data-anim="clip"] {
  opacity: 0;
  clip-path: inset(0 100% 0 0);
  transition: opacity 0.8s var(--ease-out-expo), clip-path 0.8s var(--ease-out-expo);
}

[data-anim="clip"].visible {
  opacity: 1;
  clip-path: inset(0 0 0 0);
}

/* slide from left */
[data-anim="slide-left"] {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}

[data-anim="slide-left"].visible {
  opacity: 1;
  transform: translateX(0);
}

/* slide from right */
[data-anim="slide-right"] {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}

[data-anim="slide-right"].visible {
  opacity: 1;
  transform: translateX(0);
}

/* simple fade up (default variety) */
[data-anim="fade"] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

[data-anim="fade"].visible {
  opacity: 1;
  transform: translateY(0);
}

/* Focus Styles */
*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Pointer-aware cursor hiding */
@media (pointer: coarse) {
  .cursor, .cursor-trail { display: none !important; }
  body, a, button { cursor: auto !important; }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .hero { padding: 0 1.5rem; }
  .section { padding: 5rem 1.5rem; }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .about-photo { max-width: 280px; }
  .about-details { grid-template-columns: 1fr; }
  .exp-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .exp-index { display: none; }
  .skills-grid { grid-template-columns: 1fr; }
  .project-item {
    grid-template-columns: 40px 1fr 40px;
  }
  .project-tag { display: none; }
  .project-preview { display: none; }
  .footer { flex-direction: column; gap: 1rem; text-align: center; }
  .cursor, .cursor-trail { display: none; }
  body, a, button { cursor: auto; }
  .back-to-top { cursor: pointer; }
}
