/* 🎨 SIMPLIFIED COLOR SYSTEM */
:root {
  --primary-dark: #0a0a0a;
  --secondary-dark: #1a1a1a;
  --accent-champagne: #c9a961;
  --accent-champagne-light: #e8d8a5;
  --text-primary: #f0f0f0;
  --text-secondary: #8a8a8a;
  --border-subtle: rgba(255, 255, 255, 0.08);
}

/* Typography */
.font-display {
  font-family: "Playfair Display", serif;
}
.font-serif {
  font-family: "Cormorant Garamond", serif;
}
.font-sans {
  font-family: "Inter", sans-serif;
}

/* 🎬 FIXED VIDEO HERO - OPTIMIZED FOR MOBILE */
.hero-cinematic {
  position: relative;
  overflow: hidden;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  z-index: 1;
}
/* Show video on all devices */
.hero-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at center,
    rgba(10, 10, 10, 0.5),
    rgba(26, 26, 26, 0.7)
  );
  z-index: 3;
}
.hero-content {
  position: relative;
  z-index: 4;
}

/* 💎 CARD EFFECTS */
.luxury-card {
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(10px);
  background: rgba(26, 26, 26, 0.8);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}
.luxury-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(201, 169, 97, 0.4);
  box-shadow: 0 20px 40px rgba(201, 169, 97, 0.1), 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* ✨ MICRO ANIMATIONS */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 20px rgba(201, 169, 97, 0.2); }
  50% { box-shadow: 0 0 30px rgba(201, 169, 97, 0.4), 0 0 40px rgba(201, 169, 97, 0.2); }
}

.float-animation {
  animation: float 6s ease-in-out infinite;
}

.glow-animation {
  animation: glow 4s ease-in-out infinite;
}

/* ✨ ANIMATION */
.stagger-item {
  opacity: 0;
  transform: translateY(30px);
}

/* 📱 PAGE TRANSITIONS */
.page {
  display: none;
  opacity: 0;
}
.page.active {
  display: block;
  animation: pageReveal 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}
@keyframes pageReveal {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 🔍 LIGHTBOX */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.98);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

/* 🏛️ MASONRY GRID */
.masonry-grid {
  column-count: 3;
  column-gap: 1rem;
}
.masonry-item {
  break-inside: avoid;
  margin-bottom: 1rem;
}

/* 🌊 NAV UNDERLINE */
.nav-link {
  position: relative;
  transition: color 0.3s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-champagne);
  transition: width 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}
.nav-link.active {
  color: var(--accent-champagne);
}

/* 🔝 BACK TO TOP BUTTON */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 3rem;
  height: 3rem;
  background: var(--accent-champagne);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 40;
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: all;
}

/* 📱 MOBILE OPTIMIZATIONS */
@media (max-width: 768px) {
  .masonry-grid {
    column-count: 1;
  }
  /* Adjust hero content for mobile */
  .hero-cinematic {
    min-height: 100vh;
  }
  /* Ensure video is visible on mobile */
  .hero-video {
    opacity: 0.7; /* Slightly darker for mobile screens */
  }

  /* Touch-friendly interactions */
  .luxury-card, .social-icon, button, .nav-link {
    min-height: 44px;
    min-width: 44px;
  }

  /* Improved spacing for mobile */
  .hero-content {
    padding-top: 120px; /* Account for mobile nav */
  }

  /* Better button spacing on mobile */
  .hero-content .flex {
    gap: 1rem;
  }

  /* Mobile-specific animations - reduce motion for performance */
  @media (prefers-reduced-motion: no-preference) {
    .luxury-card {
      transition: transform 0.2s ease-out; /* Faster transitions on mobile */
    }
  }

  /* Improve readability on small screens */
  .font-display {
    line-height: 1.1;
  }

  /* Better form inputs on mobile */
  input, textarea, select {
    font-size: 16px; /* Prevents zoom on iOS */
  }
}

/* Tablet optimizations */
@media (max-width: 1024px) and (min-width: 769px) {
  .masonry-grid {
    column-count: 2;
  }
}

/* 🔧 UTILITY CLASSES */
.text-shadow {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* 🔗 CLICKABLE CONTACT LINKS */
.contact-link {
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
  border-bottom: 1px solid transparent;
}
.contact-link:hover {
  color: var(--accent-champagne);
  border-bottom: 1px solid var(--accent-champagne);
}

/* 📱 SOCIAL ICONS */
.social-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--secondary-dark);
  border-radius: 50%;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}
.social-icon:hover {
  background: var(--accent-champagne);
  transform: translateY(-3px);
}
.social-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}
.social-icon:hover svg {
  fill: var(--primary-dark);
}

/* 🎨 CODED VISION LINK */
.coded-vision-link {
  position: relative;
  text-decoration: none;
  transition: all 0.3s ease;
}
.coded-vision-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-champagne);
  transition: width 0.3s ease;
}
.coded-vision-link:hover::after {
  width: 100%;
}

/* 🍪 COOKIE SETTINGS LINK */
.cookie-settings-link {
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-size: inherit;
  padding: 0;
  transition: all 0.3s ease;
}
.cookie-settings-link:hover {
  text-decoration: underline;
}

/* 🍪 COOKIE MODAL */
.cookie-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.cookie-modal-overlay.active {
  display: flex;
}

.cookie-modal {
  background: var(--secondary-dark);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.cookie-modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  text-align: center;
}

.cookie-logo {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  display: block;
  border-radius: 8px;
  background: var(--accent-champagne);
  object-fit: contain;
}

.cookie-modal-header h3 {
  color: var(--accent-champagne);
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0;
}

.cookie-modal-body {
  padding: 1.5rem;
}

.cookie-description {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.cookie-options {
  space-y: 1rem;
}

.cookie-option {
  padding: 1rem;
  background: var(--primary-dark);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  margin-bottom: 1rem;
}

.cookie-option:last-child {
  margin-bottom: 0;
}

.cookie-option-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.cookie-option-header h4 {
  color: var(--accent-champagne);
  margin: 0;
  font-size: 1rem;
}

.cookie-required {
  background: var(--accent-champagne);
  color: var(--primary-dark);
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.cookie-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--border-subtle);
  border-radius: 24px;
  transition: 0.3s;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: 0.3s;
}

input:checked + .toggle-slider {
  background: var(--accent-champagne);
}

input:checked + .toggle-slider:before {
  transform: translateX(20px);
}

.cookie-modal-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.cookie-link {
  color: var(--accent-champagne);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.cookie-link:hover {
  color: var(--accent-champagne-light);
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  gap: 0.75rem;
}

.cookie-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  min-height: 44px;
}

.cookie-btn-primary {
  background: var(--accent-champagne);
  color: var(--primary-dark);
}

.cookie-btn-primary:hover {
  background: var(--accent-champagne-light);
  transform: translateY(-1px);
}

.cookie-btn-secondary {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.cookie-btn-secondary:hover {
  background: var(--primary-dark);
  color: var(--text-primary);
  border-color: var(--accent-champagne);
}

/* Mobile optimizations for cookie modal */
@media (max-width: 768px) {
  .cookie-modal {
    margin: 1rem;
    max-height: calc(100vh - 2rem);
  }

  .cookie-modal-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-buttons {
    flex-direction: column;
    gap: 0.5rem;
  }

  .cookie-btn {
    width: 100%;
  }
}
