/* ═══════════════════════════════════════════
   GHARD SPACE — Modern Clean Dark Design
   ═══════════════════════════════════════════ */

:root {
  --bg-base: #0a0a12;
  --bg-surface: #11111a;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.06);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  --text-main: #f0f0f5;
  --text-sub: #a1a1b2;
  --text-muted: #6b6b7b;
  --accent: #00ff88;
  --accent-blue: #00f2fe;
  --accent-purple: #d946ef;
  --accent-gold: #f59e0b;
  --font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --sidebar-w: 260px;
  --radius: 12px;
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background-color: var(--bg-base);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ═══════════════════ LAYOUT ═══════════════════ */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
}

/* ═══════════════════ SIDEBAR NAV ═══════════════════ */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.5rem 1.5rem;
  background: linear-gradient(180deg, rgba(10, 10, 20, 0.95) 0%, rgba(17, 17, 26, 0.98) 100%);
  border-right: 1px solid var(--border-subtle);
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.nav-header {
  cursor: pointer;
  margin-bottom: 2.5rem;
}

.nav-header .category {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
}

.nav-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 0.25rem;
  color: var(--text-main);
  transition: color 0.3s ease;
}

.nav-header:hover h2 {
  color: var(--accent-blue);
}

.nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav-btn {
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-align: left;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  color: var(--text-sub);
  transition: all 0.25s ease;
  font-family: var(--font);
}

.nav-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
}

.nav-btn.active {
  color: var(--text-main);
  font-weight: 500;
  background: rgba(255, 255, 255, 0.06);
}

.nav-btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}

.nav-footer {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.nav-footer-links {
  display: flex;
  gap: 1rem;
}

.nav-footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.7rem;
}

.nav-footer-links a:hover {
  color: var(--accent-blue);
}

@media (max-width: 960px) {
  .sidebar {
    display: none;
  }

  .main-content {
    padding: 2rem 1.5rem 4rem;
  }
}

/* ═══════════════════ HERO ═══════════════════ */
.hero {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 6rem 0;
}

.hero h1 {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text-main);
}

.hero .highlight {
  color: var(--accent);
}

.hero-tag {
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-sub);
  font-weight: 300;
  max-width: 600px;
  line-height: 1.7;
}

.hero-sub strong {
  color: var(--text-main);
  font-weight: 500;
}

.hero-divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  margin: 2.5rem 0;
}

/* ═══════════════════ SECTION HEADERS ═══════════════════ */
.section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  margin-top: 3rem;
}

.section-header h2 {
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-sub);
  font-weight: 500;
}

.section-icon {
  color: var(--accent);
  display: flex;
  align-items: center;
}

.section-line {
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
}

/* ═══════════════════ GRID & CARDS ═══════════════════ */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: var(--transition);
  cursor: pointer;
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.card-date {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.card-category {
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  background: rgba(0, 242, 254, 0.08);
  color: var(--accent-blue);
}

.card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
  margin-bottom: 0.75rem;
  color: var(--text-main);
}

.card:hover h3 {
  color: var(--accent);
}

.card-excerpt {
  font-size: 0.85rem;
  color: var(--text-sub);
  line-height: 1.6;
  font-weight: 300;
}

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

.card-read {
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
}

.card-time {
  font-size: 0.68rem;
  color: var(--text-muted);
}

/* Featured Card */
.featured-card {
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.04) 0%, rgba(0, 242, 254, 0.03) 50%, var(--bg-card) 100%);
  border: 1px solid rgba(0, 255, 136, 0.1);
  border-radius: 16px;
  padding: 3rem;
  margin-bottom: 2rem;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.featured-card::after {
  content: 'FEATURED';
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  background: rgba(0, 255, 136, 0.08);
  border: 1px solid rgba(0, 255, 136, 0.15);
}

.featured-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 255, 136, 0.2);
}

.featured-card .card-date {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  display: block;
}

.featured-card h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 1rem;
}

.featured-card .card-excerpt {
  font-size: 0.95rem;
  color: var(--text-sub);
  line-height: 1.7;
  font-weight: 300;
  max-width: 680px;
}

.featured-card .card-read {
  display: inline-block;
  margin-top: 1.5rem;
  font-size: 0.75rem;
}

/* ═══════════════════ INTRO SECTION ═══════════════════ */
.intro-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 2rem;
  padding: 2.5rem 0;
}

.intro-section h3 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.intro-section p {
  font-size: 0.95rem;
  color: var(--text-sub);
  line-height: 1.75;
  font-weight: 300;
}

.intro-section p strong {
  color: var(--text-main);
  font-weight: 500;
}

.interest-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.interest-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.88rem;
  color: var(--text-sub);
}

.interest-list strong {
  color: var(--text-main);
  font-weight: 500;
}

/* ═══════════════════ SPECTACULAR ═══════════════════ */
.phenomenon-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
}

.phenomenon-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-5px);
}

.phenomenon-img-box {
  height: 170px;
  position: relative;
  overflow: hidden;
}

.phenomenon-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.phenomenon-card:hover .phenomenon-img-box img {
  transform: scale(1.05);
}

.phenomenon-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(5px);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 0.25rem 0.6rem;
  font-size: 0.58rem;
  font-family: monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.phenomenon-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.phenomenon-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.phenomenon-content .card-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.phenomenon-content .card-location-badge {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.phenomenon-content .card-action {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  color: var(--text-sub);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 0.3s;
}

.phenomenon-card:hover .card-action {
  color: var(--text-main);
}

.phenomenon-card .card-icon-container {
  align-self: flex-start;
  padding: 0.75rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

/* Creatures */
.creature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.creature-card:hover {
  border-color: var(--border-hover);
}

.creature-img-box {
  height: 200px;
  position: relative;
  background: #02030a;
  overflow: hidden;
}

.creature-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(10%) brightness(0.85);
  transition: all 0.6s ease;
}

.creature-card:hover .creature-img-box img {
  filter: brightness(1) saturate(1.1);
  transform: scale(1.03);
}

.creature-img-overlay {
  position: absolute;
  inset: 0;
  background-size: 20px 20px;
  background-image: linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  pointer-events: none;
}

.creature-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(5px);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 0.25rem 0.6rem;
  font-size: 0.58rem;
  font-family: monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.creature-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.creature-scientific {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-style: italic;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.creature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-main);
}

.creature-card p {
  font-size: 0.8rem;
  color: var(--text-sub);
  line-height: 1.6;
  font-weight: 300;
  margin-bottom: 1.5rem;
}

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

.creature-habitat {
  font-size: 0.62rem;
  font-family: monospace;
  text-transform: uppercase;
  color: var(--text-muted);
}

.creature-toggle-btn {
  background: none;
  border: none;
  outline: none;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-sub);
  cursor: pointer;
  font-family: var(--font);
  transition: color 0.3s;
}

.creature-toggle-btn:hover {
  color: var(--text-main);
}

.creature-stats-panel {
  border-top: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.25);
  height: 0;
  overflow: hidden;
  transition: height 0.4s ease;
}

.creature-stats-panel.active {
  height: auto;
}

.stats-panel-inner {
  padding: 1.5rem;
}

.creature-numerical-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.num-stat-box {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 0.6rem;
  text-align: center;
}

.num-stat-box .stat-label {
  font-size: 0.58rem;
  font-family: monospace;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.15rem;
}

.num-stat-box .stat-val {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  font-family: monospace;
}

.creature-xray-text {
  background: rgba(255, 70, 70, 0.03);
  border: 1px solid rgba(255, 70, 70, 0.15);
  border-radius: 10px;
  padding: 0.75rem;
  margin-top: 1rem;
  font-size: 0.72rem;
  color: rgba(255, 180, 180, 0.85);
  line-height: 1.5;
  font-weight: 300;
}

/* ═══════════════════ MODAL ═══════════════════ */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(10, 10, 20, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-card {
  background: linear-gradient(135deg, rgba(17, 17, 26, 0.95) 0%, rgba(10, 10, 20, 0.98) 100%);
  border: 1px solid var(--border-hover);
  border-radius: 24px;
  width: 100%;
  max-width: 960px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  position: relative;
}

.modal-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  z-index: 10;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-hover);
}

.modal-inner {
  padding: 2.5rem;
}

.modal-header-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.modal-badge {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
}

.modal-coordinates {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: monospace;
}

.modal-title {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  color: var(--text-main);
}

.modal-banner {
  width: 100%;
  height: 280px;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 2rem;
  border: 1px solid var(--border-subtle);
}

.modal-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.modal-subtitle {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.modal-description {
  font-size: 0.9rem;
  color: var(--text-sub);
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 2rem;
}

.factors-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.factor-item {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 1rem;
}

.factor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.factor-desc {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 300;
}

.flow-steps {
  border-left: 1px solid var(--border-subtle);
  padding-left: 1.5rem;
  margin-left: 0.5rem;
  position: relative;
}

.flow-step {
  position: relative;
  margin-bottom: 1.75rem;
}

.flow-step-num {
  position: absolute;
  left: -33px;
  top: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg-base);
  border: 1px solid var(--border-hover);
  color: var(--text-main);
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flow-step p {
  font-size: 0.82rem;
  color: var(--text-sub);
  line-height: 1.6;
  font-weight: 300;
}

.modal-footer {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.25rem;
  margin-top: 2rem;
  font-size: 0.65rem;
  text-align: center;
  color: var(--text-muted);
}

/* ═══════════════════ TIMELINE ═══════════════════ */
.timeline-container {
  border-left: 1px solid var(--border-subtle);
  margin-left: 1rem;
  padding-left: 2rem;
  position: relative;
}

.timeline-item {
  position: relative;
  margin-bottom: 3.5rem;
}

.timeline-dot {
  position: absolute;
  left: -39px;
  top: 0.25rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-base);
  border: 1px solid var(--border-hover);
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-dot .dot-inner {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.timeline-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
}

.timeline-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.timeline-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.timeline-status {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(0, 255, 136, 0.25);
  background: rgba(0, 255, 136, 0.05);
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
}

.timeline-location {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.timeline-item h3 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-main);
  margin-top: 0.25rem;
}

.timeline-desc {
  font-size: 0.88rem;
  color: var(--text-sub);
  line-height: 1.6;
  font-weight: 300;
}

.timeline-widget {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.72rem;
}

.timeline-widget-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.widget-label {
  color: var(--text-muted);
}

.widget-val {
  font-family: monospace;
  color: var(--text-main);
}

.widget-val.accent-val {
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
}

.widget-val.green-val {
  color: #4ade80;
}

.timeline-img-box {
  width: 100%;
  height: 160px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  margin: 0.75rem 0 1rem;
}

.timeline-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

/* ═══════════════════ CONTACT ═══════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 4rem;
  margin-top: 2rem;
}

.contact-info h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.contact-info p {
  color: var(--text-sub);
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.contact-detail i {
  color: var(--accent-blue);
}

.contact-detail span {
  font-family: monospace;
  font-size: 0.85rem;
  color: var(--text-main);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 2rem;
  border-radius: var(--radius);
}

.form-group label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: var(--text-main);
  font-family: var(--font);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent-blue);
}

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

.btn-submit {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  color: var(--text-main);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-submit:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* ═══════════════════ LEGAL ═══════════════════ */
.legal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
}

.legal-block h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.legal-block p {
  color: var(--text-sub);
  font-size: 0.85rem;
  line-height: 1.8;
  font-weight: 300;
}

.legal-block p strong {
  color: var(--text-main);
  font-weight: 500;
}

/* ═══════════════════ FOOTER ═══════════════════ */
footer {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  border-top: 1px solid var(--border-subtle);
  margin-top: 4rem;
}

/* ═══════════════════ RESPONSIVE ═══════════════════ */
@media (max-width: 960px) {
  .intro-section {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .timeline-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .modal-columns {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

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

  .hero {
    padding: 4rem 0;
  }

  .hero h1 {
    font-size: clamp(2rem, 8vw, 3rem);
  }
}

/* ═══════════════════ FROGGER STYLES (Arcade) ═══════════════════ */
.frogger-wrapper {
  font-family: var(--font);
  color: var(--text-main);
  max-width: 640px;
  margin: 0 auto;
}

.game-container {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.game-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 16px;
}

.logo-area {
  text-align: center;
}

.logo-area h1 {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--text-main);
}

.logo-area h1 .neon-text-pink {
  color: var(--accent-purple);
}

.tagline {
  font-size: 0.5rem;
  color: var(--text-muted);
  letter-spacing: 3px;
}

.hud-top {
  display: flex;
  justify-content: space-between;
  width: 100%;
  gap: 10px;
  margin-top: 8px;
}

.hud-item {
  flex: 1;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.hud-label {
  font-size: 0.5rem;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.hud-value {
  font-size: 0.8rem;
  font-weight: bold;
  color: var(--text-main);
  font-family: monospace;
}

.neon-text-pink {
  color: var(--accent-purple);
}

.neon-text-cyan {
  color: var(--accent-blue);
}

.neon-text-green {
  color: var(--accent);
}

.neon-text-red {
  color: #ff3333;
}

.progression-bar-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

.progression-label {
  font-size: 0.45rem;
  color: var(--text-muted);
}

.crossing-dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.dot.active {
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  border-color: var(--accent);
}

.game-board-wrapper {
  position: relative;
  width: 100%;
}

.canvas-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #000;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid var(--border-subtle);
}

#gameCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.screen-overlay {
  position: absolute;
  inset: 0;
  background: rgba(3, 3, 8, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.screen-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.screen-content {
  text-align: center;
  padding: 24px;
  width: 90%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.screen-content h2 {
  font-size: 1.4rem;
  margin-bottom: 8px;
  color: var(--text-main);
}

.level-desc {
  font-size: 0.6rem;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.rules-box,
.stats-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 14px;
  text-align: left;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-sub);
  width: 100%;
}

.rules-box p,
.stats-box p {
  margin-bottom: 8px;
}

.rules-box p:last-child,
.stats-box p:last-child {
  margin-bottom: 0;
}

.stats-box {
  text-align: center;
  font-size: 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn {
  font-size: 0.7rem;
  padding: 14px 28px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--text-main);
  text-transform: uppercase;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  width: 80%;
  max-width: 280px;
}

.btn:active {
  transform: scale(0.95);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
}

.btn-danger {
  background: linear-gradient(135deg, #ff3333, #990000);
}

.btn-success {
  background: linear-gradient(135deg, var(--accent), #009933);
}

.btn-audio {
  width: auto;
  font-size: 0.8rem;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-sub);
  border-radius: 8px;
}

.btn-audio:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
}

.controls-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 16px;
}

.control-instructions {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
}

.d-pad {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.d-pad-row {
  display: flex;
  gap: 4px;
}

.d-pad-btn {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-size: 1.2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.1s ease;
}

.d-pad-btn:active {
  background: rgba(0, 240, 255, 0.2);
  border-color: var(--accent-blue);
  transform: scale(0.92);
}

.d-pad-center {
  width: 54px;
  height: 54px;
  background: transparent;
  border: none;
  pointer-events: none;
}

.blink-slow {
  animation: blinker 1.8s linear infinite;
}

@keyframes blinker {
  50% { opacity: 0; }
}

.text-shake { animation: shake 0.5s infinite; }
.text-bounce { animation: bounce 1s infinite alternate; }

@keyframes shake {
  0% { transform: translate(1px, 1px) rotate(0deg); }
  10% { transform: translate(-1px, -2px) rotate(-1deg); }
  20% { transform: translate(-3px, 0px) rotate(1deg); }
  30% { transform: translate(0px, 2px) rotate(0deg); }
  40% { transform: translate(1px, -1px) rotate(1deg); }
  55% { transform: translate(-1px, 2px) rotate(-1deg); }
  70% { transform: translate(-3px, 1px) rotate(0deg); }
  85% { transform: translate(2px, 1px) rotate(-1deg); }
  100% { transform: translate(1px, -2px) rotate(0deg); }
}

@keyframes bounce {
  from { transform: translateY(0); }
  to { transform: translateY(-10px); }
}

@media(max-height: 750px) {
  .game-container { padding: 16px; gap: 12px; }
  .logo-area h1 { font-size: 1.4rem; }
  .hud-item { padding: 6px 10px; }
  .d-pad-btn { width: 46px; height: 46px; }
  .d-pad-center { width: 46px; height: 46px; }
  .btn { padding: 10px 20px; }
}

/* ═══════════════════ WEATHER PORTAL STYLES ═══════════════════ */
#weather {
  position: relative;
}

.weather-portal {
  margin-top: 1rem;
  position: relative;
  z-index: 5;
}

.weather-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.weather-tabs {
  display: flex;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 30px;
  padding: 0.25rem;
}

.weather-tab-btn {
  background: none;
  border: none;
  outline: none;
  padding: 0.5rem 1.25rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-sub);
  cursor: pointer;
  transition: all 0.3s;
  font-family: var(--font);
}

.weather-tab-btn:hover {
  color: var(--text-main);
}

.weather-tab-btn.active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}

.weather-search-container {
  position: relative;
  width: 260px;
}

.weather-search-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 30px;
  padding: 0.5rem 1rem;
}

.weather-search-box input {
  background: none;
  border: none;
  outline: none;
  color: var(--text-main);
  font-size: 0.75rem;
  width: 100%;
  font-family: var(--font);
}

.weather-search-box input::placeholder {
  color: var(--text-muted);
}

.weather-search-suggestions {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  background: rgba(17, 17, 26, 0.95);
  border: 1px solid var(--border-hover);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
  z-index: 50;
  max-height: 200px;
  overflow-y: auto;
}

.weather-suggestion-btn {
  background: none;
  border: none;
  outline: none;
  width: 100%;
  text-align: left;
  padding: 0.65rem 1rem;
  font-family: var(--font);
  border-bottom: 1px solid var(--border-subtle);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: background 0.2s;
}

.weather-suggestion-btn:hover {
  background: rgba(255, 255, 255, 0.05);
}

.weather-suggestion-btn strong {
  font-size: 0.75rem;
  color: var(--text-main);
}

.weather-suggestion-btn span {
  font-size: 0.62rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.weather-unit-toggle {
  display: flex;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 30px;
  padding: 0.25rem;
}

.weather-unit-toggle button {
  background: none;
  border: none;
  outline: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-sub);
  cursor: pointer;
  font-family: var(--font);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.weather-unit-toggle button.active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}

.weather-bg-container {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
  opacity: 0.4;
}

.weather-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  position: relative;
  z-index: 2;
}

.weather-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
}

.weather-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
}

.main-weather-card {
  grid-column: span 2;
}

.weather-country {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 500;
}

.weather-city-name {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-main);
  margin-top: 0.15rem;
}

.weather-live-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  font-size: 0.58rem;
  color: var(--text-sub);
}

.main-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.main-card-temp-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 2rem 0;
  gap: 2rem;
  flex-wrap: wrap;
}

.weather-temp-large {
  font-size: clamp(3rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-main);
  line-height: 1;
}

.weather-feel {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.weather-feel strong {
  color: var(--text-main);
  font-weight: 500;
}

.weather-summary-box {
  max-width: 280px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 1rem;
  display: flex;
  gap: 0.75rem;
  font-size: 0.75rem;
  line-height: 1.5;
}

.weather-summary-box strong {
  color: var(--text-main);
  display: block;
  margin-bottom: 0.15rem;
}

.weather-summary-box p {
  color: var(--text-sub);
  font-weight: 300;
}

.main-card-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.5rem;
}

.metric-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.metric-item span {
  display: block;
  font-size: 0.58rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.metric-item strong {
  display: block;
  font-size: 0.82rem;
  color: var(--text-main);
  font-family: monospace;
  margin-top: 0.1rem;
}

/* Radar Card */
.radar-card {
  padding: 1.25rem;
}

.radar-radar-container {
  position: relative;
  height: 190px;
  background: #02030a;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.radar-radar-container canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.radar-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 0.25rem 0.6rem;
  font-size: 0.58rem;
  font-weight: 600;
  color: var(--text-sub);
  text-transform: uppercase;
  z-index: 5;
}

.radar-sunny-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 20, 0.6);
  backdrop-filter: blur(2px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  z-index: 4;
}

.radar-sunny-overlay strong {
  font-size: 0.82rem;
  color: var(--text-main);
  margin-bottom: 0.15rem;
}

.radar-sunny-overlay span {
  font-size: 0.68rem;
  color: var(--text-muted);
}

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

.radar-wind-footer span {
  display: block;
  font-size: 0.58rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.radar-wind-footer strong {
  display: block;
  font-size: 0.82rem;
  color: var(--text-main);
}

/* Meteogram Card */
.meteogram-card {
  grid-column: span 3;
}

.card-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.card-title-row h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
}

.meteogram-scroll-wrapper {
  overflow-x: auto;
  margin: 0 -1.75rem;
  padding: 0 1.75rem;
}

.meteogram-inner-container {
  position: relative;
  min-width: 580px;
  height: 190px;
}

.meteogram-inner-container svg {
  width: 100%;
  height: 100%;
  display: block;
}

.meteogram-timeline-labels {
  position: absolute;
  top: 145px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 30px;
}

.meteogram-label-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 32px;
}

.meteogram-label-col span {
  font-size: 0.58rem;
  font-family: monospace;
  color: var(--text-muted);
  font-weight: 600;
}

/* Forecast Card */
.forecast-toggle-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--accent-blue);
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.68rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  transition: all 0.3s;
}

.forecast-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.forecast-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.forecast-row:last-child {
  border-bottom: none;
}

.forecast-day {
  width: 70px;
  font-weight: 500;
  color: var(--text-sub);
}

.forecast-condition-info {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  width: 60px;
}

.forecast-rain-prob {
  font-size: 0.58rem;
  font-family: monospace;
  font-weight: 750;
}

.forecast-range-bar-container {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 4px;
  position: relative;
  margin: 0 0.75rem;
  overflow: hidden;
}

.forecast-range-bar-fill {
  position: absolute;
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-gold), var(--accent-gold));
}

.forecast-temps {
  width: 70px;
  text-align: right;
  font-size: 0.75rem;
  font-family: monospace;
  font-weight: 700;
}

.forecast-temp-min {
  color: var(--text-muted);
  margin-right: 0.5rem;
}

.forecast-week-card {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 0.85rem;
  margin-bottom: 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.forecast-week-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 700;
}

.forecast-week-summary {
  display: flex;
  justify-content: space-between;
  font-size: 0.7px;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding-top: 0.4rem;
}

/* Health Card */
.aqi-circle-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  margin-bottom: 1.5rem;
}

.aqi-ring {
  transform: rotate(-90deg);
}

.aqi-ring-content {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.aqi-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-main);
  font-family: monospace;
}

.aqi-label {
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 0.15rem;
}

.pollen-meters-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pollen-item {
  font-size: 0.75rem;
}

.pollen-label-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.25rem;
  color: var(--text-sub);
}

.pollen-bar-bg {
  height: 6px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 4px;
  overflow: hidden;
}

.pollen-bar-fill {
  height: 100%;
  border-radius: 4px;
}

.health-footer-metrics {
  display: flex;
  justify-content: space-between;
  font-size: 0.65rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.85rem;
  margin-top: 1.25rem;
}

.health-footer-metrics strong {
  color: var(--text-main);
}

/* Astro Card */
.astro-trajectory-box {
  position: relative;
  height: 110px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1rem;
  overflow: hidden;
}

.astro-curve-svg {
  width: 100%;
  height: 100%;
}

.astro-label-sunrise,
.astro-label-sunset {
  position: absolute;
  bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.68rem;
  color: var(--text-sub);
}

.astro-label-sunrise {
  left: 0.5rem;
}

.astro-label-sunset {
  right: 0.5rem;
}

.astro-details-list {
  display: flex;
  flex-direction: column;
  font-size: 0.8rem;
}

.astro-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-sub);
}

.astro-detail-row strong {
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.astro-footer-text {
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.85rem;
  margin-top: 1.25rem;
  font-size: 0.65rem;
  text-align: center;
  color: var(--text-muted);
}

.astro-footer-text strong {
  color: var(--text-main);
}

/* rain / snow effects */
@keyframes rain {
  0% { transform: translateY(-10vh) translateX(0); opacity: 0; }
  10% { opacity: 0.4; }
  90% { opacity: 0.4; }
  100% { transform: translateY(100vh) translateX(-20px); opacity: 0; }
}

.rain-drop {
  position: absolute;
  background: linear-gradient(transparent, rgba(255, 255, 255, 0.4));
  width: 1px;
  height: 60px;
  animation: rain linear infinite;
}

@keyframes snow {
  0% { transform: translateY(-10vh) translateX(0) rotate(0deg); opacity: 0; }
  10% { opacity: 0.8; }
  90% { opacity: 0.8; }
  100% { transform: translateY(100vh) translateX(50px) rotate(360deg); opacity: 0; }
}

.snow-flake {
  position: absolute;
  background: white;
  border-radius: 50%;
  animation: snow linear infinite;
}

@keyframes lightning {
  0%, 95%, 98%, 100% { opacity: 0; }
  96%, 99% { opacity: 0.3; }
  97% { opacity: 0.05; }
}

.lightning-flash {
  position: absolute;
  inset: 0;
  background: white;
  opacity: 0;
  animation: lightning 6s infinite;
  pointer-events: none;
}

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

  .main-weather-card,
  .meteogram-card {
    grid-column: span 1;
  }

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