/* Umbrella Services — infographic radial layout + animations */

.umbrella-services {
    --us-red: #e10600;
    --us-red-dark: #c00500;
    --us-green: #48720c;
    --us-ink: #111827;
    --us-muted: #4b5563;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #f7f7f7 0%, #ffffff 38%, #f4f8ec 100%);
}

.umbrella-services__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(700px 320px at 50% 88%, rgba(225, 6, 0, 0.10) 0%, transparent 70%),
        radial-gradient(500px 240px at 50% 20%, rgba(72, 114, 12, 0.08) 0%, transparent 70%);
    animation: us-bg-breathe 8s ease-in-out infinite;
}

@keyframes us-bg-breathe {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.82;
    }
}

.umbrella-services__photo {
    position: absolute;
    pointer-events: none;
    background-size: cover;
    background-position: center;
    opacity: 0;
    filter: grayscale(20%);
    transform: scale(1.04);
    transition: opacity 1.2s ease, transform 1.2s ease;
}

.umbrella-services.is-visible .umbrella-services__photo {
    opacity: 0.14;
    transform: scale(1);
}

.umbrella-services__photo--tag {
    top: 10%;
    left: 1%;
    width: min(220px, 22vw);
    height: min(200px, 20vw);
    background-image: url('/site/assets/img/about/about-1.jpg');
    mask-image: radial-gradient(ellipse at center, #000 30%, transparent 72%);
    transition-delay: 0.1s;
}

.umbrella-services__photo--factory {
    top: 8%;
    right: 1%;
    width: min(260px, 26vw);
    height: min(180px, 18vw);
    background-image: url('/site/assets/img/process/process-2.jpg');
    mask-image: radial-gradient(ellipse at center, #000 30%, transparent 72%);
    transition-delay: 0.25s;
}

.umbrella-services__photo--ship {
    right: 2%;
    bottom: 6%;
    width: min(300px, 30vw);
    height: min(160px, 16vw);
    background-image: url('/site/assets/img/portfolio/protfolio-1.jpg');
    mask-image: radial-gradient(ellipse at center, #000 28%, transparent 70%);
    transition-delay: 0.4s;
}

/* Header */
.umbrella-services__header {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 8px;
}

.umbrella-services__header-copy {
    flex: 1;
    text-align: center;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.umbrella-services.is-visible .umbrella-services__header-copy {
    opacity: 1;
    transform: translateY(0);
}

.umbrella-services__brand {
    display: block;
    margin-bottom: 10px;
    color: var(--us-green);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.umbrella-services__title {
    margin: 0 0 14px;
    color: var(--us-ink);
    font-size: clamp(34px, 5.5vw, 58px);
    font-weight: 900;
    line-height: 1.02;
    letter-spacing: -0.03em;
    text-transform: uppercase;
}

.umbrella-services__title-accent {
    display: inline-block;
    color: var(--us-red);
    animation: us-accent-glow 3s ease-in-out infinite;
}

@keyframes us-accent-glow {
    0%,
    100% {
        text-shadow: 0 0 0 transparent;
    }
    50% {
        text-shadow: 0 0 28px rgba(225, 6, 0, 0.35);
    }
}

.umbrella-services__lead {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: var(--us-ink);
    font-size: clamp(15px, 2vw, 20px);
    font-style: italic;
    font-weight: 500;
    line-height: 1.5;
}

.umbrella-services__diamond {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: var(--us-red);
    transform: rotate(45deg);
    flex-shrink: 0;
    animation: us-diamond-spin 6s linear infinite;
}

@keyframes us-diamond-spin {
    0% {
        transform: rotate(45deg);
    }
    100% {
        transform: rotate(405deg);
    }
}

.umbrella-services__header-logo {
    flex-shrink: 0;
    padding-top: 8px;
    opacity: 0;
    transform: translateY(16px) scale(0.92);
    transition: opacity 0.7s ease 0.15s, transform 0.7s ease 0.15s;
}

.umbrella-services.is-visible .umbrella-services__header-logo {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.umbrella-services__header-logo img {
    width: clamp(72px, 8vw, 110px);
    height: auto;
}

/* Diagram */
.umbrella-services__diagram {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1140px;
    min-height: 620px;
    margin: 0 auto;
}

.umbrella-services__lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.umbrella-services__line {
    stroke: var(--us-green);
    stroke-width: 0.24;
    vector-effect: non-scaling-stroke;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    opacity: 0.55;
    transition: stroke 0.3s ease, opacity 0.3s ease;
}

.umbrella-services__line.is-drawn {
    animation: us-line-draw 0.75s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.umbrella-services__line.is-active {
    stroke: var(--us-red);
    opacity: 1;
    filter: drop-shadow(0 0 4px rgba(225, 6, 0, 0.4));
}

@keyframes us-line-draw {
    to {
        stroke-dashoffset: 0;
        opacity: 1;
    }
}

.umbrella-services__line-dot {
    fill: #d0d0d0;
    opacity: 0;
    transform-origin: center;
    transition: fill 0.3s ease;
}

.umbrella-services__line-dot.is-drawn {
    animation: us-dot-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.umbrella-services__line-dot.is-active {
    fill: var(--us-red);
}

.umbrella-services__hub-dot {
    fill: var(--us-red);
    opacity: 0;
    transform-origin: center;
}

.umbrella-services__hub-dot.is-visible {
    animation: us-hub-pulse 0.6s ease 0.35s forwards, us-hub-glow 2.4s ease-in-out 1s infinite;
}

@keyframes us-dot-pop {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes us-hub-pulse {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    70% {
        transform: scale(1.4);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes us-hub-glow {
    0%,
    100% {
        filter: drop-shadow(0 0 0 rgba(225, 6, 0, 0));
    }
    50% {
        filter: drop-shadow(0 0 6px rgba(225, 6, 0, 0.6));
    }
}

/* Nodes */
.umbrella-services__nodes {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.umbrella-services__node {
    position: absolute;
    left: var(--node-x);
    top: var(--node-y);
    width: clamp(88px, 9.5vw, 118px);
    transform: translate(-50%, 20px) scale(0.7);
    text-align: center;
    opacity: 0;
    outline: none;
    cursor: default;
}

.umbrella-services__node.is-visible {
    animation: us-node-enter 0.65s cubic-bezier(0.34, 1.4, 0.64, 1) var(--node-delay) forwards;
}

@keyframes us-node-enter {
    0% {
        opacity: 0;
        transform: translate(-50%, 20px) scale(0.7);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, 0) scale(1);
    }
}

.umbrella-services__node-ring {
    position: relative;
    display: flex;
    justify-content: center;
    margin-bottom: 8px;
}

.umbrella-services__node-pulse {
    position: absolute;
    inset: 50% auto auto 50%;
    width: clamp(54px, 5.8vw, 68px);
    height: clamp(54px, 5.8vw, 68px);
    border-radius: 50%;
    border: 2px solid rgba(225, 6, 0, 0.35);
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
    pointer-events: none;
}

.umbrella-services__node.is-active .umbrella-services__node-pulse {
    animation: us-ring-pulse 1.6s ease-out infinite;
}

@keyframes us-ring-pulse {
    0% {
        opacity: 0.7;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.55);
    }
}

.umbrella-services__node-circle {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(54px, 5.8vw, 68px);
    height: clamp(54px, 5.8vw, 68px);
    border-radius: 50%;
    border: 2px solid var(--us-red);
    background: #fff;
    color: var(--us-ink);
    font-size: clamp(18px, 2vw, 22px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    transition: transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1), box-shadow 0.35s ease, border-color 0.35s ease, background 0.35s ease, color 0.35s ease;
}

.umbrella-services__node:nth-child(even) .umbrella-services__node-circle {
    border-color: var(--us-green);
    color: var(--us-green);
}

.umbrella-services__node:nth-child(odd) .umbrella-services__node-circle {
    color: var(--us-red);
}

.umbrella-services__node:nth-child(even) .umbrella-services__node-pulse {
    border-color: rgba(72, 114, 12, 0.4);
}

.umbrella-services__node:hover .umbrella-services__node-circle,
.umbrella-services__node:focus-visible .umbrella-services__node-circle,
.umbrella-services__node.is-active .umbrella-services__node-circle {
    transform: scale(1.1);
    border-color: var(--us-red-dark);
    background: var(--us-red);
    color: #fff;
    box-shadow: 0 12px 28px rgba(225, 6, 0, 0.28);
}

.umbrella-services__node:nth-child(even):hover .umbrella-services__node-circle,
.umbrella-services__node:nth-child(even):focus-visible .umbrella-services__node-circle,
.umbrella-services__node:nth-child(even).is-active .umbrella-services__node-circle {
    border-color: var(--us-green);
    background: var(--us-green);
    box-shadow: 0 12px 28px rgba(72, 114, 12, 0.28);
}

.umbrella-services__node-circle i[class^='flaticon-'] {
    font-size: clamp(20px, 2.2vw, 24px);
}

.umbrella-services__node h3 {
    margin: 0 0 4px;
    color: var(--us-ink);
    font-size: clamp(10px, 1.1vw, 12px);
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1.2;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.umbrella-services__node.is-active h3,
.umbrella-services__node:hover h3 {
    color: var(--us-red);
}

.umbrella-services__node p {
    margin: 0;
    color: var(--us-muted);
    font-size: clamp(9px, 0.95vw, 11px);
    line-height: 1.45;
    transition: opacity 0.3s ease;
}

.umbrella-services__node.is-active p {
    color: var(--us-ink);
}

/* Umbrella */
.umbrella-services__umbrella-wrap {
    position: absolute;
    left: 50%;
    bottom: 0;
    z-index: 1;
    width: min(360px, 42vw);
    transform: translateX(-50%) translateY(50px);
    opacity: 0;
}

.umbrella-services__umbrella-wrap.is-visible {
    animation: us-umbrella-rise 1s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards,
        us-umbrella-float 5s ease-in-out 1.2s infinite;
}

@keyframes us-umbrella-rise {
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes us-umbrella-float {
    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

.umbrella-services__umbrella-glow {
    position: absolute;
    left: 50%;
    top: 38%;
    width: 70%;
    height: 40%;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(225, 6, 0, 0.28) 0%, transparent 70%);
    opacity: 0;
    pointer-events: none;
}

.umbrella-services__umbrella-wrap.is-visible .umbrella-services__umbrella-glow {
    animation: us-glow-fade 1s ease 0.5s forwards, us-glow-pulse 3s ease-in-out 1.5s infinite;
}

@keyframes us-glow-fade {
    to {
        opacity: 1;
    }
}

@keyframes us-glow-pulse {
    0%,
    100% {
        opacity: 0.7;
        transform: translateX(-50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) scale(1.08);
    }
}

.umbrella-services__umbrella {
    display: block;
    width: 100%;
    height: auto;
    position: relative;
    z-index: 1;
}

/* Mobile — carousel experience */
.umbrella-services__mobile {
    display: none;
}

@media (max-width: 991px) {
    .umbrella-services__header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .umbrella-services__header-logo {
        padding-top: 0;
    }

    .umbrella-services__diagram {
        display: none;
    }

    .umbrella-services__photo {
        opacity: 0.06 !important;
    }

    .umbrella-services__mobile {
        display: block;
        position: relative;
        z-index: 1;
        margin-top: 20px;
    }

    .umbrella-services__mobile-hero {
        position: relative;
        display: flex;
        justify-content: center;
        margin-bottom: 20px;
        padding: 12px 0 8px;
    }

    .umbrella-services__mobile-hero .umbrella-services__umbrella-wrap {
        position: relative;
        left: auto;
        bottom: auto;
        width: min(260px, 72vw);
        transform: translateY(30px);
        opacity: 0;
    }

    .umbrella-services.is-visible .umbrella-services__mobile-hero .umbrella-services__umbrella-wrap.is-visible {
        animation: us-umbrella-rise-mobile 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards,
            us-umbrella-float-mobile 4.5s ease-in-out 1.1s infinite;
    }

    @keyframes us-umbrella-rise-mobile {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @keyframes us-umbrella-float-mobile {
        0%,
        100% {
            transform: translateY(0);
        }
        50% {
            transform: translateY(-8px);
        }
    }

    .umbrella-services__mobile-beam {
        position: absolute;
        left: 50%;
        bottom: -4px;
        width: 3px;
        height: 0;
        background: linear-gradient(180deg, var(--us-red) 0%, rgba(225, 6, 0, 0.15) 100%);
        transform: translateX(-50%);
        border-radius: 999px;
        opacity: 0;
    }

    .umbrella-services.is-visible .umbrella-services__mobile-beam {
        animation: us-beam-grow 0.8s ease 0.6s forwards;
    }

    @keyframes us-beam-grow {
        to {
            height: 48px;
            opacity: 1;
        }
    }

    .umbrella-services__mobile-dots {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 16px;
        padding: 0 8px;
    }

    .umbrella-services__mobile-dot {
        width: 8px;
        height: 8px;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: #d1d5db;
        cursor: pointer;
        transition: transform 0.25s ease, background 0.25s ease, width 0.25s ease;
    }

    .umbrella-services__mobile-dot.is-active {
        width: 22px;
        border-radius: 999px;
        background: var(--us-red);
        transform: scale(1.05);
    }

    .umbrella-services__mobile-track {
        display: flex;
        gap: 14px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: 20px;
        padding: 8px 20px 20px;
        margin: 0 -12px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .umbrella-services__mobile-track::-webkit-scrollbar {
        display: none;
    }

    .umbrella-services__mobile-card {
        flex: 0 0 min(78vw, 300px);
        scroll-snap-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 24px 20px 22px;
        border-radius: 22px;
        border: 1px solid rgba(225, 6, 0, 0.12);
        background: linear-gradient(165deg, #ffffff 0%, #fff8f8 100%);
        box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
        opacity: 0;
        transform: translateY(16px) scale(0.96);
        transition: transform 0.4s cubic-bezier(0.34, 1.2, 0.64, 1), box-shadow 0.4s ease, border-color 0.4s ease;
        cursor: pointer;
    }

    .umbrella-services__mobile-card.is-visible {
        animation: us-mobile-card-in 0.55s ease var(--node-delay, 0ms) forwards;
    }

  .umbrella-services__mobile-card:nth-child(1) { animation-delay: 0.05s; }
  .umbrella-services__mobile-card:nth-child(2) { animation-delay: 0.1s; }
  .umbrella-services__mobile-card:nth-child(3) { animation-delay: 0.15s; }
  .umbrella-services__mobile-card:nth-child(4) { animation-delay: 0.2s; }
  .umbrella-services__mobile-card:nth-child(5) { animation-delay: 0.25s; }
  .umbrella-services__mobile-card:nth-child(6) { animation-delay: 0.3s; }
  .umbrella-services__mobile-card:nth-child(7) { animation-delay: 0.35s; }
  .umbrella-services__mobile-card:nth-child(8) { animation-delay: 0.4s; }
  .umbrella-services__mobile-card:nth-child(9) { animation-delay: 0.45s; }
  .umbrella-services__mobile-card:nth-child(10) { animation-delay: 0.5s; }

    @keyframes us-mobile-card-in {
        to {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }

    .umbrella-services__mobile-card.is-active {
        border-color: rgba(225, 6, 0, 0.45);
        box-shadow: 0 22px 50px rgba(225, 6, 0, 0.18);
        transform: translateY(-4px) scale(1.02);
    }

    .umbrella-services__mobile-card-index {
        display: inline-flex;
        margin-bottom: 12px;
        padding: 4px 10px;
        border-radius: 999px;
        background: rgba(225, 6, 0, 0.1);
        color: var(--us-red);
        font-size: 11px;
        font-weight: 800;
        letter-spacing: 0.08em;
    }

    .umbrella-services__mobile-card .umbrella-services__node-circle {
        width: 64px;
        height: 64px;
        margin-bottom: 14px;
        font-size: 22px;
        transition: transform 0.4s cubic-bezier(0.34, 1.4, 0.64, 1);
    }

    .umbrella-services__mobile-card.is-active .umbrella-services__node-circle {
        transform: scale(1.08);
        animation: us-mobile-icon-pulse 2s ease-in-out infinite;
    }

    @keyframes us-mobile-icon-pulse {
        0%,
        100% {
            box-shadow: 0 8px 22px rgba(225, 6, 0, 0.15);
        }
        50% {
            box-shadow: 0 12px 30px rgba(225, 6, 0, 0.32);
        }
    }

    .umbrella-services__mobile-card h3 {
        margin: 0 0 8px;
        color: var(--us-red);
        font-size: 15px;
        font-weight: 800;
        letter-spacing: 0.05em;
        text-transform: uppercase;
    }

    .umbrella-services__mobile-card p {
        margin: 0;
        color: var(--us-muted);
        font-size: 14px;
        line-height: 1.6;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .umbrella-services__diagram {
        min-height: 560px;
    }

    .umbrella-services__node {
        width: 96px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .umbrella-services__bg,
    .umbrella-services__title-accent,
    .umbrella-services__diamond,
    .umbrella-services__umbrella-wrap.is-visible,
    .umbrella-services__umbrella-wrap.is-visible .umbrella-services__umbrella-glow,
    .umbrella-services__hub-dot.is-visible,
    .umbrella-services__node.is-active .umbrella-services__node-pulse,
    .umbrella-services__mobile-card.is-active .umbrella-services__node-circle {
        animation: none !important;
    }

    .umbrella-services__header-copy,
    .umbrella-services__header-logo,
    .umbrella-services__photo {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .umbrella-services__line.is-drawn {
        stroke-dashoffset: 0;
        opacity: 1;
        animation: none;
    }

    .umbrella-services__line-dot.is-drawn,
    .umbrella-services__hub-dot.is-visible {
        opacity: 1;
        animation: none;
    }

    .umbrella-services__node,
    .umbrella-services__umbrella-wrap {
        opacity: 1;
        transform: translate(-50%, 0);
        animation: none !important;
    }

    .umbrella-services__umbrella-wrap {
        transform: translateX(-50%);
    }

    .umbrella-services__mobile-card {
        opacity: 1;
        transform: none;
        animation: none !important;
    }

    .umbrella-services.is-visible .umbrella-services__mobile-hero .umbrella-services__umbrella-wrap.is-visible {
        transform: none;
        animation: none !important;
    }
}
