/* Glassmorphism Utilities */
.glass-panel {
    background: rgba(14, 18, 22, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.glass-card-hover {
    transition: all 0.4s ease;
}

.glass-card-hover:hover {
    background: rgba(21, 25, 30, 0.8);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
    border-color: rgba(254, 182, 86, 0.3);
}

/* Noise Background */
.noise-bg {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    background-size: 100px 100px;
}

/* Updated Marquee Logic */
@keyframes marquee {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

.animate-marquee {
    animation: marquee 120s linear infinite;
    display: flex;
    width: max-content;
    will-change: transform;
    /* Hardware acceleration hints */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    perspective: 1000px;
}

@media (prefers-reduced-motion: reduce) {
    .animate-marquee {
        animation: none;
        transform: none;
    }
}

.marquee-mask {
    background: linear-gradient(90deg, #0B0F12 0%, transparent 10%, transparent 90%, #0B0F12 100%);
    pointer-events: none;
}

.animate-pulse-slow {
    animation: pulse-slow 8s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-slow {

    0%,
    100% {
        opacity: 0.1;
        transform: scale(1) translate(-50%, -50%);
    }

    50% {
        opacity: 0.2;
        transform: scale(1.1) translate(-50%, -50%);
    }
}

/* Scroll Reveal */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Premium Wheel Carousel Styles */
.carousel-scene {
    position: relative;
    /* Width/Height handled by container utility classes but ensure base here */
    width: 100%;
    /* overflow: hidden; Removed to let glow bleed */
}

.carousel-container {
    width: 100%;
    height: 100%;
    position: relative;
    transform: translateX(-15%);
    /* Shift left on desktop to avoid text overlap */
}

@media (max-width: 768px) {
    .carousel-container {
        transform: translateX(0);
    }
}

#reviews-carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent 0%, black 20%, black 80%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 20%, black 80%, transparent 100%);
}

.carousel-cell {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 280px;
    /* Base size */
    height: 380px;
    /* Centering offset logic handled in transforms usually, but let's center origin */
    transform-origin: center center;

    /* Transition settings for Premium Feel */
    transition:
        transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1),
        opacity 0.8s ease,
        filter 0.8s ease,
        z-index 0.8s step-end;

    will-change: transform, opacity, filter;

    border-radius: 1rem;
    overflow: visible;
    /* Allow glow to spill */
    /* Remove default borders/bg since JS handles content styles */
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .carousel-cell {
        width: 220px;
        height: 300px;
    }
}

/* Active State Glow Helper */
.cell-glow {
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle, rgba(254, 182, 86, 0.4) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.8s ease;
    z-index: -1;
    border-radius: 50%;
}

.carousel-cell.active .cell-glow {
    opacity: 1;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0B0F12;
}

::-webkit-scrollbar-thumb {
    background: #1C2329;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #FEB656;
}

/* Text Selection */
::selection {
    background-color: rgba(254, 182, 86, 0.3);
    color: white;
}

/* New Animations for CTA Rework */
@keyframes shimmer {
    0% {
        transform: translateX(-150%) skewX(-12deg);
    }

    100% {
        transform: translateX(150%) skewX(-12deg);
    }
}

.animate-shimmer {
    animation: shimmer 2.5s infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float 6s ease-in-out 3s infinite;
}

.animate-spin-slow {
    animation: spin-slow 12s linear infinite;
}

@keyframes spin-slow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Text Shimmer */
@keyframes text-shimmer {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 200% 50%;
    }
}

.animate-text-shimmer {
    background-size: 200% auto;
    animation: text-shimmer 3s linear infinite;
}

/* Button Ripple */
@keyframes ripple {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.animate-ripple {
    animation: ripple 2s infinite;
}

/* Continuous Icon Float variations (randomized offsets feeling) */
.animate-float-1 {
    animation: float 6s ease-in-out infinite;
}

.animate-float-2 {
    animation: float 7s ease-in-out 1s infinite;
}

.animate-float-3 {
    animation: float 5s ease-in-out 2s infinite;
}

/* Reviews Section Styles */
:root {
    --brand-gold: #D4AF37;
    --brand-gold-gradient: linear-gradient(135deg, #D4AF37 0%, #F5D17E 50%, #B8860B 100%);
    --deep-black: #050505;
    --charcoal-card: #0c0c0c;
    --glow-gold: rgba(212, 175, 55, 0.4);
}

.star-gold {
    color: var(--brand-gold);
    font-variation-settings: 'FILL' 1;
}

.glowing-star {
    filter: drop-shadow(0 0 12px var(--glow-gold));
}

.review-card {
    background: var(--charcoal-card);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 4px;
    padding: 48px 32px;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    width: 100%;
    /* Ensure it fills the container set by JS */
}

@media (max-width: 768px) {
    .review-card {
        padding: 32px 24px;
    }
}

.review-card:hover {
    border-color: var(--brand-gold);
    transform: translateY(-8px);
    background: #111111;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 15px rgba(212, 175, 55, 0.05);
}

.gold-text-gradient {
    background: var(--brand-gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gold-border-gradient {
    border: 1px solid transparent;
    background-image: linear-gradient(var(--deep-black), var(--deep-black)), var(--brand-gold-gradient);
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

.data-badge {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60px;
    background: var(--brand-gold-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
}

.badge-number {
    position: absolute;
    left: 12px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--brand-gold);
    opacity: 0.5;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
}

/* Reviews Carousel Animation */
@keyframes scroll-reviews {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.animate-scroll-reviews {
    animation: scroll-reviews 160s linear infinite;
    width: max-content;
}

@media (max-width: 768px) {
    .animate-scroll-reviews {
        animation: none !important;
    }
}

.pause-animation:hover {
    animation-play-state: paused;
}

.review-card {
    width: 260px;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .review-card {
        width: 400px;
    }
}

/* Hide scrollbar for Chrome, Safari and Opera */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.no-scrollbar {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}