/* ===== Base / Background ===== */
:root {
  --space-img: url("https://images.unsplash.com/photo-1444703686981-a3abbc4d4fe3?q=80&w=2400&auto=format&fit=crop"); /* swap to your own if you like */
  --bg-dim: 1;
}

/* Full-page starfield background */
html, body {
  height: 100%;
  width: 100%;
  font-family: 'Inter';
}

body {
  color: #fff;
  background-image: var(--space-img);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  
  /* Subtle vignette to improve contrast on edges */
}

/* Make the navbar truly transparent while keeping readable links */
.bg-transparent-true {
  background-color: transparent !important;
}
.navbar .nav-link,
.navbar .navbar-brand {
  color: #fff !important;
}
.navbar .nav-link:hover,
.navbar .navbar-brand:hover {
  opacity: .85;
}

/* Hero overlay to ensure text readability on any background */
#hero .overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(1200px 600px at 50% 40%, rgba(0,0,0,.15), rgba(0,0,0,.55));
}

#about {
    background: radial-gradient(1200px 600px at 50% 40%, rgba(0,0,0,.15), rgba(0,0,0,.55));
}
.gradient-text {
  background: linear-gradient(90deg, #fff, #c8faff, #c1d5d8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Section spacing */
.section-padding {
  padding: 80px 0;
}
@media (min-width: 992px) {
  .section-padding {
    padding: 110px 0;
  }
}

/* Glassmorphism helpers for readability over images */
.glass-card,
.glass-panel,
.glass-img,
.glass-btn,
.glass-pill {
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.glass-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.glass-panel {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.glass-img {
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 10px 40px rgba(0,0,0,.35);
}
.glass-btn {
  border-color: rgba(255,255,255,.7) !important;
}

/* Cards */
.card {
  border-radius: 1rem;
  border: none;
}

/* Footer */
footer {
  background: rgba(0, 0, 0, 0.25);
}

/* Forms on dark background */
.form-control,
.form-select,
.form-floating > .form-control,
.form-floating > .form-select {
  color: #fff;
}
.form-control::placeholder { color: rgba(255,255,255,.65); }
.form-control,
.form-select {
  border-color: rgba(255,255,255,.35);
}
.form-control:focus,
.form-select:focus {
  border-color: #fff;
  box-shadow: 0 0 0 .25rem rgba(255,255,255,.15);
}

/* Buttons */
.btn-light {
  color: #111;
}

/* Accessibility tweaks */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px dashed rgba(255,255,255,.7);
  outline-offset: 3px;
}

/* Utility */
.shadow-xxl {
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.55);
}

/* === Global background overlay (applies site-wide) === */
body::before {
  content: "";
  position: fixed;      /* stays put while you scroll */
  inset: 0;
  z-index: -1;          /* sits behind all content */
  /* same vibe as your hero overlay, but full screen */
  background:
    radial-gradient(1200px 600px at 50% 40%,
      rgba(0,0,0,.15),
      rgba(0,0,0,.55)),

    /* optional uniform dim on top of image */
    /* linear-gradient(rgba(0,0,0,.35), rgba(0,0,0,.35)), */

    var(--space-img);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Remove the background from body itself (we're drawing it in ::before) */
body {
  color: #fff;
  background: none;
}
