/* =================================================================
   LEVELZ BARBERSHOP - SHARED DESIGN SYSTEM
   A comprehensive CSS library for consistent styling across the website
   ================================================================= */

/* Font will be loaded via preload in index.html for better performance */

/* =================================================================
   BASE STYLES & MOBILE OPTIMIZATION
   ================================================================= */
* {
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  font-size: 16px;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 320px;
  overflow-x: hidden;
}

/* =================================================================
   CSS VARIABLES - COLOR THEME
   ================================================================= */
:root {
  /* Primary Colors - Red/Rose Gradient Theme */
  --color-primary: #ef4444;
  --color-primary-dark: #dc2626;
  --color-primary-light: #f87171;
  --color-secondary: #f43f5e;
  --color-accent: #fb7185;
  
  /* Background Colors - Dark Mode (Default) */
  --color-bg-primary: #000000;
  --color-bg-secondary: #0a0a0a;
  --color-bg-tertiary: #1a0a0a;
  
  /* Surface Colors - Dark Mode */
  --color-surface-dark: rgba(127, 29, 29, 0.1);
  --color-surface-medium: rgba(127, 29, 29, 0.2);
  --color-surface-light: rgba(255, 255, 255, 0.05);
  --color-surface-lighter: rgba(255, 255, 255, 0.1);
  
  /* Text Colors - Dark Mode */
  --color-text-primary: #ffffff;
  --color-text-secondary: #9ca3af;
  --color-text-tertiary: #6b7280;
  --color-text-muted: #4b5563;
  
  /* Border Colors - Dark Mode */
  --color-border-primary: rgba(127, 29, 29, 0.3);
  --color-border-secondary: rgba(127, 29, 29, 0.2);
  --color-border-light: rgba(255, 255, 255, 0.1);
  
  /* Gradient Definitions */
  --gradient-primary: linear-gradient(90deg, #ef4444, #f43f5e, #fb7185);
  --gradient-primary-vertical: linear-gradient(180deg, #ef4444, #f43f5e);
  --gradient-primary-radial: radial-gradient(circle, #ef4444, #f43f5e);
  --gradient-surface: linear-gradient(135deg, rgba(127, 29, 29, 0.4), rgba(0, 0, 0, 0.9));
  --gradient-text: linear-gradient(90deg, #ef4444, #fb7185, #ef4444);
  
  /* Shadow Definitions */
  --shadow-sm: 0 2px 8px rgba(239, 68, 68, 0.1);
  --shadow-md: 0 8px 16px rgba(239, 68, 68, 0.15);
  --shadow-lg: 0 16px 32px rgba(239, 68, 68, 0.2);
  --shadow-xl: 0 25px 50px rgba(239, 68, 68, 0.3);
  --shadow-glow: 0 0 40px rgba(239, 68, 68, 0.5);
  
  /* Spacing Scale */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;
  
  /* Border Radius */
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-2xl: 2rem;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 500ms ease;
}

/* =================================================================
   LIGHT MODE THEME
   ================================================================= */
[data-theme="light"],
body.light-mode {
  /* Background Colors - Light Mode */
  --color-bg-primary: #ffffff;
  --color-bg-secondary: #f8f9fa;
  --color-bg-tertiary: #fafafa;
  
  /* Surface Colors - Light Mode */
  --color-surface-dark: rgba(0, 0, 0, 0.03);
  --color-surface-medium: rgba(0, 0, 0, 0.05);
  --color-surface-light: rgba(0, 0, 0, 0.02);
  --color-surface-lighter: rgba(0, 0, 0, 0.04);
  
  /* Text Colors - Light Mode */
  --color-text-primary: #0a0a0a;
  --color-text-secondary: #404040;
  --color-text-tertiary: #737373;
  --color-text-muted: #a3a3a3;
  
  /* Border Colors - Light Mode */
  --color-border-primary: rgba(0, 0, 0, 0.12);
  --color-border-secondary: rgba(0, 0, 0, 0.08);
  --color-border-light: rgba(0, 0, 0, 0.06);
  
  /* Gradient Definitions - Light Mode */
  --gradient-surface: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(250, 250, 250, 0.98));
  --gradient-radial: radial-gradient(circle, rgba(0, 0, 0, 0.02), transparent);
  
  /* Shadow Definitions - Light Mode */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 16px 32px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 25px 50px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 40px rgba(220, 38, 38, 0.08);
}

/* Theme Transition */
body {
  transition: background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
              color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

/* =================================================================
   BASE STYLES
   ================================================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--color-bg-primary);
  color: var(--color-text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* =================================================================
   HEADER STYLES - CONSISTENT FOR BOTH THEMES
   ================================================================= */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: 80px;
  display: flex;
  align-items: center;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(239, 68, 68, 0.2);
}

@media (min-width: 768px) {
  header {
    height: 96px;
  }
}

/* Ensure header doesn't interfere with content */
main, section:first-of-type {
  padding-top: 80px;
}

@media (min-width: 768px) {
  main, section:first-of-type {
    padding-top: 96px;
  }
}

/* Header container */
header .header-container {
  max-width: 1800px;
  margin: 0 auto;
  padding: 0 1rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

@media (min-width: 768px) {
  header .header-container {
    padding: 0 2rem;
  }
}

@media (min-width: 1024px) {
  header .header-container {
    padding: 0 5rem;
  }
}

/* =================================================================
   TYPOGRAPHY
   ================================================================= */
.heading-primary {
  font-size: 4rem;
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.02em;
  background: var(--gradient-text);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.heading-secondary {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.heading-tertiary {
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.2;
}

.heading-quaternary {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
}

.text-body-large {
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
}

.text-body {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
}

.text-body-small {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--color-text-tertiary);
}

.text-gradient {
  background: var(--gradient-text);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
  animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* =================================================================
   BUTTONS
   ================================================================= */

/* Primary Button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--color-text-primary);
  box-shadow: var(--shadow-md);
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #f43f5e, #ef4444, #f43f5e);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-xl);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
}

.btn-primary > * {
  position: relative;
  z-index: 1;
}

/* Secondary Button */
.btn-secondary {
  background: var(--color-surface-light);
  color: var(--color-text-primary);
  border: 1px solid var(--color-border-light);
  backdrop-filter: blur(16px);
}

.btn-secondary:hover {
  background: var(--color-surface-lighter);
  border-color: var(--color-border-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Outline Button */
.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-text-primary);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

/* Ghost Button */
.btn-ghost {
  background: transparent;
  color: var(--color-text-secondary);
  border: none;
}

.btn-ghost:hover {
  background: var(--color-surface-light);
  color: var(--color-text-primary);
}

/* Button Sizes */
.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.75rem;
}

.btn-lg {
  padding: 1.25rem 2.5rem;
  font-size: 1rem;
}

.btn-xl {
  padding: 1.5rem 3rem;
  font-size: 1.125rem;
}

/* Button with Icon */
.btn-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  transition: transform var(--transition-base);
}

.btn-icon:hover svg {
  transform: translateX(4px);
}

/* Pill Button */
.btn-pill {
  border-radius: var(--radius-full);
}

/* Full Width Button */
.btn-block {
  width: 100%;
}

/* =================================================================
   CARDS
   ================================================================= */

/* Base Card */
.card {
  background: var(--gradient-surface);
  border: 1px solid var(--color-border-primary);
  border-radius: var(--radius-xl);
  padding: var(--spacing-xl);
  backdrop-filter: blur(32px);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-primary-radial);
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
  filter: blur(60px);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--color-primary);
}

.card:hover::before {
  opacity: 0.1;
}

/* Card Header */
.card-header {
  margin-bottom: var(--spacing-lg);
  padding-bottom: var(--spacing-lg);
  border-bottom: 1px solid var(--color-border-secondary);
}

.card-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--color-text-primary);
}

.card-subtitle {
  font-size: 0.875rem;
  color: var(--color-text-tertiary);
}

/* Card Body */
.card-body {
  position: relative;
  z-index: 1;
}

/* Card Footer */
.card-footer {
  margin-top: var(--spacing-lg);
  padding-top: var(--spacing-lg);
  border-top: 1px solid var(--color-border-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Card Variants */
.card-glass {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(40px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-elevated {
  box-shadow: var(--shadow-lg);
}

.card-bordered {
  border: 2px solid var(--color-border-primary);
}

.card-highlight {
  border: 2px solid var(--color-primary);
  box-shadow: var(--shadow-glow);
}

/* Image Card */
.card-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--spacing-md);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.card:hover .card-image img {
  transform: scale(1.05);
}

/* Compact Card */
.card-compact {
  padding: var(--spacing-md);
}

/* Large Card */
.card-lg {
  padding: var(--spacing-2xl);
}

/* Horizontal Card */
.card-horizontal {
  display: flex;
  flex-direction: row;
  gap: var(--spacing-xl);
}

.card-horizontal .card-image {
  flex: 0 0 40%;
  margin-bottom: 0;
}

/* Info Card (Floating Card Style) */
.card-info {
  background: linear-gradient(135deg, rgba(127, 29, 29, 0.9), rgba(0, 0, 0, 0.9));
  backdrop-filter: blur(32px);
  border: 1px solid var(--color-border-primary);
  padding: var(--spacing-lg);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
}

/* Stats Card */
.card-stats {
  text-align: center;
  padding: var(--spacing-xl);
  background: var(--color-surface-dark);
  border: 1px solid var(--color-border-secondary);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.card-stats::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
  filter: blur(24px);
}

.card-stats:hover::before {
  opacity: 1;
}

.card-stats-number {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, #f87171, #f43f5e);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

.card-stats-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-tertiary);
}

/* Service Card */
.card-service {
  text-align: center;
  transition: all var(--transition-base);
}

.card-service-icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto var(--spacing-md);
  background: var(--gradient-primary);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
}

.card-service:hover .card-service-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: var(--shadow-glow);
}

/* =================================================================
   BADGES & TAGS
   ================================================================= */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border-primary);
  background: var(--color-surface-dark);
  backdrop-filter: blur(16px);
}

.badge-primary {
  background: var(--gradient-primary);
  border: none;
  color: var(--color-text-primary);
}

.badge-outline {
  background: transparent;
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
}

.badge-sm {
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
}

.badge-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

/* =================================================================
   UTILITY CLASSES
   ================================================================= */

/* Gradient Backgrounds */
.bg-gradient-primary {
  background: var(--gradient-primary);
}

.bg-gradient-radial {
  background: radial-gradient(circle at center, rgba(127, 29, 29, 0.2), transparent);
}

.bg-surface {
  background: var(--color-surface-light);
}

.bg-surface-dark {
  background: var(--color-surface-dark);
}

/* Backdrop Blur */
.backdrop-blur-sm {
  backdrop-filter: blur(8px);
}

.backdrop-blur {
  backdrop-filter: blur(16px);
}

.backdrop-blur-lg {
  backdrop-filter: blur(32px);
}

/* Shadows */
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }
.shadow-glow { box-shadow: var(--shadow-glow); }

/* Borders */
.border-primary {
  border: 1px solid var(--color-border-primary);
}

.border-secondary {
  border: 1px solid var(--color-border-secondary);
}

.border-light {
  border: 1px solid var(--color-border-light);
}

/* Text Colors */
.text-primary { color: var(--color-text-primary); }
.text-secondary { color: var(--color-text-secondary); }
.text-tertiary { color: var(--color-text-tertiary); }
.text-muted { color: var(--color-text-muted); }
.text-accent { color: var(--color-primary); }

/* Container */
.container {
  width: 100%;
  max-width: 1800px;
  margin: 0 auto;
  padding: 0 2rem;
}

.container-sm {
  max-width: 1200px;
}

.container-xs {
  max-width: 800px;
}

/* Spacing */
.mt-xs { margin-top: var(--spacing-xs); }
.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mt-xl { margin-top: var(--spacing-xl); }

.mb-xs { margin-bottom: var(--spacing-xs); }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }

.p-xs { padding: var(--spacing-xs); }
.p-sm { padding: var(--spacing-sm); }
.p-md { padding: var(--spacing-md); }
.p-lg { padding: var(--spacing-lg); }
.p-xl { padding: var(--spacing-xl); }

/* =================================================================
   ANIMATIONS
   ================================================================= */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Red glow/pulse effects - commented out */
/* @keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(239, 68, 68, 0.6);
  }
} */

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Red glow pulse animation - commented out */
/* @keyframes glowPulse {
  0%, 100% {
    filter: drop-shadow(0 0 10px rgba(239, 68, 68, 0.4));
  }
  50% {
    filter: drop-shadow(0 0 25px rgba(239, 68, 68, 0.8));
  }
} */

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes rotateGlow {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.animate-fade-in {
  animation: fadeIn 0.6s ease forwards;
}

.animate-slide-in-left {
  animation: slideInLeft 0.6s ease forwards;
}

.animate-slide-in-right {
  animation: slideInRight 0.6s ease forwards;
}

/* Red pulse glow animation - commented out */
/* .animate-pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
} */

.animate-float {
  animation: float 4s ease-in-out infinite;
}

.animate-shimmer {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  background-size: 1000px 100%;
  animation: shimmer 3s infinite;
}

.animate-scale-in {
  animation: scaleIn 0.5s ease-out forwards;
}

.animate-slide-up {
  opacity: 0;
  transform: translateY(20px);
  animation: slideUp 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Red glow pulse animation - commented out */
/* .animate-glow-pulse {
  animation: glowPulse 2s ease-in-out infinite;
} */

.animate-gradient-shift {
  opacity: 0;
  transform: translateY(20px);
  background-size: 200% 200%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: slideUp 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards, gradientShift 6s ease infinite;
}

/* Staggered Animation Delays */
.delay-100 { animation-delay: 0.15s; }
.delay-200 { animation-delay: 0.25s; }
.delay-300 { animation-delay: 0.35s; }
.delay-400 { animation-delay: 0.45s; }
.delay-500 { animation-delay: 0.55s; }
.delay-600 { animation-delay: 0.65s; }
.delay-700 { animation-delay: 0.75s; }
.delay-800 { animation-delay: 0.85s; }

/* Waterfall Scroll Animations */
.waterfall-item {
  opacity: 0;
  transform: translateY(60px) scale(0.95);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.waterfall-item.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Cascade delays for waterfall effect */
.waterfall-item:nth-child(1).visible { transition-delay: 0s; }
.waterfall-item:nth-child(2).visible { transition-delay: 0.15s; }
.waterfall-item:nth-child(3).visible { transition-delay: 0.3s; }
.waterfall-item:nth-child(4).visible { transition-delay: 0.45s; }
.waterfall-item:nth-child(5).visible { transition-delay: 0.6s; }
.waterfall-item:nth-child(6).visible { transition-delay: 0.75s; }
.waterfall-item:nth-child(7).visible { transition-delay: 0.9s; }
.waterfall-item:nth-child(8).visible { transition-delay: 1.05s; }

/* Header Animations */
@keyframes headerSlideDown {
  from {
    opacity: 0;
    transform: translateY(-100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.header-animate {
  animation: headerSlideDown 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.header-logo-animate {
  opacity: 0;
  animation: fadeIn 1s ease forwards;
  animation-delay: 0.3s;
}

.header-nav-item {
  opacity: 0;
  transform: translateY(-20px);
  animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.header-nav-item:nth-child(1) { animation-delay: 0.4s; }
.header-nav-item:nth-child(2) { animation-delay: 0.5s; }
.header-nav-item:nth-child(3) { animation-delay: 0.6s; }
.header-nav-item:nth-child(4) { animation-delay: 0.7s; }
.header-nav-item:nth-child(5) { animation-delay: 0.8s; }
.header-nav-item:nth-child(6) { animation-delay: 0.9s; }

.header-cta-animate {
  opacity: 0;
  transform: scale(0.8);
  animation: scaleIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 1s;
}

/* Hover Luxury Effects */
.luxury-hover {
  position: relative;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.luxury-hover::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(45deg, #ef4444, #f43f5e, #fb7185, #ef4444);
  background-size: 300% 300%;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
  filter: blur(10px);
  animation: gradientShift 3s ease infinite;
}

.luxury-hover:hover {
  transform: translateY(-5px);
}

.luxury-hover:hover::before {
  opacity: 0.6;
}

/* Luxury Card Shine Effect */
.luxury-shine {
  position: relative;
  overflow: hidden;
}

.luxury-shine::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 70%
  );
  transform: translateX(-100%) translateY(-100%) rotate(45deg);
  transition: transform 0.6s ease;
}

.luxury-shine:hover::after {
  transform: translateX(100%) translateY(100%) rotate(45deg);
}

/* Parallax Effect */
.parallax-slow {
  transition: transform 0.3s ease-out;
}

/* Glass Morphism Enhanced */
.glass-luxury {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Light Mode Glass Morphism */
body.light-mode .glass-luxury {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

/* =================================================================
   THEME TOGGLE BUTTON
   ================================================================= */
.theme-toggle {
  position: relative;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-surface-light);
  border: 1px solid var(--color-border-light);
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
}

.theme-toggle:hover {
  background: var(--color-surface-lighter);
  transform: scale(1.05);
}

.theme-toggle svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--color-text-primary);
  transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55), opacity 0.3s ease;
}

/* Auto-theme indicator */
.theme-toggle::after {
  content: '';
  position: absolute;
  top: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  background: var(--color-primary);
  border: 2px solid var(--color-bg-primary);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0);
  transition: all 0.3s ease;
}

.theme-toggle.auto-mode::after {
  opacity: 1;
  transform: scale(1);
}

.theme-icon {
  position: absolute;
}

.theme-icon-sun {
  opacity: 0;
  transform: rotate(180deg) scale(0);
}

.theme-icon-moon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

body.light-mode .theme-icon-sun {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

body.light-mode .theme-icon-moon {
  opacity: 0;
  transform: rotate(-180deg) scale(0);
}

/* =================================================================
   LIGHT MODE COMPONENT STYLES
   ================================================================= */

/* Header */
body.light-mode header {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(20px);
}

body.light-mode header nav a {
  color: var(--color-text-secondary);
}

body.light-mode header nav a:hover {
  color: #dc2626;
}

/* Hero Section */
body.light-mode section {
  background: var(--color-bg-primary);
}

body.light-mode .bg-black {
  background-color: #fafafa !important;
}

body.light-mode .bg-gradient-to-b {
  background: linear-gradient(to bottom, #ffffff, #fafafa) !important;
}

/* Hero animated background - subtle red hints */
body.light-mode .bg-gradient-radial {
  background: radial-gradient(circle, rgba(220, 38, 38, 0.03), transparent) !important;
}

body.light-mode .bg-red-600\/10 {
  background-color: rgba(220, 38, 38, 0.02) !important;
}

body.light-mode .bg-rose-600\/10 {
  background-color: rgba(220, 38, 38, 0.02) !important;
}

/* Cards */
body.light-mode .card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

body.light-mode .card:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(220, 38, 38, 0.1);
}

body.light-mode .card-elevated {
  background: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

body.light-mode .card-elevated:hover {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(220, 38, 38, 0.1);
}

/* Text colors */
body.light-mode .text-white {
  color: var(--color-text-primary) !important;
}

body.light-mode .text-gray-400,
body.light-mode .text-gray-300 {
  color: var(--color-text-secondary) !important;
}

body.light-mode .text-gray-500 {
  color: var(--color-text-tertiary) !important;
}

/* Red/Rose gradient text - keep red accent */
body.light-mode .bg-gradient-to-br.from-red-400,
body.light-mode .bg-gradient-to-r.from-red-500 {
  /* background: linear-gradient(135deg, #dc2626, #b91c1c) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important; */
}

/* Borders - subtle with red hints */
body.light-mode .border-red-900\/20,
body.light-mode .border-red-900\/30,
body.light-mode .border-red-900\/50 {
  border-color: rgba(0, 0, 0, 0.08) !important;
}

body.light-mode .border-white\/10 {
  border-color: rgba(0, 0, 0, 0.06) !important;
}

/* Backgrounds with transparency - near-white tones */
body.light-mode .bg-white\/5 {
  background-color: rgba(0, 0, 0, 0.02) !important;
}

body.light-mode .bg-white\/10 {
  background-color: rgba(0, 0, 0, 0.04) !important;
}

body.light-mode .bg-black\/40,
body.light-mode .bg-black\/50,
body.light-mode .bg-black\/60 {
  background-color: rgba(255, 255, 255, 0.9) !important;
}

/* Badge backgrounds - clean with subtle red */
body.light-mode .bg-gradient-to-r.from-red-950\/40,
body.light-mode .bg-gradient-to-br.from-red-950 {
  background: rgba(0, 0, 0, 0.03) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}

/* Button hover effects - add red hint on hover */
body.light-mode .bg-gradient-to-br.from-red-600 {
  background: linear-gradient(135deg, #dc2626, #b91c1c) !important;
}

/* Info cards */
body.light-mode .info-card {
  background: rgba(255, 255, 255, 0.95) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}

/* Glow effects - minimal in light mode - commented out */
/* body.light-mode .blur-\[120px\],
body.light-mode .blur-\[100px\] {
  opacity: 0.15;
} */

/* body.light-mode .animate-glow-pulse {
  animation: none;
} */

/* Mobile hero background */
body.light-mode .hero-section .absolute.inset-0.-z-10 img {
  opacity: 0.15;
}

body.light-mode .hero-section .absolute.inset-0.-z-10 .bg-black\/50 {
  background-color: rgba(255, 255, 255, 0.8) !important;
}

/* Stats and numbers */
body.light-mode .stat-glow {
  background: radial-gradient(circle, rgba(220, 38, 38, 0.05), transparent);
}

/* =================================================================
   RESPONSIVE DESIGN
   ================================================================= */

/* Mobile Menu Styles */
.mobile-menu {
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(20px);
  border-left: 1px solid rgba(239, 68, 68, 0.2);
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu-overlay.visible {
  opacity: 1;
  visibility: visible;
}

/* Desktop navigation visible by default */
header nav {
  display: flex;
}

/* Tablet & Mobile Navigation */
@media (max-width: 1024px) {
  /* Hide desktop navigation on tablet/mobile */
  header nav {
    display: none;
  }

  /* Show mobile menu button */
  [data-mobile-menu-button] {
    display: block;
  }
}

/* Mobile Navigation refinements */
@media (max-width: 768px) {
  /* Header adjustments for mobile */
  header {
    backdrop-filter: blur(20px);
    background: rgba(0, 0, 0, 0.9) !important;
    height: 80px;
  }
  
  /* Ensure content doesn't overlap header on mobile */
  main, section:first-of-type {
    padding-top: 80px;
  }

  /* Mobile-friendly button sizing */
  .btn {
    padding: 0.875rem 1.5rem;
    font-size: 0.875rem;
    min-height: 44px; /* iOS touch target minimum */
  }
  
  .btn-lg {
    padding: 1rem 2rem;
    min-height: 48px;
  }
  
  /* Card responsive adjustments */
  .card {
    padding: 1rem;
    margin-bottom: 1rem;
  }
  
  /* Typography mobile scaling */
  .heading-primary { 
    font-size: 2.25rem; 
    line-height: 1.2;
  }
  
  .heading-secondary { 
    font-size: 1.875rem; 
    line-height: 1.3;
  }
  
  /* Container padding */
  .container {
    padding: 0 1rem;
  }
  
  /* Mobile hero adjustments */
  .hero-section {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
  
  /* Location cards mobile stacking */
  .location-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  /* Stats grid mobile layout */
  .stats-grid {
    gap: 1.5rem;
  }
  
  /* Mobile menu specific styles */
  .mobile-menu nav a {
    font-size: 1.125rem;
    font-weight: 500;
  }
}

@media (max-width: 1024px) {
  .heading-primary { font-size: 3rem; }
  .heading-secondary { font-size: 2.5rem; }
  .heading-tertiary { font-size: 1.75rem; }
  
  .card-horizontal {
    flex-direction: column;
  }
  
  .card-horizontal .card-image {
    flex: 1;
  }
}

@media (max-width: 768px) {
  .heading-primary { font-size: 2.5rem; }
  .heading-secondary { font-size: 2rem; }
  .heading-tertiary { font-size: 1.5rem; }
  
  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
  }
  
  .card {
    padding: var(--spacing-lg);
  }
  
  .container {
    padding: 0 1rem;
  }
}

@media (max-width: 640px) {
  .heading-primary { font-size: 2rem; }
  .heading-secondary { font-size: 1.75rem; }
  
  .btn-lg {
    padding: 1rem 2rem;
  }
  
  .card-stats-number {
    font-size: 2rem;
  }
}
