/* 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: #fdf2f5;
}
::-webkit-scrollbar-thumb {
    background: #c9184a;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #800020;
}

/* Selection color */
::selection {
    background: rgba(128, 0, 32, 0.15);
    color: #6b001a;
}

/* Focus visible styles */
:focus-visible {
    outline: 2px solid #800020;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Image loading placeholder */
img {
    background-color: #fdf2f5;
}

/* Subtle pattern for hero */
.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 50%, rgba(128, 0, 32, 0.03) 0%, transparent 50%),
                      radial-gradient(circle at 80% 20%, rgba(255, 192, 208, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Card image hover zoom */
.card-hover img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Nav glass effect when scrolled */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(128, 0, 32, 0.08);
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
    .card-hover,
    .btn-primary,
    .btn-secondary,
    .nav-link::after,
    img,
    .blob,
    .animate-float,
    .animate-float-delayed,
    .animate-pulse-soft {
        transition: none;
        animation: none;
    }
    .card-hover:hover {
        transform: none;
    }
    .btn-primary:hover,
    .btn-secondary:hover {
        transform: none;
    }
}
