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

html {
  scroll-behavior: smooth;
}

html, body {
  width: 100%;
  background-color: #000000;
  color: #ffffff;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ==========================================================================
   GLOBAL TYPOGRAPHY: All text is PURE WHITE with a strong BLACK SHADOW behind
   ========================================================================== */
body, h1, h2, h3, h4, h5, h6, p, span, a, label, button, input, textarea, div, text {
  color: #ffffff !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.95), 0 1px 3px rgba(0, 0, 0, 1), 0 0 12px rgba(0, 0, 0, 0.9) !important;
}

/* Exception for selected dark buttons (e.g. selected category button or white primary button) */
button.cat-btn.active,
button.cat-btn.active span,
button[type="submit"] span,
.btn-primary {
  color: #000000 !important;
  text-shadow: none !important;
}

::placeholder {
  color: rgba(255, 255, 255, 0.65) !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9) !important;
}

/* Background 3D Canvas fixed across scroll */
#galaxy-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  z-index: 0;
  background-color: #000000;
  pointer-events: none;
}

/* Content container */
#site-content {
  position: relative;
  z-index: 10;
  pointer-events: auto;
}

/* Header Navbar Blurry Glass */
header {
  background: rgba(0, 0, 0, 0.45) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
}

/* ==========================================================================
   ALL CARDS ON WEBSITE: Blurry Transparent Glassmorphism Style
   ========================================================================== */
.glass-card,
.scroll-card > div,
.card-blur,
#inquiry-card,
#modal-box {
  background: rgba(15, 15, 25, 0.35) !important;
  backdrop-filter: blur(24px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(190%) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Hover effect for all cards */
.glass-card:hover,
.scroll-card > div:hover,
.card-blur:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.45) !important;
  backdrop-filter: blur(32px) saturate(210%) !important;
  -webkit-backdrop-filter: blur(32px) saturate(210%) !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(255, 255, 255, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
}

/* Input Fields Blurry Transparent */
input, textarea {
  background: rgba(255, 255, 255, 0.04) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

input:focus, textarea:focus {
  background: rgba(255, 255, 255, 0.09) !important;
  border-color: rgba(255, 255, 255, 0.6) !important;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.15) !important;
}

/* Loading Overlay */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #000000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.loading-screen.fade-out {
  opacity: 0;
  visibility: hidden;
}

.spinner {
  width: 44px;
  height: 44px;
  border: 3px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  border-top-color: #6366f1;
  border-right-color: #a855f7;
  animation: spin 0.8s linear infinite;
  margin-bottom: 20px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-bar-container {
  width: 220px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 12px;
}

.loading-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #6366f1, #a855f7, #ec4899);
  transition: width 0.15s ease-out;
  border-radius: 2px;
}

.loading-text {
  font-size: 13px;
  letter-spacing: 1.5px;
  font-weight: 500;
  color: #ffffff !important;
}

/* Smooth Scroll Reveal Animations */
.scroll-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.scroll-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.scroll-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Modal Active State */
#modal-container.active {
  opacity: 1;
  pointer-events: auto;
}

#modal-container.active #modal-box {
  transform: scale(1);
}
