@tailwind base;
@tailwind components;
@tailwind utilities;

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a0e1a;
}
::-webkit-scrollbar-thumb {
    background: #1f2937;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #374151;
}

/* Reviews carousel */
.reviews-carousel {
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.reviews-track {
    animation: scroll-reviews 30s linear infinite;
}

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

@keyframes scroll-reviews {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Section fade-in on scroll */
main > section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

main > section:first-child {
    opacity: 1;
    transform: translateY(0);
}

main > section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Navbar scroll effect */
header.scrolled {
    background-color: rgba(6, 9, 18, 0.95);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

/* Advantage card hover glow */
.group:hover {
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.08);
}

/* Mobile menu transition */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

#mobile-menu.open {
    max-height: 400px;
    display: block;
}
