/* ===== LUXURY CUSTOM STYLES - MAXIMUM FLAIR ===== */

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Custom cursor - luxury style */
* {
  cursor: default;
}
a, button, [onclick], .cursor-pointer {
  cursor: pointer;
}

/* Custom scrollbar - ultra thin luxury */
::-webkit-scrollbar {
  width: 4px;
}
::-webkit-scrollbar-track {
  background: #0a0a0a;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #c8a45a, #a8843a);
  border-radius: 2px;
}
::-webkit-scrollbar-thumb:hover {
  background: #e0c47a;
}

/* Selection - gold highlight */
::selection {
  background: rgba(200, 164, 90, 0.5);
  color: #fff;
}

/* ===== PARTICLES ===== */
#particles {
  background-image: 
    radial-gradient(circle at 20% 80%, rgba(200, 164, 90, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(200, 164, 90, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(200, 164, 90, 0.02) 0%, transparent 30%);
}

/* ===== TYPOGRAPHY ENHANCEMENTS ===== */
.font-display {
  letter-spacing: -0.03em;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

/* ===== HERO ANIMATIONS - DRAMATIC ===== */
.hero-fade {
  transition: opacity 1.5s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-fade.visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Staggered delays for hero text */
.hero-fade:nth-child(1) { transition-delay: 0.2s; }
.hero-fade:nth-child(2) { transition-delay: 0.5s; }
.hero-fade:nth-child(3) { transition-delay: 0.8s; }
.hero-fade:nth-child(4) { transition-delay: 1.1s; }

/* Hero image zoom effect */
#hero-image {
  animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  0% { transform: scale(1.1); }
  100% { transform: scale(1.2); }
}

/* ===== SCROLL REVEAL - DRAMATIC ===== */
.scroll-reveal {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ===== NAVIGATION LUXURY ===== */
.navbar-scrolled {
  background: rgba(10, 10, 10, 0.98);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border-bottom: 1px solid rgba(200, 164, 90, 0.15);
}

/* Nav link hover effect - gold underline */
.nav-link {
  position: relative;
  overflow: hidden;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #c8a45a, transparent);
  transform: translateX(-101%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-link:hover::after {
  transform: translateX(0);
}

/* ===== GALLERY LUXURY STYLING ===== */
.gallery-item {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Stagger animation for gallery items - dramatic */
.gallery-item:nth-child(1) { transition-delay: 0.08s; }
.gallery-item:nth-child(2) { transition-delay: 0.16s; }
.gallery-item:nth-child(3) { transition-delay: 0.24s; }
.gallery-item:nth-child(4) { transition-delay: 0.32s; }
.gallery-item:nth-child(5) { transition-delay: 0.40s; }
.gallery-item:nth-child(6) { transition-delay: 0.48s; }
.gallery-item:nth-child(7) { transition-delay: 0.56s; }
.gallery-item:nth-child(8) { transition-delay: 0.64s; }
.gallery-item:nth-child(9) { transition-delay: 0.72s; }
.gallery-item:nth-child(10) { transition-delay: 0.80s; }
.gallery-item:nth-child(11) { transition-delay: 0.88s; }
.gallery-item:nth-child(12) { transition-delay: 0.96s; }

/* Gallery image container - luxury frame effect */
.gallery-item > div {
  position: relative;
  overflow: hidden;
  background: #0f0f0f;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Image loading state */
.gallery-item img {
  opacity: 1;
  transition: opacity 0.8s ease, transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: auto;
}

/* Hover effects - dramatic */
.gallery-item:hover img {
  transform: scale(1.1);
}

/* Luxury overlay - gradient from bottom */
.gallery-item .gallery-overlay {
  background: linear-gradient(
    to top,
    rgba(10, 10, 10, 0.98) 0%,
    rgba(10, 10, 10, 0.85) 30%,
    rgba(10, 10, 10, 0.5) 60%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* Title animation on hover - dramatic entrance */
.gallery-item h3 {
  transform: translateY(30px);
  opacity: 0;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.1s,
              opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
}
.gallery-item:hover h3 {
  transform: translateY(0);
  opacity: 1;
}

/* Category text animation */
.gallery-item .category-text {
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.15s,
              opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.15s;
}
.gallery-item:hover .category-text {
  transform: translateY(0);
  opacity: 1;
}

/* Button animation - dramatic */
.gallery-item button {
  transform: translateY(30px);
  opacity: 0;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s,
              opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s,
              background-color 0.3s ease, box-shadow 0.3s ease;
}
.gallery-item:hover button {
  transform: translateY(0);
  opacity: 1;
}

.gallery-item button:hover {
  box-shadow: 0 0 30px rgba(200, 164, 90, 0.4);
}

/* ===== FILTER BUTTONS LUXURY ===== */
.filter-btn {
  position: relative;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  letter-spacing: 0.15em;
}

.filter-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #c8a45a, #e0c47a);
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: -1;
}

.filter-btn:hover::before,
.filter-btn.active::before {
  transform: translateY(0);
}

.filter-btn:hover,
.filter-btn.active {
  color: #0a0a0a;
  border-color: #c8a45a;
  box-shadow: 0 4px 20px rgba(200, 164, 90, 0.3);
}

/* ===== PRODUCT MODAL LUXURY ===== */
#product-modal {
  animation: modalFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

#product-modal > div {
  animation: modalSlideIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6);
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Size options luxury styling */
.product-size-option {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
}

.product-size-option:hover {
  border-color: rgba(200, 164, 90, 0.5);
  background: rgba(200, 164, 90, 0.08);
  transform: translateX(5px);
}

.product-size-option.selected {
  border-color: #c8a45a;
  background: rgba(200, 164, 90, 0.15);
  box-shadow: 0 0 20px rgba(200, 164, 90, 0.2);
}

/* ===== BUTTON LUXURY STYLES ===== */
.luxury-btn {
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.luxury-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.8s ease;
}

.luxury-btn:hover::before {
  left: 100%;
}

/* ===== PAGE LOADER LUXURY ===== */
.page-loader {
  position: fixed;
  inset: 0;
  background: #0a0a0a;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-text {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: #c8a45a;
  letter-spacing: 0.4em;
  animation: loaderPulse 2s ease-in-out infinite;
  text-shadow: 0 0 40px rgba(200, 164, 90, 0.3);
}

@keyframes loaderPulse {
  0%, 100% { opacity: 0.3; transform: scale(0.98); }
  50% { opacity: 1; transform: scale(1); }
}

/* ===== SCROLL PROGRESS BAR ===== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, #c8a45a, #e0c47a, #c8a45a);
  background-size: 200% 100%;
  z-index: 100;
  transition: width 0.1s linear;
  box-shadow: 0 0 10px rgba(200, 164, 90, 0.5);
}

/* ===== TOAST NOTIFICATION LUXURY ===== */
#toast {
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

#toast.toast-visible {
  transform: translateY(0);
  opacity: 1;
}

/* ===== SMOOTH FOCUS STATES ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(200, 164, 90, 0.5), 0 0 20px rgba(200, 164, 90, 0.3);
}

/* ===== GOLD ACCENT GLOW ===== */
.gold-glow {
  box-shadow: 0 0 30px rgba(200, 164, 90, 0.3);
}

/* ===== TEXT GRADIENT ===== */
.text-gradient {
  background: linear-gradient(135deg, #c8a45a, #e0c47a, #c8a45a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== SECTION DIVIDERS ===== */
.section-divider {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #c8a45a, transparent);
  margin: 0 auto;
}

/* ===== FLOATING ANIMATION ===== */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.float-animation {
  animation: float 4s ease-in-out infinite;
}

/* ===== SHIMMER EFFECT ===== */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.shimmer {
  background: linear-gradient(
    90deg,
    rgba(200, 164, 90, 0) 0%,
    rgba(200, 164, 90, 0.1) 50%,
    rgba(200, 164, 90, 0) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 3s infinite;
}

/* ===== BORDER GLOW ===== */
.border-glow {
  position: relative;
}
.border-glow::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: linear-gradient(135deg, #c8a45a, transparent, #c8a45a);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.border-glow:hover::before {
  opacity: 1;
}
