:root {
  /* Color System */
  --liquid-glass-base-light: rgba(255, 255, 253, 0.65);
  --liquid-glass-base-dark: rgba(18, 18, 20, 0.70);
  --liquid-ripple-accent-light: rgba(255, 255, 255, 0.35);
  --liquid-ripple-accent-dark: rgba(255, 255, 255, 0.15);
  --text-primary-light: #000000;
  --text-primary-dark: #FFFFFF;
  --text-secondary-light: #2C2C2E;
  --text-secondary-dark: #E5E5EA;
  --accent-color-owb: #D62976;
  --accent-color-cal: #FF2D55;
  
  /* Typography */
  --font-primary: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Instagram Sans", "Segoe UI", Roboto, sans-serif;
  
  /* Spacing */
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 32px;
  --spacing-xl: 48px;
  --spacing-xxl: 64px;
  
  /* Border Radius */
  --border-radius-sm: 12px;
  --border-radius-md: 24px;
  --border-radius-lg: 32px;
  
  /* Shadows */
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] {
  --liquid-glass-base: var(--liquid-glass-base-dark);
  --liquid-ripple-accent: var(--liquid-ripple-accent-dark);
  --text-primary: var(--text-primary-dark);
  --text-secondary: var(--text-secondary-dark);
}

[data-theme="light"] {
  --liquid-glass-base: var(--liquid-glass-base-light);
  --liquid-ripple-accent: var(--liquid-ripple-accent-light);
  --text-primary: var(--text-primary-light);
  --text-secondary: var(--text-secondary-light);
}

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

body {
  font-family: var(--font-primary);
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.3s ease;
}

[data-theme="dark"] body {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 5%;
}

/* Hero Section */
.hero {
  height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-content {
  z-index: 2;
  position: relative;
}

.hero-title {
  font-size: 68px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.5px;
  margin-bottom: var(--spacing-md);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
  font-size: 19px;
  opacity: 0.7;
  max-width: 400px;
  margin: 0 auto;
}

/* Liquid Glass Base */
.liquid-glass {
  background: var(--liquid-glass-base);
  backdrop-filter: blur(18px) contrast(1.02);
  -webkit-backdrop-filter: blur(18px) contrast(1.02);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.liquid-glass::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, var(--liquid-ripple-accent) 50%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

/* Destination Grid */
.destinations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-xl);
  margin: var(--spacing-xxl) 0;
  padding: var(--spacing-xxl) 0;
}

.destination-card {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  cursor: pointer;
  transform: translateY(0);
  transition: all 300ms cubic-bezier(0.2, 0.8, 0.3, 1);
  height: 520px;
  box-shadow: var(--shadow-sm);
}

.destination-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.destination-card .liquid-glass {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 42px 36px;
}

/* Card Background */
.card-background {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(12px);
  transition: filter 0.4s ease;
  z-index: 1;
}

.destination-card:hover .card-background {
  filter: blur(3px);
}

.card-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-title {
  font-size: 28px;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.card-description {
  font-size: 19px;
  opacity: 0.7;
  line-height: 1.45;
  margin-bottom: var(--spacing-lg);
}

.card-cta {
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--border-radius-sm);
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  align-self: flex-start;
}

.destination-card:hover .card-cta {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

/* Ripple Effect */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, var(--liquid-ripple-accent) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0;
  transform: scale(0);
  animation: ripple-animation 1.2s cubic-bezier(0.2, 0.8, 0.3, 1) forwards;
}

@keyframes ripple-animation {
  0% {
    transform: scale(0);
    opacity: 0.4;
  }
  100% {
    transform: scale(4);
    opacity: 0;
  }
}

/* Theme Toggle */
.theme-toggle {
  position: fixed;
  top: var(--spacing-lg);
  right: var(--spacing-lg);
  z-index: 1000;
  background: var(--liquid-glass-base);
  backdrop-filter: blur(18px);
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  transform: scale(1.1);
}

/* Footer */
.footer {
  text-align: center;
  padding: var(--spacing-xl) 0;
  opacity: 0.6;
  font-size: 15px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .destinations-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
  }
  
  .hero-title {
    font-size: 54px;
  }
}

@media (max-width: 768px) {
  .destinations-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
  
  .hero-title {
    font-size: 44px;
  }
  
  .destination-card {
    height: 400px;
  }
  
  .container {
    padding: 0 4%;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .ripple {
    display: none;
  }
}

/* Focus styles */
.destination-card:focus {
  outline: 2px solid var(--accent-color-owb);
  outline-offset: 4px;
}

/* Fallback for non-supporting browsers */
@supports not (backdrop-filter: blur(18px)) {
  .liquid-glass {
    background: rgba(250, 250, 252, 0.92);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
  }
  
  [data-theme="dark"] .liquid-glass {
    background: rgba(28, 28, 30, 0.92);
  }
}