/* ════════════════════════════════════════════════════════════════
   SAE CODES — PORTFOLIO DESIGN SYSTEM: OBSIDIAN LIQUID GLASS (COMPLETE FIX)
   ════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Fira+Code:wght@400;500;600;700&display=swap');

:root {
  /* Colors */
  --bg: #020204;
  --bg-subtle: #06060a;
  --bg-surface: #0a0a0f;
  --bg-card: rgba(255, 255, 255, 0.025);
  --bg-card-hover: rgba(255, 255, 255, 0.05);
  
  /* Glass Borders & Strokes */
  --border-glass: rgba(255, 255, 255, 0.07);
  --border-glass-hover: rgba(255, 255, 255, 0.2);
  --border-accent: rgba(56, 189, 248, 0.4);

  /* Typography */
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.78);
  --text-muted: rgba(255, 255, 255, 0.45);
  --text-code: #a1a1aa;
  
  /* Accents */
  --accent-sky: #38bdf8;
  --accent-cyan: #06b6d4;
  --accent-emerald: #22c55e;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  --accent-purple: #a855f7;
  
  /* Sizing & Layout */
  --sidebar-w: 72px;
  --sidebar-expanded: 220px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100vw;
  background-color: #020204;
  color: var(--text-primary);
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: transparent;
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
  position: relative;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

input, textarea {
  user-select: text !important;
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
}

img {
  -webkit-user-drag: none;
  user-drag: none;
}

/* DevTools Open Protection Shield */
body.devtools-open {
  filter: blur(40px) !important;
  pointer-events: none !important;
  user-select: none !important;
  opacity: 0.05 !important;
}

body.devtools-open::after {
  content: "SECURITY ALERT: DevTools Access Denied. Portfolio Source Code Protection Active.";
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: #020204;
  color: #ef4444;
  font-family: 'Fira Code', monospace;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px;
  letter-spacing: 0.5px;
}

body.loading {
  overflow: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(56, 189, 248, 0.4);
}

::selection {
  background: rgba(56, 189, 248, 0.3);
  color: #fff;
}

/* ════ MOUSE SPOTLIGHT FOLLOWER ════ */
#cursor-glow {
  position: fixed;
  width: 550px;
  height: 550px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.06) 0%, transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 1;
  transition: transform 0.08s ease-out;
  will-change: transform;
}

/* ════ BACKGROUND AMBIENCE ════ */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  will-change: transform;
}

.orb-1 {
  width: 850px;
  height: 850px;
  top: -200px;
  left: -150px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.055) 0%, transparent 70%);
  animation: orbFloat1 32s ease-in-out infinite alternate;
}

.orb-2 {
  width: 750px;
  height: 750px;
  bottom: -150px;
  right: -100px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.045) 0%, transparent 70%);
  animation: orbFloat2 28s ease-in-out infinite alternate;
}

.orb-3 {
  width: 600px;
  height: 600px;
  top: 40%;
  left: 40%;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.035) 0%, transparent 70%);
  animation: orbFloat3 38s ease-in-out infinite alternate;
}

@keyframes orbFloat1 { to { transform: translate(140px, 100px); } }
@keyframes orbFloat2 { to { transform: translate(-120px, -80px); } }
@keyframes orbFloat3 { to { transform: translate(70px, -90px) scale(1.15); } }

/* Grid overlay background */
#bg-canvas::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle at 50% 50%, black 40%, transparent 85%);
  opacity: 0.75;
}

.star-particle {
  position: absolute;
  border-radius: 50%;
  animation: particleAscend linear infinite;
  opacity: 0;
  pointer-events: none;
}

@keyframes particleAscend {
  0% { transform: translateY(0) scale(1); opacity: 0; }
  15% { opacity: 0.35; }
  85% { opacity: 0.08; }
  100% { transform: translateY(-120vh) scale(0.2); opacity: 0; }
}

/* ════ LOADER SCREEN ════ */
#loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #020204;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  transition: clip-path 1.1s cubic-bezier(0.76, 0, 0.24, 1);
}

#loader.hide {
  clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%);
}

.ld-noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.025;
}

.ld-branding {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 2;
}

.ld-ring-box {
  position: relative;
  width: 110px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ld-svg {
  width: 100%;
  height: 100%;
}

.ld-ring-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.06);
  stroke-width: 2;
}

.ld-ring-draw {
  fill: none;
  stroke: #ffffff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 314;
  stroke-dashoffset: 314;
  animation: drawCircle 1.3s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
}

@keyframes drawCircle { to { stroke-dashoffset: 0; } }

.ld-avatar {
  position: absolute;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  opacity: 0;
  animation: fadeIn 0.5s ease 0.8s forwards;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.ld-name {
  display: flex;
  gap: 4px;
  margin-top: 10px;
}

.ld-char {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 800;
  letter-spacing: -1px;
  color: #fff;
  display: inline-block;
  opacity: 0;
  transform: translateY(24px) scale(0.95);
  animation: ldCharAnim 0.6s cubic-bezier(0.16, 1, 0.3, 1) calc(0.3s + var(--i) * 0.05s) forwards;
}

@keyframes ldCharAnim { to { opacity: 1; transform: translateY(0) scale(1); } }

.ld-sub {
  font-family: 'Fira Code', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.ld-sub::after {
  content: '_';
  animation: blink 0.8s step-end infinite;
  margin-left: 2px;
  color: var(--accent-sky);
}

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.ld-progress-track {
  width: 220px;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 24px;
}

.ld-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--text-secondary), #ffffff);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.5);
  animation: fillBar 2.2s cubic-bezier(0.4, 0, 0.2, 1) 0.5s forwards;
}

@keyframes fillBar { to { width: 100%; } }

.ld-pct {
  font-family: 'Fira Code', monospace;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 8px;
}

/* ════ NAVIGATION ════ */
.sidebar-nav {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--sidebar-w);
  background: rgba(2, 2, 4, 0.9);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-right: 1px solid var(--border-glass);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 0;
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.sidebar-nav:hover {
  width: var(--sidebar-expanded);
}

.sb-logo-box {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  color: #fff;
  margin-bottom: 32px;
  flex-shrink: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.sb-menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  padding: 0 12px;
  flex: 1;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.045);
  color: var(--text-secondary);
}

.nav-link.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-link svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
}

.nav-label {
  opacity: 0;
  transform: translateX(-8px);
  transition: all 0.25s ease;
}

.sidebar-nav:hover .nav-label {
  opacity: 1;
  transform: translateX(0);
}

/* Mobile Navigation */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(2, 2, 4, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid var(--border-glass);
  padding: 10px 16px max(10px, env(safe-area-inset-bottom));
  justify-content: space-around;
}

.mob-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 10px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast);
}

.mob-link svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
}

.mob-link.active { color: var(--text-primary); }

/* ════ LAYOUT & SECTIONS ════ */
.main-wrapper {
  margin-left: var(--sidebar-w);
  position: relative;
  z-index: 1;
}

section {
  padding: 100px 80px;
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  font-family: 'Fira Code', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--accent-sky);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 800;
  line-height: 1.08;
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: -1.5px;
}

.section-sub {
  color: var(--text-secondary);
  font-size: 16px;
  max-width: 600px;
  line-height: 1.85;
  margin-bottom: 56px;
  font-weight: 400;
}

/* ════ SCROLL REVEAL ANIMATIONS ════ */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

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

/* ════ BUTTONS & CTAs ════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  z-index: 5;
}

.btn-primary {
  background: #ffffff;
  color: #020204;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 40px rgba(255, 255, 255, 0.25), 0 0 60px rgba(56, 189, 248, 0.25);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass-hover);
  color: var(--text-primary);
  backdrop-filter: blur(12px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-3px);
}

.btn-sm {
  font-size: 12px !important;
  padding: 9px 18px !important;
  border-radius: var(--radius-sm) !important;
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
  transform: translateY(-2px);
}

.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.15);
  transform: scale(0);
  animation: rippleAnim 0.6s linear;
  pointer-events: none;
}

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

/* ════ HERO SECTION WITH FULL-WIDTH VIDEO/GIF BACKGROUND ════ */
#hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 50px;
  padding-top: 120px;
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
  max-width: 100vw;
  width: 100%;
}

/* ════ GLOBAL ATMOSPHERIC BACKGROUND VIDEO (SITE-WIDE SCROLLING) ════ */
#global-bg-video-wrap {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.global-bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.55) contrast(1.15);
  transform: scale(1.02);
}

.global-bg-overlay {
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(180deg, rgba(2, 2, 4, 0.45) 0%, rgba(2, 2, 4, 0.72) 60%, rgba(2, 2, 4, 0.92) 100%),
    radial-gradient(circle at 35% 25%, rgba(56, 189, 248, 0.08), rgba(2, 2, 4, 0.75));
}

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

.hero-top-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.location-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(2, 2, 4, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  font-family: 'Fira Code', monospace;
  font-size: 11px;
  color: var(--text-muted);
}

.location-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-sky);
  box-shadow: 0 0 8px var(--accent-sky);
}

.hero-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(34, 197, 94, 0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(34, 197, 94, 0.25);
  font-family: 'Fira Code', monospace;
  font-size: 11px;
  color: var(--accent-emerald);
}

.status-dot-ping {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
}

.status-dot-ping::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: var(--accent-emerald);
  animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
  opacity: 0.6;
}

@keyframes ping { 75%, 100% { transform: scale(2.2); opacity: 0; } }

.hero-name {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(52px, 7vw, 92px);
  font-weight: 900;
  line-height: 0.95;
  margin-bottom: 20px;
  color: #fff;
  letter-spacing: -2.5px;
  text-shadow: 0 0 50px rgba(0,0,0,0.8);
}

.hero-name .gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.6) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-headline {
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.3;
}

.typewriter-role {
  color: var(--accent-sky);
  font-family: 'Fira Code', monospace;
  font-weight: 600;
}

.cursor-blink {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: var(--accent-sky);
  margin-left: 3px;
  vertical-align: middle;
  animation: blink 0.85s step-end infinite;
}

.hero-bio {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.85;
  max-width: 560px;
  margin-bottom: 32px;
}

.hero-stats-row {
  display: flex;
  gap: 44px;
  margin-bottom: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--border-glass);
}

.stat-number {
  font-family: 'Outfit', sans-serif;
  font-size: 34px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
  font-family: 'Fira Code', monospace;
}

.hero-actions-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.social-icon-group {
  display: flex;
  gap: 10px;
  align-items: center;
  padding-left: 12px;
  border-left: 1px solid var(--border-glass);
}

/* HERO RIGHT VISUAL COLUMN */
.hero-visual-col {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* DYNAMIC CARD 1: REAL-TIME TELEMETRY MONITOR */
.hero-telemetry-card {
  width: 100%;
  background: rgba(8, 8, 14, 0.85);
  border: 1px solid var(--border-glass-hover);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(34, 197, 94, 0.05);
}

.telemetry-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-glass);
}

.telemetry-title {
  font-family: 'Fira Code', monospace;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-emerald);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.08em;
}

.live-dot-ping {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
}

.live-dot-ping::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: var(--accent-emerald);
  animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.telemetry-badge {
  font-family: 'Fira Code', monospace;
  font-size: 10px;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: var(--accent-emerald);
}

.telemetry-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tel-metric {
  display: flex;
  flex-direction: column;
}

.tel-val {
  font-family: 'Fira Code', monospace;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
}

.tel-lbl {
  font-size: 10px;
  color: var(--text-muted);
  font-family: 'Fira Code', monospace;
  margin-top: 2px;
}

.tel-divider {
  width: 1px;
  height: 28px;
  background: var(--border-glass);
}

.text-emerald { color: var(--accent-emerald) !important; }
.text-sky { color: var(--accent-sky) !important; }

/* DYNAMIC CARD 2: PRODUCTION TECH MATRIX */
.hero-stack-card {
  width: 100%;
  background: rgba(8, 8, 14, 0.85);
  border: 1px solid var(--border-glass-hover);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.stack-card-title {
  font-family: 'Fira Code', monospace;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.stack-chips-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stack-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-glass);
  font-family: 'Fira Code', monospace;
  font-size: 11.5px;
  color: var(--text-secondary);
}

.chip-dot { width: 6px; height: 6px; border-radius: 50%; }
.glow-sky { background: var(--accent-sky); box-shadow: 0 0 6px var(--accent-sky); }
.glow-emerald { background: var(--accent-emerald); box-shadow: 0 0 6px var(--accent-emerald); }
.glow-purple { background: var(--accent-purple); box-shadow: 0 0 6px var(--accent-purple); }
.glow-cyan { background: var(--accent-cyan); box-shadow: 0 0 6px var(--accent-cyan); }
.glow-amber { background: var(--accent-amber); box-shadow: 0 0 6px var(--accent-amber); }
.glow-rose { background: var(--accent-rose); box-shadow: 0 0 6px var(--accent-rose); }

.ide-window-box {
  width: 100%;
  background: rgba(8, 8, 12, 0.85);
  border: 1px solid var(--border-glass-hover);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.85), 0 0 50px rgba(56, 189, 248, 0.08);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.ide-header-bar {
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-glass);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.window-dots { display: flex; gap: 8px; }
.w-dot { width: 10px; height: 10px; border-radius: 50%; }
.w-dot.red { background: #ef4444; }
.w-dot.yellow { background: #f59e0b; }
.w-dot.green { background: #22c55e; }

.ide-tab-group { display: flex; gap: 8px; }

.ide-tab-btn {
  font-family: 'Fira Code', monospace;
  font-size: 12px;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.ide-tab-btn.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.ide-code-container {
  padding: 24px;
  font-family: 'Fira Code', monospace;
  font-size: 13px;
  line-height: 1.7;
  color: #e5e2e1;
  background: rgba(2, 2, 4, 0.9);
  min-height: 280px;
  overflow-x: auto;
}

.code-kw { color: var(--accent-sky); font-weight: 600; }
.code-fn { color: var(--accent-emerald); }
.code-str { color: #f472b6; }
.code-cm { color: var(--text-muted); font-style: italic; }

.ide-terminal-stream {
  background: rgba(0, 0, 0, 0.9);
  border-top: 1px solid var(--border-glass);
  padding: 12px 18px;
  font-family: 'Fira Code', monospace;
  font-size: 11px;
  color: var(--accent-emerald);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.arch-image-wrap {
  position: relative;
  width: 100%;
  height: 310px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-glass-hover);
  background: #040408;
  display: flex;
  align-items: center;
  justify-content: center;
}

.arch-diagram-svg {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-xl);
}

.arch-image-wrap:hover img {
  transform: scale(1.04);
  filter: brightness(1);
}

.arch-overlay-tag {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(2, 2, 4, 0.85);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 8px 14px;
  font-family: 'Fira Code', monospace;
  font-size: 11px;
  color: #fff;
}

/* ════ CONNECTED IDENTITY SUITE (RESPONSIVE PRO CARDS - NO OVERFLOW) ════ */
.identity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 50px;
  width: 100%;
}

.identity-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 24px;
  text-decoration: none;
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  min-width: 0;
  word-wrap: break-word;
}

.identity-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--border-accent), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.identity-card:hover {
  border-color: var(--border-glass-hover);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  transform: translateY(-4px);
}

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

.id-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  min-width: 0;
}

.discord-avatar-wrap {
  position: relative;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.id-card-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-surface);
  border: 2px solid rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

.id-card-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.discord-status-indicator {
  position: absolute;
  bottom: 0px;
  right: 0px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-emerald);
  border: 2.5px solid #0a0a0f;
  box-shadow: 0 0 8px var(--accent-emerald);
}

.discord-status-indicator.idle { background: var(--accent-amber); box-shadow: 0 0 8px var(--accent-amber); }
.discord-status-indicator.dnd { background: var(--accent-rose); box-shadow: 0 0 8px var(--accent-rose); }
.discord-status-indicator.offline { background: var(--text-muted); box-shadow: none; }

.id-card-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.id-card-name {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.id-card-handle {
  font-family: 'Fira Code', monospace;
  font-size: 11px;
  color: var(--accent-sky);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.id-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Fira Code', monospace;
  font-size: 10px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  margin-bottom: 14px;
  width: fit-content;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.id-card-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.id-card-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'Fira Code', monospace;
  font-size: 11px;
  color: #fff;
  font-weight: 600;
  padding-top: 14px;
  border-top: 1px solid var(--border-glass);
  transition: color var(--transition-fast);
}

.identity-card:hover .id-card-action { color: var(--accent-sky); }

/* ════ EXECUTIVE ABOUT SECTION ════ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 36px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
  transition: border-color 0.3s;
}

.about-card:hover { border-color: var(--border-glass-hover); }

.about-paragraph {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.85;
  margin-bottom: 20px;
}

.about-paragraph strong { color: #fff; font-weight: 600; }

.expertise-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.chip {
  font-family: 'Fira Code', monospace;
  font-size: 12px;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.chip:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* ════ FLAGSHIP PROJECTS & CASE STUDIES ════ */
.projects-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.project-featured-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  --mx: 50%;
  --my: 50%;
}

.project-featured-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle 300px at var(--mx) var(--my), rgba(255, 255, 255, 0.06), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.project-featured-card:hover {
  border-color: var(--border-glass-hover);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.65);
}

.project-featured-card:hover::before { opacity: 1; }

.project-banner-side {
  position: relative;
  background: rgba(4, 4, 8, 0.7);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  border-right: 1px solid var(--border-glass);
}

.project-banner-img {
  width: 100%;
  height: 100%;
  max-height: 340px;
  object-fit: contain;
  object-position: center;
  border-radius: var(--radius-md);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.65);
  border: 1px solid var(--border-glass);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
  filter: brightness(1) contrast(1.02);
}

.project-featured-card:hover .project-banner-img {
  transform: scale(1.03);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85), 0 0 30px rgba(56, 189, 248, 0.15);
  border-color: var(--border-glass-hover);
}

.project-banner-overlay {
  display: none;
}

.project-info-side {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.project-header-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.project-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.project-title { font-size: 26px; font-weight: 800; color: #fff; letter-spacing: -0.5px; }
.project-category { font-family: 'Fira Code', monospace; font-size: 11px; color: var(--accent-sky); margin-top: 2px; }
.project-description { color: var(--text-secondary); font-size: 15px; line-height: 1.8; margin-bottom: 24px; }
.project-tech-stack { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.tech-tag { font-size: 11px; font-family: 'Fira Code', monospace; padding: 4px 10px; border-radius: 4px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); color: var(--text-muted); }
.project-actions { 
  display: flex; 
  gap: 12px; 
  flex-wrap: wrap; 
  position: relative;
  z-index: 10;
}

.case-study-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: 16px;
}

.cs-item { display: flex; flex-direction: column; }
.cs-val { font-family: 'Fira Code', monospace; font-size: 14px; font-weight: 700; color: #fff; }
.cs-lbl { font-size: 10px; color: var(--text-muted); margin-top: 2px; }

/* ════ COMING SOON CARD STYLING ════ */
.classified-banner-box {
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, rgba(56, 189, 248, 0.12), rgba(8, 8, 14, 0.95)), #08080e;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-right: 1px solid var(--border-glass);
}

.classified-banner-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.8;
}

.lock-pulse-ring {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid var(--accent-sky);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-sky);
  margin-bottom: 14px;
  box-shadow: 0 0 30px rgba(56, 189, 248, 0.25);
  animation: pulseGlow 2.5s infinite;
}

@keyframes pulseGlow { 0%, 100% { transform: scale(1); box-shadow: 0 0 30px rgba(56, 189, 248, 0.25); } 50% { transform: scale(1.08); box-shadow: 0 0 50px rgba(56, 189, 248, 0.45); } }

/* ════ MCFORGE CARD & PREVIEW ════ */
.mc-profile-preview-box {
  background: rgba(10, 10, 15, 0.9);
  border: 1px solid var(--border-glass-hover);
  border-radius: var(--radius-xl);
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}

.mc-skin-wrap {
  width: 140px;
  height: 200px;
  position: relative;
  margin-bottom: 16px;
}

.mc-skin-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.8));
  transition: transform 0.4s ease;
}

.mc-skin-wrap:hover img { transform: scale(1.06) translateY(-4px); }

.mc-player-name {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
}

.mc-creator-badge {
  font-family: 'Fira Code', monospace;
  font-size: 11px;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  margin: 8px 0 14px;
  display: inline-block;
  letter-spacing: 0.05em;
}

.mc-quote {
  font-family: 'Fira Code', monospace;
  font-size: 13px;
  color: var(--accent-sky);
  font-style: italic;
  margin-bottom: 20px;
}

.mc-modes-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 280px;
}

.mc-mode-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  text-align: left;
}

/* ════ INTERACTIVE DASHBOARD SHOWCASE ════ */
.dashboard-container {
  background: #08080d;
  border: 1px solid var(--border-glass-hover);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.85);
}

.dashboard-topbar {
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-glass);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dashboard-nav-tabs { display: flex; gap: 8px; overflow-x: auto; }
.dash-tab { font-family: 'Fira Code', monospace; font-size: 12px; padding: 6px 14px; border-radius: var(--radius-sm); background: transparent; border: 1px solid transparent; color: var(--text-muted); cursor: pointer; transition: all var(--transition-fast); white-space: nowrap; }
.dash-tab:hover { color: var(--text-secondary); background: rgba(255, 255, 255, 0.04); }
.dash-tab.active { color: #fff; background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.15); }

.dashboard-content-area { padding: 32px; min-height: 380px; }
.tab-pane { display: none; animation: fadeIn 0.4s ease forwards; }
.tab-pane.active { display: block; }

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

.console-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }
.console-log-box {
  background: rgba(2, 2, 4, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 20px;
  font-family: 'Fira Code', monospace;
  font-size: 12px;
  color: var(--text-secondary);
  height: 280px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.log-line { display: flex; gap: 12px; line-height: 1.5; }
.log-time { color: var(--text-muted); }
.log-tag-ok { color: var(--accent-emerald); }
.log-tag-warn { color: var(--accent-amber); }
.log-tag-alert { color: var(--accent-rose); }

.console-controls { display: flex; flex-direction: column; gap: 16px; }
.control-card { background: rgba(255, 255, 255, 0.02); border: 1px solid rgba(255, 255, 255, 0.06); border-radius: var(--radius-md); padding: 16px; }
.control-title { font-size: 13px; font-weight: 600; color: #fff; margin-bottom: 8px; }
.toggle-switch-row { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--text-secondary); }

.switch { position: relative; display: inline-block; width: 36px; height: 20px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; inset: 0; background-color: rgba(255, 255, 255, 0.12); transition: .3s; border-radius: 20px; }
.slider:before { position: absolute; content: ""; height: 14px; width: 14px; left: 3px; bottom: 3px; background-color: white; transition: .3s; border-radius: 50%; }
input:checked + .slider { background-color: var(--accent-emerald); }
input:checked + .slider:before { transform: translateX(16px); }

/* ════ CATEGORIZED SKILLS ════ */
.skills-category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.skill-category-card { background: var(--bg-card); border: 1px solid var(--border-glass); border-radius: var(--radius-lg); padding: 32px; backdrop-filter: blur(20px); position: relative; overflow: hidden; transition: all var(--transition-smooth); }
.skill-category-card:hover { border-color: var(--border-glass-hover); box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4); }
.skill-icon-wrap { width: 48px; height: 48px; border-radius: var(--radius-md); background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border-glass); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; color: var(--accent-sky); }
.skill-cat-title { font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 10px; }
.skill-cat-desc { font-size: 13px; color: var(--text-muted); line-height: 1.7; margin-bottom: 20px; }
.skill-tags-list { display: flex; flex-wrap: wrap; gap: 8px; }

/* ════ TIMELINE ════ */
.timeline-container { display: flex; flex-direction: column; gap: 32px; position: relative; padding-left: 28px; }
.timeline-container::before { content: ''; position: absolute; left: 6px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(180deg, var(--accent-sky), var(--border-glass), transparent); }
.timeline-item { position: relative; background: var(--bg-card); border: 1px solid var(--border-glass); border-radius: var(--radius-lg); padding: 32px; backdrop-filter: blur(20px); }
.timeline-item::before { content: ''; position: absolute; left: -28px; top: 36px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent-sky); transform: translateX(-50%); }
.timeline-role { font-size: 20px; font-weight: 700; color: #fff; }
.timeline-org { font-family: 'Fira Code', monospace; font-size: 13px; color: var(--accent-sky); margin-top: 4px; margin-bottom: 16px; }
.timeline-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.8; }

/* ════ CAROUSEL ════ */
.carousel-outer { overflow: hidden; position: relative; padding: 12px 0; }
.carousel-outer::before, .carousel-outer::after { content: ''; position: absolute; top: 0; bottom: 0; width: 100px; pointer-events: none; z-index: 10; }
.carousel-outer::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.carousel-outer::after { right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }
.carousel-track { display: flex; gap: 20px; cursor: grab; will-change: transform; }
.carousel-track:active { cursor: grabbing; }

.community-card { flex-shrink: 0; width: 320px; background: var(--bg-card); border: 1px solid var(--border-glass); border-radius: var(--radius-lg); padding: 24px; backdrop-filter: blur(16px); }
.comm-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.comm-icon { width: 46px; height: 46px; border-radius: var(--radius-md); overflow: hidden; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border-glass); flex-shrink: 0; }
.comm-icon img { width: 100%; height: 100%; object-fit: cover; }
.comm-title { font-size: 15px; font-weight: 700; color: #fff; }
.comm-role { font-size: 11px; color: var(--accent-sky); font-family: 'Fira Code', monospace; margin-top: 2px; }
.comm-desc { font-size: 13px; color: var(--text-muted); line-height: 1.7; margin-bottom: 18px; }
.comm-footer { display: flex; align-items: center; justify-content: space-between; }

/* ════ FAQ ════ */
.faq-list { display: flex; flex-direction: column; gap: 16px; max-width: 860px; }
.faq-item { background: var(--bg-card); border: 1px solid var(--border-glass); border-radius: var(--radius-lg); overflow: hidden; backdrop-filter: blur(20px); }
.faq-item.active { border-color: var(--border-glass-hover); }
.faq-question { padding: 24px 28px; display: flex; align-items: center; justify-content: space-between; font-size: 16px; font-weight: 600; color: #fff; cursor: pointer; user-select: none; }
.faq-icon { width: 24px; height: 24px; border-radius: 50%; background: rgba(255, 255, 255, 0.05); display: flex; align-items: center; justify-content: center; transition: transform 0.3s ease; }
.faq-item.active .faq-icon { transform: rotate(180deg); background: rgba(255, 255, 255, 0.12); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.4s ease; padding: 0 28px; color: var(--text-secondary); font-size: 14px; line-height: 1.8; }
.faq-item.active .faq-answer { max-height: 300px; padding-bottom: 24px; }

/* ════ FORM ════ */
.contact-form-wrap { max-width: 680px; background: var(--bg-card); border: 1px solid var(--border-glass); border-radius: var(--radius-xl); padding: 40px; backdrop-filter: blur(24px); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 24px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group.full-width { grid-column: 1 / -1; }
.form-group label { font-family: 'Fira Code', monospace; font-size: 12px; color: var(--text-muted); }

.form-input, .form-textarea {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  outline: none;
  transition: all var(--transition-fast);
}

.form-input:focus, .form-textarea:focus { border-color: rgba(255, 255, 255, 0.3); box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.04); }
.form-textarea { height: 140px; resize: none; }
.form-status-msg { display: none; font-size: 14px; color: var(--accent-emerald); margin-top: 16px; padding: 12px 16px; background: rgba(34, 197, 94, 0.08); border: 1px solid rgba(34, 197, 94, 0.2); border-radius: var(--radius-md); }

/* ════ MODAL ════ */
.modal-overlay { position: fixed; inset: 0; z-index: 8000; display: flex; align-items: center; justify-content: center; padding: 24px; opacity: 0; pointer-events: none; transition: opacity 0.35s ease; }
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(2, 2, 4, 0.85); backdrop-filter: blur(16px); }
.modal-box { position: relative; width: min(640px, 100%); background: #0a0a0f; border: 1px solid var(--border-glass-hover); border-radius: var(--radius-xl); box-shadow: 0 40px 100px rgba(0, 0, 0, 0.9); overflow: hidden; max-height: 88vh; display: flex; flex-direction: column; transform: translateY(28px) scale(0.95); transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); z-index: 1; }
.modal-overlay.open .modal-box { transform: none; }
.modal-close-btn { position: absolute; top: 20px; right: 20px; width: 36px; height: 36px; border-radius: var(--radius-md); background: rgba(255, 255, 255, 0.06); border: none; color: var(--text-secondary); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all var(--transition-fast); z-index: 5; }
.modal-close-btn:hover { background: rgba(255, 255, 255, 0.15); color: #fff; }
.modal-inner-scroll { overflow-y: auto; padding: 32px; }

/* ════ AI WIDGET ════ */
#ai-widget { position: fixed; bottom: 30px; right: 30px; z-index: 6000; display: flex; flex-direction: column; align-items: flex-end; gap: 16px; }
.ai-toggle-btn { width: 56px; height: 56px; border-radius: var(--radius-lg); background: #ffffff; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6); transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); position: relative; }
.ai-toggle-btn:hover { transform: scale(1.08) translateY(-2px); }
.ai-toggle-btn svg { transition: opacity 0.2s, transform 0.2s; }
.ai-icon-open { stroke: #000; }
.ai-icon-close { position: absolute; stroke: #000; opacity: 0; transform: rotate(90deg); }
#ai-widget.open .ai-icon-open { opacity: 0; transform: rotate(-90deg); }
#ai-widget.open .ai-icon-close { opacity: 1; transform: rotate(0); }
.ai-notif-dot { position: absolute; top: -3px; right: -3px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent-emerald); border: 2.5px solid #020204; animation: aiPulse 2s ease infinite; }
@keyframes aiPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6); } 50% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); } }
#ai-widget.open .ai-notif-dot { display: none; }

.ai-chat-panel { width: 360px; max-width: calc(100vw - 36px); background: #0a0a0f; border: 1px solid var(--border-glass-hover); border-radius: var(--radius-xl); box-shadow: 0 40px 100px rgba(0, 0, 0, 0.9); display: flex; flex-direction: column; overflow: hidden; transform-origin: bottom right; transform: scale(0.88) translateY(20px); opacity: 0; pointer-events: none; transition: transform 0.38s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.26s ease; max-height: 520px; }
#ai-widget.open .ai-chat-panel { transform: scale(1) translateY(0); opacity: 1; pointer-events: all; }
.ai-panel-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border-glass); }
.ai-avatar-box { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05)); border: 1px solid rgba(255, 255, 255, 0.15); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; color: #fff; }
.ai-messages-area { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.ai-msg { display: flex; }
.ai-msg-bot { justify-content: flex-start; }
.ai-msg-user { justify-content: flex-end; }
.ai-msg-bubble { font-size: 13px; line-height: 1.65; padding: 10px 14px; border-radius: var(--radius-md); max-width: 88%; }
.ai-msg-bot .ai-msg-bubble { background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border-glass); color: #fff; border-bottom-left-radius: 4px; }
.ai-msg-user .ai-msg-bubble { background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.2); color: #fff; border-bottom-right-radius: 4px; }
.ai-suggestions { display: flex; gap: 6px; padding: 0 16px 12px; flex-wrap: wrap; }
.ai-sug-chip { font-size: 11px; padding: 5px 12px; border-radius: var(--radius-full); background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border-glass); color: var(--text-muted); cursor: pointer; transition: all var(--transition-fast); }
.ai-sug-chip:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.ai-input-row { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--border-glass); }
.ai-input { flex: 1; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border-glass); border-radius: var(--radius-md); padding: 10px 14px; color: #fff; font-family: 'Outfit', sans-serif; font-size: 13px; outline: none; }
.ai-send-btn { width: 38px; height: 38px; border-radius: var(--radius-md); background: rgba(255, 255, 255, 0.1); border: 1px solid var(--border-glass); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }

footer {
  text-align: center;
  padding: 48px 24px;
  border-top: 1px solid var(--border-glass);
  margin-top: 60px;
  background: rgba(2, 2, 4, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-width: 600px;
  margin: 0 auto;
}

.footer-heart {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
}

.heart-icon {
  color: var(--accent-rose);
  font-weight: 700;
  display: inline-block;
  margin: 0 3px;
  animation: heartPulse 1.8s infinite ease-in-out;
}

@keyframes heartPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.22); }
}

.author-name {
  color: #ffffff;
  font-weight: 700;
}

.footer-copy {
  font-family: 'Fira Code', monospace;
  font-size: 12.5px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-top: 2px;
}

/* ════ RESPONSIVE DESIGN & MOBILE OPTIMIZATIONS ════ */
@media (max-width: 1200px) {
  .identity-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 991px) {
  /* HIDE HERO VISUAL CARD ON MOBILE & TABLET UI AS REQUESTED */
  .hero-visual-col { 
    display: none !important; 
  }
  
  #hero { 
    grid-template-columns: 1fr; 
    gap: 0;
    padding-top: 110px;
    padding-bottom: 60px;
    min-height: auto;
  }

  .hero-text {
    max-width: 100%;
    text-align: left;
  }

  .about-grid { grid-template-columns: 1fr; }
  .project-featured-card { grid-template-columns: 1fr; }
  .project-banner-side { 
    height: 230px; 
    min-height: auto;
    width: 100%;
    padding: 16px;
    border-right: none;
    border-bottom: 1px solid var(--border-glass);
  }
  .project-banner-img {
    width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
  }
  .project-banner-overlay { 
    display: none; 
  }
  .form-grid { grid-template-columns: 1fr; }
  .console-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .sidebar-nav { display: none; }
  .mobile-nav { display: flex; }
  .main-wrapper { margin-left: 0; }
  section { padding: 60px 20px; }
  body { padding-bottom: 76px; }
  #ai-widget { bottom: 86px; right: 16px; }
  .identity-grid { grid-template-columns: 1fr; }
  
  .hero-top-meta { gap: 8px; }
  .hero-name { font-size: clamp(40px, 9vw, 56px); margin-bottom: 16px; }
  .hero-headline { font-size: 20px; }
  .hero-bio { font-size: 14.5px; margin-bottom: 28px; }
  
  .hero-stats-row { 
    gap: 16px; 
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding-top: 16px;
    margin-bottom: 28px;
  }
  
  .stat-number { font-size: 24px; }
  .stat-label { font-size: 10px; }

  .hero-actions-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  
  .hero-actions-row .btn {
    width: 100%;
    justify-content: center;
  }

  .social-icon-group {
    padding-left: 0;
    border-left: none;
    justify-content: center;
    padding-top: 8px;
  }
}

@media (max-width: 480px) {
  section { padding: 50px 16px; }
  .hero-name { font-size: 36px; letter-spacing: -1.5px; }
  .section-title { font-size: 28px; letter-spacing: -1px; }
  .hero-headline { font-size: 18px; }
  .hero-stats-row { grid-template-columns: 1fr 1fr; gap: 14px; }
  .project-banner-side { height: 180px; padding: 12px; }
  .project-info-side { padding: 24px 18px; }
  .contact-form-wrap { padding: 24px 18px; }
  footer { padding: 36px 16px; }
}
