/* ============================================
   EL OAXAQUENO — Custom Styles
   Charcoal + Coral | Vibrant Modern
   ============================================ */

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

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

body {
    margin: 0;
    min-height: 100vh;
}

::selection {
    background: #C75B39;
    color: #FFF8F0;
}

/* ---------- Navbar ---------- */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(17, 17, 19, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* ---------- Hero Shapes ---------- */
.hero-shape {
    background: #C75B39;
}

.shape-1 {
    background: radial-gradient(circle, rgba(199, 91, 57, 0.4) 0%, transparent 70%);
}

.shape-2 {
    background: radial-gradient(circle, rgba(199, 91, 57, 0.3) 0%, transparent 70%);
}

.shape-3 {
    background: radial-gradient(circle, rgba(199, 91, 57, 0.2) 0%, transparent 70%);
}

/* ---------- Dot Float Animation ---------- */
@keyframes dotFloat {
    0%, 100% {
        transform: translateY(0px) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-20px) scale(1.2);
        opacity: 0.3;
    }
}

.dot-float {
    animation: dotFloat 4s ease-in-out infinite;
}

/* ---------- Hero Cards ---------- */
.hero-card-main {
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.hero-stat-card {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    animation: floatCard 6s ease-in-out infinite;
}

.stat-card-1 {
    animation-delay: 0s;
}

.stat-card-2 {
    animation-delay: 2s;
}

.stat-card-3 {
    animation-delay: 4s;
}

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

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

.marquee-track {
    animation: marquee 25s linear infinite;
}

.marquee-item {
    display: inline-block;
    padding: 0 4px;
}

/* ---------- Menu Cards ---------- */
.menu-card {
    will-change: transform;
}

.menu-card:hover {
    box-shadow: 0 20px 60px rgba(199, 91, 57, 0.15), 0 0 0 1px rgba(199, 91, 57, 0.2);
}

/* ---------- Experience Cards ---------- */
.experience-card {
    will-change: transform;
}

.experience-card:hover {
    box-shadow: 0 20px 60px rgba(199, 91, 57, 0.12);
    transform: translateY(-4px);
}

/* ---------- Mobile Menu ---------- */
#mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu:not(.active) {
    opacity: 0;
    pointer-events: none;
}

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

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

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

/* ---------- Hamburger ---------- */
.hamburger-line {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

#menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 20px;
    margin-left: 0;
}

/* ---------- Scroll Reveal ---------- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    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);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ---------- Button Focus ---------- */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #C75B39;
    outline-offset: 2px;
}

/* ---------- Responsive ---------- */
@media (max-width: 767px) {
    .hero-stat-card.stat-card-3 {
        display: none;
    }

    .stat-card-1 {
        left: -4px !important;
        top: -4px !important;
    }

    .stat-card-2 {
        right: -4px !important;
        bottom: -4px !important;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .stat-card-3 {
        display: none;
    }
}

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