/* ===== CUSTOM STYLES FOR MUNDO PEPE RASPADOS ===== */

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

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

body {
    margin: 0;
}

/* Selection color */
::selection {
    background: #f5a623;
    color: #3d0a2b;
}

/* ===== HERO ANIMATIONS ===== */
@keyframes float-slow {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(3deg); }
}

@keyframes float-slower {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(-2deg); }
}

@keyframes float-medium {
    0%, 100% { transform: translateY(0px) rotate(45deg); }
    50% { transform: translateY(-25px) rotate(50deg); }
}

.hero-shape {
    animation-duration: 6s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

.shape-circle-1 {
    animation-name: float-slow;
}

.shape-circle-2 {
    animation-name: float-slower;
    animation-duration: 8s;
}

.shape-rect {
    animation-name: float-medium;
    animation-duration: 7s;
}

/* ===== REVEAL ANIMATIONS ===== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* For browsers without JS, ensure content is visible */
@supports not (animation-fill-mode: both) {
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ===== NAVBAR ===== */
#navbar {
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
}

#navbar.scrolled {
    background: rgba(61, 10, 43, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* ===== MOBILE MENU ===== */
#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

#mobileMenu.closed {
    opacity: 0;
    pointer-events: none;
}

.mobile-link {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

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

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

#mobileMenu.closed .mobile-link:nth-child(1) { transition-delay: 0s; }
#mobileMenu.closed .mobile-link:nth-child(2) { transition-delay: 0.05s; }
#mobileMenu.closed .mobile-link:nth-child(3) { transition-delay: 0.1s; }
#mobileMenu.closed .mobile-link:nth-child(4) { transition-delay: 0.15s; }
#mobileMenu.closed .mobile-link:nth-child(5) { transition-delay: 0.2s; }

/* ===== MENU BUTTON ANIMATION ===== */
.menu-line {
    transform-origin: center;
}

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

#menuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

#menuBtn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 28px;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #3d0a2b;
}

::-webkit-scrollbar-thumb {
    background: #9a1d6e;
    border-radius: 5px;
}

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

/* ===== IMAGE LAZY LOAD FALLBACK ===== */
img {
    background-color: #7b1758;
}

/* ===== 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 {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ===== FOCUS STYLES ===== */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid #f5a623;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 767px) {
    .hero-shape {
        display: none;
    }
    
    #hero {
        min-height: 100vh;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    #navbar, #mobileMenu, .hero-shape {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
}
