/* ==========================================================================
   SUSHEN JAYASURIYA — DEVOPS ENGINEERING COMMAND CENTER
   EDITORIAL & ELEVATED UI DESIGN SYSTEM
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  /* Colors */
  --bg-primary: #060911;
  --bg-secondary: #0a0f1d;
  --bg-surface: rgba(14, 21, 37, 0.7);
  --bg-surface-hover: rgba(20, 31, 56, 0.85);
  --bg-glass: rgba(8, 12, 22, 0.85);
  --bg-terminal: rgba(6, 9, 16, 0.95);

  /* Accents */
  --cyan-primary: #00f0ff;
  --cyan-glow: rgba(0, 240, 255, 0.3);
  --cyan-subtle: rgba(0, 240, 255, 0.08);
  --cyan-border: rgba(0, 240, 255, 0.2);

  --indigo-primary: #6366f1;
  --indigo-glow: rgba(99, 102, 241, 0.25);
  --indigo-subtle: rgba(99, 102, 241, 0.08);

  --emerald-status: #10b981;
  --emerald-glow: rgba(16, 185, 129, 0.35);

  /* Typography */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-light: #cbd5e1;

  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-active: rgba(0, 240, 255, 0.35);
  --border-card: rgba(255, 255, 255, 0.06);

  /* Fonts */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Layout */
  --max-width: 1200px;
  --header-height: 70px;
  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  color-scheme: dark;
}

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

/* ==========================================================================
   CYBERNETIC THEME CURSOR RETICLE
   ========================================================================== */
@media (pointer: fine) {
  body, a, button, input, select, textarea, [role="button"], label, .prompt-chip, .btn-solid-glow, .btn-outline-glow, .btn-hud-resume {
    cursor: none !important;
  }
}

.cyber-cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  background-color: #00f0ff;
  border-radius: 50%;
  pointer-events: none;
  z-index: 999999;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 10px #00f0ff;
  opacity: 0;
  transition: opacity 0.2s ease, background-color 0.2s ease, transform 0.08s ease;
}

.cyber-cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  border: 1.5px solid rgba(0, 240, 255, 0.65);
  border-radius: 50%;
  pointer-events: none;
  z-index: 999998;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.25);
  opacity: 0;
  transition: opacity 0.2s ease, width 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), height 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.cyber-cursor-ring.active {
  opacity: 1;
}
.cyber-cursor-dot.active {
  opacity: 1;
}

.cyber-cursor-ring.hover {
  width: 48px;
  height: 48px;
  border-color: #00ff88;
  background-color: rgba(0, 255, 136, 0.08);
  box-shadow: 0 0 25px rgba(0, 255, 136, 0.4);
}

.cyber-cursor-dot.hover {
  background-color: #00ff88;
  box-shadow: 0 0 12px #00ff88;
  transform: translate(-50%, -50%) scale(1.3);
}

.cyber-cursor-ring.click {
  transform: translate(-50%, -50%) scale(0.75);
  border-color: #00f0ff;
  background-color: rgba(0, 240, 255, 0.2);
}

@media (pointer: coarse), (hover: none) {
  .cyber-cursor-dot,
  .cyber-cursor-ring,
  .cyber-click-ripple,
  .cyber-click-star {
    display: none !important;
  }
}

/* ==========================================================================
   CYBER CLICK STARBURST & ENERGY RIPPLE
   ========================================================================== */
.cyber-click-ripple {
  position: fixed;
  top: 0;
  left: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 240, 255, 0.9);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.7), inset 0 0 10px rgba(0, 255, 136, 0.5);
  pointer-events: none;
  z-index: 999990;
  transform: translate(-50%, -50%) scale(0.2);
  animation: cyberRipplePulse 0.55s cubic-bezier(0.1, 0.85, 0.25, 1) forwards;
}

@keyframes cyberRipplePulse {
  0% {
    transform: translate(-50%, -50%) scale(0.2);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(3.8);
    opacity: 0;
    border-color: rgba(0, 255, 136, 0.3);
  }
}

.cyber-click-star {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 999991;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  animation: cyberStarFade 0.6s cubic-bezier(0.12, 0.88, 0.3, 1) forwards;
}

.cyber-click-star svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 8px currentColor);
}

@keyframes cyberStarFade {
  0% {
    transform: translate(-50%, -50%) translate3d(0, 0, 0) scale(0.2) rotate(0deg);
    opacity: 1;
  }
  70% {
    opacity: 0.9;
  }
  100% {
    transform: translate(-50%, -50%) translate3d(var(--tx), var(--ty), 0) scale(1) rotate(var(--rot));
    opacity: 0;
  }
}

/* ==========================================================================
   LIVING INFRASTRUCTURE BACKGROUND ENVIRONMENT
   ========================================================================== */

.network-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.88;
}

.cursor-spotlight {
  position: fixed;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.04) 0%, rgba(99, 102, 241, 0.015) 50%, transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.5s ease;
  opacity: 0;
}

.datacenter-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../assets/datacenter-bg.jpg') no-repeat center center / cover;
  opacity: 0.16;
  filter: saturate(1.15) contrast(1.1);
  pointer-events: none;
  z-index: 0;
  animation: datacenter-drift 60s ease-in-out infinite alternate;
  mask-image: radial-gradient(ellipse 95% 85% at 50% 30%, black 45%, transparent 95%);
  -webkit-mask-image: radial-gradient(ellipse 95% 85% at 50% 30%, black 45%, transparent 95%);
}

@keyframes datacenter-drift {
  0% { transform: scale(1) translateY(0); }
  50% { transform: scale(1.035) translateY(-8px); }
  100% { transform: scale(1.02) translateY(6px); }
}

.grid-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(rgba(0, 240, 255, 0.065) 1px, transparent 1px),
    linear-gradient(to right, rgba(0, 240, 255, 0.018) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 240, 255, 0.018) 1px, transparent 1px);
  background-size: 36px 36px, 72px 72px, 72px 72px;
  background-position: 0 0, 0 0, 0 0;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse 95% 85% at 50% 25%, black 50%, transparent 98%);
  -webkit-mask-image: radial-gradient(ellipse 95% 85% at 50% 25%, black 50%, transparent 98%);
}

.telemetry-scanline {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(0, 240, 255, 0.1) 30%, rgba(99, 102, 241, 0.15) 50%, rgba(0, 240, 255, 0.1) 70%, transparent 100%);
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  animation: scanline-sweep 42s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes scanline-sweep {
  0% { transform: translateY(-50px); opacity: 0; }
  5% { opacity: 0.35; }
  95% { opacity: 0.35; }
  100% { transform: translateY(105vh); opacity: 0; }
}

.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(150px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  will-change: transform;
}

.glow-top-right {
  top: -140px;
  right: -90px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.25) 0%, rgba(0, 240, 255, 0.1) 50%, transparent 70%);
  animation: drift-glow-1 55s ease-in-out infinite alternate;
}

.glow-mid-left {
  top: 38%;
  left: -240px;
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.16) 0%, rgba(99, 102, 241, 0.06) 50%, transparent 70%);
  animation: drift-glow-2 65s ease-in-out infinite alternate;
}

.glow-bottom-right {
  bottom: 5%;
  right: -190px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.18) 0%, rgba(16, 185, 129, 0.05) 50%, transparent 70%);
  animation: drift-glow-3 60s ease-in-out infinite alternate;
}

@keyframes drift-glow-1 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-60px, 80px) scale(1.1); }
  100% { transform: translate(40px, -40px) scale(0.95); }
}

@keyframes drift-glow-2 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(80px, -70px) scale(1.08); }
  100% { transform: translate(-50px, 60px) scale(0.92); }
}

@keyframes drift-glow-3 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-70px, -60px) scale(1.12); }
  100% { transform: translate(50px, 40px) scale(0.9); }
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: #1e293b; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--cyan-primary); }

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

p { color: var(--text-secondary); }
a { color: inherit; text-decoration: none; transition: all var(--transition-fast); }
code, .font-mono { font-family: var(--font-mono); }

.text-gradient {
  background: linear-gradient(135deg, #00f0ff 0%, #38bdf8 50%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-cyan { color: var(--cyan-primary); }
.text-emerald { color: var(--emerald-status); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

/* Section Rhythm */
section {
  padding: 6.5rem 0;
  position: relative;
  border-top: 1px solid var(--border-subtle);
}

.section-num-tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--cyan-primary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.section-heading-lg {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.section-lead {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 620px;
  line-height: 1.7;
}

/* ==========================================================================
   HEADER HUD
   ========================================================================== */

.header-hud {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 1000;
  transition: all var(--transition-normal);
}

.header-hud.scrolled {
  height: 58px;
  background: rgba(6, 9, 16, 0.95);
  border-bottom-color: var(--cyan-border);
}

.nav-wrap {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
}

.brand-logo .logo-icon {
  width: 32px;
  height: 32px;
  background: var(--cyan-subtle);
  border: 1px solid var(--cyan-border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan-primary);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.brand-logo span.accent { color: var(--cyan-primary); }

.nav-menu {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.4rem 0;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-link:hover, .nav-link.active { color: var(--cyan-primary); }

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--cyan-primary);
  box-shadow: 0 0 8px var(--cyan-primary);
}

.btn-hud-resume {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  font-family: var(--font-mono);
  background: var(--cyan-subtle);
  color: var(--cyan-primary);
  border: 1px solid var(--cyan-border);
  transition: all var(--transition-fast);
}

.btn-hud-resume:hover {
  background: var(--cyan-primary);
  color: var(--bg-primary);
  box-shadow: 0 0 15px var(--cyan-glow);
}

.mobile-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 0.45rem 0.7rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1.1rem;
}

/* ==========================================================================
   1. HERO SECTION — PREMIUM LANDING PAGE
   ========================================================================== */

.hero-section {
  padding-top: calc(var(--header-height) + 4rem);
  padding-bottom: 5.5rem;
  min-height: 94vh;
  display: flex;
  align-items: center;
  border-top: none;
}

.hero-layout-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-meta-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cyan-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--cyan-subtle);
  border: 1px solid var(--cyan-border);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
}

.hero-meta-label .live-dot {
  width: 6px;
  height: 6px;
  background: var(--emerald-status);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--emerald-status);
}

.hero-name {
  font-size: 4.2rem;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
}

.hero-statement {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text-light);
  line-height: 1.35;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  max-width: 640px;
}

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

.hero-actions-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.btn-solid-glow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.8rem;
  background: linear-gradient(135deg, #00f0ff, #38bdf8);
  color: #060911;
  font-weight: 700;
  font-size: 0.92rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 20px var(--cyan-glow);
  transition: all var(--transition-fast);
}

.btn-solid-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(0, 240, 255, 0.5);
}

.btn-outline-glow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.8rem;
  background: rgba(14, 21, 37, 0.6);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.btn-outline-glow:hover {
  border-color: var(--cyan-border);
  color: var(--cyan-primary);
  transform: translateY(-2px);
}

.hero-socials {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
}

.hero-social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.hero-social-link:hover { color: var(--cyan-primary); }

/* Hero Right: Live Status Panel + Visualizer */
.hero-status-panel {
  background: var(--bg-terminal);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  backdrop-filter: blur(14px);
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.8);
  position: relative;
}

.hero-status-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan-primary), transparent);
}

.status-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.status-rows-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.status-row-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.75rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-sm);
}

.status-row-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-light);
}

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

.status-row-badge {
  font-size: 0.72rem;
  color: var(--cyan-primary);
}

.status-panel-footer {
  margin-top: 1.25rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-muted);
  text-align: right;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   2. INTRODUCTION SECTION — BEHIND THE APPLICATION
   ========================================================================== */

.intro-lead-statement {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.035em;
  max-width: 900px;
  margin-bottom: 2rem;
}

.intro-two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: start;
}

.intro-narrative {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.intro-narrative strong {
  color: var(--text-primary);
  font-weight: 600;
}

.intro-highlight-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ==========================================================================
   3. WHAT I DO — 4 PILLARS
   ========================================================================== */

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.pillar-card {
  padding: 2rem 1.5rem;
  border-left: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.pillar-card:hover {
  border-left-color: var(--cyan-primary);
  transform: translateX(4px);
}

.pillar-number {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--cyan-primary);
  margin-bottom: 1rem;
}

.pillar-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.pillar-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   4. FEATURED EXPERIENCE — UTECH SRI LANKA
   ========================================================================== */

.experience-hero-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 3rem;
  backdrop-filter: blur(14px);
  position: relative;
  overflow: hidden;
  margin-top: 1.5rem;
}

.experience-hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--cyan-primary), var(--indigo-primary));
}

.exp-badge-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.exp-title-group h3 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.exp-company {
  font-size: 1.25rem;
  color: var(--cyan-primary);
  font-weight: 600;
}

.exp-narrative-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 800px;
  margin: 1.5rem 0 2rem;
}

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

.tech-pill {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 0.35rem 0.8rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  color: var(--text-light);
  transition: all var(--transition-fast);
}

.tech-pill:hover {
  border-color: var(--cyan-border);
  color: var(--cyan-primary);
}

/* ==========================================================================
   5. PROJECTS — FEWER, BIGGER, BETTER CASE STUDIES
   ========================================================================== */

.case-study-list {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
  margin-top: 2rem;
}

.big-case-study {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  padding: 3rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(14px);
  transition: border-color var(--transition-normal);
}

.big-case-study:hover {
  border-color: var(--cyan-border);
}

.case-study-header {
  margin-bottom: 1.25rem;
}

.case-index {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--cyan-primary);
  margin-bottom: 0.5rem;
}

.big-case-study h3 {
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1.2;
}

.case-body-text {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.case-specs-sidebar {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(6, 9, 16, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
}

.spec-entry {
  margin-bottom: 1.25rem;
}

.spec-entry-label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.spec-entry-val {
  font-size: 0.92rem;
  color: var(--text-primary);
}

/* ==========================================================================
   6. HOMELAB — PERSONAL ENGINEERING
   ========================================================================== */

.homelab-spotlight-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  backdrop-filter: blur(14px);
}

.homelab-lead-quote {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.homelab-specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2.5rem 0;
}

.homelab-node-box {
  background: rgba(6, 9, 16, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.homelab-node-box h4 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
  color: var(--cyan-primary);
}

.homelab-node-box p {
  font-size: 0.86rem;
  line-height: 1.6;
}

.btn-lab-tour {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--cyan-primary);
}

.btn-lab-tour:hover { transform: translateX(6px); }

/* ==========================================================================
   7. TECHNICAL STACK — EDITORIAL TYPOGRAPHY
   ========================================================================== */

.editorial-stack-wrap {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin-top: 2rem;
}

.stack-category-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-subtle);
  align-items: center;
}

.stack-category-title {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--cyan-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stack-items-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
}

.stack-tag-item {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-light);
  cursor: default;
  transition: color var(--transition-fast);
}

.stack-tag-item:hover {
  color: var(--cyan-primary);
}

/* ==========================================================================
   8. CAREER JOURNEY
   ========================================================================== */

.journey-list-wrap {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
}

.journey-row-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 2.5rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--border-subtle);
  align-items: start;
}

.journey-date {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--cyan-primary);
  font-weight: 600;
}

.journey-content h4 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.journey-org {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.journey-detail {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
  line-height: 1.6;
}

/* ==========================================================================
   9. CURRENTLY EXPLORING
   ========================================================================== */

.exploring-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.exploring-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
  transition: all var(--transition-fast);
}

.exploring-card:hover {
  border-color: var(--cyan-border);
  transform: translateY(-3px);
}

.exploring-status-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--cyan-primary);
  margin-bottom: 0.75rem;
}

.exploring-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.exploring-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ==========================================================================
   10. FILESYSTEM & DOWNLOADS
   ========================================================================== */

.files-grid-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.file-row-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-fast);
}

.file-row-card:hover {
  border-color: var(--cyan-border);
  transform: translateY(-3px);
}

.file-path-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.btn-file-dl {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--cyan-primary);
  font-weight: 600;
}

/* ==========================================================================
   11. CONTACT TERMINAL & FORM
   ========================================================================== */

.contact-layout-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 3rem;
  margin-top: 2rem;
}

.terminal-box {
  background: var(--bg-terminal);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.terminal-header {
  background: rgba(15, 23, 42, 0.9);
  padding: 0.65rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.terminal-buttons { display: flex; gap: 6px; }
.t-btn { width: 10px; height: 10px; border-radius: 50%; }
.t-close { background: #ff5f56; }
.t-min { background: #ffbd2e; }
.t-max { background: #27c93f; }

.terminal-body {
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-meta-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.55rem 0.75rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.contact-meta-item:hover { border-color: var(--cyan-border); }

.contact-form-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem;
}

.form-input, .form-textarea {
  width: 100%;
  background: rgba(6, 9, 16, 0.75);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  margin-bottom: 1rem;
  transition: border-color var(--transition-fast);
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--cyan-primary);
}

.btn-form-submit {
  width: 100%;
  padding: 0.9rem;
  background: linear-gradient(135deg, #00f0ff, #38bdf8);
  border: none;
  border-radius: var(--radius-sm);
  color: #060911;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-form-submit:hover { transform: translateY(-2px); box-shadow: 0 4px 20px var(--cyan-glow); }

/* ==========================================================================
   11. STAY UP TO DATE / NEWSLETTER DISPATCH
   ========================================================================== */
.newsletter-section {
  padding: 5rem 0;
  position: relative;
  z-index: 10;
}

.newsletter-card {
  position: relative;
  background: linear-gradient(135deg, rgba(14, 21, 37, 0.85) 0%, rgba(8, 13, 24, 0.95) 100%);
  border: 1px solid var(--cyan-border);
  border-radius: var(--radius-lg);
  padding: 3.5rem 3rem;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 35px rgba(0, 240, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.newsletter-glow-fx {
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 300px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.15) 0%, rgba(99, 102, 241, 0.08) 50%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.newsletter-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
}

.newsletter-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--cyan-primary);
  background: var(--cyan-subtle);
  border: 1px solid var(--cyan-border);
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  margin-bottom: 1.25rem;
  letter-spacing: 0.05em;
}

.newsletter-tag .pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan-primary);
  box-shadow: 0 0 8px var(--cyan-primary);
  animation: pulse-glow 2s infinite ease-in-out;
}

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

.newsletter-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.85rem;
  letter-spacing: -0.02em;
}

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

.newsletter-form {
  width: 100%;
}

.newsletter-input-group {
  display: flex;
  gap: 0.75rem;
  max-width: 560px;
  margin: 0 auto 0.85rem;
}

.newsletter-input-wrap {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}

.newsletter-input-wrap .input-icon {
  position: absolute;
  left: 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  pointer-events: none;
  transition: color var(--transition-fast);
}

.newsletter-input {
  width: 100%;
  padding: 0.85rem 1rem 0.85rem 2.6rem;
  background: rgba(6, 9, 16, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.newsletter-input:focus {
  border-color: var(--cyan-primary);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.25);
}

.newsletter-input:focus + .input-icon,
.newsletter-input-wrap:focus-within .input-icon {
  color: var(--cyan-primary);
}

.newsletter-btn {
  white-space: nowrap;
  padding: 0.85rem 1.6rem;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

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

.newsletter-privacy-note {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.newsletter-status-msg {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  margin-top: 0.75rem;
  display: none;
  animation: fadeIn 0.3s ease;
}

.newsletter-status-msg.success {
  display: block;
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid rgba(0, 255, 136, 0.3);
  color: #00ff88;
}

.newsletter-status-msg.error {
  display: block;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

@media (max-width: 640px) {
  .newsletter-card {
    padding: 2.25rem 1.5rem;
  }
  .newsletter-title {
    font-size: 1.65rem;
  }
  .newsletter-input-group {
    flex-direction: column;
  }
  .newsletter-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   12. MINIMAL UNDERSTATED FOOTER
   ========================================================================== */

footer {
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 0 3rem;
  background: var(--bg-secondary);
  position: relative;
  z-index: 10;
}

.footer-content-wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-brand h4 {
  font-size: 1.35rem;
  margin-bottom: 0.3rem;
}

.footer-brand p {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links-list {
  display: flex;
  gap: 2rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.footer-links-list a:hover { color: var(--cyan-primary); }

.footer-bottom-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

/* Toast */
.toast-notice {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(10, 15, 29, 0.95);
  border: 1px solid var(--cyan-border);
  color: var(--cyan-primary);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  padding: 0.6rem 1.25rem;
  border-radius: 9999px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.7);
  z-index: 9999;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.toast-notice.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Back to Top */
.btn-back-to-top {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 44px;
  height: 44px;
  background: var(--bg-surface);
  border: 1px solid var(--cyan-border);
  color: var(--cyan-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  z-index: 999;
}

.btn-back-to-top.visible { opacity: 1; visibility: visible; }
.btn-back-to-top:hover { background: var(--cyan-primary); color: var(--bg-primary); }

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-layout-grid,
  .intro-two-col,
  .big-case-study,
  .contact-layout-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .pillars-grid,
  .homelab-specs-grid,
  .exploring-grid,
  .files-grid-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .stack-category-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: rgba(6, 9, 16, 0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 2rem 1.5rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
    transform: translateY(-150%);
    transition: transform var(--transition-normal);
    z-index: 999;
  }

  .nav-menu.open { transform: translateY(0); }
  .mobile-toggle { display: block; }

  .hero-name { font-size: 3rem; }
  .hero-statement { font-size: 1.3rem; }
  .intro-lead-statement { font-size: 2.2rem; }

  .pillars-grid,
  .homelab-specs-grid,
  .exploring-grid,
  .files-grid-row {
    grid-template-columns: 1fr;
  }

  .journey-row-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .experience-hero-card,
  .big-case-study,
  .homelab-spotlight-card {
    padding: 1.75rem;
  }
}

@media (max-width: 480px) {
  .hero-name { font-size: 2.3rem; }
  .hero-statement { font-size: 1.15rem; }
  .intro-lead-statement { font-size: 1.8rem; }
  .section-heading-lg { font-size: 1.85rem; }
  
  .hero-actions-row {
    flex-direction: column;
    width: 100%;
  }

  .btn-solid-glow,
  .btn-outline-glow {
    width: 100%;
    justify-content: center;
  }

  .chatbot-window {
    right: 12px;
    left: 12px;
    width: auto;
    max-width: calc(100vw - 24px);
    bottom: 75px;
    height: 480px;
  }

  .chatbot-widget-container {
    right: 70px;
    bottom: 18px;
  }

  .btn-back-to-top {
    right: 18px;
    bottom: 18px;
  }
}

/* ==========================================================================
   AI DEVOPS COPILOT CHATBOT WIDGET
   ========================================================================== */

.chatbot-widget-container {
  position: fixed;
  bottom: 25px;
  right: 80px;
  z-index: 998;
}

.chatbot-toggle-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00f0ff, #6366f1);
  border: 1px solid var(--cyan-border);
  color: #060911;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  cursor: pointer;
  box-shadow: 0 4px 20px var(--cyan-glow);
  position: relative;
  transition: all var(--transition-fast);
}

.chatbot-toggle-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 240, 255, 0.5);
}

.chat-pulse-indicator {
  position: absolute;
  top: 1px;
  right: 1px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--emerald-status);
  border: 2px solid var(--bg-primary);
  box-shadow: 0 0 6px var(--emerald-status);
}

.chatbot-window {
  position: fixed;
  bottom: 85px;
  right: 25px;
  width: 380px;
  max-width: calc(100vw - 32px);
  height: 520px;
  max-height: calc(100vh - 110px);
  background: rgba(8, 12, 22, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--cyan-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 25px rgba(0, 240, 255, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transform-origin: bottom right;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1001;
}

.chatbot-window.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.chat-header {
  padding: 0.9rem 1.25rem;
  background: rgba(14, 21, 37, 0.9);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.chat-avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--cyan-subtle);
  border: 1px solid var(--cyan-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan-primary);
  font-size: 0.85rem;
}

.chat-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
}

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

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

.chat-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.chat-control-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.35rem;
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.chat-control-btn:hover {
  color: var(--cyan-primary);
}

.chat-messages-body {
  flex: 1;
  padding: 1.25rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.chat-message {
  display: flex;
  flex-direction: column;
  max-width: 85%;
}

.bot-message {
  align-self: flex-start;
}

.user-message {
  align-self: flex-end;
}

.message-bubble {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  line-height: 1.55;
}

.bot-message .message-bubble {
  background: rgba(14, 21, 37, 0.9);
  border: 1px solid var(--border-subtle);
  color: var(--text-light);
}

.user-message .message-bubble {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.2), rgba(99, 102, 241, 0.3));
  border: 1px solid var(--cyan-border);
  color: #f8fafc;
}

.message-time {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  padding: 0 0.25rem;
}

.user-message .message-time {
  text-align: right;
}

.quick-prompts-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.5rem;
}

.prompt-chip {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.35rem 0.65rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.prompt-chip:hover {
  background: var(--cyan-subtle);
  border-color: var(--cyan-border);
  color: var(--cyan-primary);
  transform: translateY(-1px);
}

.chat-typing-bubble {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0.6rem 0.9rem;
  background: rgba(14, 21, 37, 0.9);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  width: fit-content;
}

.typing-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan-primary);
  animation: typing-bounce 1.4s infinite ease-in-out both;
}

/* Chat Action Buttons inside Bot Messages */
.chat-action-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.chat-btn-action {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.35);
  color: #00f0ff;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chat-btn-action:hover {
  background: #00f0ff;
  color: #060911;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.5);
  transform: translateY(-1px);
}

.chat-btn-action.gold {
  background: rgba(229, 185, 92, 0.12);
  border-color: rgba(229, 185, 92, 0.4);
  color: #e5b95c;
}

.chat-btn-action.gold:hover {
  background: #e5b95c;
  color: #060911;
  box-shadow: 0 0 15px rgba(229, 185, 92, 0.5);
}

.chat-control-btn.voice-active {
  color: #00f0ff;
  background: rgba(0, 240, 255, 0.15);
  border-color: #00f0ff;
}

.chat-code-snippet {
  background: #050811;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #38bdf8;
  margin: 0.5rem 0;
  display: block;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing-bounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1.2); opacity: 1; }
}

.chat-input-footer {
  padding: 0.75rem 1rem;
  background: rgba(14, 21, 37, 0.8);
  border-top: 1px solid var(--border-subtle);
}

.chat-form {
  display: flex;
  gap: 0.5rem;
}

.chat-input-field {
  flex: 1;
  background: rgba(6, 9, 16, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.9rem;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

.chat-input-field:focus {
  border-color: var(--cyan-primary);
}

.chat-send-btn {
  background: linear-gradient(135deg, #00f0ff, #38bdf8);
  border: none;
  border-radius: var(--radius-sm);
  width: 38px;
  color: #060911;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.chat-send-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 15px var(--cyan-glow);
}

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