/* ===================================
   AWWWARDS-LEVEL PORTFOLIO
   Cinematic · Immersive · Premium
   Zohaib Ahmad — 2026
   =================================== */

/* ─── Design Tokens ─── */
:root {
  /* Colors — Lime Green + Warm Yellow palette */
  --bg: #0a0a0b;
  --bg-elevated: #111113;
  --bg-card: #161618;
  --bg-card-hover: #1c1c1f;

  --text-primary: #f5f5f7;
  --text-secondary: #8e8e93;
  --text-tertiary: #48484a;

  --accent: #84cc16;
  --accent-light: #a3e635;
  --accent-subtle: rgba(132, 204, 22, 0.08);
  --accent-glow: rgba(132, 204, 22, 0.3);

  --gradient-1: linear-gradient(135deg, #84cc16, #a3e635, #d9f99d);
  --gradient-2: linear-gradient(135deg, #84cc16, #eab308);
  --gradient-3: linear-gradient(135deg, #f59e0b, #ef4444, #ec4899);

  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Spacing */
  --nav-height: 72px;
  --section-padding: clamp(80px, 12vw, 160px);
  --container-padding: clamp(20px, 5vw, 60px);
  --max-width: 1440px;

  /* Typography */
  --font-display: 'Space Grotesk', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  /* Cursor */
  --cursor-size: 16px;
  --cursor-ring-size: 40px;
}


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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: auto;
  /* Lenis handles this */
}

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

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

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

button {
  cursor: none;
  border: none;
  background: none;
  font-family: inherit;
}

img {
  display: block;
  max-width: 100%;
}

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


/* ─── Custom Cursor ─── */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 99999;
  mix-blend-mode: difference;
}

.cursor-dot {
  width: var(--cursor-size);
  height: var(--cursor-size);
  background: white;
  border-radius: 50%;
  position: absolute;
  top: calc(var(--cursor-size) / -2);
  left: calc(var(--cursor-size) / -2);
  transition: width 0.3s var(--ease-out-expo),
    height 0.3s var(--ease-out-expo),
    top 0.3s var(--ease-out-expo),
    left 0.3s var(--ease-out-expo);
}

.cursor-ring {
  width: var(--cursor-ring-size);
  height: var(--cursor-ring-size);
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  position: absolute;
  top: calc(var(--cursor-ring-size) / -2);
  left: calc(var(--cursor-ring-size) / -2);
  transition: width 0.4s var(--ease-out-expo),
    height 0.4s var(--ease-out-expo),
    top 0.4s var(--ease-out-expo),
    left 0.4s var(--ease-out-expo),
    border-color 0.3s ease,
    opacity 0.3s ease;
}

body.cursor-hover .cursor-dot {
  width: 60px;
  height: 60px;
  top: -30px;
  left: -30px;
  opacity: 0.15;
}

body.cursor-hover .cursor-ring {
  width: 80px;
  height: 80px;
  top: -40px;
  left: -40px;
  border-color: var(--accent);
}


/* ─── Aurora Mesh Overlay ─── */
.grain-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.grain-overlay::before,
.grain-overlay::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.06;
}

/* Top-right green blob */
.grain-overlay::before {
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #84cc16 0%, transparent 70%);
  animation: auroraFloat1 20s ease-in-out infinite;
}

/* Bottom-left yellow-green blob */
.grain-overlay::after {
  bottom: -15%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #eab308 0%, transparent 70%);
  animation: auroraFloat2 25s ease-in-out infinite;
}

@keyframes auroraFloat1 {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(-80px, 60px) scale(1.2);
  }

  66% {
    transform: translate(40px, -30px) scale(0.9);
  }
}

@keyframes auroraFloat2 {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(60px, -50px) scale(1.15);
  }

  66% {
    transform: translate(-40px, 40px) scale(0.85);
  }
}


/* ─── Loader ─── */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.loader-name {
  display: flex;
  gap: 4px;
  overflow: hidden;
}

.loader-letter {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  color: var(--text-primary);
  display: inline-block;
  transform: translateY(100%);
  opacity: 0;
}

.loader-bar {
  width: 200px;
  height: 2px;
  background: var(--border);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.loader-bar-fill {
  width: 0%;
  height: 100%;
  background: var(--gradient-1);
  border-radius: var(--radius-full);
}

.loader-counter {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
}


/* ─── Navigation ─── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 24px var(--container-padding);
  transition: background-color 0.5s ease, backdrop-filter 0.5s ease;
}

.nav.scrolled {
  background-color: rgba(10, 10, 11, 0.8);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 2px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  z-index: 1001;
  position: relative;
}

.logo-dot {
  width: 8px;
  height: 8px;
  background: var(--gradient-1);
  border-radius: 50%;
  display: inline-block;
  margin-bottom: -2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 8px 0;
  transition: color 0.3s ease;
  letter-spacing: 0.01em;
}

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

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

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

.nav-menu-btn {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  z-index: 1001;
}

.menu-line {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.4s var(--ease-out-expo);
  transform-origin: center;
}

.nav-menu-btn.active .menu-line:first-child {
  transform: rotate(45deg) translate(3px, 3px);
}

.nav-menu-btn.active .menu-line:last-child {
  transform: rotate(-45deg) translate(3px, -3px);
}


/* ─── Mobile Menu ─── */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ease-out-expo);
}

.mobile-menu.active {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.mobile-menu-link {
  display: flex;
  align-items: center;
  gap: 20px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 4rem);
  font-weight: 700;
  color: var(--text-primary);
  transform: translateY(40px);
  opacity: 0;
  transition: color 0.3s ease;
}

.mobile-menu-link:hover {
  color: var(--accent-light);
}

.mobile-menu.active .mobile-menu-link {
  transform: translateY(0);
  opacity: 1;
}

.mobile-menu-number {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--text-tertiary);
}

.mobile-menu-text {
  letter-spacing: -0.03em;
}


/* ─── Hero Section ─── */
.hero {
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding: calc(var(--nav-height) + 32px) var(--container-padding) 40px;
  overflow: hidden;
  box-sizing: border-box;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-gradient {
  position: absolute;
  top: -30%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  opacity: 0.3;
  filter: blur(100px);
  animation: floatGradient 15s ease-in-out infinite;
}

@keyframes floatGradient {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  25% {
    transform: translate(-50px, 30px) scale(1.1);
  }

  50% {
    transform: translate(30px, -40px) scale(0.95);
  }

  75% {
    transform: translate(-20px, -20px) scale(1.05);
  }
}

.hero-grid-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 80%);
}

.hero-content {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 36px;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px 8px 12px;
  background: var(--accent-subtle);
  border: 1px solid rgba(132, 204, 22, 0.15);
  border-radius: var(--radius-full);
  width: fit-content;
  opacity: 0;
  transform: translateY(20px);
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
  }

  50% {
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);
  }
}

.badge-text {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6.5vw, 5.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--text-primary);
}

.title-line {
  display: flex;
  align-items: baseline;
  gap: clamp(12px, 2vw, 24px);
  overflow: hidden;
}

.title-word {
  display: inline-block;
  transform: translateY(110%);
}

.title-stroke {
  -webkit-text-stroke: 1.5px var(--text-primary);
  color: transparent;
}

.title-gradient {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.title-ampersand {
  font-size: 0.5em;
  color: var(--accent);
  display: inline-block;
  transform: translateY(110%);
}

.title-accent {
  color: var(--accent);
  display: inline-block;
  transform: translateY(110%);
}

.hero-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

.hero-info {
  max-width: 480px;
}

.hero-description {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: var(--text-secondary);
  line-height: 1.7;
  opacity: 0;
  transform: translateY(30px);
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
  opacity: 0;
  transform: translateY(30px);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: linear-gradient(135deg, #84cc16 90%, #eab308 100%);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  color: white;
  transition: all 0.4s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #a3e635 90%, #facc15 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 32px var(--accent-glow);
}

.btn-text,
.btn-arrow {
  position: relative;
  z-index: 1;
}

.btn-arrow {
  display: flex;
  transition: transform 0.3s var(--ease-out-expo);
}

.btn-primary:hover .btn-arrow {
  transform: translateX(4px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: transparent;
  border: 1.5px solid var(--border-hover);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: all 0.4s var(--ease-out-expo);
}

.btn-secondary:hover {
  border-color: var(--accent-light);
  color: var(--accent-light);
  background: var(--accent-subtle);
  transform: scale(1.03);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0;
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 20px;
  background: white;
  animation: scrollDown 2s var(--ease-in-out) infinite;
}

@keyframes scrollDown {
  0% {
    transform: translateY(-20px);
  }

  100% {
    transform: translateY(80px);
  }
}

.scroll-text {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-tertiary);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}


/* ─── Marquee Section ─── */
.marquee-section {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.marquee-track {
  display: flex;
  width: fit-content;
  animation: marquee 30s linear infinite;
}

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

  100% {
    transform: translateX(-50%);
  }
}

.marquee-content {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 0 20px;
  white-space: nowrap;
}

.marquee-content span {
  font-family: var(--font-display);
  font-size: clamp(0.875rem, 1.5vw, 1.125rem);
  font-weight: 500;
  color: var(--text-tertiary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.marquee-dot {
  color: var(--accent) !important;
  font-size: 0.75rem !important;
}


/* ─── Section Label ─── */
.section-label {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 60px;
  padding: 0 var(--container-padding);
}

.label-number {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--accent);
  letter-spacing: 0.05em;
}

.label-line {
  width: 40px;
  height: 1px;
  background: var(--border-hover);
}

.label-text {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}


/* ─── Work Section ─── */
.work-section {
  padding: var(--section-padding) 0;
  max-width: var(--max-width);
  margin: 0 auto;
}

.work-header {
  padding: 0 var(--container-padding);
  margin-bottom: 80px;
}

.work-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.work-title-outline {
  -webkit-text-stroke: 1.5px var(--text-primary);
  color: transparent;
}

.projects-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.project-card {
  display: block;
  padding: 40px var(--container-padding);
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: background-color 0.5s ease;
}

.project-card:last-child {
  border-bottom: 1px solid var(--border);
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--accent-subtle), transparent);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.project-card:hover::before {
  opacity: 1;
}

.project-card:hover {
  background-color: rgba(255, 255, 255, 0.02);
}

.project-card-inner {
  display: grid;
  grid-template-columns: 120px 1fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.project-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.project-number {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  letter-spacing: 0.05em;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.project-tags span {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--text-tertiary);
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.project-card:hover .project-tags span {
  border-color: var(--border-hover);
  color: var(--text-secondary);
}

.project-visual {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  aspect-ratio: 16 / 10;
}

.project-img-wrapper {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.project-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(80%) brightness(0.7);
  transition: all 0.8s var(--ease-out-expo);
  transform: scale(1.05);
}

.project-card:hover .project-img-wrapper img {
  filter: grayscale(0%) brightness(1);
  transform: scale(1);
}

.project-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.project-name {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  transition: color 0.3s ease;
}

.project-card:hover .project-name {
  color: var(--accent-light);
}

.project-description {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 400px;
}

.project-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
}

.project-cta-text {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-light);
  letter-spacing: 0.01em;
}

.project-cta-arrow {
  font-size: 1.125rem;
  color: var(--accent-light);
  transition: transform 0.3s var(--ease-out-expo);
}

.project-card:hover .project-cta-arrow {
  transform: translateX(6px);
}


/* ─── About Section ─── */
.about-section {
  padding: var(--section-padding) 0;
  max-width: var(--max-width);
  margin: 0 auto;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  padding: 0 var(--container-padding);
  align-items: start;
}

.about-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  position: sticky;
  top: 120px;
}

.about-highlight {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-right {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.about-image-wrapper {
  position: relative;
}

.about-image-frame {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

.about-image-frame::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom,
      rgba(255, 255, 255, 0) 50%,
      rgba(0, 0, 0, 0.25) 50%);
  background-size: 100% 4px;
  pointer-events: none;
  z-index: 2;
  opacity: 0.6;
  transition: opacity 0.4s ease;
}

.about-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.1) brightness(0.9);
  transition: all 0.6s var(--ease-out-expo);
  transform: scale(1.02);
}

.about-image-frame:hover img {
  transform: scale(1.1);
  filter: grayscale(0%) contrast(1) brightness(1);
}

.about-image-frame:hover::after {
  opacity: 0.2;
}

.about-image-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  backdrop-filter: blur(20px);
}

.about-image-badge span {
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

.about-image-badge strong {
  font-size: 0.9375rem;
  color: var(--text-primary);
  font-weight: 600;
}

.about-bio {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-bio p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.stat-number::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--accent);
  margin-left: 2px;
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  font-weight: 500;
}


/* ─── Skills / Bento Grid ─── */
.skills-section {
  padding: var(--section-padding) 0;
  max-width: var(--max-width);
  margin: 0 auto;
}

.skills-header {
  padding: 0 var(--container-padding);
  margin-bottom: 60px;
}

.skills-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.skills-title-outline {
  -webkit-text-stroke: 1.5px var(--text-primary);
  color: transparent;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 0 var(--container-padding);
}

.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  position: relative;
  overflow: hidden;
  transition: all 0.5s var(--ease-out-expo);
  display: flex;
  flex-direction: column;
  height: 470px;
}

.bento-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
}

.bento-card-glow {
  position: absolute;
  top: -100px;
  right: -100px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
  filter: blur(60px);
  pointer-events: none;
}

.bento-card:hover .bento-card-glow {
  opacity: 0.3;
}

.bento-large {
  grid-column: span 1;
}

.bento-medium {
  grid-column: span 1;
}

.bento-wide {
  grid-column: 1 / -1;
  height: auto;
  min-height: 200px;
}

.bento-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-subtle);
  border: 1px solid rgba(132, 204, 22, 0.15);
  border-radius: var(--radius-md);
  color: var(--accent-light);
  margin-bottom: 24px;
}

/* GIF icon variant */
.bento-icon-gif {
  width: 64px;
  height: 64px;
  padding: 0;
  overflow: hidden;
  background: transparent;
  border: 2px solid rgba(132, 204, 22, 0.2);
  border-radius: var(--radius-md);
}

.bento-icon-gif img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: calc(var(--radius-md) - 2px);
  filter: brightness(1.1);
  transition: transform 0.4s var(--ease-out-expo);
}

.bento-card:hover .bento-icon-gif img {
  transform: scale(1.08);
}

.bento-number {
  position: absolute;
  top: 28px;
  right: 32px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-tertiary);
  letter-spacing: 0.05em;
}

.bento-title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.bento-title-sm {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--text-secondary);
}

.bento-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

.bento-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.bento-tags span {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-tertiary);
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
  transition: all 0.3s ease;
}

.bento-card:hover .bento-tags span {
  border-color: var(--border-hover);
  color: var(--text-secondary);
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.tool-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
}

.tool-item:hover {
  border-color: var(--accent);
  background: var(--accent-subtle);
}

.tool-name {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.tool-item:hover .tool-name {
  color: var(--accent-light);
}


/* ─── Contact Section ─── */
.contact-section {
  padding: var(--section-padding) 0;
  position: relative;
  overflow: hidden;
}

.contact-section::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
  opacity: 0.15;
  filter: blur(80px);
  pointer-events: none;
}

.contact-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.contact-content {
  padding: 0 var(--container-padding);
  margin-bottom: 80px;
  text-align: center;
}

.contact-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.contact-title span {
  display: inline;
}

.contact-title-gradient {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 var(--container-padding);
  max-width: 800px;
  margin: 0 auto;
}


.contact-link {
  background: var(--bg-card);
  color: var(--text-primary);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 28px 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all 0.4s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.contact-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--accent-subtle), transparent);
  transition: left 0.6s var(--ease-out-expo);
}

.contact-link:hover::before {
  left: 100%;
}

.contact-link:hover {
  border-color: var(--accent);
  background: var(--accent-subtle);
  transform: translateX(8px);
}

.contact-link-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1.25rem;
  color: var(--text-secondary);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.contact-link:hover .contact-link-icon {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.contact-link-text {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  flex-grow: 1;
}

.contact-link-arrow {
  display: flex;
  color: var(--text-tertiary);
  transition: all 0.3s var(--ease-out-expo);
}

.contact-link:hover .contact-link-arrow {
  color: var(--accent-light);
  transform: translate(4px, -4px);
}


/* ─── Footer ─── */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px var(--container-padding);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.footer-dot {
  color: var(--accent);
}

.footer-copy {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
}

.footer-back-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 12px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  transition: all 0.3s ease;
}

.footer-back-top:hover {
  border-color: var(--accent);
  color: var(--accent-light);
}

.footer-back-top svg {
  transition: transform 0.3s var(--ease-out-expo);
}

.footer-back-top:hover svg {
  transform: translateY(-3px);
}


/* ─── Responsive ─── */
@media (max-width: 1200px) {
  .bento-grid {
    grid-template-columns: 1fr 1fr;
  }

  .bento-large {
    grid-column: span 1;
    grid-row: span 1;
  }
}

@media (max-width: 1024px) {
  .project-card-inner {
    grid-template-columns: 80px 1fr;
    gap: 24px;
  }

  .project-visual {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .project-info {
    grid-column: 1 / -1;
    grid-row: 3;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-title {
    position: static;
  }

  .hero-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-menu-btn {
    display: flex;
  }

  .hero {
    padding: calc(var(--nav-height) + 24px) var(--container-padding) 32px;
  }

  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }

  .btn-primary,
  .btn-secondary {
    justify-content: center;
    width: 100%;
  }

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

  .bento-large {
    grid-column: span 1;
    grid-row: span 1;
  }

  .bento-wide {
    grid-column: span 1;
  }

  .project-card-inner {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .project-meta {
    flex-direction: row;
    align-items: center;
    gap: 16px;
  }

  .about-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .stat-number {
    font-size: 2rem;
  }

  .contact-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .footer-inner {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }

  .hero-scroll-indicator {
    display: none;
  }

  /* Hide custom cursor on touch devices */
  .cursor {
    display: none;
  }

  body {
    cursor: auto;
  }

  a,
  button {
    cursor: pointer;
  }
}

@media (max-width: 480px) {
  .title-stroke {
    -webkit-text-stroke-width: 1px;
  }

  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-image-badge {
    right: 0;
    bottom: -16px;
  }

  .contact-link {
    padding: 20px 24px;
    gap: 16px;
  }

  .contact-link-text {
    font-size: 0.9375rem;
    word-break: break-all;
  }

  .contact-link-icon {
    width: 40px;
    height: 40px;
    font-size: 1.125rem;
  }
}

/* Touch devices — disable custom cursor */
@media (hover: none) and (pointer: coarse) {
  .cursor {
    display: none;
  }

  body,
  a,
  button {
    cursor: auto;
  }
}