/* Custom Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
 background-color: rgba(2, 2, 2, 0.96);
    position: relative;
    min-height: 100vh;
}

/* Hero section with image only background */
.hero-bg {
    background-image: url('/public/bg.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    min-height: 400px;
}

/* Fallback if hero.webp doesn't exist */
@supports not (background-image: url('/public/hero.webp')) {
    .hero-bg {
        background-image: url('/public/hero.png');
    }
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(15, 23, 42, 0.6) 50%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 0;
}

.hero-bg > * {
    position: relative;
    z-index: 1;
}

/* Hero blob animation */
@keyframes blob {
    0% {
        transform: translate(0px, 0px) scale(1);
    }
    33% {
        transform: translate(30px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
    100% {
        transform: translate(0px, 0px) scale(1);
    }
}

.animate-blob {
    animation: blob 7s infinite;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

.animation-delay-4000 {
    animation-delay: 4s;
}

/* Smooth transitions */
* {
    transition: all 0.3s ease;
}

/* Mobile menu animation */
#mobile-menu-dropdown {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade in animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out;
}

.animate-fade-in-delay {
    animation: fadeIn 1s ease-out 0.2s both;
}

/* Casino card hover effects */
.casino-card {
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.casino-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.6s ease;
    z-index: 0;
}

.casino-card:hover::before {
    left: 100%;
}

.casino-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(59, 130, 246, 0.3);
}

/* Stagger animation for cards */
.casino-card:nth-child(1) { animation: fadeIn 0.6s ease-out 0.1s both; }
.casino-card:nth-child(2) { animation: fadeIn 0.6s ease-out 0.2s both; }
.casino-card:nth-child(3) { animation: fadeIn 0.6s ease-out 0.3s both; }
.casino-card:nth-child(4) { animation: fadeIn 0.6s ease-out 0.4s both; }

/* Modal animations */
#casino-modal,
#comparison-modal {
    animation: fadeIn 0.3s ease-out;
}

#casino-modal-content > div,
#comparison-modal-content > div {
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* FAQ accordion animation */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.faq-item:has(.faq-answer:not(.hidden)) .faq-answer {
    max-height: 500px;
}

.faq-icon {
    transition: transform 0.3s ease;
}

/* Enhanced button styles */
button, a[role="button"] {
    position: relative;
    overflow: hidden;
}

button::after, a[role="button"]::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

button:active::after, a[role="button"]:active::after {
    width: 300px;
    height: 300px;
}

/* Pulse animation for important elements */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.pulse-animation {
    animation: pulse 2s ease-in-out infinite;
}

/* Gradient text effect */
.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glow effect on hover */
.glow-on-hover {
    transition: box-shadow 0.3s ease;
}

.glow-on-hover:hover {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

/* Smooth scroll reveal */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Loading skeleton animation */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* Button ripple effect */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.ripple:active::after {
    width: 300px;
    height: 300px;
}

/* Sticky header enhancement */
header {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

/* Header scroll effect */
header.scrolled {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Footer enhancements */
footer a {
    transition: all 0.2s ease;
}

footer a:hover {
    transform: translateX(4px);
}

/* Smooth scroll for anchor links */
html {
    scroll-padding-top: 80px;
}

/* Enhanced backdrop blur */
.backdrop-blur-enhanced {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Smooth number counter animation */
.counter {
    font-variant-numeric: tabular-nums;
}

/* Testimonial card hover */
#testimonials > div {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#testimonials > div:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Search input focus effect */
#search-input:focus,
#sort-select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Feature filter checkbox styling */
.feature-filter {
    accent-color: #3b82f6;
    cursor: pointer;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .casino-card {
        margin-bottom: 1rem;
    }
    
    #compare-bar {
        flex-direction: column;
        gap: 1rem;
    }
    
    #compare-list {
        width: 100%;
        justify-content: center;
    }
}

