/* Custom styles and overrides */

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Reveal animations - progressive enhancement */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }

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

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
}

/* Service card hover effect */
.service-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(123, 45, 142, 0.15);
}

/* Floating card animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
}

@keyframes float-delayed {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.floating-card-1 {
    animation: float 6s ease-in-out infinite;
}

.floating-card-2 {
    animation: float-slow 7s ease-in-out infinite;
    animation-delay: 1s;
}

.floating-card-3 {
    animation: float-delayed 5.5s ease-in-out infinite;
    animation-delay: 2s;
}

.floating-badge {
    animation: float 6.5s ease-in-out infinite;
    animation-delay: 0.5s;
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(10, 6, 16, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3) !important;
}

/* Mobile menu transition */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0a0610;
}

::-webkit-scrollbar-thumb {
    background: #4a1752;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #7B2D8E;
}

/* Selection color */
::selection {
    background: rgba(212, 175, 55, 0.3);
    color: #fbbf24;
}

/* Focus visible */
:focus-visible {
    outline: 2px solid #D4AF37;
    outline-offset: 2px;
}

/* Select dropdown styling */
select option {
    background: #1a1025;
    color: #fff;
}
