/* ==========================================================================
   TRAN TRONG CHIEN — SOFTWARE PORTFOLIO 2026
   Modern High-End Dark UI System
   ========================================================================== */

:root {
  color-scheme: dark;

  /* Colors */
  --bg-base: #060911;
  --bg-surface: #0b111e;
  --bg-card: rgba(15, 23, 42, 0.65);
  --bg-card-hover: rgba(22, 34, 60, 0.75);
  --bg-glass: rgba(11, 17, 30, 0.75);

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(56, 189, 248, 0.4);
  --border-accent: rgba(16, 185, 129, 0.35);

  /* Accents */
  --accent-emerald: #10b981;
  --accent-emerald-light: #34d399;
  --accent-cyan: #06b6d4;
  --accent-sky: #38bdf8;
  --accent-indigo: #6366f1;

  /* Typography Colors */
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #8492a6;
  --text-code: #94a3b8;

  /* Fonts */
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Menlo, Consolas, monospace;

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

/* Reset & Box Model */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-base);
}

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

/* Accessibility */
.skip-link {
  position: fixed;
  top: -120px;
  left: 20px;
  z-index: 100;
  background: var(--accent-emerald);
  color: #060911;
  padding: 12px 20px;
  font-weight: 700;
  border-radius: 8px;
  transition: top 0.2s;
  text-decoration: none;
}
.skip-link:focus {
  top: 16px;
}

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

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

/* Container */
.container {
  width: min(100% - 48px, 1220px);
  margin-inline: auto;
}

/* Ambient Background Glows */
.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
}
.glow-top {
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: min(90vw, 850px);
  height: 480px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.18) 0%, rgba(16, 185, 129, 0.12) 50%, transparent 70%);
}
.glow-middle {
  top: 1600px;
  right: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, rgba(6, 182, 212, 0.08) 50%, transparent 70%);
}

/* Gradient Text Helper */
.gradient-text {
  background: linear-gradient(135deg, #38bdf8 0%, #34d399 70%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* ==========================================================================
   SITE HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 20px;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand-badge {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.brand-monogram {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: -0.05em;
  color: var(--text-primary);
}
.brand-glow-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
}
.brand-text {
  display: flex;
  flex-direction: column;
}
.brand-name {
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text-primary);
}
.brand-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent-emerald);
}

/* Nav Links */
.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-secondary);
  position: relative;
  padding: 6px 0;
}
.nav-link:hover, .nav-link.is-active {
  color: var(--text-primary);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-emerald);
  transition: width var(--transition-normal);
  border-radius: 2px;
}
.nav-link:hover::after, .nav-link.is-active::after {
  width: 100%;
}

/* Header Action Buttons */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Common Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: 10px;
  transition: all var(--transition-normal);
  white-space: nowrap;
}
.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
  border-radius: 8px;
}
.btn-primary {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #060911;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
  position: relative;
  overflow: hidden;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.45);
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  backdrop-filter: blur(10px);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}
.btn-outline {
  border: 1px solid var(--border-subtle);
  background: rgba(15, 23, 42, 0.6);
  color: var(--text-secondary);
}
.btn-outline:hover {
  border-color: var(--accent-emerald);
  color: var(--text-primary);
  background: rgba(16, 185, 129, 0.08);
}
.btn-ghost {
  color: var(--text-secondary);
}
.btn-ghost:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}
.btn-block {
  width: 100%;
}

/* Mobile Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.03);
}
.menu-toggle .bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.menu-toggle[aria-expanded="true"] .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .bar:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded="true"] .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  position: relative;
  z-index: 1;
  padding: 80px 0 60px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(420px, 0.85fr);
  gap: 50px;
  align-items: center;
}

/* Status Pill */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  border-radius: 100px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  margin-bottom: 24px;
}
.pulse-indicator {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 10px;
  height: 10px;
}
.pulse-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--accent-emerald);
  animation: pulse-ring 2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}
.pulse-core {
  position: relative;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-emerald);
}
@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(2.2); opacity: 0; }
  100% { transform: scale(0.95); opacity: 0; }
}
.status-text {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-emerald-light);
  letter-spacing: 0.04em;
}

/* Hero Typography */
.hero-heading {
  font-size: clamp(2.6rem, 5.2vw, 4.4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  margin-bottom: 24px;
}
.hero-desc {
  font-size: 1.12rem;
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 620px;
  margin-bottom: 34px;
}
.hero-desc strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Hero Actions */
.hero-buttons {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

/* Tech pills in hero */
.hero-tech-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}
.tech-pill-label {
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-right: 4px;
}
.pill {
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

/* ==========================================================================
   CODE CONSOLE VISUALIZER
   ========================================================================== */
.hero-console-wrap {
  position: relative;
}
.hero-console-wrap::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.35), rgba(16, 185, 129, 0.3), rgba(99, 102, 241, 0.2));
  border-radius: 18px;
  filter: blur(12px);
  opacity: 0.5;
  z-index: 0;
}

.code-console {
  position: relative;
  z-index: 1;
  border-radius: 16px;
  background: #090e1a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  font-family: var(--font-mono);
}

.console-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: rgba(15, 23, 42, 0.85);
  border-bottom: 1px solid var(--border-subtle);
  gap: 12px;
}
.window-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}
.window-controls .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }

.console-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
}
.console-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
}
.console-tab:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}
.console-tab.is-active {
  color: var(--text-primary);
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.3);
}
.console-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald-light);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Console Body & Code Highlighting */
.console-body {
  padding: 22px;
  min-height: 290px;
  background: #070c16;
  overflow-x: auto;
}
.code-block {
  display: none;
  font-size: 0.82rem;
  line-height: 1.7;
  color: #e2e8f0;
  white-space: pre;
}
.code-block.code-active {
  display: block;
}

/* Syntax Highlighting Colors */
.c-comment { color: #64748b; font-style: italic; }
.c-kw { color: #c084fc; font-weight: 600; }
.c-decorator { color: #f59e0b; }
.c-fn { color: #60a5fa; }
.c-str { color: #34d399; }
.c-type { color: #38bdf8; }
.c-num { color: #fb923c; }

/* Console Footer */
.console-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  background: rgba(15, 23, 42, 0.7);
  border-top: 1px solid var(--border-subtle);
  font-size: 0.72rem;
}
.status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-emerald-light);
  font-weight: 700;
}
.status-led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
}
.console-stats {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
}

/* ==========================================================================
   METRICS BAR
   ========================================================================== */
.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 70px;
}
.metric-card {
  padding: 24px;
  border-radius: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal), border-color var(--transition-normal);
}
.metric-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.16);
}
.metric-num {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  background: linear-gradient(135deg, #f8fafc 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
  margin-bottom: 6px;
}
.metric-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.metric-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ==========================================================================
   PROJECTS SECTION & BENTO GRID
   ========================================================================== */
.projects-section {
  padding: 110px 0 90px;
  position: relative;
  z-index: 1;
}

.section-header {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 460px);
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 36px;
}
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--accent-emerald-light);
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}
.kicker-glow {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
}
.section-title {
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.04em;
  color: var(--text-primary);
}
.section-subtitle {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* Filter Navigation */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}
.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}
.filter-pill:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.18);
}
.filter-pill.is-active {
  background: rgba(16, 185, 129, 0.12);
  border-color: var(--accent-emerald);
  color: var(--accent-emerald-light);
}
.filter-count {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.08);
}
.filter-pill.is-active .filter-count {
  background: var(--accent-emerald);
  color: #060911;
  font-weight: 700;
}

/* Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

/* Project Card */
.project-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
  backdrop-filter: blur(14px);
}
.project-card:hover {
  transform: translateY(-5px);
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4), 0 0 30px rgba(56, 189, 248, 0.07);
}

/* Spotlight Effect on Card */
.spotlight {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle 280px at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(56, 189, 248, 0.1), transparent 80%);
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 1;
}
.project-card:hover .spotlight {
  opacity: 1;
}

/* Featured Large Card */
.featured-card {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
}
.featured-card .card-content {
  padding: 44px;
}
.featured-card .card-title {
  font-size: clamp(2rem, 3.2vw, 2.8rem);
}

/* Card Content Area */
.card-content {
  padding: 34px;
  display: flex;
  flex-direction: column;
  flex: 1;
  position: relative;
  z-index: 2;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 12px;
}
.badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}
.badge-accent {
  background: rgba(16, 185, 129, 0.14);
  color: var(--accent-emerald-light);
  border-color: rgba(16, 185, 129, 0.3);
}
.card-id {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
}

.card-title {
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 14px;
}
.card-desc {
  font-size: 0.97rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* Tech Tags */
.tech-stack-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  margin-bottom: 26px;
}
.tech-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--accent-sky);
}

/* Footer Actions */
.card-footer-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}
.text-anchor {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-emerald-light);
}
.text-anchor:hover {
  text-decoration: underline;
}

/* ==========================================================================
   PROJECT VISUAL MOCKUPS (HTML/CSS ART & DIAGRAMS)
   ========================================================================== */
.card-visual {
  position: relative;
  overflow: hidden;
  background: #080d18;
  border-bottom: 1px solid var(--border-subtle);
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.featured-card .card-visual {
  border-bottom: none;
  border-left: 1px solid var(--border-subtle);
  height: 100%;
  min-height: 420px;
}

/* Visual 1: GreenMap Radar & IoT Node */
.visual-greenmap {
  background: radial-gradient(circle at 60% 50%, #0d221c 0%, #081110 70%, #050a0a 100%);
  padding: 30px;
}
.mockup-hud {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.hud-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-emerald-light);
}
.hud-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}
.hud-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
}
.hud-coords {
  color: var(--text-muted);
}

.radar-container {
  position: relative;
  height: 190px;
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 12px;
  background: rgba(6, 20, 16, 0.6);
  overflow: hidden;
}
.radar-sweep {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 220px;
  height: 220px;
  transform-origin: 0 0;
  background: conic-gradient(from 0deg, rgba(16, 185, 129, 0.45) 0deg, rgba(16, 185, 129, 0) 65deg);
  animation: radar-spin 4s linear infinite;
  border-radius: 50%;
}
@keyframes radar-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.radar-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 1px dashed rgba(16, 185, 129, 0.25);
  border-radius: 50%;
}
.radar-ring.r1 { width: 70px; height: 70px; }
.radar-ring.r2 { width: 130px; height: 130px; }
.radar-ring.r3 { width: 190px; height: 190px; }

.sensor-node {
  position: absolute;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(13, 34, 27, 0.9);
  border: 1px solid var(--accent-emerald);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}
.node-ping {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
}
.node-1 { top: 25%; left: 32%; }
.node-2 { bottom: 20%; right: 28%; }
.node-3 { top: 60%; left: 16%; }

.hud-stream {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-secondary);
}
.stream-line {
  display: flex;
  align-items: center;
  gap: 8px;
}
.stream-badge {
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent-sky);
  font-weight: 700;
}
.stream-badge.ok {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald-light);
}

/* Visual 2: Circle K Microservices Diagram */
.visual-microservices {
  background: radial-gradient(circle at 50% 50%, #151d30 0%, #090e1a 100%);
  padding: 20px;
}
.microservices-diagram {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.gateway-node {
  padding: 10px 24px;
  border-radius: 10px;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 1px solid var(--accent-sky);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.25);
  text-align: center;
  font-family: var(--font-mono);
}
.node-type {
  display: block;
  font-size: 0.62rem;
  font-weight: 800;
  color: var(--accent-sky);
  letter-spacing: 0.1em;
}
.node-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
}

.flow-connectors {
  display: flex;
  justify-content: space-around;
  width: 80%;
  height: 20px;
}
.connector-line {
  width: 2px;
  height: 100%;
  background: dashed rgba(56, 189, 248, 0.4);
  position: relative;
}
.connector-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: -2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-emerald);
  animation: flow-down 1.8s ease-in-out infinite;
}
@keyframes flow-down {
  0% { top: 0; opacity: 0; }
  30% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

.service-cluster {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  width: 100%;
}
.service-pill {
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.dot-green {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
}

/* Visual 3: Web GIS Map Visual */
.visual-gis {
  background: #071018;
  position: relative;
}
.map-mockup {
  position: relative;
  width: 100%;
  height: 100%;
}
.map-radar-bg {
  position: absolute;
  inset: 0;
  opacity: 0.25;
  background-image: 
    linear-gradient(rgba(56, 189, 248, 0.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.2) 1px, transparent 1px);
  background-size: 28px 28px;
}
.map-pin {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 2;
}
.pin-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-sky);
  border: 3px solid #071018;
  box-shadow: 0 0 14px var(--accent-sky);
}
.pin-popup {
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(11, 23, 38, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: var(--text-primary);
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}
.pin-hanoi { top: 22%; left: 34%; }
.pin-hue { top: 52%; left: 52%; }
.pin-hoian { bottom: 22%; right: 24%; }

.map-status-pill {
  position: absolute;
  bottom: 14px;
  left: 18px;
  z-index: 3;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(11, 23, 38, 0.88);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.sparql-indicator {
  font-weight: 800;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.15);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Visual 4: API Console Visual */
.visual-api {
  background: #090e1a;
  padding: 20px;
}
.api-console {
  width: 100%;
  max-width: 440px;
  border-radius: 10px;
  background: #060911;
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  font-family: var(--font-mono);
}
.api-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: rgba(15, 23, 42, 0.8);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.72rem;
}
.api-method {
  font-weight: 800;
  color: var(--accent-emerald-light);
  background: rgba(16, 185, 129, 0.15);
  padding: 2px 6px;
  border-radius: 4px;
}
.api-url {
  color: var(--text-secondary);
  font-weight: 600;
}
.api-status {
  font-weight: 700;
  color: var(--accent-sky);
}
.api-json-body {
  padding: 14px 18px;
  font-size: 0.76rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* Visual 5: Desktop WinForms Visual */
.visual-desktop {
  background: #0c1424;
  padding: 20px;
}
.desktop-mockup-frame {
  width: 100%;
  max-width: 440px;
  border-radius: 8px;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
.desktop-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #1e293b;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.win-app-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.win-window-btns {
  display: flex;
  gap: 6px;
}
.win-window-btns i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #475569;
}
.desktop-grid-view {
  padding: 14px;
}
.desktop-stats-row {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}
.mini-stat {
  flex: 1;
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.68rem;
}
.mini-stat span { display: block; color: var(--text-muted); }
.mini-stat strong { font-size: 0.85rem; color: var(--accent-sky); }

.table-mock {
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
}
.table-row {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 0.8fr 1fr;
  padding: 6px 10px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}
.table-row.head {
  background: rgba(255, 255, 255, 0.05);
  font-weight: 700;
  color: var(--text-muted);
}
.status-chip {
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.6rem;
  font-weight: 700;
  text-align: center;
}
.status-chip.active {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald-light);
}

/* ==========================================================================
   VISUAL 6: INTERACTIVE BEFORE/AFTER SLIDER
   ========================================================================== */
.visual-photo-compare {
  background: #080c16;
  position: relative;
  cursor: ew-resize;
  user-select: none;
}
.comparison-slider {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.image-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.layer-before {
  width: 50%;
  overflow: hidden;
  border-right: 2px solid #ffffff;
  z-index: 2;
}

/* Photo Art Mockup */
.photo-art {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Restored sharp styling */
.restored-art {
  background: radial-gradient(circle at 50% 50%, #1e3a5f 0%, #0d1e34 50%, #080f1a 100%);
}
.face-glow {
  width: 120px;
  height: 140px;
  border-radius: 50% 50% 40% 40%;
  background: radial-gradient(circle, rgba(147, 197, 253, 0.8) 0%, rgba(96, 165, 250, 0.4) 60%, transparent 80%);
  box-shadow: 0 0 50px rgba(56, 189, 248, 0.6);
  filter: blur(1px);
}

/* Degraded vintage styling */
.degraded-art {
  background: radial-gradient(circle at 50% 50%, #3e3226 0%, #251c14 60%, #150f0a 100%);
  filter: contrast(0.8) sepia(0.6) blur(2.5px);
  width: 100%;
  min-width: 480px;
}
.noise-overlay {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 0);
  background-size: 4px 4px;
}
.scratch-line {
  position: absolute;
  background: rgba(255, 255, 255, 0.4);
}
.scratch-line.s1 { width: 1px; height: 120px; left: 35%; top: 15%; transform: rotate(14deg); }
.scratch-line.s2 { width: 2px; height: 90px; left: 55%; top: 30%; transform: rotate(-8deg); }

.label-badge {
  position: absolute;
  top: 14px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  z-index: 3;
}
.label-right {
  right: 14px;
  background: rgba(16, 185, 129, 0.9);
  color: #060911;
}
.label-left {
  left: 14px;
  background: rgba(239, 68, 68, 0.8);
  color: #ffffff;
}

/* Draggable divider handle */
.slider-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: transparent;
  z-index: 4;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.divider-thumb {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ffffff;
  color: #090e1a;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: ew-resize;
  pointer-events: auto;
}
.interactive-hint {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.65);
  background: rgba(0, 0, 0, 0.6);
  padding: 3px 10px;
  border-radius: 100px;
  pointer-events: none;
  z-index: 5;
}

/* More on Github banner */
.more-repos-banner {
  margin-top: 40px;
  padding: 30px 38px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(30, 41, 59, 0.5));
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.banner-text h4 {
  font-size: 1.15rem;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.banner-text p {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* ==========================================================================
   CAPABILITIES & ARCHITECTURE SECTION
   ========================================================================== */
.capabilities-section {
  padding: 100px 0;
  position: relative;
  z-index: 1;
}

.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.capability-card {
  padding: 36px 32px;
  border-radius: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal), border-color var(--transition-normal);
}
.capability-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.3);
}

.cap-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.cap-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: var(--accent-sky);
  display: flex;
  align-items: center;
  justify-content: center;
}
.capability-card:nth-child(2) .cap-icon-box {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.25);
  color: var(--accent-emerald-light);
}
.capability-card:nth-child(3) .cap-icon-box {
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.25);
  color: var(--accent-indigo);
}

.cap-step {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.capability-card h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 12px;
}
.capability-card > p {
  font-size: 0.94rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 22px;
}

.cap-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
  padding-top: 20px;
  margin-top: auto;
}
.cap-features li {
  position: relative;
  padding-left: 18px;
  line-height: 1.5;
}
.cap-features li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--accent-emerald);
  font-weight: 800;
  font-size: 1.1rem;
  line-height: 1;
}
.cap-features li span {
  color: var(--text-primary);
  font-weight: 600;
}

/* ==========================================================================
   PHILOSOPHY & CIRCUIT SECTION
   ========================================================================== */
.philosophy-section {
  padding: 60px 0 100px;
  position: relative;
  z-index: 1;
}
.philosophy-box {
  padding: 60px 54px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(10, 16, 30, 0.9));
  border: 1px solid var(--border-subtle);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.philosophy-badge {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--accent-emerald-light);
  letter-spacing: 0.1em;
  margin-bottom: 14px;
  display: inline-block;
}
.philosophy-text h2 {
  font-size: clamp(2rem, 3.2vw, 2.6rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 18px;
  letter-spacing: -0.03em;
}
.philosophy-text > p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.philosophy-points {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.point-item {
  display: flex;
  gap: 14px;
}
.point-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
  margin-top: 7px;
  flex-shrink: 0;
}
.point-item strong {
  display: block;
  font-size: 0.98rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.point-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Circuit Visualizer Diagram */
.philosophy-visual {
  position: relative;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.circuit-board {
  position: relative;
  width: 280px;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.circuit-center {
  width: 100px;
  height: 100px;
  border-radius: 20px;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 1px solid var(--accent-emerald);
  box-shadow: 0 0 35px rgba(16, 185, 129, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 3;
}
.circuit-chip {
  font-size: 1.7rem;
  font-weight: 900;
  color: var(--accent-emerald-light);
  line-height: 1;
}
.circuit-text {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-top: 6px;
}

.circuit-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(56, 189, 248, 0.25);
  animation: rotate-ring 20s linear infinite;
}
.r-outer { width: 270px; height: 270px; }
.r-mid { width: 190px; height: 190px; border-color: rgba(16, 185, 129, 0.25); animation-direction: reverse; }

@keyframes rotate-ring {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.node-tag {
  position: absolute;
  padding: 5px 10px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-primary);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}
.tag-api { top: 10px; left: 50%; transform: translateX(-50%); color: var(--accent-sky); }
.tag-db { bottom: 20px; left: 10px; color: var(--accent-emerald-light); }
.tag-ui { bottom: 20px; right: 10px; color: var(--accent-indigo); }

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-section {
  padding: 80px 0 110px;
  position: relative;
  z-index: 1;
}

.contact-card {
  position: relative;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(10, 15, 28, 0.95));
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
  padding: 60px;
}
.contact-decor-glow {
  position: absolute;
  top: -150px;
  right: -150px;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.2) 0%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 50px;
  align-items: center;
}

.contact-heading {
  font-size: clamp(2.3rem, 4vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 18px;
  letter-spacing: -0.04em;
}
.contact-lead {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: 34px;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.method-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}
.method-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
}
.method-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-emerald-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 14px;
}
.method-details {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.method-label {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}
.method-val {
  font-size: 0.95rem;
  color: var(--text-primary);
}

/* Action CTA Box */
.contact-cta-box {
  padding: 34px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  text-align: center;
}
.avatar-holder {
  display: inline-flex;
  margin-bottom: 16px;
}
.avatar-badge {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: linear-gradient(135deg, #10b981, #06b6d4);
  color: #060911;
  font-size: 1.5rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}
.contact-cta-box h3 {
  font-size: 1.3rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.cta-location {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-emerald-light);
  margin-bottom: 12px;
}
.cta-bio {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}
.cta-btn-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: #04060b;
  border-top: 1px solid var(--border-subtle);
  padding: 30px 0;
  position: relative;
  z-index: 1;
}
.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.footer-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.footer-logo {
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--text-primary);
  letter-spacing: -0.05em;
}
.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.footer-right {
  display: flex;
  align-items: center;
  gap: 24px;
}
.footer-tech {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-emerald-light);
}
.back-to-top:hover {
  color: var(--text-primary);
}

/* ==========================================================================
   TOAST NOTIFICATION
   ========================================================================== */
.toast-notification {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid var(--accent-emerald);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(16, 185, 129, 0.25);
  color: var(--text-primary);
  font-size: 0.88rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.toast-notification.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.toast-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.2);
  color: var(--accent-emerald-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-console-wrap {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
  }
  .featured-card {
    grid-template-columns: 1fr;
  }
  .featured-card .card-visual {
    border-left: none;
    border-bottom: 1px solid var(--border-subtle);
    height: 320px;
    min-height: auto;
  }
  .hero-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .capabilities-grid {
    grid-template-columns: 1fr;
  }
  .philosophy-box {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer-tech {
    display: none;
  }
}

@media (max-width: 768px) {
  .container {
    width: min(100% - 32px, 1220px);
  }
  .site-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #090e1a;
    border-bottom: 1px solid var(--border-subtle);
    padding: 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  }
  .site-nav.is-open {
    display: flex;
  }
  .nav-actions .btn {
    display: none;
  }
  .menu-toggle {
    display: flex;
  }
  .hero {
    padding: 50px 0 40px;
  }
  .hero-heading {
    font-size: clamp(2.2rem, 8vw, 3.2rem);
  }
  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .section-header {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .more-repos-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  .contact-card {
    padding: 34px 24px;
  }
  .footer-wrap {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
