/* Custom styles for Brent Staton, MD website */

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

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #be185d, #831443);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #db2777, #9d174d);
}

/* Selection color */
::selection {
    background: #fbcfe8;
    color: #500724;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid #fbbf24;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Prevent layout shift on images */
img {
    max-width: 100%;
    height: auto;
}

/* Ensure text is readable on all backgrounds */
.hero-gradient h1,
.hero-gradient h2,
.hero-gradient h3,
.hero-gradient p {
    color: inherit;
}

/* Animation performance */
.reveal {
    will-change: opacity, transform;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .float {
        animation: none;
    }
    
    .pulse-dot {
        animation: none;
        opacity: 1;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Print styles */
@media print {
    .hero-gradient {
        background: #831443 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    .amber-gradient {
        background: #f59e0b !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* High contrast mode support */
@media (forced-colors: active) {
    .card-shadow {
        border: 2px solid currentColor;
    }
    
    .amber-gradient {
        border: 2px solid currentColor;
    }
}

/* Mobile optimizations */
@media (max-width: 640px) {
    .hero-gradient {
        min-height: 100vh;
        min-height: 100dvh;
    }
    
    .font-display.text-4xl {
        font-size: 2.25rem;
    }
    
    .font-display.text-5xl {
        font-size: 2.5rem;
    }
}

/* Tablet optimizations */
@media (min-width: 641px) and (max-width: 1023px) {
    .card-shadow {
        box-shadow: 0 4px 24px rgba(128, 27, 94, 0.1), 0 2px 12px rgba(0, 0, 0, 0.06);
    }
}

/* Large screen optimizations */
@media (min-width: 1280px) {
    .card-shadow {
        box-shadow: 0 4px 32px rgba(128, 27, 94, 0.08), 0 2px 16px rgba(0, 0, 0, 0.04);
    }
}
