/* ============================================================
   vX Portfolio — Cinematic Maximalist Design System
   ============================================================ */

/* --- Design Tokens --- */
:root {
  --bg: #030303;
  --bg-alt: #0a0a0a;
  --text: #ffffff;
  --accent: #8B5CF6;
  --accent-deep: #6D28D9;
  --accent-warm: #A78BFA;
  --white: #FFFFFF;
  --white-10: rgba(255, 255, 255, 0.1);
  --white-40: rgba(255, 255, 255, 0.4);
  --white-60: rgba(255, 255, 255, 0.6);
  --zinc-600: #52525b;
  --zinc-800: #27272a;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --font-display: 'Cabinet Grotesk', sans-serif;
  --font-body: 'Satoshi', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

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

html {
  overflow: hidden;
  height: 100%;
}

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

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--accent-deep);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 1.6;
  overflow: hidden;
  height: 100%;
  cursor: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

button {
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  cursor: none;
  outline: none;
}

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

/* --- Custom Cursor --- */
.cursor {
  position: fixed;
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1000000;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  transition: width 0.4s var(--ease), height 0.4s var(--ease), background 0.4s var(--ease), mix-blend-mode 0.4s var(--ease);
}

.cursor.cursor-hover {
  width: 72px;
  height: 72px;
  background: var(--white);
  mix-blend-mode: difference;
}

.cursor-follower {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1px solid var(--white-40);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1000000;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  transition: width 0.4s var(--ease), height 0.4s var(--ease), opacity 0.4s var(--ease);
}

.cursor.cursor-hover~.cursor-follower {
  width: 0;
  height: 0;
  opacity: 0;
}

/* --- SVG Grain Overlay --- */
.grain-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9000;
  opacity: 0.05;
}

.grain-overlay svg {
  width: 100%;
  height: 100%;
}

@keyframes grainShift {
  0% {
    transform: translate(0, 0);
  }

  20% {
    transform: translate(-2%, 2%);
  }

  40% {
    transform: translate(2%, -2%);
  }

  60% {
    transform: translate(-1%, 3%);
  }

  80% {
    transform: translate(3%, -1%);
  }

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

.grain-overlay svg {
  animation: grainShift 0.8s steps(5) infinite;
}

/* --- Mesh Blobs --- */
.blobs-container {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  mix-blend-mode: soft-light;
  opacity: 0.25;
  will-change: transform;
}

.blob-1 {
  width: 500px;
  height: 500px;
  background: var(--accent);
  top: 10%;
  left: 15%;
  animation: floatBlob1 15s ease-in-out infinite;
}

.blob-2 {
  width: 400px;
  height: 400px;
  background: var(--accent-deep);
  top: 50%;
  right: 10%;
  animation: floatBlob2 18s ease-in-out infinite;
}

.blob-3 {
  width: 350px;
  height: 350px;
  background: var(--accent-warm);
  bottom: 10%;
  left: 40%;
  animation: floatBlob3 20s ease-in-out infinite;
}

@keyframes floatBlob1 {

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

  33% {
    transform: translate(30px, -30px) scale(1.05);
  }

  66% {
    transform: translate(-20px, 30px) scale(0.95);
  }
}

@keyframes floatBlob2 {

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

  33% {
    transform: translate(-40px, 20px) scale(1.1);
  }

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

@keyframes floatBlob3 {

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

  33% {
    transform: translate(25px, 30px) scale(1.05);
  }

  66% {
    transform: translate(-35px, -20px) scale(0.95);
  }
}

/* --- Page Loader --- */
.loader {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: var(--bg);
  z-index: 100000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.loader-orb {
  position: absolute;
  width: 256px;
  height: 256px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent), var(--accent-deep));
  filter: blur(50px);
  opacity: 0.6;
  animation: orbPulse 2s ease-in-out infinite;
}

@keyframes orbPulse {

  0%,
  100% {
    transform: scale(1);
    filter: blur(40px);
  }

  50% {
    transform: scale(1.5);
    filter: blur(60px);
  }
}

.loader-counter {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(4rem, 12vw, 10rem);
  line-height: 1;
  position: relative;
  z-index: 2;
  color: var(--white);
}

.loader-status {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--white-60);
  position: relative;
  z-index: 2;
}

/* --- Fixed Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 2rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10000;
  pointer-events: none;
}

.header>* {
  pointer-events: auto;
}

.header-logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--white);
  transition: color 0.3s var(--ease);
}

.header-logo:hover {
  color: var(--accent);
}

.header-menu-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-menu-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--white-60);
  transition: color 0.3s var(--ease);
}

.header-menu-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white-10);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  transition: all 0.4s var(--ease);
}

.header-menu-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--white);
  transition: stroke 0.3s var(--ease);
}

.header-menu-btn:hover .header-menu-label {
  color: var(--accent);
}

.header-menu-btn:hover .header-menu-icon {
  background: var(--accent);
  border-color: var(--accent);
}

.header-menu-btn:hover .header-menu-icon svg {
  stroke: var(--white);
}

/* --- Sections Container --- */
.page-wrapper {
  position: relative;
  width: 100%;
  min-height: 100vh;
  z-index: 1;
}

.section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 12rem 3rem 3rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.2s var(--ease), transform 1.2s var(--ease);
  will-change: opacity, transform;
}

.section.section-active {
  opacity: 1;
  transform: translateY(0);
}

.section-inner {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.hero .section-inner {
  position: relative;
  z-index: 1;
}

.hero-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2rem;
  position: relative;
  top: -40px;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.7rem, 12.6vw, 12.6vw);
  line-height: 0.9;
  margin-bottom: 0rem;
  position: relative;
  top: -40px;
}

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

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

.hero-title-line.outline-text span {
  color: transparent;
  -webkit-text-stroke: 1px var(--white);
  font-style: italic;
}

.hero-blob-accent {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: var(--accent);
  filter: blur(120px);
  opacity: 0.15;
  mix-blend-mode: soft-light;
  top: 20%;
  right: 10%;
  pointer-events: none;
}

.hero-description {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  color: var(--white-60);
  max-width: 100%;
  white-space: nowrap;
  line-height: 1.75;
  opacity: 0;
  transform: translateY(20px);
}

.hero-resume-btn {
  position: absolute;
  bottom: 1rem;
  right: 3rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--white);
  text-decoration: none;
  padding: 0.75rem 1.25rem;
  border: 1px solid var(--white-10);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 2rem;
  transition: all 0.4s var(--ease);
  opacity: 0;
  transform: translateY(15px);
  z-index: 10;
}

.hero-resume-btn span {
  position: relative;
}

.hero-resume-btn svg {
  transition: transform 0.4s var(--ease);
  color: var(--accent);
}

.hero-resume-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.hero-resume-btn:hover svg {
  transform: translate(2px, -2px);
}

/* --- About Section --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  height: 100%;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.about-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.about-title .outline-text {
  color: transparent;
  -webkit-text-stroke: 1px var(--white);
  font-style: italic;
}

.about-body {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--white-60);
  line-height: 1.75;
  max-width: 480px;
}

.about-stats {
  display: flex;
  gap: 3rem;
}

.about-stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.about-stat-number {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  color: var(--white);
  line-height: 1;
}

.about-stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--zinc-600);
}

.about-image-container {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 2rem;
  overflow: hidden;
  justify-self: end;
  width: 100%;
  max-width: 400px;
}

.about-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter 0.8s var(--ease);
}

.about-image-container:hover img {
  filter: grayscale(0%);
}

.about-image-container::after {
  content: '';
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 200px;
  height: 200px;
  background: var(--accent);
  filter: blur(80px);
  opacity: 0.4;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}

/* --- Work Section --- */
.work-header {
  margin-bottom: 4rem;
}

.work-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.work-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.5rem, 8vw, 8vw);
  line-height: 1;
  text-transform: uppercase;
}

.view-projects-btn {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--white-10);
  border-radius: 2rem;
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  transition: all 0.4s var(--ease);
  cursor: none;
  margin-top: 2rem;
  align-self: flex-end;
}

.view-projects-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.view-projects-btn svg {
  transition: transform 0.4s var(--ease);
}

.view-projects-btn:hover svg {
  transform: translateX(4px);
}

.title-3d-flex {
  display: flex;
  align-items: center;
  gap: 3rem;
  margin-top: 1rem;
}

#global-3d-bg {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  /* Behind everything */
  pointer-events: none;
}

@media (max-width: 1024px) {
  #design-3d-canvas {
    width: 100vw;
    height: 50vh;
    top: auto;
    bottom: 0;
    opacity: 0.5;
  }
}

@media (max-width: 1024px) {
  #design-3d-canvas {
    width: 250px;
    height: 250px;
    right: -50px;
    /* Peek from the side on mobile */
    left: auto;
  }
}

@media (max-width: 768px) {
  .title-3d-flex {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  #design-3d-canvas {
    width: 150px;
    height: 150px;
  }
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  flex: 1;
  min-height: 0;
}

.work-card {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid var(--white-10);
  cursor: none;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.work-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.15);
}

.work-card.card-wide {
  grid-column: span 2;
}

.work-card.card-tall {
  grid-row: span 2;
}

.work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.8s var(--ease);
}

.work-card:hover img {
  transform: scale(1.05);
}

.work-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 60%);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 1.5rem;
  opacity: 1;
  z-index: 2;
  transition: background 0.4s var(--ease);
}

.work-card:hover .work-card-overlay {
  background: linear-gradient(to top, rgba(139, 92, 246, 0.3) 0%, rgba(0, 0, 0, 0) 70%);
}

.work-card-3d-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  background: #030303;
}

.work-card-3d-container canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.work-card-number {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--accent);
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0.4rem 0.75rem;
  border-radius: 2rem;
  border: 1px solid var(--white-10);
}

.work-card-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.work-card-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.25rem;
}

.work-card-category {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--accent);
}

/* --- Project Detail Modal --- */
.project-modal {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  visibility: hidden;
  padding: 2rem;
}

.project-modal.modal-open {
  pointer-events: auto;
  visibility: visible;
}

.project-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
}

.modal-open .project-modal-backdrop {
  opacity: 1;
}

.project-modal-card {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 85vh;
  background: #111111;
  border: 1px solid var(--white-10);
  border-radius: 1.5rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(40px) scale(0.95);
}

.modal-open .project-modal-card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.project-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--white-10);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: all 0.3s var(--ease);
}

.project-modal-close svg {
  width: 18px;
  height: 18px;
  stroke: var(--white);
}

.project-modal-close:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.project-modal-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  flex-shrink: 0;
}

.project-modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-modal-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow-y: auto;
}

.project-modal-category {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--accent);
}

.project-modal-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.1;
}

.project-modal-desc {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--white-60);
  line-height: 1.7;
}

.project-modal-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.project-modal-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  border-radius: 2rem;
  border: 1px solid var(--white-10);
  background: rgba(255, 255, 255, 0.05);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  transition: all 0.3s var(--ease);
  text-decoration: none;
  cursor: none;
}

.project-modal-link svg {
  width: 16px;
  height: 16px;
  fill: var(--white);
  flex-shrink: 0;
  transition: fill 0.3s var(--ease);
}

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

.project-modal-link:hover svg {
  fill: var(--white);
}

/* --- Design Gallery Section --- */
.design-header {
  margin-bottom: 1.5rem;
  flex-shrink: 0;
}

.design-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 5vw);
  line-height: 0.95;
  margin-top: 0.75rem;
}

.design-title .outline-text {
  color: transparent;
  -webkit-text-stroke: 1px var(--white);
  font-style: italic;
}

.design-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 1fr;
  gap: 0.75rem;
  flex: 1;
  min-height: 0;
}

.design-frame {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--white-10);
  cursor: none;
  min-height: 0;
}

.design-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease), filter 0.5s var(--ease);
  filter: saturate(0.8);
}

.design-frame:hover img {
  transform: scale(1.08);
  filter: saturate(1.2);
}

/* Variable frame sizes — use these classes for variety */
.design-frame-tall {
  grid-row: span 2;
}

.design-frame-wide {
  grid-column: span 2;
}

.design-frame-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.75rem 1rem;
  background: linear-gradient(to top, rgba(8, 8, 8, 0.85) 0%, transparent 100%);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.4s var(--ease);
}

.design-frame:hover .design-frame-label {
  opacity: 1;
  transform: translateY(0);
}

/* --- Contact Section --- */
.contact-inner {
  align-items: center;
  text-align: center;
}

.contact-heading {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3rem, 10vw, 10vw);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--white);
  transition: all 0.5s var(--ease);
  margin-bottom: 3rem;
  display: inline-block;
}

.contact-heading:hover {
  color: var(--accent);
  -webkit-text-stroke: 1px var(--accent);
}

.contact-socials {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 4rem;
}

.contact-social-link {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid var(--white-10);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s var(--ease);
}

.contact-social-link svg {
  width: 24px;
  height: 24px;
  fill: var(--white);
  transition: fill 0.3s var(--ease);
}

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

.contact-social-link:hover svg {
  fill: var(--bg);
}

.contact-footer {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--zinc-600);
}

/* --- Circular Navigation Overlay --- */
.nav-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: var(--bg);
  z-index: 9500;
  display: flex;
  align-items: center;
  padding: 6rem;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
}

.nav-overlay.nav-open {
  pointer-events: auto;
  visibility: visible;
  opacity: 1;
}

.nav-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
}

.nav-link {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.5rem, 8vw, 8vw);
  line-height: 1.1;
  color: transparent;
  -webkit-text-stroke: 1px var(--white);
  font-style: italic;
  transition: all 0.4s var(--ease);
  display: inline-block;
  opacity: 0;
  transform: translateY(30px);
}

.nav-overlay.nav-open .nav-link {
  opacity: 1;
  transform: translateY(0);
}

.nav-link:hover {
  color: var(--accent);
  -webkit-text-stroke: 1px var(--accent);
  transform: translateX(20px);
}

.nav-preview {
  position: absolute;
  right: 8rem;
  top: 50%;
  transform: translateY(-50%);
  width: 300px;
  height: 400px;
  border-radius: 1rem;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  pointer-events: none;
}

.nav-preview.nav-preview-visible {
  opacity: 0.8;
}

.nav-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Section Progress Indicator --- */
.progress-indicator {
  position: fixed;
  bottom: 3rem;
  left: 3rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 100;
}

.progress-current {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.15em;
  color: var(--accent);
  font-weight: 700;
  min-width: 24px;
}

.progress-line {
  width: 48px;
  height: 1px;
  background: var(--zinc-800);
  position: relative;
}

.progress-line::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: var(--fill, 25%);
  background: var(--accent);
  transition: width 0.5s var(--ease);
}

.progress-total {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.15em;
  color: var(--zinc-600);
}


/* --- Responsive --- */
@media (max-width: 1024px) {
  .header {
    padding: 1.5rem 2rem;
  }

  .section {
    padding: 7rem 2rem 2rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-image-container {
    max-width: 300px;
    justify-self: center;
  }

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

  .design-gallery {
    grid-template-columns: repeat(3, 1fr);
  }

  .nav-preview {
    display: none;
  }

  .nav-overlay {
    padding: 4rem 2rem;
  }
}

@media (max-width: 640px) {
  .header {
    padding: 1rem 1.25rem;
  }

  .section {
    padding: 6rem 1.25rem 1.5rem;
  }

  .hero-title {
    font-size: clamp(2.2rem, 10vw, 10vw);
    margin-bottom: 2rem;
  }

  .nav-link {
    font-size: clamp(2rem, 12vw, 12vw);
    -webkit-text-stroke: 1px var(--white);
  }

  .about-stats {
    gap: 1.5rem;
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-heading {
    font-size: clamp(1.8rem, 10vw, 10vw);
  }

  .design-gallery {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .design-frame-tall {
    grid-row: span 1;
  }

  .design-frame-wide {
    grid-column: span 1;
  }

  .progress-indicator {
    bottom: 1.5rem;
    left: 1.25rem;
  }

  .hero-resume-btn {
    bottom: 1.5rem;
    right: 1.25rem;
    padding: 0.6rem 1rem;
    font-size: 10px;
  }

  .cursor,
  .cursor-follower {
    display: none;
  }

  body {
    cursor: auto;
  }

  a,
  button {
    cursor: pointer;
  }
}

/* --- Projects Gallery Overlay --- */
.projects-gallery {
  position: fixed;
  inset: 0;
  z-index: 20000;
  visibility: hidden;
  opacity: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.5s var(--ease);
  perspective: 1000px;
}

.projects-gallery.active {
  visibility: visible;
  opacity: 1;
}

.gallery-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 8, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.gallery-container {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 5.3rem 12.5rem 1.3rem;
  overflow-y: auto;
  scrollbar-width: none;
}

.gallery-container::-webkit-scrollbar {
  display: none;
}

.gallery-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 2.6rem 12.5rem 0.6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
  background: linear-gradient(to bottom, #080808 0%, rgba(8, 8, 8, 0) 100%);
}

.gallery-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--white);
}

.gallery-close {
  display: flex;
  align-items: center;
  gap: 0.33rem;
  background: none;
  border: none;
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.2em;
  cursor: none;
  transition: color 0.3s var(--ease);
}

.gallery-close svg {
  width: 10px;
  height: 10px;
  stroke: currentColor;
  transition: transform 0.3s var(--ease);
}

.gallery-close:hover {
  color: var(--accent);
}

.gallery-close:hover svg {
  transform: rotate(90deg);
}

.showcase-list {
  display: flex;
  flex-direction: column;
  max-width: 1400px;
  margin: 0 auto;
  padding-bottom: 10rem;
}

.projects-archive-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.projects-archive-grid .work-card {
  aspect-ratio: 16 / 9;
}

/* ═══ Project Detail Modal ═══ */
.project-modal {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  visibility: hidden;
}

.project-modal.modal-open {
  pointer-events: all;
  visibility: visible;
}

.project-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}

.project-modal.modal-open .project-modal-backdrop {
  opacity: 1;
}

.project-modal-card {
  position: relative;
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  background: #080808;
  border: 1px solid var(--white-10);
  border-radius: 2rem;
  overflow: hidden;
  transform: scale(0.9) translateY(40px);
  opacity: 0;
  transition: all 0.7s var(--ease-expo);
  display: flex;
  flex-direction: column;
}

.project-modal.modal-open .project-modal-card {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.project-modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 10;
  background: rgba(255, 255, 255, 0.05);
  border: none;
  color: var(--white);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: none;
  transition: all 0.3s var(--ease);
}

.project-modal-close:hover {
  background: var(--white);
  color: #000;
}

.project-modal-image {
  width: 100%;
  height: 300px;
  overflow: hidden;
}

.project-modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-modal-body {
  padding: 2.5rem 3rem;
  overflow-y: auto;
}

.project-modal-category {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  display: block;
}

.project-modal-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 1rem;
}

.project-modal-desc {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--zinc-400);
  max-width: 700px;
  margin-bottom: 2rem;
}

.project-modal-links {
  display: flex;
  gap: 1.5rem;
}

.project-modal-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 2.5rem;
  background: var(--white);
  color: #000;
  border-radius: 3rem;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
  transition: all 0.4s var(--ease);
}

.project-modal-link:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(255, 255, 255, 0.2);
}

.project-modal-link svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 768px) {
  .project-modal-card {
    width: 95%;
  }

  .project-modal-image {
    height: 250px;
  }

  .project-modal-body {
    padding: 2.5rem;
  }

  .project-modal-title {
    font-size: 2rem;
  }

  .project-modal-links {
    flex-direction: column;
  }
}

.showcase-item {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--white-10);
  cursor: none;
  position: relative;
  transition: all 0.4s var(--ease);
}

.showcase-category {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--zinc-600);
  margin-bottom: 1rem;
  display: block;
}

.showcase-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 6vw, 6vw);
  line-height: 1;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px var(--white-20);
  transition: all 0.5s var(--ease);
}

/* --- Collage Grid for Designs --- */
.collage-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-flow: dense;
  gap: 0.5rem;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding-bottom: 10rem;
}

.collage-item {
  position: relative;
  background: var(--bg-alt);
  border: 1px solid var(--white-10);
  border-radius: 0.5rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.5s var(--ease);
}

.collage-item img,
.collage-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.collage-item:hover img,
.collage-item:hover video {
  transform: scale(1.05);
}

/* Variable spans based on dimensions */
.collage-item.item-standard {
  grid-column: span 1;
  grid-row: span 1;
  aspect-ratio: 1 / 1;
}

.collage-item.item-wide {
  grid-column: span 2;
  grid-row: span 1;
  aspect-ratio: 16 / 9;
}

.collage-item.item-tall {
  grid-column: span 1;
  grid-row: span 2;
  aspect-ratio: 9 / 16;
}

.collage-item.item-large {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: 1 / 1;
}

/* Info overlay on hover */
.collage-info {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(3, 3, 3, 0.9) 0%, rgba(3, 3, 3, 0) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0.66rem;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.collage-item:hover .collage-info {
  opacity: 1;
}

.collage-category {
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 0.15rem;
}

.collage-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--white);
}

@media (max-width: 1024px) {
  .gallery-container {
    padding: 4rem 3rem 2rem;
  }

  .gallery-header {
    padding: 1.5rem 3rem;
  }

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

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

  .collage-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }
}

@media (max-width: 768px) {
  .gallery-container {
    padding: 2rem 0.5rem 0.7rem;
  }

  .gallery-header {
    padding: 0.7rem 0.5rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 200px;
  }

  .projects-archive-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .work-card.card-wide {
    grid-column: span 2;
  }

  .collage-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.4rem;
  }

  .collage-item.item-wide,
  .collage-item.item-large,
  .collage-item.item-tall {
    grid-column: span 1;
    grid-row: span 1;
    aspect-ratio: 1 / 1 !important;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 250px;
  }

  .work-card.card-wide,
  .work-card.card-tall {
    grid-column: span 1;
    grid-row: span 1;
  }

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

@media (max-width: 640px) {
  .work-header-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .hero-description {
    white-space: normal;
    font-size: 0.95rem;
  }
}