/* Custom styles and overrides */

html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Navbar scroll effect */
#navbar.scrolled {
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1c1917;
}
::-webkit-scrollbar-thumb {
    background: #d97706;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #b45309;
}

/* Selection color */
::selection {
    background: #d97706;
    color: #fff;
}

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

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

/* Button ripple effect */
button, a {
    -webkit-tap-highlight-color: transparent;
}

/* Focus styles */
a:focus-visible, button:focus-visible {
    outline: 2px solid #d97706;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Aspect ratio utilities */
.aspect-video {
    aspect-ratio: 16 / 9;
}

/* Image loading placeholder */
img {
    background-color: #e7e5e4;
}
