/* ═══════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Geist Mono", monospace;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
}

:root {
  --white: #ffffff;
  --gray-50: #fafafa;
  --gray-100: #f5f5f5;
  --gray-200: #e5e5e5;
  --gray-300: #d4d4d4;
  --gray-400: #a3a3a3;
  --gray-500: #737373;
  --gray-600: #525252;
  --gray-700: #404040;
  --gray-800: #262626;
  --gray-900: #171717;
  --gray-950: #0a0a0a;
  --black: #000000;

  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  --glass-blur: 20px;

  --font-main:
    "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  --font-mono: "SF Mono", "Fira Code", "Consolas", monospace;

  --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-quart: cubic-bezier(0.76, 0, 0.24, 1);

  --section-padding: clamp(80px, 12vh, 160px);
  --container-width: 1200px;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-main);
  background: var(--gray-950);
  color: var(--gray-300);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: default;
}

::selection {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
}

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

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

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

input,
textarea {
  font-family: inherit;
  border: none;
  outline: none;
  background: none;
  color: inherit;
}

/* ═══════════════════════════════════════════
   CURSOR GLOW
   ═══════════════════════════════════════════ */
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.03) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 9999;
  will-change: transform;
  transform: translate3d(-300px, -300px, 0);
  transition: opacity 0.3s;
  opacity: 0;
}

.cursor-glow.active {
  opacity: 1;
}

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

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  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: 60px 60px;
  mask-image: radial-gradient(
    ellipse 80% 50% at 50% 50%,
    black 40%,
    transparent 100%
  );
  -webkit-mask-image: radial-gradient(
    ellipse 80% 50% at 50% 50%,
    black 40%,
    transparent 100%
  );
}

.floating-orbs {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  animation: orbFloat 20s infinite ease-in-out;
  will-change: transform, opacity;
}

.orb-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.025) 0%,
    transparent 70%
  );
  top: 10%;
  left: 20%;
  animation-delay: 0s;
}

.orb-2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.02) 0%,
    transparent 70%
  );
  top: 60%;
  right: 10%;
  animation-delay: -5s;
}

.orb-3 {
  width: 250px;
  height: 250px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.025) 0%,
    transparent 70%
  );
  bottom: 10%;
  left: 40%;
  animation-delay: -10s;
}

.orb-4 {
  width: 350px;
  height: 350px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.015) 0%,
    transparent 70%
  );
  top: 40%;
  left: 60%;
  animation-delay: -7s;
}

.orb-5 {
  width: 200px;
  height: 200px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.03) 0%,
    transparent 70%
  );
  top: 80%;
  left: 10%;
  animation-delay: -13s;
}

@keyframes orbFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0;
  }
  25% {
    opacity: 1;
  }
  50% {
    transform: translate3d(100px, -50px, 0) scale(1.2);
    opacity: 1;
  }
  75% {
    opacity: 1;
  }
}

/* ═══════════════════════════════════════════
   GLASS CARD BASE
   ═══════════════════════════════════════════ */
.glass-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: var(--glass-shadow);
  transition:
    background 0.4s var(--ease-out-expo),
    border-color 0.4s var(--ease-out-expo),
    box-shadow 0.4s var(--ease-out-expo);
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

/* ═══════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════ */
.glass-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition:
    padding 0.4s var(--ease-out-expo),
    background 0.4s var(--ease-out-expo);
}

.glass-nav.scrolled {
  padding: 10px 0;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
  transition: opacity 0.3s;
}

.nav-logo:hover {
  opacity: 0.8;
}

.logo-bracket {
  color: var(--gray-500);
  font-weight: 300;
}

.nav-links {
  display: flex;
  gap: 8px;
}

.nav-link {
  position: relative;
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-400);
  letter-spacing: 0.02em;
  transition: color 0.3s;
  overflow: hidden;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 16px;
  right: 16px;
  height: 1px;
  background: var(--white);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out-expo);
}

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

.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-link.active {
  color: var(--white);
}

.nav-link.active::after {
  transform: scaleX(1);
}

/* Burger */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 4px;
  z-index: 1001;
}

.nav-burger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--white);
  transition: all 0.4s var(--ease-out-expo);
  transform-origin: center;
}

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

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

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

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s var(--ease-out-expo);
}

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

.mobile-menu-bg {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
}

.mobile-menu-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 24px;
}

.mobile-link {
  font-size: 2rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.02em;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.5s var(--ease-out-expo);
}

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

.mobile-menu.active .mobile-link:nth-child(1) {
  transition-delay: 0.1s;
}
.mobile-menu.active .mobile-link:nth-child(2) {
  transition-delay: 0.15s;
}
.mobile-menu.active .mobile-link:nth-child(3) {
  transition-delay: 0.2s;
}
.mobile-menu.active .mobile-link:nth-child(4) {
  transition-delay: 0.25s;
}

.mobile-link:hover {
  opacity: 0.6;
}

/* ═══════════════════════════════════════════
   CONTAINER
   ═══════════════════════════════════════════ */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}

/* ═══════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 0 80px;
  z-index: 1;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--gray-400);
  letter-spacing: 0.04em;
  margin-bottom: 40px;
}

.tag-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--white);
  animation: dotPulse 2s infinite;
}

@keyframes dotPulse {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
  }
  50% {
    opacity: 0.6;
    box-shadow: 0 0 0 8px rgba(255, 255, 255, 0);
  }
}

.hero-title {
  margin-bottom: 24px;
}

.title-line {
  display: block;
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 400;
  color: var(--gray-400);
  letter-spacing: 0.02em;
  line-height: 1.4;
}

.title-name {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 12px 0 16px;
}

.name-text {
  position: relative;
  display: inline-block;
  background: linear-gradient(
    135deg,
    var(--white) 0%,
    var(--gray-400) 50%,
    var(--white) 100%
  );
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 6s ease-in-out infinite;
}

@keyframes shimmer {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.typed-wrapper {
  display: inline-flex;
  align-items: center;
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  font-weight: 500;
  color: var(--gray-300);
  font-family: var(--font-mono);
}

.typed-cursor {
  display: inline-block;
  margin-left: 2px;
  animation: blink 1s step-end infinite;
  color: var(--white);
}

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

.hero-desc {
  font-size: clamp(0.9375rem, 1.5vw, 1.0625rem);
  color: var(--gray-500);
  line-height: 1.7;
  margin-bottom: 48px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 80px;
}

/* Buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 12px;
  overflow: hidden;
  transition:
    transform 0.4s var(--ease-out-expo),
    box-shadow 0.4s var(--ease-out-expo),
    background 0.4s var(--ease-out-expo),
    border-color 0.4s var(--ease-out-expo),
    color 0.4s var(--ease-out-expo);
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--white);
  color: var(--gray-950);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.15);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.6s var(--ease-out-expo);
}

.btn-primary:hover .btn-shine {
  left: 100%;
}

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

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

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--gray-300);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* Scroll indicator */
.hero-scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--gray-600);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.scroll-indicator {
  width: 24px;
  height: 40px;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.scroll-dot {
  width: 3px;
  height: 8px;
  border-radius: 3px;
  background: var(--gray-400);
  animation: scrollDot 2s infinite;
}

@keyframes scrollDot {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateY(16px);
    opacity: 0;
  }
}

/* Hero decorative elements */
.hero-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.decor-line {
  position: absolute;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(255, 255, 255, 0.03),
    transparent
  );
}

.decor-line-1 {
  width: 1px;
  height: 40%;
  left: 15%;
  top: 20%;
  animation: decorLine 8s infinite ease-in-out;
}

.decor-line-2 {
  width: 1px;
  height: 30%;
  right: 20%;
  bottom: 15%;
  animation: decorLine 8s infinite ease-in-out 3s;
}

@keyframes decorLine {
  0%,
  100% {
    opacity: 0;
    transform: translateY(-20px);
  }
  50% {
    opacity: 1;
    transform: translateY(20px);
  }
}

.decor-circle {
  position: absolute;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(255, 255, 255, 0.02);
  border-radius: 50%;
  right: -100px;
  top: 20%;
  animation: decorCircle 20s infinite linear;
}

@keyframes decorCircle {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* ═══════════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════════ */
.section {
  position: relative;
  padding: var(--section-padding) 0;
  z-index: 1;
}

.section-header {
  text-align: center;
  margin-bottom: clamp(48px, 6vw, 80px);
}

.section-number {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--gray-600);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.section-line {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gray-500), transparent);
  margin: 0 auto;
}

/* ═══════════════════════════════════════════
   ABOUT
   ═══════════════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: center;
}

.about-photo-card {
  padding: 16px;
  border-radius: 24px;
}

.about-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
}

.photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--gray-600);
}

.photo-placeholder svg {
  width: 50%;
  height: 50%;
}

.photo-border {
  position: absolute;
  inset: -2px;
  border-radius: 26px;
  border: 1px solid transparent;
  background: linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.1),
      transparent 50%,
      rgba(255, 255, 255, 0.05)
    )
    border-box;
  -webkit-mask:
    linear-gradient(#fff 0 0) padding-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) padding-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.about-text p {
  font-size: 1.0625rem;
  color: var(--gray-400);
  line-height: 1.8;
  margin-bottom: 20px;
}

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

.stat-card {
  padding: 24px;
  text-align: center;
  border-radius: 16px;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-number::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--gray-500);
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--gray-500);
  letter-spacing: 0.04em;
}

/* ═══════════════════════════════════════════
   SKILLS
   ═══════════════════════════════════════════ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.skill-card {
  padding: 32px;
  border-radius: 20px;
  cursor: default;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.skill-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--white);
  margin-bottom: 20px;
  transition:
    background 0.4s var(--ease-out-expo),
    transform 0.4s var(--ease-out-expo);
}

.skill-icon svg,
.skill-icon img {
  width: 24px;
  height: 24px;
}

.skill-card:hover .skill-icon {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}

.skill-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.skill-desc {
  font-size: 0.875rem;
  color: var(--gray-500);
  line-height: 1.6;
  margin-bottom: 20px;
}

.skill-bar {
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--gray-600), var(--white));
  border-radius: 3px;
  transition: width 1.2s var(--ease-out-expo);
}

.skill-progress.animated {
  width: var(--target-width);
}

/* ═══════════════════════════════════════════
   PROJECTS
   ═══════════════════════════════════════════ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.project-card {
  border-radius: 20px;
  overflow: hidden;
  transform-style: preserve-3d;
  perspective: 1000px;
}

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

.project-image {
  position: relative;
  aspect-ratio: 16/10;
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.project-card-wide .project-image {
  aspect-ratio: 21/9;
}

.project-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--gray-700);
}

.project-placeholder svg {
  width: 48px;
  height: 48px;
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s var(--ease-out-expo);
}

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

.project-view {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.02em;
  transform: translateY(10px);
  transition: transform 0.4s var(--ease-out-expo);
}

.project-card:hover .project-view {
  transform: translateY(0);
}

.project-info {
  padding: 24px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.project-tag {
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--gray-400);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  letter-spacing: 0.02em;
}

.project-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.project-desc {
  font-size: 0.875rem;
  color: var(--gray-500);
  line-height: 1.6;
  margin-bottom: 16px;
}

.project-links {
  display: flex;
  gap: 16px;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--gray-400);
  transition: color 0.3s;
}

.project-link:hover {
  color: var(--white);
}

/* ── Dynamic Projects ─────────────────────── */
.project-image img,
.project-image video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.projects-loading,
.projects-empty,
.projects-error {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--gray-400);
  font-size: 1.1rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 20px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
}

.projects-error {
  color: #ef4444;
}

/* ═══════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-heading {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.contact-text {
  font-size: 1rem;
  color: var(--gray-500);
  line-height: 1.7;
  margin-bottom: 32px;
}

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

.contact-link-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 14px;
  color: var(--gray-400);
  transition:
    color 0.3s var(--ease-out-expo),
    transform 0.3s var(--ease-out-expo),
    background 0.3s var(--ease-out-expo),
    border-color 0.3s var(--ease-out-expo);
}

.contact-link-card:hover {
  color: var(--white);
  transform: translateX(8px);
}

.contact-link-label {
  display: block;
  font-size: 0.75rem;
  color: var(--gray-600);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.contact-link-value {
  display: block;
  font-size: 0.9375rem;
  font-weight: 500;
}

/* Form */
.contact-form {
  padding: 40px;
  border-radius: 24px;
}

.form-group {
  position: relative;
  margin-bottom: 32px;
}

.form-input {
  width: 100%;
  padding: 16px 0 12px;
  font-size: 1rem;
  color: var(--white);
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: border-color 0.3s;
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-label {
  position: absolute;
  top: 16px;
  left: 0;
  font-size: 1rem;
  color: var(--gray-600);
  pointer-events: none;
  transition: all 0.3s var(--ease-out-expo);
}

.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label {
  top: -8px;
  font-size: 0.75rem;
  color: var(--gray-400);
  letter-spacing: 0.04em;
}

.form-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--white);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out-expo);
}

.form-input:focus ~ .form-line {
  transform: scaleX(1);
}

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 40px 0;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--white);
}

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

.footer-socials {
  display: flex;
  gap: 16px;
}

.footer-social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  color: var(--gray-500);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition:
    color 0.3s var(--ease-out-expo),
    background 0.3s var(--ease-out-expo),
    border-color 0.3s var(--ease-out-expo),
    transform 0.3s var(--ease-out-expo);
}

.footer-social:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

/* ═══════════════════════════════════════════
   REVEAL ANIMATIONS
   ═══════════════════════════════════════════ */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.8s var(--ease-out-expo),
    transform 0.8s var(--ease-out-expo);
  transition-delay: var(--delay, 0s);
  will-change: opacity, transform;
}

.reveal-up.revealed {
  opacity: 1;
  transform: translateY(0);
  will-change: auto;
}

/* ═══════════════════════════════════════════
   MAGNETIC BUTTON EFFECT (via JS)
   ═══════════════════════════════════════════ */
[data-tilt] {
  transition: transform 0.4s var(--ease-out-expo);
}

/* ═══════════════════════════════════════════
   PAGE LOADER
   ═══════════════════════════════════════════ */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: var(--gray-950);
  z-index: 10000;
  animation: loaderFade 0.6s 0.5s forwards var(--ease-out-expo);
  pointer-events: none;
}

@keyframes loaderFade {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 968px) {
  .nav-links {
    display: none;
  }

  .nav-burger {
    display: flex;
  }

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

  .about-photo-wrapper {
    max-width: 300px;
    margin: 0 auto;
  }

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

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

  .project-card-wide {
    grid-column: span 1;
  }

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

@media (max-width: 640px) {
  .skills-grid {
    grid-template-columns: 1fr;
  }

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

  .stat-card {
    padding: 16px;
  }

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

  .contact-form {
    padding: 24px;
  }

  .footer-content {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
}
