/* Custom styles that complement Tailwind */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FDF8F4;
}
::-webkit-scrollbar-thumb {
    background: #d1d1d1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #b0b0b0;
}

/* Selection color */
::selection {
    background: #FFC2C2;
    color: #202020;
}

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

/* Mobile menu animation */
#mobile-menu {
    visibility: hidden;
}
#mobile-menu.open {
    visibility: visible;
}

/* Image loading placeholder */
img {
    background: linear-gradient(90deg, #f0ebe6 0%, #f5efe9 50%, #f0ebe6 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}
img[src] {
    animation: none;
    background: none;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Subtle gradient border for cards */
.card-hover {
    position: relative;
}

/* Hero text glow */
.hero-glow {
    text-shadow: 0 2px 40px rgba(0,0,0,0.3);
}

/* 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;
    }
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
    .img-zoom img {
        transition: none;
    }
}
