/* Custom styles for New Yang's Garden */

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

/* Base styles */
body {
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
}

/* Scroll reveal animations - progressive enhancement only */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
    opacity: 0;
    transform: translateY(30px);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    html {
        scroll-behavior: auto;
    }
    * {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* Navbar scroll state */
#navbar.scrolled {
    background: rgba(15, 26, 46, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

#navbar.scrolled .menu-line-1,
#navbar.scrolled .menu-line-2,
#navbar.scrolled .menu-line-3 {
    stroke: white;
}

/* Mobile menu transitions */
#mobile-menu {
    animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile menu links */
.mobile-menu-link {
    position: relative;
    padding-left: 0;
}

.mobile-menu-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: #EC9180;
    transition: width 0.3s ease;
}

.mobile-menu-link:hover::before {
    width: 16px;
}

/* Subtle image hover */
.group img {
    will-change: transform;
}

/* Selection color */
::selection {
    background: #B85C38;
    color: #FDF8F0;
}

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

::-webkit-scrollbar-track {
    background: #0F1A2E;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #9A4C2F;
}

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

/* Button micro-interaction */
button, a {
    -webkit-tap-highlight-color: transparent;
}

/* Ensure images don't cause layout shift */
img {
    content-visibility: auto;
}
