/* ============================================================
   DESIGN SYSTEM — Developer / Terminal / IDE Aesthetic
   Color: Dark-mode-first with optional light mode
   Fonts: JetBrains Mono (headings/code), Inter (body)
   Accents: Neon cyan, green, purple — subtle, not saturated
   ============================================================ */

:root {
  /* Core backgrounds */
  --bg: #0a0e1a;
  --bg-elevated: #0f1629;
  --bg-surface: #131a2e;
  --card: #111827;
  --card-hover: #1a2332;

  /* Text */
  --text: #c9d1d9;
  --text-bright: #f0f6fc;
  --muted: #8b949e;
  --subtle: #6e7681;

  /* Neon accents */
  --accent: #00e5ff;
  --accent-2: #00ffc8;
  --accent-purple: #bf5af2;
  --accent-blue: #5e9eff;
  --accent-pink: #ff6bcb;
  --accent-emerald: #0dff91;
  --accent-amber: #fbbf24;

  /* Glow colors */
  --glow-cyan: rgba(0, 229, 255, 0.15);
  --glow-green: rgba(13, 255, 145, 0.12);
  --glow-purple: rgba(191, 90, 242, 0.10);

  /* Glass / borders */
  --ring: rgba(0, 229, 255, 0.35);
  --glass: rgba(17, 24, 39, 0.65);
  --glass-border: rgba(148, 163, 184, 0.08);
  --glass-border-hover: rgba(0, 229, 255, 0.22);

  /* Radius */
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.25rem;
  --radius-2xl: 1.5rem;

  /* Shadows */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.20);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 40px rgba(0, 229, 255, 0.08);
  --shadow-neon: 0 0 20px rgba(0, 229, 255, 0.15), 0 0 60px rgba(0, 229, 255, 0.04);

  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Fonts */
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Source Code Pro', 'Cascadia Code', 'Consolas', ui-monospace, monospace;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing tokens */
  --card-padding: 1.35rem;
  --card-gap: 1.15rem;
  --section-gap: 2.25rem;
  --section-header-gap: 1.25rem;
  --card-title-gap: 0.38rem;
  --card-title-font-weight: 750;
  --section-header-font-size: 2.1rem;
  --section-header-font-weight: 900;
  --section-header-margin: 0 0 1.25rem 0;
}

/* ===== LIGHT MODE ===== */
[data-theme="light"] {
  /* Light blue backgrounds */
  --bg: #eef2ff;
  --bg-elevated: #f8f9ff;
  --bg-surface: #e8edfc;
  --card: #ffffff;
  --card-hover: #f0f3ff;

  /* Dark blue text tones (80% dark) */
  --text: #1e2a4a;
  --text-bright: #0f1b36;
  --muted: #4a5578;
  --subtle: #7b839e;

  /* Refined warm accents */
  --accent: #0e7490;
  --accent-2: #0f766e;
  --accent-purple: #7c3aed;
  --accent-blue: #2563eb;
  --accent-pink: #c026d3;
  --accent-emerald: #059669;
  --accent-amber: #b45309;

  /* Soft warm glows */
  --glow-cyan: rgba(14, 116, 144, 0.05);
  --glow-green: rgba(15, 118, 110, 0.05);
  --glow-purple: rgba(124, 58, 237, 0.04);

  /* Glass / borders — blue-gray undertone */
  --ring: rgba(14, 116, 144, 0.30);
  --glass: rgba(248, 249, 255, 0.85);
  --glass-border: rgba(148, 163, 194, 0.18);
  --glass-border-hover: rgba(14, 116, 144, 0.22);

  /* Shadows — blue-tinted, no harsh blacks */
  --shadow-glow: 0 0 40px rgba(14, 116, 144, 0.04);
  --shadow-neon: 0 0 20px rgba(14, 116, 144, 0.06);
  --shadow-sm: 0 1px 3px rgba(15, 27, 54, 0.04), 0 4px 12px rgba(15, 27, 54, 0.03);
  --shadow-md: 0 2px 6px rgba(15, 27, 54, 0.04), 0 8px 24px rgba(15, 27, 54, 0.06);
  --shadow-lg: 0 4px 12px rgba(15, 27, 54, 0.04), 0 16px 48px rgba(15, 27, 54, 0.08);
}

/* ===== GLOBAL BASE ===== */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* Subtle grid pattern overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.012) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

[data-theme="light"] body::before {
  background-image:
    linear-gradient(rgba(148, 163, 194, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 194, 0.06) 1px, transparent 1px);
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

a {
  transition: color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3 {
  font-family: var(--font-mono);
  letter-spacing: -0.02em;
  color: var(--text-bright);
}

/* Code-style highlight spans */
.code-highlight {
  font-family: var(--font-mono);
  background: rgba(0, 229, 255, 0.07);
  color: var(--accent);
  padding: 0.12em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
  border: 1px solid rgba(0, 229, 255, 0.12);
}

/* ===== HEADER ===== */
#header {
  transition: all var(--transition-base);
  background: rgba(10, 14, 26, 0.80);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
}

[data-theme="light"] #header {
  background: rgba(238, 242, 255, 0.90);
  border-bottom-color: rgba(168, 175, 210, 0.12);
}

#header.scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  border-bottom-color: var(--glass-border);
  background: rgba(10, 14, 26, 0.94);
}

[data-theme="light"] #header.scrolled {
  box-shadow: 0 1px 8px rgba(15, 27, 54, 0.04), 0 4px 16px rgba(15, 27, 54, 0.06);
  background: rgba(238, 242, 255, 0.97);
  border-bottom-color: rgba(168, 175, 210, 0.16);
}

/* Terminal-style brand */
.brand-logo {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  color: var(--text-bright);
}

.brand-logo .brand-dot {
  color: var(--accent);
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.4);
}

.brand-logo .brand-cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: var(--accent);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: cursor-blink 1s step-end infinite;
}

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

/* ===== SECTIONS ===== */
.section {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
  position: relative;
  z-index: 1;
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
}

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

/* ===== NAV LINKS ===== */
.nav-link {
  color: var(--muted);
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  font-family: var(--font-mono);
  transition: all var(--transition-fast);
  position: relative;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.nav-link:hover {
  color: var(--accent);
  background: rgba(0, 229, 255, 0.06);
}

.nav-link.active {
  color: var(--accent);
  background: rgba(0, 229, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(0, 229, 255, 0.12);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 55%;
  height: 2px;
  background: var(--accent);
  border-radius: 999px;
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.35);
}

/* Nav divider — theme-aware border */
.nav-border { border-color: rgba(55, 65, 81, 1); }
[data-theme="light"] .nav-border { border-color: rgba(148, 163, 194, 0.25); }

/* Focus-visible keyboard accessibility */
.nav-link:focus-visible,
.btn:focus-visible,
.lang-select:focus-visible,
.social-link:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.lang-label {
  font-size: 0.78rem;
  color: var(--subtle);
  font-family: var(--font-mono);
}

.lang-select {
  background: var(--bg-surface);
  color: var(--text);
  border: 1px solid var(--glass-border);
  border-radius: 0.5rem;
  padding: 0.38rem 0.65rem;
  font-size: 0.82rem;
  font-family: var(--font-mono);
  outline: none;
  cursor: pointer;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.lang-select:focus {
  border-color: rgba(0, 229, 255, 0.4);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.10);
}

/* Theme toggle button */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
  padding: 0;
}

.theme-toggle:hover {
  color: var(--accent-amber);
  border-color: rgba(251, 191, 36, 0.25);
  background: rgba(251, 191, 36, 0.06);
}

.theme-toggle svg { width: 16px; height: 16px; }

/* ===== MOBILE DRAWER ===== */

/* Hamburger toggle button */
.drawer-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  background: transparent;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.2s ease;
  position: relative;
  z-index: 1001;
}

.drawer-toggle:hover {
  border-color: var(--glass-border-hover);
}

.drawer-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s cubic-bezier(0.68, -0.6, 0.32, 1.6),
              opacity 0.2s ease,
              width 0.3s ease;
}

.drawer-toggle.is-active .drawer-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.drawer-toggle.is-active .drawer-toggle-bar:nth-child(2) {
  opacity: 0;
  width: 0;
}

.drawer-toggle.is-active .drawer-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Overlay */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.drawer-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

/* Drawer panel */
.drawer-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  max-width: 85vw;
  height: 100vh;
  height: 100dvh;
  z-index: 999;
  background: var(--bg-elevated);
  border-left: 1px solid var(--glass-border);
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.drawer-panel.drawer-open {
  transform: translateX(0);
}

/* Drawer header */
.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--glass-border);
  flex-shrink: 0;
}

.drawer-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.drawer-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: transparent;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.drawer-close:hover {
  color: var(--accent);
  border-color: var(--glass-border-hover);
  background: rgba(0, 229, 255, 0.04);
}

/* Drawer nav links */
.drawer-nav {
  display: flex;
  flex-direction: column;
  padding: 0.75rem 0.75rem;
  gap: 0.25rem;
}

.drawer-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
}

.drawer-link:hover {
  color: var(--accent);
  background: rgba(0, 229, 255, 0.04);
}

.drawer-link.active {
  color: var(--accent);
  background: rgba(0, 229, 255, 0.06);
  border-left: 2px solid var(--accent);
}

.drawer-link i,
.drawer-link svg {
  flex-shrink: 0;
  color: var(--muted);
  transition: color 0.2s ease;
}

.drawer-link:hover i,
.drawer-link:hover svg,
.drawer-link.active i,
.drawer-link.active svg {
  color: var(--accent);
}

/* Drawer divider */
.drawer-divider {
  height: 1px;
  background: var(--glass-border);
  margin: 0.25rem 1.25rem;
}

/* Drawer language section */
.drawer-lang {
  padding: 0.75rem 1.25rem;
}

.drawer-lang-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.drawer-lang-select {
  width: 100%;
}

/* Drawer social icons */
.drawer-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
}

.drawer-social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.drawer-social-icon:hover {
  color: var(--accent);
  border-color: var(--glass-border-hover);
  background: rgba(0, 229, 255, 0.04);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.08);
}

/* Hide drawer elements on desktop */
@media (min-width: 768px) {
  .drawer-toggle,
  .drawer-overlay,
  .drawer-panel {
    display: none !important;
  }
}

/* Light-mode drawer overrides */
[data-theme="light"] .drawer-overlay {
  background: rgba(15, 27, 54, 0.25);
}

[data-theme="light"] .drawer-panel {
  background: #ffffff;
  border-left-color: rgba(148, 163, 194, 0.15);
  box-shadow: -4px 0 24px rgba(15, 27, 54, 0.08);
}

[data-theme="light"] .drawer-close:hover {
  background: rgba(14, 116, 144, 0.06);
}

[data-theme="light"] .drawer-link:hover {
  background: rgba(14, 116, 144, 0.05);
}

[data-theme="light"] .drawer-link.active {
  background: rgba(14, 116, 144, 0.06);
}

[data-theme="light"] .drawer-social-icon:hover {
  background: rgba(14, 116, 144, 0.05);
  box-shadow: 0 0 12px rgba(14, 116, 144, 0.06);
}

/* ===== HERO ===== */
.hero-title {
  font-family: var(--font-mono);
  text-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.hero-gradient-text {
  background: linear-gradient(135deg, var(--accent), var(--accent-2), var(--accent-purple));
  background-size: 300% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 6s ease infinite;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% center; }
  50%      { background-position: 100% center; }
}

/* Terminal-style hero badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 500;
  font-family: var(--font-mono);
  background: rgba(0, 229, 255, 0.04);
  border: 1px solid rgba(0, 229, 255, 0.12);
  color: var(--accent);
  backdrop-filter: blur(8px);
  animation: fade-in-up 0.6s ease forwards;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--accent-emerald);
  border-radius: 999px;
  animation: pulse-dot 2s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(13, 255, 145, 0.4);
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(0.85); }
}

.hero-decoration {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
  opacity: 0.30;
}

/* Hero role line (terminal look) */
.hero-role {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--muted);
}

.hero-role .separator {
  color: var(--subtle);
  margin: 0 0.25rem;
}

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  text-align: center;
  padding: 4rem 0 2rem;
  position: relative;
}

.page-hero h1 {
  font-family: var(--font-mono);
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
  color: var(--text-bright);
}

.page-hero p {
  font-size: 1rem;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
}

.page-hero .page-hero-line {
  width: 60px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  margin: 1.5rem auto 0;
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.25);
}

@media (min-width: 768px) {
  .page-hero h1 { font-size: 2.75rem; }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.78rem 1.4rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.85rem;
  font-family: var(--font-mono);
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.08), transparent);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0a0e1a;
  box-shadow: 0 6px 20px rgba(0, 229, 255, 0.18);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 229, 255, 0.25), var(--shadow-neon);
}

.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-bright);
  border-color: var(--glass-border);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  border-color: var(--glass-border-hover);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.btn-secondary:active { transform: translateY(0); }

.btn-icon {
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border-radius: var(--radius-md);
}

/* ===== PROJECT CARDS ===== */
.project-card {
  position: relative;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  backdrop-filter: blur(8px);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.project-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-2), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
  z-index: 2;
}

.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, -20%), var(--glow-cyan), transparent 45%);
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  border-color: var(--glass-border-hover);
}

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

.project-card .card-image {
  position: relative;
  overflow: hidden;
  height: 12rem;
}

.project-card .card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.project-card .card-image::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(to top, var(--card), transparent);
  pointer-events: none;
}

.project-card .card-body {
  padding: 1.5rem;
  position: relative;
}

.project-card .card-body h3 {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: var(--card-title-font-weight);
  color: var(--text-bright);
  margin-bottom: var(--card-title-gap);
}

.project-card .card-body p {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.project-tag {
  display: inline-block;
  padding: 0.22rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.68rem;
  font-weight: 600;
  font-family: var(--font-mono);
  background: rgba(0, 229, 255, 0.05);
  color: var(--accent);
  border: 1px solid rgba(0, 229, 255, 0.10);
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.project-tag:hover {
  background: rgba(0, 229, 255, 0.10);
  transform: translateY(-1px);
}

.project-link {
  font-size: 0.78rem;
  font-weight: 600;
  font-family: var(--font-mono);
  color: var(--accent);
  transition: color var(--transition-fast), gap var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
}

.project-link:hover {
  color: var(--accent-2);
  gap: 0.5rem;
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
}

.project-link.disabled {
  color: var(--subtle);
  cursor: not-allowed;
  pointer-events: none;
}

/* ===== AVATAR ===== */
.avatar-wrap {
  position: relative;
  width: 16rem; height: 16rem;
  margin: 0 auto;
  border-radius: 999px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35), var(--shadow-glow);
  overflow: hidden;
}

.floating { animation: float 6s ease-in-out infinite; }

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

/* ===== SOCIAL LINKS ===== */
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem; height: 3rem;
  border-radius: var(--radius-md);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--muted);
  transition: all var(--transition-base);
  backdrop-filter: blur(8px);
  text-decoration: none;
}

.social-link:hover {
  transform: translateY(-3px);
  color: var(--accent);
  border-color: var(--glass-border-hover);
  box-shadow: 0 6px 20px rgba(0, 229, 255, 0.10);
  background: rgba(0, 229, 255, 0.04);
}

/* ===== CONTACT CARDS ===== */
.contact-card {
  position: relative;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  backdrop-filter: blur(8px);
  transition: border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
  text-align: center;
  text-decoration: none;
}

.contact-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.contact-card:hover {
  border-color: var(--glass-border-hover);
  box-shadow: 0 8px 28px rgba(0, 229, 255, 0.06);
  transform: translateY(-4px);
}

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

.contact-card .contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem; height: 3.25rem;
  border-radius: var(--radius-md);
  margin: 0 auto 1rem;
  background: rgba(0, 229, 255, 0.06);
  color: var(--accent);
  border: 1px solid rgba(0, 229, 255, 0.10);
}

.contact-card h3 {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: var(--card-title-font-weight);
  color: var(--text-bright);
  margin-bottom: var(--card-title-gap);
}

.contact-card p,
.contact-card a {
  font-size: 0.82rem;
  font-family: var(--font-mono);
  color: var(--muted);
}

.contact-card a:hover { color: var(--accent); }

/* Primary email contact card — prominent style */
.contact-card-primary {
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
  padding: 1.75rem 2rem;
}

.contact-card-primary .contact-icon {
  margin: 0;
}

.contact-primary-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  text-decoration: none;
  color: inherit;
}

.contact-primary-inner h3 {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: var(--card-title-font-weight);
  color: var(--text-bright);
  margin-bottom: 0.15rem;
}

.contact-primary-inner p {
  font-size: 0.85rem;
  font-family: var(--font-mono);
  color: var(--muted);
}

/* Social inline row */
.social-inline-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.social-inline-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--glass-border);
  text-decoration: none;
  transition: color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.social-inline-link:hover {
  color: var(--accent);
  border-color: var(--glass-border-hover);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.08);
  background: rgba(0, 229, 255, 0.03);
}

.social-inline-link i {
  flex-shrink: 0;
}

/* On phone: show only social icons, hide text labels */
@media (max-width: 640px) {
  .social-inline-link span {
    display: none;
  }
  .social-inline-link {
    padding: 0.55rem;
    border-radius: var(--radius-md);
  }
}

/* ===== SUPPORT ===== */
.support-section {
  position: relative;
  overflow: hidden;
}

.support-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: 0.88rem;
  font-family: var(--font-mono);
  transition: transform var(--transition-fast), box-shadow var(--transition-base);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

.support-card-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* ===== VISIT COUNTER ===== */
.visit-counter {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.6rem;
  background: var(--bg-surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(6px);
  animation: fade-in-up 0.6s ease forwards;
  font-size: 0.78rem;
  font-family: var(--font-mono);
}

.visit-label { font-weight: 600; font-size: 0.78rem; }
.visit-counter .visit-sep { opacity: 0.4; }
.visit-counter.bump { animation: bump 0.45s ease; }

@keyframes bump {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.07); }
  100% { transform: scale(1); }
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== STAGGER ANIMATIONS ===== */
.stagger-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.stagger-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== FOOTER ===== */
.site-footer {
  background: linear-gradient(to top, rgba(10, 14, 26, 0.98), var(--bg-elevated));
  border-top: 1px solid var(--glass-border);
  padding: 3.5rem 0 1.5rem;
  position: relative;
  z-index: 1;
}

[data-theme="light"] .site-footer {
  background: linear-gradient(to top, #e8edfc, var(--bg-elevated));
  border-top: 1px solid rgba(148, 163, 194, 0.1);
}

.site-footer .footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .site-footer .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.site-footer .footer-brand p {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.7;
  max-width: 320px;
}

.site-footer .footer-heading {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--accent);
  margin-bottom: 0.85rem;
}

.site-footer .footer-link {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  padding: 0.28rem 0;
  transition: color var(--transition-fast), transform var(--transition-fast);
  text-decoration: none;
}

.site-footer .footer-link:hover {
  color: var(--accent);
  transform: translateX(4px);
}

.site-footer .footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--glass-border);
  color: var(--subtle);
  font-size: 0.72rem;
  font-family: var(--font-mono);
}

.site-footer .footer-socials {
  display: flex;
  gap: 0.5rem;
}

.site-footer .footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem; height: 2.15rem;
  border-radius: var(--radius-sm);
  color: var(--muted);
  background: rgba(148, 163, 184, 0.04);
  border: 1px solid var(--glass-border);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.site-footer .footer-socials a:hover {
  color: var(--accent);
  border-color: rgba(0, 229, 255, 0.18);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 229, 255, 0.08);
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(1100px, 94%);
  background: rgba(15, 22, 41, 0.96);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  padding: 1.25rem 1.5rem;
  z-index: 60;
  backdrop-filter: blur(16px);
}

[data-theme="light"] .cookie-banner {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 8px 32px rgba(15, 27, 54, 0.06), 0 24px 60px rgba(15, 27, 54, 0.04);
  border: 1px solid rgba(148, 163, 194, 0.1);
}

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

.cookie-text { max-width: 640px; }

.cookie-link {
  display: inline-block;
  margin-top: 0.35rem;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.78rem;
  font-family: var(--font-mono);
}

.cookie-actions { display: flex; gap: 0.6rem; }

@media (max-width: 640px) {
  .cookie-banner { padding: 1rem; }
  .cookie-actions { width: 100%; }
  .cookie-actions .btn { flex: 1; }
}

/* ===== SCROLL TO TOP ===== */
.scroll-top-btn {
  position: fixed;
  bottom: 2rem; right: 2rem;
  width: 2.75rem; height: 2.75rem;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0a0e1a;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity var(--transition-base), visibility var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base);
  box-shadow: 0 4px 16px rgba(0, 229, 255, 0.20);
  z-index: 50;
}

.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 229, 255, 0.30), var(--shadow-neon);
}

@media (max-width: 768px) {
  .nav-link { display: block; width: 100%; }
}

/* ===== ABOUT PAGE — V2 MODERN ===== */

/* ---------- Hero ---------- */
.about-hero-v2 {
  position: relative;
  margin-bottom: 4rem;
  border-radius: var(--radius-2xl);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  overflow: hidden;
}

.about-hero-glow {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.about-hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding: 2.5rem 2rem;
}

@media (min-width: 768px) {
  .about-hero-inner {
    flex-direction: row;
    gap: 3rem;
    padding: 3rem 3rem;
  }
}

.about-hero-avatar {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.about-hero-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--accent-2);
  background: rgba(0, 255, 200, 0.06);
  border: 1px solid rgba(0, 255, 200, 0.12);
  white-space: nowrap;
}

.about-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-2);
  animation: status-pulse 2s ease-in-out infinite;
}

@keyframes status-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.about-hero-content {
  text-align: center;
  min-width: 0;
}

@media (min-width: 768px) {
  .about-hero-content {
    text-align: left;
  }
}

.about-hero-name {
  font-family: var(--font-mono);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-bright);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0.25rem;
}

@media (min-width: 768px) {
  .about-hero-name {
    font-size: 2.75rem;
  }
}

.about-hero-alt {
  color: var(--subtle);
  font-weight: 400;
  font-size: 0.5em;
}

.about-role-gradient {
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-purple));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: role-shimmer 3s linear infinite;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
  line-height: 1.5;
}

@media (min-width: 768px) {
  .about-role-gradient {
    font-size: 0.95rem;
  }
}

@keyframes role-shimmer {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.about-hero-bio {
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.75;
  max-width: 38rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 767px) {
  .about-hero-bio {
    font-size: 0.85rem;
  }
}

.about-hero-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  justify-content: center;
}

@media (min-width: 768px) {
  .about-hero-stats {
    justify-content: flex-start;
  }
}

.about-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}

@media (min-width: 768px) {
  .about-stat {
    align-items: flex-start;
  }
}

.about-stat-value {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.about-stat-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.about-stat-divider {
  width: 1px;
  height: 1.75rem;
  background: var(--glass-border);
}

/* ---------- Robot-styled Avatar ---------- */
.robot-avatar-frame {
  position: relative;
  width: 11rem;
  height: 11rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 768px) {
  .robot-avatar-frame {
    width: 13rem;
    height: 13rem;
  }
}

/* HUD corner brackets */
.robot-corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: var(--accent);
  border-style: solid;
  border-width: 0;
  opacity: 0.6;
  z-index: 3;
  transition: opacity var(--transition-base);
}

.robot-avatar-frame:hover .robot-corner {
  opacity: 1;
}

.robot-corner--tl { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; }
.robot-corner--tr { top: 0; right: 0; border-top-width: 2px; border-right-width: 2px; }
.robot-corner--bl { bottom: 0; left: 0; border-bottom-width: 2px; border-left-width: 2px; }
.robot-corner--br { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; }

/* Scan line */
.robot-scanline {
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.5;
  z-index: 4;
  animation: robot-scan 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes robot-scan {
  0%   { top: 5%; opacity: 0; }
  10%  { opacity: 0.6; }
  90%  { opacity: 0.6; }
  100% { top: 95%; opacity: 0; }
}

/* Glitch overlay */
.robot-glitch {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 229, 255, 0.03) 2px,
    rgba(0, 229, 255, 0.03) 4px
  );
  animation: robot-glitch-flash 6s ease-in-out infinite;
}

@keyframes robot-glitch-flash {
  0%, 89%, 91%, 93%, 100% { opacity: 0; }
  90% { opacity: 1; transform: translate(-1px, 1px); }
  92% { opacity: 0.8; transform: translate(1px, -1px); }
}

/* Ring (pulsing border with color shift) */
.robot-ring {
  position: relative;
  width: 80%;
  height: 80%;
  border-radius: 50%;
  padding: 3px;
  z-index: 2;
  background: linear-gradient(135deg, var(--accent), var(--accent-2), var(--accent-purple));
  background-size: 300% 300%;
  animation: robot-ring-shift 6s ease-in-out infinite;
  box-shadow:
    0 0 12px rgba(0, 229, 255, 0.12),
    0 0 30px rgba(0, 229, 255, 0.05);
}

/* Outer pulse ring */
.robot-ring::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  opacity: 0;
  animation: robot-pulse-ring 3s ease-out infinite;
  pointer-events: none;
}

/* Second staggered pulse */
.robot-ring::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid var(--accent-2);
  opacity: 0;
  animation: robot-pulse-ring 3s ease-out 1.5s infinite;
  pointer-events: none;
}

@keyframes robot-ring-shift {
  0%   { background-position: 0% 0%; }
  50%  { background-position: 100% 100%; }
  100% { background-position: 0% 0%; }
}

@keyframes robot-pulse-ring {
  0%   { transform: scale(1); opacity: 0.5; }
  70%  { transform: scale(1.12); opacity: 0; }
  100% { transform: scale(1.12); opacity: 0; }
}

.robot-ring-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg);
  padding: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.robot-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.05);
  transition: filter var(--transition-base);
}

.robot-avatar-frame:hover .robot-avatar-img {
  filter: saturate(1) contrast(1.1);
}

/* Data readout */
.robot-readout {
  position: absolute;
  bottom: -0.25rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.18rem 0.55rem;
  border-radius: var(--radius-sm);
  background: rgba(10, 14, 26, 0.85);
  border: 1px solid rgba(0, 229, 255, 0.15);
  z-index: 5;
  white-space: nowrap;
}

[data-theme="light"] .robot-readout {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(14, 116, 144, 0.18);
}

.robot-readout-tag {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.robot-readout-val {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--accent-2);
  letter-spacing: 0.05em;
}

.robot-blink {
  animation: robot-blink-anim 1.5s step-end infinite;
}

@keyframes robot-blink-anim {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* Ambient glow behind the whole frame */
.robot-avatar-frame::before {
  content: "";
  position: absolute;
  inset: -15%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.06) 0%, transparent 70%);
  z-index: 0;
  animation: robot-ambient-pulse 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes robot-ambient-pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50%      { transform: scale(1.08); opacity: 0.8; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .robot-scanline,
  .robot-glitch,
  .robot-ring,
  .robot-ring::before,
  .robot-ring::after,
  .robot-blink,
  .robot-avatar-frame::before {
    animation: none;
  }
  .robot-scanline { display: none; }
  .robot-glitch { display: none; }
  .robot-ring::before,
  .robot-ring::after { display: none; }
}

/* ---------- Section labels ---------- */
.about-section {
  margin-bottom: 3rem;
}

.about-section--lg {
  margin-bottom: 4rem;
}

.about-section-label {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--glass-border);
}

.about-section-label--inline {
  margin-bottom: 0.85rem;
  padding-bottom: 0.55rem;
}

.about-section-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(0, 229, 255, 0.06);
  border: 1px solid rgba(0, 229, 255, 0.10);
  padding: 0.18rem 0.5rem;
  border-radius: var(--radius-sm);
  letter-spacing: 0.04em;
}

.about-section-label span:not(.about-section-num) {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-bright);
  letter-spacing: -0.01em;
}

/* ---------- Cards ---------- */
.about-card {
  position: relative;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.4rem;
  transition: border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
  overflow: hidden;
}

.about-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, var(--accent), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.about-card:hover {
  border-color: var(--glass-border-hover);
  box-shadow: 0 4px 20px rgba(0, 229, 255, 0.04);
  transform: translateY(-2px);
}

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

.about-card--fill {
  height: calc(100% - 2.5rem);
}

/* Card header */
.about-card-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.1rem;
}

.about-card-header h3 {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-bright);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.about-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.about-card-icon--cyan {
  background: rgba(0, 229, 255, 0.08);
  color: var(--accent);
}

.about-card-icon--green {
  background: rgba(0, 255, 200, 0.08);
  color: var(--accent-2);
}

.about-card-icon--emerald {
  background: rgba(13, 255, 145, 0.08);
  color: var(--accent-emerald);
}

.about-card-icon--purple {
  background: rgba(191, 90, 242, 0.08);
  color: var(--accent-purple);
}

/* Card list */
.about-card-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.about-card-list li {
  position: relative;
  padding-left: 1rem;
  font-size: 0.82rem;
  color: var(--text);
  line-height: 1.55;
}

.about-card-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.6;
}

/* Chips */
.about-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.about-chip {
  display: inline-block;
  padding: 0.28rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 600;
  font-family: var(--font-mono);
  background: rgba(0, 229, 255, 0.05);
  color: var(--accent);
  border: 1px solid rgba(0, 229, 255, 0.10);
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.about-chip:hover {
  background: rgba(0, 229, 255, 0.10);
  transform: translateY(-1px);
}

.about-chip--subtle {
  background: rgba(148, 163, 184, 0.04);
  color: var(--text);
  border-color: var(--glass-border);
}

.about-chip--subtle:hover {
  border-color: rgba(0, 229, 255, 0.16);
  background: rgba(0, 229, 255, 0.04);
  color: var(--accent);
}

/* Platform items */
.about-platform-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.about-platform-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.7rem;
  border-radius: var(--radius-sm);
  background: rgba(148, 163, 184, 0.03);
  border: 1px solid var(--glass-border);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 500;
  font-family: var(--font-mono);
  transition: border-color var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
  text-decoration: none;
}

a.about-platform-item:hover {
  border-color: rgba(0, 229, 255, 0.18);
  background: rgba(0, 229, 255, 0.03);
  color: var(--accent);
}

.about-platform-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.about-platform-dot--emerald { background: #34d399; }
.about-platform-dot--orange  { background: #fb923c; }
.about-platform-dot--sky     { background: #38bdf8; }

/* Feature badge (MaraGreek etc) */
.about-feature-badge {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
  background: rgba(0, 229, 255, 0.03);
  border: 1px solid rgba(0, 229, 255, 0.08);
}

.about-feature-badge i {
  color: var(--accent);
  flex-shrink: 0;
}

/* ---------- About icon colors (theme-adaptive) ---------- */
.about-icon-violet  { color: #a78bfa; }
.about-icon-amber   { color: #fbbf24; }
.about-icon-rose    { color: #fb7185; }
.about-icon-emerald { color: #34d399; }

[data-theme="light"] .about-icon-violet  { color: #7c3aed; }
[data-theme="light"] .about-icon-amber   { color: #d97706; }
[data-theme="light"] .about-icon-rose    { color: #e11d48; }
[data-theme="light"] .about-icon-emerald { color: #059669; }

/* ---------- Focus-area badge color variants ---------- */
.about-focus-badge--sky     { background: rgba(56, 189, 248, 0.10); color: #38bdf8; }
.about-focus-badge--emerald { background: rgba(52, 211, 153, 0.10); color: #34d399; }
.about-focus-badge--violet  { background: rgba(167, 139, 250, 0.10); color: #a78bfa; }
.about-focus-badge--amber   { background: rgba(251, 191, 36, 0.10); color: #fbbf24; }
.about-focus-badge--orange  { background: rgba(251, 146, 60, 0.10); color: #fb923c; }
.about-focus-badge--rose    { background: rgba(251, 113, 133, 0.10); color: #fb7185; }

[data-theme="light"] .about-focus-badge--sky     { background: rgba(2, 132, 199, 0.08); color: #0284c7; }
[data-theme="light"] .about-focus-badge--emerald { background: rgba(5, 150, 105, 0.08); color: #059669; }
[data-theme="light"] .about-focus-badge--violet  { background: rgba(124, 58, 237, 0.08); color: #7c3aed; }
[data-theme="light"] .about-focus-badge--amber   { background: rgba(217, 119, 6, 0.08); color: #d97706; }
[data-theme="light"] .about-focus-badge--orange  { background: rgba(234, 88, 12, 0.08); color: #ea580c; }
[data-theme="light"] .about-focus-badge--rose    { background: rgba(225, 29, 72, 0.08); color: #e11d48; }

.about-feature-name {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
}

.about-feature-desc {
  font-size: 0.72rem;
  color: var(--muted);
  flex-basis: 100%;
  line-height: 1.5;
}

/* Compact cards (data/networking) */
.about-compact-card {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  font-size: 0.8rem;
  color: var(--text);
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.about-compact-card:hover {
  border-color: rgba(0, 229, 255, 0.14);
  transform: translateX(4px);
}

.about-compact-card i {
  flex-shrink: 0;
}

/* Focus items */
.about-focus-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-lg);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  transition: border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
}

.about-focus-item:hover {
  border-color: var(--glass-border-hover);
  box-shadow: 0 4px 14px rgba(0, 229, 255, 0.04);
  transform: translateY(-2px);
}

.about-focus-item p {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.45;
}

.about-focus-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

/* CTA v2 */
.about-cta-v2 {
  position: relative;
  border-radius: var(--radius-2xl);
  padding: 2px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2), var(--accent-purple));
  background-size: 200% 200%;
  animation: cta-border-shift 4s ease infinite;
}

@keyframes cta-border-shift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

.about-cta-inner {
  background: var(--bg-elevated);
  border-radius: calc(var(--radius-2xl) - 2px);
  padding: 3rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.about-cta-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--radius-lg);
  background: rgba(0, 229, 255, 0.06);
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.about-cta-title {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-bright);
  letter-spacing: -0.02em;
}

.about-cta-desc {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.about-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .about-hero-v2 { border-radius: var(--radius-xl); }
  .about-card { padding: 1.1rem; }
  .about-section-label span:not(.about-section-num) { font-size: 1rem; }
  .about-cta-inner { padding: 2rem 1.25rem; }
  .about-cta-title { font-size: 1.1rem; }
}

/* ===== PROJECT CARDS V2 (no images) ===== */
.project-card-v2 {
  position: relative;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
  overflow: hidden;
}

.project-card-v2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, var(--accent), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.project-card-v2:hover {
  border-color: var(--glass-border-hover);
  box-shadow: 0 4px 20px rgba(0, 229, 255, 0.04);
  transform: translateY(-2px);
}

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

.project-card-v2-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.project-card-v2-header h3 {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-bright);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.project-card-v2-desc {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.65;
}

.project-card-v2-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px solid var(--glass-border);
}

/* ===== HOME PAGE — V2 MODERN ===== */

/* Hero card */
.home-hero-v2 {
  position: relative;
  border-radius: var(--radius-2xl);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  overflow: hidden;
  margin-bottom: 2.5rem;
}

.home-hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding: 2.5rem 2rem;
}

@media (min-width: 768px) {
  .home-hero-inner {
    flex-direction: row;
    gap: 3rem;
    padding: 3rem 3rem;
  }
}

.home-hero-avatar {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.home-hero-content {
  text-align: center;
  min-width: 0;
}

@media (min-width: 768px) {
  .home-hero-content {
    text-align: left;
  }
}

.home-hero-name {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-bright);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0.3rem;
}

@media (min-width: 768px) {
  .home-hero-name {
    font-size: 3.25rem;
  }
}

.home-hero-bio {
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.75;
  max-width: 34rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 767px) {
  .home-hero-bio {
    font-size: 0.85rem;
  }
}

.home-hero-stats {
  margin-bottom: 1.75rem;
}

@media (max-width: 767px) {
  .home-hero-stats {
    justify-content: center;
  }
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

@media (min-width: 768px) {
  .home-hero-actions {
    justify-content: flex-start;
  }
}

/* Connect section below hero */
.home-connect-section {
  max-width: 32rem;
  margin: 0 auto;
}

@media (max-width: 640px) {
  .home-hero-v2 { border-radius: var(--radius-xl); }
  .home-hero-name { font-size: 2rem; }
}

/* ===== CONTACT PAGE — V2 MODERN ===== */

/* Page header */
.contact-header-v2 {
  text-align: center;
  margin-bottom: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.contact-page-title {
  font-family: var(--font-mono);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-bright);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

@media (min-width: 768px) {
  .contact-page-title {
    font-size: 2.75rem;
  }
}

.contact-page-desc {
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 420px;
  line-height: 1.6;
}

/* Support actions row */
.contact-support-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* ===== TERMS PAGE ===== */
.terms-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(8px);
  padding: 1.5rem 1.25rem;
  box-shadow: var(--shadow-lg);
}

.terms-card h2 {
  font-family: var(--font-mono);
  font-size: 1.08rem;
  font-weight: var(--card-title-font-weight);
  color: var(--text-bright);
  margin-top: 1.1rem;
  margin-bottom: 0.38rem;
}

.terms-card p {
  color: var(--text);
  line-height: 1.8;
  font-size: 0.88rem;
}

/* ===== SELECTION ===== */
::selection {
  background: rgba(0, 229, 255, 0.18);
  color: var(--text-bright);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.12);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(148, 163, 184, 0.22); }

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .section { opacity: 1; transform: none; }
  .stagger-item { opacity: 1; transform: none; }
}

/* ===== GLOW ORB DECORATIONS ===== */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
  opacity: 0.25;
  z-index: 0;
}

.glow-orb-1 {
  width: 500px; height: 500px;
  background: var(--glow-cyan);
  top: -150px; right: -100px;
}

.glow-orb-2 {
  width: 400px; height: 400px;
  background: var(--glow-purple);
  bottom: -100px; left: -80px;
}

.glow-orb-3 {
  width: 300px; height: 300px;
  background: var(--glow-green);
  top: 40%; left: 60%;
}

/* Light-mode: soften glow orbs & buttons */
[data-theme="light"] .glow-orb {
  opacity: 0.35;
  filter: blur(100px);
}

[data-theme="light"] .btn-primary {
  color: #fff;
  box-shadow: 0 4px 14px rgba(14, 116, 144, 0.18);
}

[data-theme="light"] .btn-primary:hover {
  box-shadow: 0 8px 24px rgba(14, 116, 144, 0.25);
}

[data-theme="light"] .btn-secondary {
  background: var(--bg-surface);
  border-color: rgba(148, 163, 194, 0.2);
}

[data-theme="light"] .btn-secondary:hover {
  box-shadow: 0 4px 16px rgba(15, 27, 54, 0.06);
}

/* ---------- Light-mode: Typography & Code ---------- */
[data-theme="light"] .code-highlight {
  background: rgba(14, 116, 144, 0.06);
  border-color: rgba(14, 116, 144, 0.12);
}

[data-theme="light"] .brand-logo .brand-dot {
  text-shadow: none;
}

/* ---------- Light-mode: Nav links ---------- */
[data-theme="light"] .nav-link:hover {
  background: rgba(14, 116, 144, 0.05);
}

[data-theme="light"] .nav-link.active {
  background: rgba(14, 116, 144, 0.07);
  box-shadow: inset 0 0 0 1px rgba(14, 116, 144, 0.12);
}

[data-theme="light"] .nav-link.active::after {
  box-shadow: none;
}

[data-theme="light"] .lang-select:focus {
  border-color: rgba(14, 116, 144, 0.35);
  box-shadow: 0 0 0 3px rgba(14, 116, 144, 0.08);
}

/* ---------- Light-mode: Hero ---------- */
[data-theme="light"] .hero-title {
  text-shadow: none;
}

[data-theme="light"] .hero-badge {
  background: rgba(14, 116, 144, 0.04);
  border-color: rgba(14, 116, 144, 0.12);
}

[data-theme="light"] .hero-badge .dot {
  box-shadow: 0 0 6px rgba(5, 150, 105, 0.3);
}

[data-theme="light"] .page-hero .page-hero-line {
  box-shadow: none;
}

/* ---------- Light-mode: Project cards ---------- */
[data-theme="light"] .project-card {
  background: #ffffff;
  border-color: rgba(148, 163, 194, 0.15);
  box-shadow: 0 1px 4px rgba(15, 27, 54, 0.04);
}

[data-theme="light"] .project-card:hover {
  box-shadow: 0 8px 28px rgba(15, 27, 54, 0.08);
  border-color: rgba(14, 116, 144, 0.2);
}

[data-theme="light"] .project-card .card-image::after {
  background: linear-gradient(to top, #ffffff, transparent);
}

[data-theme="light"] .project-tag {
  background: rgba(14, 116, 144, 0.05);
  border-color: rgba(14, 116, 144, 0.1);
}

[data-theme="light"] .project-tag:hover {
  background: rgba(14, 116, 144, 0.1);
}

[data-theme="light"] .project-link:hover {
  text-shadow: none;
}

/* ---------- Light-mode: About page v2 ---------- */
[data-theme="light"] .about-hero-v2,
[data-theme="light"] .home-hero-v2 {
  background: #ffffff;
  border-color: rgba(148, 163, 194, 0.15);
  box-shadow: 0 1px 4px rgba(15, 27, 54, 0.04);
}

[data-theme="light"] .about-hero-glow {
  background: radial-gradient(circle, rgba(14, 116, 144, 0.05) 0%, transparent 70%);
}

[data-theme="light"] .about-hero-status {
  background: rgba(15, 118, 110, 0.06);
  border-color: rgba(15, 118, 110, 0.12);
}

[data-theme="light"] .about-section-num {
  background: rgba(14, 116, 144, 0.06);
  border-color: rgba(14, 116, 144, 0.1);
}

[data-theme="light"] .about-card {
  background: #ffffff;
  border-color: rgba(148, 163, 194, 0.15);
}

[data-theme="light"] .about-card:hover {
  border-color: rgba(14, 116, 144, 0.2);
  box-shadow: 0 4px 16px rgba(15, 27, 54, 0.06);
}

[data-theme="light"] .about-card-icon--cyan {
  background: rgba(14, 116, 144, 0.07);
}

[data-theme="light"] .about-card-icon--green {
  background: rgba(15, 118, 110, 0.07);
}

[data-theme="light"] .about-card-icon--emerald {
  background: rgba(5, 150, 105, 0.07);
}

[data-theme="light"] .about-card-icon--purple {
  background: rgba(124, 58, 237, 0.07);
}

[data-theme="light"] .about-chip {
  background: rgba(14, 116, 144, 0.05);
  border-color: rgba(14, 116, 144, 0.1);
}

[data-theme="light"] .about-chip:hover {
  background: rgba(14, 116, 144, 0.1);
}

[data-theme="light"] .about-chip--subtle {
  background: rgba(148, 163, 194, 0.06);
  border-color: rgba(148, 163, 194, 0.15);
}

[data-theme="light"] .about-chip--subtle:hover {
  border-color: rgba(14, 116, 144, 0.16);
  background: rgba(14, 116, 144, 0.05);
}

[data-theme="light"] .about-platform-item {
  background: rgba(148, 163, 194, 0.04);
  border-color: rgba(148, 163, 194, 0.12);
}

[data-theme="light"] a.about-platform-item:hover {
  border-color: rgba(14, 116, 144, 0.18);
  background: rgba(14, 116, 144, 0.04);
}

[data-theme="light"] .about-feature-badge {
  background: rgba(14, 116, 144, 0.03);
  border-color: rgba(14, 116, 144, 0.08);
}

[data-theme="light"] .about-compact-card {
  background: #ffffff;
  border-color: rgba(148, 163, 194, 0.15);
}

[data-theme="light"] .about-compact-card:hover {
  border-color: rgba(14, 116, 144, 0.16);
}

[data-theme="light"] .about-focus-item {
  background: #ffffff;
  border-color: rgba(148, 163, 194, 0.15);
}

[data-theme="light"] .about-focus-item:hover {
  border-color: rgba(14, 116, 144, 0.18);
  box-shadow: 0 4px 14px rgba(15, 27, 54, 0.05);
}

[data-theme="light"] .about-cta-inner {
  background: #ffffff;
}

[data-theme="light"] .about-cta-icon {
  background: rgba(14, 116, 144, 0.06);
}

/* ---------- Light-mode: Project v2 cards ---------- */
[data-theme="light"] .project-card-v2 {
  background: #ffffff;
  border-color: rgba(148, 163, 194, 0.15);
}

[data-theme="light"] .project-card-v2:hover {
  border-color: rgba(14, 116, 144, 0.2);
  box-shadow: 0 4px 16px rgba(15, 27, 54, 0.06);
}

/* ---------- Light-mode: Contact ---------- */
[data-theme="light"] .contact-card {
  background: #ffffff;
  border-color: rgba(148, 163, 194, 0.15);
}

[data-theme="light"] .contact-card:hover {
  border-color: rgba(14, 116, 144, 0.2);
  box-shadow: 0 8px 24px rgba(15, 27, 54, 0.06);
}

[data-theme="light"] .contact-card .contact-icon {
  background: rgba(14, 116, 144, 0.06);
  border-color: rgba(14, 116, 144, 0.1);
}

/* ---------- Light-mode: Social links ---------- */
[data-theme="light"] .social-link {
  background: #ffffff;
  border-color: rgba(148, 163, 194, 0.15);
}

[data-theme="light"] .social-link:hover {
  box-shadow: 0 4px 14px rgba(15, 27, 54, 0.06);
  background: rgba(14, 116, 144, 0.04);
}

[data-theme="light"] .social-inline-link:hover {
  box-shadow: 0 0 12px rgba(14, 116, 144, 0.06);
  background: rgba(14, 116, 144, 0.04);
}

/* ---------- Light-mode: Footer ---------- */
[data-theme="light"] .site-footer .footer-socials a {
  background: rgba(148, 163, 194, 0.06);
  border-color: rgba(148, 163, 194, 0.12);
}

[data-theme="light"] .site-footer .footer-socials a:hover {
  border-color: rgba(14, 116, 144, 0.18);
  box-shadow: 0 4px 12px rgba(15, 27, 54, 0.06);
}

/* ---------- Light-mode: Scroll to top ---------- */
[data-theme="light"] .scroll-top-btn {
  color: #fff;
  box-shadow: 0 4px 16px rgba(14, 116, 144, 0.2);
}

[data-theme="light"] .scroll-top-btn:hover {
  box-shadow: 0 8px 24px rgba(14, 116, 144, 0.28);
}

/* ---------- Light-mode: Terms ---------- */
[data-theme="light"] .terms-card {
  background: #ffffff;
  border-color: rgba(148, 163, 194, 0.15);
  box-shadow: 0 1px 4px rgba(15, 27, 54, 0.04);
}

/* ---------- Light-mode: Robot avatar ---------- */
[data-theme="light"] .robot-ring {
  box-shadow:
    0 0 12px rgba(14, 116, 144, 0.08),
    0 0 30px rgba(14, 116, 144, 0.04);
}

[data-theme="light"] .robot-ring-inner {
  background: #ffffff;
}

[data-theme="light"] .robot-glitch {
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(14, 116, 144, 0.02) 2px,
    rgba(14, 116, 144, 0.02) 4px
  );
}

[data-theme="light"] .robot-avatar-frame::before {
  background: radial-gradient(circle, rgba(14, 116, 144, 0.04) 0%, transparent 70%);
}

/* ---------- Light-mode: Visit counter ---------- */
[data-theme="light"] .visit-counter {
  background: #ffffff;
  border-color: rgba(148, 163, 194, 0.15);
  box-shadow: 0 1px 3px rgba(15, 27, 54, 0.04);
}

/* ---------- Light-mode: Avatar wrap ---------- */
[data-theme="light"] .avatar-wrap {
  box-shadow: 0 12px 32px rgba(15, 27, 54, 0.10), 0 0 0 1px rgba(148, 163, 194, 0.12);
}

/* ---------- Light-mode: Platform dots ---------- */
[data-theme="light"] .about-platform-dot--emerald { background: #059669; }
[data-theme="light"] .about-platform-dot--orange  { background: #ea580c; }
[data-theme="light"] .about-platform-dot--sky     { background: #0284c7; }

/* ---------- Light-mode: Selection & Scrollbar ---------- */
[data-theme="light"] ::selection {
  background: rgba(14, 116, 144, 0.15);
}

[data-theme="light"] ::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 194, 0.18);
}

[data-theme="light"] ::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 194, 0.32);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
  .hero-title { font-size: 2.5rem !important; }
  .page-hero h1 { font-size: 1.75rem; }
}
