/* Custom styles for Vietnamese Restaurant */

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

/* Geometric shapes animation */
.geo-shape {
    position: absolute;
    opacity: 0.15;
    animation: float 20s ease-in-out infinite;
}

.geo-circle-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 222, 173, 0.6) 0%, transparent 70%);
    border-radius: 50%;
    top: 10%;
    left: -5%;
    animation-delay: 0s;
}

.geo-circle-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 182, 193, 0.5) 0%, transparent 70%);
    border-radius: 50%;
    top: 50%;
    right: -3%;
    animation-delay: -5s;
}

.geo-circle-3 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 218, 185, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    bottom: 10%;
    left: 20%;
    animation-delay: -10s;
}

.geo-triangle {
    width: 0;
    height: 0;
    border-left: 100px solid transparent;
    border-right: 100px solid transparent;
    border-bottom: 173px solid rgba(255, 222, 173, 0.3);
    top: 25%;
    right: 15%;
    animation-delay: -7s;
    transform: rotate(15deg);
}

.geo-square {
    width: 120px;
    height: 120px;
    background: rgba(255, 182, 193, 0.3);
    bottom: 20%;
    left: 10%;
    animation-delay: -3s;
    transform: rotate(45deg);
    border-radius: 12px;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(5deg);
    }
    50% {
        transform: translateY(10px) rotate(-3deg);
    }
    75% {
        transform: translateY(-15px) rotate(2deg);
    }
}

/* Scroll indicator */
.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(8px);
    }
}

/* Reveal animations (progressive enhancement) */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .geo-shape {
        animation: none;
    }
    
    .scroll-indicator {
        animation: none;
    }
    
    .reveal {
        transition: none;
    }
    
    img {
        transition: none;
    }
    
    .group:hover img {
        transform: none;
    }
}

/* Reduced motion - no JS animation needed */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(255, 253, 249, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Mobile menu animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #962f2f;
}

/* Selection color */
::selection {
    background: #b33a3a;
    color: #fffdf9;
}
