/* Custom styles and overrides */

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

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

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

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

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

/* Selection color */
::selection {
    background-color: #ff6b5e;
    color: white;
}

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

/* Navbar transition */
#navbar {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

#navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

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

#mobile-menu.active {
    max-height: 500px;
}

/* Form input transitions */
input,
select,
textarea {
    transition: all 0.2s ease-in-out;
}

input:focus,
select:focus,
textarea:focus {
    transform: translateY(-1px);
}

/* Button hover effects */
button,
a {
    transition: all 0.3s ease-in-out;
}

/* Image hover effects */
img {
    transition: transform 0.7s ease-in-out;
}

/* Reduce motion for accessibility */
@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;
    }
}

/* Print styles */
@media print {
    #navbar,
    #mobile-menu {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
}
