/* ==========================================================================
   Atlanta Life & Adventure Blog - Premium Design System (Vanilla CSS)
   ========================================================================== */

/* --- Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

/* --- Design Tokens / CSS Variables --- */
:root {
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  /* Colors - Serene, Natural, Organic (Palo Alto Run Club & Vibe Coding) */
  --bg-dark: #fbf9f4;               /* Warm oatmeal/linen background */
  --bg-panel: rgba(255, 255, 255, 0.75); /* Clean glass panels */
  --bg-panel-hover: rgba(255, 255, 255, 0.9);
  --border-light: rgba(95, 125, 99, 0.12); /* Soft sage-tinted borders */
  --border-glow: rgba(95, 125, 99, 0.25);

  /* Accents (HSL) */
  --accent-cyan: 17, 49%, 58%;      /* Terracotta/Ochre - Travel (#c97d60) */
  --accent-purple: 210, 21%, 45%;   /* Slate Blue/Berkeley Econ (#5c748c) */
  --accent-emerald: 128, 14%, 43%;  /* Sage Green - Fitness/Run Club (#5f7d63) */
  --accent-rose: 340, 50%, 55%;     /* Dusty Rose highlight */

  --text-primary: #2d352c;          /* Soft organic charcoal (dark olive-black) */
  --text-muted: #626e5e;            /* Soft leaf/sage gray */
  --text-dark: #fbf9f4;

  /* Shadows & Blur */
  --glass-shadow: 0 10px 30px -10px rgba(95, 125, 99, 0.08), 0 1px 3px rgba(0,0,0,0.02);
  --glow-shadow-cyan: 0 4px 12px rgba(201, 125, 96, 0.15);
  --glow-shadow-purple: 0 4px 12px rgba(92, 116, 140, 0.15);
  --glow-shadow-emerald: 0 4px 12px rgba(95, 125, 99, 0.15);
  --blur-radius: 12px;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* --- Base & Reset --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(95, 125, 99, 0.04) 0%, transparent 45%),
    radial-gradient(circle at 80% 80%, rgba(201, 125, 96, 0.04) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(92, 116, 140, 0.03) 0%, transparent 60%);
  background-attachment: fixed;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: rgba(95, 125, 99, 0.2);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(95, 125, 99, 0.4);
}

a {
  color: hsl(var(--accent-cyan));
  text-decoration: none;
  transition: var(--transition-smooth);
}

a:hover {
  color: hsl(var(--accent-emerald));
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* --- Layout Components --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Grid Utilities */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

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

@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
  }
}

/* --- Glassmorphism Card Style --- */
.glass-panel {
  background: var(--bg-panel);
  backdrop-filter: blur(var(--blur-radius));
  -webkit-backdrop-filter: blur(var(--blur-radius));
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 1.75rem;
  box-shadow: var(--glass-shadow);
  transition: var(--transition-smooth);
}

.glass-panel:hover {
  border-color: rgba(95, 125, 99, 0.25);
  background: var(--bg-panel-hover);
}

/* Accent borders */
.border-cyan { border-top: 4px solid hsl(var(--accent-cyan)); }
.border-purple { border-top: 4px solid hsl(var(--accent-purple)); }
.border-emerald { border-top: 4px solid hsl(var(--accent-emerald)); }

/* --- Navigation & Header --- */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 249, 244, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  padding: 1rem 0;
}

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

.logo {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, hsl(var(--accent-emerald)), hsl(var(--accent-cyan)));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-sub {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

nav a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
}

nav a.active, nav a:hover {
  color: var(--text-primary);
  background: rgba(95, 125, 99, 0.08);
}

.nav-connect-btn {
  background: linear-gradient(135deg, hsl(var(--accent-emerald)), hsl(var(--accent-cyan)));
  color: #fff !important;
  font-weight: 600 !important;
  padding: 0.5rem 1.25rem;
  border-radius: 20px;
  box-shadow: var(--glow-shadow-emerald);
}

.nav-connect-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(95, 125, 99, 0.3);
}

/* Mobile Menu Toggle */
.menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .menu-btn {
    display: block;
  }
  
  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border-light);
    padding: 1.5rem 2rem;
  }
  
  nav.open {
    display: block;
  }
  
  nav ul {
    flex-direction: column;
    gap: 1rem;
  }
}

/* --- Hero Section --- */
.hero-section {
  padding: 5rem 0 3rem;
  text-align: center;
  position: relative;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.2);
  color: hsl(var(--accent-purple));
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero-tag .pulse-dot {
  width: 8px;
  height: 8px;
  background: hsl(var(--accent-emerald));
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

.hero-title {
  font-size: 4rem;
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.hero-title span {
  background: linear-gradient(135deg, hsl(var(--accent-cyan)), hsl(var(--accent-purple)), hsl(var(--accent-emerald)));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  max-width: 700px;
  margin: 0 auto 2.5rem;
  color: var(--text-muted);
  font-size: 1.2rem;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 2rem;
}

.hero-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-stat-val {
  font-size: 2.5rem;
  font-weight: 800;
  font-family: var(--font-title);
  color: var(--text-primary);
}

.hero-stat-lbl {
  font-size: 0.85rem;
  color: var(--text-primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.75rem;
  }
  .hero-stats {
    gap: 1.5rem;
    flex-wrap: wrap;
  }
}

/* --- Section Global Layouts --- */
.section-wrapper {
  padding: 4rem 0;
  display: none; /* Controlled by JS Tabs */
}

.section-wrapper.active {
  display: block;
  animation: fadeIn 0.5s ease-out forwards;
}

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

.section-subtitle {
  color: hsl(var(--accent-purple));
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2.25rem;
  margin-bottom: 0.75rem;
}

/* --- Blog Section (The Feed) --- */
.blog-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.blog-filters {
  display: flex;
  gap: 0.75rem;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  padding: 0.5rem 1.25rem;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 500;
  font-family: var(--font-body);
  transition: var(--transition-smooth);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--text-primary);
  color: var(--bg-dark);
  border-color: var(--text-primary);
  transform: translateY(-1px);
}

.blog-search-box {
  position: relative;
  max-width: 300px;
  width: 100%;
}

.blog-search-box input {
  width: 100%;
  padding: 0.6rem 1rem 0.6rem 2.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  color: var(--text-primary);
  font-family: var(--font-body);
  outline: none;
  transition: var(--transition-smooth);
}

.blog-search-box input:focus {
  border-color: hsl(var(--accent-purple));
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.15);
}

.blog-search-box i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

/* Post Cards */
.post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.post-card:hover {
  transform: translateY(-4px);
}

.post-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.post-cat {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
}

.cat-fitness { background: rgba(95, 125, 99, 0.12); color: hsl(var(--accent-emerald)); }
.cat-travel { background: rgba(201, 125, 96, 0.12); color: hsl(var(--accent-cyan)); }
.cat-career { background: rgba(92, 116, 140, 0.12); color: hsl(var(--accent-purple)); }

.post-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.post-title {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.post-summary {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.post-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

.post-readmore {
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
}

.post-readmore:hover i {
  transform: translateX(3px);
}

.post-readmore i {
  transition: var(--transition-smooth);
}

.post-likes {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.post-likes:hover {
  color: hsl(var(--accent-rose));
}

.post-likes.liked {
  color: hsl(var(--accent-rose));
}

/* --- Fitness Section --- */
.fitness-layout {
  display: grid;
  grid-template-columns: 1.2fr 1.8fr;
  gap: 2rem;
}

@media (max-width: 900px) {
  .fitness-layout {
    grid-template-columns: 1fr;
  }
}

.stat-grid-mini {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.fitness-stat-card {
  text-align: center;
  padding: 1.5rem;
}

.fitness-stat-num {
  font-size: 2.25rem;
  font-weight: 800;
  font-family: var(--font-title);
  color: hsl(var(--accent-emerald));
  text-shadow: var(--glow-shadow-emerald);
}

.fitness-stat-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.trail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-light);
}

.trail-item:last-child {
  border-bottom: none;
}

.trail-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.trail-loc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.trail-difficulty {
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-weight: 700;
}

.diff-hard { background: rgba(244, 63, 94, 0.1); color: hsl(var(--accent-rose)); }
.diff-mod { background: rgba(168, 85, 247, 0.1); color: hsl(var(--accent-purple)); }
.diff-easy { background: rgba(16, 185, 129, 0.1); color: hsl(var(--accent-emerald)); }

/* Race Timeline */
.race-timeline-wrapper {
  margin-top: 1.5rem;
}

.race-entry {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.race-entry::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 40px;
  bottom: -20px;
  width: 2px;
  background: var(--border-light);
}

.race-entry:last-child::before {
  display: none;
}

.race-icon {
  width: 50px;
  height: 50px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsl(var(--accent-emerald));
  font-size: 1.25rem;
  flex-shrink: 0;
  z-index: 2;
}

.race-info {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  flex-grow: 1;
}

.race-header-line {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.25rem;
}

.race-name {
  font-weight: 600;
  font-size: 1rem;
}

.race-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.race-stats {
  font-size: 0.85rem;
  color: hsl(var(--accent-emerald));
}

/* --- Travel Section --- */
.travel-layout {
  display: grid;
  grid-template-columns: 1.8fr 1.2fr;
  gap: 2rem;
}

@media (max-width: 900px) {
  .travel-layout {
    grid-template-columns: 1fr;
  }
}

/* SVG Interactive Map */
.map-container {
  position: relative;
  width: 100%;
  padding-bottom: 50%; /* Aspect ratio 2:1 */
  background: #f2eee5; /* Sand/linen background */
  border: 1px solid var(--border-light);
  border-radius: 20px;
  overflow: hidden;
}

.world-map-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.map-continent {
  fill: #e6dfd3;
  stroke: rgba(95, 125, 99, 0.08);
  stroke-width: 1px;
}

.map-country {
  fill: #ded7c9;
  stroke: var(--bg-dark);
  stroke-width: 0.5px;
  transition: var(--transition-smooth);
  cursor: pointer;
}

.map-country.visited {
  fill: rgba(95, 125, 99, 0.35); /* Sage green visited */
  stroke: rgba(95, 125, 99, 0.5);
}

.map-country.visited:hover {
  fill: hsl(var(--accent-emerald));
  filter: drop-shadow(var(--glow-shadow-emerald));
}

/* Flight Paths & Nodes */
.flight-path {
  fill: none;
  stroke: rgba(201, 125, 96, 0.4); /* Terracotta flight lines */
  stroke-width: 1.5px;
  stroke-dasharray: 4 3;
  animation: flightFlow 20s linear infinite;
  transition: var(--transition-smooth);
}

.flight-path.active, .flight-path:hover {
  stroke: hsl(var(--accent-cyan));
  stroke-width: 2.5px;
  filter: drop-shadow(var(--glow-shadow-cyan));
}

.map-node {
  fill: hsl(var(--accent-cyan)); /* Terracotta nodes */
  stroke: #fff;
  stroke-width: 1.5px;
  cursor: pointer;
  transition: var(--transition-bounce);
}

.map-node:hover, .map-node.active {
  fill: #fff;
  r: 7;
}

.map-node-pulse {
  fill: rgba(201, 125, 96, 0.35);
  pointer-events: none;
  animation: nodePulse 2s infinite ease-out;
}

.map-node-hub {
  fill: hsl(var(--accent-rose)); /* Dusty rose hub */
  stroke: #fff;
  stroke-width: 2px;
  r: 7;
}

.map-node-hub-pulse {
  fill: rgba(212, 106, 106, 0.35);
  pointer-events: none;
  animation: nodePulseHub 2s infinite ease-out;
}

@keyframes flightFlow {
  to {
    stroke-dashoffset: -100;
  }
}

@keyframes nodePulse {
  0% {
    r: 4;
    opacity: 1;
  }
  100% {
    r: 18;
    opacity: 0;
  }
}

@keyframes nodePulseHub {
  0% {
    r: 6;
    opacity: 1;
  }
  100% {
    r: 22;
    opacity: 0;
  }
}

/* Map Tooltip */
.map-tooltip {
  position: absolute;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(201, 125, 96, 0.4);
  padding: 0.6rem 0.9rem;
  border-radius: 12px;
  font-size: 0.8rem;
  color: var(--text-primary);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 10;
  box-shadow: 0 4px 15px rgba(95, 125, 99, 0.1);
}

/* Countdown Widget */
.countdown-box {
  background: linear-gradient(135deg, rgba(201, 125, 96, 0.08), rgba(95, 125, 99, 0.08));
  border: 1px solid rgba(95, 125, 99, 0.15);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
}

.countdown-digits {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 1.5rem 0;
}

.digit-block {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.digit-val {
  font-size: 2.25rem;
  font-weight: 800;
  font-family: var(--font-title);
  background: linear-gradient(135deg, hsl(var(--accent-cyan)), hsl(var(--accent-purple)));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0,0,0,0.3);
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.05);
}

.digit-lbl {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  text-transform: uppercase;
}

/* --- Career & Projects (The Lab) --- */
.career-timeline {
  position: relative;
  padding-left: 2rem;
}

.career-timeline::before {
  content: '';
  position: absolute;
  left: 9px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, hsl(var(--accent-purple)), var(--border-light));
}

.timeline-node {
  position: relative;
  margin-bottom: 2rem;
}

.timeline-dot {
  position: absolute;
  left: -29px;
  width: 20px;
  height: 20px;
  background: var(--bg-dark);
  border: 3px solid hsl(var(--accent-purple));
  border-radius: 50%;
  z-index: 2;
  box-shadow: var(--glow-shadow-purple);
  transition: var(--transition-smooth);
}

.timeline-node:hover .timeline-dot {
  background: hsl(var(--accent-purple));
  transform: scale(1.2);
}

.timeline-card {
  cursor: pointer;
  transition: var(--transition-bounce);
}

.timeline-card:hover {
  transform: scale(1.02) translateX(4px);
  border-color: hsl(var(--accent-purple));
}

.timeline-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.timeline-period {
  font-size: 0.8rem;
  font-weight: 700;
  color: hsl(var(--accent-purple));
}

.timeline-type {
  font-size: 0.75rem;
  background: rgba(168, 85, 247, 0.1);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

/* Projects grid */
.project-card {
  border-left: 4px solid hsl(var(--accent-purple));
}

.project-tech {
  font-size: 0.75rem;
  color: hsl(var(--accent-purple));
  font-weight: 700;
  margin-top: 1rem;
}

/* --- Learning Section (The Library) --- */
.learning-layout {
  display: grid;
  grid-template-columns: 1.5fr 1.5fr;
  gap: 2rem;
}

@media (max-width: 768px) {
  .learning-layout {
    grid-template-columns: 1fr;
  }
}

.book-card {
  padding: 1.25rem;
  margin-bottom: 1rem;
  border-left: 4px solid hsl(var(--accent-cyan));
  display: flex;
  flex-direction: column;
}

.book-title {
  font-size: 1.1rem;
  font-weight: 700;
}

.book-author {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.book-note {
  font-size: 0.9rem;
  font-style: italic;
  color: var(--text-primary);
  opacity: 0.85;
}

.podcast-card {
  padding: 1.25rem;
  margin-bottom: 1rem;
  border-left: 4px solid hsl(var(--accent-emerald));
}

.podcast-name {
  font-size: 1.1rem;
  font-weight: 700;
}

.podcast-topics {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* --- Interactive Chat Simulator (The Chat) --- */
.chat-container {
  max-width: 800px;
  margin: 0 auto;
  height: 550px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-header-pane {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  background: rgba(95, 125, 99, 0.05);
}

.chat-avatar {
  position: relative;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: linear-gradient(135deg, hsl(var(--accent-emerald)), hsl(var(--accent-cyan)));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.25rem;
  color: #fff;
}

.chat-avatar-status {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  background: hsl(var(--accent-emerald));
  border: 2px solid var(--bg-dark);
  border-radius: 50%;
}

.chat-header-info h3 {
  font-size: 1.05rem;
  font-weight: 600;
}

.chat-header-info p {
  font-size: 0.75rem;
  color: hsl(var(--accent-emerald));
}

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

.chat-bubble {
  max-width: 75%;
  padding: 0.85rem 1.25rem;
  border-radius: 18px;
  font-size: 0.95rem;
  animation: messageSlide 0.3s ease forwards;
}

.bubble-received {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border-light);
  border-bottom-left-radius: 4px;
  color: var(--text-primary);
}

.bubble-sent {
  align-self: flex-end;
  background: linear-gradient(135deg, hsl(var(--accent-emerald)), hsl(var(--accent-cyan)));
  color: #fff;
  font-weight: 500;
  border-bottom-right-radius: 4px;
}

.chat-typing-indicator {
  display: flex;
  gap: 0.25rem;
  padding: 0.5rem;
  align-self: flex-start;
}

.chat-typing-indicator span {
  width: 6px;
  height: 6px;
  background: var(--text-muted);
  border-radius: 50%;
  animation: typing-bounce 1.4s infinite ease-in-out both;
}

.chat-typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

/* Interactive Prompts */
.chat-prompts-row {
  padding: 0.75rem 1.5rem;
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  white-space: nowrap;
  border-top: 1px solid var(--border-light);
  background: rgba(95, 125, 99, 0.02);
}

.chat-prompt-pill {
  background: rgba(95, 125, 99, 0.06);
  border: 1px solid rgba(95, 125, 99, 0.25);
  color: hsl(var(--accent-emerald));
  padding: 0.4rem 0.9rem;
  border-radius: 16px;
  font-size: 0.8rem;
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.chat-prompt-pill:hover {
  background: hsl(var(--accent-emerald));
  color: #fff;
  border-color: hsl(var(--accent-emerald));
}

/* Chat Input Bar */
.chat-input-bar {
  display: flex;
  padding: 1rem 1.5rem;
  gap: 0.75rem;
  border-top: 1px solid var(--border-light);
  background: rgba(95, 125, 99, 0.04);
}

.chat-input-bar input {
  flex-grow: 1;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 0.75rem 1.25rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  outline: none;
  font-size: 0.95rem;
}

.chat-input-bar input:focus {
  border-color: hsl(var(--accent-cyan));
}

.chat-send-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, hsl(var(--accent-emerald)), hsl(var(--accent-cyan)));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  box-shadow: var(--glow-shadow-emerald);
  transition: var(--transition-smooth);
}

.chat-send-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(95, 125, 99, 0.3);
}

/* --- Interactive Details Modal (General Use) --- */
.details-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(45, 53, 44, 0.4);
  backdrop-filter: blur(8px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.details-modal.open {
  display: flex;
  animation: fadeIn 0.3s ease forwards;
}

.modal-content {
  background: #fbf9f4;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px -10px rgba(95, 125, 99, 0.15);
  animation: zoomIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

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

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

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

.modal-body {
  padding: 1.5rem;
}

/* Berkeley Spotlight Card */
.berkeley-card {
  background: linear-gradient(135deg, rgba(92, 116, 140, 0.08), rgba(255, 255, 255, 0.85));
  border-left: 4px solid hsl(var(--accent-purple));
}

/* --- Footer --- */
footer {
  border-top: 1px solid var(--border-light);
  padding: 3rem 0;
  margin-top: 5rem;
  text-align: center;
  background: rgba(95, 125, 99, 0.03);
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: var(--transition-smooth);
}

.social-icon:hover {
  color: #fff;
  border-color: hsl(var(--accent-purple));
  background: rgba(168, 85, 247, 0.1);
  transform: translateY(-2px);
}

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

/* --- Keyframe Animations --- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes zoomIn {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@keyframes typing-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes messageSlide {
  from { transform: translateY(15px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* --- Responsive 2-Column Chat & Contact Layout --- */
.chat-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .chat-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.contact-link:hover {
  transform: translateX(4px);
  color: var(--text-primary) !important;
}

.contact-link:hover div {
  background: rgba(var(--accent-emerald-rgb), 0.15) !important;
  border-color: hsl(var(--accent-emerald)) !important;
}

.contact-link {
  outline: none;
}
