/* ==========================================================================
   Atlantis Space Shuttle Landing Page Stylesheet
   Modern Cosmic Glassmorphism & Responsive Full-Screen Backdrop
   ========================================================================== */

/* Design Tokens */
:root {
  --color-bg-space: #01010d;
  --color-text-main: #f0f6fc;
  --color-accent-cyan: #38bdf8;
  --color-accent-blue: #2563eb;
  
  --glass-bg: rgba(6, 12, 24, 0.65);
  --glass-border: rgba(56, 189, 248, 0.4);
  --glass-border-hover: rgba(125, 211, 252, 0.9);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), 0 0 24px rgba(56, 189, 248, 0.35);
  --glass-shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.7), 0 0 35px rgba(56, 189, 248, 0.65), 0 0 12px rgba(255, 255, 255, 0.5);
  
  --font-sans: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Orbitron', 'Space Grotesk', sans-serif;
  
  --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* CSS Reset & Baseline */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--color-bg-space);
  color: var(--color-text-main);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Screen Reader Only Utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Full-Screen Space Scene */
.scene {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  
  /* Responsive Fullscreen Background */
  background-image: url('assets/images/shuttle-bg.jpg');
  background-repeat: no-repeat;
  background-position: 48.5% center;
  background-size: cover;
  background-attachment: fixed;
}

/* Action Container positioned directly underneath the Shuttle */
.action-container {
  position: absolute;
  left: 50%;
  top: 67%;
  transform: translate(-50%, -50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}

/* Contact Button / Link */
.btn-contact {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1.05rem 2.75rem;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #ffffff;
  text-decoration: none;
  border-radius: 9999px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  overflow: hidden;
  cursor: pointer;
  user-select: none;
  transition: var(--transition-smooth);
  animation: pulse-ambient 3.5s ease-in-out infinite alternate;
}

.btn-text {
  position: relative;
  z-index: 3;
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.6);
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

/* Inner Glow Layer */
.btn-glow {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 0%, rgba(56, 189, 248, 0.4), transparent 70%);
  opacity: 0.7;
  transition: opacity 0.4s ease;
  z-index: 1;
  pointer-events: none;
}

/* Shimmer Sweep Animation */
.btn-shimmer {
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.15) 40%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0.15) 60%,
    transparent 100%
  );
  transform: skewX(-20deg);
  z-index: 2;
  pointer-events: none;
  animation: shimmer-idle 6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* Hover State */
.btn-contact:hover {
  transform: translateY(-2px) scale(1.04);
  border-color: var(--glass-border-hover);
  box-shadow: var(--glass-shadow-hover);
  background: rgba(10, 22, 44, 0.78);
}

.btn-contact:hover .btn-glow {
  opacity: 1;
  background: radial-gradient(circle at 50% 0%, rgba(125, 211, 252, 0.65), transparent 75%);
}

.btn-contact:hover .btn-text {
  color: #ffffff;
  text-shadow: 0 0 16px rgba(125, 211, 252, 0.9), 0 0 30px rgba(56, 189, 248, 0.7);
}

.btn-contact:hover .btn-shimmer {
  animation: shimmer-active 0.85s ease-out forwards;
}

/* Active / Press State */
.btn-contact:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5), 0 0 18px rgba(56, 189, 248, 0.5);
  transition-duration: 0.1s;
}

/* Accessible Focus State */
.btn-contact:focus-visible {
  outline: 2px solid var(--color-accent-cyan);
  outline-offset: 4px;
}

/* Ambient Breathing Pulse */
@keyframes pulse-ambient {
  0% {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 18px rgba(56, 189, 248, 0.25);
    border-color: rgba(56, 189, 248, 0.35);
  }
  100% {
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.55), 0 0 30px rgba(56, 189, 248, 0.5);
    border-color: rgba(56, 189, 248, 0.65);
  }
}

/* Shimmer Keyframes */
@keyframes shimmer-idle {
  0%, 75% {
    left: -120%;
  }
  100% {
    left: 200%;
  }
}

@keyframes shimmer-active {
  0% {
    left: -120%;
  }
  100% {
    left: 200%;
  }
}

/* Responsive Breakpoints */
@media (max-width: 768px) {
  .action-container {
    top: 68%;
  }
  
  .btn-contact {
    padding: 0.95rem 2.2rem;
    font-size: 0.95rem;
    letter-spacing: 0.15em;
  }
}

@media (max-width: 480px) {
  .action-container {
    top: 69%;
    width: auto;
    max-width: 90%;
  }
  
  .btn-contact {
    padding: 0.85rem 1.8rem;
    font-size: 0.875rem;
    letter-spacing: 0.13em;
  }
}

/* Landscape Mobile Orientation */
@media (orientation: landscape) and (max-height: 520px) {
  .action-container {
    top: 72%;
  }

  .btn-contact {
    padding: 0.65rem 1.5rem;
    font-size: 0.825rem;
  }
}

/* Ultra-wide Screen Display */
@media (min-aspect-ratio: 21/9) {
  .action-container {
    top: 65%;
  }
}
