/* Nueva Linea — Custom Styles */

/* Smooth scroll offset for fixed nav */
section[id] {
    scroll-margin-top: 80px;
}

/* Selection color */
::selection {
    background: #D4A853;
    color: #0f271d;
}

/* Focus styles */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #D4A853;
    outline-offset: 3px;
    border-radius: 2px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0f271d;
}
::-webkit-scrollbar-thumb {
    background: #1B4332;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #346b4c;
}

/* Gold line animation on hover */
.gold-line {
    transition: width 0.4s cubic-bezier(.22,.61,.36,1);
}

/* Stat card floating animation */
@keyframes float1 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}
@keyframes float2 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(6px); }
}
@keyframes float3 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

@media (prefers-reduced-motion: no-preference) {
    .stat-card:nth-child(1) { animation: float1 4s ease-in-out infinite; }
    .stat-card:nth-child(2) { animation: float2 5s ease-in-out infinite 0.5s; }
    .stat-card:nth-child(3) { animation: float3 4.5s ease-in-out infinite 1s; }
    .stat-card:nth-child(4) { animation: float1 3.5s ease-in-out infinite 0.3s; }
}

/* Image hover zoom */
img {
    transition: transform 0.5s cubic-bezier(.22,.61,.36,1);
}

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