/* =========================================================
   water-orb.css
   The NAT Water Orb — the site's signature visual mark.
   Same visual language as the hero's glass orb (water
   gradient, cyan glow, bubbles, fish silhouettes, logo),
   generalized to a scalable size so it can reappear in the
   footer, a first-visit loading screen, and the 404 page.
   ========================================================= */

.nat-orb-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    --orb-size: 64px;
    width: var(--orb-size);
    height: var(--orb-size);
}

.nat-orb {
    position: relative;
    width: var(--orb-size);
    height: var(--orb-size);
    border-radius: 50%;
    overflow: hidden;

    background: radial-gradient(circle at 30% 25%, rgba(103, 232, 249, 0.55) 0%, rgba(0, 110, 200, 0.55) 45%, rgba(3, 20, 40, 0.92) 100%);
    border: 2px solid rgba(255, 255, 255, 0.25);
    box-shadow:
        0 0 calc(var(--orb-size) * 0.2) rgba(0, 180, 255, 0.45),
        inset -22% -22% 40% rgba(0, 0, 0, 0.45),
        inset 18% 18% 30% rgba(255, 255, 255, 0.12);

    animation: nat-orb-float 6s ease-in-out infinite;
}

@keyframes nat-orb-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6%); }
}

.nat-orb .orb-shine {
    position: absolute;
    top: 8%;
    left: 14%;
    width: 42%;
    height: 24%;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    filter: blur(4px);
    transform: rotate(-20deg);
    pointer-events: none;
}

.nat-orb .orb-sand {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 16%;
    background: linear-gradient(180deg, rgba(255, 214, 140, 0.25), rgba(255, 214, 140, 0.05));
    border-radius: 0 0 50% 50% / 0 0 100% 100%;
}

.nat-orb .orb-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 34%;
    transform: translate(-50%, -50%);
    opacity: 0.9;
    filter: drop-shadow(0 0 6px rgba(0, 180, 255, 0.55));
    pointer-events: none;
}

.nat-orb .orb-bubble {
    position: absolute;
    bottom: -8%;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.05));
    animation: nat-orb-bubble-rise linear infinite;
}

.nat-orb .orb-bubble.b1 { left: 20%; width: 6%;  height: 6%;  animation-duration: 5s;   animation-delay: 0s;   }
.nat-orb .orb-bubble.b2 { left: 46%; width: 8%;  height: 8%;  animation-duration: 7s;   animation-delay: 1.2s; }
.nat-orb .orb-bubble.b3 { left: 65%; width: 5%;  height: 5%;  animation-duration: 4.5s; animation-delay: 2s;   }

@keyframes nat-orb-bubble-rise {
    0%   { transform: translateY(0);       opacity: 0;   }
    10%  { opacity: 0.9; }
    100% { transform: translateY(-110%);   opacity: 0;   }
}

.nat-orb .orb-fish {
    position: absolute;
    font-size: calc(var(--orb-size) * 0.16);
    filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.4));
    animation: nat-orb-fish-swim ease-in-out infinite alternate;
}

.nat-orb .orb-fish.f1 { top: 30%; left: 10%; animation-duration: 6s; }
.nat-orb .orb-fish.f2 { top: 58%; left: 52%; animation-duration: 8s; animation-delay: 1s; }

@keyframes nat-orb-fish-swim {
    0%   { transform: translateX(0)     scaleX(1); }
    100% { transform: translateX(28%)   scaleX(1); }
}

/* ---------- Size presets ---------- */
.nat-orb-wrap.nat-orb-sm  { --orb-size: 48px; }
.nat-orb-wrap.nat-orb-md  { --orb-size: 96px; }
.nat-orb-wrap.nat-orb-lg  { --orb-size: 180px; }
.nat-orb-wrap.nat-orb-xl  { --orb-size: 240px; }

/* ---------- Footer placement ---------- */
.footer-section .nat-orb-wrap {
    margin-bottom: 14px;
}

/* ---------- First-visit loading screen ---------- */
.nat-loading-screen {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 50% 40%, #0a2540 0%, #071a2d 70%);
    opacity: 1;
    transition: opacity 0.4s ease;
}

.nat-loading-screen.nat-loading-hide {
    opacity: 0;
    pointer-events: none;
}

/* ---------- 404 page ---------- */
.nat-404-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 18px;
    padding: 90px 6% 70px;
    min-height: 60vh;
}

.nat-404-hero h1 {
    font-size: 4rem;
    letter-spacing: 0.04em;
    color: var(--white, #fff);
    margin: 0;
}

.nat-404-hero p {
    color: rgba(255, 255, 255, 0.75);
    max-width: 460px;
    line-height: 1.6;
}

@media (prefers-reduced-motion: reduce) {
    .nat-orb,
    .nat-orb .orb-bubble,
    .nat-orb .orb-fish {
        animation: none !important;
    }
}

@media (max-width: 480px) {
    .nat-orb-wrap.nat-orb-xl { --orb-size: 180px; }
    .nat-orb-wrap.nat-orb-lg { --orb-size: 140px; }
}
