/* ============================================================
   AWOLESI VICTOR PORTFOLIO — Main Stylesheet
   Theme: Creative Professional Palette — Dark + Light
   Palette: #2C3E50 · #E74C3C · #ECF0F1 · #3498DB · #95A5A6
   ============================================================ */

/* ─────────────────────────── VARIABLES ─────────────────────────── */
:root {
  /* ── Brand Palette Tokens ── */
  --palette-navy:  #2C3E50;
  --palette-red:   #E74C3C;
  --palette-white: #ECF0F1;
  --palette-blue:  #3498DB;
  --palette-slate: #95A5A6;

  /* ── Dark Theme ── */
  --bg-base:       #1a2530;
  --bg-surface:    #243442;
  --bg-card:       #2C3E50;
  --bg-card-hover: #34495e;
  --bg-elevated:   #3a5068;

  /* Blue accent — links, icons, secondary highlights */
  --accent:        #3498DB;
  --accent-light:  #5dade2;
  --accent-dim:    rgba(52, 152, 219, 0.10);
  --accent-border: rgba(52, 152, 219, 0.24);
  --accent-solid:  #2980b9;

  /* Red-orange — primary CTAs */
  --accent-cta:        #E74C3C;
  --accent-cta-hover:  #c0392b;
  --accent-cta-dim:    rgba(231, 76, 60, 0.12);
  --accent-cta-border: rgba(231, 76, 60, 0.30);

  /* Text Colors */
  --text-primary:  #ECF0F1;
  --text-secondary:#bdc3c7;
  --text-muted:    #95A5A6;
  --text-accent:   #3498DB;

  /* Borders */
  --border:        rgba(236, 240, 241, 0.08);
  --border-hover:  rgba(52, 152, 219, 0.38);

  /* Glass Effect */
  --glass-bg:      rgba(26, 37, 48, 0.82);
  --glass-border:  rgba(236, 240, 241, 0.06);

  /* Shadows */
  --shadow-blue:   0 4px 20px rgba(52, 152, 219, 0.14);
  --shadow-cta:    0 4px 20px rgba(231, 76, 60, 0.22);
  --shadow-card:   0 4px 24px rgba(0, 0, 0, 0.35);
  --shadow-modal:  0 24px 64px rgba(0, 0, 0, 0.6);

  /* Transitions */
  --transition:      all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-main: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing */
  --section-pad: 5.5rem 0;
}

/* ── Light Theme — Off-white base, navy ink ── */
[data-theme="light"] {
  --bg-base:       #ECF0F1;
  --bg-surface:    #ffffff;
  --bg-card:       #ffffff;
  --bg-card-hover: #dfe6e9;
  --bg-elevated:   #d5dbdb;

  --accent:        #3498DB;
  --accent-light:  #3498DB;
  --accent-dim:    rgba(52, 152, 219, 0.08);
  --accent-border: rgba(52, 152, 219, 0.22);
  --accent-solid:  #2980b9;

  --accent-cta:        #E74C3C;
  --accent-cta-hover:  #c0392b;
  --accent-cta-dim:    rgba(231, 76, 60, 0.08);
  --accent-cta-border: rgba(231, 76, 60, 0.25);

  --text-primary:  #2C3E50;
  --text-secondary:#566573;
  --text-muted:    #95A5A6;
  --text-accent:   #3498DB;

  --border:        #d5dbdb;
  --border-hover:  rgba(52, 152, 219, 0.45);

  --glass-bg:      rgba(255, 255, 255, 0.88);
  --glass-border:  rgba(44, 62, 80, 0.08);

  --shadow-blue:   0 4px 16px rgba(52, 152, 219, 0.12);
  --shadow-cta:    0 4px 16px rgba(231, 76, 60, 0.14);
  --shadow-card:   0 1px 3px rgba(44,62,80,0.12), 0 4px 8px rgba(44,62,80,0.08);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  overflow-x: hidden;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-base);
  color: var(--text-primary);
  transition: background-color 0.4s ease, color 0.4s ease;
  line-height: 1.6;
  overflow-x: hidden;
}

section {
  position: relative;
  overflow: hidden;
}

/* Headings Typography */
h1, h2, h3, h4, h5, h6,
.section-title,
.section-tag,
.navbar-glass a,
.gradient-text,
.tool-name,
.soft-skill-title,
.timeline-title,
.project-card-title,
.testimonial-name,
.avail-title,
.form-label,
.btn-primary,
.btn-secondary,
.nav-link,
.nav-hire-btn {
  font-family: var(--font-heading);
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-surface); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-light); }

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

/* ─────────────────────────── LOADING SCREEN ─────────────────────────── */
#loadingContainer {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  background: var(--bg-base);
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#loadingContainer.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-ring {
  display: none;
}

/* 3D cube loader with fluid fill */
.loader-scene {
  width: 72px;
  height: 72px;
  perspective: 900px;
  perspective-origin: 50% 50%;
}

.loader-cube-3d {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  animation: loader-cube-spin 2.8s ease-in-out infinite;
}

.loader-cube-face {
  position: absolute;
  inset: 0;
  border: 1.5px solid rgba(52, 152, 219, 0.35);
  background: rgba(44, 62, 80, 0.55);
  backface-visibility: visible;
  border-radius: 10px;
}

[data-theme="light"] .loader-cube-face {
  background: rgba(236, 240, 241, 0.85);
  border-color: rgba(52, 152, 219, 0.28);
}

.loader-face-front  { transform: translateZ(36px); overflow: hidden; }
.loader-face-back   { transform: rotateY(180deg) translateZ(36px); }
.loader-face-right  { transform: rotateY(90deg) translateZ(36px); }
.loader-face-left   { transform: rotateY(-90deg) translateZ(36px); }
.loader-face-top    { transform: rotateX(90deg) translateZ(36px); }
.loader-face-bottom { transform: rotateX(-90deg) translateZ(36px); }

.loader-fluid-track {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 8px;
}

.loader-fluid-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 25%;
  background: linear-gradient(180deg, #5dade2 0%, #3498DB 45%, #E74C3C 100%);
  animation: loader-fluid-rise 2.8s ease-in-out infinite;
  box-shadow: 0 -6px 16px rgba(52, 152, 219, 0.45);
}

.loader-fluid-wave {
  position: absolute;
  left: -40%;
  width: 180%;
  height: 12px;
  border-radius: 45%;
  background: rgba(236, 240, 241, 0.35);
  animation: loader-fluid-wave 2.8s ease-in-out infinite;
  filter: blur(0.5px);
}

@keyframes loader-cube-spin {
  0%   { transform: rotateX(-22deg) rotateY(0deg); }
  100% { transform: rotateX(-22deg) rotateY(360deg); }
}

@keyframes loader-fluid-rise {
  0%, 100% { height: 18%; }
  50%      { height: 82%; }
}

@keyframes loader-fluid-wave {
  0%, 100% { bottom: 16%; transform: translateX(0) scaleY(1); }
  25%      { bottom: 42%; transform: translateX(8%) scaleY(1.15); }
  50%      { bottom: 78%; transform: translateX(-6%) scaleY(0.9); }
  75%      { bottom: 48%; transform: translateX(4%) scaleY(1.1); }
}

.loader-text {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.12em;
}

.loader-dots::after {
  content: '';
  animation: dots 1.4s steps(4, end) infinite;
}

@keyframes dots {
  0%   { content: ''; }
  25%  { content: '.'; }
  50%  { content: '..'; }
  75%  { content: '...'; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ─────────────────────────── NAVBAR ─────────────────────────── */
.navbar-shell {
  align-items: stretch;
}

.navbar-inner {
  position: relative;
}

.mobile-menu-btn-outside {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: none;
}

.mobile-menu-btn-outside:hover,
.mobile-menu-btn-outside[aria-expanded="true"] {
  color: var(--accent);
  border-color: var(--accent-border);
  background: var(--accent-dim);
}

.mobile-menu-btn-outside[aria-expanded="true"] i {
  transform: rotate(90deg);
}

.mobile-menu-btn-outside i {
  transition: transform 0.3s ease;
}

.navbar-actions {
  margin-left: auto;
}

@media (min-width: 768px) {
  .navbar-inner {
    min-height: 3.5rem;
  }

  .nav-pill {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
}

@media (max-width: 767px) {
  .navbar-shell {
    gap: 0;
  }

  .nav-hire-btn {
    padding: 0.38rem 0.7rem;
    font-size: 0.72rem;
    gap: 0.3rem;
  }

  .nav-hire-label {
    display: inline;
  }

  .theme-toggle-btn {
    width: 32px;
    height: 32px;
    font-size: 0.78rem;
  }

  .mobile-menu-btn-outside {
    width: 32px;
    height: 32px;
    font-size: 0.82rem;
  }
}

.navbar-glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

.navbar-glass.scrolled {
  background: var(--bg-surface);
  box-shadow: var(--shadow-card);
  border-color: var(--border);
}

/* Pill nav container — centers the links in a floating pill */
.nav-pill {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 2rem;
  padding: 4px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  border-radius: 2rem;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition-fast);
  white-space: nowrap;
}

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

[data-theme="light"] .nav-link:hover {
  background: rgba(0, 0, 0, 0.03);
}

.nav-link.active {
  color: var(--text-primary);
  background: var(--bg-base);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .nav-link.active {
  color: var(--accent);
  background: var(--bg-surface);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Hire Me button in navbar */
.nav-hire-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1.1rem;
  border-radius: 2rem;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
  letter-spacing: 0.02em;
}

[data-theme="dark"] .nav-hire-btn {
  color: #ffffff;
  background: var(--accent-cta);
}

[data-theme="light"] .nav-hire-btn {
  color: #ffffff;
  background: var(--accent-cta);
}

.nav-hire-btn:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: var(--shadow-cta);
}

/* Mobile menu container transitions */
.mobile-menu-wrapper {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-wrapper.open {
  grid-template-rows: 1fr;
}

.mobile-menu-inner {
  overflow: hidden;
}

.navbar-glass.mobile-menu-open {
  border-radius: 1.5rem !important;
}

/* Mobile nav links */
.mobile-nav-link {
  display: block;
  padding: 0.65rem 1rem;
  border-radius: 2rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition-fast);
}

.mobile-nav-link:hover {
  color: var(--text-primary);
  background: var(--bg-elevated);
}

/* Theme Toggle Button */
.theme-toggle-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.82rem;
  transition: var(--transition);
  flex-shrink: 0;
}

.theme-toggle-btn:hover {
  color: var(--accent);
  border-color: var(--accent-border);
  background: var(--accent-dim);
  transform: rotate(20deg) scale(1.08);
}

/* ─────────────────────────── HERO SECTION ─────────────────────────── */
#hero {
  background-color: var(--bg-base);
  overflow-x: clip;
  overflow-y: visible;
}

.hero-content,
.hero-layout {
  overflow: visible;
}

/* CSS grid fallback — always visible (canvas supplements on desktop) */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(52, 152, 219, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(52, 152, 219, 0.08) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 85% at 50% 45%, black 25%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 85% at 50% 45%, black 25%, transparent 100%);
}

[data-theme="light"] #hero::before {
  background-image:
    linear-gradient(rgba(44, 62, 80, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(44, 62, 80, 0.07) 1px, transparent 1px);
}

/* Hero layout — editorial on mobile, split on desktop */
.hero-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .hero-layout {
    grid-template-columns: 1fr 340px;
    gap: 4rem;
    align-items: center;
  }
  .hero-brand-visual {
    justify-self: end;
  }
}

.hero-text-col {
  text-align: left;
  max-width: 36rem;
  position: relative;
}

/* Left accent rail — mobile editorial cue (F-pattern anchor) */
.hero-text-col::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.25rem;
  bottom: 0.25rem;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(to bottom, var(--accent-cta), var(--accent), transparent);
  opacity: 0.85;
}

.hero-text-col > * {
  padding-left: 1.25rem;
}

@media (max-width: 767px) {
  .hero-text-col::before {
    display: none;
  }
}

@media (min-width: 1024px) {
  .hero-text-col::before {
    display: none;
  }
  .hero-text-col > * {
    padding-left: 0;
  }
}

.hero-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 2rem;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  margin-bottom: 1rem;
}

.hero-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3498DB;
  box-shadow: 0 0 8px rgba(52, 152, 219, 0.55);
  animation: pulse 2s infinite;
  flex-shrink: 0;
}

.hero-eyebrow {
  letter-spacing: 0.14em;
}

.hero-headline {
  font-size: clamp(2rem, 8vw, 3.75rem);
  line-height: 1.08;
  margin-bottom: 0.75rem;
}

.hero-role {
  line-height: 1.35;
}

.hero-desc {
  font-size: 0.95rem;
  max-width: 32rem;
}

@media (min-width: 640px) {
  .hero-desc { font-size: 1rem; }
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.hero-social-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
  flex-wrap: wrap;
}

.hero-social-divider {
  width: 2rem;
  height: 1px;
  background: var(--border);
  flex-shrink: 0;
}

/* Subtle noise-grain dot pattern */
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(52, 152, 219, 0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}

[data-theme="light"] .hero-bg-grid {
  background-image: radial-gradient(circle, rgba(44, 62, 80, 0.06) 1px, transparent 1px);
}

.hero-glow-1 {
  position: absolute;
  top: -5%;
  right: 0;
  width: 55vw;
  height: 55vw;
  max-width: 680px;
  max-height: 680px;
  background: radial-gradient(ellipse at top right, rgba(52, 152, 219, 0.12) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.hero-glow-2 {
  position: absolute;
  bottom: 5%;
  left: -5%;
  width: 45vw;
  height: 45vw;
  max-width: 520px;
  max-height: 520px;
  background: radial-gradient(ellipse at bottom left, rgba(52, 152, 219, 0.06) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* Gradient Text — professional blue tones */
.gradient-text {
  background: linear-gradient(125deg, #3498DB 0%, #5dade2 50%, #ECF0F1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="light"] .gradient-text {
  background: linear-gradient(125deg, #2C3E50 0%, #3498DB 60%, #2980b9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 2rem;
  background: var(--accent-cta);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

[data-theme="dark"] .btn-primary,
[data-theme="light"] .btn-primary {
  color: #ffffff;
  background: var(--accent-cta);
}

.btn-primary:hover {
  background: var(--accent-cta-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-cta);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 2rem;
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
}

.btn-secondary:hover {
  background: var(--accent-dim);
  border-color: var(--accent-border);
  color: var(--text-primary);
  transform: translateY(-2px);
}

/* Social Icon Buttons */
.social-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  text-decoration: none;
  transition: var(--transition);
}

.social-icon-btn:hover {
  color: var(--accent);
  border-color: var(--accent-border);
  background: var(--accent-dim);
  transform: translateY(-3px);
  box-shadow: var(--shadow-blue);
}

/* Hero Brand Visual — code terminal + tech orbit (replaces profile photo) */
.hero-brand-visual {
  position: relative;
  width: min(100%, 380px);
  height: 368px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-shrink: 0;
  overflow: visible;
  animation: brand-terminal-float 6s ease-in-out infinite;
}

/* Coding Lottie — inside terminal header, always visible */
.brand-code-signal {
  flex-shrink: 0;
  width: 42px;
  height: 34px;
  margin-left: auto;
  border-radius: 0.5rem;
  background: var(--bg-base);
  border: 1px solid var(--accent-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-shadow: inset 0 0 12px rgba(52, 152, 219, 0.08);
}

.signal-line {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--accent-light);
  opacity: 0.55;
  transform-origin: left center;
  animation: signal-write 1.5s ease-in-out infinite;
}

.signal-line:nth-child(2) {
  width: 26px;
  animation-delay: 0.18s;
}

.signal-line:nth-child(3) {
  width: 14px;
  animation-delay: 0.36s;
}

@keyframes signal-write {
  0%, 100% { transform: scaleX(0.35); opacity: 0.35; }
  45%, 65% { transform: scaleX(1); opacity: 1; }
}

.brand-visual-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle, rgba(52, 152, 219, 0.12) 0%, rgba(44, 62, 80, 0.04) 50%, transparent 70%);
  border-radius: 1.5rem;
  filter: blur(16px);
  animation: brand-glow-pulse 7s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

[data-theme="light"] .brand-visual-glow {
  background: radial-gradient(circle, rgba(52, 152, 219, 0.10) 0%, rgba(44, 62, 80, 0.03) 50%, transparent 70%);
}

@keyframes brand-glow-pulse {
  0% { transform: scale(0.96); opacity: 0.75; }
  100% { transform: scale(1.04); opacity: 1; }
}

.brand-visual-frame {
  position: relative;
  width: min(100%, 340px);
  margin: 0 auto;
  z-index: 1;
}

.brand-terminal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-card), 0 0 0 1px rgba(52, 152, 219, 0.06);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

[data-theme="dark"] .brand-terminal {
  background: #282c34;
  border-color: rgba(171, 178, 191, 0.16);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.44), 0 0 0 1px rgba(97, 175, 239, 0.10);
}

[data-theme="dark"] .brand-terminal-header {
  background: #21252b;
  border-bottom-color: rgba(171, 178, 191, 0.12);
}

.hero-brand-visual:hover .brand-terminal {
  transform: translateY(-4px);
  box-shadow: var(--shadow-blue), 0 20px 48px rgba(0, 0, 0, 0.25);
}

.brand-terminal-header {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.85rem;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  min-height: 46px;
}

.brand-terminal-url {
  margin-left: 0;
  flex: 1;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.brand-dot-red    { background: #E74C3C; }
.brand-dot-yellow { background: #f1c40f; }
.brand-dot-green  { background: #2ecc71; }

@keyframes brand-terminal-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

.brand-terminal-body {
  position: relative;
  padding: 0.9rem 1rem 1rem;
  min-height: 200px;
}

.brand-monogram {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--accent);
  margin-bottom: 0.45rem;
  line-height: 1;
}

.brand-code {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  line-height: 1.62;
  color: #abb2bf;
  margin: 0;
  white-space: pre;
  height: 9.1rem;
  overflow: hidden;
}

.code-comment { color: #5c6370; font-style: italic; }
.code-keyword { color: #c678dd; }
.code-var     { color: #e06c75; }
.code-key     { color: #e5c07b; }
.code-string  { color: #98c379; }
.code-num     { color: #d19a66; }

[data-theme="light"] .code-string { color: #27ae60; }
[data-theme="light"] .code-keyword { color: #c0392b; }

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

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

/* Floating tech pills */
.brand-float {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  border-radius: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--accent-border);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-primary);
  box-shadow: var(--shadow-card);
  white-space: nowrap;
  z-index: 2;
  animation: brand-float 5s ease-in-out infinite;
}

.brand-float i { color: var(--accent); font-size: 0.85rem; }

.brand-float-1 { top: 70px; right: 54px; animation-delay: 0s; }
.brand-float-2 { top: 148px; left: -42px; animation-delay: -1.5s; }
.brand-float-3 { bottom: -18px; right: 58px; animation-delay: -3s; }

@keyframes brand-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

/* Stat chips on brand visual */
.brand-stat-badge {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem 0.8rem;
  border-radius: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--accent-border);
  box-shadow: var(--shadow-card);
  min-width: 72px;
  z-index: 3;
  transition: transform 0.3s ease;
}

.brand-stat-badge-1 { bottom: 32px; left: -30px; }
.brand-stat-badge-2 { top: 62px; right: -32px; }

[data-theme="light"] .brand-stat-badge {
  background: #ffffff;
}

.badge-num {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
}

.badge-lbl {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Legacy profile avatar — kept for reference, unused */
.profile-avatar-container {
  display: none;
}


/* Stats Bar */
.stats-bar {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 1.5rem 2rem;
  flex-wrap: wrap;
  box-shadow: var(--shadow-card);
}

[data-theme="light"] .stats-bar {
  background: #ffffff;
  box-shadow: 0 2px 16px rgba(32, 33, 36, 0.1);
}

.stat-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  min-width: 110px;
  padding: 0.5rem;
}

.stat-num {
  font-family: var(--font-mono);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent-light);
  line-height: 1;
  letter-spacing: -0.02em;
}

[data-theme="light"] .stat-num {
  color: var(--accent);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  letter-spacing: 0.01em;
}

.stat-divider {
  width: 1px;
  height: 44px;
  background: var(--border);
  flex-shrink: 0;
}

/* ─────────────────────────── SECTIONS COMMON ─────────────────────────── */
.section-pad {
  padding: var(--section-pad);
}

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

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--accent-light);
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  padding: 0.22rem 0.8rem;
  border-radius: 2rem;
  margin-bottom: 0.85rem;
  text-transform: uppercase;
}

[data-theme="light"] .section-tag {
  color: var(--accent);
}

.section-title {
  font-size: clamp(1.9rem, 4.5vw, 2.75rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.15;
  margin-bottom: 0.85rem;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.65;
}

/* Section background glows */
.section-glow-left {
  position: absolute;
  top: 0;
  left: -15%;
  width: 50vw;
  height: 100%;
  background: radial-gradient(ellipse at left center, rgba(59, 130, 246, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.section-glow-right {
  position: absolute;
  top: 0;
  right: -15%;
  width: 50vw;
  height: 100%;
  background: radial-gradient(ellipse at right center, rgba(139, 92, 246, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

/* ─────────────────────────── TOOLS SECTION ─────────────────────────── */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 1rem;
}

.tool-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 1.25rem 1rem;
  border-radius: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  cursor: default;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.tool-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-dim) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tool-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow-blue);
}

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

.tool-icon-wrap {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background: var(--bg-elevated);
  transition: var(--transition);
  position: relative;
}

.tool-icon {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.tool-card:hover .tool-icon {
  transform: scale(1.15);
}

.tool-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
  position: relative;
}

.tool-category {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-align: center;
  font-family: var(--font-mono);
  position: relative;
}

/* Also badge */
.also-badge {
  padding: 0.35rem 0.85rem;
  border-radius: 2rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: var(--transition-fast);
}

.also-badge:hover {
  color: var(--accent-light);
  border-color: var(--accent-border);
  background: var(--accent-dim);
}

/* ─────────────────────────── SOFT SKILLS ─────────────────────────── */
.soft-skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.soft-skill-card {
  padding: 1.5rem;
  border-radius: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.soft-skill-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.soft-skill-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-5px) scale(1.01);
  box-shadow: var(--shadow-blue);
}

.soft-skill-card:hover::after {
  opacity: 1;
}

.soft-skill-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 0.75rem;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.soft-skill-icon {
  font-size: 1.1rem;
  color: var(--accent-light);
}

.soft-skill-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.soft-skill-desc {
  font-size: 0.83rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ─────────────────────────── CAREER / TIMELINE ─────────────────────────── */
.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 23px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent) 0%, transparent 100%);
  opacity: 0.3;
}

.timeline-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.timeline-marker {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--accent-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--accent-light);
  z-index: 1;
  transition: var(--transition);
  box-shadow: 0 0 0 4px var(--bg-base);
}

.timeline-item:hover .timeline-marker {
  background: var(--accent-dim);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--bg-base), var(--shadow-blue);
}

.timeline-card {
  flex: 1;
  padding: 1.5rem;
  border-radius: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.timeline-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-blue);
  transform: translateX(4px);
}

.timeline-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.timeline-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.timeline-company {
  font-size: 0.83rem;
  color: var(--accent-light);
  font-weight: 500;
  margin-top: 0.15rem;
}

.timeline-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-light);
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  white-space: nowrap;
}

.timeline-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.tl-tag {
  display: inline-block;
  padding: 0.18rem 0.55rem;
  border-radius: 0.35rem;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

/* ─────────────────────────── HERO CAPABILITY PILLS ─────────────────────────── */
.hero-capabilities {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.hero-capability-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text-secondary);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 0.3rem 0.7rem;
  border-radius: 0.4rem;
}

/* ─────────────────────────── PROJECTS SECTION ─────────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

/* Featured Work — larger, richer cards leading the section */
.featured-projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.project-card.featured .project-card-img-wrap {
  aspect-ratio: 16/10;
}

.project-card.featured .project-card-body {
  padding: 1.5rem 1.5rem 1.65rem;
}

.project-card.featured .project-card-title {
  font-size: 1.15rem;
}

.project-card.featured .project-card-desc {
  font-size: 0.88rem;
  line-height: 1.65;
  margin-bottom: 1rem;
}

.more-work-header {
  text-align: left;
  margin-bottom: 1.5rem;
}

.more-work-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.more-work-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.projects-cta-row {
  text-align: center;
  margin-top: 3rem;
}

.projects-cta-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.projects-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent-light);
  font-weight: 600;
  margin-left: 0.4rem;
  transition: var(--transition-fast);
}

.projects-cta-link:hover {
  color: var(--accent);
  gap: 0.6rem;
}

[data-theme="light"] .projects-cta-link {
  color: var(--accent);
}

.project-card {
  border-radius: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  outline: none;
}

.project-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-8px) scale(1.01);
  box-shadow: var(--shadow-blue), 0 16px 48px rgba(0, 0, 0, 0.25);
}

.project-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.project-card-img-wrap {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.project-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

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

.project-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 18, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(2px);
}

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

.project-overlay-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  border-radius: 0.625rem;
  background: var(--accent-cta);
  color: #fff;
  font-size: 0.83rem;
  font-weight: 600;
  transform: translateY(8px);
  transition: transform 0.3s ease;
}

.project-card:hover .project-overlay-cta {
  transform: translateY(0);
}

.project-card-body {
  padding: 1.25rem;
  flex: 1;
}

.project-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.project-type-badge {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 0.35rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent-light);
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  white-space: nowrap;
  flex-shrink: 0;
}

.project-type-badge.in-dev {
  color: #fb923c;
  background: rgba(251, 146, 60, 0.1);
  border-color: rgba(251, 146, 60, 0.25);
}

.project-card-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 0.75rem;
}

.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.stack-pill {
  padding: 0.18rem 0.55rem;
  border-radius: 0.35rem;
  font-size: 0.68rem;
  font-weight: 600;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.stack-pill-more {
  color: var(--accent);
  background: var(--accent-dim);
  border-color: var(--accent-border);
}

/* ─────────────────────────── PROJECT MODALS ─────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(4, 8, 18, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  overflow-y: auto;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  position: relative;
  width: 100%;
  max-width: 780px;
  background: var(--bg-surface);
  border: 1px solid var(--glass-border);
  border-radius: 1.25rem;
  overflow: hidden;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95) translateY(16px);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  scrollbar-width: thin;
}

.modal-overlay.active .modal-container {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.modal-close:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.35);
  color: #f87171;
}

/* Modal Carousel */
.modal-carousel {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-base);
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
  flex: 0 0 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-placeholder {
  flex-direction: column;
  gap: 0.75rem;
  background: var(--bg-card);
  color: var(--text-muted);
}

.carousel-placeholder i {
  font-size: 2.5rem;
  color: var(--accent-dim);
}

.carousel-placeholder span {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px);
  color: var(--text-primary);
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.carousel-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.carousel-prev { left: 10px; }
.carousel-next { right: 10px; }

.carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 5;
}

.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: var(--transition-fast);
}

.carousel-dot.active {
  background: var(--accent);
  width: 18px;
  border-radius: 3px;
}

/* Modal Body */
.modal-body {
  padding: 1.75rem;
}

.modal-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.modal-category-badge {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 0.4rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent-light);
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
}

.modal-category-badge.in-dev {
  color: #fb923c;
  background: rgba(251, 146, 60, 0.1);
  border-color: rgba(251, 146, 60, 0.25);
}

.modal-period {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.modal-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.modal-section {
  margin-bottom: 1.25rem;
}

.modal-section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  font-family: var(--font-mono);
}

.modal-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.modal-stack-pill {
  padding: 0.3rem 0.7rem;
  border-radius: 0.45rem;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: var(--font-mono);
  color: var(--accent-light);
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
}

.modal-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.modal-features li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding-left: 1.25rem;
  position: relative;
}

.modal-features li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.75rem;
}

.modal-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.modal-btn-code {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.25rem;
  border-radius: 0.625rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-fast);
}

.modal-btn-code:hover {
  border-color: var(--border-hover);
  background: var(--accent-dim);
  color: var(--accent-light);
}

.modal-btn-live {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.25rem;
  border-radius: 0.625rem;
  background: var(--accent-cta);
  border: 1px solid var(--accent-cta);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-fast);
}

.modal-btn-live:hover {
  background: var(--accent-cta-hover);
  box-shadow: var(--shadow-cta);
}

.disabled-btn {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* ─────────────────────────── TESTIMONIALS ─────────────────────────── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.testimonial-card {
  padding: 1.75rem;
  border-radius: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  position: relative;
  transition: var(--transition);
}

.testimonial-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--shadow-blue);
}

.testimonial-quote-icon {
  font-size: 1.5rem;
  color: var(--accent);
  opacity: 0.4;
  margin-bottom: 1rem;
}

.testimonial-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 1.25rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
  flex-shrink: 0;
}

.testimonial-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
}

.testimonial-role {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-top: 0.1rem;
}

.testimonial-stars {
  display: flex;
  gap: 0.2rem;
  font-size: 0.75rem;
  color: #fbbf24;
}

/* ─────────────────────────── CONTACT ─────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-availability {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: 1rem;
  background: rgba(52, 152, 219, 0.06);
  border: 1px solid rgba(52, 152, 219, 0.22);
}

.avail-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #3498DB;
  margin-top: 3px;
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(52, 152, 219, 0.5);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 8px rgba(52, 211, 153, 0.6); }
  50% { box-shadow: 0 0 16px rgba(52, 211, 153, 0.9); }
}

.avail-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #34d399;
  margin-bottom: 0.2rem;
}

.avail-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-detail-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem;
  border-radius: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: var(--transition-fast);
}

a.contact-detail-item:hover {
  border-color: var(--border-hover);
  background: var(--accent-dim);
}

.contact-detail-icon {
  width: 38px;
  height: 38px;
  border-radius: 0.625rem;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-light);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.contact-detail-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-bottom: 0.1rem;
}

.contact-detail-value {
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text-primary);
}

.contact-socials-label {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

/* Contact Form */
.contact-form-wrap {
  padding: 1.75rem;
  border-radius: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.03em;
}

.form-input-wrap {
  position: relative;
}

.form-input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.8rem;
  color: var(--text-muted);
  pointer-events: none;
}

.form-input {
  width: 100%;
  padding: 0.65rem 0.9rem 0.65rem 2.25rem;
  border-radius: 0.625rem;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 0.88rem;
  transition: var(--transition-fast);
  outline: none;
}

.form-input::placeholder { color: var(--text-muted); }

.form-input:focus {
  border-color: var(--accent-border);
  background: var(--accent-dim);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: 0.625rem;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 0.88rem;
  resize: vertical;
  min-height: 120px;
  transition: var(--transition-fast);
  outline: none;
}

.form-textarea::placeholder { color: var(--text-muted); }

.form-textarea:focus {
  border-color: var(--accent-border);
  background: var(--accent-dim);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* ─────────────────────────── FOOTER ─────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  background: var(--bg-surface);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer-year {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ─────────────────────────── SCROLL REVEAL & MICRO-ANIMATIONS ─────────────────────────── */
.reveal-up {
  opacity: 0;
  transform: translateY(28px) scale(0.96);
  transition: opacity 0.75s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.75s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.reveal-up.revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Letter Bounce on Hover */
.bounce-text span {
  display: inline-block;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.2s ease, text-shadow 0.2s ease;
  cursor: default;
}

.bounce-text span:hover {
  transform: translateY(-8px) scale(1.18) rotate(2deg);
  color: var(--accent);
  text-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

[data-theme="light"] .bounce-text span:hover {
  text-shadow: 0 4px 10px rgba(52, 152, 219, 0.2);
}

/* Icon Playful Wiggle */
@keyframes icon-wiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-8deg) scale(1.05); }
  75% { transform: rotate(8deg) scale(1.05); }
}

.social-icon-btn:hover i,
.contact-detail-item:hover .contact-detail-icon i,
#theme-btn:hover i,
#mobile-menu-btn:hover i {
  animation: icon-wiggle 0.35s ease-in-out infinite alternate;
}

/* Active Click Haptic Feedback */
.btn-primary:active,
.btn-secondary:active,
.nav-hire-btn:active,
.theme-toggle-btn:active,
.social-icon-btn:active,
.modal-btn-live:active,
.modal-btn-code:active {
  transform: scale(0.94) !important;
  transition: transform 0.08s ease;
}

/* Form Input Shake on Error */
@keyframes input-shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.form-input-error {
  animation: input-shake 0.3s ease-in-out;
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}

/* ─────────────────────────── RESPONSIVE ─────────────────────────── */
@media (max-width: 768px) {
  :root {
    --section-pad: 3.5rem 0;
  }

  /* Mobile hero — left-aligned editorial, not centered stack */
  #hero {
    align-items: flex-start;
    padding-top: 5.5rem;
  }

  #hero::before {
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, black 0%, black 70%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 0%, black 70%, transparent 100%);
  }

  .hero-layout {
    gap: 1.5rem;
  }

  .hero-brand-visual {
    width: 100%;
    max-width: 340px;
    height: 360px;
    margin: 0 auto;
    justify-self: center;
    animation: none;
  }

  .brand-code-signal {
    width: 42px;
    height: 34px;
  }

  .brand-monogram { font-size: 1.7rem; }
  .brand-code { font-size: 0.68rem; }
  .brand-terminal-body { min-height: 200px; padding: 1.1rem 1.15rem 1.25rem; }

  .brand-float {
    font-size: 0.6rem;
    padding: 0.3rem 0.55rem;
  }

  .brand-float-1 { top: -12px; right: -6px; }
  .brand-float-2 { bottom: 92px; left: -8px; }
  .brand-float-3 { bottom: -10px; right: 18px; }

  .brand-stat-badge {
    padding: 0.4rem 0.6rem;
    min-width: 60px;
  }
  .brand-stat-badge .badge-num { font-size: 1rem; }
  .brand-stat-badge .badge-lbl { font-size: 0.65rem; }
  .brand-stat-badge-1 { bottom: 10px; left: -6px; }
  .brand-stat-badge-2 { top: 14px; right: -6px; }

  .hero-headline {
    font-size: clamp(1.85rem, 9vw, 2.35rem);
  }

  .hero-cta-row .btn-primary,
  .hero-cta-row .btn-secondary {
    flex: 1 1 auto;
    min-width: 140px;
    justify-content: center;
  }

  /* Stats — horizontal scroll strip (thumb-friendly) */
  .hero-stats-bar,
  .stats-bar {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 1rem;
    margin-left: auto;
    margin-right: auto;
    overflow: visible;
  }

  .stat-item {
    flex: 1 1 calc(50% - 0.5rem);
    min-width: unset;
    padding: 0.55rem 0.4rem;
    text-align: center;
  }

  .stat-num { font-size: 1.35rem; }
  .stat-label { font-size: 0.72rem; }
  .stat-divider { display: none; }

  .tools-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }

  .timeline::before { left: 19px; }
  .timeline-marker { width: 40px; height: 40px; font-size: 0.85rem; }

  .projects-grid { grid-template-columns: 1fr; }
  .featured-projects-grid { grid-template-columns: 1fr; gap: 1.25rem; margin-bottom: 2.5rem; }
  .more-work-header { text-align: center; }
  .hero-capabilities { margin-bottom: 1.5rem; }

  .modal-body { padding: 1.25rem; }
  .modal-title { font-size: 1.25rem; }

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

  .footer-inner { flex-direction: column; text-align: center; }

  .profile-card { width: 200px; height: 240px; }
}

@media (max-width: 480px) {
  .hero-brand-visual {
    width: min(100%, 340px);
    height: 360px;
  }
  .brand-float-2 { left: -4px; }
  .brand-float-3 { right: 6px; }
  .stat-item { flex-basis: calc(50% - 0.5rem); }
  .soft-skills-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .btn-primary, .btn-secondary { padding: 0.65rem 1.1rem; font-size: 0.85rem; }
}

/* ─────────────────────────── HERO CANVAS ─────────────────────────── */
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 1;
  transition: opacity 0.6s ease;
}

/* Ensure hero content stays above the canvas and background elements */
.hero-content {
  position: relative;
  z-index: 2;
}

/* Framer Motion style non-blurry slide and fade for hero content */
.hero-reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1), transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.hero-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Allow mouse events to pass through to canvas tracking via JS on #hero */
#hero {
  cursor: default;
}

/* ─────────────────────────── MOUSE-FOLLOW GLOW ─────────────────────────── */
.cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle, rgba(52, 152, 219, 0.04) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
  will-change: left, top;
}

[data-theme="light"] .cursor-glow {
  background: radial-gradient(circle, rgba(52, 152, 219, 0.04) 0%, transparent 70%);
}

/* ─────────────────────────── 3D CARD TILT ─────────────────────────── */
.project-card {
  transform-style: preserve-3d;
  perspective: 1000px;
  will-change: transform;
}

.project-card.tilt-active {
  transition: none !important;
}

.project-card .project-card-body,
.project-card .project-card-img-wrap {
  transform: translateZ(0);
}

/* ─────────────────────────── TOOL CARD SHINE SWEEP ─────────────────────────── */
.tool-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -75%;
  width: 50%;
  height: 200%;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.04) 45%,
    rgba(255, 255, 255, 0.08) 50%,
    rgba(255, 255, 255, 0.04) 55%,
    transparent 60%
  );
  transform: rotate(25deg);
  transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 1;
}

.tool-card:hover::after {
  left: 130%;
}

[data-theme="light"] .tool-card::after {
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(52, 152, 219, 0.03) 45%,
    rgba(52, 152, 219, 0.06) 50%,
    rgba(52, 152, 219, 0.03) 55%,
    transparent 60%
  );
}

/* ─────────────────────────── GLOWING BORDER PULSE ─────────────────────────── */
.project-card:hover {
  animation: glow-pulse 2s ease-in-out infinite alternate;
}

@keyframes glow-pulse {
  0% {
    box-shadow: var(--shadow-blue), 0 16px 48px rgba(0, 0, 0, 0.25);
  }
  100% {
    box-shadow: 0 4px 30px rgba(52, 152, 219, 0.2), 0 16px 48px rgba(0, 0, 0, 0.25);
  }
}

[data-theme="light"] .project-card:hover {
  animation: glow-pulse-light 2s ease-in-out infinite alternate;
}

@keyframes glow-pulse-light {
  0% {
    box-shadow: 0 4px 16px rgba(52, 152, 219, 0.1), 0 8px 32px rgba(0, 0, 0, 0.08);
  }
  100% {
    box-shadow: 0 4px 24px rgba(52, 152, 219, 0.18), 0 8px 32px rgba(0, 0, 0, 0.08);
  }
}

/* ─────────────────────────── ANIMATED SECTION DIVIDERS ─────────────────────────── */
.section-divider {
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, transparent 0%, var(--accent-border) 20%, var(--accent) 50%, var(--accent-border) 80%, transparent 100%);
  position: relative;
  overflow: hidden;
  opacity: 0.4;
}

.section-divider::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(52, 152, 219, 0.5), transparent);
  width: 30%;
  animation: shimmer-line 4s ease-in-out infinite;
}

@keyframes shimmer-line {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(400%); }
}

[data-theme="light"] .section-divider::after {
  background: linear-gradient(90deg, transparent, rgba(52, 152, 219, 0.35), transparent);
}

/* ─────────────────────────── TYPING CURSOR ON LOGO ─────────────────────────── */
/* (Cursor animation disabled per user request) */

/* ─────────────────────────── QUOTE FLOAT ANIMATION ─────────────────────────── */
.testimonial-quote-icon {
  animation: quote-float 4s ease-in-out infinite;
}

@keyframes quote-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ─────────────────────────── TIMELINE MARKER PULSE ─────────────────────────── */
.timeline-item.revealed .timeline-marker {
  animation: marker-pulse 2s ease-in-out 0.5s 1;
}

@keyframes marker-pulse {
  0%   { box-shadow: 0 0 0 4px var(--bg-base); }
  50%  { box-shadow: 0 0 0 4px var(--bg-base), 0 0 0 10px rgba(52, 152, 219, 0.15); }
  100% { box-shadow: 0 0 0 4px var(--bg-base); }
}

/* ─────────────────────────── ENHANCED BUTTON HOVER GLOW ─────────────────────────── */
.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, rgba(231, 76, 60, 0.35), rgba(52, 152, 219, 0.25), rgba(231, 76, 60, 0.35));
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
  filter: blur(8px);
}

.btn-primary:hover::before {
  opacity: 1;
}

[data-theme="light"] .btn-primary::before {
  background: linear-gradient(135deg, rgba(231, 76, 60, 0.22), rgba(52, 152, 219, 0.18), rgba(231, 76, 60, 0.22));
}

/* ─────────────────────────── SOFT SKILL CARD ICON ROTATE ─────────────────────────── */
.soft-skill-card:hover .soft-skill-icon {
  animation: icon-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes icon-pop {
  0%   { transform: scale(1) rotate(0deg); }
  40%  { transform: scale(1.2) rotate(-10deg); }
  100% { transform: scale(1) rotate(0deg); }
}

/* ─────────────────────────── STATS BAR COUNTER ANIMATION ─────────────────────────── */
.stat-num {
  transition: transform 0.3s ease;
}

.stat-item:hover .stat-num {
  transform: scale(1.08);
}

/* ─────────────────────────── NAVBAR ENHANCED BLUR ─────────────────────────── */
.navbar-glass {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1), backdrop-filter 0.4s ease;
}

/* ─────────────────────────── PARALLAX GLOW LAYERS ─────────────────────────── */
.hero-glow-1,
.hero-glow-2 {
  transition: transform 0.1s linear;
  will-change: transform;
}

/* ─────────────────────────── CONTACT FORM FOCUS GLOW ─────────────────────────── */
.form-input:focus,
.form-textarea:focus {
  border-color: var(--accent-border);
  background: var(--accent-dim);
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1), 0 0 20px rgba(52, 152, 219, 0.05);
}

[data-theme="light"] .form-input:focus,
[data-theme="light"] .form-textarea:focus {
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1), 0 0 16px rgba(52, 152, 219, 0.04);
}

/* ─────────────────────────── SOCIAL ICON RIPPLE ─────────────────────────── */
.social-icon-btn {
  position: relative;
  overflow: hidden;
}

.social-icon-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(52, 152, 219, 0.2) 0%, transparent 70%);
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.3s ease, transform 0.3s ease;
  border-radius: inherit;
}

.social-icon-btn:hover::after {
  opacity: 1;
  transform: scale(1.4);
}

/* ─────────────────────────── ALSO-BADGE HOVER POP ─────────────────────────── */
.also-badge {
  transition: var(--transition-fast), transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.also-badge:hover {
  transform: translateY(-2px) scale(1.04);
}

/* ─────────────────────────── ACCESSIBILITY: REDUCED MOTION ─────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .hero-canvas { opacity: 0.5; }
  .cursor-glow { display: none; }
  .tool-card::after { display: none; }
  .testimonial-quote-icon { animation: none; }
  .section-divider::after { animation: none; }
  .project-card:hover { animation: none; }
  .reveal-up { transition-duration: 0.01s; }
  .bounce-text span { transition: none; }
  .soft-skill-card:hover .soft-skill-icon { animation: none; }
  .hero-brand-visual { animation: none; }
  .brand-float { animation: none; }
  .loader-cube-3d { animation: none; }
  .loader-fluid-fill,
  .loader-fluid-wave { animation: none; }
}

/* ─────────────────────────── POLISH: SOCIAL CARDS (CONTACT) ─────────────────────────── */
.social-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
}

@media (min-width: 640px) {
  .social-cards {
    grid-template-columns: repeat(4, 1fr);
  }
}

.social-card {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 0.9rem;
  min-height: 44px; /* thumb-friendly tap target */
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  transition: var(--transition-fast);
}

.social-card > i.fab {
  font-size: 1.05rem;
  color: var(--accent-light);
  flex-shrink: 0;
}

.social-card:hover {
  border-color: var(--border-hover);
  background: var(--accent-dim);
  transform: translateY(-2px);
}

[data-theme="light"] .social-card:hover {
  border-color: var(--accent-border);
}

/* ─────────────────────────── POLISH: MOBILE NAV DECLUTTER ───────────────────────────
   On narrow phones the pill holds logo + CTA + theme + burger.
   Below 420px the CTA collapses to icon-only to avoid overflow. */
@media (max-width: 420px) {
  .nav-hire-label {
    display: none;
  }
  .nav-hire-btn {
    padding: 0.4rem 0.6rem;
  }
}

/* Remove tap flash on interactive elements (mobile) */
a,
button,
.project-card,
.tool-card {
  -webkit-tap-highlight-color: transparent;
}

/* ─────────────────────────── POLISH: ANCHOR SCROLL OFFSET ───────────────────────────
   Fixed glass navbar must never cover section headers on anchor jumps */
section[id] {
  scroll-margin-top: 5.5rem;
}

/* ─────────────────────────── POLISH: SOLO FEATURED CARD ───────────────────────────
   A single featured card shouldn't stretch edge-to-edge on big screens.
   Cap it to a comfortable reading width, centered, with a wider image ratio. */
.featured-projects-grid.featured-solo {
  grid-template-columns: minmax(0, 720px);
  justify-content: center;
}

.featured-projects-grid.featured-solo .project-card.featured .project-card-img-wrap {
  aspect-ratio: 21 / 10;
}

@media (max-width: 768px) {
  .featured-projects-grid.featured-solo {
    grid-template-columns: 1fr;
  }
  .featured-projects-grid.featured-solo .project-card.featured .project-card-img-wrap {
    aspect-ratio: 16 / 10;
  }
}
