/* Custom styles that complement Tailwind — minimal, targeted overrides */

/* Ensure all interactive elements have smooth transitions */
a, button, input, textarea, select {
    transition: all 0.25s ease;
}

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

/* Smooth image rendering */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Selection color */
::selection {
    background-color: rgba(212, 175, 85, 0.25);
    color: #faf8f4;
}

/* Prevent horizontal scroll on mobile */
body {
    max-width: 100vw;
    overflow-x: hidden;
}

/* Ensure navbar is readable over hero */
#navbar.scrolled {
    background: rgba(15, 24, 15, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(250, 248, 244, 0.05);
}

#navbar:not(.scrolled) {
    background: transparent;
}

/* Mobile menu animation */
#mobile-menu.open .mobile-link {
    animation: slideIn 0.3s ease forwards;
}

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

/* Stagger mobile menu items */
#mobile-menu.open .mobile-link:nth-child(1) { animation-delay: 0.05s; }
#mobile-menu.open .mobile-link:nth-child(2) { animation-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(3) { animation-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(4) { animation-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(5) { animation-delay: 0.25s; }

/* Hamburger animation */
#menu-btn.active #bar1 {
    transform: rotate(45deg) translate(5px, 5px);
}
#menu-btn.active #bar2 {
    opacity: 0;
}
#menu-btn.active #bar3 {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 6px;
}

/* Reduce motion for users who prefer it */
@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;
    }
}
