/* Custom Styles for Soup Dumplings STL */

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

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

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

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

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

/* Navbar Transition */
#navbar.scrolled {
    background: rgba(250, 249, 246, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.05);
    padding-top: 1rem;
    padding-bottom: 1rem;
}

/* Hero Animations */
.hero-title {
    animation: slideUp 0.8s ease-out forwards;
    animation-delay: 0.2s;
}

.hero-subtitle {
    animation: slideUp 0.8s ease-out forwards;
    animation-delay: 0.1s;
}

.hero-desc {
    animation: slideUp 0.8s ease-out forwards;
    animation-delay: 0.3s;
}

.hero-cta {
    animation: slideUp 0.8s ease-out forwards;
    animation-delay: 0.4s;
}

.hero-stats {
    animation: slideUp 0.8s ease-out forwards;
    animation-delay: 0.5s;
}

.image-reveal {
    animation: revealImage 1s ease-out forwards;
    animation-delay: 0.3s;
    opacity: 0;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes revealImage {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Floating Card Animation */
.floating-card {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Scroll Line Animation */
.scroll-line {
    animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
    0% {
        top: -50%;
    }
    100% {
        top: 150%;
    }
}

/* Section Animations */
.section-label {
    animation: slideUp 0.8s ease-out forwards;
}

.section-title {
    animation: slideUp 0.8s ease-out forwards;
}

.section-desc {
    animation: slideUp 0.8s ease-out forwards;
}

/* About Section */
.about-label {
    animation: slideUp 0.8s ease-out forwards;
    animation-delay: 0.1s;
}

.about-title {
    animation: slideUp 0.8s ease-out forwards;
    animation-delay: 0.2s;
}

.about-desc {
    animation: slideUp 0.8s ease-out forwards;
    animation-delay: 0.3s;
}

.about-image {
    animation: fadeIn 1s ease-out forwards;
    opacity: 0;
}

.about-image:nth-child(1) {
    animation-delay: 0.2s;
}

.about-image:nth-child(2) {
    animation-delay: 0.4s;
}

.about-features {
    animation: slideUp 0.8s ease-out forwards;
    animation-delay: 0.5s;
}

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

/* Menu Section */
.menu-label {
    animation: slideUp 0.8s ease-out forwards;
    animation-delay: 0.1s;
}

.menu-title {
    animation: slideUp 0.8s ease-out forwards;
    animation-delay: 0.2s;
}

.menu-desc {
    animation: slideUp 0.8s ease-out forwards;
    animation-delay: 0.3s;
}

.menu-card {
    opacity: 0;
    transform: translateY(30px);
}

.menu-card.visible {
    animation: cardAppear 0.6s ease-out forwards;
}

.menu-card:nth-child(1) { animation-delay: 0.1s; }
.menu-card:nth-child(2) { animation-delay: 0.2s; }
.menu-card:nth-child(3) { animation-delay: 0.3s; }
.menu-card:nth-child(4) { animation-delay: 0.4s; }
.menu-card:nth-child(5) { animation-delay: 0.5s; }
.menu-card:nth-child(6) { animation-delay: 0.6s; }

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

/* Gallery Section */
.gallery-label {
    animation: slideUp 0.8s ease-out forwards;
    animation-delay: 0.1s;
}

.gallery-title {
    animation: slideUp 0.8s ease-out forwards;
    animation-delay: 0.2s;
}

.gallery-item {
    opacity: 0;
    transform: scale(0.95);
}

.gallery-item.visible {
    animation: galleryAppear 0.6s ease-out forwards;
}

.gallery-item:nth-child(1) { animation-delay: 0.1s; }
.gallery-item:nth-child(2) { animation-delay: 0.2s; }
.gallery-item:nth-child(3) { animation-delay: 0.3s; }
.gallery-item:nth-child(4) { animation-delay: 0.35s; }
.gallery-item:nth-child(5) { animation-delay: 0.4s; }
.gallery-item:nth-child(6) { animation-delay: 0.45s; }

@keyframes galleryAppear {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Visit Section */
.visit-label {
    animation: slideUp 0.8s ease-out forwards;
    animation-delay: 0.1s;
}

.visit-title {
    animation: slideUp 0.8s ease-out forwards;
    animation-delay: 0.2s;
}

#contact-info {
    transition: all 0.8s ease-out;
}

#contact-info.visible {
    opacity: 1;
    transform: translateY(0);
}

#map-container {
    transition: all 0.8s ease-out;
}

#map-container.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Menu */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
}

#mobile-menu.open .mobile-link {
    animation: linkAppear 0.4s ease-out forwards;
}

#mobile-menu.open .mobile-link:nth-child(1) { animation-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(2) { animation-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(3) { animation-delay: 0.3s; }
#mobile-menu.open .mobile-link:nth-child(4) { animation-delay: 0.4s; }
#mobile-menu.open .mobile-link:nth-child(5) { animation-delay: 0.5s; }

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

/* Button Hover Effects */
button, a {
    cursor: pointer;
}

/* Image Loading Placeholder */
img {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

img[src] {
    animation: none;
    background: none;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .floating-card {
        display: none;
    }
}
