@layer utilities {
    .perspective-1000 {
        perspective: 1000px;
    }

    .perspective-2000 {
        perspective: 2000px;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #000;
}

::-webkit-scrollbar-thumb {
    background: #2E2E2E;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #D4AF37;
}

/* Base Styles */
body {
    background-color: #000000;
    color: #F5F5F5;
    overflow-x: hidden;
}

/* 3D Transformations & Animations */
.card-3d-wrap {
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
}

.card-3d-content {
    backface-visibility: hidden;
    transform: translateZ(0);
}

.floating {
    animation: floating 6s ease-in-out infinite;
}

.floating-delayed {
    animation: floating 6s ease-in-out 3s infinite;
}

@keyframes floating {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(1deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

/* Glow Effects */
.glow-gold {
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.15);
}

.glow-text {
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

/* Scroll Reveal */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger Delays */
.delay-100 {
    transition-delay: 100ms;
}

.delay-200 {
    transition-delay: 200ms;
}

.delay-300 {
    transition-delay: 300ms;
}

/* Dashboard Bars Animation */
@keyframes fillBar {
    from {
        width: 0;
    }

    to {
        width: var(--target-width);
    }
}

.animate-bar {
    animation: fillBar 1.5s ease-out forwards;
}

/* Mobile Menu Transition */
.mobile-menu {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Tool Styles */
.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #D4AF37;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.range-slider::-moz-range-thumb {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #D4AF37;
    cursor: pointer;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 20px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.5s ease-out forwards;
}


/* --- Coming Soon / System Locked Styles --- */
.rebel-border-system {
    position: relative;
    padding: 2rem;
    overflow: hidden;
    border-radius: 1rem;
    background: rgba(0, 0, 0, 0.4);
}

/* Animated Border Gradient */
.rebel-border-system::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1rem;
    padding: 2px;
    background: linear-gradient(90deg, #D4AF37, transparent, #BF0A30, transparent, #D4AF37);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    background-size: 200% 100%;
    animation: borderFlow 4s linear infinite;
    pointer-events: none;
}

/* Corner Accents */
.rebel-border-system::after {
    content: '';
    position: absolute;
    inset: -2px;
    border: 2px solid transparent;
    border-radius: 1rem;
    background:
        linear-gradient(to right, #D4AF37 20px, transparent 20px) top left,
        linear-gradient(to bottom, #D4AF37 20px, transparent 20px) top left,
        linear-gradient(to left, #D4AF37 20px, transparent 20px) bottom right,
        linear-gradient(to top, #D4AF37 20px, transparent 20px) bottom right;
    background-size: 20px 20px;
    background-repeat: no-repeat;
    pointer-events: none;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

@keyframes borderFlow {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 200% 50%;
    }
}

/* Locked Overlay */
.system-locked-overlay {
    position: absolute;
    inset: 0;
    backdrop-filter: blur(4px);
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    /* Fixed: missing colon and property name */
    align-items: center;
    justify-content: center;
    /* Fixed: missing colon and property name */
    z-index: 50;
    border-radius: 1rem;
    /* Striped Pattern */
    background-image: repeating-linear-gradient(45deg,
            rgba(0, 0, 0, 0),
            rgba(0, 0, 0, 0) 10px,
            rgba(212, 175, 55, 0.05) 10px,
            rgba(212, 175, 55, 0.05) 20px);
}

.lock-badge {
    background: #000;
    border: 1px solid #D4AF37;
    padding: 1rem 2rem;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.2em;
    color: #D4AF37;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
    transform: rotate(-5deg);
    animation: badgeFloat 3s ease-in-out infinite;
}

@keyframes badgeFloat {

    0%,
    100% {
        transform: rotate(-5deg) scale(1);
    }

    50% {
        transform: rotate(-5deg) scale(1.05);
    }
}

.glitch-text {
    position: relative;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch-text::before {
    left: 2px;
    text-shadow: -1px 0 #ff00c1;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch-text::after {
    left: -2px;
    text-shadow: -1px 0 #00fff9;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% {
        clip: rect(42px, 9999px, 44px, 0);
    }

    5% {
        clip: rect(12px, 9999px, 59px, 0);
    }

    10% {
        clip: rect(48px, 9999px, 29px, 0);
    }

    15% {
        clip: rect(42px, 9999px, 73px, 0);
    }

    100% {
        clip: rect(63px, 9999px, 27px, 0);
    }
}

@keyframes glitch-anim2 {
    0% {
        clip: rect(65px, 9999px, 100px, 0);
    }

    5% {
        clip: rect(52px, 9999px, 74px, 0);
    }

    10% {
        clip: rect(79px, 9999px, 85px, 0);
    }

    15% {
        clip: rect(73px, 9999px, 49px, 0);
    }

    100% {
        clip: rect(25px, 9999px, 82px, 0);
    }
}

/* --- 3D Booking Styles (Seamless Integration) --- */
/* --- Hero In-Situ Booking Animation --- */

/* Booking Active State */
#hero[data-state="booking"] #hero-left {
    transform: scale(0.8) translateX(-150px) perspective(1000px) rotateY(15deg);
    opacity: 0.3;
    filter: blur(2px);
}

#hero[data-state="booking"] #hero-right {
    transform: scale(0.8) translateX(150px) perspective(1000px) rotateY(-15deg);
    opacity: 0.3;
    filter: blur(2px);
}

#hero[data-state="booking"] #hero-center-booking {
    width: 90%;
    max-width: 1000px;
    height: 80vh;
    opacity: 1;
    pointer-events: auto;
    filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.5));
}

/* Close Button Hover */
#close-booking-hero:hover {
    transform: rotate(90deg);
}