/* ===== Custom Styles for Tacos y Taquizas "El Primo" ===== */

/* Base */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: #500a24;
    color: #ffffff;
    font-family: 'Inter', system-ui, sans-serif;
}

/* ===== Geometric Background Shapes ===== */
.geo-shape {
    position: fixed;
    pointer-events: none;
    z-index: 0;
    opacity: 0.06;
}

.geo-circle-1 {
    width: 600px;
    height: 600px;
    background: #fbbf24;
    border-radius: 50%;
    top: -200px;
    right: -200px;
    animation: float-slow 20s ease-in-out infinite;
}

.geo-circle-2 {
    width: 400px;
    height: 400px;
    background: #f472b6;
    border-radius: 50%;
    bottom: 10%;
    left: -100px;
    animation: float-slow 25s ease-in-out infinite reverse;
}

.geo-circle-3 {
    width: 250px;
    height: 250px;
    background: #fbbf24;
    border-radius: 50%;
    top: 50%;
    right: 5%;
    animation: float-slow 18s ease-in-out infinite;
}

.geo-triangle {
    width: 0;
    height: 0;
    border-left: 150px solid transparent;
    border-right: 150px solid transparent;
    border-bottom: 260px solid #fbbf24;
    top: 40%;
    left: 5%;
    opacity: 0.04;
    animation: rotate-slow 30s linear infinite;
    transform-origin: center center;
}

.geo-diamond {
    width: 200px;
    height: 200px;
    background: #f472b6;
    position: fixed;
    top: 60%;
    right: 10%;
    transform: rotate(45deg);
    opacity: 0.05;
    animation: float-slow 22s ease-in-out infinite;
}

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

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

/* ===== Navigation ===== */
.nav-header {
    background: rgba(80, 10, 36, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-header.scrolled {
    background: rgba(80, 10, 36, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #fbbf24;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: #fbbf24 !important;
}

/* Mobile Menu */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    background: rgba(80, 10, 36, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.mobile-link {
    display: block;
}

.mobile-link:hover {
    padding-left: 1.5rem;
}

/* ===== Hero ===== */
.hero-overlay {
    background: linear-gradient(
        180deg,
        rgba(80, 10, 36, 0.85) 0%,
        rgba(80, 10, 36, 0.70) 50%,
        rgba(80, 10, 36, 0.95) 100%
    );
}

.hero-badge {
    animation: fadeInDown 0.8s ease forwards;
    opacity: 0;
}

.hero-title {
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.hero-subtitle {
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

.hero-cta {
    animation: fadeInUp 0.8s ease 0.6s forwards;
    opacity: 0;
}

.hero-pills {
    animation: fadeInUp 0.8s ease 0.8s forwards;
    opacity: 0;
}

.hero-scroll {
    animation: fadeInUp 0.8s ease 1s forwards;
    opacity: 0;
}

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

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

/* ===== Marquee ===== */
.marquee-track {
    animation: marquee 30s linear infinite;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===== Menu Cards ===== */
.menu-card {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
                box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(251, 191, 36, 0.15);
}

/* ===== About Images ===== */
.about-images {
    position: relative;
}

.about-images img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-images:hover img:first-child {
    transform: scale(1.02);
}

.about-images:hover img:last-child {
    transform: scale(1.02);
}

/* ===== Scroll Reveal ===== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* 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;
    }
    
    .geo-shape,
    .geo-circle-1,
    .geo-circle-2,
    .geo-circle-3,
    .geo-triangle,
    .geo-diamond {
        animation: none !important;
    }
    
    .marquee-track {
        animation: none !important;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .geo-circle-1 {
        width: 300px;
        height: 300px;
    }
    
    .geo-circle-2 {
        width: 200px;
        height: 200px;
    }
    
    .geo-circle-3,
    .geo-triangle,
    .geo-diamond {
        display: none;
    }
    
    .hero-title {
        font-size: 2.5rem !important;
    }
    
    .hero-title span:last-child {
        font-size: 1.5rem !important;
    }
}

@media (max-width: 640px) {
    .hero-badge {
        font-size: 0.7rem !important;
    }
    
    .geo-circle-1 {
        width: 200px;
        height: 200px;
    }
}
