/* Custom styles for Bear Farms Evergreens */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0A0610;
}
::-webkit-scrollbar-thumb {
    background: #3F1A4A;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #5C2D6E;
}

/* Navbar scroll state */
nav.scrolled {
    background: rgba(5, 2, 8, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(200, 169, 97, 0.1);
}

nav.scrolled .nav-link {
    color: rgba(255, 255, 255, 0.85);
}

/* Tree card hover effects */
.tree-card {
    transform: translateY(0);
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.tree-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(92, 45, 110, 0.3);
}

/* Gold shimmer animation */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* Fade in animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile menu */
#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

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

#menuBtn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
#menuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
}
#menuBtn.active .menu-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(5px, -5px);
}

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

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

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

/* Floating card animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

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

/* Hero image subtle zoom */
@keyframes slowZoom {
    from { transform: scale(1); }
    to { transform: scale(1.05); }
}

.hero-image-zoom {
    animation: slowZoom 20s ease-in-out infinite alternate;
}

/* Section divider line animation */
@keyframes expandLine {
    from { width: 0; }
    to { width: 100%; }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .font-serif {
        font-size: clamp(2rem, 8vw, 3rem);
    }
}

/* Selection color */
::selection {
    background: rgba(200, 169, 97, 0.3);
    color: #fff;
}
