/* Custom styles for Four Lions Vineyard */

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

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

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

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

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

/* Selection color */
::selection {
    background: rgba(201, 168, 76, 0.3);
    color: #E8D5A3;
}

/* Hero scroll dot animation */
@keyframes scrollDot {
    0% {
        top: 0;
        opacity: 1;
    }
    50% {
        top: calc(100% - 12px);
        opacity: 0.5;
    }
    100% {
        top: 0;
        opacity: 1;
    }
}

.scroll-dot {
    animation: scrollDot 2s ease-in-out infinite;
}

/* Navbar styles */
#navbar.scrolled {
    background: rgba(5, 12, 24, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(201, 168, 76, 0.1);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #C9A84C;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: #C9A84C !important;
}

/* Mobile menu */
.mobile-nav-link {
    position: relative;
}

/* Menu animation */
.menu-line {
    transition: all 0.3s ease;
}

#menuToggle.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#menuToggle.active .menu-line:nth-child(2) {
    opacity: 0;
}

#menuToggle.active .menu-line:nth-child(3) {
    width: 6;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Reveal animations - progressive enhancement */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .reveal-left {
        opacity: 0;
        transform: translateX(-40px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .reveal-right {
        opacity: 0;
        transform: translateX(40px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .reveal-up.revealed,
    .reveal-left.revealed,
    .reveal-right.revealed {
        opacity: 1;
        transform: none;
    }
}

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

/* Card hover glow effect */
.group:hover .group-hover\:border-gold-500\/30 {
    box-shadow: 0 0 40px rgba(201, 168, 76, 0.08);
}

/* Button focus styles */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #C9A84C;
    outline-offset: 2px;
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #0F1F35 0%, #162A45 100%);
}

/* Subtle gold shimmer on hover for buttons */
.bg-gold-500:hover {
    box-shadow: 0 0 30px rgba(201, 168, 76, 0.3);
}

/* Mint accent glow */
.text-mint-300 {
    text-shadow: 0 0 40px rgba(104, 211, 145, 0.2);
}

/* Section divider line animation */
@media (prefers-reduced-motion: no-preference) {
    .w-12.h-px.bg-gold-500 {
        transition: width 0.3s ease;
    }
}

/* Prevent layout shift for images */
img {
    content-visibility: auto;
}
