/* ============================================
   AAYUSH TILVA – PORTFOLIO
   Core Design System + All Animations
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ─── CSS Variables ─────────────────────────── */
:root {
  --bg: #0a0a0a;
  --surface: #111111;
  --border: #1e1e1e;
  --text-primary: #f0f0f0;
  --text-secondary: #888888;
  --text-muted: #444444;
  --accent: #ffffff;
  --font: 'Inter', sans-serif;
  --ease: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition: 0.65s var(--ease);
  --fast: 0.3s var(--ease);
}

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

html {
  font-size: 16px;
  cursor: none;
}

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; cursor: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ─── Custom Cursor ─────────────────────────── */
.cursor {
  position: fixed;
  width: 10px; height: 10px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: width 0.25s var(--ease-out), height 0.25s var(--ease-out);
  mix-blend-mode: difference;
}
.cursor-follower {
  position: fixed;
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}
.cursor.hovering { width: 56px; height: 56px; background: rgba(255,255,255,0.08); }

/* ─── Navigation Bar ─────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 40px;
}

.nav__logo {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-primary);
  mix-blend-mode: difference;
  position: relative;
  z-index: 1001;
}

/* ─── Hamburger Button (floating circle) ────── */
.menu-btn {
  position: fixed;
  top: 22px;
  right: 32px;
  z-index: 9999;
  width: 52px; height: 52px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: none;
  transition: background 0.3s ease;
  padding: 0;
  margin: 0;
  outline: none;
  display: block; /* Bypass flexbox button bugs */
  overflow: hidden; /* Contain the hover effect */
}

/* Base button bg is surface, but we use a pseudo-element for the hover fill */
.menu-btn::before, .footer__circle-btn::before, .footer__contact-btn::before {
  content: "";
  position: absolute;
  top: 100%; /* Start exactly below the button */
  left: 0;
  width: 100%;
  padding-bottom: 100%; /* Make it exactly as tall as wide */
  background: #455ce9; 
  border-radius: 50%; /* Give it the curved liquid edge */
  transform: translateY(105%); /* Start hidden below */
  z-index: -1;
  pointer-events: none;
}

/* On hover, slide up from the bottom to cover the button */
.menu-btn:hover::before, .footer__circle-btn:hover::before, .footer__contact-btn:hover::before {
  /* ease-out makes it start instantly, removing the "delay" feel */
  animation: fillUp 0.8s ease-out forwards;
}

@keyframes fillUp {
  0% { transform: translateY(105%); }
  100% { transform: translateY(-70%); } /* Stop near the top to keep curved edge */
}

/* On mouse out, continue sliding UP until fully hidden, then instantly reset to bottom */
.menu-btn:not(:hover)::before, .footer__circle-btn:not(:hover)::before, .footer__contact-btn:not(:hover)::before {
  /* ease-in makes it start slowly and accelerate out */
  animation: exitUp 0.7s ease-in forwards;
}

@keyframes exitUp {
  0% { transform: translateY(-70%); } /* Start where hover left off */
  99% { transform: translateY(-205%); } /* Slide all the way out the top */
  100% { transform: translateY(105%); } /* Reset instantly to bottom */
}

/* Ensure lines stay above the background */
.menu-btn__lines {
  position: absolute;
  top: 50%;
  left: 50%;
  /* Center exactly in the 52x52px circle */
  transform: translate(-50%, -50%);
  width: 20px;
  height: 12px;
}

.menu-btn__lines span {
  position: absolute;
  left: 0;
  width: 20px;
  height: 1.5px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.4s var(--ease), opacity 0.3s ease;
}

/* Position the 3 lines exactly */
.menu-btn__lines span:nth-child(1) { top: 0; }
.menu-btn__lines span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.menu-btn__lines span:nth-child(3) { bottom: 0; }

/* Menu open state — button transforms to X */
.menu-open .menu-btn { background: #1c1c1c; }
.menu-open .menu-btn__lines span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.menu-open .menu-btn__lines span:nth-child(2) { opacity: 0; transform: translateY(-50%) scaleX(0); }
.menu-open .menu-btn__lines span:nth-child(3) { bottom: auto; top: 50%; transform: translateY(-50%) rotate(-45deg); }

/* ─── Nav Overlay Panel ─────────────────────── */
.nav-overlay {
  position: fixed;
  top: 0; right: 0;
  width: 42%;
  height: 100vh;
  background: #111111;
  z-index: 5000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 60px;
  transform: translateX(102%);
  transition: transform 0.85s var(--ease);
  border-left: 1px solid var(--border);
}

.menu-open .nav-overlay { transform: translateX(0); }

/* Dark scrim behind the overlay */
.nav-scrim {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 4999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}
.menu-open .nav-scrim { opacity: 1; pointer-events: all; }

.nav-overlay__label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.nav-overlay__links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.nav-overlay__link {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: clamp(44px, 6vw, 80px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text-muted);
  transition: color 0.3s ease, transform 0.3s var(--ease-out);
  position: relative;
  transform: translateX(30px);
  opacity: 0;
}

/* Stagger-in when menu opens */
.menu-open .nav-overlay__link {
  opacity: 1;
  transform: translateX(0);
}
.menu-open .nav-overlay__link:nth-child(1) { transition: color 0.3s ease, opacity 0.5s 0.2s var(--ease-out), transform 0.5s 0.2s var(--ease-out); }
.menu-open .nav-overlay__link:nth-child(2) { transition: color 0.3s ease, opacity 0.5s 0.28s var(--ease-out), transform 0.5s 0.28s var(--ease-out); }
.menu-open .nav-overlay__link:nth-child(3) { transition: color 0.3s ease, opacity 0.5s 0.36s var(--ease-out), transform 0.5s 0.36s var(--ease-out); }
.menu-open .nav-overlay__link:nth-child(4) { transition: color 0.3s ease, opacity 0.5s 0.44s var(--ease-out), transform 0.5s 0.44s var(--ease-out); }

.nav-overlay__link:hover { color: var(--text-primary); }
.nav-overlay__link.active { color: var(--text-primary); }

/* Active dot bullet */
.nav-overlay__link .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--text-primary);
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.nav-overlay__link.active .dot { opacity: 1; }

/* Overlay socials section */
.nav-overlay__socials-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.nav-overlay__socials {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.nav-overlay__social {
  font-size: 13px;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  transition: color 0.25s ease;
}
.nav-overlay__social:hover { color: var(--text-primary); }

/* ─── PAGE TRANSITION CURTAIN ──────────────── */
.curtain {
  position: fixed;
  inset: 0;
  background: #0a0a0a;
  z-index: 8000;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Sits below viewport initially */
  transform: translateY(100%);
  transition: transform 0.6s var(--ease);
  pointer-events: none;
}

/* When arriving on a new page via transition, the <head> script adds
   .arriving to <html> BEFORE rendering so there is zero flash. */
html.arriving .curtain {
  transform: translateY(0) !important;
  transition: none !important;
  pointer-events: all;
}

/* CRITICAL: Force the text label to be visible instantly on the new page
   otherwise it defaults to opacity:0 and blinks until JS turns it to 1. */
html.arriving .curtain__label {
  opacity: 1 !important;
  transform: translateY(0) !important;
  transition: none !important;
}

/* Phase 1: curtain slides UP to cover page */
.curtain.slide-in { transform: translateY(0); pointer-events: all; }

/* Phase 2: curtain slides UP off screen to reveal new page */
.curtain.slide-out { transform: translateY(-100%); }

.curtain__label {
  display: flex;
  align-items: center;
  gap: 16px;
  /* Use system font so it never "bubbles"/FOUTs while Google Fonts load on the new page */
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  /* Text is now permanently affixed to the curtain, no fading */
}

.curtain.slide-in .curtain__label {
  opacity: 1;
  transform: translateY(0);
}

.curtain__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--text-secondary);
}

.curtain__text {
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-secondary);
}

/* ─── PRELOADER ─────────────────────────────── */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.preloader__text {
  font-size: clamp(48px, 9vw, 120px); /* Reduced from 60px, 12vw, 160px */
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.4s ease, transform 0.5s var(--ease-out);
}

.preloader__text.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Preloader slides UP to exit */
.preloader.exit {
  transform: translateY(-100%);
  transition: transform 0.8s 0.2s var(--ease);
  pointer-events: none;
}

/* ─── HERO SECTION ──────────────────────────── */
.hero {
  min-height: 100vh;
  padding-top: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  overflow: hidden;
}

.hero__text-col {
  padding: 0 48px;
  padding-top: 80px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.hero__name {
  font-size: clamp(72px, 11vw, 180px);
  font-weight: 900;
  line-height: 0.85;
  letter-spacing: -0.04em;
}

/* Clip-reveal for each word */
.clip-line {
  overflow: hidden;
  display: block;
}
.clip-line__inner {
  display: block;
  transform: translateY(110%);
  transition: transform 1s var(--ease-out);
}
.clip-line__inner.in { transform: translateY(0); }

.hero__title {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.hero__location {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.hero__location::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #4ade80;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50% { opacity:.5; transform:scale(1.5); }
}

.hero__image-col {
  height: 100vh;
  padding-top: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ─── Profile Photo ─────────────────────────── */
.photo-wrap {
  position: relative;
  width: min(380px, 90%);
  aspect-ratio: 3/4;
  border-radius: 4px;
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
}
.photo-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  filter: grayscale(20%) contrast(1.05);
  transition: filter 0.4s ease;
}
.photo-wrap:hover img { filter: grayscale(0%) contrast(1.1); }
.photo-spotlight {
  position: absolute; inset: 0;
  pointer-events: none; opacity: 0;
  transition: opacity 0.3s ease;
}
.photo-wrap:hover .photo-spotlight { opacity: 1; }
.photo-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 24px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: rgba(255,255,255,0.5);
}

/* ─── INTRO SECTION ─────────────────────────── */
.intro {
  padding: 120px 48px;
  border-top: 1px solid var(--border);
}

.intro__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: end;
}

.intro__label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.intro__text {
  font-size: clamp(28px, 3.5vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.intro__right { display: flex; flex-direction: column; gap: 24px; }

.intro__bio {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-secondary);
}

/* ─── WORK SECTION (preview rows) ───────────── */
.work-preview { padding: 0 48px 120px; }
.work-preview__inner { max-width: 1280px; margin: 0 auto; }

.work-preview__label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.project-row {
  display: grid;
  grid-template-columns: 56px 1fr auto auto;
  align-items: center;
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: padding-left 0.35s var(--ease-out);
  cursor: none;
}
.project-row:hover { padding-left: 16px; }

.project-row__num {
  font-size: 12px; letter-spacing: 0.08em;
  color: var(--text-muted); font-weight: 500;
}

.project-row__info { display: flex; flex-direction: column; gap: 4px; }

.project-row__name {
  font-size: clamp(20px, 2.5vw, 34px);
  font-weight: 700; letter-spacing: -0.01em;
  transition: color 0.25s ease;
}
.project-row:hover .project-row__name { color: var(--accent); }

.project-row__cat {
  font-size: 12px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--text-muted);
}

.project-row__hover-img {
  position: absolute; right: 80px; top: 50%;
  width: 160px; height: 100px;
  object-fit: cover; border-radius: 4px;
  transform: translateY(-50%) scale(0.85) rotate(-2deg);
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s ease, transform 0.45s var(--ease-out);
}
.project-row:hover .project-row__hover-img { opacity: 1; transform: translateY(-50%) scale(1) rotate(0deg); }

.project-row__year { font-size: 13px; color: var(--text-muted); }
.project-row__arrow { font-size: 20px; color: var(--text-muted); transition: transform 0.25s ease, color 0.25s ease; }
.project-row:hover .project-row__arrow { transform: translate(4px, -4px); color: var(--text-primary); }

/* ─── FOOTER ────────────────────────────────── */
.footer { padding: 100px 48px 40px; }
.footer__inner { max-width: 1280px; margin: 0 auto; }

.footer__main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: 80px;
  margin-bottom: 40px;
}

.footer__cta {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer__profile {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}

.footer__title {
  font-size: clamp(40px, 8vw, 100px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
}

.footer__circle-btn {
  width: 180px;
  height: 180px;
  background: #1c1c1c; /* Changed from blue so the fill effect is visible */
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  cursor: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.footer__circle-btn span {
  position: relative;
  z-index: 2; /* Text sits above the sweeping liquid */
}

/* Ensure fill is large enough to cover the whole button area */
.footer__circle-btn::before {
  width: 150%;
  left: -25%;
  padding-bottom: 150%;
}
.footer__contact-btn::before {
  width: 200%;
  left: -50%;
  padding-bottom: 200%;
}

/* Bottom elements */
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.footer__contacts {
  display: flex;
  gap: 16px;
}

.footer__contact-btn {
  position: relative;
  overflow: hidden;
  display: inline-block;
  padding: 16px 32px;
  border: 1px solid var(--border);
  border-radius: 40px;
  background: #1c1c1c;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 15px;
  cursor: none;
  z-index: 1;
}

.footer__contact-btn:hover { border-color: #455ce9; }

.footer__meta {
  display: flex;
  gap: 120px;
}

.footer__meta-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__meta-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

.footer__meta-value {
  font-size: 15px;
  color: var(--text-primary);
}

.footer__socials, .footer__socials-list {
  display: flex;
  gap: 48px; /* Increased from 36px to 48px for better spacing */
}

.footer__socials-list a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 15px;
}

.footer__social {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 15px;
  cursor: none;
}

/* ─── BUTTON ────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 32px; border: 1px solid var(--border);
  border-radius: 100px; font-size: 13px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-primary); background: transparent;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
  cursor: none;
}
.btn:hover { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.btn-primary { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.btn-primary:hover { background: transparent; color: var(--text-primary); }

.magnetic { display: inline-block; }

/* ─── SCROLL REVEAL ─────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ─── PAGE WRAPPER ───────────────────────────── */
.page { min-height: 100vh; padding-top: 90px; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 48px; }

/* ─── TYPOGRAPHY HELPERS ─────────────────────── */
.text-huge { font-size: clamp(60px, 10vw, 160px); font-weight: 900; line-height: 0.9; letter-spacing: -0.03em; }
.text-xl { font-size: clamp(36px, 5vw, 72px); font-weight: 800; line-height: 1; letter-spacing: -0.02em; }
.text-lg { font-size: clamp(22px, 3vw, 42px); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
.text-body { font-size: 17px; font-weight: 400; line-height: 1.75; color: var(--text-secondary); }
.text-small { font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }

/* ─── ABOUT PAGE ─────────────────────────────── */
.about-hero { padding: 60px 48px 80px; border-bottom: 1px solid var(--border); }
.about-hero__inner { max-width: 1280px; margin: 0 auto; }
.about-content { padding: 80px 48px; }
.about-content__inner { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.6fr; gap: 80px; }
.about-sidebar { position: sticky; top: 120px; height: fit-content; display: flex; flex-direction: column; gap: 40px; }
.about-main p { font-size: 17px; line-height: 1.85; color: var(--text-secondary); margin-bottom: 28px; }
.about-main p:last-child { margin-bottom: 0; }
.about-main strong { color: var(--text-primary); font-weight: 600; }

.skills-section { padding: 80px 48px; border-top: 1px solid var(--border); }
.skills-section__inner { max-width: 1280px; margin: 0 auto; }
.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin-top: 48px; }
.skill-category { padding: 32px; border: 1px solid var(--border); background: var(--surface); }
.skill-category__title { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 20px; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-tag { padding: 6px 14px; border: 1px solid var(--border); border-radius: 100px; font-size: 12px; font-weight: 500; color: var(--text-secondary); transition: all 0.25s ease; }
.skill-tag:hover { border-color: var(--text-primary); color: var(--text-primary); }

.achievements-section { padding: 80px 48px; border-top: 1px solid var(--border); }
.achievements-section__inner { max-width: 1280px; margin: 0 auto; }
.achievements-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin-top: 48px; }
.achievement-card { padding: 32px; border: 1px solid var(--border); background: var(--surface); }
.achievement-card__num { font-size: clamp(40px, 5vw, 72px); font-weight: 900; letter-spacing: -0.04em; line-height: 1; margin-bottom: 12px; }
.achievement-card__label { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }

/* ─── WORK PAGE ──────────────────────────────── */
.work-hero { padding: 60px 48px 80px; border-bottom: 1px solid var(--border); }
.work-hero__inner { max-width: 1280px; margin: 0 auto; }
.projects-list { padding: 0 48px 80px; }
.projects-list__inner { max-width: 1280px; margin: 0 auto; }

.project-card {
  border-bottom: 1px solid var(--border);
  padding: 80px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.project-card.visible { opacity: 1; transform: translateY(0); }
.project-card__image-wrap { overflow: hidden; border-radius: 4px; }
.project-card__image { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 4px; filter: grayscale(20%); transition: filter 0.5s ease, transform 0.5s var(--ease); }
.project-card:hover .project-card__image { filter: grayscale(0%); transform: scale(1.03); }
.project-card__meta { display: flex; flex-direction: column; gap: 28px; }
.project-card__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.project-card__tag { padding: 6px 14px; border: 1px solid var(--border); border-radius: 100px; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.project-card__title { font-size: clamp(32px, 4vw, 56px); font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.project-card__desc { font-size: 16px; line-height: 1.8; color: var(--text-secondary); }
.project-card__details { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.project-card__detail-item { display: flex; flex-direction: column; gap: 4px; }
.project-card__detail-label { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.project-card__detail-value { font-size: 14px; color: var(--text-secondary); font-weight: 500; }
.project-card__tech { display: flex; flex-wrap: wrap; gap: 8px; }
.tech-pill { padding: 4px 12px; background: var(--border); border-radius: 100px; font-size: 11px; font-weight: 500; color: var(--text-secondary); }

/* ─── CONTACT PAGE ───────────────────────────── */
.contact-hero { padding: 60px 48px 80px; border-bottom: 1px solid var(--border); }
.contact-hero__inner { max-width: 1280px; margin: 0 auto; }
.contact-main { padding: 80px 48px; }
.contact-main__inner { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.4fr; gap: 80px; }
.contact-info { display: flex; flex-direction: column; gap: 40px; }
.contact-info__item { display: flex; flex-direction: column; gap: 6px; }
.contact-info__label { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
.contact-info__value { font-size: 17px; color: var(--text-secondary); transition: color 0.25s ease; }
.contact-info__value:hover { color: var(--accent); }
.contact-socials { display: flex; flex-direction: column; gap: 12px; }
.contact-social { font-size: 14px; color: var(--text-secondary); transition: color 0.25s ease; display: flex; align-items: center; gap: 12px; }
.contact-social:hover { color: var(--text-primary); }
.contact-social::before { content: '↗'; font-size: 12px; color: var(--text-muted); }
.contact-form { display: flex; flex-direction: column; gap: 24px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-label { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
.form-input, .form-textarea { background: var(--surface); border: 1px solid var(--border); color: var(--text-primary); padding: 16px 20px; font-family: var(--font); font-size: 15px; border-radius: 4px; width: 100%; transition: border-color 0.25s ease; outline: none; cursor: none; }
.form-input:focus, .form-textarea:focus { border-color: var(--text-secondary); }
.form-textarea { min-height: 160px; resize: vertical; line-height: 1.6; }
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-muted); }

/* ─── Body lock when menu open ───────────────── */
body.menu-open { overflow: hidden; }

/* ─── MOBILE ──────────────────────────────────── */
@media (max-width: 900px) {
  html { cursor: auto; }
  .cursor, .cursor-follower { display: none; }
  a, .btn, button, input, textarea { cursor: auto; }
  .nav { padding: 20px 20px; }
  .menu-btn { top: 16px; right: 16px; }
  .nav-overlay { width: 100%; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding-bottom: 60px; }
  .hero__text-col { padding: 100px 24px 40px; }
  .hero__image-col { height: auto; padding: 0 24px 40px; justify-content: flex-start; }
  .photo-wrap { width: min(280px, 80%); }
  .intro { padding: 60px 24px; }
  .intro__inner { grid-template-columns: 1fr; gap: 40px; }
  .work-preview { padding: 0 24px 60px; }
  .project-row { grid-template-columns: 40px 1fr auto; gap: 16px; }
  .project-row__hover-img, .project-row__year { display: none; }
  .footer { padding: 60px 24px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .about-content { padding: 40px 24px; }
  .about-content__inner { grid-template-columns: 1fr; }
  .about-sidebar { position: static; }
  .skills-grid, .achievements-grid { grid-template-columns: 1fr; }
  .work-hero, .projects-list { padding: 40px 24px; }
  .project-card { grid-template-columns: 1fr; gap: 32px; }
  .contact-hero, .contact-main { padding: 40px 24px; }
  .contact-main__inner { grid-template-columns: 1fr; }
  .skills-section, .achievements-section { padding: 60px 24px; }
  .nav-overlay { padding: 80px 32px; }
  .nav-overlay__link { font-size: clamp(36px, 10vw, 56px); }
}
