.hero {
  position: relative;
  width: 100%;
  min-height: 500px;
  height: 80vh;
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* Background */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
/* .hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 70% at 80% 50%,
      rgba(20, 3, 255, 0.349) 0%,
      rgb(60, 193, 255) 40%,
      transparent 70%),
    radial-gradient(ellipse 40% 50% at 78% 52%,
      rgb(0, 195, 255) 0%,
      transparent 65%);
  z-index: 1;
  pointer-events: none;
} */
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}
/* light overlay on mobile */
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.85);
  z-index: 1;
  display: none;
}

/* ── LAYOUT ── */
.hero-inner {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

/* ── LEFT: TEXT ── */
.hero-text {
  max-width: 530px;
  flex: 0 0 auto;
}
.hero-text h1 {
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.1;
  color: #111;
  font-weight: 900;
  margin-bottom: 20px;
}
.hero-text h1 .accent { color: var(--primary); }
.hero-text p {
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.75;
  color: #333;
  margin-bottom: 36px;
}
.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
  padding: 14px 30px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(232,70,26,0.25);
  transition: transform .2s, background .2s, box-shadow .2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-primary:hover { background: var(--primary-container); transform: scale(1.05); box-shadow: 0 12px 28px rgba(232,70,26,0.35); }
.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
  padding: 13px 30px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: transform .2s, background .2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-outline:hover { background: rgba(232,70,26,0.06); transform: scale(1.05); }

/* ── RIGHT: GLOBE ANIMATION ── */
.globe-wrapper {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.global-area {
  position: relative;
  width: 480px;
  height: 480px;
}

/* Orbit ring */
.orbit {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  /* border: 2px dashed rgba(255, 255, 255, 1); */
  animation: rotate 35s linear infinite;
}
.orbit::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px dashed rgba(255,255,255,1);

  transform: scale(0.91); /* smaller ring */
}
/* Earth */
.earth {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 350px;
  height: 350px;
  border-radius: 50%;
  animation: float 5s ease-in-out infinite;
  filter: drop-shadow(0 18px 36px rgba(0,0,0,0.18));
}
.earth img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* Flag bubbles */
.flag {
  position: absolute;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: #fff;
  padding: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 8px 22px rgba(0,0,0,0.10);
  animation: reverseRotate 35s linear infinite;
  transition: transform .3s;
}
.flag:hover { z-index: 20; }
.flag img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
/* Flag emoji fallback */
.flag-emoji {
  font-size: 34px;
  line-height: 1;
  border-radius: 50%;
}

/* Positions around the 480px orbit */
.flag1 { top: -5px;  left: 50%; transform: translateX(-50%); animation: reverseRotateX 35s linear infinite; }
.flag2 { top: 44px;  right: 52px; }
.flag3 { top: 196px; right: -8px; }
.flag4 { bottom: 80px;  right: 30px; }
.flag5 { bottom: -5px; left: 50%; transform: translateX(-50%); animation: reverseRotateX 35s linear infinite; }
.flag6 { bottom: 80px;  left: 30px; }
.flag7 { top: 196px; left: -8px; }
.flag8 { top: 44px;  left: 52px; }

/* Glow pulse ring */
.earth::after {
  /* content: ''; */
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 2px solid rgba(232,70,26,0.25);
  animation: pulse-ring 3s ease-in-out infinite;
  pointer-events: none;
}

/* ── KEYFRAMES ── */
@keyframes rotate       { from { transform: rotate(0deg);    } to { transform: rotate(360deg);  } }
@keyframes reverseRotate{ from { transform: rotate(0deg);    } to { transform: rotate(-360deg); } }
@keyframes reverseRotateX {
  from { transform: translateX(-50%) rotate(0deg);    }
  to   { transform: translateX(-50%) rotate(-360deg); }
}
@keyframes float {
  0%,100% { transform: translate(-50%,-50%) translateY(0px);   }
  50%      { transform: translate(-50%,-50%) translateY(-14px); }
}
@keyframes pulse-ring {
  0%,100% { opacity: 0.3; transform: scale(1);    }
  50%      { opacity: 0.8; transform: scale(1.06); }
}

/* ── RESPONSIVE ── */

/* Tablet / medium */
@media (max-width: 1024px) {
  /* .hero-bg::after {
    background:
      radial-gradient(ellipse 55% 70% at 75% 50%,
        rgba(20, 3, 255, 0.349) 0%,
        rgb(60, 193, 255) 40%,
        transparent 70%),
      radial-gradient(ellipse 40% 50% at 75% 50%,
        rgb(0, 195, 255) 0%,
        transparent 65%);
  } */
  .global-area { width: 380px; height: 380px; }
  .earth        { width: 230px; height: 230px; }
  .flag         { width: 54px;  height: 54px; }
  .flag2 { top: 34px;  right: 38px; }
  .flag3 { top: 150px; right: -6px; }
  .flag4 { bottom: 60px;  right: 18px; }
  .flag6 { bottom: 60px;  left: 18px; }
  .flag7 { top: 150px; left: -6px; }
  .flag8 { top: 34px;  left: 38px; }
  .flag-emoji { font-size: 26px; }
}

/* Small tablet */
@media (max-width: 860px) {
  /* .hero-bg::after {
    background:
      radial-gradient(ellipse 70% 50% at 50% 82%,
        rgba(20, 3, 255, 0.349) 0%,
        rgb(60, 193, 255) 40%,
        transparent 70%),
      radial-gradient(ellipse 60% 40% at 50% 82%,
        rgb(0, 195, 255) 0%,
        transparent 65%);
  } */
  .hero { height: auto; padding: 60px 0 50px; }
  .hero-bg-overlay { display: block; }
  .hero-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .hero-text { max-width: 100%; }
  .hero-btns { justify-content: center; }
  .global-area { width: 320px; height: 320px; }
  .earth        { width: 196px; height: 196px; }
  .flag         { width: 48px;  height: 48px; }
  .flag2 { top: 26px;  right: 28px; }
  .flag3 { top: 124px; right: -4px; }
  .flag4 { bottom: 44px;  right: 12px; }
  .flag6 { bottom: 44px;  left: 12px; }
  .flag7 { top: 124px; left: -4px; }
  .flag8 { top: 26px;  left: 28px; }
  .flag-emoji { font-size: 22px; }
}

/* Mobile */
@media (max-width: 480px) {
  /* .hero-bg::after {
    background:
      radial-gradient(ellipse 80% 50% at 50% 85%,
        rgba(20, 3, 255, 0.349) 0%,
        rgb(60, 193, 255) 40%,
        transparent 70%),
      radial-gradient(ellipse 70% 40% at 50% 85%,
        rgb(0, 195, 255) 0%,
        transparent 65%);
  } */
  .hero { padding: 48px 0 40px; }
  .hero-text h1 { font-size: 30px; }
  .global-area { width: 260px; height: 260px; }
  .earth        { width: 158px; height: 158px; }
  .flag         { width: 40px;  height: 40px; padding: 3px; }
  .flag2 { top: 18px;  right: 18px; }
  .flag3 { top: 98px; right: -3px; }
  .flag4 { bottom: 32px;  right: 6px; }
  .flag6 { bottom: 32px;  left: 6px; }
  .flag7 { top: 98px; left: -3px; }
  .flag8 { top: 18px;  left: 18px; }
  .flag-emoji { font-size: 18px; }
}