/* ===== ROOT THEME ===== */

:root {
  --bg: #050b1a;
  --panel: #0b162d;
  --text: #ffffff;
  --muted: #b8c2e0;
  --accent: #5fb3ff;
}

/* ===== RESET ===== */

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

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Exo', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;






}

p {
  font-size: 1.5rem;
  line-height: 1.65;
}

h1 {
  font-weight: 600;
  letter-spacing: 0.6px;
}

h3 {
  font-weight: 500;
  font-size: 2rem;
  letter-spacing: 0.4px;
}

/* ===== LAYOUT UTILITIES ===== */

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

.row {
  display: flex;
}

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

.center {
  align-items: center;
}

.space-between {
  justify-content: space-between;
}

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

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

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

.header {
  background: rgba(5, 11, 26, 0.9);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  position: sticky;
  top: 0;
  z-index: 10;
}

.logo {
  font-weight: 700;
  letter-spacing: 1px;
}

.nav a {
  margin-left: 1.5rem;
  text-decoration: none;
  color: var(--text);
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.nav a:hover {
  opacity: 1;
}

/* ===== HERO ===== */

.hero {
  position: relative;
  min-height: 75vh;
  display: flex;
  align-items: center;
  background-image: url("/assets/images/hero-bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  will-change: background-position;
}

.hero h1 {
  font-family: 'IBM Plex Mono', 'Exo', sans-serif;
  
  margin-bottom: 1rem;
  text-shadow: 0 0 8px rgba(127, 154, 205, 0.777);
}

.hero p {
  max-width: 560px;
  position:relative;
  color: var(--muted);
  margin-bottom: 2rem;
}

/* Hero Accent Glow */

.hero-accent {
  position: absolute;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, var(--accent), transparent 65%);
  opacity: 0.35;
  filter: blur(60px);
  top: -120px;
  right: -120px;
  pointer-events: none;
  animation: floatGlow 14s ease-in-out infinite;
}

@keyframes floatGlow {
  0%   { transform: translate(0, 0); }
  50%  { transform: translate(-80px, 60px); }
  100% { transform: translate(0, 0); }
}

/* ===== BUTTONS ===== */

.btn-primary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--accent);
  padding: 0.8rem 1.6rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-primary:hover {
  box-shadow: 0 0 18px rgba(95,179,255,0.6);
  transform: translateY(-2px);
}

/* ===== FEATURES ===== */

.features {
  background: var(--panel);
}

.card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(95,179,255,0.25);
}

.card h3 {
  font-family: 'IBM Plex Mono', 'Exo', sans-serif;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 0.75rem;
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.386);
}

.card p {
  color: var(--muted);
}

/* ===== REVEAL ANIMATION ===== */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
/* ===== FOOTER ===== */

.footer {
  background: linear-gradient(
    to top,
    rgba(5, 11, 26, 0.95),
    rgba(5, 11, 26, 0.85)
  );
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 4rem 0 3rem;
  position: relative;
  overflow: hidden;
}

.footer-callsign {
  font-family: 'IBM Plex Mono', 'Exo', sans-serif;
  font-size: 2.1rem;
  font-weight: 700;
  letter-spacing: 1.6px;
  margin-bottom: 0.75rem;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.777);
  font-feature-settings: "zero" 1;
  font-variant-numeric: slashed-zero;
}


.footer-tagline {
  color: var(--muted);
  max-width: 420px;
  margin-bottom: 1.5rem;
}

.footer-meta {
  font-size: 0.85rem;
  opacity: 0.6;
}

/* Subtle grid glow */

.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, black 40%, transparent 75%);
  pointer-events: none;
}

.callsign {
  font-family: 'IBM Plex Mono', 'Exo', sans-serif;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.777);
  font-feature-settings: "zero" 1;
  font-variant-numeric: slashed-zero;
}
/* ===== HERO CARD ===== */

.hero-card {
  background: rgba(116, 135, 255, 0.327);
  border: 1px solid rgba(100, 151, 255, 0.886);
  border-radius: 18px;
  padding: 4rem 4.5rem;
  max-width: 880px;
  align-items: center;
  text-align: center;
  backdrop-filter: blur(10px);
  box-shadow:
    0 0 0 1px rgba(95,179,255,0.08),
    0 30px 60px rgba(0,0,0,0.45);
}
.hero .container {
  display: flex;
  position:relative;
  z-index: 1;
}
/* ===== BRAND LOGO ===== */

.brand {
  font-family: 'Exo', sans-serif;
  font-weight: 700;
  font-size: clamp(4rem, 9vw, 6rem);
  letter-spacing: 2px;
}

.brand-main {
  background: linear-gradient(180deg, #ffffff, #5caefb);
  background-clip: text;                 /* standard */
  -webkit-background-clip: text;         /* safari/chrome */
  color: transparent;
}

.brand-x {
  color: #5fb3ff;
  text-shadow:
    0 0 8px rgba(95,179,255,0.7),
    0 0 20px rgba(95,179,255,0.4),
    0 0 40px rgba(95,179,255,0.2);
  margin-left: 2px;
}
@keyframes glowPulse {
  0%, 100% {
    text-shadow:
      0 0 8px rgba(95,179,255,0.6),
      0 0 20px rgba(95,179,255,0.35),
      0 0 40px rgba(95,179,255,0.15);
  }
  50% {
    text-shadow:
      0 0 12px rgba(95,179,255,0.9),
      0 0 30px rgba(95,179,255,0.55),
      0 0 60px rgba(95,179,255,0.25);
  }
}

.brand-x {
  animation: glowPulse 3s ease-in-out infinite;
}
/*
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 24, 0.65);
  z-index: 0;
}
*/

/* ===== DASHBOARD ===== */

.dashboard {
  padding: 4rem 0 6rem;
}

.dashboard-title {
  font-size: 2.5rem;
  margin-bottom: 2.5rem;
}

.widget-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;   /* left wide, right narrow */
  gap: 2rem;
  align-items: stretch;
}


  .widget {
  background: rgba(10, 18, 30, 0.75);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 1.8rem;
  backdrop-filter: blur(8px);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.widget:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
}

.widget h3 {
  font-family: 'IBM Plex Mono', 'Exo', sans-serif;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
}

.widget-body {
  font-size: 0.95rem;
  color: var(--muted);
}

.nav a.active {
  color: #5fb3ff;
}

.nav a.active::after {
  width: 100%;
}
.bg-parallax {
  background-image: url("/assets/images/hero-bg.jpg"); /* same image */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
/* ===== WEATHER WIDGET ===== */

.weather {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.weather-main {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.weather-temp {
  font-size: 2.4rem;
  font-weight: 600;
}

.weather-desc {
  font-size: 0.95rem;
  color: var(--muted);
  text-transform: capitalize;
}

.weather-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  opacity: 0.9;
}
.widget-weather {
  grid-column: 2 / 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  flex: 1;
}


.psk-widget {
  grid-column: 1 / 2;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 640px;
}


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

.psk-controls select {
  background: #08162a;
  color: #fff;
  border: 1px solid rgba(120,180,255,0.25);
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
}

.toggle {
  font-size: 0.9rem;
  opacity: 0.85;
}

/* ===== HEATMAP ===== */
/* ===== Heatmap Layer Fix ===== */

.map-container {
  position: relative;
  width: 100%;
  height: 420px;
  border-radius: 12px;
  overflow: hidden;
}

/* Map image goes underneath */
.map-container img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;     /* fills without distortion */
  z-index: 1;
}

#heatmap {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

/* Individual heat blobs */
.heat-dot {
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgb(249, 21, 211, 1) 0%,
    rgba(249, 21, 211, 0.6) 35%,
    rgba(249, 21, 211,0.15) 60%,
    rgba(249, 21, 211,0) 75%);
    filter: blur(12px);
  transform: translate(-50%, -50%);
  pointer-events: none;
  mix-blend-mode: screen;
  
}
@media (max-width: 900px) {
  .widget-grid {
    grid-template-columns: 1fr;
  }

  .psk-widget,
  .widget-weather {
    grid-column: auto;
  }
}

.widget-divider {
  border: none;
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 1.2rem 0;
}

.solar h4 {
  font-size: 1rem;
  margin-bottom: 0.6rem;
  letter-spacing: 0.5px;
}

.solar-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
  color: var(--muted);
}

.solar-row span:last-child {
  color: var(--text);
  font-weight: 600;
}

.solar-updated {
  font-size: 0.7rem;
  opacity: 0.6;
  margin-top: 0.4rem;
}

.moon-widget {
  text-align: center;
  padding-top: 0.75rem;
}

.moon-widget img {
  max-width: 100%;
  border-radius: 10px;
  opacity: 0.95;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.moon-widget img:hover {
  transform: scale(1.02);
  opacity: 1;
}
/* ==============================
   Clock Widget Styling
   ============================== */
.widget-clock {
  background: #1a1a1a;          /* same dark style as PSK */
  color: #e1db17;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.widget-clock h3 {
  margin-bottom: 12px;
  font-weight: 600;
  font-size: 1.2rem;
  text-align: center;
}

.widget-clock .clock-body {
  font-family: "Exo", sans-serif;
  font-size: 2rem;
  letter-spacing: 1px;
  text-align: center;
  color: #ffffff;   /* nice accent color */
}
.widget-clock .clock-date {
  font-size: 1rem;
  color: #ffffff;
  opacity: 0.7;
  margin-top: 6px;
}
#psk-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
}
.map-image {
  display: block;
}
.map-container {
  position: relative;
}
@keyframes pulse {
  0% {
    stroke-dasharray: 1, 200;
    stroke-dashoffset: 0;
  }
  50% {
    stroke-dasharray: 100, 200;
    stroke-dashoffset: -50;
  }
  100% {
    stroke-dasharray: 1, 200;
    stroke-dashoffset: -200;
  }
}

.psk-line {
  animation-name: pulse;
  animation-duration: 3s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: 1;
  animation-direction: alternate;
  animation-fill-mode: forwards;
}
.widget-iss::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("/assets/images/iss.jpg"); /* your image path */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.18;   /* controls transparency */
  z-index: 0;
}
.widget-iss::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center,
    rgba(95,179,255,0.15),
    rgba(0,0,0,0.6));
  z-index: 0;
}

.widget-iss .widget-body {
  position: relative;
  z-index: 1;
}
.on-air-container span {
  font-family: 'Exo', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: #050505; /* off color */
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Neon glow when ON */
.on-air-container.on span {
  color: #5fb3ff;
  text-shadow:
    0 0 4px #5fb3ff,
    0 0 10px #5fb3ff,
    0 0 20px #5fb3ff,
    0 0 30px rgba(95,179,255,0.5);
  animation: neonPulseText 1.5s ease-in-out infinite alternate;
}

@keyframes neonPulseText {
  0% {
    text-shadow:
      0 0 4px #5fb3ff,
      0 0 10px #5fb3ff,
      0 0 20px #5fb3ff,
      0 0 30px rgba(95,179,255,0.5);
  }
  50% {
    text-shadow:
      0 0 6px #5fb3ff,
      0 0 14px #5fb3ff,
      0 0 28px #5fb3ff,
      0 0 40px rgba(95,179,255,0.6);
  }
  100% {
    text-shadow:
      0 0 4px #5fb3ff,
      0 0 10px #5fb3ff,
      0 0 20px #5fb3ff,
      0 0 30px rgba(95,179,255,0.5);
  }
}
/* Neon ON AIR Text */
.on-air-container {
  display: flex;
  justify-content: center; /* center above weather */
  margin-bottom: 1rem;
  font-family: 'Exo', sans-serif;
  font-weight: 700;
}

.on-air-container span {
  font-size: 2.5rem;
  color: #000000; /* off state */
  letter-spacing: 2px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  text-align: center;
}

/* Neon glow when ON */
.on-air-container.on span {
  color: #5fb3ff;
  text-shadow:
    0 0 4px #5fb3ff,
    0 0 10px #5fb3ff,
    0 0 20px #5fb3ff,
    0 0 30px rgba(95,179,255,0.5);
  animation: neonPulse 1.5s ease-in-out infinite alternate;
}

@keyframes neonPulse {
  0% {
    text-shadow:
      0 0 4px #5fb3ff,
      0 0 10px #5fb3ff,
      0 0 20px #5fb3ff,
      0 0 30px rgba(95,179,255,0.5);
  }
  50% {
    text-shadow:
      0 0 6px #5fb3ff,
      0 0 14px #5fb3ff,
      0 0 28px #5fb3ff,
      0 0 40px rgba(95,179,255,0.6);
  }
  100% {
    text-shadow:
      0 0 4px #5fb3ff,
      0 0 10px #5fb3ff,
      0 0 20px #5fb3ff,
      0 0 30px rgba(95,179,255,0.5);
  }
}

/* Off state text */
.on-air-container.off span {
  color: #151414;
  text-shadow: none;
}
#top-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  transition: top 0.5s ease, opacity 0.5s ease;
  opacity: 0; /* start hidden */
  z-index: 1000;
  background: rgba(0,0,0,0.8); /* optional for transparency */
}
#top-menu.show {
  opacity: 1;
  top: 0;
}
#top-menu.hide {
  opacity: 0;
  top: -100px; /* hide off screen */
}
