/* Custom styles for Young Guest House */

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

/* Navbar transition */
#navbar {
    transition: background-color 0.5s ease, box-shadow 0.5s ease;
}

#navbar.scrolled {
    background-color: rgba(4, 47, 46, 0.97);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
}

/* Reveal animation - progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(32px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Selection color */
::selection {
    background-color: rgba(20, 184, 166, 0.3);
    color: inherit;
}

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #042f2e;
}
::-webkit-scrollbar-thumb {
    background: #115e59;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #0d9488;
}

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

/* Print styles */
@media print {
    #navbar,
    #mobile-menu,
    .reveal {
        display: block !important;
        opacity: 1 !important;
    }
    a[href]::after {
        content: none;
    }
}
