/* Explain: Styles for the international shipping scene animation in the hero section. */
/* ===== مشهد الشحن الدولي داخل سلايدر الواجهة — موشن متكامل ===== */
.gs-scene {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: #06101F;
}

.gs-svg {
    display: block;
    width: 100%;
    height: 100%;
}

/* ---- السحاب ---- */
.gs-cloud {
    fill: rgba(255, 255, 255, 0.16);
    filter: blur(5px);
}

@keyframes gsCloudDrift {
    from {
        transform: translateX(-44px);
    }

    to {
        transform: translateX(54px);
    }
}

.hc-slide.is-active .gs-cloud--1 {
    animation: gsCloudDrift 28s ease-in-out infinite alternate;
}

.hc-slide.is-active .gs-cloud--2 {
    animation: gsCloudDrift 34s ease-in-out infinite alternate-reverse;
}

.hc-slide.is-active .gs-cloud--3 {
    animation: gsCloudDrift 30s ease-in-out 1.5s infinite alternate;
}

.hc-slide.is-active .gs-cloud--4 {
    animation: gsCloudDrift 24s ease-in-out 0.8s infinite alternate-reverse;
}

/* ---- الشمس ---- */
.gs-sun-glow,
.gs-sun-core {
    transform-box: fill-box;
    transform-origin: center;
}

@keyframes gsSunBreath {
    from {
        opacity: 0.72;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1.06);
    }
}

.hc-slide.is-active .gs-sun-glow {
    animation: gsSunBreath 7s ease-in-out infinite alternate;
}

.hc-slide.is-active .gs-sun-core {
    animation: gsSunBreath 5.5s ease-in-out 0.4s infinite alternate;
}

/* ---- الكرة الأرضية ---- */
.gs-globe-grid ellipse {
    fill: none;
    stroke: rgba(150, 210, 255, 0.26);
    stroke-width: 1.3;
}

.gs-globe-land path {
    fill: rgba(126, 224, 255, 0.14);
    stroke: rgba(150, 225, 255, 0.24);
    stroke-width: 1;
}

.gs-globe-sweep {
    fill: url(#gsSweep);
    opacity: 0.5;
    transform-box: view-box;
    transform-origin: 330px 470px;
}

@keyframes gsSweepSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.hc-slide.is-active .gs-globe-sweep {
    animation: gsSweepSpin 9s linear infinite;
}

/* ---- مسارات الشحن العالمية ---- */
.gs-route {
    fill: none;
    stroke: #7FE3FF;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 12 20;
    opacity: 0.85;
    filter: url(#gsGlow);
}

.gs-route--b {
    stroke: #FFD08A;
}

@keyframes gsFlow {
    to {
        stroke-dashoffset: -32;
    }
}

.hc-slide.is-active .gs-route {
    animation: gsFlow 1.9s linear infinite;
}

.hc-slide.is-active .gs-route--b {
    animation-duration: 2.4s;
    animation-direction: reverse;
}

.gs-node-core {
    fill: #FFFFFF;
}

.gs-node-ring {
    fill: none;
    stroke: #7FE3FF;
    stroke-width: 2;
    transform-box: fill-box;
    transform-origin: center;
}

.gs-node-ring--b {
    stroke: #FFD08A;
}

@keyframes gsNodePulse {
    0% {
        transform: scale(0.6);
        opacity: 0.95;
    }

    100% {
        transform: scale(2.6);
        opacity: 0;
    }
}

.hc-slide.is-active .gs-node-ring {
    animation: gsNodePulse 2.8s ease-out infinite;
}

/* ---- البحر ---- */
.gs-wave {
    fill: none;
    stroke: rgba(190, 230, 255, 0.28);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 18 26;
}

@keyframes gsFlowSlow {
    to {
        stroke-dashoffset: -44;
    }
}

.hc-slide.is-active .gs-wave {
    animation: gsFlowSlow 3.4s linear infinite;
}

.gs-reflect {
    transform-box: fill-box;
    transform-origin: center;
}

@keyframes gsReflect {
    from {
        opacity: 0.35;
        transform: scaleY(0.9);
    }

    to {
        opacity: 0.7;
        transform: scaleY(1.12);
    }
}

.hc-slide.is-active .gs-reflect {
    animation: gsReflect 6s ease-in-out infinite alternate;
}

/* ---- السفينة ---- */
.gs-ship {
    transform-box: fill-box;
    transform-origin: center bottom;
}

@keyframes gsBob {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-7px) rotate(-0.5deg);
    }
}

.hc-slide.is-active .gs-ship {
    animation: gsBob 7s ease-in-out infinite;
}

/* ---- الأوناش ---- */
.gs-crane {
    fill: #0C2136;
    transform-box: fill-box;
    transform-origin: center bottom;
}

.gs-crane--b {
    fill: #12293F;
}

@keyframes gsCraneSway {
    0%, 100% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(0.6deg);
    }
}

.hc-slide.is-active .gs-crane--b {
    animation: gsCraneSway 9s ease-in-out infinite;
}

/* ---- الطائرة ---- */
.gs-plane {
    opacity: 0;
    transform-box: fill-box;
    transform-origin: center;
}

@keyframes gsPlaneFly {
    0% {
        transform: translate(-320px, 168px) rotate(-6deg);
    }

    50% {
        transform: translate(740px, 104px) rotate(-2deg);
    }

    100% {
        transform: translate(1980px, 158px) rotate(-7deg);
    }
}

.hc-slide.is-active .gs-plane {
    opacity: 1;
    animation: gsPlaneFly 26s linear infinite;
}

/* ---- الشاحنة والرافعة ---- */
.gs-truck,
.gs-forklift {
    transform-box: fill-box;
    transform-origin: center bottom;
}

@keyframes gsIdle {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

.hc-slide.is-active .gs-truck {
    animation: gsIdle 5.5s ease-in-out infinite;
}

.hc-slide.is-active .gs-forklift {
    animation: gsIdle 4.4s ease-in-out 0.6s infinite;
}

@keyframes gsLight {
    from {
        opacity: 0.55;
    }

    to {
        opacity: 1;
    }
}

.hc-slide.is-active .gs-truck-light {
    animation: gsLight 2.4s ease-in-out infinite alternate;
}

/* تخفيف الحجاب قليلًا عندما يكون مشهد الشحن الدولي هو المعروض */
.hero-cinema:has(.hc-slide.is-active[data-hc-scene]) .hc-scrim {
    opacity: 0.62;
}

@media (prefers-reduced-motion: reduce) {
    .gs-cloud,
    .gs-sun-glow,
    .gs-sun-core,
    .gs-globe-sweep,
    .gs-route,
    .gs-node-ring,
    .gs-wave,
    .gs-reflect,
    .gs-ship,
    .gs-crane--b,
    .gs-plane,
    .gs-truck,
    .gs-forklift,
    .gs-truck-light {
        animation: none;
    }

    .gs-globe-sweep {
        opacity: 0.22;
    }

    .gs-plane {
        opacity: 1;
        transform: translate(700px, 110px);
    }

    .gs-node-ring {
        opacity: 0.5;
    }
}