/* ============================================================
   NOVAQYS Hero 360° Immersif — Styles
   ============================================================ */

/* ---- Reset & Base ---- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* ---- Hero 360 Container ---- */
.hero360 {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: #102A43;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  cursor: default;
  z-index: 1;
}

/* ---- Panorama Wrapper ---- */
.hero360__panorama-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 1;
}

/* ---- Panorama Layer ---- */
.hero360__panorama {
  position: absolute;
  top: 0;
  left: 0;
  width: 300vw;
  height: 100%;
  background-size: 100% 100%;
  background-position: center center;
  background-repeat: no-repeat;
  will-change: transform;
  transform-origin: center center;
}

/* ---- Overlay gradient ---- */
.hero360__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(10, 14, 23, 0.2) 0%, rgba(10, 14, 23, 0.6) 70%, rgba(10, 14, 23, 0.9) 100%);
}

/* ---- Digital Grid Overlay ---- */
.hero360__grid {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 180, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 180, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.5;
}

/* ---- Canvas Layer (particles, network) ---- */
.hero360__canvas {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

/* ---- Floating Icons ---- */
.hero360__icon {
  position: absolute;
  z-index: 5;
  font-size: 24px;
  pointer-events: none;
  opacity: 0.6;
  filter: drop-shadow(0 0 8px rgba(0, 180, 255, 0.3));
  animation: iconFloat 4s ease-in-out infinite;
}

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

/* ---- Central Globe ---- */
.hero360__globe {
  position: absolute;
  z-index: 6;
  top: 50%;
  left: 50%;
  width: 180px;
  height: 180px;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero360__globe-ring {
  position: absolute;
  inset: 0;
  border: 1.5px solid rgba(0, 180, 255, 0.25);
  border-radius: 50%;
  animation: globeRotate 12s linear infinite;
}

.hero360__globe-ring:nth-child(1) {
  border-color: rgba(0, 180, 255, 0.15);
  animation-duration: 12s;
}

.hero360__globe-ring:nth-child(2) {
  border-color: rgba(0, 180, 255, 0.1);
  animation-duration: 8s;
  animation-direction: reverse;
  width: 80%;
  height: 80%;
  top: 10%;
  left: 10%;
}

.hero360__globe-ring:nth-child(3) {
  border-color: rgba(0, 180, 255, 0.08);
  animation-duration: 6s;
  width: 60%;
  height: 60%;
  top: 20%;
  left: 20%;
}

.hero360__globe-ring:nth-child(4) {
  border: none;
  background: radial-gradient(circle, rgba(0, 180, 255, 0.06) 0%, transparent 70%);
  animation: globePulse 3s ease-in-out infinite;
  width: 140%;
  height: 140%;
  top: -20%;
  left: -20%;
}

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

@keyframes globePulse {
  0%, 100% { transform: scale(0.95); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

.hero360__globe-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60px;
  height: 60px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(0, 200, 255, 0.4), rgba(0, 100, 255, 0.15) 50%, transparent 70%);
  box-shadow: 0 0 40px rgba(0, 180, 255, 0.15), 0 0 80px rgba(0, 100, 255, 0.05);
  animation: coreBreathe 4s ease-in-out infinite;
}

@keyframes coreBreathe {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
  50% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
}

/* ---- Hotspots ---- */
.hero360__hotspot {
  position: absolute;
  z-index: 10;
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero360__hotspot:hover {
  transform: translate(-50%, -50%) scale(1.15);
  z-index: 20;
}

.hero360__hotspot-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 90px;
  padding: 10px 20px;
  background: rgba(10, 14, 23, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 180, 255, 0.2);
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  user-select: none;
}

.hero360__hotspot-btn::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 10px;
  background: conic-gradient(from 0deg, transparent, rgba(0, 180, 255, 0.3), transparent, rgba(0, 180, 255, 0.3), transparent);
  opacity: 0;
  transition: opacity 0.4s;
  z-index: -1;
}

.hero360__hotspot:hover .hero360__hotspot-btn {
  background: rgba(0, 40, 80, 0.8);
  border-color: rgba(0, 180, 255, 0.6);
  box-shadow: 0 0 25px rgba(0, 180, 255, 0.2), 0 0 60px rgba(0, 180, 255, 0.08);
  transform: scale(1.05);
}

.hero360__hotspot:hover .hero360__hotspot-btn::before {
  opacity: 1;
  animation: borderGlow 2s linear infinite;
}

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

.hero360__hotspot--center .hero360__hotspot-btn {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(0, 40, 80, 0.5);
  border-color: rgba(0, 180, 255, 0.15);
  font-size: 16px;
  box-shadow: 0 0 30px rgba(0, 180, 255, 0.05);
}

.hero360__hotspot--center:hover .hero360__hotspot-btn {
  box-shadow: 0 0 40px rgba(0, 180, 255, 0.2), 0 0 80px rgba(0, 180, 255, 0.1);
}

/* ---- Hotspot Pulsing Dot ---- */
.hero360__hotspot-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(0, 180, 255, 0.6);
  box-shadow: 0 0 10px rgba(0, 180, 255, 0.4);
}

.hero360__hotspot-dot::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(0, 180, 255, 0.3);
  animation: dotPulse 2s ease-out infinite;
}

@keyframes dotPulse {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(3.5); opacity: 0; }
}

/* ---- Tooltip ---- */
.hero360__tooltip {
  position: absolute;
  z-index: 30;
  min-width: 220px;
  max-width: 280px;
  padding: 16px 20px;
  background: rgba(10, 14, 23, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 180, 255, 0.25);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 180, 255, 0.05);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform: translateY(8px);
  pointer-events: none;
}

.hero360__tooltip--visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.hero360__tooltip-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(0, 180, 255, 0.8);
  margin-bottom: 6px;
}

.hero360__tooltip-name {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}

.hero360__tooltip-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
  margin-bottom: 12px;
}

.hero360__tooltip-btn {
  display: inline-block;
  padding: 6px 16px;
  background: linear-gradient(135deg, rgba(0, 180, 255, 0.2), rgba(0, 100, 255, 0.2));
  border: 1px solid rgba(0, 180, 255, 0.3);
  border-radius: 6px;
  color: rgba(0, 180, 255, 0.9);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s;
}

.hero360__tooltip-btn:hover {
  background: rgba(0, 180, 255, 0.2);
  border-color: rgba(0, 180, 255, 0.6);
  box-shadow: 0 0 15px rgba(0, 180, 255, 0.15);
}

/* ---- Scroll Indicator ---- */
.hero360__scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fadeInUp 1s ease 2s forwards;
}

.hero360__scroll-indicator span {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
}

.hero360__scroll-mouse {
  width: 24px;
  height: 38px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  position: relative;
}

.hero360__scroll-mouse::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 8px;
  background: rgba(0, 180, 255, 0.5);
  border-radius: 2px;
  animation: scrollWheel 1.5s ease-in-out infinite;
}

@keyframes scrollWheel {
  0% { transform: translateX(-50%) translateY(0); opacity: 1; }
  100% { transform: translateX(-50%) translateY(12px); opacity: 0; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateX(-50%) translateY(10px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ---- Light Rays ---- */
.hero360__light-rays {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}

.hero360__light-ray {
  position: absolute;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, rgba(0, 180, 255, 0.04), transparent);
  animation: raySweep 8s ease-in-out infinite;
}

.hero360__light-ray:nth-child(1) { left: 15%; animation-delay: 0s; }
.hero360__light-ray:nth-child(2) { left: 35%; animation-delay: 2s; }
.hero360__light-ray:nth-child(3) { left: 55%; animation-delay: 4s; }
.hero360__light-ray:nth-child(4) { left: 75%; animation-delay: 6s; }

@keyframes raySweep {
  0%, 100% { opacity: 0; transform: scaleY(0.5); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ---- Content Section (after hero) ---- */
.hero360__content {
  position: relative;
  z-index: 1;
  background: #102A43;
  color: #fff;
  min-height: 50vh;
  padding: 80px 40px;
}

.hero360__content-inner {
  max-width: 900px;
  margin: 0 auto;
}

.hero360__content h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #fff, rgba(0, 180, 255, 0.5));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero360__content p {
  font-size: 16px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 16px;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .hero360__hotspot-btn {
    min-width: 70px;
    padding: 8px 14px;
    font-size: 11px;
  }

  .hero360__hotspot--center .hero360__hotspot-btn {
    width: 80px;
    height: 80px;
    font-size: 12px;
  }

  .hero360__globe {
    width: 120px;
    height: 120px;
  }

  .hero360__globe-core {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 768px) {
  .hero360__hotspot-btn {
    min-width: 56px;
    padding: 6px 10px;
    font-size: 9px;
    letter-spacing: 1px;
    border-radius: 6px;
  }

  .hero360__hotspot--center .hero360__hotspot-btn {
    width: 60px;
    height: 60px;
    font-size: 10px;
  }

  .hero360__hotspot-dot {
    width: 5px;
    height: 5px;
  }

  .hero360__globe {
    width: 80px;
    height: 80px;
  }

  .hero360__globe-core {
    width: 28px;
    height: 28px;
  }

  .hero360__tooltip {
    min-width: 160px;
    max-width: 200px;
    padding: 12px 14px;
  }

  .hero360__tooltip-name {
    font-size: 14px;
  }

  .hero360__icon {
    font-size: 16px;
  }

  .hero360__scroll-indicator {
    bottom: 20px;
  }

  .hero360__content {
    padding: 40px 20px;
  }
}

@media (max-width: 480px) {
  .hero360__hotspot-btn {
    min-width: 44px;
    padding: 4px 8px;
    font-size: 8px;
    letter-spacing: 0.5px;
  }

  .hero360__hotspot--center .hero360__hotspot-btn {
    width: 48px;
    height: 48px;
    font-size: 8px;
  }

  .hero360__globe {
    width: 60px;
    height: 60px;
  }

  .hero360__globe-core {
    width: 22px;
    height: 22px;
  }

  .hero360__icon {
    font-size: 12px;
  }
}

/* ---- Page Loader ---- */
.hero360__loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #102A43;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.hero360__loader--hidden {
  opacity: 0;
  visibility: hidden;
}

.hero360__loader-ring {
  width: 48px;
  height: 48px;
  border: 2px solid rgba(0, 180, 255, 0.1);
  border-top-color: rgba(0, 180, 255, 0.6);
  border-radius: 50%;
  animation: loaderSpin 0.8s linear infinite;
}

@keyframes loaderSpin {
  to { transform: rotate(360deg); }
}