/* Custom styles and overrides */

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

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

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

::-webkit-scrollbar-thumb {
    background: #9333ea;
    border-radius: 5px;
}

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

/* Selection color */
::selection {
    background: #f59e0b;
    color: #581c87;
}

/* Focus styles for accessibility */
*:focus-visible {
    outline: 3px solid #f59e0b;
    outline-offset: 2px;
}

/* Reduced motion preference */
@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,
    #contact-form,
    button {
        display: none;
    }
    
    body {
        font-size: 12pt;
        color: #000;
    }
    
    .hero-gradient {
        background: #581c87 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* High contrast mode support */
@media (forced-colors: active) {
    .card-hover {
        border: 1px solid ButtonText;
    }
}

/* Ensure images don't overflow */
img {
    max-width: 100%;
    height: auto;
}

/* Improve touch targets on mobile */
@media (max-width: 768px) {
    a, button {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Fix for safe area on iOS */
@supports (padding: max(0px)) {
    nav {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }
}
