@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200;300;400;500;600;700;800&display=swap');

body { font-family: 'Manrope', sans-serif; }

/* Royal Gradients & Utilities */
.bg-royal-navy { background-color: #02060e; }
.text-royal-gold { 
    background: linear-gradient(135deg, #F3C654 0%, #D8A526 50%, #B68611 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Grid Background Pattern */
.bg-grid-pattern {
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* Subtle Glows */
.glow-orb {
    background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, rgba(0,0,0,0) 70%);
    mix-blend-mode: screen;
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
    filter: blur(5px);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

/* Stagger delays */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }

/* Hide Scrollbar */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* Accordion Animation */
details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }
details[open] summary ~ * { animation: sweep .4s cubic-bezier(0.16, 1, 0.3, 1); }

@keyframes sweep {
    0%    {opacity: 0; transform: translateY(-10px)}
    100%  {opacity: 1; transform: translateY(0)}
}

/* Elevator Line Animation */
@keyframes liftMove {
    0% { top: 0%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

.lift-line-glow {
    box-shadow: 0 0 15px 2px rgba(245, 158, 11, 0.4);
}

/* Back to Top Button */
#back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: #f59e0b;
    color: #02060e;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.5);
}

/* Product Image Reveal Animation */
.product-reveal-img {
    opacity: 0;
    transform: scale(1.05);
    will-change: opacity, transform;
}

/* When the background container becomes active, trigger the image animation */
.reveal.active .product-reveal-img {
    animation: cardBgSettle 2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    /* No delay on the image itself, it starts as soon as the container is active */
}

@keyframes cardBgSettle {
    0% {
        opacity: 0;
        transform: scale(1.05);
    }
    15% {
        opacity: 1; /* Full visibility at peak */
        transform: scale(1.05);
    }
    60% {
        opacity: 1; /* Hold the highlight */
        transform: scale(1.05);
    }
    100% {
        opacity: 0.25; /* Settle to visible background */
        transform: scale(1);
    }
}

/* Dark card specific adjustment - slightly higher settled opacity for visibility */
.bg-royal-navy .reveal.active .product-reveal-img {
    animation-name: cardBgSettleDark;
}

@keyframes cardBgSettleDark {
    0% { opacity: 0; transform: scale(1.05); }
    15% { opacity: 0.8; transform: scale(1.05); } /* High peak for dark bg */
    60% { opacity: 0.8; transform: scale(1.05); }
    100% { opacity: 0.3; transform: scale(1); } /* Visible settled state */
}

/* Override reveal transform for background images container */
.reveal-bg-img {
    transform: none !important;
    filter: none !important;
    /* The container fades in quickly to reveal the image animation inside */
    transition: opacity 0.5s ease-out !important;
}

/* Product Card Interaction */
.product-card.image-mode .product-content-text {
    opacity: 0;
    pointer-events: none;
}

.product-card.image-mode .product-reveal-img {
    opacity: 1 !important;
    transform: scale(1) !important;
    transition: all 0.5s ease-out;
    animation: none !important; /* Stop the settle animation */
}

/* Hide gradients in image mode to show clear image */
.product-card.image-mode .reveal-bg-img .absolute {
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* Ensure button stays visible and clickable */
.product-card a {
    position: relative;
    z-index: 20;
}
