/* ========================================
   Silver Sky Resort — Custom Styles
   ======================================== */

/* Base */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
}

::selection {
  background: rgba(20, 184, 166, 0.3);
  color: #f0f4f8;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #080f1a;
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* ========================================
   Hero Animations
   ======================================== */
.hero-orb {
  animation: float 8s ease-in-out infinite;
}
.orb-1 { animation-delay: 0s; }
.orb-2 { animation-delay: -3s; }
.orb-3 { animation-delay: -5s; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 15px) scale(0.95); }
}

.hero-eyebrow {
  animation: fadeDown 0.8s ease-out 0.2s both;
}

.hero-headline {
  animation: fadeUp 1s ease-out 0.4s both;
}

.hero-subhead {
  animation: fadeUp 1s ease-out 0.6s both;
}

.hero-ctas {
  animation: fadeUp 1s ease-out 0.8s both;
}

.scroll-line {
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* ========================================
   Scroll Reveal
   ======================================== */
.scroll-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   Navbar
   ======================================== */
#navbar {
  background: transparent;
}

#navbar.scrolled {
  background: rgba(8, 15, 26, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.3);
}

/* ========================================
   Mobile Menu
   ======================================== */
.mobile-link {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

#mobile-menu.open .mobile-link {
  opacity: 1;
  transform: translateY(0);
}

#mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(5) { transition-delay: 0.25s; }
#mobile-menu.open .mobile-link:nth-child(6) { transition-delay: 0.3s; }

/* Hamburger Animation */
#menu-btn.active #bar1 {
  transform: rotate(45deg) translate(4px, 4px);
}
#menu-btn.active #bar2 {
  opacity: 0;
}
#menu-btn.active #bar3 {
  transform: rotate(-45deg) translate(4px, -4px);
}

/* ========================================
   Feature Cards
   ======================================== */
.feature-card {
  transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* ========================================
   CTA Buttons
   ======================================== */
.cta-primary {
  position: relative;
  overflow: hidden;
}

.cta-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.cta-primary:hover::before {
  opacity: 1;
}

/* ========================================
   Form Styles
   ======================================== */
input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(0.6) sepia(1) saturate(5) hue-rotate(170deg);
  cursor: pointer;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 768px) {
  .hero-headline {
    font-size: 2.75rem;
  }

  .hero-subhead {
    font-size: 1rem;
  }
}

@media (max-width: 640px) {
  .hero-headline {
    font-size: 2.25rem;
  }
}

/* ========================================
   Print
   ======================================== */
@media print {
  #navbar, .scroll-line, .hero-orb { display: none; }
  body { background: white; color: black; }
}
