/* Custom styles for Mycoffeeshop */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1E1E28;
}
::-webkit-scrollbar-thumb {
    background: #4A4A5A;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #E8634A;
}

/* Navbar scroll state */
#navbar.scrolled {
    background: rgba(18, 18, 24, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(74, 74, 90, 0.5);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Menu card hover effects */
.menu-card {
    will-change: transform;
}

/* Gallery hover effects */
.gallery-item {
    position: relative;
    cursor: pointer;
}

/* Process card hover */
.process-card {
    will-change: transform;
}

/* Mobile menu animations */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #E8634A;
    transition: width 0.3s ease;
}

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

/* Mobile menu active state */
#mobile-menu.open {
    display: block;
}

/* Hamburger animation */
.menu-toggle.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.menu-toggle.active .menu-line:nth-child(3) {
    width: 1.5rem;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* CTA section parallax-like effect */
#visit iframe {
    transition: transform 0.3s ease;
}

/* Button focus states */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #E8634A;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Selection color */
::selection {
    background: rgba(232, 99, 74, 0.3);
    color: #fff;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .menu-card,
    .gallery-item img,
    .process-card {
        transition: none;
    }
    
    .gallery-item:hover img {
        transform: none;
    }
    
    .menu-card:hover,
    .process-card:hover {
        transform: none;
    }
    
    @keyframes slideDown {
        from {
            opacity: 1;
        }
        to {
            opacity: 1;
        }
    }
}

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

/* Large screen optimizations */
@media (min-width: 1920px) {
    .max-w-7xl {
        max-width: 80rem;
    }
}
