:root {
  --bg-color: #050507;
  --bg-secondary: #080811;
  --card-bg: rgba(11, 11, 16, 0.78);
  --card-border: rgba(99, 102, 241, 0.2);
  --primary: #6366f1;
  --primary-glow: rgba(99, 102, 241, 0.55);
  --secondary: #a855f7;
  --secondary-glow: rgba(168, 85, 247, 0.5);
  --accent: #38bdf8;
  --accent-glow: rgba(56, 189, 248, 0.55);
  --text-main: #ffffff;
  --text-muted: #8b8b95;
  --font-sans: 'Inter', sans-serif;
  --font-heading: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --glass-blur: blur(18px);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-full: 9999px;
  --transition: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

:root.light-theme {
  --bg-color: #f8fafc;
  --bg-secondary: #f1f5f9;
  --card-bg: rgba(255, 255, 255, 0.85);
  --card-border: rgba(99, 102, 241, 0.2);
  --primary: #4f46e5;
  --primary-glow: rgba(79, 70, 229, 0.35);
  --secondary: #9333ea;
  --secondary-glow: rgba(147, 51, 234, 0.3);
  --accent: #0284c7;
  --accent-glow: rgba(2, 132, 199, 0.35);
  --text-main: #0f172a;
  --text-muted: #475569;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background-color: var(--bg-color); color: var(--text-main); font-family: var(--font-sans); }
body { overflow-x: hidden; position: relative; line-height: 1.65; }

.container { max-width: 1200px; margin: auto; padding: 0 1.5rem; }
.section { padding: 6rem 0; position: relative; z-index: 2; }
.gradient-text { background: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #c084fc 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.w-full { width: 100%; }

/* Background Overlays */
.particle-canvas { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 1; opacity: 0.6; }
.ambient-glow { position: fixed; border-radius: 50%; filter: blur(140px); pointer-events: none; z-index: 0; opacity: 0.35; }
.glow-top-left { top: -10vw; left: -10vw; width: 45vw; height: 45vw; background: var(--primary); }
.glow-bottom-right { bottom: -10vw; right: -10vw; width: 45vw; height: 45vw; background: var(--secondary); }
.glow-center { top: 40vh; left: 25vw; width: 40vw; height: 40vw; background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, transparent 70%); }

/* Custom Cursor */
.cursor-dot { position: fixed; top: 0; left: 0; width: 8px; height: 8px; background: var(--accent); border-radius: 50%; pointer-events: none; z-index: 9999; transform: translate(-50%, -50%); box-shadow: 0 0 12px var(--accent); }
.cursor-ring { position: fixed; top: 0; left: 0; width: 38px; height: 38px; border: 1.5px solid rgba(56, 189, 248, 0.5); border-radius: 50%; pointer-events: none; z-index: 9998; transform: translate(-50%, -50%); transition: transform 0.08s ease-out; }

/* Navbar */
.header-nav { position: fixed; top: 0; left: 0; width: 100%; height: 75px; z-index: 1000; display: flex; align-items: center; transition: all var(--transition); }
.header-nav.scrolled { background: rgba(5, 5, 7, 0.85); backdrop-filter: var(--glass-blur); border-bottom: 1px solid rgba(255, 255, 255, 0.08); height: 65px; box-shadow: 0 10px 30px rgba(0,0,0,0.6); }
.nav-container { width: 100%; max-width: 1200px; margin: auto; padding: 0 1.5rem; display: flex; justify-content: space-between; align-items: center; }
.logo { font-family: var(--font-heading); font-size: 1.45rem; font-weight: 800; text-decoration: none; color: #fff; }
.logo-bracket { color: var(--accent); }
.nav-menu { display: flex; gap: 1.8rem; list-style: none; }
.nav-link { color: var(--text-muted); text-decoration: none; font-size: 0.92rem; transition: color var(--transition); font-weight: 500; }
.nav-link:hover, .nav-link.active { color: #fff; }
.hamburger-btn { display: none; background: none; border: none; cursor: pointer; }
.hamburger-btn .bar { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: 0.3s; }
.mobile-drawer { position: fixed; top: 0; right: -100%; width: 80%; max-width: 320px; height: 100vh; background: rgba(11, 11, 16, 0.95); backdrop-filter: blur(20px); z-index: 999; padding: 6rem 2rem; transition: right 0.3s; }
.mobile-drawer.open { right: 0; }
.mobile-nav-list { display: flex; flex-direction: column; gap: 1.5rem; list-style: none; }
.mobile-nav-link { color: var(--text-muted); text-decoration: none; font-size: 1.25rem; font-family: var(--font-heading); }

/* Buttons with Clean Inline Icons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; padding: 0.75rem 1.65rem; border-radius: var(--radius-full); text-decoration: none; font-weight: 600; font-size: 0.95rem; cursor: pointer; transition: var(--transition); border: none; font-family: var(--font-heading); }
.btn-icon { width: 18px; height: 18px; flex-shrink: 0; stroke-width: 2.2; }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff; box-shadow: 0 4px 20px var(--primary-glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(168, 85, 247, 0.6); }
.btn-secondary { background: rgba(255, 255, 255, 0.05); color: #fff; border: 1px solid rgba(255, 255, 255, 0.15); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); box-shadow: 0 0 15px rgba(56, 189, 248, 0.25); }
.btn-nav-cta { padding: 0.5rem 1.2rem; background: rgba(99, 102, 241, 0.2); border: 1px solid var(--card-border); color: #fff; font-size: 0.88rem; }
.btn-sm { padding: 0.45rem 1rem; font-size: 0.85rem; }
.btn-outline { border: 1px solid rgba(255,255,255,0.2); color: #fff; }

/* Cards & Glassmorphism */
.glass-card { background: var(--card-bg); backdrop-filter: var(--glass-blur); border: 1px solid var(--card-border); border-radius: var(--radius-md); padding: 2.2rem; transition: var(--transition); }
.glass-card:hover { border-color: rgba(56, 189, 248, 0.45); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(99, 102, 241, 0.2); }

/* Hero */
.hero-section { min-height: 100vh; display: flex; align-items: center; position: relative; padding-top: 100px; padding-bottom: 7rem; }
.hero-container { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 3rem; align-items: center; position: relative; z-index: 3; width: 100%; max-width: 1200px; margin: 0 auto; }
.status-badge { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.4rem 1rem; background: rgba(56, 189, 248, 0.08); border: 1px solid rgba(56, 189, 248, 0.25); border-radius: var(--radius-full); font-size: 0.75rem; color: var(--accent); font-family: var(--font-mono); margin-bottom: 1.5rem; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 8px #22c55e; }
.hero-greeting { font-family: var(--font-mono); color: var(--text-muted); font-size: 1.05rem; letter-spacing: 0.1em; }
.hero-title { font-family: var(--font-heading); font-size: 4.5rem; font-weight: 800; line-height: 1.05; margin: 0.5rem 0 1rem; }
.hero-subtitle-wrap { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.hero-subtitle { font-size: 1.35rem; font-weight: 600; color: #e2e8f0; }
.badge-tag { font-size: 0.75rem; font-family: var(--font-mono); padding: 3px 8px; background: rgba(168,85,247,0.2); border: 1px solid rgba(168,85,247,0.4); border-radius: 4px; color: #e9d5ff; font-weight: 600; }
.nav-actions { display: flex; align-items: center; gap: 1rem; }

.theme-toggle-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}
.theme-toggle-btn:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: var(--accent);
  color: var(--accent);
}
.theme-toggle-btn svg { width: 20px; height: 20px; }

a.badge-tag { text-decoration: none; transition: var(--transition); display: inline-flex; align-items: center; gap: 5px; }
a.badge-tag:hover { background: rgba(168,85,247,0.35); box-shadow: 0 0 12px rgba(168,85,247,0.5); color: #fff; }
.hero-description { color: var(--text-muted); font-size: 1.1rem; line-height: 1.7; max-width: 540px; margin-bottom: 2.2rem; }
.hero-cta-group { display: flex; gap: 1.25rem; margin-bottom: 2.2rem; flex-wrap: wrap; }
.hero-socials { display: flex; align-items: center; gap: 1.2rem; }
.socials-label { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-muted); }
.social-icons-wrapper { display: flex; gap: 0.6rem; }
.social-btn { color: var(--text-muted); text-decoration: none; padding: 0.4rem 0.85rem; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-sm); font-size: 0.85rem; transition: var(--transition); }
.social-btn:hover { color: #fff; border-color: var(--accent); background: rgba(56,189,248,0.1); transform: translateY(-2px); }
.company-btn { border-color: rgba(168, 85, 247, 0.4); color: #e9d5ff; background: rgba(168, 85, 247, 0.05); }
.company-btn:hover { border-color: #c084fc; background: rgba(168, 85, 247, 0.2); box-shadow: 0 0 12px rgba(168, 85, 247, 0.4); }

.title-subtext { font-size: 0.35em; color: var(--text-muted); font-weight: 500; font-family: var(--font-mono); margin-left: 10px; display: inline-block; vertical-align: middle; letter-spacing: 0.05em; opacity: 0.7; }
.name-small { font-size: 0.7em; color: var(--text-muted); font-weight: 400; opacity: 0.8; margin-left: 4px; }
.bio-link { text-decoration: none; font-weight: 700; transition: var(--transition); border-bottom: 1px dashed rgba(56, 189, 248, 0.5); }
.bio-link:hover { color: #fff; border-bottom-color: #38bdf8; text-shadow: 0 0 10px rgba(56, 189, 248, 0.5); }

/* Centered Scroll Indicator at Bottom of Hero */
.scroll-indicator { position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 0.4rem; color: var(--text-muted); text-decoration: none; z-index: 5; transition: color var(--transition); }
.scroll-indicator:hover { color: var(--accent); }
.scroll-text { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.15em; font-weight: 600; }
.scroll-mouse { width: 20px; height: 32px; border: 2px solid currentColor; border-radius: 10px; display: flex; justify-content: center; padding-top: 5px; }
.scroll-wheel { width: 3px; height: 5px; background: currentColor; border-radius: 2px; animation: scrollBob 1.6s infinite; }
@keyframes scrollBob { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(10px); opacity: 0; } }

/* ==================================================
   3D HOLOGRAPHIC CYBER CUBE & GYROSCOPE STAGE
   ================================================== */
.hero-visual { display: flex; flex-direction: column; justify-content: center; align-items: center; position: relative; gap: 1.2rem; width: 100%; max-width: 520px; margin: 0 auto; user-select: none; }
.cube-stage { width: 440px; height: 400px; perspective: 1200px; display: flex; align-items: center; justify-content: center; position: relative; cursor: grab; }
.cube-stage:active { cursor: grabbing; }

/* Dynamic Multi-layered Ambient Atmosphere */
.cube-backdrop-glow { position: absolute; width: 340px; height: 340px; border-radius: 50%; background: radial-gradient(circle, rgba(56, 189, 248, 0.42) 0%, rgba(99, 102, 241, 0.28) 40%, rgba(168, 85, 247, 0.12) 68%, transparent 80%); filter: blur(55px); animation: pulseGlow 7s infinite ease-in-out; pointer-events: none; }
.cube-secondary-glow { position: absolute; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(168, 85, 247, 0.35) 0%, transparent 70%); filter: blur(40px); animation: pulseGlow 5s infinite ease-in-out reverse; pointer-events: none; }
@keyframes pulseGlow { 0%, 100% { transform: scale(1); opacity: 0.65; } 50% { transform: scale(1.18); opacity: 0.95; } }

/* Holographic Gyroscopic Orbit Rings */
.orbit-ring { position: absolute; top: 50%; left: 50%; border-radius: 50%; pointer-events: none; transform-style: preserve-3d; }
.orbit-ring-1 { width: 380px; height: 380px; margin-top: -190px; margin-left: -190px; border: 1.5px dashed rgba(56, 189, 248, 0.45); animation: spin-orbit-1 25s linear infinite; box-shadow: 0 0 15px rgba(56, 189, 248, 0.12); }
.orbit-ring-2 { width: 430px; height: 430px; margin-top: -215px; margin-left: -215px; border: 1.5px solid rgba(168, 85, 247, 0.35); border-left: 2px dashed rgba(168, 85, 247, 0.6); animation: spin-orbit-2 34s linear infinite reverse; }
.orbit-ring-3 { width: 480px; height: 480px; margin-top: -240px; margin-left: -240px; border: 1px dotted rgba(99, 102, 241, 0.3); animation: spin-orbit-3 50s linear infinite; }
.orbit-ring-vertical { width: 360px; height: 360px; margin-top: -180px; margin-left: -180px; border: 1px dashed rgba(56, 189, 248, 0.25); animation: spin-orbit-vert 28s linear infinite; }

.orbit-satellite { position: absolute; border-radius: 50%; }
.sat-1 { width: 8px; height: 8px; background: #38bdf8; top: -4px; left: 50%; transform: translateX(-50%); box-shadow: 0 0 12px #38bdf8, 0 0 25px rgba(56,189,248,0.8); }
.sat-2 { width: 8px; height: 8px; background: #c084fc; left: -4px; top: 50%; transform: translateY(-50%); box-shadow: 0 0 12px #c084fc, 0 0 25px rgba(192,132,252,0.8); }
.sat-3 { width: 6px; height: 6px; background: #6366f1; top: 50%; right: -3px; transform: translateY(-50%); box-shadow: 0 0 12px #6366f1, 0 0 20px rgba(99,102,241,0.8); }
.sat-4 { width: 10px; height: 10px; background: #a855f7; bottom: -5px; left: 50%; transform: translateX(-50%); box-shadow: 0 0 15px #a855f7, 0 0 25px rgba(168,85,247,0.8); }

@keyframes spin-orbit-1 { 0% { transform: rotateX(65deg) rotateY(20deg) rotateZ(0deg); } 100% { transform: rotateX(65deg) rotateY(20deg) rotateZ(360deg); } }
@keyframes spin-orbit-2 { 0% { transform: rotateX(-55deg) rotateY(40deg) rotateZ(0deg); } 100% { transform: rotateX(-55deg) rotateY(40deg) rotateZ(360deg); } }
@keyframes spin-orbit-3 { 0% { transform: rotateX(75deg) rotateY(-15deg) rotateZ(0deg); } 100% { transform: rotateX(75deg) rotateY(-15deg) rotateZ(360deg); } }
@keyframes spin-orbit-vert { 0% { transform: rotateY(70deg) rotateX(15deg) rotateZ(0deg); } 100% { transform: rotateY(70deg) rotateX(15deg) rotateZ(360deg); } }

/* Floating Holographic Chips */
.holo-chip { position: absolute; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; background: rgba(11, 11, 24, 0.88); backdrop-filter: blur(10px); border: 1px solid rgba(56, 189, 248, 0.35); border-radius: 6px; font-family: var(--font-mono); font-size: 0.65rem; color: #e2e8f0; pointer-events: none; z-index: 10; box-shadow: 0 8px 22px rgba(0,0,0,0.7), 0 0 12px rgba(56,189,248,0.25); animation: floatChip 6s infinite ease-in-out; }
.holo-chip .chip-dot { width: 6px; height: 6px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 8px #22c55e; }
.chip-1 { top: 12%; left: 4%; animation-delay: 0s; }
.chip-2 { top: 16%; right: 2%; animation-delay: 1.8s; }
.chip-3 { bottom: 16%; left: 6%; animation-delay: 3.2s; }
@keyframes floatChip { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Ambient Sparks */
.spark { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent), 0 0 20px #38bdf8; pointer-events: none; }
.spark-1 { top: 20%; left: 18%; animation: floatSpark 4s infinite ease-in-out; }
.spark-2 { bottom: 25%; right: 18%; animation: floatSpark 5s infinite ease-in-out 1s; }
.spark-3 { top: 28%; right: 22%; animation: floatSpark 4.5s infinite ease-in-out 2s; }
.spark-4 { bottom: 35%; left: 22%; animation: floatSpark 5.5s infinite ease-in-out 2.5s; }
@keyframes floatSpark { 0%, 100% { transform: translateY(0); opacity: 0.25; } 50% { transform: translateY(-22px); opacity: 1; } }

/* 3D CUBE VIEWPORT & TRANSFORMER */
.cube-viewport { width: 220px; height: 220px; transform-style: preserve-3d; animation: floatCube 6s ease-in-out infinite; position: relative; }
@keyframes floatCube { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }

.cube-transformer { width: 100%; height: 100%; transform-style: preserve-3d; position: relative; will-change: transform; }

/* Internal Glowing Quantum Reactor Core */
.cube-inner-core { position: absolute; width: 100px; height: 100px; top: 60px; left: 60px; transform-style: preserve-3d; pointer-events: none; z-index: 1; }
.core-plasma { width: 100%; height: 100%; border-radius: 50%; background: radial-gradient(circle, #38bdf8 0%, #6366f1 45%, #a855f7 70%, transparent 85%); filter: blur(12px); opacity: 0.9; animation: pulsePlasma 3s infinite alternate; }
@keyframes pulsePlasma { from { transform: scale(0.85); opacity: 0.6; } to { transform: scale(1.2); opacity: 1; } }
.core-gyro { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border-radius: 50%; border: 1.5px dashed rgba(56, 189, 248, 0.7); }
.core-gyro-1 { animation: spinGyro1 8s linear infinite; }
.core-gyro-2 { border-color: rgba(168, 85, 247, 0.7); animation: spinGyro2 10s linear infinite reverse; }
@keyframes spinGyro1 { 0% { transform: rotateX(45deg) rotateY(0deg); } 100% { transform: rotateX(45deg) rotateY(360deg); } }
@keyframes spinGyro2 { 0% { transform: rotateX(-45deg) rotateZ(0deg); } 100% { transform: rotateX(-45deg) rotateZ(360deg); } }

/* 3D CUBE FACES (ULTRA-REFINED CYBERPRISM) */
.cube-face {
  position: absolute;
  width: 220px;
  height: 220px;
  background: linear-gradient(145deg, rgba(14, 18, 36, 0.88) 0%, rgba(7, 9, 20, 0.94) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(56, 189, 248, 0.5);
  box-shadow: inset 0 0 35px rgba(56, 189, 248, 0.15), inset 0 0 15px rgba(99, 102, 241, 0.2), 0 0 25px rgba(56, 189, 248, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px;
  border-radius: 12px;
  overflow: hidden;
  user-select: none;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s, box-shadow 0.3s;
}

.cube-face:hover {
  border-color: rgba(56, 189, 248, 0.9);
  box-shadow: inset 0 0 45px rgba(56, 189, 248, 0.25), 0 0 35px rgba(56, 189, 248, 0.5);
}

/* 3D Face Transforms (Normal 110px half-width) */
.cube-face-front  { transform: rotateY(  0deg) translateZ(110px); }
.cube-face-back   { transform: rotateY(180deg) translateZ(110px); }
.cube-face-right  { transform: rotateY( 90deg) translateZ(110px); }
.cube-face-left   { transform: rotateY(-90deg) translateZ(110px); }
.cube-face-top    { transform: rotateX( 90deg) translateZ(110px); }
.cube-face-bottom { transform: rotateX(-90deg) translateZ(110px); }

/* Exploded 3D Core View Mode */
.cube-transformer.exploded .cube-face-front  { transform: rotateY(  0deg) translateZ(185px); }
.cube-transformer.exploded .cube-face-back   { transform: rotateY(180deg) translateZ(185px); }
.cube-transformer.exploded .cube-face-right  { transform: rotateY( 90deg) translateZ(185px); }
.cube-transformer.exploded .cube-face-left   { transform: rotateY(-90deg) translateZ(185px); }
.cube-transformer.exploded .cube-face-top    { transform: rotateX( 90deg) translateZ(185px); }
.cube-transformer.exploded .cube-face-bottom { transform: rotateX(-90deg) translateZ(185px); }

/* Face Cyber Grid & Scanline */


.face-scanline {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, #38bdf8, transparent);
  box-shadow: 0 0 12px #38bdf8;
  animation: scanFace 3.5s linear infinite;
  z-index: 2;
  pointer-events: none;
}
@keyframes scanFace { 0% { top: -5%; } 100% { top: 105%; } }

/* Corner Brackets */
.face-corner { position: absolute; width: 8px; height: 8px; border-color: #38bdf8; z-index: 3; pointer-events: none; }
.face-corner.tl { top: 5px; left: 5px; border-top: 2px solid; border-left: 2px solid; }
.face-corner.tr { top: 5px; right: 5px; border-top: 2px solid; border-right: 2px solid; }
.face-corner.bl { bottom: 5px; left: 5px; border-bottom: 2px solid; border-left: 2px solid; }
.face-corner.br { bottom: 5px; right: 5px; border-bottom: 2px solid; border-right: 2px solid; }

/* HUD Header & Footer */
.face-hud-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: #94a3b8;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 5px;
  position: relative;
  z-index: 3;
}
.face-hud-top .hud-tag { color: #38bdf8; font-weight: 700; }
.face-hud-top .hud-status { display: inline-flex; align-items: center; gap: 4px; color: #22c55e; font-weight: 600; }
.live-dot-mini { width: 5px; height: 5px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 6px #22c55e; display: inline-block; }

.face-hud-bot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: #64748b;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 5px;
  position: relative;
  z-index: 3;
}
.face-hud-bot .hud-metric { color: #38bdf8; font-weight: 600; }

/* Face Content */
.face-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 3px;
  position: relative;
  z-index: 3;
  margin: auto 0;
}

.face-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.25);
  color: #38bdf8;
  flex-shrink: 0;
}
.face-svg-icon {
  width: 22px !important;
  height: 22px !important;
  max-width: 22px !important;
  max-height: 22px !important;
  stroke: #38bdf8;
  display: block;
  flex-shrink: 0;
}

.face-title {
  font-family: var(--font-heading);
  font-size: 1.12rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.06em;
  text-shadow: 0 0 10px rgba(255,255,255,0.4);
}

.face-caption {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: #38bdf8;
  letter-spacing: 0.14em;
  font-weight: 700;
}

.face-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 4px;
}
.face-tags span {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 1px 5px;
  border-radius: 3px;
  color: #cbd5e1;
}

/* Floor Shadow & Holographic Ring */
.cube-floor-shadow { position: absolute; bottom: -35px; width: 260px; height: 35px; border-radius: 50%; background: radial-gradient(ellipse, rgba(0,0,0,0.85) 0%, rgba(99,102,241,0.25) 40%, transparent 70%); filter: blur(14px); }
.cube-floor-ring { position: absolute; bottom: -30px; width: 220px; height: 220px; border-radius: 50%; border: 1.5px solid rgba(56, 189, 248, 0.25); transform: rotateX(80deg); animation: floorPulse 4s infinite ease-in-out; pointer-events: none; }
@keyframes floorPulse { 0%, 100% { transform: rotateX(80deg) scale(0.9); opacity: 0.4; } 50% { transform: rotateX(80deg) scale(1.15); opacity: 0.85; } }

/* Drag Hint */
.cube-drag-hint {
  position: absolute;
  bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--accent);
  background: rgba(11, 11, 24, 0.88);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 9999px;
  padding: 4px 12px;
  letter-spacing: 0.08em;
  pointer-events: none;
  opacity: 0.85;
  transition: opacity 0.3s;
  animation: pulseHint 3s infinite ease-in-out;
}
.drag-hint-icon {
  width: 13px !important;
  height: 13px !important;
  max-width: 13px !important;
  max-height: 13px !important;
  stroke: currentColor;
  display: inline-block;
  flex-shrink: 0;
}
@keyframes pulseHint { 0%, 100% { opacity: 0.6; } 50% { opacity: 1; } }

/* ==================================================
   CUBE CONTROLLER DOCK & QUICK NAV PILLS
   ================================================== */
.cube-control-deck {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  align-items: center;
  margin-top: 0.8rem;
  padding: 10px 14px;
  background: rgba(10, 12, 24, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), inset 0 0 15px rgba(56, 189, 248, 0.06);
  z-index: 10;
  position: relative;
}

.cube-nav-pills {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

.cube-nav-btn {
  all: unset;
  box-sizing: border-box;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  padding: 0.35rem 0.85rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
  user-select: none;
}

.cube-nav-btn:hover {
  color: #ffffff;
  border-color: rgba(56, 189, 248, 0.5);
  background: rgba(56, 189, 248, 0.12);
}

.cube-nav-btn.active {
  color: #38bdf8;
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.2);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.35);
}

.btn-glow-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.cube-action-tools {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

.cube-tool-btn {
  all: unset;
  box-sizing: border-box;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 6px;
  padding: 0.32rem 0.75rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
  user-select: none;
}

.cube-tool-btn:hover {
  border-color: var(--accent);
  color: #fff;
  background: rgba(56, 189, 248, 0.15);
}

.cube-tool-btn.active {
  border-color: #38bdf8;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.22);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.35);
}

.cube-live-telemetry {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: #64748b;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 0.32rem 0.75rem;
}
.tele-item-pill strong { color: #e2e8f0; }
.tele-item-pill.status-online { color: #22c55e; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
/* ==================================================
   REALISTIC 3D LAPTOP & MOTHERBOARD SILICON ARCHITECTURE
   ================================================== */
.hardware-section { background: radial-gradient(circle at 50% 25%, rgba(99, 102, 241, 0.09) 0%, transparent 70%); }
.hardware-container { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: center; }
.hardware-text-content { display: flex; flex-direction: column; gap: 1.2rem; text-align: left; align-items: flex-start; }
.hardware-subtitle { color: #f8fafc; font-size: 1.1rem; line-height: 1.7; opacity: 0.95; }
.hardware-cta-group { display: flex; gap: 1rem; margin-top: 1.5rem; flex-wrap: wrap; justify-content: flex-start; }
.hardware-interactive-wrap { display: flex; flex-direction: column; gap: 4.5rem; align-items: center; width: 100%; }

.typing-cursor { display: inline-block; width: 8px; height: 1em; background: #38bdf8; vertical-align: bottom; animation: blinkCursor 1s step-end infinite; }
@keyframes blinkCursor { 50% { opacity: 0; } }

/* Terminal Showcase */
.terminal-showcase { perspective: none; width: 100%; max-width: 700px; display: flex; justify-content: center; align-items: center; }
.terminal-window { width: 100%; max-width: 650px; position: relative; background: #030308; border: 1px solid rgba(56, 189, 248, 0.3); border-radius: 12px; box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7), 0 0 20px rgba(56, 189, 248, 0.15); display: flex; flex-direction: column; font-family: var(--font-mono); overflow: hidden; transform: translateY(0); transition: transform 0.4s ease, box-shadow 0.4s ease; }
.terminal-window:hover { transform: translateY(-5px); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(56, 189, 248, 0.25); }

.screen-header { height: 38px; background: rgba(255, 255, 255, 0.05); display: flex; align-items: center; gap: 8px; padding: 0 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.window-controls { display: flex; gap: 8px; }
.ctrl-dot { width: 12px; height: 12px; border-radius: 50%; }
.ctrl-dot.red { background: #ef4444; } .ctrl-dot.yellow { background: #eab308; } .ctrl-dot.green { background: #22c55e; }
.terminal-title { font-size: 0.75rem; color: #94a3b8; margin-left: 12px; font-weight: 500; }

.screen-body { padding: 24px 20px; min-height: 320px; font-size: 0.95rem; line-height: 1.8; color: #e2e8f0; }
.term-line { margin-bottom: 8px; }
.c-accent { color: var(--accent); font-weight: 700; }
.c-green { color: #22c55e; }
.c-purple { color: var(--secondary); font-weight: 700; }
.c-yellow { color: #facc15; }
.c-cyan { color: #38bdf8; }
.glow-pulse { animation: glowPulse 2s infinite; }
@keyframes glowPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }



/* Section Headers & Common */
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-badge { display: inline-block; font-family: var(--font-mono); font-size: 0.8rem; color: var(--accent); padding: 0.35rem 0.9rem; background: rgba(99, 102, 241, 0.1); border-radius: var(--radius-full); margin-bottom: 1rem; }
.section-title { font-family: var(--font-heading); font-size: 2.5rem; font-weight: 700; }
.about-grid, .contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.domain-pills { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.5rem 0; }
.bio-main-title { font-family: var(--font-heading); font-size: 1.45rem; color: #f8fafc; font-weight: 700; margin-bottom: 1.2rem; line-height: 1.3; }
.expertise-title { font-family: var(--font-heading); font-size: 1.15rem; color: #fff; margin: 2rem 0 1rem; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 0.5rem; }
.expertise-list { display: flex; flex-direction: column; gap: 0.8rem; margin-bottom: 2rem; }
.exp-item { font-size: 0.95rem; color: var(--text-muted); display: flex; align-items: flex-start; gap: 0.75rem; line-height: 1.5; }
.exp-item strong { color: #cbd5e1; font-weight: 600; }
.exp-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-top: 6px; box-shadow: 0 0 8px var(--accent); flex-shrink: 0; }
.pill { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.3rem 0.8rem; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-full); font-size: 0.82rem; color: #cbd5e1; }
.pill-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; border-top: 1px solid rgba(255,255,255,0.08); padding-top: 1.5rem; text-align: center; }
.stat-number-wrap { font-family: var(--font-heading); font-size: 2.3rem; font-weight: 800; color: #fff; }
.stat-plus { color: var(--accent); }
.stat-infinity { font-size: 2.5rem; color: var(--secondary); }
.stat-label { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; }

/* Timeline */
.timeline-heading { font-family: var(--font-heading); font-size: 1.3rem; margin-bottom: 1.5rem; display: flex; align-items: center; gap: 0.5rem; color: #fff; }
.timeline-title-icon { width: 20px; height: 20px; color: var(--accent); }
.timeline-tree { position: relative; padding-left: 1.5rem; border-left: 2px solid rgba(99, 102, 241, 0.3); }
.timeline-item { position: relative; margin-bottom: 1.5rem; }
.timeline-dot { position: absolute; top: 5px; left: -1.95rem; width: 12px; height: 12px; border-radius: 50%; background: var(--bg-color); border: 2px solid var(--accent); }
.timeline-content { padding-left: 0.5rem; }
.timeline-year { font-family: var(--font-mono); font-size: 0.75rem; color: var(--accent); font-weight: 700; }
.timeline-item h4 { font-family: var(--font-heading); font-size: 1.1rem; color: #fff; margin: 2px 0; }
.timeline-item p { font-size: 0.85rem; color: var(--text-muted); }

/* Skills, Services, Projects */
.skills-grid, .services-grid, .achievements-counter-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.5rem; }
.skill-card { display: flex; flex-direction: column; gap: 1rem; }
.skill-card h3, .service-card h3 { font-family: var(--font-heading); font-size: 1.25rem; color: #fff; }
.skill-card p, .service-card p { font-size: 0.88rem; color: var(--text-muted); }
.skill-icon-wrapper { width: 44px; height: 44px; border-radius: var(--radius-sm); background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; font-weight: 800; font-family: var(--font-heading); color: var(--accent); }

.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; margin-bottom: 3rem; }
.project-card { display: flex; flex-direction: column; }
.project-number { font-family: var(--font-mono); font-size: 1rem; color: var(--accent); font-weight: 700; margin-bottom: 0.8rem; }
.project-preview { height: 150px; background: #080812; border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius-sm); margin-bottom: 1.2rem; display: flex; align-items: center; justify-content: center; }
.browser-mockup { width: 85%; height: 75%; background: rgba(18,18,28,0.9); border-radius: 4px; padding: 6px; font-family: var(--font-mono); font-size: 0.65rem; }
.project-title { font-family: var(--font-heading); font-size: 1.3rem; color: #fff; margin-bottom: 0.5rem; }
.project-desc { font-size: 0.9rem; color: var(--text-muted); line-height: 1.55; margin-bottom: 1.2rem; flex-grow: 1; }
.tech-stack { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.2rem; }
.tech-pill { font-family: var(--font-mono); font-size: 0.72rem; padding: 2px 8px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius-full); color: #94a3b8; }
.project-actions { display: flex; gap: 0.75rem; }
.projects-cta-center { text-align: center; }

/* Contact Form */
.contact-items-list { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.5rem; }
.contact-item { display: flex; align-items: center; gap: 1rem; padding: 0.75rem; background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.06); border-radius: var(--radius-sm); text-decoration: none; color: inherit; }
.contact-icon { width: 38px; height: 38px; border-radius: var(--radius-sm); background: rgba(99,102,241,0.15); display: flex; align-items: center; justify-content: center; color: var(--accent); }
.meta-label { display: block; font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-muted); }
.meta-val { font-size: 0.9rem; font-weight: 600; color: #fff; }
.form-group { margin-bottom: 1.2rem; display: flex; flex-direction: column; gap: 0.4rem; }
.form-label { font-size: 0.85rem; font-weight: 600; color: #cbd5e1; font-family: var(--font-heading); }
.form-input { width: 100%; padding: 0.8rem 1rem; background: rgba(5, 5, 10, 0.7); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius-sm); color: #fff; font-family: inherit; font-size: 0.95rem; }
.form-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 12px rgba(56,189,248,0.25); }

/* Footer */
.site-footer { background: #030305; border-top: 1px solid rgba(255,255,255,0.08); padding: 3.5rem 0 2rem; margin-top: 4rem; }
.footer-top { text-align: center; margin-bottom: 2rem; }
.footer-logo { font-family: var(--font-heading); font-size: 1.6rem; font-weight: 800; text-decoration: none; color: #fff; }
.footer-tagline { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.4rem; }
.footer-divider { width: 100%; height: 1px; background: rgba(255,255,255,0.06); margin-bottom: 1.5rem; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; }
.back-to-top-btn { font-family: var(--font-mono); font-size: 0.8rem; color: var(--accent); text-decoration: none; }

/* Reveal Animations */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.revealed { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 991px) {
  .hero-container, .about-grid, .contact-grid, .hardware-container { grid-template-columns: 1fr; }
  .hero-title { font-size: 3.2rem; }
  .nav-menu, .btn-nav-cta { display: none; }
  .hamburger-btn { display: block; }
  .pcb-core-layout { grid-template-columns: 1fr; }
  .telemetry-dashboard { grid-template-columns: 1fr 1fr; }
  .laptop-device { width: 340px; }
  .laptop-lid-frame { width: 340px; height: 210px; }
  .laptop-deck { width: 360px; margin-left: -10px; height: 120px; }
}

@media (max-width: 768px) {
  .cube-stage { width: 340px; height: 340px; }
  .orbit-ring-1 { width: 300px; height: 300px; }
  .orbit-ring-2 { width: 330px; height: 330px; }
  .orbit-ring-3 { width: 360px; height: 360px; }
  .cube-viewport { width: 180px; height: 180px; }
  .cube-face { width: 180px; height: 180px; padding: 10px; }
  .cube-face-front  { transform: rotateY(  0deg) translateZ(90px); }
  .cube-face-back   { transform: rotateY(180deg) translateZ(90px); }
  .cube-face-right  { transform: rotateY( 90deg) translateZ(90px); }
  .cube-face-left   { transform: rotateY(-90deg) translateZ(90px); }
  .cube-face-top    { transform: rotateX( 90deg) translateZ(90px); }
  .cube-face-bottom { transform: rotateX(-90deg) translateZ(90px); }

  .cube-transformer.exploded .cube-face-front  { transform: rotateY(  0deg) translateZ(145px); }
  .cube-transformer.exploded .cube-face-back   { transform: rotateY(180deg) translateZ(145px); }
  .cube-transformer.exploded .cube-face-right  { transform: rotateY( 90deg) translateZ(145px); }
  .cube-transformer.exploded .cube-face-left   { transform: rotateY(-90deg) translateZ(145px); }
  .cube-transformer.exploded .cube-face-top    { transform: rotateX( 90deg) translateZ(145px); }
  .cube-transformer.exploded .cube-face-bottom { transform: rotateX(-90deg) translateZ(145px); }

  .face-title { font-size: 0.98rem; }
  .face-icon-wrap { width: 36px; height: 36px; }
  .face-svg-icon { width: 18px; height: 18px; }
  .face-tags span { font-size: 0.5rem; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.5rem; }
  .cube-stage { width: 290px; height: 290px; }
  .cube-viewport { width: 150px; height: 150px; }
  .cube-face { width: 150px; height: 150px; padding: 8px; }
  .cube-face-front  { transform: rotateY(  0deg) translateZ(75px); }
  .cube-face-back   { transform: rotateY(180deg) translateZ(75px); }
  .cube-face-right  { transform: rotateY( 90deg) translateZ(75px); }
  .cube-face-left   { transform: rotateY(-90deg) translateZ(75px); }
  .cube-face-top    { transform: rotateX( 90deg) translateZ(75px); }
  .cube-face-bottom { transform: rotateX(-90deg) translateZ(75px); }

  .cube-transformer.exploded .cube-face-front  { transform: rotateY(  0deg) translateZ(120px); }
  .cube-transformer.exploded .cube-face-back   { transform: rotateY(180deg) translateZ(120px); }
  .cube-transformer.exploded .cube-face-right  { transform: rotateY( 90deg) translateZ(120px); }
  .cube-transformer.exploded .cube-face-left   { transform: rotateY(-90deg) translateZ(120px); }
  .cube-transformer.exploded .cube-face-top    { transform: rotateX( 90deg) translateZ(120px); }
  .cube-transformer.exploded .cube-face-bottom { transform: rotateX(-90deg) translateZ(120px); }

  .face-hud-top, .face-hud-bot { font-size: 0.52rem; }
  .cube-nav-btn { font-size: 0.65rem; padding: 0.25rem 0.6rem; }
  .cube-tool-btn { font-size: 0.65rem; padding: 0.25rem 0.55rem; }
}
