/* ===================================================================
   LIQUID GLASS PORTFOLIO — Design System & Styles
   Author: etherian.dev
   Theme: Dark mode + Blue-Cyan accent + Liquid Glass
   =================================================================== */

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

/* ── CSS Custom Properties (Design Tokens) ────────────────────────── */
:root {
  /* Colors — Base */
  --bg-primary: hsl(220, 25%, 6%);
  --bg-secondary: hsl(220, 20%, 10%);
  --bg-tertiary: hsl(220, 18%, 14%);

  /* Colors — Glass (iOS 26 Liquid Glass) */
  --glass-bg: rgba(255, 255, 255, 0.06);
  --glass-bg-hover: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-border-hover: rgba(255, 255, 255, 0.22);
  --glass-highlight: rgba(255, 255, 255, 0.25);
  --glass-edge-light: linear-gradient(90deg, transparent 5%, rgba(255, 255, 255, 0.3) 20%, rgba(255, 255, 255, 0.5) 50%, rgba(255, 255, 255, 0.3) 80%, transparent 95%);
  --glass-inner-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1), inset 0 -1px 1px rgba(0, 0, 0, 0.15);

  /* Colors — Accent */
  --accent-primary: hsl(195, 100%, 50%);
  --accent-secondary: hsl(210, 100%, 60%);
  --accent-tertiary: hsl(230, 80%, 65%);
  --accent-glow: hsla(195, 100%, 50%, 0.25);
  --accent-glow-strong: hsla(195, 100%, 50%, 0.5);
  --gradient-accent: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary), var(--accent-tertiary));

  /* Colors — Text */
  --text-primary: rgba(255, 255, 255, 0.95);
  --text-secondary: rgba(255, 255, 255, 0.55);
  --text-tertiary: rgba(255, 255, 255, 0.35);

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Transitions */
  --ease-smooth: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.2s var(--ease-smooth);
  --transition-normal: 0.4s var(--ease-smooth);
  --transition-slow: 0.8s var(--ease-out-expo);

  /* Layout */
  --max-width: 1200px;
  --nav-height: 72px;

  /* Cursor position (updated by JS) */
  --mouse-x: 50%;
  --mouse-y: 50%;
  --cursor-x: 50vw;
  --cursor-y: 50vh;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

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

ul, ol {
  list-style: none;
}

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

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

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

/* ── Scrollbar ─────────────────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--glass-border);
  border-radius: var(--radius-full);
}

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

/* ── Background Animated Gradient Mesh ─────────────────────────────── */
.bg-mesh {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  animation: orbFloat 20s ease-in-out infinite;
}

.bg-orb--1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, hsla(195, 100%, 50%, 0.4), transparent 70%);
  top: -10%;
  right: -5%;
  animation-delay: 0s;
  animation-duration: 25s;
}

.bg-orb--2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, hsla(210, 100%, 60%, 0.3), transparent 70%);
  bottom: -10%;
  left: -5%;
  animation-delay: -8s;
  animation-duration: 30s;
}

.bg-orb--3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, hsla(230, 80%, 65%, 0.25), transparent 70%);
  top: 40%;
  left: 50%;
  animation-delay: -15s;
  animation-duration: 22s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(60px, -80px) scale(1.1); }
  50% { transform: translate(-40px, 50px) scale(0.95); }
  75% { transform: translate(30px, 30px) scale(1.05); }
}


/* ── Navigation ────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--space-xl);
  transition: background var(--transition-normal), backdrop-filter var(--transition-normal);
}

.nav.is-scrolled {
  background: rgba(10, 14, 25, 0.55);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05), 0 8px 32px rgba(0, 0, 0, 0.2);
}

.nav.is-scrolled::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 5%;
  right: 5%;
  height: 1px;
  background: var(--glass-edge-light);
  opacity: 0.4;
}

.nav__container {
  width: 100%;
  max-width: var(--max-width);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  position: relative;
}

.nav__logo span {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav__links {
  display: flex;
  gap: var(--space-xs);
}

.nav__link {
  position: relative;
  padding: var(--space-sm) var(--space-md);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  transition: color var(--transition-fast), background var(--transition-fast);
  letter-spacing: 0.01em;
}

.nav__link:hover {
  color: var(--text-primary);
  background: var(--glass-bg);
}

.nav__link.is-active {
  color: var(--accent-primary);
  background: rgba(0, 194, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 194, 255, 0.12);
  box-shadow: 0 0 16px rgba(0, 194, 255, 0.08);
}

.nav__link.is-active::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-primary);
  box-shadow: 0 0 8px var(--accent-glow-strong);
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 110;
}

.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.nav__hamburger.is-open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav__hamburger.is-open span:nth-child(2) {
  opacity: 0;
}

.nav__hamburger.is-open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ── Glass Card Component (iOS 26 Liquid Glass) ────────────────────── */
.glass-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(24px) saturate(180%) brightness(1.02);
  -webkit-backdrop-filter: blur(24px) saturate(180%) brightness(1.02);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition-fast), transform var(--transition-normal), box-shadow var(--transition-normal);
  box-shadow:
    var(--glass-inner-shadow),
    0 8px 32px rgba(0, 0, 0, 0.15),
    0 2px 8px rgba(0, 0, 0, 0.1);
}

/* iOS 26 signature: bright top-edge light band */
.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--glass-edge-light);
  opacity: 0.6;
  z-index: 2;
  transition: opacity var(--transition-fast);
}

/* iOS 26 edge refraction glow (bottom) */
.glass-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  z-index: 2;
}

.glass-card:hover {
  border-color: var(--glass-border-hover);
  transform: translateY(-4px);
  box-shadow:
    var(--glass-inner-shadow),
    0 20px 60px rgba(0, 0, 0, 0.25),
    0 0 50px var(--accent-glow),
    0 2px 8px rgba(0, 0, 0, 0.15);
}

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

/* Cursor-reactive light shimmer on glass cards */
.glass-card__shimmer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: radial-gradient(
    600px circle at var(--mouse-x) var(--mouse-y),
    rgba(0, 194, 255, 0.06),
    transparent 40%
  );
  z-index: 1;
  opacity: 0;
  transition: opacity 0.4s;
}

.glass-card:hover .glass-card__shimmer {
  opacity: 1;
}

/* ── Sections — General ────────────────────────────────────────────── */
.section {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-5xl) var(--space-xl);
}

.section__container {
  width: 100%;
  max-width: var(--max-width);
}

.section__label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: var(--space-lg);
}

.section__label::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--accent-primary);
}

.section__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: var(--space-lg);
}

.section__subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.7;
}

/* ── Scroll Reveal Animations ──────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }
.reveal--delay-4 { transition-delay: 0.4s; }
.reveal--delay-5 { transition-delay: 0.5s; }

/* ── HERO SECTION ──────────────────────────────────────────────────── */
#home {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero__content {
  position: relative;
  z-index: 3;
}

.hero__greeting {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--accent-primary);
  margin-bottom: var(--space-lg);
  letter-spacing: 0.1em;
}

.hero__name {
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: var(--space-lg);
  position: relative;
}

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

.hero__title {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: var(--space-2xl);
  letter-spacing: 0.02em;
}

.hero__title .typed-cursor {
  color: var(--accent-primary);
  animation: blink 1s step-end infinite;
  font-weight: 300;
}

@keyframes blink {
  50% { opacity: 0; }
}

.hero__cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* ── Buttons ───────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 14px 32px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

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

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow-strong), inset 0 1px 0 rgba(255,255,255,0.3);
}

.btn--glass {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  box-shadow: var(--glass-inner-shadow), 0 4px 16px rgba(0,0,0,0.15);
}

.btn--glass:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: var(--glass-inner-shadow), 0 8px 24px rgba(0,0,0,0.2);
}

.btn__icon {
  font-size: 1.1em;
}

/* ── Hero Decorative Elements ──────────────────────────────────────── */
.hero__glass-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  pointer-events: none;
}

.hero__glass-ring--1 {
  width: 500px;
  height: 500px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: ringPulse 6s ease-in-out infinite;
  opacity: 0.3;
}

.hero__glass-ring--2 {
  width: 700px;
  height: 700px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: ringPulse 8s ease-in-out infinite;
  animation-delay: -2s;
  opacity: 0.15;
}

.hero__glass-ring--3 {
  width: 900px;
  height: 900px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: ringPulse 10s ease-in-out infinite;
  animation-delay: -4s;
  opacity: 0.08;
}

@keyframes ringPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: var(--ring-opacity, 0.15); }
  50% { transform: translate(-50%, -50%) scale(1.05); opacity: calc(var(--ring-opacity, 0.15) * 1.5); }
}

/* ── Scroll Indicator ──────────────────────────────────────────────── */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-tertiary);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-family: var(--font-mono);
  animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-indicator__line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent-primary), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

@keyframes scrollLine {
  0% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.5; transform: scaleY(0.6); }
  100% { opacity: 1; transform: scaleY(1); }
}

/* ── ABOUT SECTION ─────────────────────────────────────────────────── */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}

.about__photo-container {
  position: relative;
  display: flex;
  justify-content: center;
}

.about__photo-frame {
  position: relative;
  width: 320px;
  height: 380px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow:
    var(--glass-inner-shadow),
    0 20px 80px rgba(0, 0, 0, 0.35),
    0 0 40px rgba(0, 194, 255, 0.08);
}

.about__photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about__photo-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 194, 255, 0.1) 0%,
    transparent 50%,
    rgba(96, 130, 255, 0.08) 100%
  );
  pointer-events: none;
}

.about__photo-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  filter: blur(60px);
  z-index: -1;
}

.about__text h3 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
}

.about__text p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: var(--space-lg);
}

.about__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.about__stat {
  text-align: center;
  padding: var(--space-lg);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--glass-inner-shadow);
  position: relative;
  overflow: hidden;
}

.about__stat::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: var(--glass-edge-light);
  opacity: 0.3;
}

.about__stat-number {
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about__stat-label {
  font-size: 0.78rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: var(--space-xs);
}

/* ── PROJECTS SECTION ──────────────────────────────────────────────── */
.projects__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
}

.project-card {
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

/* ── SVG Icon Utility ──────────────────────────────────────────────── */
.icon {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.icon--filled {
  fill: currentColor;
  stroke: none;
}

.project-card__icon .icon {
  width: 28px;
  height: 28px;
  color: var(--accent-primary);
}

.skill-category__icon .icon {
  width: 24px;
  height: 24px;
  color: var(--accent-primary);
}

.contact__link-icon .icon {
  width: 22px;
  height: 22px;
  color: var(--accent-primary);
}

.footer__social-link .icon {
  width: 20px;
  height: 20px;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.footer__social-link:hover .icon {
  color: var(--accent-primary);
}

.project-card__icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 194, 255, 0.08);
  border-radius: var(--radius-md);
  font-size: 1.5rem;
  border: 1px solid rgba(0, 194, 255, 0.15);
  flex-shrink: 0;
}

.project-card__title {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.project-card__description {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
  flex-grow: 1;
}

.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: auto;
}

.project-card__tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 4px 12px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  color: var(--accent-primary);
  letter-spacing: 0.03em;
}

.project-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-primary);
  margin-top: var(--space-sm);
  transition: gap var(--transition-fast);
}

.project-card__link:hover {
  gap: var(--space-md);
}

.project-card__link-arrow {
  transition: transform var(--transition-fast);
}

.project-card:hover .project-card__link-arrow {
  transform: translateX(4px);
}

/* ── SKILLS SECTION ────────────────────────────────────────────────── */
.skills__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
}

.skill-category {
  padding: var(--space-xl);
}

.skill-category__header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.skill-category__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 194, 255, 0.08);
  border-radius: var(--radius-sm);
  font-size: 1.3rem;
  border: 1px solid rgba(0, 194, 255, 0.12);
}

.skill-category__title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.skill-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.skill-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.skill-item__name {
  font-size: 0.88rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.skill-item__bar {
  flex: 1;
  height: 3px;
  background: var(--glass-bg);
  border-radius: var(--radius-full);
  overflow: hidden;
  max-width: 120px;
}

.skill-item__bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: var(--gradient-accent);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1.2s var(--ease-out-expo);
}

.skill-item.is-visible .skill-item__bar-fill {
  transform: scaleX(1);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.skill-tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 6px 14px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.skill-tag:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background: rgba(0, 194, 255, 0.06);
  transform: translateY(-2px);
}

/* ── CONTACT SECTION ───────────────────────────────────────────────── */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  margin-top: var(--space-2xl);
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.contact__info-text {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.contact__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contact__link-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  box-shadow: var(--glass-inner-shadow);
  position: relative;
  overflow: hidden;
}

.contact__link-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: var(--glass-edge-light);
  opacity: 0.25;
}

.contact__link-item:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(8px);
  box-shadow: var(--glass-inner-shadow), 0 4px 20px rgba(0, 0, 0, 0.15);
}

.contact__link-icon {
  font-size: 1.3rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 194, 255, 0.1);
  border-radius: var(--radius-full);
  border: 1px solid rgba(0, 194, 255, 0.12);
  box-shadow: 0 0 12px rgba(0, 194, 255, 0.06);
}

.contact__link-label {
  font-size: 0.78rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.contact__link-value {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
}

/* Contact Form */
.contact__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.form-group {
  position: relative;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-sm);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  font-family: var(--font-primary);
  font-size: 0.95rem;
  color: var(--text-primary);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(0, 194, 255, 0.1);
}

.form-group textarea {
  min-height: 140px;
}

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

/* ── Footer ────────────────────────────────────────────────────────── */
.footer {
  position: relative;
  z-index: 2;
  padding: var(--space-2xl) var(--space-xl);
  border-top: 1px solid var(--glass-border);
}

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

.footer__text {
  font-size: 0.82rem;
  color: var(--text-tertiary);
}

.footer__text span {
  color: var(--accent-primary);
}

.footer__social {
  display: flex;
  gap: var(--space-md);
}

.footer__social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  font-size: 1.1rem;
  transition: all var(--transition-fast);
}

.footer__social-link:hover {
  border-color: var(--accent-primary);
  background: rgba(0, 194, 255, 0.08);
  transform: translateY(-3px);
}

/* ── Page Transition Overlay ───────────────────────────────────────── */
.page-transition {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s var(--ease-smooth);
}

.page-transition.is-active {
  opacity: 1;
  pointer-events: all;
}

/* ── Loading Screen ────────────────────────────────────────────────── */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: var(--space-xl);
  transition: opacity 0.8s var(--ease-out-expo), visibility 0.8s;
}

.loader.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.loader__glass-orb {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.15), rgba(0,194,255,0.1), transparent);
  border: 1px solid var(--glass-border);
  animation: loaderPulse 1.5s ease-in-out infinite;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

@keyframes loaderPulse {
  0%, 100% { transform: scale(1); opacity: 0.7; box-shadow: 0 0 40px var(--accent-glow); }
  50% { transform: scale(1.15); opacity: 1; box-shadow: 0 0 80px var(--accent-glow-strong); }
}

.loader__text {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-tertiary);
  letter-spacing: 0.15em;
}

/* ── Text Gradient Utility ─────────────────────────────────────────── */
.text-gradient {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Responsive ────────────────────────────────────────────────────── */
@media (max-width: 968px) {
  .about__grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    text-align: center;
  }

  .about__photo-container {
    order: -1;
  }

  .about__photo-frame {
    width: 260px;
    height: 310px;
  }

  .contact__grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

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

@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }

  .section {
    padding: var(--space-4xl) var(--space-md);
  }

  .nav__links {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    flex-direction: column;
    background: rgba(10, 12, 20, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: calc(var(--nav-height) + var(--space-xl)) var(--space-xl) var(--space-xl);
    border-left: 1px solid var(--glass-border);
    transform: translateX(100%);
    transition: transform 0.4s var(--ease-out-expo);
    z-index: 105;
  }

  .nav__links.is-open {
    transform: translateX(0);
  }

  .nav__link {
    font-size: 1rem;
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
  }

  .nav__hamburger {
    display: flex;
  }

  .hero__name {
    font-size: clamp(2.5rem, 12vw, 4rem);
  }

  .about__stats {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
  }

  .about__stat {
    padding: var(--space-md);
  }

  .about__stat-number {
    font-size: 1.4rem;
  }

  .about__stat-label {
    font-size: 0.68rem;
  }

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

  .footer__container {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }

  .liquid-glass-cursor {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero__cta-group {
    flex-direction: column;
  }

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

  .about__photo-frame {
    width: 220px;
    height: 270px;
  }
}

/* ── Reduced Motion ────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .liquid-glass-cursor {
    display: none;
  }
}
