/* =====================
   INTERACTIVE GLOBE SECTION
   ===================== */

.globe-section {
  min-height: auto;
  background: #000;
  position: relative;
  padding: 3rem 1.5rem 3rem;
  overflow: hidden;
}

.globe-section .space-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse at 30% 20%, rgba(60, 20, 100, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(20, 60, 100, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(212, 175, 55, 0.02) 0%, transparent 40%),
    linear-gradient(180deg, #000 0%, #050510 50%, #000 100%);
  pointer-events: none;
}

#bg-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.globe-section-header {
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
  z-index: 10;
}

.globe-section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  background: linear-gradient(135deg, #d4af37 0%, #f4e4a6 25%, #d4af37 50%, #aa8a2e 75%, #d4af37 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  letter-spacing: 3px;
  animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
  to { background-position: 200% center; }
}

.globe-section-header p {
  color: #666;
  font-size: 0.95rem;
  max-width: 500px;
  margin: 0 auto;
  letter-spacing: 0.5px;
}

.globe-main-content {
  position: relative;
  z-index: 5;
  margin-bottom: 2.5rem;
}

.globe-bottom-section {
  position: relative;
  z-index: 10;
  margin-top: 1rem;
  text-align: center;
}

.globe-section .globe-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

.globe-section .globe-wrapper {
  position: relative;
  perspective: 1000px;
  flex-shrink: 0;
}

#globe-canvas {
  width: 500px;
  height: 500px;
  cursor: grab;
  position: relative;
  z-index: 5;
}

#globe-canvas:active {
  cursor: grabbing;
}

.globe-reflection {
  position: absolute;
  bottom: -50px;
  left: 50%;
  transform: translateX(-50%);
  width: 340px;
  height: 50px;
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.1) 0%, transparent 100%);
  filter: blur(15px);
  border-radius: 50%;
  pointer-events: none;
}

.orbital-system {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.orbital-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(212, 175, 55, 0.08);
  border-radius: 50%;
  transform-style: preserve-3d;
}

.orbital-ring-1 {
  width: 550px;
  height: 550px;
  margin: -275px 0 0 -275px;
  animation: orbit1 40s linear infinite;
  transform: rotateX(70deg) rotateY(20deg);
}

.orbital-ring-2 {
  width: 600px;
  height: 600px;
  margin: -300px 0 0 -300px;
  animation: orbit2 60s linear infinite reverse;
  transform: rotateX(60deg) rotateY(-30deg);
  border-style: dashed;
  opacity: 0.5;
}

.orbital-ring::before {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  background: radial-gradient(circle, #d4af37, transparent);
  border-radius: 50%;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 15px #d4af37, 0 0 30px #d4af37;
}

.orbital-ring-2::before {
  width: 5px;
  height: 5px;
  top: auto;
  bottom: 0;
}

@keyframes orbit1 {
  from { transform: rotateX(70deg) rotateY(20deg) rotateZ(0deg); }
  to { transform: rotateX(70deg) rotateY(20deg) rotateZ(360deg); }
}

@keyframes orbit2 {
  from { transform: rotateX(60deg) rotateY(-30deg) rotateZ(0deg); }
  to { transform: rotateX(60deg) rotateY(-30deg) rotateZ(360deg); }
}

.globe-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 20;
  transition: opacity 0.8s ease;
}

.loading-ring {
  width: 80px;
  height: 80px;
  border: 2px solid rgba(212, 175, 55, 0.1);
  border-top-color: #d4af37;
  border-radius: 50%;
  animation: spin 1.2s linear infinite;
  margin: 0 auto 1rem;
  position: relative;
}

.loading-ring::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  bottom: 8px;
  border: 2px solid rgba(212, 175, 55, 0.1);
  border-bottom-color: #d4af37;
  border-radius: 50%;
  animation: spin 0.8s linear infinite reverse;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.globe-loading p {
  color: #d4af37;
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.globe-loading.hidden {
  opacity: 0;
  pointer-events: none;
}

.marker-tooltip {
  position: fixed;
  background: rgba(10, 10, 15, 0.95);
  border: 1px solid rgba(212, 175, 55, 0.5);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.8rem;
  color: #d4af37;
  pointer-events: none;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 100;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.marker-tooltip.visible {
  opacity: 1;
  transform: translateY(0);
}

.continent-info {
  flex: 0 0 320px;
  width: 320px;
  background: linear-gradient(145deg, rgba(12, 12, 18, 0.98), rgba(8, 8, 12, 0.99));
  border-radius: 20px;
  padding: 0;
  backdrop-filter: blur(30px);
  opacity: 0;
  transform: translateX(30px) scale(0.95);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10;
  overflow: hidden;
}

.continent-info.visible {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.continent-info::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.5), transparent);
}

.continent-info::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 20px;
  pointer-events: none;
}

.info-image-container {
  position: relative;
  height: 150px;
  overflow: hidden;
}

.info-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.3s ease;
  transform: scale(1.1);
}

.info-image.loaded {
  opacity: 1;
  transform: scale(1);
}

.info-image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(0deg, rgba(12, 12, 18, 1) 0%, rgba(12, 12, 18, 0.5) 30%, transparent 60%);
  pointer-events: none;
}

.info-image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.05), rgba(20, 20, 30, 1));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  position: absolute;
  top: 0;
  left: 0;
}

.info-content {
  padding: 1.2rem 1.5rem 1.5rem;
  position: relative;
}

.continent-badge {
  position: absolute;
  top: -40px;
  right: 1.5rem;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #d4af37, #f4d470);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.4);
  border: 3px solid rgba(12, 12, 18, 1);
}

.continent-info h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: #fff;
  margin-bottom: 0.2rem;
}

.globe-subtitle {
  color: #d4af37;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.subtitle-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.3), transparent);
}

.continent-info .description {
  color: #888;
  line-height: 1.7;
  margin-bottom: 1rem;
  font-size: 0.85rem;
}

.globe-stats {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 0.8rem 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.stat-item {
  text-align: center;
  flex: 1;
}

.stat-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: #d4af37;
  font-family: 'Playfair Display', serif;
}

.stat-label {
  font-size: 0.6rem;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0.1rem;
}

.continent-info .highlights h4 {
  color: #555;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.6rem;
}

.continent-info .highlight-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-bottom: 1.2rem;
}

.continent-info .highlight-tag {
  background: rgba(212, 175, 55, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.15);
  color: #bbb;
  padding: 0.3rem 0.6rem;
  border-radius: 15px;
  font-size: 0.7rem;
  transition: all 0.3s ease;
}

.continent-info .highlight-tag:hover {
  background: rgba(212, 175, 55, 0.15);
  color: #d4af37;
  transform: translateY(-2px);
}

.globe-explore-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  background: linear-gradient(135deg, #d4af37 0%, #c9a227 100%);
  color: #000;
  padding: 0.8rem 1.5rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.globe-explore-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: left 0.6s ease;
}

.globe-explore-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(212, 175, 55, 0.4);
}

.globe-explore-btn:hover::before {
  left: 100%;
}

.globe-explore-btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.globe-explore-btn:hover svg {
  transform: translateX(4px);
}

.default-message {
  text-align: center;
  padding: 3rem 1.5rem;
}

.default-message .globe-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  position: relative;
}

.default-message .globe-icon::before {
  content: '🌍';
  font-size: 3rem;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: floatGlobe 4s ease-in-out infinite;
}

.default-message .globe-icon::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 15px;
  background: radial-gradient(ellipse, rgba(212, 175, 55, 0.3), transparent);
  filter: blur(4px);
  animation: shadowPulse 4s ease-in-out infinite;
}

@keyframes floatGlobe {
  0%, 100% { transform: translate(-50%, -50%) rotate(-5deg); }
  50% { transform: translate(-50%, -60%) rotate(5deg); }
}

@keyframes shadowPulse {
  0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.3; }
  50% { transform: translateX(-50%) scale(0.8); opacity: 0.2; }
}

.default-message h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 0.4rem;
}

.default-message p {
  color: #444;
  font-size: 0.85rem;
}

.globe-legend {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  position: relative;
  z-index: 10;
  max-width: 800px;
  margin: 0 auto;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.legend-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), transparent);
  border-radius: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.legend-item:hover::before, .legend-item.active::before {
  opacity: 1;
}

.legend-item:hover, .legend-item.active {
  border-color: rgba(212, 175, 55, 0.4);
  transform: translateY(-2px);
}

.legend-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d4af37;
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.5);
  position: relative;
  z-index: 1;
}

.legend-item span {
  font-size: 0.7rem;
  color: #999;
  position: relative;
  z-index: 1;
}

.legend-item:hover span, .legend-item.active span {
  color: #fff;
}

.globe-hint {
  text-align: center;
  margin-bottom: 1rem;
  color: #444;
  font-size: 0.75rem;
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
}

.globe-hint span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.globe-hint i {
  color: #d4af37;
}

/* Globe Responsive - Tablet */
@media (max-width: 1024px) {
  .globe-section .globe-container {
    flex-direction: column;
    gap: 2rem;
  }

  .globe-main-content {
    margin-bottom: 2rem;
  }

  .continent-info {
    flex: none;
    width: 100%;
    max-width: 450px;
  }

  #globe-canvas {
    width: 440px;
    height: 440px;
  }

  .orbital-ring-1 {
    width: 490px;
    height: 490px;
    margin: -245px 0 0 -245px;
  }

  .orbital-ring-2 {
    width: 530px;
    height: 530px;
    margin: -265px 0 0 -265px;
  }
}

/* Globe Responsive - Mobile */
@media (max-width: 768px) {
  .globe-section {
    padding: 2rem 1rem 2.5rem;
  }

  .globe-section-header {
    margin-bottom: 1.5rem;
  }

  .globe-section-header h2 {
    font-size: 1.8rem;
    letter-spacing: 2px;
  }

  .globe-section-header p {
    font-size: 0.85rem;
    padding: 0 1rem;
  }

  .globe-main-content {
    margin-bottom: 2rem;
  }

  .globe-section .globe-container {
    min-height: auto;
  }

  #globe-canvas {
    width: 320px;
    height: 320px;
  }

  .orbital-ring-1 {
    width: 360px;
    height: 360px;
    margin: -180px 0 0 -180px;
  }

  .orbital-ring-2 {
    width: 400px;
    height: 400px;
    margin: -200px 0 0 -200px;
  }

  .globe-reflection {
    width: 240px;
    bottom: -30px;
  }

  .continent-info {
    position: relative;
    right: auto;
    top: auto;
    transform: translateX(30px) scale(0.95);
    width: calc(100% - 1rem);
    max-width: none;
    margin: 1.5rem 0.5rem 0;
    border-radius: 16px;
  }

  .continent-info.visible {
    transform: translateX(0) scale(1);
  }

  .continent-info::after {
    border-radius: 16px;
  }

  .info-image-container {
    height: 120px;
  }

  .info-content {
    padding: 1rem;
  }

  .continent-badge {
    width: 42px;
    height: 42px;
    font-size: 1.2rem;
    top: -35px;
    right: 1rem;
  }

  .continent-info h3 {
    font-size: 1.3rem;
  }

  .globe-subtitle {
    font-size: 0.6rem;
  }

  .continent-info .description {
    font-size: 0.8rem;
    line-height: 1.6;
    margin-bottom: 0.8rem;
  }

  .globe-stats {
    gap: 0.5rem;
    padding: 0.6rem 0;
    margin-bottom: 0.8rem;
  }

  .stat-value {
    font-size: 1rem;
  }

  .stat-label {
    font-size: 0.55rem;
  }

  .continent-info .highlights h4 {
    font-size: 0.6rem;
    margin-bottom: 0.5rem;
  }

  .continent-info .highlight-list {
    gap: 0.25rem;
    margin-bottom: 1rem;
  }

  .continent-info .highlight-tag {
    padding: 0.25rem 0.5rem;
    font-size: 0.65rem;
  }

  .globe-explore-btn {
    padding: 0.7rem 1rem;
    font-size: 0.7rem;
    border-radius: 10px;
  }

  .default-message {
    padding: 2rem 1rem;
  }

  .default-message .globe-icon {
    width: 60px;
    height: 60px;
  }

  .default-message .globe-icon::before {
    font-size: 2.5rem;
  }

  .default-message h3 {
    font-size: 1.2rem;
  }

  .default-message p {
    font-size: 0.8rem;
  }

  .globe-legend {
    gap: 0.4rem;
    padding: 0 0.5rem;
  }

  .legend-item {
    padding: 0.4rem 0.7rem;
    border-radius: 15px;
  }

  .legend-dot {
    width: 5px;
    height: 5px;
  }

  .legend-item span {
    font-size: 0.6rem;
  }

  .globe-hint {
    flex-wrap: wrap;
    gap: 0.6rem;
    font-size: 0.7rem;
    margin-bottom: 0.8rem;
  }

  .globe-bottom-section {
    margin-top: 0.5rem;
  }

  .loading-ring {
    width: 60px;
    height: 60px;
  }

  .globe-loading p {
    font-size: 0.65rem;
  }
}

/* Globe Responsive - Small Mobile */
@media (max-width: 380px) {
  #globe-canvas {
    width: 240px;
    height: 240px;
  }

  .orbital-ring-1 {
    width: 280px;
    height: 280px;
    margin: -140px 0 0 -140px;
  }

  .orbital-ring-2 {
    width: 300px;
    height: 300px;
    margin: -150px 0 0 -150px;
  }

  .globe-section-header h2 {
    font-size: 1.5rem;
  }

  .legend-item span {
    font-size: 0.55rem;
  }

  .legend-item {
    padding: 0.35rem 0.5rem;
  }
}