/* Custom styles for Marv Loves Too */

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

/* Custom selection color */
::selection {
    background-color: #3d6328;
    color: #fefdf8;
}

/* Navbar styles */
.nav-link {
    position: relative;
}

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

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

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(254, 253, 248, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

/* Hero animations */
.hero-content {
    opacity: 0;
    transform: translateY(40px);
    animation: heroIn 1s ease forwards;
    animation-delay: 0.2s;
}

.hero-image-main {
    opacity: 0;
    transform: translateY(60px) scale(0.95);
    animation: heroImageIn 1.2s ease forwards;
    animation-delay: 0.4s;
}

@keyframes heroIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroImageIn {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Menu tabs */
.menu-tab {
    background: transparent;
    color: #3d6328;
    border: none;
    cursor: pointer;
}

.menu-tab.active {
    background: #3d6328;
    color: #fefdf8;
    box-shadow: 0 4px 15px rgba(61, 99, 40, 0.3);
}

.menu-tab:not(.active):hover {
    background: rgba(61, 99, 40, 0.1);
}

/* Menu panels */
.menu-panel {
    animation: fadeUp 0.5s ease forwards;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

/* Image hover effects */
img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

::-webkit-scrollbar-track {
    background: #fdfbf0;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #74a14e;
}

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

/* Reduced motion */
@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;
        transform: none;
    }
}

/* Tablet adjustments */
@media (max-width: 768px) {
    .hero-content {
        text-align: center;
    }
    
    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }
    
    #hero .grid {
        text-align: center;
    }
    
    /* Remove floating card on mobile */
    .absolute.-bottom-6.-left-6 {
        display: none;
    }
}

/* Large screen adjustments */
@media (min-width: 1280px) {
    .font-serif {
        font-feature-settings: 'ss01', 'ss02', 'cv01';
    }
}
