/* ===================================
   GLOBAL PRESENCE & VALUE PROPOSITION
   =================================== */

.global-presence {
  position: relative;
  padding: 120px 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f8f9fa 100%);
  overflow: hidden;
}

/* Background Animated Elements */
.global-bg-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.bg-globe {
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(146, 47, 22, 0.03), transparent 70%);
  border-radius: 50%;
  animation: rotateGlobe 60s linear infinite;
}

.bg-dots {
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  background-image: radial-gradient(circle, rgba(10, 14, 41, 0.05) 1px, transparent 1px);
  background-size: 20px 20px;
  animation: moveDots 30s linear infinite;
}

@keyframes rotateGlobe {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes moveDots {
  0%, 100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(50px, 50px);
  }
}

/* Section Header */
.section-header {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 80px;
}

.section-label {
  display: inline-block;
  padding: 8px 24px;
  background: linear-gradient(135deg, rgba(146, 47, 22, 0.1), rgba(146, 47, 22, 0.05));
  border: 1px solid rgba(146, 47, 22, 0.2);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  color: var(--brick);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 20px;
  line-height: 1.2;
}

.section-description {
  font-size: 18px;
  line-height: 1.7;
  color: #4a5568;
}

/* ===================================
   MAIN CONTENT GRID
   =================================== */

.global-content-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

/* ===================================
   INTERACTIVE WORLD MAP
   =================================== */

.map-container {
  position: relative;
}

.map-wrapper {
  position: relative;
  background: white;
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(10, 14, 41, 0.05);
}

.world-map {
  position: relative;
  width: 100%;
  margin-bottom: 30px;
}

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

/* Continents */
.continent {
  fill: #e5e7eb;
  stroke: #d1d5db;
  stroke-width: 1;
  transition: all 0.3s ease;
  cursor: pointer;
}

.continent:hover {
  fill: rgba(146, 47, 22, 0.1);
  stroke: var(--brick);
  stroke-width: 2;
}

/* Office Markers */
.office-marker {
  fill: var(--brick);
  stroke: white;
  stroke-width: 2;
  cursor: pointer;
  transition: all 0.3s ease;
  filter: drop-shadow(0 4px 8px rgba(146, 47, 22, 0.3));
}

.office-marker:hover {
  fill: var(--navy);
  transform: scale(1.3);
  filter: drop-shadow(0 6px 12px rgba(10, 14, 41, 0.4));
}

.office-marker.active {
  fill: #fbbf24;
  animation: markerBounce 2s ease-in-out infinite;
}

@keyframes markerBounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

/* Pulsing Effect */
.office-pulse {
  fill: var(--brick);
  opacity: 0;
  animation: pulse 2s ease-out infinite;
}

.pulse-2 {
  animation-delay: 1s;
}

@keyframes pulse {
  0% {
    opacity: 0.8;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(3);
  }
}

/* Connection Lines */
.connection-line {
  stroke: var(--brick);
  stroke-width: 1;
  animation: dashFlow 3s linear infinite;
}

@keyframes dashFlow {
  to {
    stroke-dashoffset: -20;
  }
}

/* Map Stats Overlay */
.map-stats {
  display: flex;
  justify-content: space-around;
  gap: 20px;
  margin-top: 30px;
  padding-top: 30px;
  border-top: 2px solid rgba(10, 14, 41, 0.05);
}

.map-stat-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 20px;
  background: linear-gradient(135deg, rgba(146, 47, 22, 0.05), rgba(146, 47, 22, 0.02));
  border-radius: 12px;
  flex: 1;
  transition: all 0.3s ease;
}

.map-stat-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(146, 47, 22, 0.15);
}

.map-stat-item .stat-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 12px;
  color: var(--brick);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.stat-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-number {
  font-size: 28px;
  font-weight: 800;
  color: var(--navy);
  font-family: var(--font-heading);
}

.stat-number::after {
  content: '+';
  color: var(--brick);
}

.stat-label {
  font-size: 13px;
  color: #6b7280;
  font-weight: 600;
}

/* Office Tooltip */
.office-tooltip {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 20px 25px;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  min-width: 250px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 100;
  border: 2px solid var(--brick);
}

.office-tooltip.active {
  opacity: 1;
  pointer-events: all;
}

.tooltip-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 8px 0;
}

.tooltip-address {
  font-size: 14px;
  color: #6b7280;
  margin: 0 0 12px 0;
}

.tooltip-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #059669;
  font-weight: 600;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Map Legend */
.map-legend {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 20px;
  padding: 15px;
  background: rgba(10, 14, 41, 0.02);
  border-radius: 12px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #4a5568;
  font-weight: 600;
}

.legend-marker {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.legend-marker.headquarters {
  background: #fbbf24;
}

.legend-marker.office {
  background: var(--brick);
}

.legend-marker.partner {
  background: var(--navy);
}

/* ===================================
   VALUE PROPOSITIONS
   =================================== */

.value-propositions {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.value-card {
  display: flex;
  gap: 20px;
  background: white;
  padding: 25px;
  border-radius: 16px;
  border: 1px solid rgba(10, 14, 41, 0.08);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.value-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--brick), #a83a20);
  transform: scaleY(0);
  transition: transform 0.4s ease;
}

.value-card:hover {
  transform: translateX(8px);
  box-shadow: 0 8px 30px rgba(146, 47, 22, 0.15);
  border-color: var(--brick);
}

.value-card:hover::before {
  transform: scaleY(1);
}

.value-icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(146, 47, 22, 0.1), rgba(146, 47, 22, 0.05));
  border-radius: 14px;
  color: var(--brick);
  transition: all 0.4s ease;
}

.value-card:hover .value-icon {
  background: var(--brick);
  color: white;
  transform: rotate(10deg) scale(1.1);
  box-shadow: 0 8px 20px rgba(146, 47, 22, 0.3);
}

.value-content h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 10px 0;
}

.value-content p {
  font-size: 14px;
  line-height: 1.7;
  color: #6b7280;
  margin: 0 0 15px 0;
}

.value-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.feature-tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(10, 14, 41, 0.05);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  color: var(--navy);
  transition: all 0.3s ease;
}

.value-card:hover .feature-tag {
  background: rgba(146, 47, 22, 0.1);
  color: var(--brick);
}

/* ===================================
   BOTTOM CTA
   =================================== */

.global-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 50px 60px;
  background: linear-gradient(135deg, var(--navy), #1a1f4a);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(10, 14, 41, 0.3);
}

.global-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(146, 47, 22, 0.3), transparent);
  border-radius: 50%;
  animation: ctaPulse 4s ease-in-out infinite;
}

@keyframes ctaPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.8;
  }
}

.cta-content {
  position: relative;
  z-index: 1;
  color: white;
}

.cta-content h3 {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 800;
  margin: 0 0 10px 0;
}

.cta-content p {
  font-size: 16px;
  opacity: 0.9;
  margin: 0;
}

.global-cta .btn {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 36px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 12px;
  transition: all 0.3s ease;
  border: none;
  font-family: var(--font-body);
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brick), #a83a20);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(146, 47, 22, 0.4);
}

.btn-primary svg {
  transition: transform 0.3s ease;
}

.btn-primary:hover svg {
  transform: translateX(5px);
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 1200px) {
  .global-content-grid {
    gap: 40px;
  }
  
  .section-title {
    font-size: 42px;
  }
}

@media (max-width: 1024px) {
  .global-presence {
    padding: 100px 0;
  }
  
  .global-content-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  
  .section-title {
    font-size: 38px;
  }
  
  .map-wrapper {
    padding: 30px;
  }
  
  .value-propositions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .global-presence {
    padding: 80px 0;
  }
  
  .section-title {
    font-size: 32px;
  }
  
  .section-description {
    font-size: 16px;
  }
  
  .map-wrapper {
    padding: 25px;
  }
  
  .map-stats {
    flex-direction: column;
    gap: 15px;
  }
  
  .value-propositions {
    grid-template-columns: 1fr;
  }
  
  .value-card {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }
  
  .value-icon {
    margin: 0 auto;
  }
  
  .global-cta {
    flex-direction: column;
    text-align: center;
    padding: 40px 30px;
  }
  
  .cta-content h3 {
    font-size: 26px;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .global-presence {
    padding: 60px 0;
  }
  
  .section-label {
    font-size: 11px;
    padding: 6px 18px;
  }
  
  .section-title {
    font-size: 26px;
  }
  
  .section-description {
    font-size: 15px;
  }
  
  .map-wrapper {
    padding: 20px;
  }
  
  .map-legend {
    flex-direction: column;
    gap: 10px;
  }
  
  .value-card {
    padding: 15px;
  }
  
  .value-icon {
    width: 50px;
    height: 50px;
  }
  
  .value-content h3 {
    font-size: 16px;
  }
  
  .value-content p {
    font-size: 13px;
  }
  
  .global-cta {
    padding: 30px 20px;
  }
  
  .cta-content h3 {
    font-size: 22px;
  }
  
  .cta-content p {
    font-size: 14px;
  }
}

/* ===================================
   ACCESSIBILITY
   =================================== */

.value-card:focus-within {
  outline: 3px solid var(--brick);
  outline-offset: 3px;
}

.office-marker:focus {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .office-pulse,
  .bg-globe,
  .bg-dots,
  .status-dot,
  .office-marker.active {
    animation: none !important;
  }
}