/* ═══════════════ GRID BACKGROUND ═══════════════ */
.grid-bg {
    background-image:
        linear-gradient(rgba(0, 199, 177, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 199, 177, 0.08) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* ═══════════════ FLOATING ORBS ═══════════════ */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 102, 161, 0.3), transparent 70%);
    top: -10%;
    right: -5%;
    animation: float-orb 12s ease-in-out infinite;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 166, 160, 0.25), transparent 70%);
    bottom: -10%;
    left: -5%;
    animation: float-orb 15s ease-in-out infinite reverse;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 199, 177, 0.15), transparent 70%);
    top: 40%;
    left: 30%;
    animation: float-orb 10s ease-in-out infinite 2s;
}

@keyframes float-orb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%      { transform: translate(40px, -30px) scale(1.05); }
    66%      { transform: translate(-20px, 20px) scale(0.95); }
}

/* ═══════════════ HERO FLOAT ═══════════════ */
.hero-float {
    animation: hero-float 6s ease-in-out infinite;
}

@keyframes hero-float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50%      { transform: translateY(-15px) rotate(2deg); }
}

/* ═══════════════ SPIN ANIMATIONS ═══════════════ */
.animate-spin-slow {
    animation: spin 25s linear infinite;
}

.animate-spin-reverse {
    animation: spin 20s linear infinite reverse;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ═══════════════ ORBIT NODES ═══════════════ */
.orbit-node {
    position: absolute;
    top: 50%;
    left: 50%;
    animation: orbit 8s linear infinite;
    animation-delay: var(--delay);
}

@keyframes orbit {
    from {
        transform: rotate(0deg) translateX(var(--distance)) rotate(0deg);
    }
    to {
        transform: rotate(360deg) translateX(var(--distance)) rotate(-360deg);
    }
}

/* ═══════════════ FADE-UP ON SCROLL ═══════════════ */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ═══════════════ CAPABILITY CARD HOVER ═══════════════ */
.capability-card {
    position: relative;
    overflow: hidden;
}

.capability-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00C7B1, transparent);
    transition: left 0.5s ease;
}

.capability-card:hover::before {
    left: 100%;
}

/* ═══════════════ COUNTER GLOW ═══════════════ */
.counter {
    transition: text-shadow 0.5s ease;
}

.counter.active {
    text-shadow: 0 0 40px rgba(0, 199, 177, 0.3);
}

/* ═══════════════ NAVBAR SCROLL STATE ═══════════════ */
.nav-scrolled {
    background: rgba(0, 27, 46, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

/* ═══════════════ SMOOTH SCROLLBAR ═══════════════ */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #001B2E;
}

::-webkit-scrollbar-thumb {
    background: #0066A1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #00A6A0;
}

/* ═══════════════ SELECTION STYLE ═══════════════ */
::selection {
    background: rgba(0, 199, 177, 0.3);
    color: #fff;
}
