/* Custom CSS Variables */
:root {
    --primary: hsl(200, 95%, 45%);
    --primary-glow: hsl(195, 85%, 65%);
    --secondary: hsl(25, 85%, 60%);
    --secondary-glow: hsl(30, 90%, 70%);
    --accent: hsl(45, 100%, 65%);
    --accent-glow: hsl(50, 100%, 75%);
    --background: hsl(220, 15%, 98%);
    --foreground: hsl(210, 15%, 15%);
    --muted: hsl(210, 20%, 95%);
    --success: hsl(120, 60%, 50%);
}

/* Custom animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes pulse-glow {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
    }
    50% { 
        box-shadow: 0 0 40px rgba(59, 130, 246, 0.6);
    }
}

@keyframes drive {
    0% { 
        transform: translateX(-100px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% { 
        transform: translateX(calc(100vw + 100px)) rotate(0deg);
        opacity: 0;
    }
}

@keyframes drive-reverse {
    0% { 
        transform: translateX(100px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% { 
        transform: translateX(calc(-100vw - 100px)) rotate(0deg);
        opacity: 0;
    }
}

@keyframes road-move {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100px); }
}

@keyframes car-bounce {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-5px) rotate(1deg); }
    75% { transform: translateY(-3px) rotate(-1deg); }
}

@keyframes wheel-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Animation classes */
.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.fade-in-left {
    animation: fadeInLeft 0.8s ease-out forwards;
}

.fade-in-right {
    animation: fadeInRight 0.8s ease-out forwards;
}

.float-animation {
    animation: float 6s ease-in-out infinite;
}

.pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

.drive-animation {
    animation: drive 8s linear infinite;
}

.drive-reverse-animation {
    animation: drive-reverse 10s linear infinite;
}

.road-move {
    animation: road-move 2s linear infinite;
}

.car-bounce {
    animation: car-bounce 3s ease-in-out infinite;
}

.wheel-spin {
    animation: wheel-spin 0.5s linear infinite;
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px -10px rgba(0, 0, 0, 0.4);
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* Custom gradients */
.hero-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
}

.ocean-gradient {
    background: linear-gradient(180deg, var(--primary-glow) 0%, var(--primary) 100%);
}

.sunset-gradient {
    background: linear-gradient(45deg, var(--secondary) 0%, var(--secondary-glow) 50%, var(--accent) 100%);
}

.card-gradient {
    background: linear-gradient(145deg, white 0%, var(--muted) 100%);
}

/* Custom shadows */
.card-shadow {
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.1);
}

.glow-shadow {
    box-shadow: 0 20px 40px -10px rgba(59, 130, 246, 0.3);
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Animation delays */
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; }
.delay-700 { animation-delay: 0.7s; }
.delay-800 { animation-delay: 0.8s; }

/* Mobile menu */
.mobile-menu {
    display: none;
}

.mobile-menu.active {
    display: block;
}

/* Filter buttons responsive design - Now using Tailwind classes */
.filter-btn {
    white-space: nowrap;
    min-width: fit-content;
    cursor: pointer;
}

/* Ensure smooth transitions for Tailwind classes */
.filter-btn {
    transition: all 0.3s ease;
}

/* Responsive filter container */
@media (max-width: 640px) {
    .filter-container {
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .filter-container::-webkit-scrollbar {
        display: none;
    }
}

/* Destination cards filter states */
.destination-card {
    transition: all 0.3s ease;
}

.destination-card.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

.destination-card.visible {
    opacity: 1;
    transform: scale(1);
}

/* Scroll to Top Button */
#scrollToTop {
    position: fixed !important;
    bottom: 24px !important;
    right: 24px !important;
    z-index: 9999 !important;
    background: #3b82f6 !important;
    color: white !important;
    border: none !important;
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    transition: all 0.3s ease !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(20px) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

#scrollToTop:hover {
    background: #60a5fa; /* Fallback lighter blue */
    background: var(--primary-glow, #60a5fa); /* Use CSS variable with fallback */
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

#scrollToTop.visible {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

#scrollToTop i {
    font-size: 18px;
    transition: transform 0.3s ease;
}

#scrollToTop:hover i {
    transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 640px) {
    #scrollToTop {
        bottom: 16px;
        right: 16px;
        width: 40px;
        height: 40px;
    }
    
    #scrollToTop i {
        font-size: 14px;
    }
}

/* Extra small mobile screens */
@media (max-width: 480px) {
    #scrollToTop {
        bottom: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
    }
    
    #scrollToTop i {
        font-size: 12px;
    }
}