/* Custom styles and overrides */

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #9bb7dd;
}

/* Selection color */
::selection {
    background: #f7da87;
    color: #13182e;
}

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

/* Image optimization */
img {
    max-width: 100%;
    height: auto;
}

/* Prevent layout shift */
img, video, svg {
    display: block;
}

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

/* Print styles */
@media print {
    nav, .mobile-menu, #contact-form {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}

/* High contrast mode support */
@media (forced-colors: active) {
    .btn-primary {
        border: 2px solid ButtonText;
    }
}

/* Touch device optimizations */
@media (hover: none) {
    .card-hover:hover {
        transform: none;
    }
    
    .card-hover:active {
        transform: translateY(-2px);
    }
}

/* Landscape orientation on mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-gradient {
        min-height: auto;
        padding: 80px 0;
    }
}
