/**
 * Trust2 — Service section (futuristic tabs)
 */

body.frontend-futuristic .fe-service-section {
    --fe-service-card: rgba(10, 16, 28, 0.94);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

body.frontend-futuristic .fe-service-section .linear-right {
    display: none !important;
}

/* —— Background —— */
body.frontend-futuristic .fe-service-section__decor {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    color: rgba(255, 255, 255, 0.06);
}

body.frontend-futuristic .fe-service-bg__mesh {
    width: 100%;
    height: 100%;
    color: rgba(255, 255, 255, 0.08);
    animation: feServiceMeshDrift 70s linear infinite;
}

body.frontend-futuristic .fe-service-bg__arcs {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(900px, 120%);
    height: auto;
    transform: translate(-50%, -48%);
    color: rgba(255, 255, 255, 0.1);
    animation: feServiceArcsSpin 90s linear infinite;
}

body.frontend-futuristic .fe-service-bg__pillars {
    position: absolute;
    left: -2%;
    bottom: 6%;
    width: min(280px, 38vw);
    height: auto;
    color: rgba(255, 255, 255, 0.1);
    opacity: 0.85;
    animation: feServicePillarsShift 12s ease-in-out infinite;
}

body.frontend-futuristic .fe-service-bg__diamonds {
    position: absolute;
    right: 6%;
    top: 12%;
    width: min(120px, 22vw);
    height: auto;
    color: rgba(255, 255, 255, 0.12);
    animation: feServiceDiamondFloat 8s ease-in-out infinite;
}

body.frontend-futuristic .fe-service-bg__beam {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 28%;
    left: -30%;
    background: linear-gradient(
        90deg,
        transparent,
        color-mix(in srgb, #f59e0b 12%, transparent) 40%,
        color-mix(in srgb, var(--color-primary) 18%, transparent) 60%,
        transparent
    );
    opacity: 0.55;
    transform: skewX(-12deg);
    animation: feServiceBeamSweep 14s ease-in-out infinite;
}

body.frontend-futuristic .fe-service-bg__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(92px);
    opacity: 0.36;
}

body.frontend-futuristic .fe-service-bg__orb--1 {
    width: 340px;
    height: 340px;
    bottom: -6%;
    left: 38%;
    transform: translateX(-50%);
    background: color-mix(in srgb, var(--color-primary) 22%, #f59e0b 8%);
    animation: feServiceOrb 21s ease-in-out infinite;
}

body.frontend-futuristic .fe-service-bg__orb--2 {
    width: 280px;
    height: 280px;
    top: 6%;
    right: 6%;
    background: color-mix(in srgb, #f59e0b 14%, transparent);
    animation: feServiceOrb 17s ease-in-out infinite reverse;
}

body.frontend-futuristic .fe-service-bg__vignette {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 55% 45% at 50% 55%, transparent 30%, rgba(4, 8, 16, 0.62) 100%),
        linear-gradient(180deg, rgba(4, 8, 16, 0.15) 0%, transparent 35%, transparent 65%, rgba(4, 8, 16, 0.2) 100%);
}

body.frontend-futuristic .fe-service-section .container {
    position: relative;
    z-index: 1;
}

/* —— Head —— */
body.frontend-futuristic .fe-service-section__head {
    max-width: 40rem;
    margin: 0 auto 2.75rem;
}

body.frontend-futuristic .fe-service-title {
    font-size: clamp(1.85rem, 3.5vw, 2.55rem);
    font-weight: 700;
    line-height: 1.14;
    letter-spacing: -0.03em;
    color: #ffffff;
    margin: 0 0 0.85rem;
}

body.frontend-futuristic .fe-service-lead {
    font-size: 1.02rem;
    line-height: 1.72;
    color: var(--fe-muted);
    margin: 0;
}

/* —— Image stack —— */
body.frontend-futuristic .fe-service-visual {
    position: relative;
    max-width: 540px;
    margin: 0 auto;
}

body.frontend-futuristic .fe-service-visual__glow {
    position: absolute;
    inset: 8% 4%;
    border-radius: 50%;
    background: radial-gradient(
        ellipse at 50% 50%,
        color-mix(in srgb, var(--color-primary) 20%, transparent),
        transparent 70%
    );
    filter: blur(32px);
    pointer-events: none;
    animation: feServiceGlow 5s ease-in-out infinite;
}

body.frontend-futuristic .fe-service-visual__ring {
    position: absolute;
    inset: -6% -4%;
    border-radius: 22px;
    border: 1px dashed color-mix(in srgb, var(--color-primary) 22%, transparent);
    pointer-events: none;
    animation: feServiceRingPulse 6s ease-in-out infinite;
}

body.frontend-futuristic .fe-service-visual__stack {
    position: relative;
    min-height: clamp(280px, 38vw, 420px);
}

body.frontend-futuristic .fe-service-panel .fe-service-pane {
    position: absolute;
    inset: 0;
    width: 100%;
}

body.frontend-futuristic .fe-service-panel .fe-service-pane.active {
    position: relative;
}

body.frontend-futuristic .fe-service-pane__frame {
    position: relative;
    border-radius: 18px;
    padding: 1px;
    background: linear-gradient(
        140deg,
        color-mix(in srgb, var(--color-primary) 42%, transparent),
        rgba(255, 255, 255, 0.06) 45%,
        color-mix(in srgb, #22d3ee 28%, transparent)
    );
    overflow: hidden;
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.35);
}

body.frontend-futuristic .fe-service-pane__frame::before {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: 17px;
    background: linear-gradient(165deg, rgba(12, 18, 30, 0.5) 0%, rgba(6, 10, 18, 0.85) 100%);
    z-index: 0;
    pointer-events: none;
}

body.frontend-futuristic .fe-service-pane__frame img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: auto;
    border-radius: 17px;
    object-fit: cover;
}

/* —— Nav tabs —— */
body.frontend-futuristic .fe-service-nav {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

body.frontend-futuristic .fe-service-nav__item {
    display: flex;
    flex-direction: column;
}

body.frontend-futuristic .fe-service-nav__desc {
    display: grid;
    grid-template-rows: 0fr;
    margin: -0.35rem 0 0;
    padding: 0 1.1rem;
    color: var(--fe-muted);
    font-size: 0.92rem;
    line-height: 1.65;
    background: color-mix(in srgb, var(--fe-service-card) 92%, transparent);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-top: none;
    border-radius: 0 0 14px 14px;
    transition: grid-template-rows 0.35s ease, padding 0.35s ease, opacity 0.25s ease;
    opacity: 0;
}

body.frontend-futuristic .fe-service-nav__desc > p {
    overflow: hidden;
    margin: 0;
}

body.frontend-futuristic .fe-service-nav__item.is-desc-open .fe-service-nav__desc {
    grid-template-rows: 1fr;
    padding: 0.35rem 1.1rem 1rem 3.65rem;
    opacity: 1;
}

body.frontend-futuristic .fe-service-nav__item.is-desc-open .fe-service-nav__link {
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    border-bottom-color: transparent !important;
}

body.frontend-futuristic .fe-service-nav .fe-service-nav__link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    width: 100%;
    margin: 0 !important;
    padding: 1rem 1.1rem !important;
    font-family: inherit !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    text-transform: none !important;
    letter-spacing: 0;
    color: var(--fe-text) !important;
    background: var(--fe-service-card) !important;
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    border-radius: 14px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.07) !important;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}

body.frontend-futuristic .fe-service-nav .fe-service-nav__link:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
}

body.frontend-futuristic .fe-service-nav .fe-service-nav__link:hover {
    transform: translateX(4px);
    border-color: color-mix(in srgb, var(--color-primary) 35%, transparent) !important;
    color: var(--color-primary) !important;
}

body.frontend-futuristic .fe-service-nav .fe-service-nav__link.active {
    color: var(--color-primary) !important;
    background: linear-gradient(
        90deg,
        color-mix(in srgb, var(--color-primary) 10%, var(--fe-service-card)),
        var(--fe-service-card)
    ) !important;
    border-color: color-mix(in srgb, var(--color-primary) 45%, transparent) !important;
    box-shadow: 0 10px 28px color-mix(in srgb, var(--color-primary) 12%, transparent);
}

body.frontend-futuristic .fe-service-nav__index {
    flex-shrink: 0;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 0.38rem 0.48rem;
    border-radius: 8px;
    color: var(--color-primary);
    background: color-mix(in srgb, var(--color-primary) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--color-primary) 26%, transparent);
}

body.frontend-futuristic .fe-service-nav__label {
    flex: 1;
    min-width: 0;
    text-align: left;
}

body.frontend-futuristic .fe-service-nav__arrow {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    transition: transform 0.3s ease, background 0.3s ease;
}

body.frontend-futuristic .fe-service-nav__arrow i {
    font-size: 1.5rem !important;
    font-weight: 700;
    transform: none !important;
    transition: transform 0.3s ease;
}

body.frontend-futuristic .fe-service-nav .fe-service-nav__link:hover .fe-service-nav__arrow i {
    transform: translateY(1px) !important;
}

body.frontend-futuristic .fe-service-nav__item.is-desc-open .fe-service-nav__arrow i {
    transform: rotate(180deg) !important;
}

body.frontend-futuristic .fe-service-nav .fe-service-nav__link.active .fe-service-nav__arrow {
    background: color-mix(in srgb, var(--color-primary) 18%, transparent);
}

/* —— Responsive —— */
@media (max-width: 991.98px) {
    body.frontend-futuristic .fe-service-panel {
        flex-direction: column-reverse;
    }

    body.frontend-futuristic .fe-service-visual__stack {
        min-height: 260px;
    }

    body.frontend-futuristic .fe-service-section__head {
        margin-bottom: 2rem;
    }
}

@keyframes feServiceMeshDrift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(36px, 36px); }
}

@keyframes feServiceArcsSpin {
    from { transform: translate(-50%, -48%) rotate(0deg); }
    to { transform: translate(-50%, -48%) rotate(360deg); }
}

@keyframes feServicePillarsShift {
    0%, 100% { transform: translateY(0); opacity: 0.75; }
    50% { transform: translateY(-12px); opacity: 1; }
}

@keyframes feServiceDiamondFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-14px) rotate(6deg); }
}

@keyframes feServiceBeamSweep {
    0% { left: -35%; opacity: 0.2; }
    45% { opacity: 0.55; }
    100% { left: 105%; opacity: 0.15; }
}

@keyframes feServiceOrb {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(14px, -10px); }
}

body.frontend-futuristic .fe-service-bg__orb--1 {
    animation-name: feServiceOrbCenter;
}

@keyframes feServiceOrbCenter {
    0%, 100% { transform: translateX(-50%) translate(0, 0); }
    50% { transform: translateX(-50%) translate(12px, -8px); }
}

@keyframes feServiceGlow {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

@keyframes feServiceRingPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.85; transform: scale(1.02); }
}
