/* css/style.css */
:root {
  --glass-bg: rgba(30, 30, 30, 0.25);
  --glass-border: rgba(255, 255, 255, 0.08);
  --shadow-light: rgba(0, 0, 0, 0.2);
  --shadow-dark: rgba(0, 0, 0, 0.6);
}

body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: #030303;
  color: #fff;
  -webkit-font-smoothing: antialiased;
}

/* --- Shapespark Background --- */
#shapespark-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  border: none;
  z-index: 0;
}

/* Subtle overlay to guarantee contrast for UI */
.bg-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, transparent 30%, rgba(0,0,0,0.5) 100%);
  pointer-events: none;
  z-index: 1;
}

/* --- Antigravity Glassmorphism UI --- */
.glass-panel {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: 
    0 15px 35px var(--shadow-dark),
    inset 0 1px 0 rgba(255,255,255,0.1),
    0 5px 15px rgba(0,0,0,0.3);
  border-radius: 28px;
}

/* --- Modal System & Physics Springs --- */
.modal-container {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  pointer-events: none; /* Let clicks pass through when hidden */
  padding: 1rem;
}

.modal {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 90vw;
  max-width: 1000px;
  height: auto;
  max-height: 90vh;
  opacity: 0;
  pointer-events: none;
  /* Start slightly smaller and shifted down for spring effect */
  transform: translate(-50%, -45%) scale(0.95);
  transition: opacity 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
              transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
}

.modal.active {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.modal-content-scroll {
  overflow-y: auto;
  padding: 2.5rem;
  /* Thin custom scrollbar */
}
.modal-content-scroll::-webkit-scrollbar { width: 6px; }
.modal-content-scroll::-webkit-scrollbar-track { background: transparent; }
.modal-content-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 10px; }

/* --- Content Modals (Overrides default center physics) --- */
.info-modal {
  top: auto;
  bottom: 8rem; /* Docked directly above the navigation bar */
  transform: translate(-50%, 0) scale(0.95);
  max-height: 38vh; /* Maximum 38% of screen height to show full team cards */
  width: 92vw;
  max-width: 1000px; /* Match width of navigation below, expanded per request */
  overflow: hidden; /* Hide overflow for carousel */
  padding: 0; /* Remove default padding for edge-to-edge carousel */
  justify-content: center;
}
.info-modal.active {
  transform: translate(-50%, 0) scale(1);
}

/* --- Carousel System --- */
.carousel-container {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
}
.carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  padding: 1rem 1.5rem; /* Reduced padding to maximize interior content space */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow-y: auto;
}
.carousel-slide::-webkit-scrollbar { width: 4px; }
.carousel-slide::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 10px; }

.carousel-dots {
  position: absolute;
  bottom: 1rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  z-index: 10;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.3s;
}
.dot.active {
  background: #00d2ff;
  transform: scale(1.2);
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s;
}
.carousel-btn:hover {
  background: rgba(255,255,255,0.2);
}
.carousel-btn.prev { left: 0.5rem; }
.carousel-btn.next { right: 0.5rem; }

/* Modal Close Button */
.btn-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}
.btn-close:hover {
  background: rgba(255,255,255,0.15);
  transform: scale(1.1) rotate(90deg);
}

/* --- Pill Navigation Dock --- */
.nav-dock {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  padding: 0.5rem;
  border-radius: 50px;
  z-index: 100;
}

.nav-btn {
  background: transparent;
  color: #ffffff;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 40px;
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 44px; /* Touch target */
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nav-btn:hover {
  color: #fff;
  background: rgba(255,255,255,0.05);
}
.nav-btn.active {
  background: rgba(255,255,255,0.15);
  color: #fff;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.1);
}

/* --- Special Glow Buttons --- */
.btn-glow {
  background: linear-gradient(135deg, #00d2ff 0%, #3a7bd5 100%);
  color: #fff;
  border: none;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(0, 210, 255, 0.4);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
}
.btn-glow:hover {
  box-shadow: 0 0 35px rgba(0, 210, 255, 0.6);
  transform: translateY(-3px) scale(1.02);
}

/* Removed .btn-tour specific styles as they are now handled by .btn-glow and tailwind layout */

/* Interactive Elements (Accordions, Cards) */
.glass-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 16px;
  padding: 1.5rem;
  transition: all 0.3s;
}
.glass-card:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}

/* Horizontal Scroll Container */
.horizontal-scroll {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scroll-snap-type: x mandatory;
}
.horizontal-scroll::-webkit-scrollbar { height: 6px; }
.horizontal-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 10px; }
.scroll-item {
  min-width: 300px;
  scroll-snap-align: start;
}

/* Responsive Overrides */
@media (max-width: 768px) {
  .nav-dock {
    width: 90%;
    justify-content: space-around;
    padding: 0.5rem;
  }
  .nav-btn .nav-label {
    display: none;
  }
  .nav-btn {
    padding: 0.75rem;
    border-radius: 50%;
  }
  .modal {
    width: 95%;
  }
}
