/* Custom styles for Worldwide Electronics */

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

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(249, 245, 247, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(107, 76, 111, 0.08);
}

.nav-scrolled .nav-link {
    color: #4A344F !important;
}

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

.floating-card:nth-child(2) {
    animation-delay: -2s;
}

.floating-card:nth-child(3) {
    animation-delay: -4s;
}

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

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

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

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

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

#mobileMenu.open {
    max-height: 400px;
}

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

::-webkit-scrollbar-track {
    background: #F9F5F7;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #BA8EAA;
}

/* Selection color */
::selection {
    background: #E8D5E0;
    color: #332537;
}

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

/* Button hover lift effect */
a, button {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Image placeholder fallback */
img {
    background: linear-gradient(135deg, #E8D5E0 0%, #F3EBF0 100%);
}
