/**
 * Featuring Digital Twin — Widget Styles
 *
 * Frontend stylesheet for the Digital Twin Elementor widget.
 * Dark background, gold wireframe T-shirt, info-node icons floating on a
 * virtual circle, popup cards on hover/click, concentric platform rings,
 * and particle layer.
 *
 * Layout: absolute-positioned nodes on a %-based circle that scales with
 * the container — works consistently on all screen sizes and browsers.
 *
 * @package    Featuring_Digital_Twin
 * @author     Empire Global Limited
 * @copyright  Copyright (c) 2026 Empire Global Limited
 * @license    MIT License — see LICENSE file in plugin root.
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the MIT License terms.
 */

/* ============================================
   SCOPED CSS RESET — prevents WordPress theme
   and plugin styles from displacing widget
   components in production.
   ============================================ */
.fdt-hero *,
.fdt-hero *::before,
.fdt-hero *::after {
    box-sizing: border-box;
    -webkit-text-size-adjust: 100%;
}

/* Reset block-level elements */
.fdt-hero h1,
.fdt-hero h2,
.fdt-hero h3,
.fdt-hero h4,
.fdt-hero h5,
.fdt-hero h6,
.fdt-hero p,
.fdt-hero ul,
.fdt-hero ol,
.fdt-hero li,
.fdt-hero figure,
.fdt-hero figcaption,
.fdt-hero blockquote,
.fdt-hero pre {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    color: inherit;
    background: none;
}

/* Reset list styles */
.fdt-hero ul,
.fdt-hero ol {
    list-style: none;
}

.fdt-hero li {
    list-style: none;
}

.fdt-hero li::before,
.fdt-hero li::after {
    display: none;
}

/* Reset inline elements */
.fdt-hero a {
    color: inherit;
    text-decoration: none;
}

.fdt-hero img {
    border: 0;
    vertical-align: middle;
    max-width: 100%;
    height: auto;
}

.fdt-hero canvas {
    display: block;
}

.fdt-hero svg {
    display: inline-block;
    vertical-align: middle;
}

.fdt-hero span {
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    line-height: inherit;
}

/* Reset divs — prevent theme from adding margins/paddings */
.fdt-hero div {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
}

/* ---- HERO WRAPPER ---- */
.fdt-hero {
    --fdt-glow: #c8a23c;
    --fdt-glow-secondary: #f5d778;
    --fdt-line-color: #c8a23c;
    --fdt-border-radius: 0px;
    position: relative !important;
    min-height: auto;
    background: radial-gradient(ellipse at 50% 80%, #1a1005 0%, #0d0b04 30%, #050403 60%, #000 100%);
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 2% clamp(0.5rem, 2vw, 1.25rem) !important;
    color: #fff;
    box-sizing: border-box !important;
    margin: 0 !important;
    -webkit-tap-highlight-color: transparent;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Establish a stacking context */
    isolation: isolate;
    border-radius: var(--fdt-border-radius);
}

.fdt-particles {
    position: absolute !important;
    inset: 0 !important;
    z-index: 0 !important;
    pointer-events: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: inherit;
}

/* ---- CONNECTION LINES SVG (inside .fdt-stage) ---- */
.fdt-lines-svg {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 2 !important;
    pointer-events: none !important;
    border-radius: inherit;
    overflow: visible !important;
    margin: 0 !important;
    padding: 0 !important;
}

.fdt-lines-svg line {
    stroke: var(--fdt-line-color);
    stroke-width: 1.5;
    stroke-dasharray: 8 5;
    opacity: 0.45;
    filter: drop-shadow(0 0 4px var(--fdt-glow));
    transition: opacity 0.4s ease;
}

.fdt-lines-svg line.fdt-line-active {
    opacity: 0.8;
    stroke-width: 1.8;
}

/* ---- HEADER ---- */
.fdt-header {
    position: relative !important;
    z-index: 5 !important;
    text-align: center !important;
    max-width: min(90%, 820px) !important;
    margin: 0 auto clamp(0.125rem, 0.5vw, 0.3125rem) auto !important;
    width: 100% !important;
    padding: 0 !important;
    background: none !important;
}

.fdt-hero .fdt-headline {
    font-size: clamp(0.875rem, 2.6vw, 2rem) !important;
    letter-spacing: clamp(0.5px, 0.15vw, 2.5px);
    text-transform: uppercase;
    margin: 0 0 clamp(0.25rem, 0.8vw, 0.625rem) !important;
    padding: 0 !important;
    line-height: 1.35 !important;
    color: #fff !important;
    border: 0 !important;
    background: none !important;
}

.fdt-headline strong {
    font-style: italic;
    color: #fff;
}

.fdt-hero .fdt-subheadline {
    font-size: clamp(0.625rem, 1.3vw, 0.9375rem) !important;
    color: #b8b2a0 !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.6 !important;
    font-style: italic;
    border: 0 !important;
    background: none !important;
}

/* ===========================================================
   STAGE — relative container for pentagon icon layout
   All children (center + nodes + AI) are absolutely positioned
   using % coordinates so the pentagon scales with the container.
   =========================================================== */
.fdt-stage {
    position: relative !important;
    z-index: 3 !important;
    width: 100% !important;
    max-width: min(700px, 90vw) !important;
    aspect-ratio: 1 / 1;
    flex-shrink: 0 !important;
    margin: 0 auto !important;
    padding: 0 !important;
    overflow: visible !important;
    background: none !important;
    border: 0 !important;
}

/* aspect-ratio fallback */
@supports not (aspect-ratio: 1) {
    .fdt-stage {
        min-height: 80vw;
        max-height: 850px;
    }
}

/* ===========================================================
   CENTER AREA — absolutely centered in stage
   =========================================================== */
.fdt-center {
    position: absolute !important;
    top: 46% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 3 !important;
    width: 48% !important;
    max-width: 400px !important;
    pointer-events: auto;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    border: 0 !important;
}

/* ===========================================================
   INFO NODES — absolutely positioned on a virtual circle
   Using % so the circle auto-scales with container size.
   transform: translate(-50%,-50%) centres each icon on its point.
   =========================================================== */
.fdt-node {
    position: absolute !important;
    z-index: 4 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    will-change: transform;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    border: 0 !important;
    transform: translate(-50%, -50%);
}

/* Active/hovered node rises above siblings so card isn't clipped */
.fdt-node:hover,
.fdt-node.fdt-node--active {
    z-index: 20;
}

/*
 * Symmetric PENTAGON layout around center tshirt.
 * 5 points: 4 nodes + 1 AI box.
 * Pentagon oriented with 1 vertex at bottom (AI), 2 upper, 2 lower-mid.
 *
 *          [top-left]         [top-right]
 *
 *    [bottom-left]   (center)   [bottom-right]
 *
 *                     [AI]
 */
.fdt-node--top-left     { top: 28% !important; left: 14% !important;  right: auto !important; }
.fdt-node--top-right    { top: 28% !important; right: 14% !important; left: auto !important; }
.fdt-node--bottom-left  { top: 64% !important; left: 14% !important;  right: auto !important; }
.fdt-node--bottom-right { top: 64% !important; right: 14% !important; left: auto !important; }

/* Right-positioned nodes need reverse transform */
.fdt-node--top-right,
.fdt-node--bottom-right {
    transform: translate(50%, -50%);
}

/* Node icon circle */
.fdt-node-icon-wrap {
    width: clamp(2.75rem, 4.5vw, 3.5rem) !important;
    height: clamp(2.75rem, 4.5vw, 3.5rem) !important;
    border-radius: 50% !important;
    border: 1.5px solid var(--fdt-glow) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(15, 13, 8, 0.85) !important;
    box-shadow:
        0 0 14px rgba(200, 162, 60, 0.22),
        inset 0 0 8px rgba(200, 162, 60, 0.08);
    transition: box-shadow 0.4s ease, border-color 0.4s ease, transform 0.35s ease;
    flex-shrink: 0 !important;
    position: relative !important;
    color: var(--fdt-glow-secondary, #f5d778) !important;
    font-size: clamp(0.9rem, 1.6vw, 1.25rem) !important;
    margin: 0 !important;
    padding: 0 !important;
}

.fdt-node-icon-wrap .fdt-node-icon,
.fdt-node-icon-wrap i,
.fdt-node-icon-wrap svg {
    font-size: inherit;
    color: inherit;
    fill: currentColor;
    width: 1em;
    height: 1em;
    transition: color 0.3s ease, fill 0.3s ease;
}

/* Icon glow on hover AND active */
.fdt-node:hover .fdt-node-icon-wrap,
.fdt-node.fdt-node--active .fdt-node-icon-wrap {
    box-shadow:
        0 0 28px rgba(200, 162, 60, 0.55),
        inset 0 0 12px rgba(200, 162, 60, 0.18);
    border-color: var(--fdt-glow-secondary);
    transform: scale(1.12);
}

/* ===========================================================
   NODE CARD — absolute popup, no layout shift.
   Hidden via visibility+opacity for smooth transitions.
   Revealed on HOVER (desktop) and CLICK-PIN (all devices).
   =========================================================== */
.fdt-node-card {
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) translateY(6px) !important;
    background: rgba(12, 10, 6, 0.92) !important;
    border: 1px solid rgba(200, 162, 60, 0.2) !important;
    border-radius: 10px !important;
    padding: clamp(0.5rem, 1vw, 0.75rem) clamp(0.625rem, 1.2vw, 1rem) !important;
    width: max-content !important;
    min-width: 12rem !important;
    max-width: clamp(14rem, 26vw, 20rem) !important;
    text-align: left;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    z-index: 10 !important;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    margin: 0 !important;
    float: none !important;
}

/* Top nodes → card opens below */
.fdt-node--top-left .fdt-node-card,
.fdt-node--top-right .fdt-node-card {
    top: calc(100% + 0.5rem) !important;
    bottom: auto !important;
}

/* Bottom nodes → card opens below (downward) */
.fdt-node--bottom-left .fdt-node-card,
.fdt-node--bottom-right .fdt-node-card {
    top: calc(100% + 0.5rem) !important;
    bottom: auto !important;
    transform: translateX(-50%) translateY(6px) !important;
}

/* ---- Card VISIBLE on hover OR active ---- */
.fdt-node:hover .fdt-node-card,
.fdt-node.fdt-node--active .fdt-node-card {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0) !important;
}

.fdt-hero .fdt-node-title {
    font-size: 1rem;
    letter-spacing: clamp(0.5px, 0.12vw, 1.8px);
    text-transform: uppercase;
    color: var(--fdt-glow-secondary, #f5d778) !important;
    margin: 0 0 clamp(0.15rem, 0.4vw, 0.3rem) !important;
    padding: 0 !important;
    line-height: 1.3 !important;
    border: 0 !important;
    background: none !important;
}

.fdt-hero .fdt-node-content {
    font-size: clamp(0.625rem, 1vw, 0.78125rem) !important;
    color: #d4ccb4 !important;
    line-height: 1.6 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.fdt-hero .fdt-node-content p {
    margin: 0 0 3px !important;
    padding: 0 !important;
    line-height: inherit !important;
}

.fdt-hero .fdt-node-content strong {
    color: var(--fdt-glow-secondary) !important;
}

/* Pulse ring on hover / active */
.fdt-node:hover .fdt-node-icon-wrap::after,
.fdt-node.fdt-node--active .fdt-node-icon-wrap::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 1.5px solid var(--fdt-glow);
    animation: fdt-pulse 1.6s ease-out infinite;
}

@keyframes fdt-pulse {
    0%   { transform: scale(1);   opacity: 0.6; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* ===========================================================
   T-SHIRT WRAPPER
   =========================================================== */
.fdt-tshirt-wrap {
    position: relative !important;
    width: 100% !important;
    max-width: 400px !important;
    aspect-ratio: 400 / 420;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: transform 0.5s ease;
    z-index: 2 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: none !important;
    float: none !important;
}

@supports not (aspect-ratio: 1) {
    .fdt-tshirt-wrap {
        height: 0;
        padding-bottom: 105%;
    }
}

.fdt-tshirt-canvas {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 2 !important;
    display: none;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

.fdt-tshirt-canvas.active {
    display: block;
}

.fdt-tshirt-canvas.active ~ .fdt-tshirt-fallback {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.fdt-tshirt-fallback {
    position: absolute !important;
    inset: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: none !important;
}

.fdt-tshirt-img {
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    filter: drop-shadow(0 clamp(8px, 5%, 20px) clamp(20px, 12%, 50px) rgba(200, 162, 60, 0.6));
    transition: filter 0.4s ease;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    display: block !important;
}

.fdt-tshirt-wrap:hover .fdt-tshirt-img {
    filter: drop-shadow(0 clamp(10px, 6%, 25px) clamp(28px, 17%, 70px) rgba(200, 162, 60, 0.85));
    animation: fdt-rotate-360 1.2s ease-in-out;
}

/* ---- Platform glow: concentric rings ---- */
.fdt-platform {
    width: min(90%, 360px) !important;
    height: clamp(2rem, 5vw, 3.75rem) !important;
    border-radius: 50% !important;
    background:
        radial-gradient(ellipse at center, rgba(200, 162, 60, 0.30) 0%, rgba(200, 162, 60, 0.10) 40%, transparent 70%) !important;
    box-shadow:
        0 0 80px 30px rgba(200, 162, 60, 0.10),
        0 0 40px 10px rgba(200, 162, 60, 0.06);
    margin-top: clamp(-2.5rem, -3vw, -1rem) !important;
    position: relative !important;
    z-index: 1 !important;
    padding: 0 !important;
    border: 0 !important;
}

.fdt-platform::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 110%; height: 130%;
    border-radius: 50%;
    border: 1px solid rgba(200, 162, 60, 0.18);
    animation: fdt-platform-pulse 3s ease-in-out infinite;
}

.fdt-platform::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 130%; height: 170%;
    border-radius: 50%;
    border: 1px solid rgba(200, 162, 60, 0.10);
    animation: fdt-platform-pulse 3s ease-in-out infinite 0.5s;
}

@keyframes fdt-platform-pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.4; }
    50%      { transform: translate(-50%, -50%) scale(1.06); opacity: 0.7; }
}

/* Center label - now positioned absolutely between center and AI box */
.fdt-center-label {
    position: absolute !important;
    top: 70% !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    text-align: center !important;
    z-index: 3 !important;
    white-space: nowrap;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: none !important;
}

.fdt-hero .fdt-center-label-text {
    font-size: clamp(0.6875rem, 1.6vw, 1.125rem) !important;
    letter-spacing: clamp(1px, 0.25vw, 3.5px);
    text-transform: uppercase;
    color: var(--fdt-glow-secondary) !important;
    text-shadow: 0 0 18px rgba(200, 162, 60, 0.5);
    line-height: 1.4 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ===========================================================
   AI BOX — 5th pentagon point (bottom-center)
   Now a direct child of .fdt-stage, positioned absolutely
   like the 4 info nodes. Uses .fdt-node-icon-wrap for the
   badge so it looks identical to the other icons.
   =========================================================== */
.fdt-ai-box {
    position: absolute !important;
    z-index: 4 !important;
    top: 88% !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: none !important;
}

/* Hover / active glow on AI icon — mirrors node hover */
.fdt-ai-box:hover .fdt-node-icon-wrap,
.fdt-ai-box.fdt-ai--active .fdt-node-icon-wrap {
    box-shadow:
        0 0 28px rgba(200, 162, 60, 0.55),
        inset 0 0 12px rgba(200, 162, 60, 0.18);
    border-color: var(--fdt-glow-secondary);
    transform: scale(1.12);
}

/* Pulse ring on AI hover / active */
.fdt-ai-box:hover .fdt-node-icon-wrap::after,
.fdt-ai-box.fdt-ai--active .fdt-node-icon-wrap::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 1.5px solid var(--fdt-glow);
    animation: fdt-pulse 1.6s ease-out infinite;
}

.fdt-ai-list {
    position: absolute !important;
    top: 100% !important;
    left: 50% !important;
    transform: translateX(-50%) translateY(-6px) !important;
    list-style: none !important;
    margin: 0 !important;
    padding: clamp(0.5rem, 1.2vw, 0.875rem) clamp(0.75rem, 2vw, 1.5rem) !important;
    text-align: left;
    background: rgba(12, 10, 6, 0.92) !important;
    border: 1px solid rgba(200, 162, 60, 0.25) !important;
    border-radius: 10px !important;
    width: max-content !important;
    min-width: 12rem !important;
    max-width: clamp(14rem, 26vw, 20rem) !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    z-index: 10 !important;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    float: none !important;
}

/* AI list visible on hover or active */
.fdt-ai-box:hover .fdt-ai-list,
.fdt-ai-box.fdt-ai--active .fdt-ai-list {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.fdt-hero .fdt-ai-list li {
    font-size: clamp(0.6875rem, 1.1vw, 0.8125rem) !important;
    color: #d4ccb4 !important;
    padding: 3px 0 !important;
    margin: 0 !important;
    line-height: 1.5 !important;
    letter-spacing: clamp(0.3px, 0.08vw, 1px);
    list-style: none !important;
    border: 0 !important;
    background: none !important;
}

.fdt-ai-list li::before {
    display: none;
}

/* ---- DEFAULT SVG TSHIRT ---- */
.fdt-tshirt-svg-default {
    width: auto; height: auto;
    max-width: 100%; max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 40px rgba(200, 162, 60, 0.45));
    transition: filter 0.4s ease;
}

.fdt-tshirt-wrap:hover .fdt-tshirt-svg-default {
    filter: drop-shadow(0 0 60px rgba(200, 162, 60, 0.7));
    animation: fdt-rotate-360 1.2s ease-in-out;
}

@keyframes fdt-rotate-360 {
    0%   { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

/* ---- ENTRY ANIMATIONS ---- */
.fdt-hero[data-anim="init"] .fdt-tshirt-wrap {
    opacity: 0;
    transform: scale(0.8);
}

.fdt-hero[data-anim="init"] .fdt-node {
    opacity: 0;
}

.fdt-hero[data-anim="init"] .fdt-header {
    opacity: 0;
    transform: translateY(-20px);
}

.fdt-hero[data-anim="init"] .fdt-center-label {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
}

.fdt-hero[data-anim="init"] .fdt-ai-box {
    opacity: 0;
}

/* ---- IDLE FLOAT ---- */
@keyframes fdt-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-0.5rem); }
}

.fdt-tshirt-wrap.fdt-floating {
    animation: fdt-float 4s ease-in-out infinite;
}

/* ============================================
   RESPONSIVE — Large Desktop (≥ 1440px)
   ============================================ */
@media (min-width: 1440px) {
    .fdt-stage {
        max-width: 1100px;
    }
    .fdt-ai-box { top: 75%; }
}

/* ============================================
   RESPONSIVE — Tablet (≤ 1024px)
   Pentagon stays, just tighten spacing.
   ============================================ */
@media (max-width: 1024px) {
    .fdt-stage {
        max-width: 95vw;
    }

    .fdt-node--top-left     { top: 26%; left: 10%; }
    .fdt-node--top-right    { top: 26%; right: 10%; }
    .fdt-node--bottom-left  { top: 66%; left: 10%; }
    .fdt-node--bottom-right { top: 66%; right: 10%; }
    .fdt-ai-box             { top: 86%; }
    .fdt-center-label       { top: 68%; }

    .fdt-tshirt-img {
        filter: drop-shadow(0 clamp(7px, 4%, 18px) clamp(18px, 10%, 45px) rgba(200, 162, 60, 0.6));
    }

    .fdt-tshirt-wrap:hover .fdt-tshirt-img {
        filter: drop-shadow(0 clamp(9px, 5%, 22px) clamp(26px, 15%, 65px) rgba(200, 162, 60, 0.85));
    }
}

/* ============================================
   RESPONSIVE — Mobile (≤ 768px)
   Taller aspect ratio, pentagon contracts.
   Icons stay on circle — no stacked column.
   ============================================ */
@media (max-width: 768px) {
    .fdt-hero {
        padding: clamp(0.75rem, 3vw, 1.5rem) clamp(0.375rem, 2vw, 0.75rem);
    }

    .fdt-stage {
        max-width: 100%;
        aspect-ratio: 3 / 4;
    }

    .fdt-center {
        width: 55%;
    }

    .fdt-platform {
        position: absolute !important;
        top: 100% !important;
        bottom: auto !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
    }

    .fdt-center-label {
        top: 66%;
    }

    .fdt-tshirt-img {
        filter: drop-shadow(0 clamp(5px, 3%, 15px) clamp(15px, 8%, 35px) rgba(200, 162, 60, 0.6));
    }

    .fdt-tshirt-wrap:hover .fdt-tshirt-img {
        filter: drop-shadow(0 clamp(6px, 4%, 18px) clamp(22px, 12%, 55px) rgba(200, 162, 60, 0.85));
    }

    .fdt-node--top-left     { top: 23%; left: 4%; }
    .fdt-node--top-right    { top: 23%; right: 4%; }
    .fdt-node--bottom-left  { top: 69%; left: 4%; }
    .fdt-node--bottom-right { top: 69%; right: 4%; }
    .fdt-ai-box             { top: 86%; }
   
    

    .fdt-node-card,
    .fdt-ai-list {
        min-width: 10rem;
        max-width: clamp(10rem, 45vw, 15rem);
    }

    /* Left nodes → card opens toward right */
    .fdt-node--top-left .fdt-node-card,
    .fdt-node--bottom-left .fdt-node-card {
        left: 0 !important;
        transform: translateX(0) translateY(6px) !important;
    }
    .fdt-node--top-left:hover .fdt-node-card,
    .fdt-node--top-left.fdt-node--active .fdt-node-card,
    .fdt-node--bottom-left:hover .fdt-node-card,
    .fdt-node--bottom-left.fdt-node--active .fdt-node-card {
        transform: translateX(0) translateY(0) !important;
    }

    /* Right nodes → card opens toward left */
    .fdt-node--top-right .fdt-node-card,
    .fdt-node--bottom-right .fdt-node-card {
        left: auto !important;
        right: 0 !important;
        transform: translateX(0) translateY(6px) !important;
    }
    .fdt-node--top-right:hover .fdt-node-card,
    .fdt-node--top-right.fdt-node--active .fdt-node-card,
    .fdt-node--bottom-right:hover .fdt-node-card,
    .fdt-node--bottom-right.fdt-node--active .fdt-node-card {
        transform: translateX(0) translateY(0) !important;
    }
}

/* ============================================
   RESPONSIVE — Small Mobile (≤ 480px)
   ============================================ */
@media (max-width: 480px) {
    .fdt-stage {
        aspect-ratio: 3 / 4.5;
    }

    .fdt-center {
        width: 60%;
    }

    .fdt-center-label {
        top: 64%;
    }

    .fdt-tshirt-img {
        filter: drop-shadow(0 clamp(4px, 2.5%, 12px) clamp(12px, 6%, 28px) rgba(200, 162, 60, 0.6));
    }

    .fdt-tshirt-wrap:hover .fdt-tshirt-img {
        filter: drop-shadow(0 clamp(5px, 3%, 15px) clamp(18px, 9%, 45px) rgba(200, 162, 60, 0.85));
    }

    .fdt-node--top-left     { top: 22%; left: 2%; }
    .fdt-node--top-right    { top: 22%; right: 2%; }
    .fdt-node--bottom-left  { top: 70%; left: 2%; }
    .fdt-node--bottom-right { top: 70%; right: 2%; }
    .fdt-ai-box             { top: 75%; }

    .fdt-node-card,
    .fdt-ai-list {
        min-width: 9rem;
        max-width: clamp(9rem, 44vw, 13rem);
    }
    .fdt-ai-box{ top: 86%; }
   
}

/* ============================================
   RESPONSIVE — Extra Small (≤ 360px)
   ============================================ */
@media (max-width: 360px) {
    .fdt-stage {
        aspect-ratio: 3 / 5;
    }

    .fdt-center {
        width: 62%;
    }

    .fdt-center-label {
        top: 62%;
    }

    .fdt-tshirt-img {
        filter: drop-shadow(0 clamp(3px, 2%, 10px) clamp(10px, 5%, 24px) rgba(200, 162, 60, 0.6));
    }

    .fdt-tshirt-wrap:hover .fdt-tshirt-img {
        filter: drop-shadow(0 clamp(4px, 2.5%, 12px) clamp(15px, 7.5%, 40px) rgba(200, 162, 60, 0.85));
    }

    .fdt-ai-box { top: 70%; }

    .fdt-node-card,
    .fdt-ai-list {
        min-width: 8rem;
        max-width: clamp(8rem, 46vw, 12rem);
        font-size: 0.7rem;
    }
}

/* ============================================
   PRINT
   ============================================ */
@media print {
    .fdt-particles,
    .fdt-lines-svg,
    .fdt-platform {
        display: none !important;
    }

    .fdt-hero {
        background: #fff !important;
        color: #000 !important;
        min-height: auto !important;
    }

    .fdt-node-card {
        opacity: 1 !important;
        visibility: visible !important;
    }
}
