/* Custom Luxury Styling for Makeup by Runal */

/* Smooth Scrolling & Typography */
html, body {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #1E1E1E;
  background-color: #FAFAF7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .font-serif {
  font-family: 'Playfair Display', Georgia, serif;
}

/* Prevent iOS Safari auto-zoom on input focus */
@media screen and (max-width: 768px) {
  input, select, textarea {
    font-size: 16px !important;
  }
}

/* Gradients & Luxury Brand Typography */
.gold-gradient {
  background: linear-gradient(135deg, #D4AF37 0%, #F3E5AB 50%, #B76E79 100%);
}

.gold-text-gradient {
  background: linear-gradient(135deg, #B8860B 0%, #E6CA65 35%, #F3E5AB 50%, #D4AF37 70%, #997D22 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 1px 2px rgba(212, 175, 55, 0.15);
}

.brand-shimmer {
  background: linear-gradient(90deg, #121212 0%, #997D22 25%, #D4AF37 50%, #997D22 75%, #121212 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 6s linear infinite;
}

@keyframes shimmer {
  to {
    background-position: 200% center;
  }
}

.brand-emblem {
  background: radial-gradient(circle at 30% 30%, #F3E5AB 0%, #D4AF37 60%, #997D22 100%);
  box-shadow: 0 4px 15px -2px rgba(212, 175, 55, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.6);
}

.hero-glow {
  box-shadow: 0 0 50px -10px rgba(212, 175, 55, 0.25);
}

.glass-card {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.glass-dark {
  background: rgba(26, 26, 26, 0.88);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(212, 175, 55, 0.2);
}

/* Touch Slider Optimization */
#sliderContainer {
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

#beforeClip {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  overflow: hidden;
}

#beforeClip img {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: var(--slider-width, 100%);
  max-width: none;
  object-fit: cover;
}

/* Safe Area Insets for Modern iPhones with Notches / Home Bars */
.mobile-sticky-bar {
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.mobile-sticky-bar.keyboard-active {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}

/* Minimum 44x44px touch targets for mobile accessibility */
.touch-target-44 {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Accessible High-Contrast Focus Ring */
input:focus, select:focus, textarea:focus {
  border-color: #D4AF37 !important;
  outline: 2px solid rgba(212, 175, 55, 0.4) !important;
  outline-offset: 1px;
}

/* Accessible Gold for light backgrounds (WCAG AA Compliant) */
.text-brand-accessible-gold {
  color: #8A6400;
}

/* Custom Scrollbar (Scoped to main page viewport only) */
html::-webkit-scrollbar, body::-webkit-scrollbar {
  width: 8px;
}
html::-webkit-scrollbar-track, body::-webkit-scrollbar-track {
  background: #FAFAF7;
}
html::-webkit-scrollbar-thumb, body::-webkit-scrollbar-thumb {
  background: #D4AF37;
  border-radius: 4px;
}
html::-webkit-scrollbar-thumb:hover, body::-webkit-scrollbar-thumb:hover {
  background: #B76E79;
}

/* Subtle floating badge animation */
@keyframes floatGentle {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

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

/* Reels Container Aspect Ratio */
.reel-card {
  aspect-ratio: 9/16;
}

/* Hide scrollbars completely on category tabs and swipeable containers */
.no-scrollbar::-webkit-scrollbar,
#portfolioFilter::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}
.no-scrollbar,
#portfolioFilter {
  -ms-overflow-style: none !important;  /* IE and Edge */
  scrollbar-width: none !important;  /* Firefox */
}

/* Hybrid Luxury Horizontal Carousel & Grid Toggle Styles */
#galleryGrid.carousel-mode {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  gap: 1.25rem;
  padding-bottom: 0.75rem;
  -webkit-overflow-scrolling: touch;
}
#galleryGrid.carousel-mode > .gallery-item {
  flex: 0 0 80vw;
  max-width: 340px;
  scroll-snap-align: center;
}
@media (min-width: 640px) {
  #galleryGrid.carousel-mode {
    gap: 1.5rem;
  }
  #galleryGrid.carousel-mode > .gallery-item {
    flex: 0 0 320px;
    scroll-snap-align: start;
  }
}
@media (min-width: 1024px) {
  #galleryGrid.carousel-mode > .gallery-item {
    flex: 0 0 350px;
  }
}
#galleryGrid.grid-mode {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.5rem;
}
@media (min-width: 640px) {
  #galleryGrid.grid-mode {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
  }
}
@media (min-width: 1024px) {
  #galleryGrid.grid-mode {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
#galleryGrid > .gallery-item.hidden {
  display: none !important;
}

/* Video Reels Horizontal Carousel & Grid Toggle Styles */
#reelsGrid.carousel-mode {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  gap: 1rem;
  padding-bottom: 0.75rem;
  -webkit-overflow-scrolling: touch;
}
#reelsGrid.carousel-mode > .reel-item {
  flex: 0 0 68vw;
  max-width: 260px;
  scroll-snap-align: center;
}
@media (min-width: 640px) {
  #reelsGrid.carousel-mode {
    gap: 1.25rem;
  }
  #reelsGrid.carousel-mode > .reel-item {
    flex: 0 0 240px;
    scroll-snap-align: start;
  }
}
@media (min-width: 1024px) {
  #reelsGrid.carousel-mode {
    gap: 1.5rem;
  }
  #reelsGrid.carousel-mode > .reel-item {
    flex: 0 0 265px;
  }
}
#reelsGrid.grid-mode {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}
@media (min-width: 768px) {
  #reelsGrid.grid-mode {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }
}
@media (min-width: 1024px) {
  #reelsGrid.grid-mode {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ==========================================================================
   Smooth Motion Suite: Scroll-Reveal & Milestone Counters (AOS Feel)
   ========================================================================== */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-scale {
  opacity: 0;
  transform: 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);
  will-change: opacity, transform;
}

.reveal-scale.is-revealed {
  opacity: 1;
  transform: scale(1);
}

.reveal-delay-100 { transition-delay: 100ms; }
.reveal-delay-200 { transition-delay: 200ms; }
.reveal-delay-300 { transition-delay: 300ms; }
.reveal-delay-400 { transition-delay: 400ms; }

/* Micro Card Lift on Hover */
.luxury-card-lift {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.luxury-card-lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 35px -10px rgba(18, 18, 18, 0.12), 0 0 25px -5px rgba(212, 175, 55, 0.2);
}

/* Respect user's device reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll, .reveal-scale {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}


