/* Custom styles for Mecanica Rapida */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Scroll reveal animations - progressive enhancement */
.scroll-reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero gradient overlay refinement */
#hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(10, 16, 24, 0.3) 0%,
        rgba(10, 16, 24, 0.1) 40%,
        rgba(10, 16, 24, 0.4) 100%
    );
    z-index: 1;
    pointer-events: none;
}

#hero > .relative {
    position: relative;
    z-index: 2;
}

/* Navbar transition states */
.nav-scrolled {
    background: rgba(10, 16, 24, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2) !important;
}

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

::-webkit-scrollbar-track {
    background: #f0f4f8;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #7d94b0;
}

/* Selection color */
::selection {
    background: #99ebcc;
    color: #13202e;
}

/* Focus visible styles */
:focus-visible {
    outline: 2px solid #33d69a;
    outline-offset: 2px;
}

/* Button hover glow effect */
button:hover, a:hover {
    transition: all 0.3s ease;
}

/* Card hover lift */
.group:hover {
    transition: transform 0.3s ease;
}

/* Subtle pattern for mint sections */
.bg-mint-pattern {
    background-image: radial-gradient(circle at 1px 1px, rgba(51, 214, 154, 0.08) 1px, transparent 0);
    background-size: 24px 24px;
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.3s ease forwards;
}

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

/* Pulse animation for badge dot */
@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.3);
    }
}

.animate-pulse {
    animation: pulse-dot 2s ease-in-out infinite;
}

/* Floating card animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* Ensure all images have proper aspect ratios */
img {
    max-width: 100%;
    height: auto;
}

/* Print styles */
@media print {
    nav, #contact-form, .scroll-reveal {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
