/* Custom styles for Norse Cycle */

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

/* Scroll reveal animations - progressive enhancement */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(24px);
    }

    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header scroll state */
#header.scrolled #header nav {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 24px rgba(151, 69, 114, 0.08);
}

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

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

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

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

/* Selection color */
::selection {
    background: #ebd6df;
    color: #55263f;
}

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

/* Mobile menu animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

#mobile-menu.open {
    max-height: 400px;
    opacity: 1;
}

/* Subtle pattern overlay for sections */
section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(151, 69, 114, 0.03) 1px, transparent 0);
    background-size: 24px 24px;
    pointer-events: none;
}

/* Ensure hero text is readable */
#hero h1,
#hero p {
    position: relative;
    z-index: 1;
}

/* Gallery hover states */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* Print styles */
@media print {
    #header,
    .scroll-reveal,
    .animate-float,
    .animate-float-delayed {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
    }
}
