/* ==========================================================================
   ÖMER YİĞİT ÖZBEY — PORTFOLIO & RESUME DESIGN SYSTEM
   Modern Tech-Forward, Monospace Accents, Dark/Light Theming, Responsive Glass
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Root Variables & Color Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Dark Theme (Default) */
  --bg-base: #080c14;
  --bg-base-rgb: 8, 12, 20;
  --bg-surface: rgba(15, 23, 42, 0.72);
  --bg-surface-elevated: rgba(22, 33, 58, 0.85);
  --bg-surface-hover: rgba(30, 45, 76, 0.65);
  --bg-glass: rgba(13, 20, 36, 0.68);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --border-hover: rgba(34, 211, 238, 0.45);
  --border-accent: rgba(6, 182, 212, 0.6);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-inverse: #090d16;
  
  /* Accents */
  --accent-cyan: #06b6d4;
  --accent-cyan-light: #22d3ee;
  --accent-cyan-dark: #0891b2;
  --accent-glow: rgba(6, 182, 212, 0.28);
  --accent-glow-strong: rgba(34, 211, 238, 0.45);
  
  --accent-emerald: #10b981;
  --accent-emerald-glow: rgba(16, 185, 129, 0.3);
  
  --accent-purple: #8b5cf6;
  --accent-amber: #f59e0b;

  --grid-dot-color: rgba(255, 255, 255, 0.05);
  --grid-line-color: rgba(255, 255, 255, 0.025);
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px -4px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 25px rgba(6, 182, 212, 0.15);
  --shadow-glow-active: 0 0 35px rgba(6, 182, 212, 0.3);
  
  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Plus Jakarta Sans', var(--font-sans);
  --font-mono: 'JetBrains Mono', 'Fira Code', ui-monospace, SFMono-Regular, Menlo, monospace;
  
  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Layout */
  --max-width: 1140px;
  --header-height: 72px;
  --border-radius-sm: 6px;
  --border-radius-md: 10px;
  --border-radius-lg: 16px;
  --border-radius-xl: 24px;
}

/* Light Theme Override */
[data-theme="light"] {
  --bg-base: #f8fafc;
  --bg-base-rgb: 248, 250, 252;
  --bg-surface: rgba(255, 255, 255, 0.88);
  --bg-surface-elevated: #ffffff;
  --bg-surface-hover: rgba(241, 245, 249, 0.95);
  --bg-glass: rgba(255, 255, 255, 0.82);
  
  --border-subtle: rgba(15, 23, 42, 0.08);
  --border-strong: rgba(15, 23, 42, 0.16);
  --border-hover: rgba(2, 132, 199, 0.45);
  --border-accent: rgba(2, 132, 199, 0.6);
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-inverse: #ffffff;
  
  --accent-cyan: #0284c7;
  --accent-cyan-light: #0ea5e9;
  --accent-cyan-dark: #0369a1;
  --accent-glow: rgba(2, 132, 199, 0.18);
  --accent-glow-strong: rgba(14, 165, 233, 0.35);
  
  --accent-emerald: #059669;
  --accent-emerald-glow: rgba(5, 150, 105, 0.25);
  
  --grid-dot-color: rgba(15, 23, 42, 0.07);
  --grid-line-color: rgba(15, 23, 42, 0.035);
  
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 8px 24px -4px rgba(15, 23, 42, 0.08);
  --shadow-glow: 0 0 20px rgba(2, 132, 199, 0.12);
  --shadow-glow-active: 0 0 30px rgba(2, 132, 199, 0.22);
}

/* --------------------------------------------------------------------------
   2. Reset & Base Styles
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.65;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

body.splash-locked {
  overflow: hidden;
}

/* Background Matrix Grid Pattern */
.bg-grid-pattern {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: 
    radial-gradient(var(--grid-dot-color) 1.2px, transparent 1.2px),
    linear-gradient(to right, var(--grid-line-color) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line-color) 1px, transparent 1px);
  background-size: 28px 28px, 112px 112px, 112px 112px;
  background-position: 0 0, 0 0, 0 0;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, black 40%, transparent 95%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, black 40%, transparent 95%);
}

/* Ambient Ambient Glow Layers */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(120px);
  z-index: 0;
  opacity: 0.5;
}

.glow-top-left {
  top: -100px;
  left: -80px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent-cyan) 0%, rgba(59, 130, 246, 0.2) 60%, transparent 80%);
}

.glow-bottom-right {
  bottom: -150px;
  right: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-purple) 0%, rgba(6, 182, 212, 0.15) 60%, transparent 80%);
}

/* Container & Typography */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  position: relative;
  z-index: 1;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul {
  list-style: none;
}

/* Glass Panel Base */
.glass-panel {
  background: var(--bg-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.glass-panel:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

/* --------------------------------------------------------------------------
   3. First-Visit Language Splash Screen Overlay
   -------------------------------------------------------------------------- */
.lang-splash-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background-color: #080c14;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

/* If user already selected language in past visit, hide immediately */
html.has-lang-preference .lang-splash-overlay {
  display: none !important;
}

.lang-splash-overlay.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-grid-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: 
    radial-gradient(rgba(255, 255, 255, 0.08) 1.2px, transparent 1.2px),
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 28px 28px, 112px 112px, 112px 112px;
}

.splash-ambient-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 550px;
  height: 550px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.22) 0%, rgba(59, 130, 246, 0.15) 50%, transparent 75%);
  filter: blur(80px);
  pointer-events: none;
}

.splash-card {
  position: relative;
  width: 100%;
  max-width: 520px;
  padding: 2.5rem 2.25rem;
  background: rgba(13, 20, 36, 0.85);
  border: 1px solid var(--border-strong);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 35px rgba(6, 182, 212, 0.2);
  border-radius: var(--border-radius-xl);
  text-align: center;
  z-index: 10;
}

.splash-corner {
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--accent-cyan);
  pointer-events: none;
}

.splash-header {
  margin-bottom: 2rem;
}

.splash-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.85rem;
}

.splash-kicker {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--accent-cyan);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 0.65rem;
}

.splash-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.splash-title-sep {
  color: var(--accent-cyan);
  opacity: 0.6;
}

.splash-desc {
  font-size: 0.9rem;
  color: #94a3b8;
  line-height: 1.55;
  max-width: 440px;
  margin: 0 auto;
}

.splash-btn-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.15rem;
}

.splash-lang-btn {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.15rem 1.1rem;
  border-radius: var(--border-radius-lg);
  background: rgba(22, 33, 58, 0.75);
  border: 1px solid var(--border-subtle);
  color: #ffffff;
  text-align: left;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.splash-lang-btn:hover {
  border-color: var(--accent-cyan);
  background: rgba(30, 45, 76, 0.95);
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.25);
}

.splash-btn-flag {
  font-size: 1.8rem;
  line-height: 1;
  flex-shrink: 0;
}

.splash-btn-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.splash-btn-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.08rem;
  color: #ffffff;
}

.splash-btn-sub {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-cyan);
  font-weight: 500;
}

.splash-btn-arrow {
  width: 16px;
  height: 16px;
  color: #94a3b8;
  transition: transform var(--transition-fast), color var(--transition-fast);
  flex-shrink: 0;
}

.splash-lang-btn:hover .splash-btn-arrow {
  color: var(--accent-cyan);
  transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   4. Header & Sticky Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 100;
  display: flex;
  align-items: center;
  background: rgba(var(--bg-base-rgb), 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color var(--transition-normal), border-color var(--transition-normal), height var(--transition-normal);
}

.site-header.scrolled {
  background: rgba(var(--bg-base-rgb), 0.92);
  border-bottom-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

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

/* Logo / Monogram */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.logo-terminal-symbol {
  color: var(--accent-cyan);
  font-weight: 800;
  animation: pulse-opac 2.5s infinite ease-in-out;
}

.logo-text {
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-dot {
  color: var(--accent-cyan);
  -webkit-text-fill-color: var(--accent-cyan);
}

/* Nav Menu Links */
.nav-list {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.4rem 0.6rem;
  border-radius: var(--border-radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.nav-num {
  color: var(--accent-cyan);
  font-size: 0.75rem;
  opacity: 0.85;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
  background-color: var(--border-subtle);
}

.nav-link.active {
  color: var(--accent-cyan);
  border-bottom: 2px solid var(--accent-cyan);
}

/* Header Controls */
.nav-controls {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.lang-controls-group {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.control-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 0.75rem;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.control-btn:hover {
  border-color: var(--border-hover);
  background: var(--bg-surface-hover);
  box-shadow: var(--shadow-glow);
}

.lang-btn {
  gap: 0.4rem;
  min-width: 64px;
}

.lang-icon {
  font-size: 0.95rem;
}

.lang-indicator {
  letter-spacing: 0.05em;
  font-weight: 700;
  color: var(--accent-cyan);
}

/* More Languages Dropdown Wrapper */
.more-lang-dropdown-wrapper {
  position: relative;
}

.more-lang-btn {
  gap: 0.35rem;
  padding: 0 0.65rem;
}

.more-lang-icon {
  width: 15px;
  height: 15px;
  color: var(--text-secondary);
}

.more-lang-text {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.chevron-down-icon {
  width: 13px;
  height: 13px;
  color: var(--text-muted);
  transition: transform var(--transition-fast);
}

.more-lang-btn[aria-expanded="true"] .chevron-down-icon {
  transform: rotate(180deg);
}

.more-lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 270px;
  padding: 1rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-md), var(--shadow-glow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast);
  z-index: 110;
}

.more-lang-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-header {
  margin-bottom: 0.85rem;
}

.dropdown-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-cyan);
  display: block;
  margin-bottom: 0.25rem;
}

.dropdown-sub {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
  display: block;
}

.google-translate-container {
  min-height: 38px;
  margin-bottom: 0.65rem;
}

/* Clean Google Translate Widget Overrides */
.goog-te-gadget-simple {
  background-color: var(--bg-surface) !important;
  border: 1px solid var(--border-subtle) !important;
  padding: 6px 10px !important;
  border-radius: var(--border-radius-sm) !important;
  font-family: var(--font-sans) !important;
  font-size: 0.82rem !important;
  line-height: 1.4 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.goog-te-gadget-simple .goog-te-menu-value {
  color: var(--text-primary) !important;
}

.goog-te-gadget-simple .goog-te-menu-value span {
  color: var(--text-primary) !important;
  border-left: none !important;
}

.goog-te-gadget-icon {
  margin-right: 6px !important;
}

.dropdown-footer {
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.5rem;
  text-align: center;
}

.powered-by-note {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
}

/* Suppress Google Translate top frame and tooltips */
.goog-te-banner-frame.skiptranslate {
  display: none !important;
}
body {
  top: 0px !important;
}
.goog-tooltip {
  display: none !important;
}
.goog-tooltip:hover {
  display: none !important;
}
.goog-text-highlight {
  background-color: transparent !important;
  box-shadow: none !important;
}

/* Theme Toggle */
.theme-btn {
  width: 38px;
  padding: 0;
}

.theme-icon {
  width: 18px;
  height: 18px;
}

/* Dark mode hides moon, shows sun; light mode does opposite */
[data-theme="dark"] .sun-icon {
  display: block;
  color: #f59e0b;
}
[data-theme="dark"] .moon-icon {
  display: none;
}

[data-theme="light"] .sun-icon {
  display: none;
}
[data-theme="light"] .moon-icon {
  display: block;
  color: #3b82f6;
}

/* Header CV / GitHub Button */
.btn-cv-header,
.btn-github-header {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: 38px;
  padding: 0 0.9rem;
  border-radius: var(--border-radius-sm);
  background: linear-gradient(135deg, var(--accent-cyan) 0%, #2563eb 100%);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: var(--shadow-glow);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-cv-header:hover,
.btn-github-header:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow-active);
  filter: brightness(1.1);
  color: #ffffff;
}

.btn-cv-header .btn-icon,
.btn-github-header .btn-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  width: 38px;
  padding: 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.hamburger-bar {
  width: 18px;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.mobile-menu-toggle.active .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-menu-toggle.active .hamburger-bar:nth-child(2) {
  opacity: 0;
}
.mobile-menu-toggle.active .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   5. Buttons & UI Elements
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.75rem 1.4rem;
  border-radius: var(--border-radius-md);
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 600;
  transition: all var(--transition-fast);
  text-decoration: none;
  cursor: pointer;
  line-height: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan) 0%, #2563eb 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-active);
  filter: brightness(1.12);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
}

.btn-secondary:hover {
  border-color: var(--border-hover);
  background: var(--bg-surface-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-tertiary {
  background: transparent;
  color: var(--text-secondary);
  border: 1px dashed var(--border-strong);
}

.btn-tertiary:hover {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.05);
  transform: translateY(-2px);
}

.btn-full-width {
  width: 100%;
}

.btn-arrow, .btn-icon {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-fast);
}

.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.btn:hover .btn-arrow {
  transform: translateX(3px);
}

.tech-pill {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  background: rgba(var(--bg-base-rgb), 0.6);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   6. Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
  padding-top: calc(var(--header-height) + 3.5rem);
  padding-bottom: 5rem;
  min-height: 88vh;
  display: flex;
  align-items: center;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

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

/* Relocation Status Pill */
.status-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.3);
  margin-bottom: 1.5rem;
}

.status-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: pulse-emerald 2s infinite ease-in-out;
}

.status-badge-text {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-emerald);
  letter-spacing: 0.02em;
}

/* Hero Titles */
.hero-name {
  font-family: var(--font-heading);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-bottom: 1rem;
}

.hero-greeting {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--accent-cyan);
}

.hero-fullname {
  font-size: 3.1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  background: linear-gradient(135deg, var(--text-primary) 40%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-role-title {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1.35rem;
}

.role-divider {
  color: var(--accent-cyan);
  opacity: 0.7;
  margin: 0 0.35rem;
}

.hero-summary-teaser {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 580px;
  margin-bottom: 2rem;
}

/* Hero Actions */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2.25rem;
}

/* Hero Meta Chips */
.hero-meta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--border-radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
}

.meta-chip-interactive {
  cursor: pointer;
  transition: all var(--transition-fast);
}

.meta-chip-interactive:hover {
  color: var(--accent-cyan);
  border-color: var(--border-hover);
  background: var(--bg-surface-hover);
}

.meta-icon {
  width: 14px;
  height: 14px;
  color: var(--accent-cyan);
}

.copy-hint {
  font-size: 0.7rem;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  background: var(--border-subtle);
  color: var(--accent-cyan);
  font-weight: 600;
}

/* Profile Visual Card */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.profile-card-wrapper {
  position: relative;
  width: 100%;
  max-width: 320px;
}

.card-glow-backdrop {
  position: absolute;
  inset: -10px;
  border-radius: var(--border-radius-xl);
  background: linear-gradient(135deg, var(--accent-cyan) 0%, #3b82f6 50%, var(--accent-purple) 100%);
  opacity: 0.35;
  filter: blur(25px);
  z-index: 0;
  transition: opacity var(--transition-normal);
}

.profile-card-wrapper:hover .card-glow-backdrop {
  opacity: 0.6;
}

.profile-card {
  position: relative;
  z-index: 1;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--border-radius-xl);
  padding: 1.25rem;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

/* Tech Corner Bracket Accents */
.profile-corner {
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: var(--accent-cyan);
  pointer-events: none;
}

.corner-tl {
  top: 8px;
  left: 8px;
  border-top: 2px solid;
  border-left: 2px solid;
}
.corner-tr {
  top: 8px;
  right: 8px;
  border-top: 2px solid;
  border-right: 2px solid;
}
.corner-bl {
  bottom: 8px;
  left: 8px;
  border-bottom: 2px solid;
  border-left: 2px solid;
}
.corner-br {
  bottom: 8px;
  right: 8px;
  border-bottom: 2px solid;
  border-right: 2px solid;
}

.profile-image-container {
  position: relative;
  width: 100%;
  height: 310px;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: #000000;
}

.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  transition: transform var(--transition-slow);
}

.profile-card:hover .profile-img {
  transform: scale(1.03);
}

.image-scanline-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));
  background-size: 100% 4px, 6px 100%;
  pointer-events: none;
  opacity: 0.6;
}

.profile-card-info {
  margin-top: 1rem;
}

.profile-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
}

.profile-card-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
}

.profile-card-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.profile-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.micro-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: var(--border-subtle);
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   7. Section Structure & Headings
   -------------------------------------------------------------------------- */
.section-block {
  padding: 5rem 0;
  position: relative;
}

.section-header {
  margin-bottom: 3rem;
}

.section-kicker {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-cyan);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 0.4rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.section-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-cyan) 0%, transparent 100%);
  margin-top: 0.75rem;
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   8. About Section
   -------------------------------------------------------------------------- */
.about-main-card {
  padding: 0;
  overflow: hidden;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--border-subtle);
}

.term-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.term-dot.red { background-color: #ef4444; }
.term-dot.yellow { background-color: #eab308; }
.term-dot.green { background-color: #22c55e; }

.term-title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-left: 0.5rem;
}

.about-body {
  padding: 2rem 2.25rem;
}

.about-text {
  font-size: 1.12rem;
  color: var(--text-primary);
  line-height: 1.8;
  margin-bottom: 2.5rem;
  font-weight: 400;
}

.about-keypoints {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.keypoint-item {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: var(--border-radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.keypoint-item:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.keypoint-icon-box {
  width: 40px;
  height: 40px;
  border-radius: var(--border-radius-sm);
  background: rgba(6, 182, 212, 0.1);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.keypoint-icon-box svg {
  width: 20px;
  height: 20px;
}

.keypoint-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--text-primary);
}

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

/* --------------------------------------------------------------------------
   9. Experience Section & Timeline
   -------------------------------------------------------------------------- */
.timeline-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
  padding-left: 2rem;
}

.timeline-container::before {
  content: '';
  position: absolute;
  top: 15px;
  bottom: 15px;
  left: 7px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-cyan) 0%, rgba(6, 182, 212, 0.15) 100%);
}

.timeline-item {
  position: relative;
}

.timeline-marker {
  position: absolute;
  top: 24px;
  left: -2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.marker-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-base);
  border: 3px solid var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
}

.timeline-card {
  padding: 1.75rem 2rem;
}

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

.exp-company-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-cyan);
  margin-bottom: 0.35rem;
}

.badge-icon {
  width: 15px;
  height: 15px;
}

.exp-role-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.exp-period-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--border-radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

.period-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-emerald);
  box-shadow: 0 0 6px var(--accent-emerald);
}

.exp-bullet-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}

.exp-bullet-list li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.exp-bullet-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-cyan);
  font-weight: 700;
}

.exp-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
}

/* --------------------------------------------------------------------------
   10. Projects Section (3-Column Responsive Grid)
   -------------------------------------------------------------------------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
}

@media (min-width: 1100px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.project-card {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-top-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.project-meta-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.project-date-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 0.18rem 0.55rem;
  border-radius: var(--border-radius-sm);
  white-space: nowrap;
}

.project-date-badge.is-active {
  color: var(--accent-emerald);
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.06);
}

.project-type-tag {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.25);
  padding: 0.2rem 0.6rem;
  border-radius: var(--border-radius-sm);
}

.p-icon {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
}

.project-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.85rem;
  line-height: 1.35;
}

.project-description {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.project-highlights {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  background: rgba(0, 0, 0, 0.15);
  padding: 0.85rem 1rem;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border-subtle);
}

.highlight-point {
  display: flex;
  gap: 0.45rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.hl-bullet {
  color: var(--accent-cyan);
  font-weight: 700;
  flex-shrink: 0;
}

.project-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
}

.project-actions {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.btn-project-github {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.65rem 1.15rem;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-sm);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-project-github:hover {
  background: rgba(30, 41, 59, 0.85);
  border-color: rgba(6, 182, 212, 0.45);
  color: var(--accent-cyan);
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.16);
  transform: translateY(-1px);
}

[data-theme="light"] .btn-project-github {
  background: rgba(241, 245, 249, 0.8);
  border-color: rgba(203, 213, 225, 0.9);
  color: var(--text-secondary);
}

[data-theme="light"] .btn-project-github:hover {
  background: #ffffff;
  border-color: var(--accent-cyan-dark);
  color: var(--accent-cyan-dark);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.15);
}

.p-github-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: var(--accent-cyan);
}

[data-theme="light"] .p-github-icon {
  color: var(--accent-cyan-dark);
}

.external-arrow {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  opacity: 0.7;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.btn-project-github:hover .external-arrow {
  transform: translate(2px, -2px);
  opacity: 1;
}

.btn-case-study {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1.25rem;
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.35);
  border-radius: var(--border-radius-sm);
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.btn-case-study:hover {
  background: rgba(6, 182, 212, 0.18);
  border-color: var(--accent-cyan);
  color: #ffffff;
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
  transform: translateY(-2px);
}

[data-theme="light"] .btn-case-study:hover {
  color: #0369a1;
  background: rgba(2, 132, 199, 0.15);
}

.cs-btn-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.cs-btn-arrow {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.btn-case-study:hover .cs-btn-arrow {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   11. Skills Section
   -------------------------------------------------------------------------- */
.skills-categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

.skill-category-card {
  padding: 1.75rem;
}

.cat-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.cat-icon-wrapper {
  width: 36px;
  height: 36px;
  border-radius: var(--border-radius-sm);
  background: rgba(6, 182, 212, 0.1);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cat-icon-wrapper svg {
  width: 18px;
  height: 18px;
}

.cat-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.skill-pills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.skill-pill-large {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.45rem 0.85rem;
  border-radius: var(--border-radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.skill-pill-large:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
  background: var(--bg-surface-hover);
  transform: translateY(-1px);
}

.skill-pill-large.highlight-pill {
  border-color: rgba(6, 182, 212, 0.35);
  color: var(--text-primary);
  background: rgba(6, 182, 212, 0.06);
}

/* --------------------------------------------------------------------------
   12. Languages Section
   -------------------------------------------------------------------------- */
.languages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.lang-card {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
}

.lang-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}

.lang-title-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-flag {
  font-size: 1.8rem;
  line-height: 1;
}

.lang-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.lang-subtitle {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  display: block;
}

.lang-badge {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
}

.c1-badge {
  background: rgba(6, 182, 212, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.native-badge {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.beginner-badge {
  background: rgba(139, 92, 246, 0.15);
  color: var(--accent-purple);
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.lang-bar-track {
  width: 100%;
  height: 6px;
  background: var(--border-subtle);
  border-radius: 9999px;
  overflow: hidden;
  margin-bottom: 1.1rem;
}

.lang-bar-fill {
  height: 100%;
  border-radius: 9999px;
  transition: width 1s ease-out;
}

.c1-fill { background: linear-gradient(90deg, var(--accent-cyan), #3b82f6); }
.native-fill { background: linear-gradient(90deg, var(--accent-emerald), #10b981); }
.beginner-fill { background: linear-gradient(90deg, var(--accent-purple), #a855f7); }

.lang-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-top: auto;
}

/* --------------------------------------------------------------------------
   13. Education Section
   -------------------------------------------------------------------------- */
.education-card-wrapper {
  max-width: 900px;
}

.education-card {
  padding: 2.25rem;
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 1.75rem;
  align-items: flex-start;
}

.edu-icon-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.3);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
}

.edu-icon-circle svg {
  width: 28px;
  height: 28px;
}

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

.edu-school-name {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.edu-department {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent-cyan);
}

.edu-period-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--border-radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.time-icon {
  width: 14px;
  height: 14px;
  color: var(--accent-cyan);
}

.edu-summary-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.edu-topics-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

/* --------------------------------------------------------------------------
   14. Hobbies Section
   -------------------------------------------------------------------------- */
.hobbies-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.hobby-card {
  padding: 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hobby-icon {
  font-size: 2.2rem;
  margin-bottom: 0.85rem;
  line-height: 1;
}

.hobby-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.hobby-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   15. Contact & Form Section
   -------------------------------------------------------------------------- */
.contact-section {
  padding-bottom: 6rem;
}

.contact-layout-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: stretch;
}

.contact-info-col {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
}

.contact-col-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.85rem;
  line-height: 1.3;
}

.contact-col-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 2rem;
}

.contact-details-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2.25rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-item-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--border-radius-sm);
  background: rgba(6, 182, 212, 0.1);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item-icon svg {
  width: 18px;
  height: 18px;
}

.contact-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
}

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

.link-styled {
  color: var(--accent-cyan);
  transition: text-decoration var(--transition-fast);
}

.link-styled:hover {
  text-decoration: underline;
}

.email-copy-flex {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.btn-copy-mini {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-cyan);
  transition: all var(--transition-fast);
}

.btn-copy-mini:hover {
  border-color: var(--border-hover);
  background: var(--bg-surface-hover);
}

.mini-copy-icon {
  width: 12px;
  height: 12px;
}

/* Privacy-Preserving Dossier & CV Request Card */
.contact-privacy-box {
  margin-top: auto;
  padding: 1.25rem 1.4rem;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.75) 0%, rgba(22, 33, 58, 0.65) 100%);
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: var(--border-radius-md);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2), 0 0 15px rgba(6, 182, 212, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

[data-theme="light"] .contact-privacy-box {
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.9) 0%, rgba(241, 245, 249, 0.9) 100%);
  border-color: rgba(2, 132, 199, 0.25);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.privacy-box-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.privacy-icon-badge {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.privacy-icon-badge svg {
  width: 18px;
  height: 18px;
}

[data-theme="light"] .privacy-icon-badge {
  background: rgba(2, 132, 199, 0.1);
  border-color: rgba(2, 132, 199, 0.3);
  color: var(--accent-cyan-dark);
}

.privacy-badge-tag {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent-emerald);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.privacy-card-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0.1rem 0 0 0;
}

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

.privacy-actions-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

.contact-download-box {
  margin-top: auto;
}

/* Contact Message Form */
.contact-form-col {
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
}

.form-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-subtle);
}

.form-terminal-tag {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

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

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

.inquiry-form {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

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

.form-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-input, .form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  outline: none;
  transition: all var(--transition-fast);
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

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

/* --------------------------------------------------------------------------
   16. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: rgba(var(--bg-base-rgb), 0.9);
  padding: 2rem 0;
  position: relative;
  z-index: 10;
}

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

.footer-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-logo {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text-primary);
}

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

.footer-center {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  flex-wrap: wrap;
}

.footer-github-link,
.footer-repo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-github-link:hover,
.footer-repo-link:hover {
  color: var(--accent-cyan);
}

[data-theme="light"] .footer-github-link:hover,
[data-theme="light"] .footer-repo-link:hover {
  color: var(--accent-cyan-dark);
}

.footer-gh-icon,
.footer-repo-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.footer-sep {
  color: var(--text-muted);
  opacity: 0.6;
}

.footer-tech-tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.back-to-top-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.back-to-top-link:hover {
  color: var(--accent-cyan);
}

.top-icon {
  width: 14px;
  height: 14px;
  transition: transform var(--transition-fast);
}

.back-to-top-link:hover .top-icon {
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   17. Toast Notification
   -------------------------------------------------------------------------- */
.toast-popup {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--accent-cyan);
  box-shadow: var(--shadow-glow-active), var(--shadow-md);
  border-radius: var(--border-radius-md);
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  z-index: 1000;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity var(--transition-normal), transform var(--transition-normal);
}

.toast-popup.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.toast-popup.toast-error {
  border-color: #ef4444;
  box-shadow: 0 0 25px rgba(239, 68, 68, 0.3), var(--shadow-md);
}

.toast-icon {
  width: 18px;
  height: 18px;
  color: var(--accent-emerald);
  flex-shrink: 0;
}

.toast-popup.toast-error .toast-icon {
  color: #ef4444;
}

/* --------------------------------------------------------------------------
   18. Scroll-Reveal Animation
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger transition delay helpers */
[data-reveal]:nth-child(2) { transition-delay: 0.08s; }
[data-reveal]:nth-child(3) { transition-delay: 0.16s; }
[data-reveal]:nth-child(4) { transition-delay: 0.24s; }

/* --------------------------------------------------------------------------
   19. Keyframes
   -------------------------------------------------------------------------- */
@keyframes pulse-emerald {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }
}

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

/* --------------------------------------------------------------------------
   20. Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: left;
  }

  .hero-visual {
    justify-content: flex-start;
  }

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

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

  .hobbies-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: rgba(var(--bg-base-rgb), 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-strong);
    padding: 1.5rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition-normal), opacity var(--transition-normal);
  }

  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .nav-link {
    font-size: 1rem;
    padding: 0.6rem 0.8rem;
    width: 100%;
  }

  .mobile-menu-toggle {
    display: inline-flex;
  }

  .hero-fullname {
    font-size: 2.35rem;
  }

  .skills-categories-grid {
    grid-template-columns: 1fr;
  }

  .education-card {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .edu-icon-col {
    display: none;
  }

  .timeline-container {
    padding-left: 1.5rem;
  }

  .timeline-marker {
    left: -1.5rem;
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 1.25rem;
  }

  .splash-btn-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-fullname {
    font-size: 2rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

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

  .about-body {
    padding: 1.5rem 1.25rem;
  }

  .timeline-card {
    padding: 1.25rem 1.25rem;
  }

  .splash-card {
    padding: 1.75rem 1.25rem;
  }

  .more-lang-dropdown {
    width: calc(100vw - 2rem);
    right: -70px;
  }
}

/* --------------------------------------------------------------------------
   20. Case Study Detail View Modal Overlay & Benchmarks
   -------------------------------------------------------------------------- */
body.modal-locked {
  overflow: hidden !important;
}

.case-study-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

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

.cs-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 16, 0.84);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  cursor: pointer;
}

[data-theme="light"] .cs-modal-backdrop {
  background: rgba(15, 23, 42, 0.68);
}

.cs-modal-dialog {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 880px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-accent);
  border-radius: var(--border-radius-lg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.65), 0 0 35px rgba(6, 182, 212, 0.25);
  transform: scale(0.96) translateY(12px);
  transition: transform var(--transition-normal);
  overflow: hidden;
}

.case-study-modal-overlay.active .cs-modal-dialog {
  transform: scale(1) translateY(0);
}

/* Cyber Decorative Corners */
.cs-corner {
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--accent-cyan);
  border-style: solid;
  pointer-events: none;
  z-index: 5;
}

.cs-corner.corner-tl {
  top: -1px;
  left: -1px;
  border-width: 2px 0 0 2px;
}

.cs-corner.corner-tr {
  top: -1px;
  right: -1px;
  border-width: 2px 2px 0 0;
}

.cs-corner.corner-bl {
  bottom: -1px;
  left: -1px;
  border-width: 0 0 2px 2px;
}

.cs-corner.corner-br {
  bottom: -1px;
  right: -1px;
  border-width: 0 2px 2px 0;
}

/* Modal Header */
.cs-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.75rem 2rem 1.25rem 2rem;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(var(--bg-base-rgb), 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 10;
  flex-shrink: 0;
}

.cs-modal-header-meta {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

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

.cs-kicker {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-cyan);
  letter-spacing: 0.08em;
}

.cs-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.18rem 0.55rem;
  border-radius: var(--border-radius-sm);
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.cs-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.35;
}

.cs-modal-close {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.75rem;
  border-radius: var(--border-radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.cs-modal-close:hover {
  color: var(--text-primary);
  border-color: var(--accent-cyan);
  background: var(--bg-surface-hover);
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.25);
}

.cs-esc-pill {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
}

[data-theme="light"] .cs-esc-pill {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.1);
}

.cs-close-icon {
  width: 18px;
  height: 18px;
}

/* Modal Body */
.cs-modal-body {
  padding: 2rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}

.cs-modal-body::-webkit-scrollbar {
  width: 6px;
}

.cs-modal-body::-webkit-scrollbar-thumb {
  background-color: var(--border-strong);
  border-radius: 3px;
}

/* Sections */
.cs-section {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.cs-section-label {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.cs-sec-num {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-cyan);
  letter-spacing: 0.06em;
  position: relative;
}

.cs-sec-num::after {
  content: '';
  display: inline-block;
  vertical-align: middle;
  margin-left: 0.75rem;
  width: 40px;
  height: 1px;
  background: linear-gradient(to right, var(--accent-cyan), transparent);
}

.cs-prose-text {
  font-size: 0.96rem;
  color: var(--text-primary);
  line-height: 1.75;
  font-weight: 400;
}

/* Architecture List */
.cs-arch-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.cs-arch-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1.1rem 1.25rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-md);
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.cs-arch-item:hover {
  border-color: var(--border-hover);
  transform: translateX(3px);
}

.cs-arch-bullet {
  color: var(--accent-cyan);
  font-size: 1.1rem;
  line-height: 1.2;
  flex-shrink: 0;
  font-weight: 700;
}

.cs-arch-content {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.cs-arch-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.cs-arch-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Benchmark Results Table */
.cs-table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  box-shadow: var(--shadow-sm);
  scrollbar-width: thin;
}

.cs-benchmark-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}

.cs-benchmark-table th,
.cs-benchmark-table td {
  padding: 0.95rem 1.15rem;
  border-bottom: 1px solid var(--border-subtle);
}

.cs-benchmark-table th {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  background: rgba(var(--bg-base-rgb), 0.5);
  white-space: nowrap;
}

.cs-benchmark-table th.th-highlight {
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.12);
  border-left: 1px solid rgba(6, 182, 212, 0.3);
  border-right: 1px solid rgba(6, 182, 212, 0.3);
}

.cs-metric-cell {
  color: var(--text-primary);
  font-weight: 600;
  white-space: nowrap;
}

.cs-num-cell {
  font-family: var(--font-mono);
  color: var(--text-secondary);
  white-space: nowrap;
}

.cs-system-cell {
  background: rgba(6, 182, 212, 0.06);
  border-left: 1px solid rgba(6, 182, 212, 0.25);
  border-right: 1px solid rgba(6, 182, 212, 0.25);
}

.cs-cell-highlight {
  color: var(--accent-cyan-light);
  font-weight: 700;
}

[data-theme="light"] .cs-cell-highlight {
  color: var(--accent-cyan-dark);
}

.cs-benchmark-table tr:last-child td {
  border-bottom: none;
}

.cs-benchmark-table tbody tr:hover td {
  background: var(--bg-surface-hover);
}

.cs-benchmark-table tbody tr:hover td.cs-system-cell {
  background: rgba(6, 182, 212, 0.14);
}

/* Optional Visual & Telemetry Gallery */
.cs-section-visual {
  margin-top: 0.5rem;
}

.cs-visual-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.cs-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--border-radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.cs-tab-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
  background: var(--bg-surface-hover);
}

.cs-tab-btn.active {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.12);
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.2);
}

.cs-tab-num {
  color: var(--accent-cyan);
  font-size: 0.72rem;
  opacity: 0.85;
}

.cs-visual-box {
  border: 1px solid var(--border-accent);
  border-radius: var(--border-radius-md);
  background: var(--bg-surface-elevated);
  overflow: hidden;
  box-shadow: var(--shadow-md), 0 0 25px rgba(6, 182, 212, 0.15);
  display: flex;
  flex-direction: column;
}

.cs-visual-frame {
  position: relative;
  background: #ffffff;
  padding: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cs-visual-link {
  display: block;
  width: 100%;
  position: relative;
  cursor: zoom-in;
  text-decoration: none;
}

.cs-visual-img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: contain;
  display: block;
  border-radius: var(--border-radius-sm);
  transition: opacity 150ms ease, transform var(--transition-fast);
}

.cs-visual-link:hover .cs-visual-img {
  transform: scale(1.008);
}

.cs-visual-zoom-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  border-radius: var(--border-radius-sm);
  background: rgba(8, 12, 20, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-accent);
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  pointer-events: none;
  opacity: 0.85;
  transition: opacity var(--transition-fast);
}

.cs-visual-link:hover .cs-visual-zoom-badge {
  opacity: 1;
}

.cs-visual-caption {
  padding: 0.95rem 1.25rem;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-family: var(--font-sans);
  text-align: left;
}

.cs-caption-icon {
  width: 16px;
  height: 16px;
  color: var(--accent-cyan);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Inference Sample Terminal Box (for LLM Case Study) */
.cs-section-sample {
  margin-top: 0.5rem;
}

.cs-sample-box {
  background: var(--bg-base);
  border: 1px solid var(--border-accent);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md), 0 0 20px rgba(6, 182, 212, 0.12);
}

.cs-sample-terminal-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: rgba(var(--bg-base-rgb), 0.95);
  border-bottom: 1px solid var(--border-subtle);
}

.cs-sample-terminal-title {
  margin-left: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-muted);
}

.cs-sample-content {
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  font-family: var(--font-mono);
  font-size: 0.88rem;
}

.cs-sample-line {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.cs-prompt-tag {
  color: var(--accent-cyan);
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cs-sample-line.prompt-line code {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.65rem 0.9rem;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  display: block;
}

.cs-response-tag {
  color: var(--accent-emerald);
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cs-sample-line.response-line code {
  color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.07);
  padding: 0.65rem 0.9rem;
  border-radius: var(--border-radius-sm);
  border: 1px solid rgba(16, 185, 129, 0.25);
  line-height: 1.6;
  font-family: var(--font-mono);
  display: block;
}

/* Workplace Data Retention Notice & Specs (E-Commerce Case Study) */
.cs-notice-card {
  border: 1px solid rgba(234, 179, 8, 0.35);
  background: rgba(234, 179, 8, 0.05);
  border-radius: var(--border-radius-md);
  padding: 1.25rem 1.5rem;
  box-shadow: 0 0 20px rgba(234, 179, 8, 0.08);
}

.cs-notice-header {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 0.75rem;
}

.cs-notice-icon {
  width: 22px;
  height: 22px;
  color: #eab308;
  flex-shrink: 0;
  margin-top: 2px;
}

.cs-notice-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: #eab308;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
}

.cs-notice-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.cs-notice-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.cs-specs-table th {
  background: rgba(6, 182, 212, 0.1);
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  font-size: 0.82rem;
}

.cs-spec-val {
  font-family: var(--font-mono);
  color: var(--text-primary);
  font-size: 0.85rem;
}

/* Open-Source Verification Showcase Card & Error Insight Card */
.cs-github-card {
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.cs-github-card:hover {
  border-color: rgba(6, 182, 212, 0.45) !important;
  box-shadow: 0 0 25px rgba(6, 182, 212, 0.12);
}

[data-theme="light"] .cs-github-card {
  background: linear-gradient(135deg, rgba(241, 245, 249, 0.95) 0%, rgba(226, 232, 240, 0.92) 100%) !important;
  border-color: rgba(2, 132, 199, 0.3) !important;
}

[data-theme="light"] .cs-insight-card {
  background: rgba(2, 132, 199, 0.08) !important;
  border-color: rgba(2, 132, 199, 0.3) !important;
}

/* Mobile responsive adjustments */
@media (max-width: 680px) {
  .case-study-modal-overlay {
    padding: 0.75rem;
  }
  
  .cs-modal-header {
    padding: 1.25rem 1.25rem 1rem 1.25rem;
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .cs-modal-close {
    align-self: flex-end;
  }

  .cs-title {
    font-size: 1.15rem;
  }

  .cs-modal-body {
    padding: 1.25rem;
    gap: 1.5rem;
  }

  .cs-benchmark-table th,
  .cs-benchmark-table td {
    padding: 0.75rem 0.85rem;
    font-size: 0.82rem;
  }
}

/* --------------------------------------------------------------------------
   21. Print Stylesheet
   -------------------------------------------------------------------------- */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 11pt;
  }

  .case-study-modal-overlay,
  .lang-splash-overlay,
  .site-header,
  .nav-controls,
  .bg-grid-pattern,
  .ambient-glow,
  .site-footer,
  .toast-popup,
  .contact-form-col,
  .hero-actions,
  .card-glow-backdrop {
    display: none !important;
  }

  .section-block {
    padding: 1.5rem 0 !important;
    page-break-inside: avoid;
  }

  .glass-panel {
    background: transparent !important;
    border: 1px solid #ddd !important;
    box-shadow: none !important;
  }

  .hero-fullname {
    -webkit-text-fill-color: #000000 !important;
    font-size: 22pt !important;
  }
}
