/* Custom CSS variables and style overrides */

/* Smooth custom scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #09090b;
}
::-webkit-scrollbar-thumb {
  background: #27272a;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #3f3f46;
}

/* Ambient Breathing Background */
@keyframes ambientGlow {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

body {
  background: radial-gradient(circle at 10% 20%, rgba(6, 78, 59, 0.08) 0%, rgba(3, 4, 5, 1) 90%),
              radial-gradient(circle at 90% 80%, rgba(16, 185, 129, 0.04) 0%, rgba(3, 4, 5, 1) 90%);
  background-size: 200% 200%;
  animation: ambientGlow 20s ease infinite;
  background-attachment: fixed;
}

/* Keyframes for premium micro-interactions */
@keyframes heartPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.25);
  }
}

@keyframes shimmerPill {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Glassmorphism styling */
.glass-panel {
  background: rgba(9, 10, 12, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.02),
              0 8px 32px 0 rgba(0, 0, 0, 0.4);
}

.glass-panel-light {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.02);
}

.glass-modal {
  background: rgba(8, 8, 10, 0.9);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.03),
              0 24px 64px rgba(0, 0, 0, 0.65);
}

/* Glow effects */
.glow-accent {
  box-shadow: 0 0 25px -5px rgba(99, 102, 241, 0.3);
}

.glow-green {
  box-shadow: 0 0 25px -5px rgba(16, 185, 129, 0.3);
}

/* Face Scanner HUD Animation */
@keyframes scanline {
  0% {
    top: 0%;
  }
  50% {
    top: 100%;
  }
  100% {
    top: 0%;
  }
}

.scanner-line {
  animation: scanline 3s linear infinite;
  background: linear-gradient(to bottom, rgba(16, 185, 129, 0) 0%, rgba(16, 185, 129, 1) 50%, rgba(16, 185, 129, 0) 100%);
}

@keyframes pulse-box {
  0%, 100% {
    border-color: rgba(16, 185, 129, 0.6);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.2);
  }
  50% {
    border-color: rgba(16, 185, 129, 1);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.6);
  }
}

.face-box {
  animation: pulse-box 2s infinite;
  border-width: 2px;
}

/* Zooming lightbox image smooth scale */
.lightbox-img {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 82vh !important;
  border-radius: 12px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9),
              0 0 30px rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Masonry grid hover properties */
.photo-card-overlay {
  background: linear-gradient(to top, rgba(3, 3, 3, 0.85) 0%, rgba(3, 3, 3, 0.3) 50%, rgba(3, 3, 3, 0) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.photo-card-container:hover .photo-card-overlay {
  opacity: 1;
}

/* Loading animations */
@keyframes spin-slow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.spin-slow-icon {
  animation: spin-slow 8s linear infinite;
}

/* Responsive grid height overrides */
.aspect-masonry {
  aspect-ratio: auto;
}

/* Elegant Heading Fonts (Replaces casual fonts) */
h1:not(.font-outfit):not(.font-sans):not(.font-inter),
h2:not(.font-outfit):not(.font-sans):not(.font-inter),
h3:not(.font-outfit):not(.font-sans):not(.font-inter),
h4:not(.font-outfit):not(.font-sans):not(.font-inter),
.font-serif-header {
  font-family: 'Cormorant Garamond', serif;
  letter-spacing: -0.02em;
}

/* Page fade-in reveal animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Gentle reveal for images */
.image-reveal {
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.image-reveal.loaded {
  opacity: 1;
}

/* Professional logo CSS filters */
.logo-filter-white {
  filter: brightness(0) invert(1);
}

.logo-filter-green {
  filter: invert(48%) sepia(79%) saturate(468%) hue-rotate(115deg) brightness(97%) contrast(92%);
}

/* Lightbox overlay styling - dark and blurry to isolate image */
#lightbox-overlay {
  z-index: 99999 !important;
  background-color: rgba(3, 4, 5, 0.96) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  animation: lightboxFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes lightboxFadeIn {
  from {
    opacity: 0;
    backdrop-filter: blur(0px);
  }
  to {
    opacity: 1;
    backdrop-filter: blur(24px);
  }
}

/* Ensure no overlap from guest sticky header inside lightbox */
.lightbox-active {
  overflow: hidden !important;
}

/* Fix download dropdown text sizes and layout */
#download-dropdown-menu {
  z-index: 60 !important;
}

/* Premium Shimmer Pulse for lazy-loaded images */
@keyframes shimmerPulse {
  0%, 100% {
    background-color: rgba(9, 10, 12, 0.6);
  }
  50% {
    background-color: rgba(30, 41, 59, 0.3);
  }
}

.shimmer-pulse {
  animation: shimmerPulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Unified Typography Overrides */
body, input, button, select, textarea, option {
  font-family: 'Inter', sans-serif !important;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif !important;
}

h1.font-serif, h2.font-serif, h3.font-serif, h4.font-serif, .font-serif-header {
  font-family: 'Cormorant Garamond', serif !important;
}

/* Cover Crown Button Styling */
.set-cover-btn {
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.set-cover-btn:hover {
  transform: scale(1.08);
}
.set-cover-btn:active {
  transform: scale(0.95);
}

/* Watermark Pattern for Unpaid Shoots */
.watermark-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'%3E%3Ctext x='50%25' y='50%25' font-size='11' fill='rgba%28255%2C%20255%2C%20255%2C%200.12%29' font-family='sans-serif' font-weight='bold' text-anchor='middle' transform='rotate%28-35%20100%20100%29'%3EMushePhoto%20Proof%3C/text%3E%3C/svg%3E");
  background-repeat: repeat;
}

/* Force unstretched aspect ratio on card covers */
.album-card-cover {
  object-fit: cover !important;
  object-position: center !important;
}

/* Permanently show action overlays on mobile/touch screens since there is no hover */
@media (max-width: 767px) {
  .photo-card-overlay {
    opacity: 1 !important;
    background: linear-gradient(to top, rgba(3, 3, 3, 0.6) 0%, rgba(3, 3, 3, 0) 100%) !important;
  }
  .card-action-btn {
    width: 2.25rem !important;
    height: 2.25rem !important;
    background: rgba(3, 3, 3, 0.65) !important;
  }
}

/* Premium Sidebar Navigation Styles */
#sidebar-nav a {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

#sidebar-nav a i {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease;
}

#sidebar-nav a:hover i {
  transform: translateX(3px);
  color: #10b981 !important;
}

/* Active link style enhancements */
#sidebar-nav a.bg-white {
  background: #ffffff !important;
  color: #030405 !important;
  box-shadow: 0 4px 20px -2px rgba(16, 185, 129, 0.15) !important;
}

#sidebar-nav a.bg-white i {
  color: #059669 !important;
}

/* Premium Album & Photo Cards Custom styles */
.album-card, .photo-card-container {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.album-card:hover {
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5),
              0 0 32px 2px rgba(16, 185, 129, 0.08) !important;
  border-color: rgba(16, 185, 129, 0.35) !important;
}

.photo-card-container:hover {
  box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.5),
              0 0 24px 1px rgba(16, 185, 129, 0.07) !important;
  border-color: rgba(16, 185, 129, 0.3) !important;
}

/* Heart Favorite pulse micro-animation */
.card-action-btn.text-rose-500 i, #lb-fav-btn i.text-rose-500 {
  animation: heartPulse 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Glossy sheen shimmer across active categories and badges */
.cat-filter-btn.bg-brand-accent, .cat-tab.bg-white, .cat-toggle-chip.border-brand-500 {
  position: relative;
  overflow: hidden;
}

.cat-filter-btn.bg-brand-accent::after, .cat-tab.bg-white::after, .cat-toggle-chip.border-brand-500::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.18) 50%, rgba(255, 255, 255, 0) 100%);
  background-size: 200% 100%;
  animation: shimmerPill 3s infinite linear;
  pointer-events: none;
}

/* Staggered load animations */
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-slide-up {
  opacity: 0;
  animation: fadeSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }
.delay-7 { animation-delay: 0.7s; }

/* Service icons wiggle micro-animation */
@keyframes iconWiggle {
  0%, 100% {
    transform: rotate(0deg) scale(1);
  }
  25% {
    transform: rotate(-8deg) scale(1.1);
  }
  75% {
    transform: rotate(8deg) scale(1.1);
  }
}

.service-card:hover .service-icon {
  animation: iconWiggle 0.5s ease-in-out;
  color: #10b981 !important;
}

.service-card {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover {
  box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.5),
              0 0 24px rgba(16, 185, 129, 0.04) !important;
  border-color: rgba(16, 185, 129, 0.2) !important;
}

/* Hero ambient orb float animations */
@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -15px) scale(1.05); }
  66% { transform: translate(-10px, 10px) scale(0.97); }
}
@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-15px, 20px) scale(0.95); }
  66% { transform: translate(10px, -10px) scale(1.04); }
}
.hero-orb-1 { animation: orbFloat1 12s ease-in-out infinite; }
.hero-orb-2 { animation: orbFloat2 15s ease-in-out infinite; }

/* Stat card icon spin on hover */
.glass-panel .group:hover .fa-heart { animation: heartPulse 0.5s ease-in-out; }
.glass-panel .group:hover .fa-star  { animation: iconWiggle 0.5s ease-in-out; }

/* Testimonial dot pill transition */
.testimonial-dot { display: block; }

/* CTA banner border glow pulse */
@keyframes ctaBorderGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
  50%       { box-shadow: 0 0 30px 2px rgba(16, 185, 129, 0.08); }
}
section.relative.rounded-3xl.border.border-brand-500\/20 {
  animation: ctaBorderGlow 6s ease-in-out infinite;
}

/* Hero CTA primary button glow pulse */
.hero-cta-primary {
  position: relative;
  overflow: hidden;
}
.hero-cta-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0) 100%);
  background-size: 200% 100%;
  animation: shimmerPill 2.5s infinite linear;
  pointer-events: none;
}

/* Smooth overflow clip for carousel */
#testimonials-track { will-change: transform; }

/* Hide scrollbar (category rail, etc.) */
.scrollbar-none { scrollbar-width: none; }
.scrollbar-none::-webkit-scrollbar { display: none; }

/* Shimmer top bar for login card */
@keyframes shimmerBar {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.animate-shimmer-bar {
  animation: shimmerBar 3s linear infinite;
}

/* Shimmer pill for hero CTA */
@keyframes shimmerPill {
  0%   { background-position: 200% 50%; }
  100% { background-position: -200% 50%; }
}

