/* =========================================
   Empalmes El Guero — Custom Styles
   ========================================= */

/* Base & Smooth Scrolling */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

/* Selection Color */
::selection {
    background-color: rgba(232, 106, 74, 0.3);
    color: #FFF0EC;
}

/* =========================================
   Scroll Reveal Animations
   ========================================= */
.reveal-element {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-element:nth-child(1) { transition-delay: 0.05s; }
.reveal-element:nth-child(2) { transition-delay: 0.12s; }
.reveal-element:nth-child(3) { transition-delay: 0.19s; }
.reveal-element:nth-child(4) { transition-delay: 0.26s; }
.reveal-element:nth-child(5) { transition-delay: 0.33s; }

.reveal-hidden {
    opacity: 0;
    transform: translateY(32px);
}

/* =========================================
   Navbar Styles
   ========================================= */
.nav-scrolled {
    background: rgba(15, 15, 22, 0.92) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.3);
}

.nav-transparent {
    background: transparent !important;
    border-bottom: 1px solid transparent !important;
    box-shadow: none !important;
}

/* =========================================
   Mobile Menu
   ========================================= */
#mobile-menu {
    animation: slideDown 0.35s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

#mobile-menu.hide-menu {
    animation: slideUp 0.3s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

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

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

.mobile-link {
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-link:last-child {
    border-bottom: none;
}

/* =========================================
   Button & Link Transitions
   ========================================= */
a, button {
    -webkit-tap-highlight-color: transparent;
}

/* =========================================
   Image Hover Effects
   ========================================= */
.group img {
    will-change: transform;
}

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

::-webkit-scrollbar-track {
    background: #1A1A24;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #E86A4A;
}

/* =========================================
   Focus Styles
   ========================================= */
:focus-visible {
    outline: 2px solid #E86A4A;
    outline-offset: 2px;
}

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

    .reveal-hidden {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* =========================================
   Print Styles
   ========================================= */
@media print {
    nav, #mobile-menu, .reveal-element {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }
}
