/* ========================================
   Tootsie's Spot — Custom Styles
   Premium Dark Luxury | Plum + Amber
======================================== */

/* Base */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

/* Selection */
::selection {
    background: rgba(251, 191, 36, 0.3);
    color: #f5f0f8;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0d0a10;
}
::-webkit-scrollbar-thumb {
    background: #432b53;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #653f7a;
}

/* ========================================
   Floating Card Animations (Hero)
======================================== */
.floating-card {
    will-change: transform;
}

.floating-card.card-1 {
    animation: float1 6s ease-in-out infinite;
}
.floating-card.card-2 {
    animation: float2 7s ease-in-out infinite;
}
.floating-card.card-3 {
    animation: float3 5.5s ease-in-out infinite;
}
.floating-card.card-4 {
    animation: float4 6.5s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-16px) rotate(1deg); }
}
@keyframes float2 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(-1deg); }
}
@keyframes float3 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(0.5deg); }
}
@keyframes float4 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-14px) rotate(-0.5deg); }
}

/* ========================================
   Scroll Reveal Animations
   Progressive enhancement — only applied
   when JS runs and user prefers motion.
======================================== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

/* ========================================
   Navbar Glass Effect
======================================== */
.nav-scrolled {
    background: rgba(7, 5, 9, 0.85) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(125, 79, 149, 0.15);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* ========================================
   Product Card Hover Glow
======================================== */
.group:hover .group-hover\:shadow-amber-500\/5 {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 40px rgba(251, 191, 36, 0.05);
}

/* ========================================
   Feature Card Hover Lift
======================================== */
.feature-card {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.feature-card:hover {
    transform: translateY(-6px);
}

/* ========================================
   Mobile Menu Transition
======================================== */
#mobileMenu {
    animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Gold Shimmer Accent Line
======================================== */
.shimmer-line {
    background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.4), transparent);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}
@keyframes shimmer {
    0%, 100% { background-position: -200% 0; }
    50% { background-position: 200% 0; }
}

/* ========================================
   Image Hover Zoom Wrapper
======================================== */
.rounded-2xl.overflow-hidden {
    position: relative;
}
.rounded-2xl.overflow-hidden::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(125, 79, 149, 0.2);
    pointer-events: none;
    transition: border-color 0.4s ease;
}
.rounded-2xl.overflow-hidden:hover::after {
    border-color: rgba(251, 191, 36, 0.3);
}
