/* ═══════════════════════════════════════════════════════════════
   SPEKTRUM — Shared Design System
   Common styles used across all pages (home, about, celestial)
   ═══════════════════════════════════════════════════════════════ */

/* ───────────── CSS Custom Properties ───────────── */
:root {
  /* Primary Brand Colors */
  --deep-teal: #2e807c;
  --muted-teal: #3c9099;
  --mid-teal: #23aaa6;
  --light-cyan: #51c4cc;

  /* Accent Colors */
  --warm-gold: #efb81b;
  --vibrant-magenta: #d2336b;
  --deep-purple: #4f409a;
  --coral-red: #ed6f24;
  --brick-red: #e43c3b;
  --fresh-green: #59b26e;

  /* Neutrals */
  --white: #ffffff;
  --off-white: #fafafa;
  --light-grey: #f0f0f0;
  --charcoal: #1a1a1a;
  --dark-grey: #333333;
  --midnight: #0f1a1a;

  /* Functional */
  --transition-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  color: var(--charcoal);
  background: var(--midnight);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ───────────── Custom Cursor ───────────── */
/* * {
    cursor: none !important;
} */

.cursor {
  width: 20px;
  height: 20px;
  border: 2px solid var(--mid-teal);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition:
    width 0.2s ease,
    height 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
  background: transparent;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--light-cyan);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 100000;
  transform: translate(-50%, -50%);
}

.cursor.hover {
  width: 40px;
  height: 40px;
  background: rgba(35, 170, 166, 0.25);
  border-color: var(--light-cyan);
}

/* ───────────── Navbar ───────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 50px;
  display: flex;
  align-items: center;
  gap: 60px;
  transition:
    transform 0.5s var(--transition-smooth),
    background 0.3s ease;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar.hidden {
  transform: translateY(-100%);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.85); /* Glassy White when scrolled */
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Update nav link colors for visibility on white background when scrolled */
.navbar.scrolled .nav-links a {
  color: var(--charcoal);
}

.navbar.scrolled .nav-hamburger span {
  background: var(--charcoal);
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo img {
  height: 70px;
  width: 100%;
  object-fit: contain;
}
.navbar.scrolled .logo img {
  background: transparent;
}
.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
  flex: 1;
}

.nav-links li.nav-hidden {
  display: none;
}

.nav-links a {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 2px;
  text-decoration: none;
  position: relative;
  padding: 5px 0;
}

.nav-links a::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--mid-teal);
  transition: width 0.4s var(--transition-smooth);
}

.nav-links a:hover::before {
  width: 100%;
}

.nav-links a.active {
  color: var(--mid-teal);
}

.nav-links a.active::before {
  width: 100%;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 2px;
  text-decoration: none;
  position: relative;
  padding: 5px 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: default;
}

.nav-dropdown-label::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--mid-teal);
  transition: width 0.4s var(--transition-smooth);
}

.nav-dropdown-label::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform 0.3s var(--transition-smooth);
}

.nav-dropdown:hover .nav-dropdown-label::before,
.nav-dropdown:focus-within .nav-dropdown-label::before {
  width: 100%;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 280px;
  list-style: none;
  padding: 12px 0;
  background: rgba(15, 26, 26, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    visibility 0.25s ease;
  z-index: 1010;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown:hover .nav-dropdown-label::after,
.nav-dropdown:focus-within .nav-dropdown-label::after {
  transform: rotate(225deg) translateY(-1px);
}

.nav-dropdown-menu li {
  width: 100%;
}

.nav-dropdown-menu a {
  display: block;
  padding: 8px 16px;
  font-size: 0.68rem;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.86);
  text-transform: uppercase;
}

.nav-dropdown-menu a:hover {
  color: var(--light-cyan);
  background: rgba(35, 170, 166, 0.1);
}

.navbar.scrolled .nav-dropdown-label {
  color: var(--charcoal);
}

.navbar.scrolled .nav-dropdown-menu {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.navbar.scrolled .nav-dropdown-menu a {
  color: var(--charcoal);
}

/* ───────────── Hamburger ───────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  margin-left: auto;
  z-index: 1002;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s var(--transition-smooth);
}

.nav-hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ───────────── Nav CTA ───────────── */
.nav-cta {
  background: var(--deep-teal);
  color: var(--white);
  padding: 12px 30px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s var(--transition-smooth);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.nav-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--light-cyan);
  transition: left 0.4s var(--transition-smooth);
  z-index: -1;
}

.nav-cta:hover::before {
  left: 0;
}

.nav-cta:hover {
  color: var(--charcoal);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(35, 170, 166, 0.25);
}
.footer .logo img {
    height: 70px;
    width: 100%;
    padding: 0px;
    background: transparent;
}
.footer-booking-cta {
  background: var(--mid-teal);
  color: var(--white);
  padding: 12px 22px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s var(--transition-smooth);
  box-shadow: 0 12px 30px rgba(35, 170, 166, 0.18);
  margin-bottom: 30px;
}

.footer-booking-cta:hover {
  background: var(--deep-teal);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(35, 170, 166, 0.28);
}

/* ───────────── Scroll Progress ───────────── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--deep-teal),
    var(--mid-teal),
    var(--light-cyan)
  );
  z-index: 10001;
  transition: width 0.1s ease;
}

/* ───────────── Section Base ───────────── */
.section {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 50px;
}

.section-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--deep-teal);
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.section-label::before {
  content: "";
  width: 40px;
  height: 1px;
  background: var(--deep-teal);
}

.section-title {
  font-family: "Playfair Display", serif;
  font-size: 45px;
  font-weight: 400;
  color: var(--charcoal);
  line-height: 1.2;
  margin-bottom: 30px;
}

.section-title em {
  font-style: italic;
  color: var(--mid-teal);
}

.section-text {
  font-size: 1.1rem;
  color: var(--dark-grey);
  line-height: 1.9;
  margin-bottom: 20px;
}

/* ───────────── Floating Decorative Shapes ───────────── */
.floating-shape {
  position: absolute;
  pointer-events: none;
  opacity: 0.1;
  will-change: transform;
}

.floating-shape.circle {
  width: 400px;
  height: 400px;
  border-radius: 50%;
  border: 1px solid var(--mid-teal);
}

.floating-shape.line {
  width: 200px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--vibrant-magenta),
    transparent
  );
}

/* ───────────── Diagonal Transitions ───────────── */
.diagonal-transition {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.diagonal-transition::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 100%;
  background: var(--white);
  transform: skewY(-3deg);
  transform-origin: top left;
}

.diagonal-transition.dark-to-light::before {
  background: var(--white);
}

.diagonal-transition.light-to-dark::before {
  background: var(--midnight);
}

.diagonal-transition.light-to-offwhite::before {
  background: var(--off-white);
}

/* ───────────── Footer ───────────── */
.footer {
  background: var(--midnight);
  color: var(--white);
  padding: 100px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 60px;
  margin-bottom: 80px;
}

.footer-brand .logo {
  margin-bottom: 25px;
  display: inline-block;
}

.footer-brand p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.8;
  margin-bottom: 30px;
  max-width: 300px;
}

.footer-social {
  display: flex;
  gap: 15px;
}

.footer-social a {
  width: 45px;
  height: 45px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-decoration: none;
  transition: all 0.3s ease;
  border-radius: 10px;
}

.footer-social a:hover {
  background: var(--mid-teal);
  border-color: var(--mid-teal);
}

.footer-social svg,
.footer-social i {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer-column h4 {
  font-family: "Inter", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 30px;
  color: var(--white);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 15px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--mid-teal);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom-links {
  display: flex;
  gap: 30px;
}

.footer-bottom-links a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
  color: var(--white);
}

/* ───────────── Particle Trail ───────────── */
.particle {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--mid-teal);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.6;
  z-index: 9998;
  animation: particleFade 1s ease-out forwards;
}

/* ───────────── Loading Screen ───────────── */
.loader {
  position: fixed;
  inset: 0;
  background: var(--midnight);
  z-index: 100001;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition:
    opacity 0.8s ease,
    visibility 0.8s ease;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-bar {
  width: 200px;
  height: 2px;
  background: rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.loader-bar::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: linear-gradient(
    90deg,
    var(--deep-teal),
    var(--mid-teal),
    var(--light-cyan)
  );
  animation: loading 1.5s ease-out forwards;
}

/* ───────────── Keyframes ───────────── */
@keyframes wordReveal3D {
  0% {
    opacity: 0;
    transform: translateY(120px) rotateX(-90deg) scale(0.8);
    filter: blur(10px);
  }
  50% {
    opacity: 0.8;
    filter: blur(2px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotateX(0) scale(1);
    filter: blur(0);
  }
}

@keyframes fadeUp {
  to {
    opacity: 1;
  }
}

@keyframes scrollPulse {
  0%,
  100% {
    opacity: 0.3;
    transform: scaleY(1);
  }
  50% {
    opacity: 1;
    transform: scaleY(1.2);
  }
}

@keyframes particleFade {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  100% {
    transform: scale(0);
    opacity: 0;
  }
}

@keyframes loading {
  0% {
    width: 0%;
  }
  100% {
    width: 100%;
  }
}

@keyframes pulseGlow {
  0%,
  100% {
    box-shadow: 0 0 30px rgba(35, 170, 166, 0.3);
  }
  50% {
    box-shadow: 0 0 60px rgba(35, 170, 166, 0.6);
  }
}

/* ───────────── Responsive — Shared Breakpoints ───────────── */
@media (max-width: 992px) {
  body {
    cursor: auto;
  }

  .cursor,
  .cursor-dot {
    display: none;
  }

  .navbar {
    padding: 15px 30px;
  }

  .nav-hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: rgba(15, 26, 26, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 100px 40px 40px;
    gap: 25px;
    transition: right 0.5s var(--transition-smooth);
    z-index: 1001;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    font-size: 0.9rem;
    letter-spacing: 3px;
  }

  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown-label {
    width: 100%;
    justify-content: space-between;
    cursor: default;
  }

  .nav-dropdown-menu {
    position: static;
    min-width: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 8px 0 0;
  }

  .nav-dropdown-menu a {
    padding: 6px 0 6px 14px;
    font-size: 0.72rem;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.75);
  }

  .nav-dropdown-menu a:hover {
    background: transparent;
    color: var(--light-cyan);
  }

  .nav-links .nav-cta {
    margin-top: 20px;
    text-align: center;
  }

  .footer-booking-cta {
    width: 100%;
    text-align: center;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 25px;
  }

  .section {
    padding: 100px 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .nav-cta {
    padding: 10px 18px;
    font-size: 0.66rem;
    letter-spacing: 1.5px;
  }

  .footer-booking-cta {
    width: 100%;
  }
}
