/* Custom styles for Shisan Fan Sushi & Chinese Restaurant */

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

/* Geometric animations */
.geo-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
}

.geo-1 {
    width: 400px;
    height: 400px;
    background: #ffb0b0;
    top: -100px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.geo-2 {
    width: 250px;
    height: 250px;
    background: #ffd0d0;
    bottom: 10%;
    left: 5%;
    animation: float 6s ease-in-out infinite reverse;
}

.geo-3 {
    width: 150px;
    height: 150px;
    background: #ff8080;
    top: 30%;
    left: 15%;
    animation: float 10s ease-in-out infinite;
}

.geo-square {
    position: absolute;
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    top: 20%;
    right: 10%;
    transform: rotate(45deg);
    animation: spin 20s linear infinite;
}

.geo-triangle {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 100px solid rgba(255, 176, 176, 0.1);
    bottom: 20%;
    right: 20%;
    animation: float 7s ease-in-out infinite;
}

.geo-dots {
    position: absolute;
    width: 100px;
    height: 100px;
    background-image: radial-gradient(circle, rgba(255,255,255,0.2) 2px, transparent 2px);
    background-size: 15px 15px;
    bottom: 30%;
    left: 10%;
    animation: float 9s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(5deg); }
}

@keyframes spin {
    from { transform: rotate(45deg); }
    to { transform: rotate(405deg); }
}

/* Reveal animations (below the fold only) */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.hidden-reveal {
    opacity: 0;
    transform: translateY(30px);
}

/* Feature items */
.feature-item {
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-4px);
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(254, 242, 242, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(154, 36, 36, 0.1);
}

.nav-scrolled .nav-link {
    color: #7e1c1c !important;
}

.nav-scrolled .nav-text {
    color: #7e1c1c !important;
}

.nav-scrolled .nav-text-sub {
    color: #b83232 !important;
}

/* Mobile menu */
.mobile-link {
    transition: color 0.3s ease;
}

.mobile-link:hover {
    color: #b83232;
}

/* Menu cards hover */
.menu-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.menu-card:hover {
    transform: translateY(-4px);
}

/* Gallery images */
.gallery-img {
    transition: transform 0.7s ease;
}

.gallery-img:hover {
    transform: scale(1.05);
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
    .reveal.hidden-reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: #b83232;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9a2424;
}
