/* ==========================================================================
   SHOAIB HASSAN // PROFESSIONAL PORTFOLIO
   Design Theme: Modern Tech & Creative Elegance (General & Appropriate)
   Typography: Space Grotesk, Inter, JetBrains Mono
   ========================================================================== */

/* --- ROOT VARIABLES & THEMES --- */
:root {
  /* Default: Modern Sapphire Cyan */
  --accent-primary: #38bdf8;
  --accent-secondary: #6366f1;
  --accent-glow: rgba(56, 189, 248, 0.35);
  --accent-subtle: rgba(56, 189, 248, 0.1);
  --accent-border: rgba(56, 189, 248, 0.22);
  --accent-hover: #0ea5e9;

  /* Deep Backgrounds (Approachable Dark Slate) */
  --bg-primary: #0b0f17;
  --bg-secondary: #0f172a;
  --bg-tertiary: #1e293b;
  --bg-overlay: rgba(11, 15, 23, 0.85);

  /* Glassmorphism Surfaces */
  --glass-surface: rgba(17, 24, 39, 0.7);
  --glass-surface-hover: rgba(24, 33, 52, 0.85);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-accent: rgba(56, 189, 248, 0.35);

  /* Text Colors */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --text-contrast: #030712;

  /* Status Colors */
  --status-green: #10b981;
  --status-yellow: #f59e0b;
  --status-red: #ef4444;
  --status-blue: #38bdf8;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Space Grotesk', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Layout & Geometry */
  --container-max: 1200px;
  --header-height: 76px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Theme: Emerald Growth */
body[data-theme="emerald"] {
  --accent-primary: #10b981;
  --accent-secondary: #06b6d4;
  --accent-glow: rgba(16, 185, 129, 0.35);
  --accent-subtle: rgba(16, 185, 129, 0.1);
  --accent-border: rgba(16, 185, 129, 0.25);
  --accent-hover: #059669;
  --glass-border-accent: rgba(16, 185, 129, 0.35);
}

/* Theme: Royal Violet */
body[data-theme="violet"] {
  --accent-primary: #a855f7;
  --accent-secondary: #ec4899;
  --accent-glow: rgba(168, 85, 247, 0.35);
  --accent-subtle: rgba(168, 85, 247, 0.1);
  --accent-border: rgba(168, 85, 247, 0.25);
  --accent-hover: #9333ea;
  --glass-border-accent: rgba(168, 85, 247, 0.35);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
  color-scheme: dark;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 9px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  border: 2px solid var(--bg-primary);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-primary);
}

/* Selection */
::selection {
  background: var(--accent-primary);
  color: var(--text-contrast);
}

/* --- CANVAS & AMBIENT BACKDROP --- */
#cyberCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}

.ambient-glow {
  position: fixed;
  width: 650px;
  height: 650px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(140px);
  opacity: 0.14;
  transition: background 0.5s ease;
}

.glow-top {
  top: -150px;
  right: -100px;
  background: var(--accent-primary);
}

.glow-bottom {
  bottom: 10%;
  left: -150px;
  background: var(--accent-secondary);
}

/* --- TYPOGRAPHY & GENERAL UTILITIES --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text-main);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
}

p {
  color: var(--text-muted);
}

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

.gradient-text {
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Glass Panels */
.glass-panel {
  background: var(--glass-surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  position: relative;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.glass-panel:hover {
  border-color: var(--glass-border-accent);
  box-shadow: 0 12px 35px -10px var(--accent-glow);
}

/* Corner Accents on Cards */
.card-bracket {
  position: absolute;
  width: 10px;
  height: 10px;
  border-color: var(--accent-primary);
  opacity: 0.5;
  pointer-events: none;
  transition: opacity var(--transition-fast), width var(--transition-fast), height var(--transition-fast);
}
.card-bracket.tl { top: -1px; left: -1px; border-top: 2px solid; border-left: 2px solid; border-top-left-radius: 4px; }
.card-bracket.tr { top: -1px; right: -1px; border-top: 2px solid; border-right: 2px solid; border-top-right-radius: 4px; }
.card-bracket.bl { bottom: -1px; left: -1px; border-bottom: 2px solid; border-left: 2px solid; border-bottom-left-radius: 4px; }
.card-bracket.br { bottom: -1px; right: -1px; border-bottom: 2px solid; border-right: 2px solid; border-bottom-right-radius: 4px; }

.glass-panel:hover .card-bracket {
  opacity: 0.9;
  width: 14px;
  height: 14px;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-normal);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent-primary);
  color: var(--text-contrast);
  box-shadow: 0 4px 18px -4px var(--accent-glow);
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px -2px var(--accent-glow);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border-color: var(--glass-border);
}
.btn-secondary:hover {
  background: var(--accent-subtle);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: translateY(-2px);
}

.btn-cyber-sm {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: var(--accent-subtle);
  color: var(--accent-primary);
  border: 1px solid var(--accent-border);
}
.btn-cyber-sm:hover {
  background: var(--accent-primary);
  color: var(--text-contrast);
  box-shadow: 0 0 16px var(--accent-glow);
  transform: translateY(-1px);
}

.btn-secondary-sm {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid var(--glass-border);
}
.btn-secondary-sm:hover {
  color: var(--text-main);
  border-color: var(--text-muted);
  background: rgba(255, 255, 255, 0.1);
}

/* Button Scanning Effect */
.btn-scan {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transition: left 0.6s ease;
  pointer-events: none;
}
.btn:hover .btn-scan {
  left: 100%;
}

/* --- NAVIGATION BAR --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 100;
  background: rgba(11, 15, 23, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  transition: all var(--transition-normal);
}

.navbar.scrolled {
  background: rgba(11, 15, 23, 0.96);
  border-bottom-color: var(--accent-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Brand Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 3px;
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
}

.logo-bracket {
  color: var(--accent-primary);
  font-weight: 400;
}
.logo-dot {
  color: var(--accent-primary);
}
.logo-badge {
  font-size: 0.65rem;
  background: var(--accent-subtle);
  color: var(--accent-primary);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--accent-border);
  margin-left: 2px;
}

/* Nav Menu Links */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  position: relative;
  padding: 6px 0;
  transition: color var(--transition-fast);
}

.nav-num {
  color: var(--accent-primary);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  margin-right: 4px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-main);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-primary);
  transition: width var(--transition-normal);
  box-shadow: 0 0 8px var(--accent-glow);
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Theme Switcher Dots */
.theme-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 9px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
}

.theme-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.theme-dot.cyan { background: #38bdf8; }
.theme-dot.emerald { background: #10b981; }
.theme-dot.violet { background: #a855f7; }

.theme-dot.active,
.theme-dot:hover {
  transform: scale(1.25);
  border-color: #fff;
  box-shadow: 0 0 8px currentColor;
}

/* Sound Toggle */
.sound-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--glass-border);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.sound-toggle:hover {
  color: var(--accent-primary);
  border-color: var(--accent-border);
}
.sound-toggle.active {
  color: var(--accent-primary);
  border-color: var(--accent-primary);
  background: var(--accent-subtle);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}
.hamburger .bar {
  width: 100%;
  height: 2px;
  background: var(--text-main);
  transition: all var(--transition-normal);
}

/* --- MOBILE DRAWER --- */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100vh;
  background: var(--bg-secondary);
  border-left: 1px solid var(--glass-border);
  z-index: 1000;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: right var(--transition-smooth);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.6);
}

.mobile-drawer.open {
  right: 0;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--glass-border);
}

.system-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-primary);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-primary);
  box-shadow: 0 0 10px var(--accent-primary);
  animation: pulseGlow 1.8s infinite;
}

.close-drawer {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
}

.drawer-links {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 30px 0;
}

.drawer-link {
  font-size: 0.95rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
}
.drawer-link:hover {
  color: var(--accent-primary);
}

.drawer-socials {
  display: flex;
  justify-content: space-around;
  padding-top: 20px;
  border-top: 1px solid var(--glass-border);
  font-size: 0.85rem;
  color: var(--accent-primary);
}

/* --- SECTION GENERAL --- */
main {
  position: relative;
  z-index: 1;
}

.section {
  padding: 100px 0;
  position: relative;
}

.section-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.section-header {
  margin-bottom: 52px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-primary);
  margin-bottom: 12px;
  letter-spacing: 0.06em;
}

.tag-bracket {
  opacity: 0.6;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 14px;
}

.section-subtitle {
  font-size: 1.05rem;
  max-width: 680px;
  color: var(--text-muted);
  line-height: 1.6;
}

.section-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-primary), transparent);
  margin-top: 18px;
}

/* --- HERO SECTION --- */
.hero-section {
  min-height: 100vh;
  padding-top: calc(var(--header-height) + 40px);
  padding-bottom: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.hero-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  align-items: center;
  gap: 60px;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  background: var(--accent-subtle);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-full);
  margin-bottom: 24px;
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-primary);
  box-shadow: 0 0 10px var(--accent-primary);
  animation: pulseGlow 1.8s infinite;
}

.badge-text {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-primary);
  letter-spacing: 0.04em;
}

.terminal-prefix {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.hero-title {
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 16px;
}

.typewriter-container {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  color: var(--accent-primary);
  margin-bottom: 24px;
  min-height: 38px;
}

.typewriter-prompt {
  opacity: 0.7;
}

.typewriter-cursor {
  display: inline-block;
  animation: blinkCursor 0.9s infinite;
  color: var(--accent-primary);
  font-weight: 300;
}

.hero-bio {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 580px;
  margin-bottom: 30px;
}

.hero-bio strong {
  color: var(--text-main);
}

.hero-meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 32px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.825rem;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.03);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 36px;
}

.social-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.social-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

.social-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--glass-surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  font-size: 0.825rem;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.social-chip:hover {
  color: var(--accent-primary);
  border-color: var(--accent-primary);
  background: var(--accent-subtle);
  transform: translateY(-2px);
}

/* --- HERO VISUAL CARD --- */
.hero-visual {
  display: flex;
  justify-content: center;
  perspective: 1200px;
}

.cyber-card-tilt {
  width: 100%;
  max-width: 420px;
  background: rgba(17, 24, 39, 0.85);
  border: 1px solid var(--glass-border-accent);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.8), 0 0 30px -10px var(--accent-glow);
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.1s ease-out, box-shadow var(--transition-normal);
}

.card-hud-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--glass-border);
}

.hud-code {
  color: var(--text-dim);
}

.hud-badge-online {
  color: var(--accent-primary);
  font-weight: 600;
}

.avatar-frame {
  width: 220px;
  height: 220px;
  max-width: 100%;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  background: var(--bg-tertiary);
  border: 3px solid var(--accent-primary);
  box-shadow: 0 0 25px -4px var(--accent-glow), 0 0 0 4px rgba(56, 189, 248, 0.15);
  margin: 0 auto 20px auto;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.avatar-frame.shape-circle {
  border-radius: 50%;
  width: 220px;
  height: 220px;
  border: 3px solid var(--accent-primary);
  box-shadow: 0 0 25px -4px var(--accent-glow), 0 0 0 4px rgba(56, 189, 248, 0.15);
  clip-path: none;
}

.avatar-frame.shape-squircle {
  border-radius: 32px;
  width: 220px;
  height: 220px;
  border: 2px solid var(--accent-border);
  box-shadow: 0 12px 30px -8px var(--accent-glow);
  clip-path: none;
}

.avatar-frame.shape-hexagon {
  border-radius: 0;
  width: 230px;
  height: 240px;
  clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
  border: none;
  box-shadow: none;
  filter: drop-shadow(0 0 12px var(--accent-glow));
}

.avatar-frame.shape-natural {
  border-radius: var(--radius-md);
  width: 100%;
  height: auto;
  max-height: 320px;
  aspect-ratio: auto;
  border: 2px solid var(--accent-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  clip-path: none;
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  transition: filter var(--transition-normal), transform var(--transition-smooth);
}

.avatar-frame.shape-natural .avatar-img {
  object-fit: contain;
  background: rgba(11, 15, 23, 0.9);
}

.avatar-frame:hover .avatar-img {
  transform: scale(1.04);
}

.scan-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(56, 189, 248, 0.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(56, 189, 248, 0.03) 1px, transparent 1px);
  background-size: 16px 16px;
  pointer-events: none;
}

.scan-beam {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
  box-shadow: 0 0 15px var(--accent-primary);
  animation: scanLine 4s ease-in-out infinite;
  pointer-events: none;
}

.card-profile-info {
  text-align: center;
}

.profile-name {
  font-size: 1.4rem;
  margin-bottom: 4px;
}

.profile-role {
  font-size: 0.825rem;
  color: var(--accent-primary);
  margin-bottom: 16px;
}



.avatar-shape-selector {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 14px;
}

.shape-selector-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

.shape-btn-group {
  display: inline-flex;
  background: rgba(11, 15, 23, 0.7);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 2px;
  gap: 2px;
}

.shape-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-family: var(--font-mono);
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.shape-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.06);
}

.shape-btn.active {
  background: var(--accent-subtle);
  color: var(--accent-primary);
  border-color: var(--accent-border);
  box-shadow: 0 0 10px var(--accent-glow);
}

.avatar-frame.drag-over {
  border-color: var(--accent-primary);
  box-shadow: 0 0 25px var(--accent-glow);
  outline: 2px dashed var(--accent-primary);
}

.telemetry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}

.telemetry-box {
  background: rgba(11, 15, 23, 0.6);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 10px 4px;
}

.telemetry-val {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
}

.telemetry-label {
  display: block;
  font-size: 0.625rem;
  color: var(--text-dim);
  margin-top: 2px;
}

.card-footer-metrics {
  background: rgba(11, 15, 23, 0.4);
  padding: 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
}

.metric-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.metric-bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.metric-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  box-shadow: 0 0 8px var(--accent-primary);
}

/* Scroll Down Indicator */
.scroll-down-indicator {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  transition: color var(--transition-fast);
}
.scroll-down-indicator:hover {
  color: var(--accent-primary);
}

.mouse-icon {
  width: 20px;
  height: 32px;
  border: 2px solid var(--text-dim);
  border-radius: 12px;
  position: relative;
}

.mouse-wheel {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 6px;
  background: var(--accent-primary);
  border-radius: 2px;
  animation: mouseScroll 2s infinite;
}

/* --- ABOUT SECTION --- */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: start;
}

.about-card {
  padding: 40px;
}

.card-badge-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--glass-border);
}

.hud-chip {
  background: var(--accent-subtle);
  color: var(--accent-primary);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid var(--accent-border);
  font-weight: 600;
}

.hud-time {
  color: var(--text-dim);
}

.about-card-heading {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--text-main);
}

.about-p {
  font-size: 1.02rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

.about-p strong {
  color: var(--text-main);
  font-weight: 600;
}

.specialty-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px dashed var(--glass-border);
}

.tag-pill {
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.04);
  color: var(--accent-primary);
  border: 1px solid var(--accent-border);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}
.tag-pill:hover {
  background: var(--accent-subtle);
  transform: translateY(-2px);
  box-shadow: 0 0 10px var(--accent-glow);
}

/* Highlights Column */
.about-highlights-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.highlight-card {
  padding: 24px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.highlight-icon {
  font-size: 1.6rem;
  background: var(--accent-subtle);
  border: 1px solid var(--accent-border);
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.highlight-body h4 {
  font-size: 1.1rem;
  margin-bottom: 6px;
  color: var(--text-main);
}

.highlight-body p {
  font-size: 0.9rem;
  line-height: 1.6;
}

/* --- BRAND SECTION: SAVOR OF BALTISTAN --- */
.brand-spotlight-card {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  padding: 36px;
  align-items: center;
  border: 1px solid var(--glass-border-accent);
}

.brand-media-col {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--glass-border);
}

.brand-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-smooth);
}

.brand-media-col:hover .brand-img {
  transform: scale(1.04);
}

.brand-badge-overlay {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(11, 15, 23, 0.88);
  backdrop-filter: blur(8px);
  color: var(--accent-primary);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 4px;
  border: 1px solid var(--accent-border);
}

.brand-header-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.brand-tag {
  color: var(--accent-primary);
}

.brand-origin {
  color: var(--text-dim);
}

.brand-title {
  font-size: 1.85rem;
  margin-bottom: 16px;
}

.brand-desc {
  font-size: 0.98rem;
  line-height: 1.7;
  margin-bottom: 16px;
}
.brand-desc strong {
  color: var(--text-main);
}

.brand-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 24px 0 32px 0;
  padding: 20px 0;
  border-top: 1px dashed var(--glass-border);
  border-bottom: 1px dashed var(--glass-border);
}

.bf-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.bf-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.bf-item strong {
  display: block;
  font-size: 0.92rem;
  color: var(--text-main);
  margin-bottom: 3px;
}

.bf-item p {
  font-size: 0.82rem;
  line-height: 1.5;
}

.brand-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* --- PROJECTS SECTION --- */
.project-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.filter-btn {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  background: var(--glass-surface);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--accent-subtle);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  box-shadow: 0 0 15px -4px var(--accent-glow);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 32px;
}

.project-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  transition: all var(--transition-normal);
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--glass-border-accent);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7), 0 0 25px -8px var(--accent-glow);
}

.project-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--bg-tertiary);
  overflow: hidden;
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.project-card:hover .project-img {
  transform: scale(1.05);
}

.media-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 15, 23, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.project-card:hover .media-overlay {
  opacity: 1;
}

.btn-quick-view {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 10px 18px;
  background: var(--accent-primary);
  color: var(--text-contrast);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 0 20px var(--accent-glow);
}

.project-category-chip {
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(11, 15, 23, 0.85);
  color: var(--accent-primary);
  border: 1px solid var(--accent-border);
  padding: 4px 8px;
  border-radius: 4px;
  backdrop-filter: blur(8px);
}

.project-content {
  padding: 26px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.project-repo-type {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.repo-icon-link {
  color: var(--text-muted);
  transition: color var(--transition-fast), transform var(--transition-fast);
}
.repo-icon-link:hover {
  color: var(--accent-primary);
  transform: scale(1.15);
}

.project-title {
  font-size: 1.35rem;
  margin-bottom: 12px;
  color: var(--text-main);
  transition: color var(--transition-fast);
}

.project-card:hover .project-title {
  color: var(--accent-primary);
}

.project-desc {
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.ptag {
  font-size: 0.72rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid var(--glass-border);
}

.project-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid var(--glass-border);
}

.ext-icon {
  font-size: 1rem;
  line-height: 0.8;
}

/* --- TIMELINE SECTION --- */
.timeline-wrapper {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 0;
}

.timeline-center-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--accent-primary) 15%, var(--accent-secondary) 85%, transparent);
  transform: translateX(-50%);
  opacity: 0.35;
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 20px 40px;
}

.timeline-item.left {
  left: 0;
  text-align: right;
}

.timeline-item.right {
  left: 50%;
  text-align: left;
}

.timeline-node {
  position: absolute;
  top: 30px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 2px solid var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 0 15px var(--accent-glow);
}

.timeline-item.left .timeline-node {
  right: -18px;
}

.timeline-item.right .timeline-node {
  left: -18px;
}

.node-icon {
  font-size: 1rem;
}

.timeline-card {
  padding: 28px;
  text-align: left;
}

.timeline-date {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-primary);
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.timeline-title {
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.timeline-org {
  font-size: 0.9rem;
  color: var(--text-dim);
  font-weight: 500;
  margin-bottom: 16px;
}

.timeline-body {
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 14px;
}

.timeline-list {
  padding-left: 18px;
  margin-bottom: 16px;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.timeline-list li {
  margin-bottom: 8px;
  line-height: 1.5;
}

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

.tchip {
  font-size: 0.72rem;
  background: var(--accent-subtle);
  color: var(--accent-primary);
  border: 1px solid var(--accent-border);
  padding: 3px 8px;
  border-radius: 4px;
}

/* --- SKILLS MATRIX SECTION --- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.skill-category-card {
  padding: 28px;
  display: flex;
  flex-direction: column;
}

.category-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--glass-border);
}

.cat-icon {
  font-size: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--accent-subtle);
  border: 1px solid var(--accent-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.category-header h3 {
  font-size: 1.15rem;
  margin-bottom: 2px;
}

.cat-subtitle {
  font-size: 0.72rem;
  color: var(--text-dim);
}

.skill-items {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.skill-bar-item {
  width: 100%;
}

.sb-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-main);
  margin-bottom: 6px;
}

.sb-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.sb-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  border-radius: var(--radius-full);
  box-shadow: 0 0 8px var(--accent-primary);
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.tool-badges-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.tool-badge {
  background: rgba(11, 15, 23, 0.5);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 10px;
  transition: all var(--transition-fast);
}

.tool-badge:hover {
  background: var(--accent-subtle);
  border-color: var(--accent-primary);
  transform: translateY(-2px);
}

.tb-name {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
}

.tb-desc {
  display: block;
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-top: 2px;
}

/* --- TERMINAL WIDGET SECTION --- */
.terminal-wrapper {
  max-width: 900px;
  margin: 0 auto;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--glass-border-accent);
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.8), 0 0 30px -10px var(--accent-glow);
}

.terminal-bar {
  background: rgba(11, 15, 23, 0.95);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--glass-border);
}

.terminal-buttons {
  display: flex;
  gap: 8px;
}

.t-btn {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.t-close { background: #ef4444; }
.t-min { background: #f59e0b; }
.t-max { background: #10b981; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.terminal-hud-status {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent-primary);
  background: var(--accent-subtle);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--accent-border);
}

.terminal-body {
  background: rgba(8, 12, 18, 0.95);
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  min-height: 380px;
  max-height: 480px;
  overflow-y: auto;
  color: var(--text-main);
  line-height: 1.6;
}

.ascii-art {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  line-height: 1.2;
  color: var(--accent-primary);
  text-shadow: 0 0 10px var(--accent-glow);
  margin-bottom: 14px;
  overflow-x: auto;
}

.t-welcome {
  color: var(--text-main);
  font-weight: 600;
  margin-bottom: 4px;
}

.t-welcome-sub {
  color: var(--text-dim);
  margin-bottom: 18px;
}

.t-highlight {
  color: var(--accent-primary);
  font-weight: 700;
}

.t-cmd-line {
  margin: 8px 0 4px 0;
  color: var(--accent-secondary);
  display: flex;
  gap: 8px;
}

.t-response {
  color: var(--text-muted);
  margin-bottom: 12px;
  padding-left: 14px;
  border-left: 2px solid var(--glass-border);
}

.terminal-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.t-prompt {
  color: var(--accent-primary);
  font-weight: 700;
  white-space: nowrap;
}

.t-input {
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-main);
  flex-grow: 1;
}

.terminal-shortcuts {
  background: rgba(11, 15, 23, 0.95);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid var(--glass-border);
}

.ts-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-dim);
  margin-right: 4px;
}

.ts-btn {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--accent-primary);
  border: 1px solid var(--accent-border);
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.ts-btn:hover {
  background: var(--accent-subtle);
  border-color: var(--accent-primary);
  transform: translateY(-1px);
}

/* --- CONTACT SECTION --- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 36px;
  align-items: start;
}

.contact-info-card {
  padding: 36px;
}

.info-card-title {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.info-card-desc {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 28px;
}

.channel-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
}

.channel-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: rgba(11, 15, 23, 0.5);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.channel-item:not(.static):hover {
  background: var(--accent-subtle);
  border-color: var(--accent-primary);
  transform: translateX(4px);
}

.ci-icon {
  font-size: 1.3rem;
}

.ci-details {
  flex-grow: 1;
}

.ci-name {
  display: block;
  font-size: 0.75rem;
  color: var(--text-dim);
}

.ci-val {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-main);
}

.ci-arrow {
  color: var(--accent-primary);
  font-size: 1.1rem;
}

.quick-copy-box {
  background: rgba(11, 15, 23, 0.8);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.qc-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-primary);
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}

.qc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.qc-email {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-main);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-copy {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 14px;
  background: var(--accent-primary);
  color: var(--text-contrast);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}
.btn-copy:hover {
  background: var(--accent-hover);
  transform: scale(1.05);
}

/* Contact Form */
.contact-form {
  padding: 36px;
}

.form-hud-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-primary);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--glass-border);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}

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

.input-wrapper {
  position: relative;
}

.form-input {
  width: 100%;
  background: rgba(11, 15, 23, 0.7);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: var(--text-main);
  outline: none;
  transition: all var(--transition-fast);
}

.form-input:focus {
  border-color: var(--accent-primary);
  background: rgba(11, 15, 23, 0.95);
  box-shadow: 0 0 16px -2px var(--accent-glow);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.btn-submit {
  width: 100%;
  padding: 14px;
  font-size: 0.92rem;
}

.form-status {
  margin-top: 16px;
  font-size: 0.85rem;
  font-weight: 500;
  text-align: center;
  min-height: 24px;
}

.form-status.success {
  color: var(--status-green);
}

.form-status.error {
  color: var(--status-red);
}

/* --- MODAL DIALOG --- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 12, 18, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  width: 100%;
  max-width: 760px;
  max-height: 85vh;
  overflow-y: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border-accent);
  background: rgba(15, 23, 42, 0.96);
  transform: scale(0.95);
  transition: transform var(--transition-normal);
  padding: 0;
}

.modal-backdrop.open .modal-card {
  transform: scale(1);
}

.modal-hud-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: rgba(11, 15, 23, 0.85);
  border-bottom: 1px solid var(--glass-border);
}

.modal-hud-title {
  font-size: 0.82rem;
  color: var(--accent-primary);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.modal-close-btn {
  background: transparent;
  border: none;
  font-size: 1.8rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  transition: color var(--transition-fast);
}
.modal-close-btn:hover {
  color: var(--accent-primary);
}

.modal-content-area {
  padding: 32px 28px;
}

.modal-media-banner {
  width: 100%;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 24px;
  border: 1px solid var(--glass-border);
}
.modal-media-banner img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  display: block;
}

.modal-title {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.modal-section-h {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-primary);
  margin: 20px 0 8px 0;
  letter-spacing: 0.04em;
}

.modal-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.modal-code-snippet {
  background: #080c14;
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #38bdf8;
  overflow-x: auto;
  margin-bottom: 20px;
}

.modal-actions {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--glass-border);
}

/* --- TOAST NOTIFICATIONS --- */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--bg-secondary);
  border: 1px solid var(--accent-primary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px var(--accent-glow);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.825rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideToast 0.3s ease;
}

/* --- FOOTER --- */
.footer {
  background: #070a10;
  border-top: 1px solid var(--glass-border);
  padding: 60px 0 30px 0;
  position: relative;
  z-index: 2;
}

.footer-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--glass-border);
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-top: 6px;
}

.footer-social-links {
  display: flex;
  gap: 16px;
}

.footer-icon-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.footer-icon-link:hover {
  background: var(--accent-subtle);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: translateY(-2px);
  box-shadow: 0 0 15px var(--accent-glow);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 24px;
  font-size: 0.78rem;
  color: var(--text-dim);
}

.footer-metrics {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-primary);
  font-size: 0.75rem;
  font-weight: 500;
}

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

/* --- KEYFRAME ANIMATIONS --- */
@keyframes pulseGlow {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
}

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

@keyframes scanLine {
  0% { top: 0%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

@keyframes mouseScroll {
  0% { transform: translate(-50%, 0); opacity: 1; }
  100% { transform: translate(-50%, 10px); opacity: 0; }
}

@keyframes slideToast {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-meta-strip {
    justify-content: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .social-strip {
    justify-content: center;
  }

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

  .brand-spotlight-card {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 820px) {
  .nav-menu,
  .sound-toggle,
  #btnNavConnect {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  /* Timeline mobile linear */
  .timeline-center-line {
    left: 20px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 60px;
    padding-right: 0;
  }

  .timeline-item.left,
  .timeline-item.right {
    left: 0;
    text-align: left;
  }

  .timeline-item.left .timeline-node,
  .timeline-item.right .timeline-node {
    left: 2px;
    right: auto;
  }

  .section-title {
    font-size: 2.1rem;
  }

  .hero-title {
    font-size: 2.4rem;
  }

  .brand-features-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 70px 0;
  }

  .about-card,
  .brand-spotlight-card,
  .contact-form,
  .contact-info-card {
    padding: 22px;
  }

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

  .tool-badges-grid {
    grid-template-columns: 1fr;
  }
}
