/* Custom styles that extend beyond Tailwind */

/* Smooth scroll offset for fixed nav */
section[id] {
    scroll-margin-top: 80px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #faf5f7;
}
::-webkit-scrollbar-thumb {
    background: #d4a5b8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a35478;
}

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

/* Print styles */
@media print {
    nav, .floating-shape, button {
        display: none !important;
    }
    body {
        background: white !important;
        color: black !important;
    }
}

/* Reduced motion */
@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;
    }
}

/* Selection color */
::selection {
    background: #e8cdd7;
    color: #2a111c;
}

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

/* Better form styling */
input:focus, select:focus, textarea:focus {
    outline: none;
}

/* Subtle pattern for section backgrounds */
.bg-pattern {
    background-image: radial-gradient(circle at 1px 1px, rgba(163, 84, 120, 0.05) 1px, transparent 0);
    background-size: 24px 24px;
}
