﻿/* ================================================
   LIQUID GLASS PORTFOLIO - COMPLETE STYLESHEET
   Pearl White — Iridescent, Chromatic Aberration,
   Dynamic Blur, Morphing Animations, Holographic
   ================================================ */

/* --- CSS Custom Properties --- */
:root {
  --bg-deep: #f0ece4;
  --bg-space: #f5f1ea;
  --glass-white: rgba(255, 255, 255, 0.45);
  --glass-white-strong: rgba(255, 255, 255, 0.6);
  --glass-border: rgba(255, 255, 255, 0.5);
  --glass-border-hover: rgba(255, 255, 255, 0.75);
  --accent-blue: #3b6cb5;
  --accent-blue-bright: #4a7ec9;
  --accent-violet: #7c5cbf;
  --accent-violet-soft: #9a7ed6;
  --accent-iridescent: linear-gradient(135deg, #c24e6a, #c88040, #b89e30, #4a9458, #3b6cb5, #5252c9, #7c5cbf);
  --text-primary: #1a1a2e;
  --text-body: rgba(26, 26, 46, 0.72);
  --text-caption: rgba(26, 26, 46, 0.5);
  --text-dim: rgba(26, 26, 46, 0.3);
  --glow-blue: 0 0 30px rgba(59, 108, 181, 0.15);
  --glow-blue-strong: 0 0 50px rgba(59, 108, 181, 0.25);
  --glow-iridescent: 0 0 40px rgba(124, 92, 191, 0.08), 0 0 80px rgba(59, 108, 181, 0.04);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --radius-pill: 100px;
  --font-display: 'Syne', sans-serif;
  --font-heading: 'DM Serif Display', serif;
  --font-body: 'DM Sans', sans-serif;
  --transition-smooth: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  --morph-duration: 0.5s;
  --blur-amount: 15px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text-body);
  background: var(--bg-deep);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.locked {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

ul { list-style: none; }

::selection {
  background: rgba(59, 108, 181, 0.25);
  color: var(--text-primary);
}

/* --- Custom Cursor --- */
@media (pointer: fine) {
  * { cursor: none !important; }
}

#cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 8px; height: 8px;
  background: var(--accent-blue);
  border-radius: 50%;
  pointer-events: none;
  z-index: 100000;
  transform: translate(-50%, -50%);
  will-change: transform;
  box-shadow: 0 0 8px rgba(59, 108, 181, 0.4);
}

#cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 36px; height: 36px;
  border: 1.5px solid rgba(59, 108, 181, 0.3);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: width 0.25s ease, height 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  will-change: transform;
}

#cursor-ring.expanded {
  width: 52px; height: 52px;
  border-color: var(--accent-blue);
  background: rgba(59, 108, 181, 0.06);
}

#cursor-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 99998;
}

@media (pointer: coarse) {
  #cursor-dot, #cursor-ring, #cursor-canvas { display: none; }
  * { cursor: auto !important; }
}

/* --- Scroll Progress Bar --- */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-violet), #c24e6a);
  z-index: 10001;
  transition: none;
}

/* --- Three.js Canvas --- */
#scene-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ================================================
   LIQUID GLASS SYSTEM
   Iridescent holographic glass with chromatic
   aberration, dynamic blur + saturate, morphing
   transitions, and blend-mode: screen overlays
   ================================================ */

/* --- Iridescent shimmer animation --- */
@keyframes iridescent-shift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes holo-rotate {
  0%   { filter: hue-rotate(0deg) brightness(1); }
  50%  { filter: hue-rotate(25deg) brightness(1.08); }
  100% { filter: hue-rotate(0deg) brightness(1); }
}

/* --- Glass Panel --- */
.glass-panel {
  position: relative;
  background-color: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius-lg);
  isolation: isolate;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.06),
    var(--glow-iridescent);
  overflow: hidden;
  transition: transform var(--morph-duration), box-shadow var(--morph-duration), border-color var(--morph-duration);
}

/* Dynamic blur + saturate + SVG distortion */
.glass-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  backdrop-filter: blur(var(--blur-amount)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--blur-amount)) saturate(180%);
  filter: url(#liquid-glass-card);
  z-index: -1;
}

/* Iridescent holographic overlay */
.glass-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(194, 78, 106, 0.06) 0%,
    rgba(200, 158, 48, 0.04) 20%,
    rgba(74, 148, 88, 0.04) 40%,
    rgba(59, 108, 181, 0.07) 60%,
    rgba(124, 92, 191, 0.06) 80%,
    rgba(194, 78, 106, 0.04) 100%
  );
  background-size: 300% 300%;
  animation: iridescent-shift 8s ease infinite;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 2;
  opacity: 0.6;
  transition: opacity var(--morph-duration);
}

.glass-panel:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.75);
  box-shadow:
    0 12px 48px rgba(0, 0, 0, 0.08),
    0 0 40px rgba(59, 108, 181, 0.08),
    0 0 80px rgba(124, 92, 191, 0.04);
}

.glass-panel:hover::after {
  opacity: 1;
}

/* --- Glass Chip --- */
.glass-chip {
  position: relative;
  background-color: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius-pill);
  isolation: isolate;
  box-shadow:
    0 2px 12px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: transform var(--morph-duration), border-color var(--morph-duration), box-shadow var(--morph-duration);
}

.glass-chip::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  backdrop-filter: blur(10px) saturate(160%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  filter: url(#liquid-glass-chip);
  z-index: -1;
}

.glass-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 0 20px rgba(59, 108, 181, 0.06);
}

/* --- Glass Circle --- */
.glass-circle {
  position: relative;
  background-color: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  isolation: isolate;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: all var(--morph-duration);
}

.glass-circle::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  backdrop-filter: blur(10px) saturate(160%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  filter: url(#liquid-glass-chip);
  z-index: -1;
}

.glass-circle:hover {
  border-color: rgba(255, 255, 255, 0.7);
  background-color: rgba(255, 255, 255, 0.6);
}

/* --- Glass Input --- */
.glass-input {
  background-color: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-sm);
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 14px 18px;
  width: 100%;
  outline: none;
  transition: border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.glass-input:focus {
  border-color: var(--accent-blue);
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 0 25px rgba(59, 108, 181, 0.12);
}

.glass-input::placeholder {
  color: var(--text-dim);
}

.glass-input.error {
  border-color: #ff3b30;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.04), 0 0 15px rgba(255, 59, 48, 0.1);
}

/* --- Glass Buttons --- */
.btn-glass {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background-color: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius-pill);
  isolation: isolate;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 4px 16px rgba(0, 0, 0, 0.04);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: all var(--morph-duration);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
}

.btn-glass::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  backdrop-filter: blur(10px) saturate(160%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  filter: url(#liquid-glass-chip);
  z-index: -1;
}

/* Chromatic aberration shimmer on buttons */
.btn-glass::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(194, 78, 106, 0.1) 0%,
    rgba(59, 108, 181, 0.1) 50%,
    rgba(124, 92, 191, 0.1) 100%
  );
  background-size: 200% 200%;
  animation: iridescent-shift 6s ease infinite;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity var(--morph-duration);
}

.btn-glass:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.75);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 8px 32px rgba(0, 0, 0, 0.07),
    var(--glow-blue);
}

.btn-glass:hover::after {
  opacity: 1;
}

.btn-primary {
  background: rgba(59, 108, 181, 0.1);
  border-color: rgba(59, 108, 181, 0.25);
}

.btn-primary:hover {
  background: rgba(59, 108, 181, 0.15);
  border-color: rgba(59, 108, 181, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.4);
}

.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.35);
}

.btn-submit {
  width: 100%;
  justify-content: center;
  padding: 16px;
  font-size: 15px;
}

.btn-submit .btn-sending {
  display: none;
}

.btn-submit.sending .btn-text {
  display: none;
}

.btn-submit.sending .btn-sending {
  display: inline-flex;
  align-items: center;
}

.btn-submit.sending {
  pointer-events: none;
  opacity: 0.7;
}

.dots::after {
  content: '';
  animation: dots 1.2s steps(4, end) infinite;
}

@keyframes dots {
  0% { content: ''; }
  25% { content: '.'; }
  50% { content: '..'; }
  75% { content: '...'; }
}

/* ================================================
   LOADER
   ================================================ */
#loader {
  position: fixed;
  inset: 0;
  z-index: 50000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(240, 236, 228, 0.96);
  transition: opacity 0.6s ease;
}

#loader.hidden {
  opacity: 0;
  pointer-events: none;
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.loader-ring {
  width: 80px;
  height: 80px;
}

.loader-ring svg {
  width: 100%;
  height: 100%;
}

.loader-circle-track {
  fill: none;
  stroke: rgba(26, 26, 46, 0.06);
  stroke-width: 2;
}

.loader-circle-fill {
  fill: none;
  stroke: var(--accent-blue);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 213.6;
  stroke-dashoffset: 213.6;
  transform-origin: center;
  animation: loader-spin 1.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes loader-spin {
  0% {
    stroke-dashoffset: 213.6;
    transform: rotate(0deg);
  }
  50% {
    stroke-dashoffset: 53.4;
  }
  100% {
    stroke-dashoffset: 213.6;
    transform: rotate(360deg);
  }
}

.loader-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-caption);
}

.loader-bar-track {
  width: 200px;
  height: 3px;
  background: rgba(26, 26, 46, 0.06);
  border-radius: 2px;
  overflow: hidden;
}

.loader-bar-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-violet), #c24e6a);
  border-radius: 2px;
  transition: width 0.15s ease;
}

/* ================================================
   NAVIGATION
   ================================================ */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 10000;
  padding: 0 32px;
  transition: background var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

#site-header.scrolled {
  background: rgba(255, 255, 255, 0.45);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow:
    inset 0 -1px 0 rgba(255, 255, 255, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 4px 30px rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(var(--blur-amount)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--blur-amount)) saturate(180%);
}

#main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: 1280px;
  margin: 0 auto;
}

.nav-logo {
  display: flex;
  align-items: baseline;
  gap: 2px;
  text-decoration: none;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 24px;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.logo-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-blue);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-blue), 0 0 20px rgba(59, 108, 181, 0.2);
  display: inline-block;
  margin-left: 2px;
  position: relative;
  top: -2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-link {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-caption);
  transition: color var(--transition-smooth);
  position: relative;
  padding: 4px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0%;
  height: 1.5px;
  background: var(--accent-blue);
  box-shadow: 0 0 8px rgba(59, 108, 181, 0.35);
  border-radius: 1px;
  transition: width var(--transition-smooth);
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
}

.nav-link.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.toggle-bar {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: all var(--transition-smooth);
}

.nav-toggle.open .toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.open .toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open .toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(240, 236, 228, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.mobile-nav-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.mobile-nav-link {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--text-body);
  transition: color var(--transition-smooth);
}

.mobile-nav-link:hover {
  color: var(--text-primary);
}

@media (max-width: 768px) {
  #site-header { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
}

/* ================================================
   SECTIONS - SHARED
   ================================================ */
.section {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.section-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 32px;
  width: 100%;
}

.section-number {
  position: absolute;
  top: 80px;
  left: 32px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(100px, 15vw, 220px);
  color: rgba(26, 26, 46, 0.04);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.section-heading {
  font-family: var(--font-heading);
  font-size: clamp(36px, 5vw, 56px);
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.section-sub {
  font-size: 16px;
  color: var(--text-caption);
  margin-bottom: 48px;
  max-width: 500px;
  position: relative;
  z-index: 1;
}

/* ================================================
   HERO SECTION
   ================================================ */
.hero-section {
  justify-content: center;
  padding: 0 32px;
}

.hero-content {
  max-width: 100%;
  width: 100%;
  position: relative;
  z-index: 2;
  padding: 0 5vw;
}

.hero-eyebrow {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent-blue);
  margin-bottom: 16px;
  opacity: 0;
  text-shadow: 0 0 20px rgba(59, 108, 181, 0.2);
}

.hero-name {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.92;
  margin-bottom: 28px;
}

.hero-name-line {
  display: block;
  font-size: clamp(32px, 7vw, 120px);
  color: var(--text-primary);
  letter-spacing: -0.04em;
  opacity: 0;
  white-space: nowrap;
}

.hero-name-accent {
  display: block;
  font-size: clamp(24px, 5vw, 80px);
  color: transparent;
  -webkit-text-stroke: 1.5px var(--accent-blue);
  letter-spacing: -0.02em;
  opacity: 0;
  white-space: nowrap;
  filter: drop-shadow(0 0 25px rgba(59, 108, 181, 0.25));
}

.hero-tagline {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-body);
  line-height: 1.65;
  max-width: 520px;
  margin-bottom: 36px;
  opacity: 0;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
  opacity: 0;
}

.hero-stats {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
}

.stat-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 24px;
  min-width: 110px;
}

.stat-number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 28px;
  color: var(--text-primary);
  line-height: 1;
}

.stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-caption);
  margin-top: 6px;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  z-index: 2;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent-blue), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 0.4; transform: scaleY(0.7); }
  50% { opacity: 1; transform: scaleY(1); }
}

.scroll-text {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-dim);
}

/* ================================================
   ABOUT SECTION
   ================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.about-text p {
  margin-bottom: 20px;
  font-size: 15px;
  line-height: 1.7;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
  margin-bottom: 28px;
}

.glass-tag {
  padding: 8px 18px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-body);
}

/* Orbit Visualization */
.about-orbit {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-width: 460px;
  margin: 0 auto;
}

.orbit-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  color: var(--text-primary);
  z-index: 3;
  background: rgba(59, 108, 181, 0.08);
  border-color: rgba(59, 108, 181, 0.25);
  box-shadow: 0 0 30px rgba(59, 108, 181, 0.1), 0 0 60px rgba(124, 92, 191, 0.04);
}

.orbit-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(26, 26, 46, 0.08);
  border-radius: 50%;
}

.orbit-ring-1 {
  width: 55%;
  height: 55%;
  transform: translate(-50%, -50%);
  animation: orbit-rotate 30s linear infinite;
}

.orbit-ring-2 {
  width: 78%;
  height: 78%;
  transform: translate(-50%, -50%);
  animation: orbit-rotate 45s linear infinite reverse;
}

.orbit-ring-3 {
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  animation: orbit-rotate 60s linear infinite;
}

@keyframes orbit-rotate {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.orbit-node {
  position: absolute;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-body);
  white-space: nowrap;
  top: 50%;
  left: 50%;
  transform:
    rotate(var(--angle))
    translateX(calc(50% + 10px))
    rotate(calc(-1 * var(--angle)));
}

/* Counter-rotate text */
.orbit-ring-1 .orbit-node { transform: rotate(var(--angle)) translateX(calc(27.5% + 50px)) rotate(calc(-1 * var(--angle))); animation: orbit-counter 30s linear infinite reverse; }
.orbit-ring-2 .orbit-node { transform: rotate(var(--angle)) translateX(calc(39% + 50px)) rotate(calc(-1 * var(--angle))); animation: orbit-counter 45s linear infinite; }
.orbit-ring-3 .orbit-node { transform: rotate(var(--angle)) translateX(calc(50% + 50px)) rotate(calc(-1 * var(--angle))); animation: orbit-counter 60s linear infinite reverse; }

@keyframes orbit-counter {
  from { /* handled by parent counter */ }
  to { /* handled by parent counter */ }
}

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .about-orbit { display: none; }
}

/* ================================================
   SKILLS SECTION
   ================================================ */
.skills-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}

.filter-pill {
  padding: 10px 22px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-caption);
  transition: all var(--transition-smooth);
}

.filter-pill.active {
  color: var(--text-primary);
  background: rgba(59, 108, 181, 0.1);
  border-color: rgba(59, 108, 181, 0.3);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  position: relative;
  z-index: 1;
}

.skill-card {
  padding: 28px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.skill-card > * {
  position: relative;
  z-index: 2;
}

.skill-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.skill-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(59, 108, 181, 0.15));
}

.skill-info {
  flex: 1;
  min-width: 0;
}

.skill-name {
  font-family: var(--font-heading);
  font-size: 17px;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.skill-bar-track {
  width: 100%;
  height: 4px;
  background: rgba(26, 26, 46, 0.06);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.skill-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-violet), #c24e6a);
  border-radius: 2px;
  transition: width 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 0 8px rgba(59, 108, 181, 0.2);
}

.skill-pct {
  font-size: 12px;
  color: var(--text-caption);
  margin-top: 6px;
  display: inline-block;
}

/* ================================================
   PROJECTS SECTION
   ================================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
  position: relative;
  z-index: 1;
}

/* Skeleton card */
.skeleton-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.35);
  animation: skeleton-pulse 1.8s ease-in-out infinite;
}

.skeleton-thumb {
  aspect-ratio: 16/9;
  background: rgba(255, 255, 255, 0.35);
}

.skeleton-body {
  padding: 24px;
}

.skeleton-line {
  height: 14px;
  background: rgba(26, 26, 46, 0.05);
  border-radius: 6px;
  margin-bottom: 12px;
}

.skeleton-line:last-child { width: 60%; margin-bottom: 0; }

@keyframes skeleton-pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* Project Card */
.project-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.5);
  isolation: isolate;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 8px 32px rgba(0, 0, 0, 0.06);
  transition: all var(--morph-duration);
  cursor: pointer;
}

.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  backdrop-filter: blur(var(--blur-amount)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--blur-amount)) saturate(180%);
  filter: url(#liquid-glass-card);
  z-index: -1;
}

/* Iridescent hover overlay */
.project-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(194, 78, 106, 0.05) 0%,
    rgba(59, 108, 181, 0.06) 50%,
    rgba(124, 92, 191, 0.05) 100%
  );
  background-size: 300% 300%;
  animation: iridescent-shift 8s ease infinite;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity var(--morph-duration);
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 16px 48px rgba(0, 0, 0, 0.08),
    0 0 40px rgba(59, 108, 181, 0.06);
}

.project-card:hover::after {
  opacity: 1;
}

.project-thumb-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.project-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--morph-duration);
}

.project-card:hover .project-thumb {
  transform: scale(1.05);
}

.project-thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(240, 236, 228, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-thumb-overlay {
  opacity: 1;
}

.project-card-body {
  padding: 24px;
}

.project-card-title {
  font-family: var(--font-heading);
  font-size: 19px;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.project-card-date {
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 10px;
  display: block;
}

.project-card-desc {
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 16px;
}

.project-card-links {
  display: flex;
  gap: 16px;
}

.project-card-links a {
  font-size: 12px;
  color: var(--accent-blue);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color var(--transition-smooth);
}

.project-card-links a:hover {
  color: var(--accent-blue-bright);
  text-decoration: underline;
}

/* Empty state */
.projects-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 32px;
}

.projects-empty p {
  color: var(--text-caption);
  font-size: 15px;
}

/* ================================================
   PROJECT MODAL
   ================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 20000;
  background: rgba(240, 236, 228, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-panel {
  max-width: 700px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 0;
  border-radius: var(--radius-xl);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  color: var(--text-body);
  z-index: 10;
  transition: all var(--transition-smooth);
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.65);
  color: var(--text-primary);
}

.modal-carousel {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  background: rgba(0, 0, 0, 0.05);
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.4s ease;
}

.carousel-track img {
  min-width: 100%;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
  color: var(--text-primary);
  backdrop-filter: blur(10px);
  transition: all var(--transition-smooth);
}

.carousel-btn:hover {
  background: rgba(255, 255, 255, 0.65);
}

.carousel-prev { left: 12px; }
.carousel-next { right: 12px; }

.carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.carousel-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(26, 26, 46, 0.15);
  border: none;
  cursor: pointer;
  transition: all var(--transition-smooth);
}

.carousel-dot.active {
  background: var(--accent-blue);
  box-shadow: 0 0 10px rgba(59, 108, 181, 0.35);
}

.modal-body {
  padding: 28px 32px 32px;
  position: relative;
  z-index: 2;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 24px;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.modal-date {
  font-size: 13px;
  color: var(--text-dim);
  display: block;
  margin-bottom: 14px;
}

.modal-desc {
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 24px;
}

.modal-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ================================================
   CONTACT SECTION
   ================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  position: relative;
  z-index: 1;
}

.contact-form {
  padding: 36px;
}

.contact-form > * {
  position: relative;
  z-index: 2;
}

.form-group {
  margin-bottom: 22px;
}

.form-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-caption);
  margin-bottom: 8px;
  font-weight: 500;
}

.label-opt {
  text-transform: none;
  letter-spacing: normal;
  color: var(--text-dim);
  font-weight: 400;
}

.form-error {
  display: block;
  font-size: 12px;
  color: #ff6b6b;
  margin-top: 6px;
  min-height: 18px;
}

textarea.glass-input {
  resize: vertical;
  min-height: 120px;
}

.contact-info {
  padding: 36px;
  display: flex;
  flex-direction: column;
  height: fit-content;
}

.contact-info > * {
  position: relative;
  z-index: 2;
}

.contact-info-title {
  font-family: var(--font-heading);
  font-size: 22px;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.contact-info-text {
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.6;
  margin-bottom: 28px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  font-size: 14px;
  color: var(--text-body);
  transition: color var(--transition-smooth);
  width: fit-content;
}

.contact-link:hover {
  color: var(--text-primary);
}

.contact-link svg {
  flex-shrink: 0;
  color: var(--accent-blue);
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* ================================================
   FOOTER
   ================================================ */
.site-footer {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 48px 32px;
}

.site-footer p {
  font-size: 13px;
  color: var(--text-dim);
}

/* ================================================
   SOUND TOGGLE
   ================================================ */
.sound-toggle {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9998;
  color: var(--text-caption);
  transition: all var(--transition-smooth);
}

.sound-toggle:hover {
  color: var(--text-primary);
}

.sound-toggle .sound-off { display: block; }
.sound-toggle .sound-on { display: none; }

.sound-toggle.active .sound-off { display: none; }
.sound-toggle.active .sound-on {
  display: block;
  filter: drop-shadow(0 0 8px rgba(59, 108, 181, 0.5));
}

/* ================================================
   TOAST
   ================================================ */
#toast-container {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}

.toast {
  padding: 14px 28px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-pill);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 8px 32px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(var(--blur-amount)) saturate(180%);
  color: var(--text-primary);
  font-size: 14px;
  pointer-events: auto;
  animation: toast-in 0.4s ease forwards;
}

.toast.success {
  border-color: rgba(48, 209, 88, 0.35);
  background: rgba(48, 209, 88, 0.1);
}

.toast.error {
  border-color: rgba(255, 59, 48, 0.35);
  background: rgba(255, 59, 48, 0.1);
}

.toast.removing {
  animation: toast-out 0.35s ease forwards;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes toast-out {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(20px); }
}

/* ================================================
   REDUCED MOTION
   ================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .scroll-line { animation: none; opacity: 0.6; }
  .orbit-ring, .orbit-ring-1, .orbit-ring-2, .orbit-ring-3 { animation: none; }
}

/* ================================================
   UTILITY
   ================================================ */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

.shake {
  animation: shake 0.3s ease;
}

@media (max-width: 768px) {
  .section-container { padding: 80px 20px; }
  .hero-section { padding: 0 20px; }
  .hero-stats { gap: 10px; }
  .stat-chip { padding: 12px 16px; min-width: 90px; }
  .stat-number { font-size: 22px; }
  .projects-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
}
