/* Custom styles for Dunkin' Donuts Berlin NJ */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #0d1a26;
}
::-webkit-scrollbar-thumb {
    background: #2d4f6e;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #3db87f;
}

/* Selection color */
::selection {
    background: #3db87f;
    color: #0d1a26;
}

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

#mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
}

/* Hamburger animation */
#menu-toggle.active #line1 {
    transform: rotate(45deg) translate(4px, 4px);
}
#menu-toggle.active #line2 {
    opacity: 0;
}
#menu-toggle.active #line3 {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 1.5rem;
}

/* Menu item hover effects */
.menu-item {
    transition: background-color 0.5s ease;
}

/* Subtle hover lift for images */
.relative.overflow-hidden img {
    transition: transform 0.7s ease;
}

.relative.overflow-hidden:hover img {
    transform: scale(1.02);
}

/* Navbar transition states */
.nav-scrolled {
    background: rgba(8, 15, 23, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(61, 184, 127, 0.1);
}

.nav-default {
    background: transparent !important;
}

/* Prevent FOUC */
@media (prefers-reduced-motion: no-preference) {
    .fade-in-section {
        opacity: 1;
        transform: none;
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print styles */
@media print {
    nav, #menu-toggle, .scroll-indicator {
        display: none !important;
    }
    body {
        background: white !important;
        color: black !important;
    }
}
