/* Custom Styles for Am Cafè */

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

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.animate-fade-in {
    animation: fadeIn 1s ease-out forwards;
}

/* Scroll-triggered animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* Navbar scroll effect */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

.nav-scrolled .nav-link {
    color: #27272A !important;
}

.nav-scrolled .font-serif {
    color: #27272A !important;
}

/* Mobile menu transitions */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

#mobile-menu.open {
    max-height: 400px;
    padding: 1.5rem;
}

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

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

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

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

/* Selection color */
::selection {
    background: #E76F51;
    color: white;
}

/* Image hover effects */
img {
    transition: transform 0.5s ease;
}

/* Button focus states */
button:focus-visible,
a:focus-visible {
    outline: 3px solid #E76F51;
    outline-offset: 2px;
    border-radius: 0.5rem;
}

/* Input focus effects */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(231, 111, 81, 0.15);
}

/* Responsive typography adjustments */
@media (max-width: 640px) {
    .font-serif {
        line-height: 1.1;
    }
}

/* Print styles */
@media print {
    nav, .animate-bounce {
        display: none;
    }
    
    body {
        color: #000;
        background: white;
    }
}
