:root {
  --bg: #090c28;
  --bg2: #1a1442;
  --accent: #9b7bff;
  --accent2: #b97bff;
  --muted: #cbbaff;
  font-family: 'Inter', system-ui, sans-serif;
}

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

body {
  background: linear-gradient(180deg, var(--bg), var(--bg2));
  color: #fff;
  min-height: 100vh;
}

/* NAV */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 36px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand {
  font-weight: 800;
  letter-spacing: 1px;
  color: white;
  font-size: 1.2rem;
}

.nav nav a {
  margin-left: 18px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}

.nav nav a.active {
  color: var(--accent2);
}

/* === HERO SECTION === */
.hero {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  min-height: 80vh;
  padding-left: 10%;
  background: linear-gradient(180deg, #0a0425, #141c46);
}
.hero-box {
  max-width: 580px;
  background: linear-gradient(145deg, rgba(60, 20, 120, 0.7), rgba(20, 10, 60, 0.8));
  border: 1px solid rgba(190, 140, 255, 0.3);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  box-shadow: 0 0 40px rgba(150, 100, 255, 0.3);
  backdrop-filter: blur(12px);
  animation: glowPulse 3s ease-in-out infinite alternate;
}
.hero-box h1 {
  font-size: 2rem;
  color: #c8b5ff;
  text-shadow: 0 0 10px rgba(190, 130, 255, 0.6);
  margin-bottom: 1rem;
}
.hero-box h1 span {
  color: #9b7bff;
  text-shadow: 0 0 15px rgba(150, 100, 255, 0.7);
}
.hero-box p {
  color: #d5c9ff;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.hero-buttons {
  display: flex;
  gap: 1rem;
}

/* === BUTTONS === */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px rgba(150, 100, 255, 0.4);
}
.btn.primary {
  background: linear-gradient(90deg, #7a3cff, #b27cff);
  color: white;
}
.btn.primary:hover {
  background: linear-gradient(90deg, #9b6aff, #d3a9ff);
  box-shadow: 0 0 25px rgba(190, 140, 255, 0.7);
  transform: translateY(-2px);
}
.btn.secondary {
  border: 1px solid rgba(190, 140, 255, 0.5);
  color: #fff;
  background: transparent;
}
.btn.secondary:hover {
  background: rgba(150, 100, 255, 0.2);
  box-shadow: 0 0 20px rgba(190, 140, 255, 0.4);
}
.btn.small {
  margin-top: 16px;
  background: linear-gradient(90deg, #7a3cff, #b27cff);
  color: #fff;
  font-weight: 600;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
}
.btn.small:hover {
  background: linear-gradient(90deg, #9b6aff, #d3a9ff);
  box-shadow: 0 0 25px rgba(190, 140, 255, 0.7);
}

/* === SHOWCASE === */
.showcase {
  padding: 2rem 3rem;
}
.showcase-inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  background: linear-gradient(145deg, rgba(60, 20, 120, 0.7), rgba(20, 10, 60, 0.8));
  border: 0.5px solid rgba(190, 140, 255, 0.3);
  border-radius: 10px;
  padding: 1.5rem 1rem;
  box-shadow: 0 0 40px rgba(150, 100, 255, 0.3);
  backdrop-filter: blur(12px);
}
.carousel {
  position: relative;
  height: 320px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.04);
}
.slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease;
}
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.85);
}
.slide-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 25px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
  color: #fff;
  font-size: 15px;
  border-radius: 0 0 20px 20px;
  backdrop-filter: blur(3px);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.4) inset;
}

.route {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--accent2);
}
.details {
  font-size: 0.95rem;
  color: var(--muted);
  margin-top: 6px;
}
.carousel-controls {
  position: absolute;
  right: 18px;
  top: 12px;
  display: flex;
  gap: 8px;
  z-index: 5;
}
.carousel-controls button {
  background: rgba(0, 0, 0, 0.35);
  border: none;
  color: #fff;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  backdrop-filter: blur(6px);
}
.carousel-controls button:hover {
  background: rgba(0, 0, 0, 0.6);
}

/* === DASHBOARD === */
.dashboard {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 4rem 6rem;
  max-width: 1300px;
  margin: 0 auto;
}
.card {
  padding: 28px;
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(60, 20, 120, 0.45), rgba(20, 10, 60, 0.65));
  border: 1px solid rgba(190, 140, 255, 0.3);
  backdrop-filter: blur(15px);
  box-shadow: 0 0 30px rgba(160, 120, 255, 0.25);
  transition: all 0.3s ease-in-out;
  color: #e6dcff;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 45px rgba(190, 140, 255, 0.6);
}
.card h3 {
  font-size: 1.25rem;
  color: #d8c7ff;
  margin-bottom: 1.2rem;
  text-shadow: 0 0 12px rgba(180, 130, 255, 0.5);
}
.booking-list {
  list-style: none;
  margin-top: 12px;
  color: #b9aaff;
}
.booking-list li {
  padding: 10px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.07);
}
.booking-list li strong {
  color: #c89aff;
}
.stats .stat-grid {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 1.5rem;
}
.stat {
  flex: 1;
  padding: 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 15px rgba(160, 120, 255, 0.2);
}
.stat .num {
  font-weight: 800;
  font-size: 1.8rem;
  color: #b88fff;
}
.stat .label {
  font-size: 0.9rem;
  color: #bcb3d9;
  margin-top: 8px;
}

/* === FLIGHT SEARCH === */
.flight-search {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.flight-search .input-row {
  display: flex;
  gap: 0.8rem;
}
.flight-search input,
.flight-search select {
  flex: 1;
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  border: 1px solid rgba(190, 140, 255, 0.3);
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  outline: none;
}
.flight-search input:focus,
.flight-search select:focus {
  border-color: #b27cff;
  box-shadow: 0 0 12px rgba(190, 140, 255, 0.6);
}
.search-btn {
  width: 100%;
  margin-top: 0.5rem;
  background: linear-gradient(90deg, #8b5eff, #b88fff);
  box-shadow: 0 0 15px rgba(190, 140, 255, 0.4);
}
.search-btn:hover {
  background: linear-gradient(90deg, #9b6aff, #d3a9ff);
}
.search-result {
  text-align: center;
  margin-top: 0.8rem;
  font-weight: 600;
  opacity: 0;
  transition: all 0.3s ease;
}
.search-result.visible {
  opacity: 1;
  background: rgba(190, 140, 255, 0.1);
  border: 1px solid rgba(190, 140, 255, 0.3);
  border-radius: 10px;
  padding: 0.5rem;
  color: #d8c7ff;
}

/* 3D Airplane Container */
#airplane-3d {
  position: absolute;
  top: 0;
  right: 10%;
  width: 400px;
  height: 400px;
  z-index: 1; /* Behind hero-box */
  pointer-events: none; /* Allows clicks on hero-box */
}

/* Ensure hero section is relative for absolute positioning */
.hero {
  position: relative;
}
/* === FOOTER === */
.site-footer {
  text-align: center;
  padding: 1.5rem;
  color: var(--muted);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 30px;
}

/* === ANIMATION === */
@keyframes glowPulse {
  0% {
    box-shadow: 0 0 30px rgba(160, 120, 255, 0.3);
  }
  100% {
    box-shadow: 0 0 50px rgba(190, 140, 255, 0.6);
  }
}

/* === RESPONSIVE === */
@media (max-width: 992px) {
  .dashboard {
    grid-template-columns: 1fr;
    padding: 2rem;
  }
  .dash-right {
    margin-top: 2rem;
  }
}
#airplane-3d {
  position: absolute;
  top: 0;
  right: 10%;
  width: 400px;
  height: 400px;
  z-index: 1;         /* behind hero‑box which should have higher z‑index */
  pointer-events: none; /* so it doesn’t block clicks on hero content */
}

.hero {
  position: relative; /* ensures child absolutely positioned items work */
}

/* Plane Box Container */
.plane-box {
  width: 600px;
  height: 400px;
  background: transparent; /* removed bg color */
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
}

/* Model Viewer inside plane box */
.plane-model {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
