/* ========================================
   El Jimador Mexican Grill — Custom Styles
   ======================================== */

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

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

body {
    background-color: #FFF8F0;
    color: #1a1a1a;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #FFF8F0;
}
::-webkit-scrollbar-thumb {
    background: #7B2D3B;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #9a1f3f;
}

/* Selection */
::selection {
    background: #7B2D3B;
    color: #FFF8F0;
}

/* ========================================
   Geometric Background Shapes
   ======================================== */
.geo-shapes {
    z-index: 0;
}

.geo-circle--1 {
    position: absolute;
    top: 15%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 184, 138, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.geo-circle--2 {
    position: absolute;
    bottom: 10%;
    right: -3%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(123, 45, 59, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 10s ease-in-out infinite reverse;
}

.geo-diamond--1 {
    position: absolute;
    top: 40%;
    right: 8%;
    width: 80px;
    height: 80px;
    background: rgba(255, 138, 80, 0.06);
    transform: rotate(45deg);
    animation: spin 25s linear infinite;
}

.geo-triangle--1 {
    position: absolute;
    bottom: 25%;
    left: 5%;
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 70px solid rgba(123, 45, 59, 0.04);
    animation: float 6s ease-in-out infinite;
}

.geo-arc--1 {
    position: absolute;
    top: 60%;
    left: 15%;
    width: 150px;
    height: 150px;
    border: 3px solid rgba(255, 184, 138, 0.1);
    border-radius: 50%;
    border-top-color: transparent;
    border-left-color: transparent;
    transform: rotate(-45deg);
    animation: spin 15s linear infinite;
}

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

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

/* ========================================
   Navigation
   ======================================== */
.nav-text {
    color: #7B2D3B;
    transition: color 0.3s ease;
}

#navbar.scrolled .nav-text {
    color: #7B2D3B;
}

#navbar {
    background: transparent;
    transition: background 0.5s ease, box-shadow 0.5s ease;
}

#navbar.scrolled {
    background: rgba(255, 248, 240, 0.97);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(123, 45, 59, 0.08);
}

.nav-link {
    position: relative;
}

/* Mobile Menu */
#mobile-menu.open {
    transform: translateX(0);
}

#mobile-menu.closed {
    transform: translateX(100%);
}

.mobile-menu-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

#mobile-menu.open .mobile-menu-link {
    opacity: 1;
    transform: translateY(0);
}

#mobile-menu.open .mobile-menu-link:nth-child(1) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-menu-link:nth-child(2) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-menu-link:nth-child(3) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-menu-link:nth-child(4) { transition-delay: 0.25s; }

.mobile-menu-line {
    transition: all 0.3s ease;
}

#mobile-menu-btn.active .mobile-menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
#mobile-menu-btn.active .mobile-menu-line:nth-child(2) {
    opacity: 0;
}
#mobile-menu-btn.active .mobile-menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 1.25rem;
}

/* ========================================
   Hero Section
   ======================================== */
.hero-content {
    opacity: 0;
    transform: translateY(40px);
    animation: heroReveal 1s ease forwards 0.3s;
}

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

.scroll-dot {
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(8px); opacity: 0.3; }
}

/* ========================================
   Menu Cards
   ======================================== */
.menu-card {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.menu-card:nth-child(1) { transition-delay: 0.1s; }
.menu-card:nth-child(2) { transition-delay: 0.2s; }
.menu-card:nth-child(3) { transition-delay: 0.3s; }

.menu-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ========================================
   About Section
   ======================================== */
.about-image-reveal {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

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

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

/* ========================================
   Gallery
   ======================================== */
.gallery-item {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease, transform 0.6s ease;
    cursor: pointer;
}

.gallery-item.visible {
    opacity: 1;
    transform: scale(1);
}

.gallery-item:hover {
    box-shadow: 0 20px 60px rgba(123, 45, 59, 0.2);
}

.gallery-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.gallery-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   Visit Section
   ======================================== */
.visit-info-reveal {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.visit-info-reveal.visible {
    opacity: 1;
    transform: translateX(0);
}

.visit-form-reveal {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
}

.visit-form-reveal.visible {
    opacity: 1;
    transform: translateX(0);
}

.visit-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.visit-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   Back to Top
   ======================================== */
#back-to-top {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease, background 0.3s ease, box-shadow 0.3s ease;
}

#back-to-top.show {
    opacity: 1;
    transform: translateY(0);
}

#back-to-top:hover {
    box-shadow: 0 10px 40px rgba(123, 45, 59, 0.4);
}

/* ========================================
   Responsive Adjustments
   ======================================== */
@media (max-width: 768px) {
    .geo-circle--1 {
        width: 200px;
        height: 200px;
    }
    
    .geo-circle--2 {
        width: 150px;
        height: 150px;
    }
    
    .geo-diamond--1 {
        width: 50px;
        height: 50px;
    }
    
    .geo-triangle--1 {
        border-left-width: 25px;
        border-right-width: 25px;
        border-bottom-width: 44px;
    }
}

@media (max-width: 640px) {
    .hero-content h1 {
        font-size: 2.75rem;
    }
}
