/* === GENERAL RESET === */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* === COSMIC BACKGROUND === */
body {
  font-family: 'Open Sans', sans-serif;
  background: linear-gradient(to bottom, #0b0d2a 0%, #091138 50%, #061747 100%);
  color: #ffffff;
  position: relative;
  line-height: 1.6;
  min-height: 100vh;
  padding-bottom: 100px;
  overflow-x: hidden;
}

/* Star field effect */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(1px 1px at 25% 30%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1px 1px at 70% 10%, rgba(170, 170, 255, 0.6), transparent),
    radial-gradient(1.5px 1.5px at 60% 70%, rgba(255, 204, 255, 0.6), transparent),
    radial-gradient(2px 2px at 40% 60%, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(2px 2px at 80% 85%, rgba(153, 153, 255, 0.6), transparent),
    radial-gradient(1px 1px at 10% 90%, rgba(204, 204, 204, 0.6), transparent),
    radial-gradient(1.5px 1.5px at 15% 15%, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1px 1px at 90% 40%, rgba(170, 170, 255, 0.6), transparent);
  background-repeat: repeat;
  background-size: 1800px 1800px;
  z-index: -1;
  opacity: 0.8;
  animation: twinkle 120s linear infinite;
}

/* Subtle nebula effect */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 30% 50%, rgba(76, 0, 255, 0.15), transparent 60%),
    radial-gradient(circle at 70% 90%, rgba(0, 183, 255, 0.1), transparent 65%),
    radial-gradient(circle at 90% 20%, rgba(255, 0, 128, 0.1), transparent 55%);
  z-index: -2;
  opacity: 0.5;
}

@keyframes twinkle {
  0% { background-position: 0 0; }
  100% { background-position: 1800px 1800px; }
}

/* === HEADER === */
header {
  padding: 60px 20px 30px;
  text-align: center;
  position: relative;
}

header h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.8rem;
  margin-bottom: 15px;
  color: #ffffff;
  text-shadow: 0 0 15px #22d4fd, 0 0 40px #1e3f66;
  letter-spacing: 0.5px;
}

header p {
  font-size: 1.1rem;
  color: #a9d1ff;
  margin-bottom: 20px;
}

/* === BUTTONS === */
.btn, button {
  background: linear-gradient(135deg, #1f7a8c, #1a6985);
  border: none;
  border-radius: 25px;
  padding: 12px 28px;
  color: white;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  margin-top: 10px;
  box-shadow: 0 0 15px rgba(31, 122, 140, 0.4);
}

.btn:hover, button:hover {
  background: linear-gradient(135deg, #2eaedc, #2590b6);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 0 20px rgba(46, 174, 220, 0.6);
}

.btn:focus, button:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(46, 174, 220, 0.5), 0 0 15px rgba(31, 122, 140, 0.4);
}

/* === CTA BUTTON === */
.cta-button {
  background: #42f4ff;
  color: #0a0f29;
  margin: 0 15px;
  padding: 8px 18px;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s, color 0.2s;
}

.cta-button:hover {
  background: #0a0f29;
  color: #42f4ff;
  border: 2px solid #42f4ff;
}

/* === SECTION CONTAINERS === */
section, form, #report-result {
  background: rgba(10, 15, 30, 0.75);
  backdrop-filter: blur(10px);
  border-radius: 18px;
  padding: 30px;
  margin: 40px auto;
  max-width: 900px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5), 0 0 1px rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

/* === SECTION TITLES === */
.section-title {
  font-size: 1.8rem;
  margin-bottom: 25px;
  text-align: center;
  color: #ffffff;
  text-shadow: 0 0 10px rgba(66, 244, 255, 0.6);
  position: relative;
  padding-bottom: 10px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #42f4ff, transparent);
}

/* === CARDS === */
.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.card {
  flex: 1 1 260px;
  min-height: 140px;
  background: rgba(15, 20, 40, 0.5);
  border-radius: 15px;
  padding: 25px 20px;
  text-align: center;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
  z-index: -1;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 25px rgba(66, 244, 255, 0.2);
}

.card h3 {
  margin-bottom: 15px;
  color: #a9d1ff;
}

/* === FORMS === */
form input, form select {
  width: 100%;
  padding: 12px;
  margin: 12px 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(15, 20, 40, 0.6);
  color: #fff;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

form input:focus, form select:focus {
  border-color: rgba(66, 244, 255, 0.4);
  box-shadow: 0 0 0 2px rgba(66, 244, 255, 0.2);
  outline: none;
}

form input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

/* === FOOTER === */
footer {
  position: relative;
  text-align: center;
  padding: 20px 10px;
  font-size: 0.85rem;
  color: #a9d1ff;
  margin-top: 40px;
}

footer a {
  color: #88ccff;
  text-decoration: none;
  transition: color 0.2s ease;
}

footer a:hover {
  color: #42f4ff;
  text-decoration: underline;
}

/* === UTILITY CLASSES === */
.center-text {
  text-align: center;
}

.mt-20 {
  margin-top: 20px;
}

/* === DATA DISPLAY === */
.solar-activity, .geomagnetic-activity, .aurora-forecast {
  line-height: 1.8;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 768px) {
  section, form, #report-result {
    padding: 20px;
    margin: 20px 10px;
  }
  
  .cards {
    gap: 15px;
  }
  
  header h1 {
    font-size: 2.2rem;
  }
}

@media (max-width: 600px) {
  section, form, #report-result {
    padding: 15px;
    margin: 15px 5px;
    max-width: 100%;
  }
  
  .cards {
    flex-direction: column;
    gap: 15px;
  }
  
  header {
    padding: 30px 10px 15px;
  }
  
  header h1 {
    font-size: 1.8rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .btn, button {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}
