/**
 * ==========================================
 *        POWERED BY ARYA VL ENGINE
 * ==========================================
 */

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #04060f;
}

::-webkit-scrollbar-thumb {
  background: #00f5d4;
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(0, 245, 212, 0.4);
}

::-webkit-scrollbar-thumb:hover {
  background: #00ffcc;
  box-shadow: 0 0 15px rgba(0, 245, 212, 0.6);
}

:root {
  /* ── Backgrounds ──────────────────────────────────────── */
  --bg-dark:           #050508;
  --bg-card:           rgba(15, 15, 21, 0.7);
  --bg-card-hover:     rgba(22, 22, 34, 0.85);
  --bg-elevated:       #161622;
  --bg-overlay:        rgba(0, 0, 0, 0.8);
  --bg-surface:        #0f0f15;

  /* ── Borders ──────────────────────────────────────────── */
  --border-color:       #1a1a24;
  --border-color-light: #252535;
  --border-width:       1px;

  /* ── Text ─────────────────────────────────────────────── */
  --text-main:     #ffffff;
  --text-muted:    #a0a0b0;
  --text-accent:   #00FFCC;
  --text-inverted: #050508;

  /* ── Accents ──────────────────────────────────────────── */
  --accent-primary:  #00FFCC;
  --accent-purple:   #A855F7;
  --accent-red:      #EF4444;
  --accent-blue:     #06B6D4;
  --accent-yellow:   #F59E0B;
  --accent-green:    #10B981;

  /* ── Status ───────────────────────────────────────────── */
  --colour-success: #10B981;
  --colour-warning: #F59E0B;
  --colour-error:   #EF4444;
  --colour-info:    #06B6D4;

  /* ── Typography ───────────────────────────────────────── */
  --font-display:          'Outfit', sans-serif;
  --font-body:             'Inter', sans-serif;
  --font-mono:             'JetBrains Mono', monospace;
  --font-size-base:        16px;
  --heading-letter-spacing: -0.02em;
  --heading-text-transform: none;
  --body-line-height:      1.6;

  /* ── Border Radius ────────────────────────────────────── */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* ── Glow & Shadow ────────────────────────────────────── */
  --glow-primary:        0 0 20px 7px rgba(0, 255, 204, 0.4);
  --glow-secondary:      0 0 15px 5px rgba(168, 85, 247, 0.25);
  --glow-primary-colour: #00FFCC;
  --card-shadow:         0 8px 30px rgba(0, 0, 0, 0.2);

  /* ── Glass ────────────────────────────────────────────── */
  --glass-blur:          16px;
  --glass-opacity:       0.08;
  --glass-border-opacity: 0.15;

  /* ── Spacing ──────────────────────────────────────────── */
  --space:            8px;
  --section-padding:  8rem;
  --card-padding:     2rem;
  --nav-height:       70px;
  --container-max:    1100px;

  /* ── Transitions ──────────────────────────────────────── */
  --ease-out:  0.8s cubic-bezier(0.16, 1, 0.3, 1);
  --ease-fast: 0.3s ease-out;
  /* ── New theme engine vars ──────────────────────────────── */
  --transition-speed:  0.3s;
  --transition-easing: ease-out;
  --hover-lift:        4px;
  --cursor-size:       12px;
  --cursor-color:      var(--accent-primary);
  --selection-bg:      var(--accent-primary);
  --selection-color:   #000;
  --scrollbar-width:   6px;
  --scrollbar-color:   var(--accent-primary);
  --scrollbar-track:   var(--bg-dark);
  --code-bg:           #0a0a10;
  --code-color:        #e2e8f0;
  --link-color:        var(--accent-primary);
  --link-hover-color:  var(--accent-purple);
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  line-height: 1.6;
  font-size: 16px;
  position: relative;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-display);
  font-weight: 800;
  margin-bottom: 0.5em;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

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

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
}

/* ==========================================
   NAVIGATION
   ========================================== */
.nav-logo {
  display: flex !important;
  align-items: center !important;
  gap: 0.8rem;
  transition: transform var(--ease-fast);
}

.nav-logo:hover {
  transform: translateY(-1px);
}

.nav-logo-img {
  height: 35px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 8px var(--accent-primary));
}

/* ==========================================
   PRELOADER
   ========================================== */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--bg-dark);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease-out, visibility 0.5s;
}

.preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

/* New: Full-screen Scanning Beam */
.preloader::before {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom,
      transparent,
      rgba(0, 255, 204, 0.05),
      rgba(0, 255, 204, 0.2),
      rgba(0, 255, 204, 0.05),
      transparent);
  animation: scanlineMove 8s infinite linear;
  z-index: 10;
  pointer-events: none;
}

@keyframes scanlineMove {
  0% {
    top: -100%;
  }

  100% {
    top: 100%;
  }
}

.preloader-content {
  text-align: center;
}

.preloader-logo {
  font-size: 3rem;
  letter-spacing: 0.2rem;
  margin-bottom: 2.5rem;
  color: var(--text-main);
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
  transition: opacity 0.4s ease;
  font-weight: 900;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
  animation: logoGlitch 5s infinite;
}

/* Digital Glitch Pseudo-elements */
.preloader-logo::before,
.preloader-logo::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.8;
  clip-path: rect(0, 0, 0, 0);
}

.preloader-logo::before {
  color: #ff00ff;
  left: -2px;
  text-shadow: 2px 0 #00ffff;
  animation: glitchAnim 3s infinite linear alternate-reverse;
}

.preloader-logo::after {
  color: #00ffff;
  left: 2px;
  text-shadow: -2px 0 #ff00ff;
  animation: glitchAnim 2s infinite linear alternate-reverse;
}

@keyframes glitchAnim {
  0% {
    clip-path: inset(10% 0 85% 0);
    transform: translate(-2px, 2px);
  }

  20% {
    clip-path: inset(80% 0 5% 0);
    transform: translate(2px, -2px);
  }

  40% {
    clip-path: inset(15% 0 70% 0);
    transform: translate(-2px, -2px);
  }

  60% {
    clip-path: inset(50% 0 10% 0);
    transform: translate(2px, 2px);
  }

  80% {
    clip-path: inset(5% 0 90% 0);
    transform: translate(-2px, 2px);
  }

  100% {
    clip-path: inset(30% 0 45% 0);
    transform: translate(0);
  }
}

@keyframes logoGlitch {

  0%,
  90%,
  100% {
    filter: none;
    transform: none;
  }

  92% {
    filter: skewX(20deg) brightness(2);
    transform: scale(1.1);
  }

  95% {
    filter: invert(1) hue-rotate(90deg);
    transform: scale(0.95);
  }

  98% {
    filter: skewX(-20deg) brightness(1.5);
    transform: scale(1.05);
  }
}

.preloader-logo.fading {
  opacity: 0;
}

#preloader-3d-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  /* Place it behind the text */
  /* Add a subtle CSS pulse to the entire canvas container to match the old image feel */
  animation: pulse 2s infinite alternate;
}

.preloader-footer-text {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  color: var(--accent-primary);
  font-size: 0.75rem;
  opacity: 0.5;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.loading-bar-container {
  width: 300px;
  height: 8px;
  background: rgba(255, 255, 255, 0.05);
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

.loading-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-primary), #fff, var(--accent-primary));
  background-size: 200% 100%;
  box-shadow: 0 0 20px var(--accent-primary);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 4px;
}

.loading-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 40px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  animation: scanSweep 1.5s infinite linear;
}

@keyframes scanSweep {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(300px);
  }
}

/* Hide UI during loading */
body:not(.loaded) #cursor-dot,
body:not(.loaded) #cursor-ring,
body:not(.loaded) #hamburger-btn {
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

#cursor-dot,
#cursor-ring,
#hamburger-btn {
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

/* ==========================================
   PARTICLES CANVAS
   ========================================== */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  /* Let clicks pass through */
}

/* ==========================================
   GLOBAL UTILITIES & ANIMATIONS
   ========================================== */
.scroll-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: all 1.2s var(--ease-out);
}

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

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  100% {
    transform: scale(1.05);
    opacity: 0.8;
  }
}

@keyframes float {

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

  50% {
    transform: translateY(-10px);
  }
}

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

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

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

  60% {
    transform: translate(2px, 2px);
  }

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

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

.typewriter-text::after {
  content: '|';
  animation: blink 1s step-end infinite;
}

.typewriter-text.done::after {
  display: none;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-sm);
  position: relative;
  cursor: pointer;
  overflow: hidden;
  transition: transform var(--ease-out), box-shadow var(--ease-out);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-main);
}

.btn-primary {
  border-color: rgba(0, 255, 204, 0.4);
  background: rgba(0, 255, 204, 0.05);
}

.btn-secondary {
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-text {
  position: relative;
  z-index: 2;
}

.btn-glow {
  position: absolute;
  inset: 0;
  background: var(--accent-primary);
  opacity: 0;
  transform: translateY(100%);
  transition: transform var(--ease-out), opacity var(--ease-out);
  z-index: 1;
}

.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px -10px var(--accent-primary);
  border-color: var(--accent-primary);
  color: #000;
}

.btn-primary:hover .btn-glow,
.btn-secondary:hover .btn-glow {
  opacity: 1;
  transform: translateY(0);
}

/* Shockwave effect on click */
.btn.clicked::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: shockwave 0.6s ease-out forwards;
  z-index: 3;
}

@keyframes shockwave {
  to {
    width: 300px;
    height: 300px;
    opacity: 0;
  }
}

/* ==========================================
   HERO SECTION
   ========================================== */
.section-hero {
  height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 0 5%;
  z-index: 10;
  overflow: hidden;
}

.hero-content {
  max-width: 800px;
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 5rem);
  margin-bottom: 0.5rem;
  background: linear-gradient(to right, #fff, #aaa);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  min-height: 1.2em;
  /* Prevent layout shift */
}

.tagline-container {
  height: 2em;
  margin-bottom: 1.5rem;
  overflow: hidden;
  position: relative;
}

.rotating-tagline {
  font-family: var(--font-mono);
  font-size: clamp(1.2rem, 2vw, 2rem);
  color: var(--accent-primary);
  font-weight: 400;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  transition: transform 0.5s var(--ease-out), opacity 0.5s var(--ease-out);
}

.rotating-tagline.slide-up {
  transform: translateY(-20px);
  opacity: 0;
}

.rotating-tagline.slide-in {
  transform: translateY(20px);
  opacity: 0;
}

.micro-text {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
  letter-spacing: 0.05em;
}

.cta-group {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}


/* ==========================================
   WIREFRAME SHAPE SYSTEM
   hero.background_wireframe_shape controls which class is applied
   ========================================== */

.wireframe-sphere,
.wireframe-cube,
.wireframe-torus,
.wireframe-diamond,
.wireframe-ring,
.wireframe-icosa,
.wireframe-helix {
  position: absolute;
  pointer-events: none;
  opacity: 0.18;
  animation: wf-spin var(--wf-speed, 20s) linear infinite;
}

@keyframes wf-spin {
  from { transform: rotate(0deg) rotateX(15deg) rotateY(0deg); }
  to   { transform: rotate(360deg) rotateX(15deg) rotateY(360deg); }
}

/* SPHERE */
.wireframe-sphere {
  width: 420px;
  height: 420px;
  border-radius: 50%;
  border: 1.5px solid var(--accent-primary);
  box-shadow:
    0 0 0 40px transparent,
    inset 0 0 0 80px transparent,
    inset 80px 0 0 transparent,
    inset -80px 0 0 transparent;
  background:
    repeating-conic-gradient(
      from 0deg,
      transparent 0deg 8deg,
      rgba(var(--glow-primary-colour, 0, 255, 204), 0.04) 8deg 9deg
    );
}
.wireframe-sphere::before,
.wireframe-sphere::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--accent-primary);
  opacity: 0.5;
}
.wireframe-sphere::before {
  transform: rotateY(60deg);
  opacity: 0.3;
}
.wireframe-sphere::after {
  transform: rotateX(60deg);
  opacity: 0.3;
}

/* CUBE */
.wireframe-cube {
  width: 280px;
  height: 280px;
  transform-style: preserve-3d;
  perspective: 800px;
  border: 2px solid var(--accent-primary);
  animation: wf-cube-spin var(--wf-speed, 20s) linear infinite;
}
.wireframe-cube::before {
  content: '';
  position: absolute;
  inset: -2px;
  border: 2px solid var(--accent-primary);
  transform: translateZ(280px);
  opacity: 0.6;
}
.wireframe-cube::after {
  content: '';
  position: absolute;
  inset: -2px;
  border: 2px solid var(--accent-primary);
  transform: rotateY(45deg) rotateX(45deg);
  opacity: 0.4;
}
@keyframes wf-cube-spin {
  from { transform: rotateX(10deg) rotateY(0deg) rotateZ(0deg); }
  to   { transform: rotateX(10deg) rotateY(360deg) rotateZ(10deg); }
}

/* TORUS / RING */
.wireframe-torus {
  width: 380px;
  height: 380px;
  border-radius: 50%;
  border: 40px solid transparent;
  outline: 2px solid var(--accent-primary);
  outline-offset: -21px;
  box-shadow: 0 0 0 2px var(--accent-primary), inset 0 0 0 2px var(--accent-primary);
}
.wireframe-torus::before {
  content: '';
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  border: 1.5px solid var(--accent-secondary, var(--accent-purple));
  opacity: 0.5;
  animation: wf-spin calc(var(--wf-speed, 20s) * 0.6) linear infinite reverse;
}

/* DIAMOND */
.wireframe-diamond {
  width: 260px;
  height: 260px;
  border: 2px solid var(--accent-primary);
  transform: rotate(45deg) rotateX(20deg);
  animation: wf-diamond-spin var(--wf-speed, 20s) linear infinite;
}
.wireframe-diamond::before {
  content: '';
  position: absolute;
  inset: -2px;
  border: 2px solid var(--accent-primary);
  transform: rotate(45deg);
  opacity: 0.5;
}
.wireframe-diamond::after {
  content: '';
  position: absolute;
  inset: 25%;
  border: 1.5px solid var(--accent-secondary, var(--accent-purple));
  transform: rotate(22.5deg);
  opacity: 0.4;
}
@keyframes wf-diamond-spin {
  from { transform: rotate(45deg) rotateX(20deg) rotateY(0deg); }
  to   { transform: rotate(45deg) rotateX(20deg) rotateY(360deg); }
}

/* RING (flat) */
.wireframe-ring {
  width: 400px;
  height: 400px;
  border-radius: 50%;
  border: 3px solid var(--accent-primary);
  box-shadow: 0 0 0 20px transparent, 0 0 0 21px var(--accent-primary), 0 0 0 70px transparent, 0 0 0 71px var(--accent-primary);
  animation: wf-ring-spin var(--wf-speed, 20s) linear infinite;
}
.wireframe-ring::before {
  content: '';
  position: absolute;
  inset: 15%;
  border-radius: 50%;
  border: 2px solid var(--accent-secondary, var(--accent-purple));
  opacity: 0.6;
}
.wireframe-ring::after {
  content: '';
  position: absolute;
  inset: 35%;
  border-radius: 50%;
  border: 1.5px solid var(--accent-primary);
  opacity: 0.4;
}
@keyframes wf-ring-spin {
  from { transform: rotateX(70deg) rotateZ(0deg); }
  to   { transform: rotateX(70deg) rotateZ(360deg); }
}

/* ICOSAHEDRON (approximated) */
.wireframe-icosa {
  width: 300px;
  height: 300px;
  clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
  border: 2px solid var(--accent-primary);
  animation: wf-icosa-spin var(--wf-speed, 20s) linear infinite;
  background:
    linear-gradient(30deg, transparent 40%, rgba(0,255,204,0.03) 40%, rgba(0,255,204,0.03) 60%, transparent 60%),
    linear-gradient(150deg, transparent 40%, rgba(168,85,247,0.03) 40%, rgba(168,85,247,0.03) 60%, transparent 60%);
}
.wireframe-icosa::before {
  content: '';
  position: absolute;
  inset: 5%;
  clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
  border: 1px solid var(--accent-primary);
  opacity: 0.5;
  transform: rotate(36deg);
}
@keyframes wf-icosa-spin {
  0%   { transform: rotate(0deg) scale(1); }
  50%  { transform: rotate(180deg) scale(1.05); }
  100% { transform: rotate(360deg) scale(1); }
}

/* HELIX */
.wireframe-helix {
  width: 200px;
  height: 400px;
  background:
    repeating-linear-gradient(
      180deg,
      transparent 0px,
      transparent 18px,
      var(--accent-primary) 18px,
      var(--accent-primary) 20px
    );
  border-left: 2px solid var(--accent-primary);
  border-right: 2px solid var(--accent-primary);
  opacity: 0.2;
  animation: wf-helix-spin var(--wf-speed, 20s) linear infinite;
}
.wireframe-helix::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    180deg,
    transparent 0px,
    transparent 8px,
    var(--accent-secondary, var(--accent-purple)) 8px,
    var(--accent-secondary, var(--accent-purple)) 10px
  );
  opacity: 0.5;
  transform: translateY(10px);
}
@keyframes wf-helix-spin {
  from { transform: rotateY(0deg) perspective(400px); }
  to   { transform: rotateY(360deg) perspective(400px); }
}

/* NONE — hide */
.wireframe-none {
  display: none !important;
}

.hero-atmosphere {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.25;
  pointer-events: none;
  z-index: 0;
}

@media (max-width: 1024px) {
  
/* ==========================================
   WIREFRAME SHAPE SYSTEM
   hero.background_wireframe_shape controls which class is applied
   ========================================== */

.wireframe-sphere,
.wireframe-cube,
.wireframe-torus,
.wireframe-diamond,
.wireframe-ring,
.wireframe-icosa,
.wireframe-helix {
  position: absolute;
  pointer-events: none;
  opacity: 0.18;
  animation: wf-spin var(--wf-speed, 20s) linear infinite;
}

@keyframes wf-spin {
  from { transform: rotate(0deg) rotateX(15deg) rotateY(0deg); }
  to   { transform: rotate(360deg) rotateX(15deg) rotateY(360deg); }
}

/* SPHERE */
.wireframe-sphere {
  width: 420px;
  height: 420px;
  border-radius: 50%;
  border: 1.5px solid var(--accent-primary);
  box-shadow:
    0 0 0 40px transparent,
    inset 0 0 0 80px transparent,
    inset 80px 0 0 transparent,
    inset -80px 0 0 transparent;
  background:
    repeating-conic-gradient(
      from 0deg,
      transparent 0deg 8deg,
      rgba(var(--glow-primary-colour, 0, 255, 204), 0.04) 8deg 9deg
    );
}
.wireframe-sphere::before,
.wireframe-sphere::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--accent-primary);
  opacity: 0.5;
}
.wireframe-sphere::before {
  transform: rotateY(60deg);
  opacity: 0.3;
}
.wireframe-sphere::after {
  transform: rotateX(60deg);
  opacity: 0.3;
}

/* CUBE */
.wireframe-cube {
  width: 280px;
  height: 280px;
  transform-style: preserve-3d;
  perspective: 800px;
  border: 2px solid var(--accent-primary);
  animation: wf-cube-spin var(--wf-speed, 20s) linear infinite;
}
.wireframe-cube::before {
  content: '';
  position: absolute;
  inset: -2px;
  border: 2px solid var(--accent-primary);
  transform: translateZ(280px);
  opacity: 0.6;
}
.wireframe-cube::after {
  content: '';
  position: absolute;
  inset: -2px;
  border: 2px solid var(--accent-primary);
  transform: rotateY(45deg) rotateX(45deg);
  opacity: 0.4;
}
@keyframes wf-cube-spin {
  from { transform: rotateX(10deg) rotateY(0deg) rotateZ(0deg); }
  to   { transform: rotateX(10deg) rotateY(360deg) rotateZ(10deg); }
}

/* TORUS / RING */
.wireframe-torus {
  width: 380px;
  height: 380px;
  border-radius: 50%;
  border: 40px solid transparent;
  outline: 2px solid var(--accent-primary);
  outline-offset: -21px;
  box-shadow: 0 0 0 2px var(--accent-primary), inset 0 0 0 2px var(--accent-primary);
}
.wireframe-torus::before {
  content: '';
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  border: 1.5px solid var(--accent-secondary, var(--accent-purple));
  opacity: 0.5;
  animation: wf-spin calc(var(--wf-speed, 20s) * 0.6) linear infinite reverse;
}

/* DIAMOND */
.wireframe-diamond {
  width: 260px;
  height: 260px;
  border: 2px solid var(--accent-primary);
  transform: rotate(45deg) rotateX(20deg);
  animation: wf-diamond-spin var(--wf-speed, 20s) linear infinite;
}
.wireframe-diamond::before {
  content: '';
  position: absolute;
  inset: -2px;
  border: 2px solid var(--accent-primary);
  transform: rotate(45deg);
  opacity: 0.5;
}
.wireframe-diamond::after {
  content: '';
  position: absolute;
  inset: 25%;
  border: 1.5px solid var(--accent-secondary, var(--accent-purple));
  transform: rotate(22.5deg);
  opacity: 0.4;
}
@keyframes wf-diamond-spin {
  from { transform: rotate(45deg) rotateX(20deg) rotateY(0deg); }
  to   { transform: rotate(45deg) rotateX(20deg) rotateY(360deg); }
}

/* RING (flat) */
.wireframe-ring {
  width: 400px;
  height: 400px;
  border-radius: 50%;
  border: 3px solid var(--accent-primary);
  box-shadow: 0 0 0 20px transparent, 0 0 0 21px var(--accent-primary), 0 0 0 70px transparent, 0 0 0 71px var(--accent-primary);
  animation: wf-ring-spin var(--wf-speed, 20s) linear infinite;
}
.wireframe-ring::before {
  content: '';
  position: absolute;
  inset: 15%;
  border-radius: 50%;
  border: 2px solid var(--accent-secondary, var(--accent-purple));
  opacity: 0.6;
}
.wireframe-ring::after {
  content: '';
  position: absolute;
  inset: 35%;
  border-radius: 50%;
  border: 1.5px solid var(--accent-primary);
  opacity: 0.4;
}
@keyframes wf-ring-spin {
  from { transform: rotateX(70deg) rotateZ(0deg); }
  to   { transform: rotateX(70deg) rotateZ(360deg); }
}

/* ICOSAHEDRON (approximated) */
.wireframe-icosa {
  width: 300px;
  height: 300px;
  clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
  border: 2px solid var(--accent-primary);
  animation: wf-icosa-spin var(--wf-speed, 20s) linear infinite;
  background:
    linear-gradient(30deg, transparent 40%, rgba(0,255,204,0.03) 40%, rgba(0,255,204,0.03) 60%, transparent 60%),
    linear-gradient(150deg, transparent 40%, rgba(168,85,247,0.03) 40%, rgba(168,85,247,0.03) 60%, transparent 60%);
}
.wireframe-icosa::before {
  content: '';
  position: absolute;
  inset: 5%;
  clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
  border: 1px solid var(--accent-primary);
  opacity: 0.5;
  transform: rotate(36deg);
}
@keyframes wf-icosa-spin {
  0%   { transform: rotate(0deg) scale(1); }
  50%  { transform: rotate(180deg) scale(1.05); }
  100% { transform: rotate(360deg) scale(1); }
}

/* HELIX */
.wireframe-helix {
  width: 200px;
  height: 400px;
  background:
    repeating-linear-gradient(
      180deg,
      transparent 0px,
      transparent 18px,
      var(--accent-primary) 18px,
      var(--accent-primary) 20px
    );
  border-left: 2px solid var(--accent-primary);
  border-right: 2px solid var(--accent-primary);
  opacity: 0.2;
  animation: wf-helix-spin var(--wf-speed, 20s) linear infinite;
}
.wireframe-helix::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    180deg,
    transparent 0px,
    transparent 8px,
    var(--accent-secondary, var(--accent-purple)) 8px,
    var(--accent-secondary, var(--accent-purple)) 10px
  );
  opacity: 0.5;
  transform: translateY(10px);
}
@keyframes wf-helix-spin {
  from { transform: rotateY(0deg) perspective(400px); }
  to   { transform: rotateY(360deg) perspective(400px); }
}

/* NONE — hide */
.wireframe-none {
  display: none !important;
}

.hero-atmosphere {
    left: auto;
    right: -10vw;
  }
}

/* Advanced 3D Logo (Three.js) */
#logo-3d-canvas-container {
  width: 400px;
  height: 400px;
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 1024px) {
  #logo-3d-canvas-container {
    width: 300px;
    height: 300px;
  }
}

@keyframes rotateAtmosphere {
  0% {
    transform: rotate(0deg) scale(1) rotateX(20deg) rotateY(0deg);
  }

  50% {
    transform: rotate(180deg) scale(1.1) rotateX(40deg) rotateY(180deg);
  }

  100% {
    transform: rotate(360deg) scale(1) rotateX(20deg) rotateY(360deg);
  }
}

/* ==========================================
   WIREFRAME SHAPES — CSS 3D
   All controlled by class on .wireframe-sphere
   ========================================== */

.wireframe-sphere {
    --wf-speed: 18s;
    --wf-color: var(--accent-primary, #00FFCC);
    --wf-size: 420px;
    width: var(--wf-size);
    height: var(--wf-size);
    position: relative;
    border-radius: 50%;
    animation: wf-spin var(--wf-speed) linear infinite;
    opacity: 0.18;
}

/* ── sphere (default) ── */
.wireframe-sphere.wireframe-sphere,
.wireframe-sphere:not([class*="wireframe-"]) {
    border: 1px solid var(--wf-color);
    box-shadow:
        inset 0 0 0 80px transparent,
        0 0 0 1px var(--wf-color),
        0 0 30px var(--wf-color);
    background:
        repeating-linear-gradient(0deg, transparent, transparent 39px, var(--wf-color) 40px),
        repeating-linear-gradient(90deg, transparent, transparent 39px, var(--wf-color) 40px);
    background-size: 40px 40px;
    -webkit-mask-image: radial-gradient(circle, black 48%, transparent 52%);
    mask-image: radial-gradient(circle, black 48%, transparent 52%);
}

/* ── torus ── */
.wireframe-sphere.wireframe-torus {
    border-radius: 50%;
    border: 1px solid var(--wf-color);
    box-shadow:
        inset 0 0 0 100px transparent,
        inset 0 0 0 130px var(--wf-color),
        inset 0 0 0 160px transparent,
        0 0 0 1px var(--wf-color),
        0 0 40px var(--wf-color);
    background:
        repeating-conic-gradient(var(--wf-color) 0deg, transparent 1deg, transparent 12deg, var(--wf-color) 13deg);
    -webkit-mask-image: radial-gradient(circle, transparent 25%, black 30%, black 48%, transparent 52%);
    mask-image: radial-gradient(circle, transparent 25%, black 30%, black 48%, transparent 52%);
}

/* ── cube ── */
.wireframe-sphere.wireframe-cube {
    border-radius: 4px;
    border: 1px solid var(--wf-color);
    box-shadow: 0 0 30px var(--wf-color);
    background:
        repeating-linear-gradient(0deg, transparent, transparent 59px, var(--wf-color) 60px),
        repeating-linear-gradient(90deg, transparent, transparent 59px, var(--wf-color) 60px);
    background-size: 60px 60px;
    transform-style: preserve-3d;
    animation: wf-spin-cube var(--wf-speed) linear infinite;
}

/* ── icosahedron (triangle grid) ── */
.wireframe-sphere.wireframe-icosa {
    border-radius: 50%;
    border: 1px solid var(--wf-color);
    box-shadow: 0 0 30px var(--wf-color);
    background:
        repeating-linear-gradient(60deg, transparent, transparent 49px, var(--wf-color) 50px),
        repeating-linear-gradient(-60deg, transparent, transparent 49px, var(--wf-color) 50px),
        repeating-linear-gradient(0deg, transparent, transparent 49px, var(--wf-color) 50px);
    background-size: 50px 50px;
    -webkit-mask-image: radial-gradient(circle, black 48%, transparent 52%);
    mask-image: radial-gradient(circle, black 48%, transparent 52%);
}

/* ── diamond / octahedron ── */
.wireframe-sphere.wireframe-diamond {
    border-radius: 0;
    transform: rotate(45deg);
    border: 1px solid var(--wf-color);
    box-shadow: 0 0 30px var(--wf-color);
    background:
        repeating-linear-gradient(0deg, transparent, transparent 49px, var(--wf-color) 50px),
        repeating-linear-gradient(90deg, transparent, transparent 49px, var(--wf-color) 50px);
    background-size: 50px 50px;
    -webkit-mask-image: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    animation: wf-spin var(--wf-speed) linear infinite;
}

/* ── hexagon ── */
.wireframe-sphere.wireframe-hex {
    border-radius: 0;
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    border: none;
    box-shadow: 0 0 30px var(--wf-color);
    background:
        repeating-linear-gradient(60deg, transparent, transparent 29px, var(--wf-color) 30px),
        repeating-linear-gradient(-60deg, transparent, transparent 29px, var(--wf-color) 30px),
        repeating-linear-gradient(0deg, transparent, transparent 29px, var(--wf-color) 30px);
    background-size: 30px 30px;
    animation: wf-spin var(--wf-speed) linear infinite;
}

/* ── ring / orbit ── */
.wireframe-sphere.wireframe-ring {
    border-radius: 50%;
    border: 1px solid transparent;
    background: transparent;
}
.wireframe-sphere.wireframe-ring::before,
.wireframe-sphere.wireframe-ring::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
}
.wireframe-sphere.wireframe-ring::before {
    border: 2px solid var(--wf-color);
    box-shadow: 0 0 20px var(--wf-color), inset 0 0 20px transparent;
    transform: rotateX(75deg);
}
.wireframe-sphere.wireframe-ring::after {
    border: 1px solid var(--wf-color);
    opacity: 0.5;
    transform: rotateX(75deg) rotateZ(60deg);
}

/* ── none ── */
.wireframe-sphere.wireframe-none {
    display: none !important;
}

/* ── Animations ── */
@keyframes wf-spin {
    from { transform: rotateY(0deg) rotateX(15deg); }
    to   { transform: rotateY(360deg) rotateX(15deg); }
}

@keyframes wf-spin-cube {
    0%   { transform: rotateY(0deg) rotateX(0deg); }
    50%  { transform: rotateY(180deg) rotateX(180deg); }
    100% { transform: rotateY(360deg) rotateX(360deg); }
}




/* ==========================================
   ABOUT SECTION
   ========================================== */
.section-about {
  padding: 10rem 0;
  position: relative;
  background: linear-gradient(180deg, transparent, rgba(5, 5, 8, 0.8), transparent);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: center;
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  padding: 4rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.avatar-container {
  position: relative;
  width: 280px;
  height: 380px;
  margin: 0 auto 2rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 0 0 2px rgba(0, 255, 204, 0.2);
  transition: all 0.3s ease;
  overflow: hidden;
}

.avatar-container:hover {
  box-shadow: 0 0 0 4px var(--accent-primary), 0 0 30px rgba(0, 255, 204, 0.4);
}

.profile-pic {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.2s;
}

.avatar-container:hover .profile-pic {
  animation: glitch 0.3s infinite;
  filter: contrast(1.2) saturate(1.5) hue-rotate(20deg);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-primary);
  box-shadow: 0 0 10px var(--accent-primary);
}

.status-dot.pulsing {
  animation: pulse 1.5s infinite alternate;
}

.about-content .stagger-text {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: var(--text-muted);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s var(--ease-out);
}

.about-content.visible .stagger-text {
  opacity: 1;
  transform: translateY(0);
}

.about-content .stagger-text.delay-1 {
  transition-delay: 0.15s;
}

.about-content .stagger-text.delay-2 {
  transition-delay: 0.3s;
}

.about-content .stagger-text.delay-3 {
  transition-delay: 0.45s;
}

.about-content .stagger-text.delay-4 {
  transition-delay: 0.6s;
}

.about-content .emphasis {
  font-weight: 600;
  color: var(--text-main);
  font-size: 1.3rem;
}

.about-content .highlight-line {
  color: var(--accent-primary);
  font-family: var(--font-mono);
  border-left: 2px solid var(--accent-primary);
  padding-left: 1rem;
}

/* Stats Row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: -2rem;
  /* Pull up to overlap card */
  padding: 0 2rem;
}

.stat-item {
  background: var(--bg-dark);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 2rem 1rem;
  text-align: center;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.1);
}

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==========================================
   PROJECTS SECTION
   ========================================== */
.section-projects {
  padding: 8rem 0;
}

.section-header {
  margin-bottom: 4rem;
}

.section-title {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-size: 1rem;
}

.masonry-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 768px) {
  .masonry-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: stretch;
  }
}

@media (min-width: 1024px) {
  .masonry-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.project-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  transition: all 0.6s var(--ease-out);
  cursor: pointer;
  transform-style: preserve-3d;
  height: 100%;
  /* Take up the full height of whatever row it's in */
  opacity: 0;
  transform: translateY(20px);
}

.project-card.visible-card {
  opacity: 1;
  transform: translateY(0);
}

.project-card.featured {
  grid-column: 1 / -1;
}

@media (min-width: 1024px) {
  .project-card.featured {
    grid-column: span 2;
  }
}

/* Colors for Card Variants */
.project-card[data-variant="yellow"] .status-dot {
  background: var(--accent-yellow);
  box-shadow: 0 0 10px var(--accent-yellow);
}

.project-card[data-variant="blue"] .status-dot {
  background: var(--accent-blue);
  box-shadow: 0 0 10px var(--accent-blue);
}

.project-card[data-variant="purple"] .status-dot {
  background: var(--accent-purple);
  box-shadow: 0 0 10px var(--accent-purple);
}

.project-card[data-variant="red"] .status-dot {
  background: var(--accent-red);
  box-shadow: 0 0 10px var(--accent-red);
}

.project-card:hover {
  transform: translateY(-10px) rotateX(2deg) rotateY(2deg);
  background: var(--bg-card-hover);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.project-card[data-variant="yellow"]:hover {
  border-color: rgba(255, 215, 0, 0.3);
}

.project-card[data-variant="blue"]:hover {
  border-color: rgba(59, 130, 246, 0.3);
}

.project-card[data-variant="purple"]:hover {
  border-color: rgba(168, 85, 247, 0.3);
}

.project-card[data-variant="red"]:hover {
  border-color: rgba(239, 68, 68, 0.4);
}

.card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-status {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-main);
}

.card-title {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  transition: color 0.3s;
}

.project-card[data-variant="yellow"]:hover .card-title {
  color: var(--accent-yellow);
}

.project-card[data-variant="blue"]:hover .card-title {
  color: var(--accent-blue);
}

.project-card[data-variant="purple"]:hover .card-title {
  color: var(--accent-purple);
}

.card-tags {
  margin-bottom: 1.5rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.card-desc {
  color: var(--text-muted);
  margin-bottom: 2rem;
  flex-grow: 1;
}

.card-link {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-top: auto;
  align-self: flex-start;
  position: relative;
}

.card-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: currentColor;
  transition: width 0.3s var(--ease-out);
}

.project-card:hover .card-link::after {
  width: 100%;
}

.card-link.disabled {
  color: #666;
  pointer-events: none;
}

.placeholder-note {
  font-weight: 400;
  font-size: 0.7rem;
  color: #666;
}

/* Redacted/Glitch Text Effect - Layout Safe! */
.project-card.classified:hover .redacted-text {
  color: var(--accent-red);
  animation: safeTextGlitch 0.3s infinite;
}

@keyframes safeTextGlitch {
  0% {
    text-shadow: 2px 0px 5px rgba(239, 68, 68, 0.8), -2px 0px 5px #00ffff;
    opacity: 1;
    filter: contrast(120%);
  }

  25% {
    text-shadow: -2px 0px 5px rgba(239, 68, 68, 0.8), 2px 0px 5px #ff00ff;
    opacity: 0.8;
    filter: contrast(100%);
  }

  50% {
    text-shadow: 2px 0px 5px rgba(239, 68, 68, 0.8), -2px 0px 5px #00ffff;
    opacity: 1;
    filter: contrast(120%);
  }

  75% {
    text-shadow: -2px 0px 5px rgba(239, 68, 68, 0.8), 2px 0px 5px #ff00ff;
    opacity: 0.9;
    filter: contrast(100%);
  }

  100% {
    text-shadow: 2px 0px 5px rgba(239, 68, 68, 0.8), -2px 0px 5px #00ffff;
    opacity: 1;
    filter: contrast(120%);
  }
}

/* Hover Circuit Border Effect */
.circuit-border {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.5), transparent);
  background-size: 200% 2px;
  background-position: top;
  background-repeat: no-repeat;
  transition: opacity 0.3s;
  z-index: -1;
}

.project-card:hover .circuit-border {
  opacity: 1;
  animation: traceBorder 2s linear infinite;
}

@keyframes traceBorder {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

/* ==========================================
   SKILLS SECTION
   ========================================== */
.section-skills {
  padding: 8rem 0;
  background: linear-gradient(0deg, rgba(5, 5, 8, 0.8), transparent);
}

.skills-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.skill-item {
  display: flex;
  gap: 2rem;
  align-items: center;
  background: var(--bg-card);
  padding: 1.5rem 2rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.skill-item:hover {
  background: var(--bg-card-hover);
  border-color: rgba(0, 255, 204, 0.2);
  transform: translateX(10px);
}

.skill-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  border-radius: var(--radius-sm);
  font-size: 2rem;
  color: var(--accent-primary);
  font-family: var(--font-mono);
  transition: transform 0.5s var(--ease-out);
}

.skill-item:hover .skill-icon {
  transform: rotate(360deg) scale(1.1);
}

.skill-content {
  flex-grow: 1;
}

.skill-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.skill-name {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  text-transform: uppercase;
}

.skill-percentage {
  font-family: var(--font-mono);
  color: var(--accent-primary);
  font-weight: 700;
}

.skill-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  transition: color 0.3s;
}

.skill-item:hover .skill-desc {
  color: var(--text-main);
}

.progress-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  /* overflow: hidden removed so overshoot can be seen if it exceeds container width */
  position: relative;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--accent-primary);
  box-shadow: 0 0 10px var(--accent-primary);
  border-radius: 2px;
  transition: width 1.5s cubic-bezier(0.1, 0.9, 0.2, 1);
  position: absolute;
  left: 0;
  top: 0;
}

.skill-chaos .skill-icon {
  color: var(--accent-red);
}

.skill-chaos .skill-percentage {
  color: var(--accent-red);
}

.skill-chaos .progress-fill {
  background: var(--accent-red);
  box-shadow: 0 0 10px var(--accent-red);
}

.progress-fill.overshot {
  animation: overfillSnap 1s forwards cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes overfillSnap {
  0% {
    width: 0%;
  }

  60% {
    width: calc(var(--target-width) + 15%);
  }

  100% {
    width: var(--target-width);
  }
}

/* ==========================================
   CONTACT SECTION
   ========================================== */
.section-contact {
  padding: 8rem 0;
}

.contact-card {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--accent-primary);
  box-shadow: inset 0 0 20px rgba(0, 255, 204, 0.1), 0 20px 50px rgba(0, 0, 0, 0.5);
  border-radius: var(--radius-lg);
  padding: 4rem;
}

.terminal-header {
  text-align: center;
}

.terminal-form {
  margin-top: 3rem;
}

.form-group {
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-family: var(--font-mono);
  color: var(--accent-primary);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
  background: rgba(0, 0, 0, 0.3);
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-main);
  font-family: var(--font-mono);
  padding: 1rem;
  transition: all 0.3s;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-bottom-color: var(--accent-primary);
  background: rgba(0, 255, 204, 0.05);
  box-shadow: inset 0 -4px 0 -2px var(--accent-primary);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

.btn-submit {
  width: 100%;
  margin-top: 1rem;
  background: transparent;
  border: 1px solid var(--accent-primary);
  color: var(--accent-primary);
}

.btn-submit:hover {
  background: rgba(0, 255, 204, 0.1);
  color: #fff;
}

.btn-submit:hover .btn-text {
  animation: glitch 0.3s infinite;
}

.form-feedback {
  margin-top: 1.5rem;
  text-align: center;
  font-family: var(--font-mono);
  color: var(--accent-primary);
  display: none;
  animation: fadeIn 0.5s ease-out;
}

.form-feedback.visible {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Stagger inputs animation */
.staggered-input {
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.5s var(--ease-out);
}

.contact-card.visible-card .staggered-input {
  opacity: 1;
  transform: translateX(0);
}

.staggered-input.delay-1 {
  transition-delay: 0.1s;
}

.staggered-input.delay-2 {
  transition-delay: 0.2s;
}

.staggered-input.delay-3 {
  transition-delay: 0.3s;
}

.staggered-input.delay-4 {
  transition-delay: 0.4s;
}

/* ==========================================
   FOOTER
   ========================================== */
.site-footer {
  background: #020202;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 4rem 0 2rem;
  position: relative;
  overflow: hidden;
}

.footer-divider-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
  opacity: 0.5;
  box-shadow: 0 0 10px var(--accent-primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-identity h3 {
  font-size: 2rem;
  color: var(--text-main);
}

.footer-identity p {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.footer-punchline {
  margin-top: 1rem;
  color: var(--text-main) !important;
  font-style: italic;
}

.footer-nav h4,
.footer-social h4 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-nav ul,
.footer-social ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-nav a,
.footer-social a {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.footer-nav a:hover,
.footer-social a:hover {
  color: var(--accent-primary);
  padding-left: 0.5rem;
}

.ph-tag {
  color: #555;
  font-size: 0.8rem;
  margin-left: 0.5rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: #555;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-content .highlight-line {
    border-left: none;
    border-bottom: 2px solid var(--accent-primary);
    padding-left: 0;
    padding-bottom: 0.5rem;
    display: inline-block;
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 2rem;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .footer-nav a:hover,
  .footer-social a:hover {
    padding-left: 0;
  }
}

@media (max-width: 768px) {
  .section-hero {
    align-items: flex-end;
    padding-bottom: 15vh;
  }

  .hero-content {
    text-align: center;
  }

  .cta-group {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .stats-row {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .about-visuals,
  .about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .about-visuals .status-badge {
    margin: 0 auto;
  }

  .contact-card {
    padding: 2rem;
  }

  .skill-item {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .progress-track {
    margin-top: 1rem;
  }
}
/* ==========================================
   WIREFRAME 3D SHAPES — CSS Only
   Controlled by hero.background_wireframe_shape
   ========================================== */

.wireframe-sphere,
.wireframe-cube,
.wireframe-torus,
.wireframe-diamond,
.wireframe-octahedron,
.wireframe-ring,
.wireframe-pyramid,
.wireframe-helix {
  --wf-color: var(--accent-primary, #00FFCC);
  --wf-speed: 20s;
  --wf-size: 380px;
  width: var(--wf-size);
  height: var(--wf-size);
  position: relative;
  opacity: 0.18;
  filter: drop-shadow(0 0 18px var(--wf-color));
}

/* ── SPHERE ── */
.wireframe-sphere::before,
.wireframe-sphere::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid var(--wf-color);
  animation: wf-spin-y var(--wf-speed) linear infinite;
}
.wireframe-sphere::after {
  transform: rotateX(70deg);
  animation-delay: calc(var(--wf-speed) / -3);
}
.wireframe-sphere .wf-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid var(--wf-color);
  transform: rotateX(40deg) rotateY(30deg);
  animation: wf-spin-x var(--wf-speed) linear infinite;
}

/* ── CUBE ── */
.wireframe-cube {
  perspective: 800px;
  transform-style: preserve-3d;
}
.wireframe-cube::before {
  content: '';
  position: absolute;
  inset: 10%;
  border: 1.5px solid var(--wf-color);
  transform-style: preserve-3d;
  animation: wf-rotate-cube var(--wf-speed) linear infinite;
}
.wireframe-cube::after {
  content: '';
  position: absolute;
  inset: 10%;
  border: 1.5px solid var(--wf-color);
  opacity: 0.5;
  animation: wf-rotate-cube var(--wf-speed) linear infinite reverse;
  animation-delay: calc(var(--wf-speed) / -4);
}

/* ── DIAMOND ── */
.wireframe-diamond::before,
.wireframe-diamond::after {
  content: '';
  position: absolute;
  inset: 5%;
  border: 1.5px solid var(--wf-color);
  transform: rotate(45deg);
  animation: wf-spin-y var(--wf-speed) linear infinite;
}
.wireframe-diamond::after {
  transform: rotate(45deg) rotateX(70deg);
  opacity: 0.6;
  animation-delay: calc(var(--wf-speed) / -5);
}

/* ── RING / TORUS ── */
.wireframe-ring::before,
.wireframe-ring::after,
.wireframe-torus::before,
.wireframe-torus::after {
  content: '';
  position: absolute;
  inset: 15%;
  border-radius: 50%;
  border: 1.5px solid var(--wf-color);
  animation: wf-spin-y var(--wf-speed) linear infinite;
}
.wireframe-ring::after,
.wireframe-torus::after {
  inset: 30%;
  opacity: 0.5;
  animation-direction: reverse;
  animation-delay: calc(var(--wf-speed) / -6);
}

/* ── OCTAHEDRON ── */
.wireframe-octahedron::before {
  content: '';
  position: absolute;
  inset: 8%;
  border: 1.5px solid var(--wf-color);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  animation: wf-spin-y var(--wf-speed) linear infinite;
}
.wireframe-octahedron::after {
  content: '';
  position: absolute;
  inset: 8%;
  border: 1.5px solid var(--wf-color);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  transform: rotate(45deg);
  opacity: 0.5;
  animation: wf-spin-x var(--wf-speed) linear infinite reverse;
}

/* ── PYRAMID ── */
.wireframe-pyramid::before {
  content: '';
  position: absolute;
  inset: 8%;
  border: 1.5px solid var(--wf-color);
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
  animation: wf-spin-y var(--wf-speed) linear infinite;
}
.wireframe-pyramid::after {
  content: '';
  position: absolute;
  inset: 8%;
  border: 1.5px solid var(--wf-color);
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
  transform: scaleY(-1) rotate(60deg);
  opacity: 0.4;
  animation: wf-spin-y var(--wf-speed) linear infinite reverse;
}

/* ── HELIX ── */
.wireframe-helix::before,
.wireframe-helix::after {
  content: '';
  position: absolute;
  inset: 5%;
  border-radius: 50%;
  border-top: 1.5px solid var(--wf-color);
  border-bottom: 1.5px solid transparent;
  border-left: 1.5px solid transparent;
  border-right: 1.5px solid transparent;
  animation: wf-spin-y calc(var(--wf-speed) * 0.5) linear infinite;
}
.wireframe-helix::after {
  inset: 20%;
  animation-delay: calc(var(--wf-speed) / -4);
  opacity: 0.6;
}

/* ── KEYFRAMES ── */
@keyframes wf-spin-y {
  from { transform: rotateY(0deg) rotateX(20deg); }
  to   { transform: rotateY(360deg) rotateX(20deg); }
}
@keyframes wf-spin-x {
  from { transform: rotateX(0deg) rotateY(20deg); }
  to   { transform: rotateX(360deg) rotateY(20deg); }
}
@keyframes wf-rotate-cube {
  0%   { transform: rotateX(0deg) rotateY(0deg); }
  100% { transform: rotateX(360deg) rotateY(360deg); }
}


/* ==========================================
   WIREFRAME SHAPES — Admin Controllable
   ========================================== */

/* Base shared styles */
.wireframe-sphere,
.wireframe-cube,
.wireframe-torus,
.wireframe-diamond,
.wireframe-octahedron,
.wireframe-ring,
.wireframe-grid,
.wireframe-pyramid {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}

/* ── SPHERE ─────────────────────────────── */
.wireframe-sphere {
  width: 420px;
  height: 420px;
  border-radius: 50%;
  border: 1px solid var(--accent-primary, #00FFCC);
  opacity: 0.12;
  box-shadow:
    0 0 0 40px rgba(0,0,0,0),
    inset 0 0 60px var(--accent-primary, #00FFCC),
    0 0 80px rgba(0,255,204,0.08);
  animation: wireframeSpin var(--wf-speed, 40s) linear infinite;
}
.wireframe-sphere::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--accent-primary, #00FFCC);
  transform: rotateX(75deg);
  opacity: 0.6;
}
.wireframe-sphere::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--accent-purple, #A855F7);
  transform: rotateY(75deg);
  opacity: 0.4;
}

/* ── CUBE ───────────────────────────────── */
.wireframe-cube {
  width: 280px;
  height: 280px;
  border: 1px solid var(--accent-primary, #00FFCC);
  opacity: 0.15;
  transform: translate(-50%, -50%) rotateX(35deg) rotateY(45deg);
  animation: wireframeCubeSpin var(--wf-speed, 40s) linear infinite;
  box-shadow: 0 0 40px rgba(0,255,204,0.05), inset 0 0 40px rgba(0,255,204,0.03);
}
.wireframe-cube::before {
  content: '';
  position: absolute;
  inset: -40px;
  border: 1px solid var(--accent-purple, #A855F7);
  opacity: 0.5;
  transform: translateZ(-40px);
}
.wireframe-cube::after {
  content: '';
  position: absolute;
  inset: 20px;
  border: 1px solid var(--accent-primary, #00FFCC);
  opacity: 0.4;
  transform: translateZ(20px) rotateY(20deg);
}

/* ── TORUS / RING ────────────────────────── */
.wireframe-torus {
  width: 380px;
  height: 380px;
  border-radius: 50%;
  border: 18px solid transparent;
  border-top-color: var(--accent-primary, #00FFCC);
  border-bottom-color: var(--accent-purple, #A855F7);
  opacity: 0.2;
  animation: wireframeSpin var(--wf-speed, 40s) linear infinite;
  filter: drop-shadow(0 0 10px var(--accent-primary, #00FFCC));
}
.wireframe-torus::before {
  content: '';
  position: absolute;
  inset: 30px;
  border-radius: 50%;
  border: 10px solid transparent;
  border-left-color: var(--accent-primary, #00FFCC);
  border-right-color: var(--accent-purple, #A855F7);
  opacity: 0.6;
  animation: wireframeSpin calc(var(--wf-speed, 40s) * 0.6) linear infinite reverse;
}

/* ── RING (flat) ─────────────────────────── */
.wireframe-ring {
  width: 440px;
  height: 440px;
  border-radius: 50%;
  border: 2px solid var(--accent-primary, #00FFCC);
  opacity: 0.15;
  transform: translate(-50%, -50%) rotateX(70deg);
  animation: wireframeSpin var(--wf-speed, 40s) linear infinite;
  box-shadow: 0 0 30px rgba(0,255,204,0.1), inset 0 0 30px rgba(0,255,204,0.05);
}
.wireframe-ring::before {
  content: '';
  position: absolute;
  inset: 20px;
  border-radius: 50%;
  border: 1px solid var(--accent-purple, #A855F7);
  opacity: 0.5;
}
.wireframe-ring::after {
  content: '';
  position: absolute;
  inset: 50px;
  border-radius: 50%;
  border: 1px solid var(--accent-primary, #00FFCC);
  opacity: 0.3;
}

/* ── DIAMOND ─────────────────────────────── */
.wireframe-diamond {
  width: 240px;
  height: 240px;
  border: 1px solid var(--accent-primary, #00FFCC);
  opacity: 0.18;
  transform: translate(-50%, -50%) rotate(45deg) rotateX(20deg);
  animation: wireframeDiamondSpin var(--wf-speed, 40s) linear infinite;
  box-shadow: 0 0 40px rgba(0,255,204,0.08);
}
.wireframe-diamond::before {
  content: '';
  position: absolute;
  inset: 15px;
  border: 1px solid var(--accent-purple, #A855F7);
  opacity: 0.5;
  transform: rotate(15deg);
}
.wireframe-diamond::after {
  content: '';
  position: absolute;
  inset: 30px;
  border: 1px solid var(--accent-primary, #00FFCC);
  opacity: 0.3;
  transform: rotate(-15deg);
}

/* ── OCTAHEDRON (layered squares) ─────────── */
.wireframe-octahedron {
  width: 300px;
  height: 300px;
  border: 1px solid var(--accent-primary, #00FFCC);
  opacity: 0.15;
  transform: translate(-50%, -50%) rotateX(45deg) rotateY(45deg) rotateZ(0deg);
  animation: wireframeOctaSpin var(--wf-speed, 40s) linear infinite;
}
.wireframe-octahedron::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--accent-purple, #A855F7);
  opacity: 0.6;
  transform: rotateZ(45deg);
}
.wireframe-octahedron::after {
  content: '';
  position: absolute;
  inset: 20px;
  border: 1px solid var(--accent-primary, #00FFCC);
  opacity: 0.4;
  transform: rotateX(90deg);
}

/* ── GRID ────────────────────────────────── */
.wireframe-grid {
  width: 500px;
  height: 500px;
  opacity: 0.08;
  transform: translate(-50%, -50%) rotateX(60deg);
  background-image:
    linear-gradient(var(--accent-primary, #00FFCC) 1px, transparent 1px),
    linear-gradient(90deg, var(--accent-primary, #00FFCC) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: wireframeGridScroll var(--wf-speed, 40s) linear infinite;
}

/* ── PYRAMID ─────────────────────────────── */
.wireframe-pyramid {
  width: 0;
  height: 0;
  border-left: 160px solid transparent;
  border-right: 160px solid transparent;
  border-bottom: 280px solid transparent;
  border-bottom-color: transparent;
  opacity: 0.15;
  filter: drop-shadow(0 0 2px var(--accent-primary, #00FFCC));
  animation: wireframePyramidSpin var(--wf-speed, 40s) linear infinite;
}
.wireframe-pyramid::before {
  content: '';
  position: absolute;
  width: 240px;
  height: 2px;
  background: var(--accent-primary, #00FFCC);
  top: 200px;
  left: -120px;
  box-shadow: 0 0 8px var(--accent-primary, #00FFCC);
}

/* ── ANIMATIONS ──────────────────────────── */
@keyframes wireframeSpin {
  from { transform: translate(-50%, -50%) rotateY(0deg) rotateX(20deg); }
  to   { transform: translate(-50%, -50%) rotateY(360deg) rotateX(20deg); }
}
@keyframes wireframeCubeSpin {
  from { transform: translate(-50%, -50%) rotateX(35deg) rotateY(0deg); }
  to   { transform: translate(-50%, -50%) rotateX(35deg) rotateY(360deg); }
}
@keyframes wireframeDiamondSpin {
  0%   { transform: translate(-50%, -50%) rotate(45deg) rotateX(20deg) rotateY(0deg); }
  100% { transform: translate(-50%, -50%) rotate(45deg) rotateX(20deg) rotateY(360deg); }
}
@keyframes wireframeOctaSpin {
  0%   { transform: translate(-50%, -50%) rotateX(45deg) rotateY(0deg) rotateZ(0deg); }
  100% { transform: translate(-50%, -50%) rotateX(45deg) rotateY(360deg) rotateZ(180deg); }
}
@keyframes wireframeGridScroll {
  from { transform: translate(-50%, -50%) rotateX(60deg) translateY(0); }
  to   { transform: translate(-50%, -50%) rotateX(60deg) translateY(50px); }
}
@keyframes wireframePyramidSpin {
  0%   { transform: translate(-50%, -50%) rotateY(0deg); }
  100% { transform: translate(-50%, -50%) rotateY(360deg); }
}

/* ==========================================
   WIREFRAME SHAPES — driven by hero config
   ========================================== */
.wireframe-sphere,
.wireframe-cube,
.wireframe-torus,
.wireframe-diamond,
.wireframe-ring,
.wireframe-pyramid,
.wireframe-octahedron {
    --wf-speed: 20s;
    --wf-color: var(--accent-primary, #00FFCC);
    --wf-size: 420px;
    width: var(--wf-size);
    height: var(--wf-size);
    position: relative;
    transform-style: preserve-3d;
    animation: wfSpin var(--wf-speed) linear infinite;
}

/* ── Sphere ── */
.wireframe-sphere::before,
.wireframe-sphere::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid var(--wf-color);
    opacity: 0.5;
}
.wireframe-sphere::before {
    transform: rotateX(70deg);
    box-shadow: 0 0 40px var(--wf-color), inset 0 0 40px rgba(0,255,204,0.05);
}
.wireframe-sphere::after {
    transform: rotateY(70deg);
}
.wireframe-sphere .wf-equator {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid var(--wf-color);
    opacity: 0.3;
    box-shadow: 0 0 30px var(--wf-color);
}

/* ── Cube ── */
.wireframe-cube {
    perspective: 600px;
}
.wireframe-cube::before {
    content: '';
    position: absolute;
    inset: 10%;
    border: 1px solid var(--wf-color);
    transform: rotateX(45deg) rotateY(45deg);
    box-shadow: 0 0 30px var(--wf-color), 10px 10px 0 transparent, -10px -10px 0 transparent;
    opacity: 0.7;
}
.wireframe-cube::after {
    content: '';
    position: absolute;
    inset: 20%;
    border: 1px solid var(--wf-color);
    transform: rotateX(45deg) rotateY(45deg) rotateZ(30deg);
    opacity: 0.35;
}

/* ── Torus (ring-of-rings) ── */
.wireframe-torus::before,
.wireframe-torus::after {
    content: '';
    position: absolute;
    inset: 5%;
    border-radius: 50%;
    border: 2px solid var(--wf-color);
    opacity: 0.5;
}
.wireframe-torus::before {
    inset: 5%;
    border-radius: 50%;
    box-shadow: 0 0 30px var(--wf-color);
}
.wireframe-torus::after {
    inset: 25%;
    transform: rotateX(75deg);
    opacity: 0.6;
    box-shadow: 0 0 20px var(--wf-color);
}

/* ── Diamond ── */
.wireframe-diamond::before {
    content: '';
    position: absolute;
    inset: 10%;
    border: 1.5px solid var(--wf-color);
    transform: rotateZ(45deg) rotateX(20deg);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    box-shadow: 0 0 35px var(--wf-color);
    opacity: 0.7;
}
.wireframe-diamond::after {
    content: '';
    position: absolute;
    inset: 20%;
    border: 1px solid var(--wf-color);
    transform: rotateZ(45deg) rotateY(30deg);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    opacity: 0.35;
}

/* ── Ring ── */
.wireframe-ring::before {
    content: '';
    position: absolute;
    inset: 8%;
    border-radius: 50%;
    border: 12px solid transparent;
    border-top-color: var(--wf-color);
    border-bottom-color: var(--wf-color);
    box-shadow: 0 0 40px var(--wf-color);
    opacity: 0.6;
}
.wireframe-ring::after {
    content: '';
    position: absolute;
    inset: 18%;
    border-radius: 50%;
    border: 6px solid transparent;
    border-left-color: var(--wf-color);
    border-right-color: var(--wf-color);
    opacity: 0.3;
    transform: rotateX(60deg);
}

/* ── Pyramid ── */
.wireframe-pyramid::before {
    content: '';
    position: absolute;
    inset: 5%;
    clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
    border: 1.5px solid var(--wf-color);
    box-shadow: 0 0 30px var(--wf-color);
    opacity: 0.6;
}
.wireframe-pyramid::after {
    content: '';
    position: absolute;
    inset: 20%;
    clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
    border: 1px solid var(--wf-color);
    transform: rotateZ(180deg) scale(0.7);
    opacity: 0.3;
}

/* ── Octahedron ── */
.wireframe-octahedron::before {
    content: '';
    position: absolute;
    inset: 10%;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    border: 1.5px solid var(--wf-color);
    box-shadow: 0 0 30px var(--wf-color);
    opacity: 0.6;
    transform: rotateX(30deg);
}
.wireframe-octahedron::after {
    content: '';
    position: absolute;
    inset: 10%;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    border: 1px solid var(--wf-color);
    opacity: 0.3;
    transform: rotateX(30deg) rotateZ(45deg);
}

@keyframes wfSpin {
    from { transform: rotateY(0deg) rotateX(15deg); }
    to   { transform: rotateY(360deg) rotateX(15deg); }
}

/* ── Theme engine: transitions & hover ───────────────────── */
*, *::before, *::after {
  transition-timing-function: var(--transition-easing);
}
a {
  color: var(--link-color);
  text-decoration: none;
  transition: color var(--transition-speed) var(--transition-easing), opacity var(--transition-speed);
}
a:hover {
  color: var(--link-hover-color);
  opacity: 0.85;
}
::selection {
  background: var(--selection-bg);
  color: var(--selection-color);
}
::-webkit-scrollbar { width: var(--scrollbar-width); height: var(--scrollbar-width); }
::-webkit-scrollbar-track { background: var(--scrollbar-track); }
::-webkit-scrollbar-thumb { background: var(--scrollbar-color); border-radius: 999px; }

/* Code blocks */
pre, code {
  background: var(--code-bg);
  color: var(--code-color);
  font-family: var(--font-mono);
  border-radius: var(--radius-sm);
}
code { padding: 0.1em 0.4em; font-size: 0.88em; }
pre { padding: 1.25rem; overflow-x: auto; border: 1px solid var(--border-color); }
pre code { background: transparent; padding: 0; }

/* Custom page template layouts */
.custom-page-main.template-landing { padding: 0; }
.custom-page-main.template-fullwidth .container { max-width: 100%; }
.custom-page-main.template-sidebar { display: grid; grid-template-columns: 260px 1fr; gap: 2rem; max-width: 1200px; margin: 0 auto; padding: 3rem 2rem; }
.custom-page-main .container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
