/* Custom Styles for Fiesta Tapatia */

/* Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Geometric Shapes */
.geo-shape {
    position: absolute;
    opacity: 0.15;
}

.geo-circle-1 {
    top: 10%;
    left: 5%;
    width: 200px;
    height: 200px;
    border: 3px solid #F5D5C8;
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.geo-circle-2 {
    top: 60%;
    right: 8%;
    width: 120px;
    height: 120px;
    background: #FF9F80;
    border-radius: 50%;
    animation: float 6s ease-in-out infinite reverse;
}

.geo-triangle {
    bottom: 15%;
    left: 10%;
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid #F5D5C8;
    animation: rotate 12s linear infinite;
}

.geo-square {
    top: 25%;
    right: 15%;
    width: 80px;
    height: 80px;
    border: 3px solid #FF9F80;
    transform: rotate(45deg);
    animation: float 7s ease-in-out infinite;
}

.geo-dots {
    bottom: 30%;
    right: 20%;
    width: 60px;
    height: 60px;
    background-image: radial-gradient(circle, #F5D5C8 2px, transparent 2px);
    background-size: 12px 12px;
    opacity: 0.6;
}

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

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

/* Hero Content Animation */
.hero-content > * {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.hero-content > *:nth-child(1) { animation-delay: 0.2s; }
.hero-content > *:nth-child(2) { animation-delay: 0.4s; }
.hero-content > *:nth-child(3) { animation-delay: 0.6s; }
.hero-content > *:nth-child(4) { animation-delay: 0.8s; }

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

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

.scroll-mouse {
    width: 26px;
    height: 40px;
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 13px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: rgba(255,255,255,0.7);
    border-radius: 2px;
    animation: scrollWheel 1.5s ease-in-out infinite;
}

@keyframes scrollWheel {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(12px); }
}

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

/* Navbar Scroll State */
.navbar-scrolled {
    background: rgba(255, 250, 247, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(123, 45, 59, 0.08);
}

.navbar-scrolled .nav-link {
    color: #4B5563 !important;
}

.navbar-scrolled .nav-link:hover {
    color: #7B2D3B !important;
}

/* Menu Tabs */
.menu-tab {
    padding: 10px 24px;
    border-radius: 100px;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    background: #F9FAFB;
    color: #6B7280;
}

.menu-tab:hover {
    border-color: #7B2D3B;
    color: #7B2D3B;
}

.menu-tab.active {
    background: #7B2D3B;
    color: white;
    border-color: #7B2D3B;
}

/* Menu Items */
.menu-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.menu-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.menu-item-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.4s ease;
    border: 1px solid rgba(0,0,0,0.04);
}

.menu-item-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(123, 45, 59, 0.12);
}

.menu-item-img {
    height: 200px;
    overflow: hidden;
}

.menu-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.menu-item-card:hover .menu-item-img img {
    transform: scale(1.08);
}

.menu-item-content {
    padding: 1.25rem;
}

.menu-item-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}

.menu-item-desc {
    color: #6B7280;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.menu-item-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
}

.tag-popular {
    background: #FDF0F2;
    color: #7B2D3B;
}

.tag-spicy {
    background: #FFF0EB;
    color: #FF7A52;
}

.tag-veggie {
    background: #F0F9FF;
    color: #0369A1;
}

/* Feature Cards */
.feature-card {
    transform: translateY(0);
}

/* About Images */
.about-images {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.8s ease;
}

.about-images.visible {
    opacity: 1;
    transform: translateX(0);
}

.about-content {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.8s ease 0.2s;
}

.about-content.visible {
    opacity: 1;
    transform: translateX(0);
}

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

/* Gallery */
.gallery-item {
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    transition: transform 0.7s ease;
}

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

/* Mobile Menu */
.mobile-menu-open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-open .menu-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-open .menu-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Responsive */
@media (max-width: 768px) {
    .geo-circle-1 {
        width: 120px;
        height: 120px;
    }
    
    .geo-triangle {
        display: none;
    }
    
    .geo-square {
        width: 50px;
        height: 50px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem !important;
    }
}

/* 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;
    }
}
