/* ==========================================================================
   TITANIUM OBSIDIAN & PRECISION VIOLET AURORA MIDNIGHT STYLESHEET
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. RESET & BASE LAYOUT
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-deep-black);
  color: var(--text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  position: relative;
  min-height: 100vh;
  line-height: var(--lh-normal);
  background-color: var(--bg-deep-black);
  color: var(--text-secondary);
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-deep-black);
}
::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.35);
  border-radius: var(--radius-full);
  border: 2px solid var(--bg-deep-black);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-indigo-light);
}

::selection {
  background: rgba(99, 102, 241, 0.35);
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   2. UTILITY CLASSES & CONTAINERS
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.text-gradient-main {
  background: var(--grad-primary-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-accent {
  background: var(--grad-accent-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-gold {
  background: var(--grad-gold-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.glass-card {
  background: var(--bg-card-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glass);
  transition: border-color var(--transition-normal), transform var(--transition-normal), box-shadow var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.glass-card:hover {
  border-color: rgba(99, 102, 241, 0.45);
  transform: translateY(-6px);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.65), 0 0 30px rgba(99, 102, 241, 0.2);
}

/* Section Formatting */
.section-padding {
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-3xl);
  position: relative;
  z-index: var(--z-base);
  background-color: var(--bg-deep-black);
}

section:nth-of-type(even) {
  background-color: var(--bg-dark-navy);
}

.section-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto var(--space-xl) auto;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  padding: 6px 18px;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: var(--accent-indigo-light);
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}

.section-badge.gold {
  background: rgba(251, 191, 36, 0.1);
  border-color: rgba(251, 191, 36, 0.35);
  color: var(--accent-gold-light);
}

.section-title {
  font-family: var(--font-heading);
  font-size: var(--fs-h1);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  margin-bottom: var(--space-sm);
  letter-spacing: -0.035em;
}

.section-description {
  font-size: var(--fs-body);
  color: var(--text-secondary);
  line-height: var(--lh-relaxed);
}

/* --------------------------------------------------------------------------
   3. BACKGROUND ENGINE LAYER
   -------------------------------------------------------------------------- */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: var(--z-canvas);
  pointer-events: none;
}

.aurora-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--grad-aurora);
  z-index: var(--z-background);
  pointer-events: none;
  opacity: 0.95;
}

.bg-noise {
  display: none;
}

/* --------------------------------------------------------------------------
   4. NAVIGATION BAR
   -------------------------------------------------------------------------- */
.header-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: var(--z-header);
  padding: var(--space-md) 0;
  transition: padding var(--transition-normal), background-color var(--transition-normal), backdrop-filter var(--transition-normal);
}

.header-nav.scrolled {
  padding: var(--space-sm) 0;
  background-color: var(--bg-nav-glass);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: var(--fw-bold);
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.logo-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--grad-btn-primary);
  color: #ffffff;
  font-weight: var(--fw-extrabold);
  box-shadow: 0 4px 18px rgba(99, 102, 241, 0.4);
  font-size: 0.95rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  list-style: none;
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  transition: color var(--transition-fast);
  position: relative;
  padding: 6px 10px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 2px;
  background: var(--accent-indigo-light);
  border-radius: var(--radius-full);
  transition: transform var(--transition-normal);
}

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

.nav-link:hover::after,
.nav-link.active::after {
  transform: translateX(-50%) scaleX(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.4rem;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   5. BUTTON STYLES
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 14px 30px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: var(--fw-semibold);
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-normal), border-color var(--transition-normal), background var(--transition-normal);
  position: relative;
  white-space: nowrap;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background: var(--grad-btn-primary);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(99, 102, 241, 0.6);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(99, 102, 241, 0.45);
  transform: translateY(-2px);
}

.btn-gold {
  background: var(--grad-btn-gold);
  color: #000000;
  font-weight: var(--fw-bold);
  border: 1px solid rgba(254, 240, 138, 0.7);
  box-shadow: 0 10px 25px rgba(251, 191, 36, 0.4);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(251, 191, 36, 0.55);
}

.btn-sm {
  padding: 9px 22px;
  font-size: 0.88rem;
}

/* --------------------------------------------------------------------------
   6. HERO SECTION & TERMINAL
   -------------------------------------------------------------------------- */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--space-3xl) + 20px);
  padding-bottom: var(--space-2xl);
  position: relative;
  overflow: hidden;
  background-color: var(--bg-deep-black);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: var(--space-xl);
}

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

.hero-status-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.3);
  color: var(--accent-emerald);
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  margin-bottom: var(--space-md);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background-color: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: var(--fs-hero-title);
  font-weight: var(--fw-extrabold);
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin-bottom: var(--space-md);
}

.hero-subtitle {
  font-size: clamp(1.02rem, 1.2vw, 1.2rem);
  color: var(--text-secondary);
  line-height: var(--lh-relaxed);
  max-width: 640px;
  margin-bottom: var(--space-lg);
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
}

.hero-socials {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.social-link:hover {
  color: var(--text-primary);
  background: rgba(99, 102, 241, 0.14);
  border-color: rgba(99, 102, 241, 0.45);
  transform: translateY(-3px);
}

.terminal-window {
  width: 100%;
  max-width: 520px;
  border-radius: var(--radius-md);
  background: #0d1019;
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  font-family: var(--font-mono);
}

.terminal-header {
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.terminal-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot-red { background: #ef4444; }
.dot-yellow { background: #fbbf24; }
.dot-green { background: #34d399; }

.terminal-tabs {
  display: flex;
  gap: 4px;
}

.code-tab-btn {
  background: none;
  border: none;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.code-tab-btn.active,
.code-tab-btn:hover {
  background: rgba(99, 102, 241, 0.18);
  color: var(--accent-indigo-light);
}

.terminal-body {
  padding: 18px 20px;
  font-size: 0.84rem;
  line-height: 1.65;
  color: #cbd5e1;
  min-height: 240px;
}

.code-snippet-block {
  display: none;
}
.code-snippet-block.active {
  display: block;
}

.code-keyword { color: #818cf8; font-weight: 600; }
.code-var { color: #38bdf8; }
.code-string { color: #34d399; }
.code-fn { color: #60a5fa; }
.code-comment { color: #64748b; font-style: italic; }

/* Executive Holographic Cyber Shield & Monolith Display */
.hero-visual {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  width: 100%;
}

.hero-hologram-card {
  padding: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  background: linear-gradient(135deg, rgba(19, 23, 34, 0.96) 0%, rgba(11, 14, 23, 0.98) 100%);
  border: 1px solid rgba(251, 191, 36, 0.45);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65), 0 0 35px rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.hologram-core-wrapper {
  position: relative;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.25) 0%, rgba(7, 9, 14, 0.95) 70%);
  border: 1.5px solid var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 30px rgba(251, 191, 36, 0.35);
}

.hologram-shield-icon {
  position: relative;
  font-size: 2.6rem;
  color: var(--accent-indigo-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hologram-crown-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  font-size: 1.1rem;
  color: var(--accent-gold);
  filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.8));
}

.hologram-pulse-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--accent-indigo-light);
  pointer-events: none;
  animation: hologramPulse 3s infinite ease-in-out;
}

.ring-outer {
  width: 130px;
  height: 130px;
  opacity: 0.3;
}

.ring-inner {
  width: 95px;
  height: 95px;
  opacity: 0.5;
  animation-delay: -1.5s;
}

@keyframes hologramPulse {
  0%, 100% { transform: scale(0.95); opacity: 0.3; }
  50% { transform: scale(1.08); opacity: 0.7; }
}

.hologram-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}

.hologram-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.hologram-badge-gold {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: var(--fw-bold);
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hologram-status-ping {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-emerald);
}

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

@keyframes pingGlow {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

.hologram-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: var(--fw-extrabold);
  color: #ffffff;
  line-height: 1.25;
}

.hologram-subtitle {
  font-family: var(--font-subheading);
  font-size: 0.88rem;
  color: var(--accent-indigo-light);
  font-weight: var(--fw-medium);
}

.hologram-chips-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.hologram-chip {
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.hologram-chip i {
  color: var(--accent-gold);
}

/* --------------------------------------------------------------------------
   7. ACADEMIC CREDENTIALS CARDS
   -------------------------------------------------------------------------- */
.posh-qualifications-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.posh-qual-card {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--border-glass);
  background: var(--bg-card-glass);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glass);
  transition: transform 0.4s var(--ease-apple), border-color 0.4s var(--ease-apple), box-shadow 0.4s var(--ease-apple);
  position: relative;
}

.posh-qual-card:hover {
  transform: translateY(-6px);
  border-color: rgba(99, 102, 241, 0.45);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6);
}

.posh-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
}

.posh-logo-box {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(99, 102, 241, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 6px;
  flex-shrink: 0;
}

.posh-inst-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.posh-year-pill {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: var(--fw-semibold);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
}

.posh-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: var(--space-md);
  flex-grow: 1;
}

.posh-subbadge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: var(--fw-bold);
  color: var(--accent-indigo-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.posh-qual-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: var(--fw-bold);
  color: var(--text-primary);
  line-height: 1.35;
}

.posh-institution {
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: var(--fw-bold);
  margin-bottom: 6px;
  color: var(--accent-indigo-light);
}

.posh-spec-text {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.posh-card-footer {
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--space-sm);
}

.posh-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.posh-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

/* --------------------------------------------------------------------------
   8. LORVEN ENTERPRISE COMMAND CENTER SHOWCASE
   -------------------------------------------------------------------------- */
.lorven-command-center {
  position: relative;
  padding: var(--space-xl);
  background: linear-gradient(135deg, rgba(19, 23, 34, 0.98) 0%, rgba(7, 9, 14, 0.99) 100%);
  border: 1.5px solid rgba(251, 191, 36, 0.45);
  border-radius: var(--radius-xl);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.75), 0 0 40px rgba(251, 191, 36, 0.15);
  overflow: hidden;
}

.lorven-motion-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: radial-gradient(circle at 20% 20%, rgba(251, 191, 36, 0.12) 0%, transparent 60%),
              radial-gradient(circle at 80% 80%, rgba(99, 102, 241, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.lorven-banner-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.lorven-brand-core {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

/* Official Lorven Emblem Logo & Highlighted Founder Chips */
.lorven-logo-display-wrapper {
  position: relative;
  width: 100%;
  padding: 16px 20px;
  background: rgba(7, 9, 14, 0.92);
  border: 1px solid rgba(251, 191, 36, 0.4);
  border-radius: var(--radius-md);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lorven-official-logo {
  width: 100%;
  max-width: 250px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(251, 191, 36, 0.5));
}

.founder-highlights-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.founder-chip {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  background: rgba(7, 9, 14, 0.85);
  border: 1px solid var(--border-glass);
}

.founder-chip.gold {
  border-color: rgba(251, 191, 36, 0.4);
  background: rgba(251, 191, 36, 0.08);
}
.founder-chip.gold i { color: var(--accent-gold); }

.founder-chip.emerald {
  border-color: rgba(52, 211, 153, 0.4);
  background: rgba(52, 211, 153, 0.08);
}
.founder-chip.emerald i { color: var(--accent-emerald); }

.founder-chip.indigo {
  border-color: rgba(99, 102, 241, 0.4);
  background: rgba(99, 102, 241, 0.08);
}
.founder-chip.indigo i { color: var(--accent-indigo-light); }

/* My Story Card Wrapper & 3 Mini Cards */
.my-story-card-wrapper {
  padding: var(--space-xl);
  margin-bottom: var(--space-2xl);
  width: 100%;
  box-sizing: border-box;
}

.my-story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.my-story-headline {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  font-weight: 700;
}

.my-story-p {
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: var(--space-md);
}
.my-story-p:last-child {
  margin-bottom: 0;
}

.my-story-chips-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.story-mini-card {
  padding: 1rem 1.2rem;
  border-radius: 14px;
}

.story-mini-card.indigo {
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.28);
}
.story-mini-title.indigo {
  color: var(--accent-indigo-light);
  font-size: 1.05rem;
  margin-bottom: 6px;
  font-weight: 700;
}

.story-mini-card.gold {
  background: rgba(251, 191, 36, 0.08);
  border-color: rgba(251, 191, 36, 0.28);
}
.story-mini-title.gold {
  color: #fef08a;
  font-size: 1.05rem;
  margin-bottom: 6px;
  font-weight: 700;
}

.story-mini-card.emerald {
  background: rgba(52, 211, 153, 0.08);
  border-color: rgba(52, 211, 153, 0.28);
}
.story-mini-title.emerald {
  color: var(--accent-emerald);
  font-size: 1.05rem;
  margin-bottom: 6px;
  font-weight: 700;
}

.story-mini-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.founder-chip .fname {
  font-weight: var(--fw-bold);
  font-size: 0.82rem;
}

.founder-chip .ftitle {
  color: var(--text-tertiary);
  font-size: 0.72rem;
  margin-left: auto;
}

.lorven-badge-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.lorven-video-ambient-wrapper {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.lorven-ambient-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.18;
  filter: contrast(120%) saturate(140%) hue-rotate(220deg);
}

.lorven-video-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(7, 9, 14, 0.94) 0%, rgba(19, 23, 34, 0.92) 100%);
}

.lorven-emerald-chip {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: var(--fw-bold);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: var(--accent-emerald);
}

/* Lorven Co-Founders & Executive Board Showcase */
.lorven-board-showcase {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.board-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.board-title {
  font-family: var(--font-heading);
  font-size: var(--fs-h2);
  font-weight: var(--fw-extrabold);
  color: #ffffff;
}

.board-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.board-card {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--border-glass);
  background: var(--bg-card-glass);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glass);
  transition: transform 0.35s var(--ease-apple), border-color 0.35s var(--ease-apple), box-shadow 0.35s var(--ease-apple);
}

.board-card:hover {
  transform: translateY(-6px);
  border-color: rgba(251, 191, 36, 0.5);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.65), 0 0 25px rgba(251, 191, 36, 0.2);
}

.board-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
}

.board-avatar-box {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.board-avatar-box.gold {
  background: rgba(251, 191, 36, 0.14);
  border: 1px solid rgba(251, 191, 36, 0.4);
  color: var(--accent-gold);
}

.board-avatar-box.emerald {
  background: rgba(52, 211, 153, 0.14);
  border: 1px solid rgba(52, 211, 153, 0.4);
  color: var(--accent-emerald);
}

.board-avatar-box.indigo {
  background: rgba(99, 102, 241, 0.14);
  border: 1px solid rgba(99, 102, 241, 0.4);
  color: var(--accent-indigo-light);
}

.board-role-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: var(--fw-bold);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.board-role-badge.gold {
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.35);
  color: var(--accent-gold);
}

.board-role-badge.emerald {
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: var(--accent-emerald);
}

.board-role-badge.indigo {
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: var(--accent-indigo-light);
}

.board-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: var(--fw-bold);
  color: #ffffff;
  margin-bottom: 2px;
}

.board-role-title {
  font-family: var(--font-subheading);
  font-size: 0.88rem;
  font-weight: var(--fw-semibold);
  color: var(--accent-gold);
  margin-bottom: var(--space-xs);
}

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

.lorven-narrative {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.lorven-header-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.lorven-slogan-badge {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: var(--fw-bold);
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.lorven-live-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-emerald);
  display: flex;
  align-items: center;
  gap: 6px;
}

.lorven-main-headline {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-weight: var(--fw-extrabold);
  line-height: 1.25;
  color: #ffffff;
}

.lorven-narrative-text {
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.lorven-metrics-ticker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-sm);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-subtle);
}

.ticker-item {
  display: flex;
  flex-direction: column;
}

.ticker-num {
  font-family: var(--font-mono);
  font-size: 1.45rem;
  font-weight: var(--fw-extrabold);
}

.ticker-lbl {
  font-size: 0.76rem;
  color: var(--text-tertiary);
}

.lorven-pillar-card {
  padding: var(--space-lg);
  border-top: 2px solid transparent;
}

.lorven-pillar-card:hover {
  border-top-color: var(--accent-gold);
}

.pillar-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
}

.pillar-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: var(--fw-bold);
  color: var(--accent-gold);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.25);
}

.service-icon-box.gold {
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.4);
  color: var(--accent-gold);
}

.service-icon-box.cyan {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.4);
  color: var(--accent-cyan);
}

.service-icon-box.emerald {
  background: rgba(52, 211, 153, 0.12);
  border-color: rgba(52, 211, 153, 0.4);
  color: var(--accent-emerald);
}

/* --------------------------------------------------------------------------
   9. TECHNICAL STACK SECTION — HARDWARE ACCELERATED ORBITAL STAGE
   -------------------------------------------------------------------------- */
.skills-split-layout {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: var(--space-xl);
  align-items: center;
}

.skills-left-col {
  display: flex;
  align-items: center;
  justify-content: center;
}

#orbital-system-container {
  width: 100%;
  height: 580px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
  contain: layout style paint;
}

.elliptical-3d-stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
}

.elliptical-3d-field {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
}

.elliptical-track {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(99, 102, 241, 0.35);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.12), inset 0 0 15px rgba(99, 102, 241, 0.06);
  pointer-events: none;
  transform-style: preserve-3d;
  will-change: transform;
}

.track-1 { width: 260px; height: 130px; border-color: rgba(99, 102, 241, 0.45); }
.track-2 { width: 420px; height: 220px; border-color: rgba(56, 189, 248, 0.35); }
.track-3 { width: 580px; height: 310px; border-color: rgba(52, 211, 153, 0.28); }
.track-4 { width: 740px; height: 400px; border-color: rgba(251, 191, 36, 0.28); }

.orbit-app-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: #131722;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  will-change: transform, opacity;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform-style: preserve-3d;
  cursor: pointer;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.orbit-app-card:hover {
  border-color: var(--accent-indigo);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(99, 102, 241, 0.35);
}

.orbit-logo-box {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.orbit-logo-box img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.orbit-card-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  white-space: nowrap;
}

.orbit-app-card.highlighted {
  border-color: var(--accent-indigo) !important;
  box-shadow: 0 0 25px rgba(99, 102, 241, 0.6) !important;
  background: rgba(99, 102, 241, 0.25) !important;
}

.skills-right-col {
  display: flex;
  flex-direction: column;
}

.arsenal-directory-box {
  padding: var(--space-lg) var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.arsenal-box-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: var(--fw-bold);
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
  display: flex;
  align-items: center;
  gap: 10px;
}

.arsenal-box-title i {
  color: var(--accent-indigo-light);
}

.arsenal-category-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.arsenal-cat-title {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.arsenal-apps-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.app-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 0.88rem;
  font-weight: var(--fw-medium);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.app-chip img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.app-chip:hover {
  background: rgba(99, 102, 241, 0.14);
  border-color: var(--accent-indigo);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   10. PROJECTS SHOWCASE SECTION
   -------------------------------------------------------------------------- */
.project-filters {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 20px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: var(--fw-medium);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
  background: rgba(99, 102, 241, 0.16);
  border-color: var(--accent-indigo);
  color: var(--text-primary);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}

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

.project-thumbnail-wrapper {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
  background: #07090e;
}

.project-thumbnail-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

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

.project-category-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(7, 9, 14, 0.85);
  border: 1px solid var(--border-glass);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-cyan);
  text-transform: uppercase;
}

.project-body {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: var(--fw-bold);
  color: var(--text-primary);
  margin-bottom: 8px;
}

.project-description {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-md);
  flex-grow: 1;
}

.project-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: var(--space-md);
}

.tech-badge {
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-tertiary);
}

.project-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

/* --------------------------------------------------------------------------
   11. CERTIFICATIONS & CREDENTIALS
   -------------------------------------------------------------------------- */
.certifications-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.cert-card {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.cert-badge-icon {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.16) 0%, rgba(19, 23, 34, 0.9) 100%);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: var(--accent-indigo-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: var(--space-md);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: all 250ms ease;
}

.cert-card:hover .cert-badge-icon {
  transform: scale(1.06);
  border-color: var(--accent-indigo);
  box-shadow: 0 8px 22px rgba(99, 102, 241, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.cert-content h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: var(--fw-bold);
  color: var(--text-primary);
  margin-bottom: 4px;
}

.cert-issuer {
  font-size: 0.88rem;
  color: var(--accent-indigo-light);
  font-family: var(--font-mono);
  margin-bottom: 8px;
}

.cert-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: var(--space-md);
}

.cert-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--space-sm);
}

.cert-id {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-tertiary);
}

.cert-verify-link {
  color: var(--accent-cyan);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: var(--fw-semibold);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.cert-verify-link:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   12. SERVICES SECTION
   -------------------------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.service-card {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-icon-box {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.16) 0%, rgba(19, 23, 34, 0.9) 100%);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: var(--accent-indigo-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  margin-bottom: var(--space-md);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: all 250ms ease;
}

.service-card:hover .service-icon-box {
  transform: scale(1.06);
  border-color: var(--accent-indigo);
  box-shadow: 0 8px 22px rgba(99, 102, 241, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.service-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: var(--fw-bold);
  color: var(--text-primary);
  margin-bottom: 8px;
}

.service-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-md);
  flex-grow: 1;
}

.service-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: var(--space-md);
}

.service-features-list li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-features-list li i {
  color: var(--accent-emerald);
  font-size: 0.8rem;
}

/* --------------------------------------------------------------------------
   13. CONTACT SECTION
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--space-xl);
  align-items: start;
}

.contact-info-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contact-card-item {
  padding: var(--space-md) var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.contact-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  background: rgba(99, 102, 241, 0.1);
  color: var(--accent-indigo-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-detail h4 {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.contact-detail p,
.contact-detail a {
  font-size: 1.05rem;
  font-weight: var(--fw-bold);
  color: var(--text-primary);
  text-decoration: none;
}

.contact-detail a:hover {
  color: var(--accent-indigo-light);
}

.contact-form-wrapper {
  padding: var(--space-xl);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: var(--fw-medium);
  color: var(--text-primary);
  margin-bottom: 6px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: rgba(7, 9, 14, 0.85);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--accent-indigo-light);
  box-shadow: 0 0 18px rgba(99, 102, 241, 0.32);
}

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

.form-feedback {
  margin-top: var(--space-sm);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  display: none;
}

.form-feedback.success {
  display: block;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid var(--accent-emerald);
  color: var(--accent-emerald);
}

/* --------------------------------------------------------------------------
   14. FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-xl) 0 var(--space-md) 0;
  background: var(--bg-deep-black);
  position: relative;
  z-index: var(--z-base);
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-tertiary);
  font-size: var(--fs-small);
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.back-to-top {
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: var(--fs-small);
  transition: color var(--transition-fast);
}

.back-to-top:hover {
  color: var(--accent-indigo-light);
}

/* --------------------------------------------------------------------------
   15. FLOATING GLASS AI EXECUTIVE ASSISTANT WIDGET
   -------------------------------------------------------------------------- */
.ai-chatbot-widget {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 1000;
  font-family: var(--font-body);
}

.chatbot-trigger-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 10px 12px;
  border-radius: var(--radius-full);
  background: var(--bg-card-glass);
  border: 1px solid var(--accent-indigo);
  color: var(--text-primary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(99, 102, 241, 0.25);
  cursor: pointer;
  transition: all 250ms ease;
}

.chatbot-trigger-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 30px rgba(99, 102, 241, 0.4);
  border-color: var(--accent-indigo-light);
}

.chatbot-icon-ring {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--grad-btn-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.6);
}

.chatbot-trigger-badge {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: var(--fw-semibold);
}

.ai-chatbot-window {
  position: absolute;
  bottom: 70px;
  right: 0;
  width: 360px;
  height: 480px;
  border-radius: 20px;
  background: #131722;
  border: 1px solid var(--border-glass);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transition: all 300ms var(--ease-apple);
  will-change: transform, opacity;
}

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

.chatbot-header {
  padding: 14px 18px;
  background: var(--bg-deep-black);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chatbot-avatar-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chatbot-avatar {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid var(--accent-indigo);
  color: var(--accent-indigo-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.online-indicator {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-emerald);
  border: 2px solid var(--bg-deep-black);
}

.chatbot-name {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: var(--fw-bold);
  color: var(--text-primary);
}

.chatbot-status {
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.chatbot-close-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.1rem;
  cursor: pointer;
  transition: color 200ms ease;
}

.chatbot-close-btn:hover {
  color: var(--text-primary);
}

.chatbot-messages {
  flex-grow: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-msg {
  display: flex;
  max-width: 85%;
}

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

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

.msg-bubble {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.86rem;
  line-height: 1.5;
}

.user-msg .msg-bubble {
  background: var(--accent-indigo);
  color: #ffffff;
  border-bottom-right-radius: 2px;
}

.bot-msg .msg-bubble {
  background: var(--bg-card-glass);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  border-bottom-left-radius: 2px;
}

.msg-bubble a {
  color: var(--accent-cyan);
  text-decoration: underline;
}

.chatbot-prompts {
  padding: 8px 12px;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  background: var(--bg-deep-black);
  border-top: 1px solid var(--border-subtle);
}

.chat-prompt-chip {
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.75rem;
  white-space: nowrap;
  cursor: pointer;
  transition: all 200ms ease;
}

.chat-prompt-chip:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: var(--accent-indigo);
  color: var(--text-primary);
}

.chatbot-input-form {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  background: var(--bg-deep-black);
  border-top: 1px solid var(--border-subtle);
  gap: 8px;
}

.chatbot-input {
  flex-grow: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 8px 14px;
  color: var(--text-primary);
  font-size: 0.85rem;
  outline: none;
}

.chatbot-input:focus {
  border-color: var(--accent-indigo);
}

.chatbot-send-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--grad-btn-primary);
  border: none;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 200ms ease;
}

.chatbot-send-btn:hover {
  background: var(--accent-indigo-light);
}

/* Typing Indicator */
.typing-bubble {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 12px 16px;
}
.typing-bubble span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-secondary);
  animation: typingBounce 1.4s infinite ease-in-out both;
}
.typing-bubble span:nth-child(1) { animation-delay: -0.32s; }
.typing-bubble span:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingBounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}
