/* Custom styles for Con Sabor Salvadoreno #2 */

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

/* Geometric shape animations */
.geo-shape {
    animation: float 6s ease-in-out infinite;
}

.geo-circle-1 {
    animation-delay: 0s;
    animation-duration: 8s;
}

.geo-circle-2 {
    animation-delay: 2s;
    animation-duration: 10s;
}

.geo-triangle {
    animation-delay: 1s;
    animation-duration: 7s;
}

.geo-triangle-2 {
    animation-delay: 3s;
    animation-duration: 9s;
}

.geo-square {
    animation-delay: 0.5s;
    animation-duration: 8s;
}

.geo-square-2 {
    animation-delay: 2.5s;
    animation-duration: 6s;
}

.geo-dot {
    animation: pulse-dot 4s ease-in-out infinite;
}

.geo-dot:nth-child(8) { animation-delay: 0s; }
.geo-dot:nth-child(9) { animation-delay: 1.3s; }
.geo-dot:nth-child(10) { animation-delay: 2.6s; }

.geo-ring {
    animation: spin-slow 20s linear infinite;
}

.geo-ring-2 {
    animation: spin-slow 15s linear infinite reverse;
}

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

@keyframes pulse-dot {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.5); }
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Menu card hover effects */
.menu-card {
    transform: translateY(0);
}

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

/* Special card hover */
.special-card {
    transform: translateY(0);
}

.special-card:hover {
    transform: translateY(-6px);
}

/* Testimonial card */
.testimonial-card {
    transform: translateY(0);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(123, 45, 59, 0.1);
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(255, 248, 240, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(123, 45, 59, 0.08);
}

.navbar-scrolled .nav-link {
    color: #5a1e27 !important;
}

.navbar-scrolled .nav-text {
    color: #5a1e27 !important;
}

/* Mobile menu */
.mobile-menu-link {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .geo-shape,
    .geo-ring,
    .geo-ring-2,
    .geo-dot {
        animation: none !important;
    }
    
    .menu-card,
    .special-card,
    .testimonial-card {
        transition: none !important;
    }
    
    .menu-card:hover,
    .special-card:hover,
    .testimonial-card:hover {
        transform: none !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #8c1c31;
}

/* Selection color */
::selection {
    background: #f8c2cc;
    color: #5a1e27;
}
