html {
    scroll-behavior: smooth;
}

.custom-scrollbar::-webkit-scrollbar {
    width: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background-color: #4b5563;
    border-radius: 20px;
}

.dark .custom-scrollbar::-webkit-scrollbar-thumb {
    background-color: #374151;
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(3rem);
    transition: all 700ms ease-out;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Bottom Nav Styles */
.bottom-nav {
    padding-bottom: env(safe-area-inset-bottom);
}

.bottom-nav-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    gap: 3px;
    padding: 8px 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bottom-nav-item .nav-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: all 0.2s ease;
}

.bottom-nav-item.active .nav-label {
    color: #29488d;
}

.dark .bottom-nav-item.active .nav-label {
    color: #60a5fa;
}

.bottom-nav-item.active svg {
    color: #29488d;
}

.dark .bottom-nav-item.active svg {
    color: #60a5fa;
}

.bottom-nav-item .nav-dot {
    position: absolute;
    top: 6px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #29488d;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.dark .bottom-nav-item .nav-dot {
    background: #60a5fa;
}

.bottom-nav-item.active .nav-dot {
    opacity: 1;
}

/* Booking FAB Button */
.booking-fab {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1.2;
    cursor: pointer;
}

.booking-fab-inner {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: linear-gradient(135deg, #29488d 0%, #1e3465 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(41, 72, 141, 0.5), 0 0 0 4px rgba(41, 72, 141, 0.15);
    transform: translateY(-10px);
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.booking-fab-inner:active {
    transform: translateY(-10px) scale(0.93);
}

.booking-fab-inner::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, transparent 100%);
}

.booking-fab .fab-label {
    font-size: 10px;
    font-weight: 700;
    color: #29488d;
    letter-spacing: 0.02em;
    margin-top: 2px;
}

.dark .booking-fab .fab-label {
    color: #60a5fa;
}

/* Pulse ring animation */
@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.fab-pulse {
    position: absolute;
    inset: -4px;
    border-radius: 22px;
    background: rgba(41, 72, 141, 0.3);
    animation: pulse-ring 2s ease-out infinite;
}

/* Bottom nav separator */
.nav-separator {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    border-radius: 0 0 4px 4px;
    background: #29488d;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.dark .nav-separator {
    background: #60a5fa;
}

.bottom-nav-item.active .nav-separator {
    opacity: 1;
}

/* Body padding for bottom nav on mobile */
@media (max-width: 767px) {
    body {
        padding-bottom: 80px;
    }
}

/* Auto Scroll Animation for Brands */
@keyframes auto-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.scroll-container {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    width: 100%;
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.scroll-track {
    display: flex;
    width: max-content;
    animation: auto-scroll 25s linear infinite;
}

.scroll-track:hover {
    animation-play-state: paused;
}

/* Success Animation */
@keyframes successPop {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
.success-animate {
    animation: successPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
