/* ============================================================
   DUWCSANH PORTFOLIO 2026 - PREMIUM DESIGN SYSTEM
   Inspired by Apple + Linear + Awwwards
   ============================================================ */

/* === FONTS === */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap");

/* === CSS CUSTOM PROPERTIES 2026 === */
:root {
  /* Deep dark background với subtle variations */
  --bg: #05060f;
  --bg-elevated: #08091a;
  --bg-card: #0d1025;
  --bg-glass: rgba(13, 16, 37, 0.6);
  
  /* Text hierarchy */
  --text-primary: #f8f9ff;
  --text-secondary: #c4cde6;
  --text-muted: #7a84a8;
  
  /* 2026 Neon Accent System */
  --accent-cyan: #00d4ff;
  --accent-blue: #4d7cff;
  --accent-purple: #8b5cf6;
  --accent-pink: #ec4899;
  --accent-gradient: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue), var(--accent-purple));
  
  /* Legacy accent colors (kept for compatibility) */
  --accent: var(--accent-blue);
  --accent-2: var(--accent-cyan);
  --accent-3: var(--accent-pink);
  
  /* Borders & Shadows */
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-light: rgba(255, 255, 255, 0.1);
  --border-accent: rgba(77, 124, 255, 0.3);
  --shadow-sm: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 16px 48px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 32px 80px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 60px rgba(0, 212, 255, 0.15);
  
  /* Glass effect */
  --glass-blur: 20px;
  --glass-bg: rgba(13, 16, 37, 0.7);
  --glass-border: rgba(255, 255, 255, 0.08);
  
  /* === 2026 ANIMATION EASINGS === */
  --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);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Timing */
  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --duration-slow: 500ms;
  --duration-slower: 800ms;
  
  /* Typography */
  --font-primary: "Poppins", system-ui, -apple-system, sans-serif;
  --font-display: "Space Grotesk", "Poppins", sans-serif;
  --font-mono: ui-monospace, "SF Mono", monospace;
  
  /* Spacing scale */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  
  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-2xl: 40px;
  --radius-full: 9999px;
  
  /* Z-index layers */
  --z-base: 0;
  --z-raised: 10;
  --z-sticky: 100;
  --z-overlay: 200;
  --z-modal: 300;
  --z-cursor: 9999;
}

/* === CSS @PROPERTY FOR ADVANCED ANIMATIONS === */
@property --gradient-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

@property --glow-opacity {
  syntax: "<number>";
  inherits: false;
  initial-value: 0;
}

@property --progress {
  syntax: "<number>";
  inherits: false;
  initial-value: 0;
}

@property --blob-x {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 50%;
}

@property --blob-y {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 50%;
}

/* === RESET & BASE === */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
}

body.redirect-page {
  display: grid;
  place-items: center;
}

.redirect-message {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.redirect-message a {
  color: var(--accent-cyan);
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

h1 { font-size: clamp(2.5rem, 6vw, 4rem); margin-bottom: 0.5em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 0.6em; }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 0.7em; }

p {
  margin: 0 0 1rem;
  color: var(--text-secondary);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-smooth);
}

a:hover {
  color: var(--accent-cyan);
}

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

ul {
  list-style: none;
}

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

/* === ADVANCED CURSOR SYSTEM === */
.cursor-dot {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--accent-cyan);
  border-radius: 50%;
  pointer-events: none;
  z-index: var(--z-cursor);
  transform: translate(-50%, -50%);
  transition: transform 0.1s var(--ease-out-expo), background 0.2s;
  box-shadow: 0 0 20px var(--accent-cyan);
}

.cursor-ring {
  position: fixed;
  width: 40px;
  height: 40px;
  border: 1.5px solid rgba(0, 212, 255, 0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: var(--z-cursor);
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease-out-expo), height 0.3s var(--ease-out-expo), border-color 0.3s;
}

.cursor-ring.is-hovering {
  width: 60px;
  height: 60px;
  border-color: var(--accent-cyan);
}

.cursor-trail {
  position: fixed;
  width: 6px;
  height: 6px;
  background: rgba(0, 212, 255, 0.3);
  border-radius: 50%;
  pointer-events: none;
  z-index: calc(var(--z-cursor) - 1);
  transition: opacity 0.3s;
}

@media (hover: none), (pointer: coarse) {
  .cursor-dot,
  .cursor-ring,
  .cursor-trail {
    display: none;
  }
}

/* === ADVANCED BACKGROUND SYSTEM === */
.advanced-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -10;
  overflow: hidden;
}

/* 2026 AI-ERA GRADIENT ORBS - Deeper & Smoother */
.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.4;
  animation: float-orb 25s ease-in-out infinite, pulse-glow 8s ease-in-out infinite;
  will-change: transform;
}

.gradient-orb--cyan {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.35), transparent 65%);
  top: -30%;
  left: -15%;
  animation-delay: 0s, 0s;
}

.gradient-orb--purple {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.3), transparent 65%);
  top: 30%;
  right: -20%;
  animation-delay: -8s, -3s;
}

.gradient-orb--pink {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.25), transparent 65%);
  bottom: -20%;
  left: 25%;
  animation-delay: -16s, -5s;
}

/* Subtle floating animation */
@keyframes float-orb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -20px) scale(1.02); }
  50% { transform: translate(-20px, 30px) scale(0.98); }
  75% { transform: translate(20px, 20px) scale(1.01); }
}

/* Subtle pulse glow */
@keyframes pulse-glow {
  0%, 100% { opacity: 0.35; filter: blur(120px); }
  50% { opacity: 0.5; filter: blur(100px); }
}

/* Deep space noise texture overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.015;
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: overlay;
}

.gradient-mesh {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 80% 60% at 20% 30%, rgba(0, 212, 255, 0.08), transparent),
    radial-gradient(ellipse 60% 80% at 80% 70%, rgba(139, 92, 246, 0.06), transparent),
    radial-gradient(ellipse 100% 100% at 50% 100%, rgba(236, 72, 153, 0.04), transparent);
}

@keyframes float-orb {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(5%, 10%) scale(1.05);
  }
  50% {
    transform: translate(-5%, 5%) scale(0.95);
  }
  75% {
    transform: translate(10%, -5%) scale(1.02);
  }
}

/* Grid pattern overlay */
.grid-pattern {
  position: absolute;
  inset: 0;
  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% 60% at 50% 50%, black 20%, transparent 80%);
}

/* === LAYERED Z-INDEX SYSTEM === */
.layer-background { z-index: -10; }
.layer-base { z-index: 0; }
.layer-raised { z-index: 10; }
.layer-sticky { z-index: 100; }
.layer-overlay { z-index: 200; }
.layer-modal { z-index: 300; }
.layer-cursor { z-index: 9999; }

/* === 2026 ADVANCED BUTTONS === */
.btn-primary,
.btn-outline,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: all var(--duration-normal) var(--ease-out-expo);
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 
    0 4px 20px rgba(0, 212, 255, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-smooth);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 6px 24px rgba(0, 212, 255, 0.35),
    0 0 30px rgba(0, 212, 255, 0.15);
}

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

.btn-primary:active {
  transform: translateY(-1px) scale(0.98);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border-light);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  border-color: rgba(0, 212, 255, 0.5);
  color: var(--accent-cyan);
  transform: translateY(-2px) scale(1.01);
  box-shadow:
    0 6px 20px rgba(0, 212, 255, 0.12);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--radius-md);
}

/* Magnetic button effect */
.btn-magnetic {
  transition: transform 0.2s var(--ease-out-expo);
}

/* Ripple effect */
.ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.4), transparent);
  animation: ripple 0.6s var(--ease-out-expo) forwards;
  pointer-events: none;
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* === 2026 NAVBAR === */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  background: rgba(5, 6, 15, 0.8);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--duration-normal) var(--ease-smooth);
}

.site-header.is-scrolled {
  background: rgba(5, 6, 15, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.site-header.is-hidden {
  transform: translateY(-100%);
}

.site-header .container {
  padding: 20px 0;
  transition: padding var(--duration-normal) var(--ease-smooth);
}

.site-header.is-scrolled .container {
  padding: 14px 0;
}

.header-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
}

/* Brand with glow */
.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, #fff 0%, var(--accent-cyan) 50%, var(--accent-purple) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
}

.brand-name::after {
  content: "";
  position: absolute;
  inset: -4px -8px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.2), transparent 70%);
  filter: blur(8px);
  z-index: -1;
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-smooth);
}

.brand:hover .brand-name::after {
  opacity: 1;
}

.brand-tag {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Navigation with sliding indicator */
.main-nav {
  display: flex;
  justify-content: center;
}

.nav-satellites {
  display: flex;
  gap: 6px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  position: relative;
}

.nav-satellites::before {
  content: "";
  position: absolute;
  height: calc(100% - 12px);
  background: rgba(0, 212, 255, 0.1);
  border-radius: var(--radius-full);
  transition: all var(--duration-normal) var(--ease-out-expo);
  pointer-events: none;
  border: 1px solid rgba(0, 212, 255, 0.2);
}

.nav-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--duration-slow) var(--ease-out-quart);
  z-index: 1;
  border: 1px solid transparent;
}

.nav-pill:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

.nav-pill.is-active {
  color: var(--accent-cyan);
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(77, 124, 255, 0.08) 100%);
  border: 1px solid rgba(0, 212, 255, 0.2);
  box-shadow:
    0 0 20px rgba(0, 212, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.nav-pill span:last-child {
  letter-spacing: 0.04em;
}

/* Pill glow effect - subtle and elegant */
.pill-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, var(--accent-cyan), transparent 70%);
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-smooth);
  filter: blur(8px);
}

.nav-pill:hover .pill-glow {
  opacity: 0.15;
}

.nav-pill.is-active .pill-glow {
  opacity: 0.25;
}

.btn-cta {
  padding: 12px 24px;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.mobile-menu-toggle span {
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--duration-normal) var(--ease-out-expo);
}

.mobile-menu-toggle.is-active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.is-active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* === 2026 HERO SECTION === */
.hero {
  padding: 160px 0 100px;
  position: relative;
}

.hero-grid {
  display: grid;
  gap: 60px;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
}

.hero-copy {
  max-width: 600px;
}

/* Animated eyebrow */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 20px;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--accent-cyan);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
}

/* Hero tagline with gradient animation */
.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  background: linear-gradient(
    135deg,
    var(--text-primary) 0%,
    var(--accent-cyan) 25%,
    var(--accent-purple) 50%,
    var(--accent-pink) 75%,
    var(--text-primary) 100%
  );
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradient-shift 8s ease-in-out infinite;
  margin-bottom: 8px;
}

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

.hero-copy h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--text-secondary);
}

/* Lead text */
.lead {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

/* Hero actions */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}

/* Social links */
.hero-social {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-social a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: all var(--duration-normal) var(--ease-out-expo);
}

.hero-social a:hover {
  color: var(--accent-cyan);
  border-color: rgba(0, 212, 255, 0.3);
  background: rgba(0, 212, 255, 0.05);
  transform: translateY(-2px);
}

/* Hero photo with floating effect */
.hero-photo {
  position: relative;
  justify-self: center;
}

.hero-photo::before {
  content: "";
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.15), transparent 60%);
  filter: blur(40px);
  z-index: -1;
  animation: glow-pulse 4s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.05); }
}

.hero-photo img {
  width: min(380px, 100%);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  animation: float-photo 6s ease-in-out infinite;
  position: relative;
}

@keyframes float-photo {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

/* Photo frame decoration */
.hero-photo::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--radius-2xl) + 4px);
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple), var(--accent-pink));
  z-index: -2;
  opacity: 0.3;
  filter: blur(2px);
}

/* === HERO METRICS === */
.hero-metrics {
  margin-top: 80px;
  padding: 32px 40px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.metrics-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.metrics-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(4, 1fr);
}

/* Metric card with hover */
.metric-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: all var(--duration-normal) var(--ease-out-expo);
}

.metric-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 212, 255, 0.3);
  background: rgba(0, 212, 255, 0.03);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.metric-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(139, 92, 246, 0.2));
  border-radius: var(--radius-md);
  font-size: 1.4rem;
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 212, 255, 0.2);
}

.metric-value {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.metric-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* === HERO SUMMARY === */
.hero-summary {
  display: grid;
  gap: 24px;
  margin-top: 60px;
  grid-template-columns: repeat(3, 1fr);
}

.hero-summary article {
  padding: 28px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  transition: all var(--duration-normal) var(--ease-out-expo);
}

.hero-summary article:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 212, 255, 0.2);
  box-shadow: var(--shadow-md);
}

.hero-summary h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.hero-summary p,
.hero-summary ul {
  color: var(--text-secondary);
  margin: 0;
}

.hero-summary ul {
  padding-left: 0;
  list-style: none;
}

.hero-summary li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
}

.hero-summary li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background: var(--accent-cyan);
  border-radius: 50%;
}

/* Scroll cue */
.scroll-cue {
  margin: 60px auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  animation: float-cue 3s ease-in-out infinite;
}

@keyframes float-cue {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(10px); opacity: 1; }
}

/* === 2026 PREMIUM REVEAL ANIMATIONS === */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(20px) scale(0.98);
  filter: blur(10px);
  will-change: opacity, transform, filter;
}

.reveal-on-scroll.is-visible {
  animation: reveal-premium 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes reveal-premium {
  0% {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
    filter: blur(10px);
  }
  60% {
    opacity: 0.8;
    filter: blur(2px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

/* Stagger delays */
.reveal-on-scroll[data-reveal-delay="0s"] { animation-delay: 0s; }
.reveal-on-scroll[data-reveal-delay="0.1s"] { animation-delay: 0.1s; }
.reveal-on-scroll[data-reveal-delay="0.2s"] { animation-delay: 0.2s; }
.reveal-on-scroll[data-reveal-delay="0.3s"] { animation-delay: 0.3s; }
.reveal-on-scroll[data-reveal-delay="0.4s"] { animation-delay: 0.4s; }
.reveal-on-scroll[data-reveal-delay="0.5s"] { animation-delay: 0.5s; }
.reveal-on-scroll[data-reveal-delay="0.6s"] { animation-delay: 0.6s; }

/* Stagger children animation */
.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
}

.stagger-children.is-visible > *:nth-child(1) { animation: stagger-in 0.6s var(--ease-out-expo) 0s forwards; }
.stagger-children.is-visible > *:nth-child(2) { animation: stagger-in 0.6s var(--ease-out-expo) 0.1s forwards; }
.stagger-children.is-visible > *:nth-child(3) { animation: stagger-in 0.6s var(--ease-out-expo) 0.2s forwards; }
.stagger-children.is-visible > *:nth-child(4) { animation: stagger-in 0.6s var(--ease-out-expo) 0.3s forwards; }
.stagger-children.is-visible > *:nth-child(5) { animation: stagger-in 0.6s var(--ease-out-expo) 0.4s forwards; }
.stagger-children.is-visible > *:nth-child(6) { animation: stagger-in 0.6s var(--ease-out-expo) 0.5s forwards; }

@keyframes stagger-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scale reveal for cards */
.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
}

.reveal-scale.is-visible {
  animation: scale-in 0.8s var(--ease-out-expo) forwards;
}

@keyframes scale-in {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* === FLOATING SOCIAL === */
.floating-social {
  position: fixed;
  top: 50%;
  left: 28px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: var(--z-sticky);
}

.floating-social a {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 1.2rem;
  transition: all var(--duration-normal) var(--ease-out-expo);
}

.floating-social a:hover {
  color: var(--accent-cyan);
  border-color: rgba(0, 212, 255, 0.3);
  transform: translateX(6px);
  box-shadow: 0 8px 30px rgba(0, 212, 255, 0.15);
}

/* === 2026 PROJECT CARDS === */
.project-list {
  padding-bottom: 100px;
}

.project-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 0;
  margin-bottom: 40px;
  border-radius: var(--radius-xl);
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: all var(--duration-slow) var(--ease-out-expo);
  transform-style: preserve-3d;
  perspective: 1000px;
}

.project-row:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(0, 212, 255, 0.08);
  border-color: rgba(0, 212, 255, 0.15);
}

/* Project thumbnail with zoom */
.project-thumb {
  position: relative;
  overflow: hidden;
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out-expo);
}

.project-row:hover .project-thumb img {
  transform: scale(1.08);
}

/* Gradient overlay on hover */
.project-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 212, 255, 0.1) 0%,
    transparent 50%,
    rgba(139, 92, 246, 0.1) 100%
  );
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-smooth);
}

.project-row:hover .project-thumb::after {
  opacity: 1;
}

/* Alternating layout - image right */
.project-row--reverse {
  grid-template-columns: 1.2fr 1fr;
}

.project-row--reverse .project-thumb {
  order: 2;
}

.project-row--reverse .project-content {
  order: 1;
}

@media (max-width: 768px) {
  .project-row--reverse {
    grid-template-columns: 1fr;
  }

  .project-row--reverse .project-thumb,
  .project-row--reverse .project-content {
    order: unset;
  }
}

/* Project content */
.project-content {
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.project-content header span {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--accent-cyan);
}

.project-content p {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Chip list */
.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip-list li {
  padding: 8px 16px;
  background: rgba(0, 212, 255, 0.06);
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  color: var(--text-secondary);
  transition: all var(--duration-fast) var(--ease-smooth);
}

.chip-list li:hover {
  background: rgba(0, 212, 255, 0.1);
  border-color: rgba(0, 212, 255, 0.3);
  color: var(--accent-cyan);
}

.project-actions {
  margin-top: auto;
  display: flex;
  gap: 14px;
}

/* === 2026 SKILLS SECTION === */
.skill-hero {
  padding: 140px 0 60px;
}

.skill-hero-grid {
  display: grid;
  gap: 60px;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.hero-summary-copy h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  margin-bottom: 20px;
}

.hero-summary-copy p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-badges li {
  padding: 10px 18px;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  color: var(--accent-cyan);
}

.hero-summary-photo {
  position: relative;
}

.hero-summary-photo img {
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-lg);
}

.photo-note {
  margin-top: 16px;
  padding: 14px 18px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Skill map */
.skill-map {
  padding: 60px 0;
}

.map-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, 1fr);
}

.map-card {
  padding: 28px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  transition: all var(--duration-normal) var(--ease-out-expo);
}

.map-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 212, 255, 0.2);
  box-shadow: var(--shadow-md);
}

.map-card h3 {
  font-size: 1.15rem;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.skill-bar-list {
  display: grid;
  gap: 18px;
}

.skill-bar-list li {
  display: grid;
  gap: 8px;
}

.skill-bar-list span:first-child {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
}

/* Skill bar */
.bar-track {
  position: relative;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.bar-track span {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
  border-radius: inherit;
  width: 0;
  transform-origin: left;
}

.bar-track.is-active span {
  animation: fill-bar 1.2s var(--ease-out-expo) forwards;
}

@keyframes fill-bar {
  to {
    width: var(--target-width, 0%);
  }
}

/* Section head */
.section-head {
  margin-bottom: 50px;
}

.section-head h2 {
  margin-bottom: 12px;
}

.section-head p {
  max-width: 55ch;
  color: var(--text-secondary);
}

/* Skill cards with radial progress */
.skills {
  padding: 80px 0;
}

.skill-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(4, 1fr);
}

/* Radial progress */
.radial-progress {
  --progress: 0;
  position: relative;
  width: 130px;
  height: 130px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: conic-gradient(
    var(--accent-cyan) calc(var(--progress) * 1%),
    rgba(255, 255, 255, 0.06) 0%
  );
  display: grid;
  place-items: center;
  transition: --progress 1.5s var(--ease-out-expo);
}

.radial-progress::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
}

.radial-progress::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent,
    rgba(0, 212, 255, 0.3),
    transparent
  );
  animation: rotate-glow 4s linear infinite;
  opacity: 0;
  transition: opacity var(--duration-normal);
}

.radial-progress:hover::after {
  opacity: 1;
}

@keyframes rotate-glow {
  to { transform: rotate(360deg); }
}

.radial-progress span {
  position: relative;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* Skill card */
.skill-card {
  padding: 32px 24px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  text-align: center;
  transition: all var(--duration-normal) var(--ease-out-expo);
}

.skill-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 212, 255, 0.2);
  box-shadow: var(--shadow-md);
}

.skill-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.skill-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

/* === 2026 ABOUT SECTION === */
.about {
  padding: 140px 0 120px;
}

.about-grid {
  display: grid;
  gap: 80px;
  grid-template-columns: 1fr 1.2fr;
  align-items: center;
}

.about-photo {
  position: relative;
}

.about-photo img {
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-lg);
}

.about-caption {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  padding: 14px 20px;
  background: rgba(5, 6, 15, 0.85);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.about-copy {
  padding: 40px 44px;
}

.about-copy .about-label {
  display: inline-block;
  padding: 8px 16px;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(139, 92, 246, 0.08) 100%);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 20px;
}

.about-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 28px;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-copy p {
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--text-secondary);
  margin-bottom: 24px;
  letter-spacing: 0.01em;
}

.about-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}

.about-badges li {
  padding: 8px 16px;
  background: rgba(0, 212, 255, 0.06);
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Info grid */
.info-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 32px;
}

.info-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.info-value {
  font-weight: 600;
  color: var(--text-primary);
}

/* Profile sections - 2026 refined spacing */
.profile-sections {
  display: grid;
  gap: 28px;
  margin-top: 80px;
  grid-template-columns: repeat(2, 1fr);
}

/* === 2026 GLASS & PROFILE CARDS === */
.profile-card,
.glass-card {
  position: relative;
  padding: 32px;
  background: linear-gradient(
    145deg,
    rgba(13, 16, 37, 0.8) 0%,
    rgba(18, 22, 45, 0.7) 50%,
    rgba(15, 18, 38, 0.75) 100%
  );
  backdrop-filter: blur(28px) saturate(1.3);
  -webkit-backdrop-filter: blur(28px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--duration-slow) var(--ease-out-expo);
}

/* Inner ambient glow */
.profile-card::before,
.glass-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 212, 255, 0.04) 0%,
    transparent 40%,
    rgba(139, 92, 246, 0.03) 100%
  );
  opacity: 0;
  transition: opacity var(--duration-slow) var(--ease-smooth);
  pointer-events: none;
}

/* Top edge light reflection */
.profile-card::after,
.glass-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.12) 30%,
    rgba(255, 255, 255, 0.12) 70%,
    transparent
  );
}

.profile-card:hover::before,
.glass-card:hover::before {
  opacity: 1;
}

.profile-card:hover,
.glass-card:hover {
  transform: translateY(-5px) scale(1.01);
  border-color: rgba(0, 212, 255, 0.15);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.45),
    0 0 50px rgba(0, 212, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Card head - refined icons */
.card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.card-head i {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.12) 0%, rgba(77, 124, 255, 0.08) 100%);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: var(--radius-md);
  font-size: 1.1rem;
  color: var(--accent-cyan);
  transition: all var(--duration-normal) var(--ease-smooth);
}

.profile-card:hover .card-head i,
.glass-card:hover .card-head i {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.25);
}

.card-head h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.profile-card p {
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.profile-list {
  display: grid;
  gap: 12px;
}

.profile-list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.profile-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.profile-list span:first-child {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.profile-list span:last-child {
  font-weight: 500;
  color: var(--text-primary);
}

.profile-bullets {
  display: grid;
  gap: 12px;
}

.profile-bullets li {
  position: relative;
  padding-left: 22px;
  color: var(--text-secondary);
}

.profile-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  background: var(--accent-cyan);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent-cyan);
}

/* Language list */
.language-list {
  display: grid;
  gap: 12px;
}

.language-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.language-list span:first-child {
  font-weight: 600;
}

.language-list span:last-child {
  font-size: 0.85rem;
  color: var(--accent-cyan);
}

/* Achievement list */
.achievement-list {
  display: grid;
  gap: 14px;
}

.achievement-list li {
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed var(--border-light);
  border-radius: var(--radius-lg);
}

.achievement-list strong {
  display: block;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

/* Photo gallery */
.photo-gallery {
  margin-top: 80px;
}

.photo-gallery h3 {
  margin-bottom: 28px;
}

.gallery-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(4, 1fr);
}

.gallery-grid img {
  border-radius: var(--radius-lg);
  object-fit: cover;
  height: 200px;
  border: 1px solid var(--border-subtle);
  transition: all var(--duration-normal) var(--ease-out-expo);
}

.gallery-grid img:hover {
  transform: scale(1.03);
  border-color: var(--accent-cyan);
  box-shadow: var(--shadow-md);
}

/* === 2026 CONTACT SECTION === */
.contact-hero {
  padding: 140px 0 80px;
}

.contact-hero-grid {
  display: grid;
  gap: 60px;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
}

.contact-hero-card {
  position: relative;
  padding: 40px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-md);
}

.contact-hero-card h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 20px;
}

.contact-hero-card p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
}

.contact-chip-list {
  margin-top: 32px;
}

.contact-hero-photo {
  display: flex;
  justify-content: center;
}

.contact-photo-frame {
  position: relative;
  padding: 16px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
}

.contact-photo-frame::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: calc(var(--radius-2xl) - 8px);
}

.contact-photo-frame img {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: var(--radius-xl);
}

/* Contact section */
.contact-section {
  padding: 60px 0 100px;
}

.contact-section-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr 1.2fr;
}

.contact-cards {
  display: grid;
  gap: 20px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 26px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  transition: all var(--duration-normal) var(--ease-out-expo);
}

.contact-card:hover {
  transform: translateX(8px);
  border-color: rgba(0, 212, 255, 0.2);
}

.contact-card i {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: var(--radius-md);
  font-size: 1.3rem;
  color: var(--accent-cyan);
}

.contact-card h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.contact-card a {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* Contact form */
.contact-form-card {
  padding: 36px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-md);
}

.contact-form-card h2 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.contact-form {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  font-family: var(--font-primary);
  font-size: 1rem;
  transition: all var(--duration-fast) var(--ease-smooth);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-muted);
}

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

/* === FLOATING INPUT GROUP === */
.input-group {
  position: relative;
}

.input-group input,
.input-group textarea {
  width: 100%;
  padding: 20px 20px 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  font-family: var(--font-primary);
  font-size: 1rem;
  transition: all var(--duration-normal) var(--ease-smooth);
}

.input-group textarea {
  min-height: 140px;
  resize: vertical;
}

.input-group label {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.95rem;
  pointer-events: none;
  transition: all var(--duration-fast) var(--ease-smooth);
  display: flex;
  align-items: center;
  gap: 10px;
}

.input-group textarea ~ label {
  top: 24px;
  transform: none;
}

.input-group label i {
  color: var(--accent-cyan);
  opacity: 0.6;
  transition: opacity var(--duration-fast);
}

.input-group input:focus,
.input-group textarea:focus {
  outline: none;
  border-color: var(--accent-cyan);
  background: rgba(0, 212, 255, 0.03);
  box-shadow:
    0 0 0 3px rgba(0, 212, 255, 0.12),
    0 0 20px rgba(0, 212, 255, 0.08);
}

.input-group input:focus ~ label,
.input-group input:not(:placeholder-shown) ~ label,
.input-group textarea:focus ~ label,
.input-group textarea:not(:placeholder-shown) ~ label {
  top: 10px;
  transform: none;
  font-size: 0.75rem;
  color: var(--accent-cyan);
  letter-spacing: 0.5px;
}

.input-group input:focus ~ label i,
.input-group textarea:focus ~ label i {
  opacity: 1;
}

/* === 2026 FOOTER === */
.site-footer {
  margin-top: 100px;
  background: rgba(5, 6, 15, 0.9);
  border-top: 1px solid var(--border-subtle);
}

.footer-flex {
  display: grid;
  gap: 48px;
  padding: 60px 0 40px;
  grid-template-columns: 1.5fr 1fr;
}

.footer-brand {
  max-width: 400px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.footer-logo-mark {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  border-radius: var(--radius-lg);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff;
  box-shadow: 0 8px 30px rgba(0, 212, 255, 0.3);
}

.footer-logo-text span:first-child {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-cyan);
}

.footer-logo-text strong {
  display: block;
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-top: 2px;
}

.footer-brand > p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

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

.footer-socials a {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 1.2rem;
  transition: all var(--duration-normal) var(--ease-out-expo);
}

.footer-socials a:hover {
  color: var(--accent-cyan);
  border-color: rgba(0, 212, 255, 0.3);
  transform: translateY(-4px);
  background: rgba(0, 212, 255, 0.05);
}

.footer-contact h3 {
  font-size: 1.1rem;
  margin-bottom: 24px;
}

.footer-contact-list {
  display: grid;
  gap: 18px;
}

.footer-contact-list li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  align-items: center;
}

.footer-contact-list i {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--accent-cyan);
}

.footer-copy {
  border-top: 1px solid var(--border-subtle);
  padding: 24px 0;
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* === UTILITIES === */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

/* === RESPONSIVE 2026 === */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .hero-photo {
    order: -1;
    justify-self: center;
  }
  
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hero-summary {
    grid-template-columns: 1fr;
  }
  
  .map-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .skill-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .profile-sections {
    grid-template-columns: 1fr;
  }
  
  .contact-hero-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-section-grid {
    grid-template-columns: 1fr;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header-grid {
    grid-template-columns: 1fr auto;
    gap: 20px;
  }
  
  .brand {
    grid-column: 1;
  }
  
  .main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 6, 15, 0.98);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(100%);
    transition: transform var(--duration-normal) var(--ease-out-expo);
    z-index: var(--z-overlay);
  }
  
  .main-nav.is-open {
    transform: translateX(0);
  }
  
  .nav-satellites {
    flex-direction: column;
    background: transparent;
    border: none;
    padding: 0;
  }
  
  .nav-pill {
    font-size: 1.2rem;
    padding: 16px 32px;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .floating-social {
    display: none;
  }
  
  .hero {
    padding: 120px 0 60px;
  }
  
  .skill-hero {
    padding: 120px 0 40px;
  }
  
  .contact-hero {
    padding: 120px 0 60px;
  }
  
  .project-row {
    grid-template-columns: 1fr;
  }
  
  .project-thumb {
    height: 240px;
  }
  
  .project-content {
    padding: 28px;
  }
  
  .metrics-grid {
    grid-template-columns: 1fr;
  }
  
  .map-grid {
    grid-template-columns: 1fr;
  }
  
  .skill-grid {
    grid-template-columns: 1fr;
  }
  
  .info-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-flex {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-tagline {
    font-size: clamp(2.5rem, 10vw, 4rem);
  }
  
  .hero-actions {
    flex-direction: column;
  }
  
  .hero-actions a {
    width: 100%;
    justify-content: center;
  }
  
  .hero-social {
    flex-direction: column;
  }
  
  .hero-social a {
    width: 100%;
    justify-content: center;
  }
  
  .contact-actions {
    flex-direction: column;
  }
  
  .contact-actions a {
    width: 100%;
    justify-content: center;
  }
}

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .reveal-on-scroll {
    opacity: 1;
    transform: none;
    filter: none;
  }
  
  .hero-tagline {
    background-position: 0% 50%;
  }
}

/* === PRINT STYLES === */
@media print {
  .site-header,
  .floating-social,
  .cursor-dot,
  .cursor-ring,
  .cursor-trail,
  .advanced-bg,
  .noise-overlay {
    display: none !important;
  }
  
  body {
    background: #fff;
    color: #000;
  }
  
  .container {
    max-width: 100%;
  }
}

/* === DARK MODE ENHANCEMENT (already dark, but refined) === */
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
  }
}

/* === SCROLLBAR 2026 === */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

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

::-webkit-scrollbar-thumb {
  background: rgba(0, 212, 255, 0.2);
  border-radius: var(--radius-full);
  border: 2px solid var(--bg);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 212, 255, 0.4);
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 212, 255, 0.2) var(--bg);
}

/* === SELECTION === */
::selection {
  background: rgba(0, 212, 255, 0.3);
  color: var(--text-primary);
}

/* === FOCUS VISIBLE === */
:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 3px;
}

/* === PAGE TRANSITIONS === */
.page-transition {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: var(--z-modal);
  transform: translateY(100%);
  pointer-events: none;
}

.page-transition.is-entering {
  animation: page-enter 0.6s var(--ease-out-expo) forwards;
}

.page-transition.is-exiting {
  animation: page-exit 0.6s var(--ease-out-expo) forwards;
}

@keyframes page-enter {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

@keyframes page-exit {
  from { transform: translateY(0); }
  to { transform: translateY(-100%); }
}

/* === LOADING SKELETON === */
.skeleton {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.03) 0%,
    rgba(255, 255, 255, 0.06) 50%,
    rgba(255, 255, 255, 0.03) 100%
  );
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
  border-radius: var(--radius-md);
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* === GLOW EFFECTS === */
.glow-text {
  text-shadow: 0 0 20px currentColor;
}

.glow-border {
  box-shadow: 
    0 0 20px rgba(0, 212, 255, 0.3),
    inset 0 0 20px rgba(0, 212, 255, 0.1);
}

/* === GRADIENT BORDERS === */
.gradient-border {
  position: relative;
}

.gradient-border::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  border-radius: inherit;
  pointer-events: none;
}
