:root {
  --bg-color: #0b0d10;
  --text-white: #f0f0f0;
  --brand-sky: #3996c0;
  --brand-teal: #2d7799;
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-bg: rgba(255, 255, 255, 0.05);
}

body {
  margin: 0;
  background-color: var(--bg-color);
  font-family: "Oswald", sans-serif;
  color: var(--text-white);
  overflow: hidden;
  width: 100vw;
  height: 100vh;
}

/* --- 100% CLEAN ARENA --- */
#parallax-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  perspective: 2000px;
  overflow: hidden;
}

/* --- CENTRAL HERO CARD (Desktop) --- */
.hero-card {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1000;
  width: 34vw;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  display: flex;
  flex-direction: column;
}

.glass-content {
  background: var(--glass-bg);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid var(--glass-border);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 2.5rem;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

.hero-logo {
  max-width: 100%;
  height: auto;
  max-height: 100px;
  object-fit: contain;
  margin-bottom: 1.5rem;
}

/* RESTORED BUTTON DESIGN */
.cta-btn {
  background: var(--text-white);
  color: #000;
  border: none;
  padding: 14px 32px;
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
  appearance: none;
}

.cta-btn:hover {
  background: var(--brand-sky);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(57, 150, 192, 0.4);
}

/* --- MOBILE CTA PILL --- */
.cta-glow-button {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 15px 40px;
  background: var(--text-white);
  color: #000;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  z-index: 3000;
  animation: pulse-glow 4s infinite ease-in-out;
  font-family: "Oswald", sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
}

@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 15px rgba(57, 150, 192, 0.2);
  }
  50% {
    box-shadow: 0 0 30px rgba(57, 150, 192, 0.6);
  }
}

/* --- FLOATING DISCOVERY CARDS --- */
.parallax-item {
  position: absolute;
  will-change: transform;
  transform-style: preserve-3d;
  z-index: 500;
  transition:
    width 0.3s ease,
    height 0.3s ease;
}

/* ZOOM-IN-PLACE LOGIC */
.parallax-item.zooming {
  z-index: 5000;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.card-front {
  background-size: cover;
  background-position: center;
  border: 1px solid var(--glass-border);
  opacity: 0.9;
}

.card-back {
  background: rgba(11, 13, 16, 0.95);
  backdrop-filter: blur(15px);
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  border: 1px solid var(--brand-sky);
  text-align: center;
}

.card-back h4 {
  font-size: clamp(0.8rem, 2vw, 1.5rem);
  margin: 0 0 0.5rem 0;
  color: var(--brand-sky);
  text-transform: uppercase;
}

.card-back p {
  font-family: "Share Tech Mono";
  font-size: 0.8rem;
  margin: 0;
  color: #ccc;
}

/* --- RESPONSIVE LOGIC --- */
@media (max-width: 1024px) {
  .hero-card {
    width: 50vw; /* Medium screens */
  }
}

@media (max-width: 768px) {
  /* Restore Hero Card for Mobile */
  .hero-card {
    display: flex;
    width: 85vw; /* Fills most of the width on phones */
    padding: 0;
  }

  .glass-content {
    padding: 1.5rem; /* Tighter padding for mobile */
  }

  .hero-logo {
    max-height: 70px; /* Smaller logo for mobile */
  }

  .glass-content h1 {
    font-size: 1.5rem; /* Readable header for small screens */
  }

  /* Remove the mobile-only pill button */
  .cta-glow-button {
    display: none !important;
  }

  .parallax-item {
    width: 160px; /* Defined mobile size for drift consistency */
    height: 100px;
  }
}

/* --- STATIC STARFIELD BACKGROUND --- */
#starfield {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1; /* Sits behind the parallax-container */
  background-color: #000000;
  pointer-events: none;
}
