/* ============================================
   Where We Operate Section - Zencia.AI
   ============================================ */

/* ===== WHERE WE OPERATE SECTION ===== */
.where-we-operate-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #0f1419 50%, #082928 100%);
    padding: 120px 0;
    position: relative;
    overflow: hidden;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    margin-top: -1px;
    margin-bottom: 0;
}

/* Background Effects */
.where-we-operate-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 30% 20%, rgba(0, 217, 213, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(0, 139, 139, 0.06) 0%, transparent 50%);
    z-index: 1;
    pointer-events: none;
}

.where-we-operate-section .container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    box-sizing: border-box;
}

/* ===== SECTION HEADER ===== */
.operate-header {
    text-align: center;
    margin-bottom: 80px;
    animation: fadeInUp 0.8s ease-out;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, rgba(0, 217, 213, 0.1) 0%, rgba(0, 139, 139, 0.05) 100%);
    border: 1px solid rgba(0, 217, 213, 0.3);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #00D9D5;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.section-badge:hover {
    background: linear-gradient(135deg, rgba(0, 217, 213, 0.15) 0%, rgba(0, 139, 139, 0.08) 100%);
    border-color: rgba(0, 217, 213, 0.5);
    transform: translateY(-2px);
}

.badge-icon {
    width: 18px;
    height: 18px;
}

.operate-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    letter-spacing: -1px;
}

.operate-subtitle {
    font-size: clamp(1.1rem, 1.3vw, 1.25rem);
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}

/* ===== CONTENT GRID ===== */
.operate-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 5rem;
    align-items: start;
    margin-bottom: 80px;
}

/* ===== WORLD MAP ===== */
.map-container {
    position: relative;
}

.world-map-wrapper {
    position: relative;
    background: linear-gradient(135deg, rgba(0, 217, 213, 0.05) 0%, rgba(0, 139, 139, 0.03) 100%);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(0, 217, 213, 0.15);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.world-map-wrapper:hover {
    border-color: rgba(0, 217, 213, 0.3);
    box-shadow: 0 20px 40px rgba(0, 217, 213, 0.1);
}

.world-map {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 20px rgba(0, 217, 213, 0.1));
}

/* Map Continents */
.continent {
    fill: rgba(255, 255, 255, 0.1);
    stroke: rgba(255, 255, 255, 0.2);
    stroke-width: 1;
    transition: all 0.3s ease;
}

.continent:hover {
    fill: rgba(0, 217, 213, 0.15);
    stroke: rgba(0, 217, 213, 0.4);
}

/* Location Markers */
.location-marker {
    cursor: pointer;
    transition: all 0.3s ease;
}

.location-marker.active .marker-dot {
    fill: #00D9D5;
    filter: url(#glow);
}

.location-marker.expanding .marker-dot {
    fill: #FFB800;
    filter: url(#glow);
}

.marker-pulse {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    opacity: 0.6;
    animation: pulse 2s infinite;
}

.location-marker.active .marker-pulse {
    stroke: #00D9D5;
}

.location-marker.expanding .marker-pulse {
    stroke: #FFB800;
}

.marker-dot {
    stroke: #FFFFFF;
    stroke-width: 2;
    transition: all 0.3s ease;
}

.marker-label {
    fill: #FFFFFF;
    font-size: 12px;
    font-weight: 600;
    text-anchor: middle;
    pointer-events: none;
}

.expanding-label {
    fill: #FFB800;
    font-size: 10px;
    font-weight: 500;
    text-anchor: middle;
    pointer-events: none;
}

.location-marker:hover {
    transform: scale(1.1);
}

.location-marker:hover .marker-dot {
    stroke-width: 3;
}

@keyframes pulse {
    0% {
        r: 15;
        opacity: 0.6;
    }
    50% {
        r: 25;
        opacity: 0.2;
    }
    100% {
        r: 35;
        opacity: 0;
    }
}

/* Map Legend */
.map-legend {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #FFFFFF;
}

.legend-dot.active {
    background: #00D9D5;
}

.legend-dot.expanding {
    background: #FFB800;
}

/* ===== LOCATIONS LIST ===== */
.locations-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.location-card {
    background: linear-gradient(135deg, rgba(0, 217, 213, 0.05) 0%, rgba(0, 139, 139, 0.03) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.location-card:hover {
    background: linear-gradient(135deg, rgba(0, 217, 213, 0.1) 0%, rgba(0, 139, 139, 0.05) 100%);
    border-color: rgba(0, 217, 213, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 217, 213, 0.15);
}

.location-card.active {
    border-color: rgba(0, 217, 213, 0.2);
}

.location-card.expanding {
    border-color: rgba(255, 184, 0, 0.2);
    background: linear-gradient(135deg, rgba(255, 184, 0, 0.05) 0%, rgba(255, 184, 0, 0.03) 100%);
}

.location-card.expanding:hover {
    border-color: rgba(255, 184, 0, 0.4);
    background: linear-gradient(135deg, rgba(255, 184, 0, 0.1) 0%, rgba(255, 184, 0, 0.05) 100%);
}

.location-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.location-flag {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.location-info {
    flex: 1;
}

.location-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0 0 0.25rem 0;
}

.location-status {
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    display: inline-block;
}

.location-card.active .location-status {
    background: rgba(0, 217, 213, 0.15);
    color: #00D9D5;
}

.location-card.expanding .location-status {
    background: rgba(255, 184, 0, 0.15);
    color: #FFB800;
}

.location-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin: 0 0 1rem 0;
    font-size: 0.9rem;
}

.location-stats {
    display: flex;
    gap: 2rem;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: #00D9D5;
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.expansion-timeline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.timeline-text {
    font-size: 0.875rem;
    color: #FFB800;
    font-weight: 600;
    background: rgba(255, 184, 0, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 184, 0, 0.3);
}

/* ===== GLOBAL STATS ===== */
.global-stats {
    background: linear-gradient(135deg, rgba(0, 217, 213, 0.05) 0%, rgba(0, 139, 139, 0.03) 100%);
    border: 1px solid rgba(0, 217, 213, 0.15);
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    backdrop-filter: blur(10px);
}

.global-stats-header {
    margin-bottom: 3rem;
}

.global-stats-header h3 {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 700;
    color: #FFFFFF;
    margin: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.global-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.global-stat:hover {
    background: rgba(0, 217, 213, 0.08);
    border-color: rgba(0, 217, 213, 0.2);
    transform: translateY(-5px);
}

.stat-icon {
    width: 48px;
    height: 48px;
    padding: 12px;
    background: linear-gradient(135deg, rgba(0, 217, 213, 0.15) 0%, rgba(0, 139, 139, 0.1) 100%);
    border-radius: 12px;
    color: #00D9D5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon svg {
    width: 24px;
    height: 24px;
}

.stat-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.global-stat .stat-number {
    font-size: clamp(1.75rem, 2.5vw, 2.25rem);
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1;
}

.global-stat .stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

/* ===== ANIMATIONS ===== */
.operate-content {
    animation: fadeInUp 1s ease-out 0.3s backwards;
}

.global-stats {
    animation: fadeInUp 1s ease-out 0.6s backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .where-we-operate-section {
        padding: 100px 0;
    }
    
    .operate-content {
        gap: 3rem;
        margin-bottom: 60px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 1024px) {
    .where-we-operate-section .container {
        padding: 0 1.5rem;
    }
    
    .operate-header {
        margin-bottom: 60px;
    }
    
    .operate-content {
        gap: 2.5rem;
    }
    
    .world-map-wrapper {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .where-we-operate-section {
        padding: 80px 0;
    }
    
    .where-we-operate-section .container {
        padding: 0 1rem;
    }
    
    .operate-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 40px;
    }
    
    .operate-header {
        margin-bottom: 50px;
    }
    
    .world-map-wrapper {
        padding: 1rem;
        order: 2;
    }
    
    .locations-list {
        order: 1;
        gap: 1rem;
    }
    
    .location-card {
        padding: 1.25rem;
    }
    
    .location-stats {
        gap: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .global-stat {
        padding: 1rem;
    }
    
    .global-stats {
        padding: 2rem 1.5rem;
    }
    
    /* Simplify map labels on mobile */
    .marker-label {
        font-size: 10px;
    }
    
    .expanding-label {
        font-size: 8px;
    }
}

@media (max-width: 480px) {
    .location-card {
        padding: 1rem;
    }
    
    .location-header {
        gap: 0.75rem;
    }
    
    .location-flag {
        width: 35px;
        height: 35px;
        font-size: 1.25rem;
    }
    
    .location-name {
        font-size: 1.125rem;
    }
    
    .location-stats {
        gap: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }
    
    .global-stat {
        padding: 0.75rem;
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
        padding: 10px;
    }
    
    .stat-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .map-legend {
        bottom: 0.5rem;
        left: 0.5rem;
        padding: 0.75rem;
    }
    
    .legend-item {
        font-size: 0.8rem;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    .operate-content,
    .global-stats,
    .location-card:hover,
    .global-stat:hover {
        animation: none !important;
        transform: none !important;
    }
    
    .marker-pulse {
        animation: none !important;
    }
}

/* Focus states */
.location-card:focus-visible,
.global-stat:focus-visible {
    outline: 2px solid #00D9D5;
    outline-offset: 4px;
}

.location-marker:focus-visible {
    outline: 2px solid #00D9D5;
    outline-offset: 2px;
    border-radius: 50%;
}

/* ===== HIGH CONTRAST SUPPORT ===== */
@media (prefers-contrast: high) {
    .location-card,
    .global-stat,
    .world-map-wrapper,
    .global-stats {
        border-width: 2px;
        border-color: #00D9D5;
    }
    
    .section-badge {
        border-width: 2px;
        border-color: #00D9D5;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .where-we-operate-section {
        background: white !important;
        padding: 2rem 0;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .where-we-operate-section::before {
        display: none !important;
    }
    
    .operate-title,
    .location-name,
    .global-stat .stat-number {
        color: #333 !important;
    }
    
    .operate-subtitle,
    .location-description {
        color: #666 !important;
    }
    
    .section-badge {
        color: #00D9D5 !important;
        border-color: #00D9D5 !important;
    }
    
    .world-map {
        max-height: 300px;
    }
    
    .location-card,
    .global-stat {
        background: #f9f9f9 !important;
        border: 1px solid #ddd !important;
        break-inside: avoid;
        margin-bottom: 1rem;
    }
}

/* ===== INTERACTIVE MAP ENHANCEMENTS ===== */
.location-marker {
    transform-origin: center;
}

.location-marker.highlighted {
    animation: highlight 1s ease-in-out;
}

@keyframes highlight {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Card interaction with map */
.location-card.highlighted {
    background: linear-gradient(135deg, rgba(0, 217, 213, 0.15) 0%, rgba(0, 139, 139, 0.08) 100%);
    border-color: rgba(0, 217, 213, 0.4);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 217, 213, 0.2);
}
.operate-map-visual {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-top: 60px;
    overflow: hidden;
}

.map-visual {
    width: 100%;
    height: auto;
    display: block;
}

/* Show desktop image by default */
.map-visual-desktop {
    display: block;
}

.map-visual-mobile {
    display: none;
}

/* Show mobile image on smaller screens */
@media (max-width: 768px) {
    .map-visual-desktop {
        display: none;
    }
    
    .map-visual-mobile {
        display: block;
    }
    
    .operate-map-visual {
        margin-top: 40px;
    }
}

/* Add some subtle effects */
.map-visual {
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Optional: Add a subtle overlay for better integration */
.operate-map-visual::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 20%;
    background: linear-gradient(to bottom, rgba(8, 41, 40, 0), transparent);
    z-index: 1;
    pointer-events: none;
}

.operate-map-visual::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 20%;
    background: linear-gradient(to top, rgba(8, 41, 40, 0), transparent);
    z-index: 1;
    pointer-events: none;
}