/* Custom styles for Robert Grodman, DO website */

/* Base overrides */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    overflow-x: hidden;
}

/* Smooth transitions for interactive elements */
a, button, input, select, textarea {
    -webkit-tap-highlight-color: transparent;
}

/* Selection color */
::selection {
    background-color: rgba(194, 40, 76, 0.2);
    color: #3d0a15;
}

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

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

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

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

/* Input autofill styling */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0px 1000px #fefcfb inset;
    transition: background-color 5000s ease-in-out 0s;
}

/* Focus visible for keyboard navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #c2284c;
    outline-offset: 2px;
    border-radius: 4px;
}

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

/* Print styles */
@media print {
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
    
    header, footer, .blob, .pattern-dots {
        display: none;
    }
}
