/* ===================== 
      GLOBAL STYLES
======================== */

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  color: rgb(241, 241, 241);
}

a {
  color: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
}

.btn-orange {
  background-color: #ff8c00;
  color: #0b0f1a;
  border: 2px solid #000;
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  transition: background-color 0.5s ease, color 0.5s ease;
}

.btn-orange:hover,
.btn-orange:focus {
  background-color: #FFF100;
  color: #0b0f1a;
  text-decoration: none;
}

/* ================== 
      NAVIGATION
===================== */

.navbar {
  background-color: #222;
  color: white;
  position: relative;
  z-index: 1000;
}

.logo {
  padding: 2rem;
}

/* ============= 
      HERO
================ */

.hero-section {
  position: relative;
  min-height: 30vh;
  background-color: #222;
  padding-bottom: 3rem;
}

.hero-section .container {
  position: relative;
  z-index: 2;
}

.hero-title {
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  margin: 0 auto 1.5rem;
  text-align: center;
}

.hero-text-narrow,
.text-narrow {
  max-width: 500px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-actions .btn {
  min-width: 140px;
}

/* ================== 
     WHAT WE DO
===================== */

.what-we-do {
  min-height: 55vh;
  background-color: #222;
  padding: 4rem 0;
  border-bottom: rgb(79, 79, 79) 1px solid;
}

.card-body {
  padding: 2rem;
  background-color: #e0e0e0;
}

.card-title,
.card-text {
  color: #000;
}

.icon-accent {
  color: #ff8c00;
}

/* ================= 
    WHY SECTIONS
==================== */

.why-section {
  min-height: 40vh;
  background-color: #222;
  color: white;
  padding: 6rem 0;
  border-bottom: rgb(79, 79, 79) 1px solid;
}

.visual img {
  width: 100%;
  max-width: 520px;
  border-radius: 10px;
}

@media (min-width: 992px) {
  .col-lg-7 {
    padding-top: 3.5rem;
    padding-left: 7.5rem;
  }
}

/* ==================
   MODALS (GLOBAL)
===================== */

.modal-content {
  background-color: #1a1a1a;
  color: #f3f3f3;
  border-radius: 14px;
  border: 1px solid #ff8c00;
  box-shadow: 0 0 40px #222;
}

.modal-header {
  border-bottom: 1px solid #424242;
  padding: 1.25rem 1.5rem;
}

.modal-title {
  font-weight: 600;
  letter-spacing: 0.02em;
}

.btn-close {
  filter: invert(1);
  opacity: 0.7;
}

.btn-close:hover {
  opacity: 1;
}

.modal-body {
  padding: 1.5rem;
  line-height: 1.6;
}

.modal .form-label {
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #adadad;
}

.modal .form-control {
  background-color: #C7C7C7;
  border: 1px solid #ff8c00;
  color: black;
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
}

.modal .form-control::placeholder {
  color: black;
}

.modal .form-control:focus {
  border-color: #ff8c00;
  outline: none;
  box-shadow: 0 0 0 0.15rem rgba(255, 140, 0, 0.598);
}

.modal .btn-orange {
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.7rem;
}

.modal .text-muted,
.modal .small {
  color: #adadad !important;
}

.modal.fade .modal-dialog {
  transform: scale(0.95);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.modal.show .modal-dialog {
  transform: scale(1);
}

/* ======================= 
   STELLAR CLASSIFICATION
========================== */

section.stellar-classification {
  background-color: #222;
  color: white;
  min-height: 45vh;
  padding: 6rem 0;
  border-bottom: rgb(79, 79, 79) 1px solid;
}

.stellar-intro {
  max-width: 720px;
  margin: 0 auto 1rem;
  padding: 1.75rem 2rem;
  line-height: 1.6;
}

.stellar-diagram {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  flex-wrap: wrap;
  padding: 0 40px;
  gap: 15px;
}

.star-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: inset -4px -4px 8px rgba(0, 0, 0, 0.3),
    inset 4px 4px 8px rgba(255, 255, 255, 0.2), 0 2px 6px rgba(0, 0, 0, 0.5);
}

.star-btn:hover {
  transform: scale(1.15);
  box-shadow: inset -4px -4px 12px rgba(0, 0, 0, 0.3),
    inset 4px 4px 12px rgba(255, 255, 255, 0.3)
}

/* Star gradients */
.star-o {
  background: radial-gradient(circle at 30% 30%, #a3d4ff, #0077ff);
}
.star-b {
  background: radial-gradient(circle at 30% 30%, #cce6ff, #3399ff);
}
.star-a {
  background: radial-gradient(circle at 30% 30%, #fff, #ccc);
}
.star-f {
  background: radial-gradient(circle at 30% 30%, #fff9c4, #ffd700);
}
.star-g {
  background: radial-gradient(circle at 30% 30%, #fff176, #fbc02d);
}
.star-k {
  background: radial-gradient(circle at 30% 30%, #ffb74d, #ff8c00);
}
.star-m {
  background: radial-gradient(circle at 30% 30%, #ff8a80, #d32f2f);
}

/* =========================
   EXOPLANET CLASSIFICATION
============================= */

.exoplanet-classification {
  background-color: #222;
  min-height: 45vh;
  padding-top: 6rem;
  padding-bottom: 4rem;
  border-bottom: rgb(79, 79, 79) 1px solid;
}

.exoplanet-intro p {
  max-width: 700px;
  margin: auto;
}

.exoplanet-diagram {
  margin-top: 50px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.planet-btn {
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
  padding: 10px;
  box-shadow: inset -5px -5px 15px rgba(0, 0, 0, 0.2);
}

.planet-btn:hover {
  transform: scale(1.2);
  box-shadow: inset -5px -5px 15px rgba(0, 0, 0, 0.2);
}

/* Exoplanet gradients */
.terrestrial {
  background: radial-gradient(circle at 30% 30%, #6bbf59, #2b7a9b);
}

.super-earth {
  background: radial-gradient(circle at 30% 30%, #6bbf59, #1f5672);
}

.mini-neptune {
  background: radial-gradient(circle at 30% 30%, #6aa6d8, #1f4f80);
}
.gas-giant {
  background: radial-gradient(circle at 30% 30%, #f4b27c, #c9743d);
}
.ice-giant {
  background: radial-gradient(circle at 30% 30%, #a3d4f7, #417ca0);
}
.hot-jupiter {
  background: radial-gradient(circle at 30% 30%, #ff715e, #c33a1b);
}
.rogue {
  background: radial-gradient(circle at 30% 30%, #777777, #333333);
}

/* ===================
        FOOTER
====================== */

.footer {
  background-color: #222;
  padding: 2rem 0;
}

/* =================== 
        MOBILE 
====================== */

@media (max-width: 767px) {
  .what-we-do,
  .why-section,
  section.stellar-classification,
  .exoplanet-classification {
    min-height: auto;
    padding: 4rem 1rem;
  }
}

@media (max-width: 767px) {
  .stellar-diagram {
    justify-content: center;
    gap: 20px 30px; /* row gap, column gap */
  }
}