/* ==========================================================
   TRIGUNATMIKA ATELIERR - INTERACTIVE 3D CLIENT GLOBE
   Clean, minimal luxury architectural aesthetic matching Bento
   ========================================================== */

.clients-globe-section {
    background: #000000;
    color: #ffffff;
    padding: clamp(48px, 6vh, 76px) 5%;
    position: relative;
    z-index: 10;
    box-sizing: border-box;
    border-top: 1px solid var(--line, rgba(255, 255, 255, 0.24));
}

/* 2-Column Layout: 3D Globe + Compact Stats Panel */
.globe-layout {
    display: grid;
    grid-template-columns: 1fr clamp(290px, 25vw, 340px);
    gap: 20px;
    align-items: stretch;
    margin-top: clamp(20px, 3vh, 32px);
}

/* 3D Canvas Stage */
.globe-canvas-wrap {
    position: relative;
    height: 500px;
    min-height: 530px;
    background: #000000;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.85);
}

.globe-canvas-wrap canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
    cursor: grab;
    touch-action: pan-y; /* Allows normal vertical page scrolling */
}

.globe-canvas-wrap.is-dragging canvas {
    cursor: grabbing;
}

/* Subtle Vignette Overlay */
.globe-canvas-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at center, transparent 60%, rgba(0, 0, 0, 0.65) 88%, #000000 100%);
}

/* Minimalist Floating Tooltip: Country Name & Client Count Only */
.globe-tooltip {
    position: absolute;
    pointer-events: none;
    z-index: 30;
    background: rgba(12, 15, 20, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 100px;
    padding: 8px 18px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.65), 0 0 20px rgba(229, 91, 38, 0.2);
    backdrop-filter: blur(14px);
    opacity: 0;
    transform: translate(-50%, -130%) scale(0.95);
    transition: opacity 0.2s cubic-bezier(0.22, 1, 0.36, 1), transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
    white-space: nowrap;
}

.globe-tooltip.visible {
    opacity: 1;
    transform: translate(-50%, -140%) scale(1);
}

.tooltip-country {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.tooltip-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.85);
}

.tooltip-count {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--accent, #e55b26);
}

/* ==========================================================
   SMALL STATS PANEL (Matches Architectural Bento Aesthetics)
   ========================================================== */
.globe-stats-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 100%;
}

/* Card Base */
.globe-stat-card {
    position: relative;
    background: linear-gradient(160deg, rgba(16, 20, 26, 0.8) 0%, rgba(6, 8, 10, 0.94) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: clamp(14px, 1.6vw, 18px);
    box-sizing: border-box;
    overflow: hidden;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.12), inset 0 0 20px rgba(0, 0, 0, 0.4);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.globe-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(238, 133, 0, 0.45), transparent);
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.globe-stat-card:hover {
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.globe-stat-card:hover::before {
    opacity: 1;
}

/* Architectural Watermark Graphic */
.globe-card-bg-graphic {
    position: absolute;
    top: -18px;
    right: -18px;
    width: 125px;
    height: 125px;
    pointer-events: none;
    opacity: 0.7;
    z-index: 1;
    transition: transform 0.65s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease;
}

.globe-stat-card:hover .globe-card-bg-graphic {
    transform: rotate(12deg) scale(1.05);
    opacity: 0.95;
}

/* Card 1: Global Presence */
.globe-stat-card--presence {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Card 2: 14 International Locations List */
.globe-stat-card--locations {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

/* Card Headers */
.globe-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
    gap: 8px;
    position: relative;
    z-index: 2;
}

.globe-stat-tag {
    font-family: 'DM Sans', sans-serif;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent, #ee8500);
    display: inline-block;
}

/* Origin Pill Button */
.globe-origin-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: 'DM Sans', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--accent, #ee8500);
    background: rgba(238, 133, 0, 0.08);
    border: 1px solid rgba(238, 133, 0, 0.32);
    padding: 3px 9px;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    user-select: none;
    outline: none;
}

.globe-origin-pill:hover,
.globe-origin-pill.active {
    background: rgba(238, 133, 0, 0.2);
    border-color: rgba(238, 133, 0, 0.8);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 3px 12px rgba(238, 133, 0, 0.25);
}

.origin-pulse-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent, #ee8500);
    box-shadow: 0 0 6px var(--accent, #ee8500);
    animation: originBeaconPulse 2s infinite ease-in-out;
}

.origin-arrow {
    stroke: currentColor;
    transition: transform 0.2s ease;
    opacity: 0.8;
    width: 9px;
    height: 9px;
}

.globe-origin-pill:hover .origin-arrow {
    transform: translateX(2px);
    opacity: 1;
}

@keyframes originBeaconPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.4);
        opacity: 0.6;
    }
}

/* Live Badge for Card 2 */
.globe-live-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: 'DM Sans', sans-serif;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2px 7px;
    border-radius: 100px;
}

.live-dot {
    width: 4.5px;
    height: 4.5px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 5px #10b981;
    animation: livePulse 2s infinite ease-in-out;
}

@keyframes livePulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.5;
    }
}

/* Stat Value & Typography */
.globe-stat-val {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin: 4px 0 2px;
    position: relative;
    z-index: 2;
}

.globe-counter {
    font-family: 'DM Sans', sans-serif;
    font-size: clamp(2rem, 2.5vw, 2.5rem);
    font-weight: 500;
    line-height: 1;
    color: #ffffff;
    letter-spacing: -0.04em;
    text-shadow: 0 2px 14px rgba(255, 255, 255, 0.1);
}

.globe-stat-plus {
    font-family: 'DM Sans', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: var(--accent, #ee8500);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.globe-stat-sub {
    font-family: 'DM Sans', sans-serif;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.55);
    margin: 0;
    line-height: 1.4;
    position: relative;
    z-index: 2;
}

/* 14 International Locations 2-Column Grid */
.globe-locations-pills {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
    overflow-y: auto;
    padding-right: 3px;
    margin: 8px 0 8px;
    position: relative;
    z-index: 2;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

.globe-locations-pills::-webkit-scrollbar {
    width: 4px;
}

.globe-locations-pills::-webkit-scrollbar-track {
    background: transparent;
}

.globe-locations-pills::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.globe-locations-pills::-webkit-scrollbar-thumb:hover {
    background: rgba(238, 133, 0, 0.6);
}

/* Location Chip Button */
.location-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 5px 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 10.5px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.25, 1, 0.5, 1);
    user-select: none;
    outline: none;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
    box-sizing: border-box;
}

.location-chip::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 6px;
    background: linear-gradient(135deg, rgba(238, 133, 0, 0.15) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.location-chip:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(238, 133, 0, 0.45);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
}

.location-chip:hover::before {
    opacity: 1;
}

.location-chip.active {
    background: rgba(238, 133, 0, 0.14);
    border-color: rgba(238, 133, 0, 0.7);
    color: #ffffff;
    box-shadow: 0 0 12px rgba(238, 133, 0, 0.2), inset 0 0 0 1px rgba(238, 133, 0, 0.3);
    transform: translateY(-1px);
}

.location-chip.active::before {
    opacity: 1;
}

.location-chip .loc-num {
    font-family: 'DM Sans', sans-serif;
    font-size: 9.5px;
    font-weight: 700;
    color: var(--accent, #ee8500);
    letter-spacing: 0.03em;
    flex-shrink: 0;
}

.location-chip .loc-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    letter-spacing: -0.01em;
}

/* Card 2 Footer Guide */
.globe-card-footer {
    padding-top: 7px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: auto;
    position: relative;
    z-index: 2;
}

.globe-footer-guide {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'DM Sans', sans-serif;
    font-size: 10.5px;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: -0.01em;
}

.guide-icon {
    color: var(--accent, #ee8500);
    flex-shrink: 0;
    opacity: 0.85;
    width: 11px;
    height: 11px;
}

/* ==========================================================
   RESPONSIVE DESIGN
   ========================================================== */
@media (max-width: 1024px) {
    .globe-layout {
        grid-template-columns: 1fr;
    }

    .globe-canvas-wrap {
        height: 400px;
        min-height: 380px;
    }

    .globe-stats-panel {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 14px;
        height: auto;
    }

    .globe-stat-card--presence {
        min-height: 150px;
    }

    .globe-stat-card--locations {
        min-height: 240px;
    }
}

@media (max-width: 768px) {
    .clients-globe-section {
        padding: 40px 4%;
    }

    .globe-canvas-wrap {
        height: 340px;
        min-height: 320px;
    }

    .globe-stats-panel {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .globe-stat-card {
        padding: 16px;
    }

    .globe-locations-pills {
        max-height: 210px;
    }

    .globe-counter {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .globe-locations-pills {
        grid-template-columns: 1fr;
        max-height: 220px;
    }
}

