/* COLOURS */
:root {
    --colour-cyan: #22d3ee;
    --colour-white: #FFFFFF;
    --colour-black: #000000;
    --colourStart: #0B1446;
    --colourMid: #1B5EF0;
    --colourEnd: #35F2FF;
}

/* GLOBE CONTAINER */
.globe-section {
    position: relative;
    min-height: 520px;
    background: linear-gradient(135deg, var(--colourStart) 0%, var(--colourMid) 50%, var(--colourEnd) 100%);
    overflow: hidden;
}

.globe-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/attached_assets/stock_images/shipping_containers__2874f5a5.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    z-index: 0;
}

.globe {
    position: relative;
    width: 100%;
    height: 520px;
}

.globe .globe-list {
    z-index: 10;
    position: absolute;
    left: 0;
    top: 0;
    list-style: none;
    display: block;
    opacity: 0;
    transition: opacity 3s cubic-bezier(0.175, 0.885, 0.320, 1.275);
}

.globe .globe-list.active {
    opacity: 1;
}

.globe .globe-list > li {
    opacity: 0.4;
    position: absolute;
    margin-left: -8px;
    margin-top: -8px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--colour-cyan);
    transition: opacity 1s cubic-bezier(0.175, 0.885, 0.320, 1.275);
}

.globe .globe-list > li.active {
    opacity: 1;
    margin-left: -12px;
    margin-top: -12px;
    width: 24px;
    height: 24px;
}

.globe .globe-list > li:before {
    content: "";
    opacity: 0.5;
    pointer-events: none;
    position: absolute;
    left: 50%;
    top: 50%;
    margin-left: -8px;
    margin-top: -8px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--colour-cyan);
    animation: pulse 2s infinite linear;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { opacity: 0.5; }
    100% { opacity: 0; transform: scale(2); }
}

.globe .globe-list > li.active:before {
    margin-left: -12px;
    margin-top: -12px;
    width: 24px;
    height: 24px;
}

.globe .globe-list > li.active,
.globe .globe-list > li.active:before {
    background: var(--colour-white);
}

.globe .globe-list .text {
    position: absolute;
    opacity: 0.8;
    right: 21px;
    top: 50%;
    display: block;
    font-size: 14px;
    line-height: 14px;
    font-weight: 600;
    text-align: right;
    text-shadow: -1px -1px 0 var(--colour-black), 1px -1px 0 var(--colour-black), -1px 1px 0 var(--colour-black), 1px 1px 0 var(--colour-black);
    color: var(--colour-white);
    white-space: nowrap;
    transform: translateY(-50%);
}

.globe .globe-list > li.active .text {
    opacity: 1;
    right: 29px;
    font-size: 20px;
    line-height: 20px;
    font-weight: 700;
}

.globe .globe-canvas {
    z-index: 1;
    position: absolute;
    left: 0;
    top: 0;
}

.globe svg {
    height: 100%;
    width: 100%;
    opacity: 0.3;
    animation: rotation 18s linear infinite;
}

.svg-wrapper {
    opacity: 0;
    display: inline-block;
    position: absolute;
    width: 76vh;
    max-width: 520px;
    height: 76%;
    left: 0;
    right: 0;
    top: 12%;
    margin: auto;
    transform: scale(0.5);
    transition: opacity 1s ease-out 1.6s, transform 1s ease-out 1.6s;
    filter: drop-shadow(0 0 30px rgba(34, 211, 238, 0.3));
}

.svg-wrapper.active {
    opacity: 1;
    transform: none;
}

@keyframes rotation {
    0% { transform: scaleX(-1) rotate(360deg); }
    100% { transform: scaleX(-1) rotate(0deg); }
}

/* TWO COLUMN LAYOUT */
.global-presence-container {
    display: grid;
    grid-template-columns: minmax(300px, 1fr) minmax(300px, 1fr);
    gap: 3rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: clamp(2.5rem, 5vw, 4rem);
    position: relative;
    z-index: 10;
}

.presence-info {
    color: rgba(255, 255, 255, 0.95);
    z-index: 20;
    position: relative;
    padding: 0;
    animation: fadeInLeft 1s ease-out;
    border-left: 3px solid transparent;
    border-image: linear-gradient(180deg, var(--colour-cyan) 0%, transparent 100%);
    border-image-slice: 1;
    padding-left: 2rem;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.presence-info h2 {
    font-size: clamp(2.8rem, 4vw + 1rem, 4.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 1rem;
}

.presence-info h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--colour-cyan);
    box-shadow: 0 0 10px var(--colour-cyan);
}

.presence-info p {
    font-size: clamp(1.1rem, 1vw + 1rem, 1.5rem);
    line-height: 1.7;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    font-weight: 400;
    letter-spacing: 0.3px;
}

.presence-stats-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.presence-stats-list li {
    padding: 1rem 1.25rem;
    margin-bottom: 0.875rem;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(18px);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    font-size: clamp(0.95rem, 0.5vw + 0.8rem, 1.1rem);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.25);
    font-weight: 500;
}

.presence-stats-list li:hover {
    transform: translateX(10px) translateY(-2px);
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.35);
}

.presence-stats-list li:last-child {
    margin-bottom: 0;
}

.stat-icon {
    font-size: clamp(1.5rem, 2vw, 2rem);
    min-width: 2rem;
}

.stat-value {
    font-weight: 700;
    color: var(--colour-cyan);
    font-size: clamp(2rem, 3vw + 1rem, 2.75rem);
    text-shadow: 0 0 15px rgba(34, 211, 238, 0.5);
}

/* Responsive Design */
@media (max-width: 968px) {
    .global-presence-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: clamp(2rem, 8vw, 3rem);
    }
    
    .globe {
        height: 380px;
        max-height: 380px;
    }
    
    .presence-info {
        padding-left: 1.5rem;
    }
    
    .svg-wrapper {
        width: 60vh;
    }
}

@media (max-width: 640px) {
    .globe {
        height: 360px;
        max-height: 360px;
    }
    
    .globe-section {
        min-height: auto;
    }
    
    .svg-wrapper {
        width: 50vh;
    }
}
