/* === Custom Styles for Mackie's Jewelry and Trophies === */

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

/* Reduced motion preference */
@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;
    }
}

/* Float animation for hero badge */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

/* === Scroll Reveal Animations (progressive enhancement) === */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Default state for animated elements — visible for no-JS */
.service-card {
    opacity: 1;
    transform: translateY(0);
}

/* === Navbar scroll state === */
nav.scrolled {
    background: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 168, 75, 0.1);
}

nav.scrolled .menu-line {
    background: #d4a84b;
}

/* === Mobile menu transitions === */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

#mobileMenu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobileMenu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(2) { transition-delay: 0.2s; }
#mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 0.3s; }
#mobileMenu.open .mobile-link:nth-child(4) { transition-delay: 0.4s; }

/* === Custom select styling === */
select option {
    background: #1a1a1a;
    color: #888;
}

/* === Gold gradient text utility === */
.text-gold-gradient {
    background: linear-gradient(135deg, #e8c97a 0%, #d4a84b 50%, #c9962e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* === Image hover overlay === */
.group:hover .group-hover\\:scale-110 {
    transform: scale(1.1);
}

/* === Selection color === */
::selection {
    background: rgba(212, 168, 75, 0.3);
    color: #fff;
}

/* === Focus visible for accessibility === */
*:focus-visible {
    outline: 2px solid #d4a84b;
    outline-offset: 2px;
}

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

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

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

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

/* === Gallery image caption overlay === */
.relative.overflow-hidden.group.cursor-pointer::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(13, 13, 13, 0.8) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.relative.overflow-hidden.group:hover::after {
    opacity: 1;
}

/* === Responsive adjustments === */
@media (max-width: 768px) {
    .font-serif {
        line-height: 1.1;
    }
}
