/* === FULLSCREEN BACKGROUND CANVAS === */
#galactic-canvas {
  position: fixed;
  inset: 0;
  /* Locks to all 4 corners */
  width: 100%;
  /* Fallback */
  height: 100dvh;
  /* Dynamic viewport height for mobile */
  z-index: -1;
  /* keeps it behind everything */
}

/* === BASE STYLES === */
* {
  box-sizing: border-box;
}

html {
  background: #121212;
  /* Ensure dark background behind canvas */
}

body {
  background: transparent;
  /* Let canvas show through */
  margin: 0;
  overflow-x: hidden;
  /* hide horizontal */
  overflow-y: auto;
  /* allow vertical scroll */
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
li,
span,
a {
  color: #fff;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes chill {
  from {
    opacity: 1;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

/* === HERO SECTION === */
.hero-section {
  color: white;
  padding: 20px 10px;
  text-align: center;
  position: relative;
  z-index: 1;
  /* above canvas */
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 0;
}

.hero-content {
  display: flex;
  align-items: center;
  /* vertical alignment */
  justify-content: center;
  /* center horizontally */
  gap: 20px;
  /* space between text and logo */
  flex-wrap: nowrap;
  position: relative;
  z-index: 1;
}

.hero-content {
  display: flex;
  flex-direction: column;
  /* stack content vertically */
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-top {
  display: flex;
  align-items: flex-end;
  /* align logo and text slightly differently */
  justify-content: center;
  gap: 20px;
}

/* Hero text slightly higher */
.hero-welcome {
  font-size: 8rem;
  margin: 0;
  transform: translateY(-170%);
  color: #fff;
}

/* Logo slightly lower */
.hero-logo img {
  height: 500px;
  max-width: 100%;
  margin: 0;
  transform: translateY(5%);
}

/* === DROPDOWN SECTION === */
.dropdown-section {
  width: 100%;
  max-width: 900px;
  margin: 80px auto;
  text-align: center;
  position: relative;
  z-index: 2;
  background: transparent;
}

/* === TOGGLE BUTTON (Clean Glass Effect) === */
.dropdown-toggle {
  background: rgba(255, 255, 255, 0.05);
  color: #eaf6ff;
  padding: 14px 36px;
  border: 1px solid rgba(0, 200, 255, 0.3);
  border-radius: 14px;
  font-size: 1.05rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.35s ease;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 15px rgba(0, 200, 255, 0.15);
  letter-spacing: 0.5px;
}

.dropdown-toggle:hover {
  background: rgba(0, 160, 255, 0.1);
  border-color: rgba(0, 200, 255, 0.5);
  box-shadow: 0 0 25px rgba(0, 200, 255, 0.35);
  transform: translateY(-2px);
}

/* === DROPDOWN CARD (Modern Glass Panel) === */
.dropdown-card {
  display: none;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  margin-top: 28px;
  border-radius: 20px;
  padding: 0 28px;
  background: rgba(10, 20, 40, 0.7);
  backdrop-filter: blur(15px);
  color: #f1f5fa;
  line-height: 1.75;
  font-size: 1.05rem;
  text-align: justify;
  border: 1px solid rgba(0, 200, 255, 0.25);
  box-shadow: 0 4px 30px rgba(0, 200, 255, 0.15);
  transition:
    max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.4s ease,
    padding 0.4s ease;
  position: relative;
  will-change: max-height, opacity;
}

/* === ACTIVE STATE === */
.dropdown-card.active {
  display: block;
  opacity: 1;
  max-height: 1200px;
  padding: 40px 32px;
}

/* === LIGHT GRADIENT BORDER === */
.dropdown-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(0, 200, 255, 0.4), rgba(255, 255, 255, 0.05));
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  pointer-events: none;
  z-index: 1;
}

/* === STAR DECOR (subtle, minimal) === */
.dropdown-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 200%;
  background: transparent url('https://www.transparenttextures.com/patterns/stardust.png') repeat;
  opacity: 0.12;
  animation: moveStars 120s linear infinite;
  z-index: 0;
  pointer-events: none;
}

/* === TEXT CONTENT === */
.dropdown-card p {
  position: relative;
  z-index: 2;
  margin-bottom: 18px;
}

/* === HIGHLIGHT TEXT === */
.dropdown-card p strong {
  color: #00c8ff;
  font-weight: 600;
}

/* === BUTTON INSIDE CARD (optional call-to-action) === */
.dropdown-card .hero-btn {
  margin-top: 25px;
  background: linear-gradient(90deg, #0078ff, #00c8ff);
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

.dropdown-card .hero-btn:hover {
  background: linear-gradient(90deg, #00c8ff, #0078ff);
  transform: scale(1.05);
}

/* === SLIDE-IN ANIMATION === */
.slide-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === STAR + TWINKLE ANIMATION === */
@keyframes moveStars {
  from {
    transform: translate(0, 0);
  }

  to {
    transform: translate(-200px, -200px);
  }
}



@import url('https://fonts.googleapis.com/css?family=Cardo:400i|Rubik:400,700&display=swap');

:root {
  --d: 700ms;
  --e: cubic-bezier(0.19, 1, 0.22, 1);
  --font-sans: 'Rubik', sans-serif;
  --font-serif: 'Cardo', serif;
}

/* === SECTION WRAPPER === */
.services-section {
  padding: 60px 20px;
  text-align: center;
  position: relative;
  z-index: 1;
  background: transparent;
  border: none;
}

/* Add same overlay as hero */
.services-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  /* same as hero */
  z-index: 0;
}

/* Ensure content appears above the overlay */
.services-section>* {
  position: relative;
  z-index: 1;
}



.section-title {
  font-size: 2rem;
  margin-bottom: 2.5rem;
  color: #fff;
  font-weight: bold;
  border-bottom: 2px solid #fff;
  display: inline-block;
  padding-bottom: 6px;
}


/* === ABOUT SECTION === */
.about-section {
  padding: 60px 20px;
  background-color: rgba(255, 255, 255, 0.05);
  color: white;
  text-align: center;
  backdrop-filter: blur(4px);
  position: relative;
  z-index: 1;
}

.about-content {
  max-width: 900px;
  margin: 0 auto;
  background-color: rgba(0, 0, 0, 0.4);
  padding: 30px;
  border-radius: 12px;
}

.about-section h2 {
  font-size: 2rem;
  color: #fff;
  margin-bottom: 20px;
  border-bottom: 2px solid #fff;
  display: inline-block;
  padding-bottom: 6px;
}

.about-list {
  list-style: none;
  padding-left: 0;
  text-align: left;
  max-width: 800px;
  margin: 20px auto;
}

.about-list li {
  padding: 10px 0;
  font-size: 1rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* === NAVIGATION BUTTONS === */
.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.8em;
  color: #0A1A5C;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.left {
  left: 5px;
}

.right {
  right: 5px;
}

/* === LINKS === */
a.link {
  color: #fff;
  text-decoration: none;
}

a.link:hover {
  color: #0A1A5C;
  background: #fff;
  padding: 2px 4px;
  border-radius: 4px;
}

/* === RESPONSIVE MEDIA QUERIES === */
@media (max-width: 768px) {

  /* HERO SECTION */
  .hero-section {
    padding: 120px 20px 60px 20px;
    /* More reasonable padding */
    /* account for navbar */
    text-align: center;
  }

  .hero-top {
    flex-direction: column;
    /* stack vertically */
    padding-top: 20px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    /* Fixed negative gap */
  }

  .hero-welcome {
    font-size: 3rem;
    /* keep text big */
    margin: 0;
    text-align: center;
    transform: none;
    /* reset transform to remove extra space */

  }

  .hero-logo img {
    height: 220px;
  }

  .hero-description {
    font-size: 1rem;
    padding: 15px;
  }

  /* SERVICES SECTION */
  .services-section {
    padding: 40px 10px;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .service-card {
    height: auto;
    padding: 1.5rem;
  }

  .service-card h3 {
    font-size: 1.2rem;
  }

  .service-card p {
    font-size: 1rem;
  }

  /* ABOUT SECTION */
  .about-section {
    padding: 40px 10px;
  }

  .about-content {
    padding: 20px;
  }

  .about-section h2 {
    font-size: 1.6rem;
  }

  .about-list li {
    font-size: 1rem;
  }

  /* REAL-TIME CHARTS */
  .realtime-charts-container {
    flex-direction: column;
    gap: 15px;
    padding: 20px 10px;
  }

  .solar-wind-container,
  .k-index-container {
    flex: 1 1 100%;
    max-width: 100%;
    min-height: 250px;
  }

  canvas:not(#galactic-canvas) {
    height: 250px !important;
  }

  .legend-item {
    flex-direction: column;
    align-items: flex-start;
  }

  /* TIME RANGE BUTTONS */
  .time-range-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .time-range-buttons button,
  .time-btn {
    width: 100%;
    padding: 10px;
  }

  /* PHOTO ALBUM */
  .photo-album .nav-btn {
    font-size: 1.5em;
  }
}

/* === EXTRA RESPONSIVE STYLING FOR PHONES (MAX 480PX) === */
@media (max-width: 480px) {

  /* HERO SECTION */
  .hero-section {
    padding: 40px 10px;
  }

  .hero-welcome {
    font-size: 2.4rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-logo img {
    height: 180px;
  }

  .hero-btn {
    font-size: 0.85rem;
    padding: 10px 20px;
  }

  /* MODAL */
  .modal-card {
    width: 90%;
    padding: 20px 15px;
    font-size: 0.95rem;
  }

  .close {
    font-size: 24px;
    top: 10px;
    right: 15px;
  }

  /* GRID CARDS */
  .page-content {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .card {
    height: 250px;
  }

  /* ABOUT SECTION */
  .about-section h2 {
    font-size: 1.4rem;
  }

  .about-list li {
    font-size: 0.85rem;
  }
}