/* Custom styles for The Corner Cafe */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #ecfdf5;
}
::-webkit-scrollbar-thumb {
    background: #6ee7b7;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #34d399;
}

/* Header scroll state */
header.scrolled {
    background: rgba(254, 253, 248, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(5, 150, 105, 0.08);
}

/* Animation on scroll */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered children */
.stagger-children .fade-up:nth-child(1) { transition-delay: 0.1s; }
.stagger-children .fade-up:nth-child(2) { transition-delay: 0.2s; }
.stagger-children .fade-up:nth-child(3) { transition-delay: 0.3s; }

/* Mobile menu transitions */
#mobile-menu {
    animation: slideDown 0.3s ease;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile nav links */
.mobile-link {
    position: relative;
}
.mobile-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #059669;
    transition: width 0.3s ease;
}
.mobile-link:hover::after {
    width: 100%;
}

/* Input focus ring */
input:focus,
textarea:focus,
select:focus {
    box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.1);
}

/* Subtle pattern overlay for hero */
#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 20% 80%, rgba(110, 231, 183, 0.08) 0%, transparent 50%),
                      radial-gradient(circle at 80% 20%, rgba(5, 150, 105, 0.05) 0%, transparent 50%);
    pointer-events: none;
}
