/* Base Styles & Custom Variables */
:root {
  --glass-bg: rgba(17, 24, 39, 0.4);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-highlight: rgba(255, 255, 255, 0.15);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

html {
  scroll-behavior: smooth;
}

body {
  /* Subtle dark texture/gradient to replace standard solid color */
  background-color: #070A15;
  background-image: radial-gradient(at 0% 0%, rgba(17, 24, 39, 0.8) 0, transparent 50%), 
                    radial-gradient(at 100% 0%, rgba(212, 175, 55, 0.05) 0, transparent 50%);
  background-attachment: fixed;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #070A15;
}
::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.3);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(212, 175, 55, 0.6);
}

/* 
 * iOS 26 Glassmorphism Core Utilities
 * Ultra-thin translucent borders, heavy blur, multi-layered shadows
 */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  /* Edge highlights for 3D depth */
  border-top: 1px solid var(--glass-highlight);
  border-right: 1px solid var(--glass-highlight); /* RTL so right is leading */
}

.glass-nav {
  background: rgba(7, 10, 21, 0.3);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-nav.scrolled {
  background: rgba(7, 10, 21, 0.85);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.glass-form {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid var(--glass-border);
  border-top: 1px solid var(--glass-highlight);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.glass-input {
  background: rgba(0, 0, 0, 0.25) !important;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.glass-input:focus {
  background: rgba(255, 255, 255, 0.03) !important;
  border-color: rgba(212, 175, 55, 0.6) !important;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.15), inset 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

/* Fix for select options and date picker in dark mode */
select.glass-input option {
  background-color: #111827;
  color: white;
}

input[type="date"].color-scheme-dark::-webkit-calendar-picker-indicator {
  filter: invert(1);
  opacity: 0.6;
  cursor: pointer;
  transition: opacity 0.3s ease;
}
input[type="date"].color-scheme-dark::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}

/* Interactive & Glowing Effects */
.btn-glowing {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-glowing:hover {
  transform: translateY(-3px) scale(1.02);
}

.btn-glowing:active {
  transform: translateY(1px) scale(0.98);
}

/* Package Cards Hover & Focus States */
.package-card {
  transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
}

/* Subtle inner glow pseudo-element */
.package-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(to bottom right, rgba(255,255,255,0.2), rgba(255,255,255,0.01));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.package-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.6), 0 0 25px rgba(212, 175, 55, 0.1);
  border-color: rgba(212, 175, 55, 0.3);
}

.package-card.popular {
  transform: scale(1.05);
  border-color: rgba(212, 175, 55, 0.3);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 30px rgba(212, 175, 55, 0.15);
  z-index: 10;
}

.package-card.popular:hover {
  transform: scale(1.05) translateY(-10px);
  box-shadow: 0 25px 45px rgba(0, 0, 0, 0.6), 0 0 45px rgba(212, 175, 55, 0.25);
  border-color: rgba(212, 175, 55, 0.6);
}

/* Smooth Floating Animations */
@keyframes float {
  0% { transform: translateY(0px) rotate(12deg); }
  50% { transform: translateY(-20px) rotate(16deg); }
  100% { transform: translateY(0px) rotate(12deg); }
}

@keyframes float-delayed {
  0% { transform: translateY(0px) rotate(-12deg); }
  50% { transform: translateY(-25px) rotate(-8deg); }
  100% { transform: translateY(0px) rotate(-12deg); }
}

.floating-element {
  animation: float 8s ease-in-out infinite;
}

.floating-element-delayed {
  animation: float-delayed 9s ease-in-out infinite;
  animation-delay: 2s;
}

/* Scroll Triggered Animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }

/* Custom feature list checkmark */
.feature-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.15);
  color: #D4AF37;
  font-size: 12px;
  margin-left: 12px;
  flex-shrink: 0;
  border: 1px solid rgba(212, 175, 55, 0.3);
}
