/* Overwatch Group — Custom Styles */

/* ── Fade-up animation ─────────────────────────── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ow-fade-up {
    animation: fadeUp 0.6s ease-out both;
}

/* Reduced motion: skip animations */
@media (prefers-reduced-motion: reduce) {
    .ow-fade-up {
        animation: none;
    }
}

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

/* ── Focus ring ────────────────────────────────── */
*:focus-visible {
    outline: 2px solid #00B4D8;
    outline-offset: 3px;
    border-radius: 4px;
}

/* ── Selection highlight ───────────────────────── */
::selection {
    background-color: rgba(0, 180, 216, 0.25);
    color: #ffffff;
}

/* ── Scrollbar ─────────────────────────────────── */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #0F172A;
}
::-webkit-scrollbar-thumb {
    background: #1E293B;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #00B4D8;
}

/* ── Lazy image placeholder ────────────────────── */
img[loading="lazy"] {
    background: #1E293B;
}
/* ── Hero defense-tech background animations ─── */

@keyframes radar-sweep {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
@keyframes drone-float {
    0%   { transform: translate(0px, 0px); }
    25%  { transform: translate(12px, -8px); }
    50%  { transform: translate(6px, -16px); }
    75%  { transform: translate(-6px, -8px); }
    100% { transform: translate(0px, 0px); }
}
@keyframes track-blink {
    0%, 100% { opacity: 0.08; r: 2; }
    50%       { opacity: 0.05; r: 3.5; }
}

.hero-radar-sweep {
    transform-origin: 100px 100px;
    animation: radar-sweep 6s linear infinite;
}
.hero-drone {
    animation: drone-float 9s ease-in-out infinite;
}
.hero-track-pt {
    animation: track-blink 2s ease-in-out infinite;
}
.hero-track-pt:nth-child(2) { animation-delay: 0.4s; }
.hero-track-pt:nth-child(3) { animation-delay: 0.9s; }
.hero-track-pt:nth-child(4) { animation-delay: 1.4s; }
.hero-track-pt:nth-child(5) { animation-delay: 1.9s; }

@media (prefers-reduced-motion: reduce) {
    .hero-radar-sweep,
    .hero-drone,
    .hero-track-pt { animation: none; opacity: 0.05; }
}