/* ==========================================================================
   Hero Section Styles - NextEscaype Travel Ecosystem
   Dual Device Product Showcase (Desktop, Tablet & Mobile Perfected)
   ========================================================================== */

#hero {
  position: relative;
  width: 100%;
  max-width: 100vw;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 7.5rem 0 4rem 0;
  background: 
    radial-gradient(circle at 10% 20%, rgba(234, 244, 255, 0.9) 0%, transparent 45%),
    radial-gradient(circle at 90% 80%, rgba(219, 234, 254, 0.6) 0%, transparent 40%),
    linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
  overflow: hidden;
}

/* Subtle background tech grid */
.hero-ambient-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(#CBD5E1 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.35;
  pointer-events: none;
}

.hero-glow-orb {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 123, 255, 0.12) 0%, transparent 70%);
  top: 15%;
  right: 5%;
  filter: blur(50px);
  pointer-events: none;
  animation: floatOrb 12s ease-in-out infinite alternate;
}

@media (max-width: 1024px) {
  .hero-glow-orb {
    display: none !important;
  }
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-30px, 40px) scale(1.1); }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
  position: relative;
  z-index: 2;
  width: 100%;
}

/* Left Hero Copy */
.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  z-index: 3;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: var(--ne-primary-light);
  border: 1px solid rgba(0, 123, 255, 0.2);
  border-radius: var(--ne-radius-full);
  color: var(--ne-primary-dark);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.hero-tag .tag-dot {
  width: 8px;
  height: 8px;
  background: var(--ne-primary);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--ne-primary);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

.hero-title {
  font-size: clamp(2.75rem, 5.2vw, 4.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--ne-text-main);
  margin-bottom: 1.35rem;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--ne-primary) 0%, var(--ne-primary-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.65;
  color: var(--ne-text-secondary);
  max-width: 560px;
  margin-bottom: 2.25rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--ne-border);
  width: 100%;
}

/* Right Hero Visuals / Devices */
.hero-visuals {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 640px;
  width: 100%;
}

/* Master Stage containing both phones and surrounding badges */
.hero-phone-stage {
  position: relative;
  width: 340px;
  height: 630px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  animation: heroFloat 6s ease-in-out infinite;
}

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

/* Primary Phone Mockup (Discovery Feed) */
.hero-phone-stage .android-phone.phone-hero {
  position: relative;
  z-index: 15;
  width: 285px;
  height: 608px;
  margin: 0;
  flex-shrink: 0;
}

/* Secondary Preview Tilted Phone (Araku Valley Itinerary) */
.hero-mini-preview {
  position: absolute;
  width: 225px;
  height: 480px;
  right: -40px;
  bottom: 20px;
  border-radius: 34px;
  padding: 7px;
  background: #0B1120;
  border: 2px solid #334155;
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.35);
  z-index: 10;
  opacity: 0.95;
  transform: rotate(7deg);
  transition: all 0.4s ease;
  overflow: hidden;
  display: block;
}

.hero-mini-preview:hover {
  transform: rotate(2deg) scale(1.04);
  opacity: 1;
  z-index: 20;
}

.hero-mini-preview .phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 27px;
  overflow: hidden;
  background: #000;
  position: relative;
}

.hero-mini-preview .phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.hero-mini-preview .phone-speaker {
  position: absolute;
  top: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 3px;
  background: #1E293B;
  border-radius: 2px;
  z-index: 25;
  pointer-events: none;
}

.hero-mini-preview .phone-camera-hole {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: #0B1120;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  z-index: 25;
  pointer-events: none;
}

/* Floating Satellite UI Badges in Hero */
.hero-floating-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--ne-radius-lg);
  padding: 0.65rem 0.95rem;
  box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 123, 255, 0.1);
  z-index: 25;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  transition: transform 0.3s ease;
  white-space: nowrap;
}

.hero-floating-card:hover {
  transform: translateY(-4px) scale(1.03);
}

.hero-card-left {
  top: 18%;
  left: -245px;
  animation: heroCardFloatLeft 7s ease-in-out infinite alternate;
}

.hero-card-right {
  bottom: 16%;
  left: -245px;
  right: auto;
  animation: heroCardFloatRight 8s ease-in-out infinite alternate;
}

.hero-card-top-right {
  top: -42px;
  right: -35px;
  animation: heroCardFloatTop 6.5s ease-in-out infinite alternate;
}


@keyframes heroCardFloatLeft {
  0% { transform: translateY(0) rotate(-2deg); }
  100% { transform: translateY(-10px) rotate(0deg); }
}

@keyframes heroCardFloatRight {
  0% { transform: translateY(0) rotate(2deg); }
  100% { transform: translateY(10px) rotate(-1deg); }
}

@keyframes heroCardFloatTop {
  0% { transform: translateY(0) rotate(1deg); }
  100% { transform: translateY(-8px) rotate(-2deg); }
}

.hero-card-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--ne-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.hero-card-icon.blue {
  background: var(--ne-primary-light);
  color: var(--ne-primary);
}

.hero-card-icon.green {
  background: var(--ne-success-light);
  color: var(--ne-success);
}

.hero-card-icon.dark {
  background: #0F172A;
  color: #38BDF8;
}

.hero-card-info h4 {
  font-size: 0.86rem;
  font-weight: 700;
  margin: 0;
  color: var(--ne-text-main);
  line-height: 1.2;
}

.hero-card-info p {
  font-size: 0.74rem;
  color: var(--ne-text-secondary);
  margin: 0;
  font-weight: 500;
  line-height: 1.2;
}

/* ==========================================================================
   TABLET RESPONSIVE (768px - 1024px)
   Keep 2-column balanced layout so hero images remain side-by-side above fold!
   ========================================================================== */
@media (min-width: 768px) and (max-width: 1024px) {
  #hero {
    min-height: auto;
    padding: 6.25rem 0 3.5rem 0;
  }

  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem;
    align-items: center;
    text-align: left;
  }

  .hero-copy {
    align-items: flex-start;
  }

  .hero-title {
    font-size: clamp(2rem, 3.8vw, 2.75rem);
    line-height: 1.1;
    margin-bottom: 1rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    line-height: 1.55;
    margin-bottom: 1.5rem;
    max-width: 100%;
  }

  .hero-actions {
    justify-content: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
  }

  .hero-actions .btn-playstore {
    padding: 0.55rem 1.15rem;
  }

  .hero-actions .btn-ne-secondary {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
  }

  .hero-trust-badges {
    justify-content: flex-start;
    gap: 0.5rem;
    padding-top: 1rem;
  }

  .hero-trust-badges .ne-trust-badge {
    padding: 0.38rem 0.75rem;
    font-size: 0.78rem;
  }

  .hero-visuals {
    min-height: 520px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .hero-phone-stage {
    width: 290px;
    height: 520px;
    margin: 0 auto;
  }

  .hero-phone-stage .android-phone.phone-hero {
    width: 240px;
    height: 512px;
  }

  .hero-mini-preview {
    display: block !important;
    width: 190px;
    height: 405px;
    right: -25px;
    bottom: 20px;
    border-radius: 28px;
    padding: 6px;
  }

  .hero-mini-preview .phone-screen {
    border-radius: 22px;
  }

  /* On tablet: Hide overlapping floating cards from phone face */
  .hero-floating-card {
    display: none !important;
  }
}

/* ==========================================================================
   MOBILE RESPONSIVE (< 767.98px)
   Compact top copy so hero devices are clearly visible and prominent!
   ========================================================================== */
@media (max-width: 767.98px) {
  #hero {
    min-height: auto;
    padding: 5rem 0 2.5rem 0;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    text-align: center;
  }

  .hero-copy {
    align-items: center;
    text-align: center;
  }

  .hero-tag {
    padding: 0.3rem 0.8rem;
    font-size: 0.74rem;
    margin-bottom: 0.75rem;
  }

  .hero-title {
    font-size: clamp(2rem, 7.5vw, 2.55rem);
    line-height: 1.12;
    margin-bottom: 0.75rem;
  }

  .hero-subtitle {
    font-size: 0.94rem;
    line-height: 1.5;
    margin-bottom: 1.25rem;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 0.65rem;
    margin-bottom: 1.25rem;
    width: 100%;
  }

  .hero-actions .btn-playstore {
    padding: 0.55rem 0.95rem;
    border-radius: var(--ne-radius-md);
  }

  .hero-actions .btn-playstore svg,
  .hero-actions .btn-playstore .playstore-icon {
    width: 22px;
    height: 22px;
  }

  .btn-playstore-sub {
    font-size: 0.58rem !important;
  }

  .btn-playstore-main {
    font-size: 0.85rem !important;
  }

  .hero-actions .btn-ne-secondary {
    padding: 0.65rem 1rem;
    font-size: 0.86rem;
  }

  .hero-trust-badges {
    justify-content: center;
    gap: 0.45rem;
    padding-top: 0.75rem;
    width: 100%;
  }

  .hero-trust-badges .ne-trust-badge {
    padding: 0.32rem 0.65rem;
    font-size: 0.74rem;
  }

  .hero-trust-badges .ne-trust-badge svg {
    width: 15px;
    height: 15px;
  }

  /* Hero Visuals Stage on Mobile */
  .hero-visuals {
    min-height: 470px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 0.5rem;
  }

  .hero-phone-stage {
    position: relative;
    width: 280px;
    height: 460px;
    margin: 0 auto;
  }

  .hero-phone-stage .android-phone.phone-hero {
    width: 205px;
    height: 437px;
    border-radius: 28px;
    padding: 6px;
    margin: 0;
  }

  .hero-phone-stage .android-phone.phone-hero .phone-screen {
    border-radius: 22px;
  }

  .hero-phone-stage .android-phone.phone-hero .phone-glare {
    border-radius: 22px;
  }

  /* Secondary Phone (Araku Valley Itinerary) - Kept visible on mobile! */
  .hero-mini-preview {
    display: block !important;
    position: absolute;
    width: 170px;
    height: 362px;
    right: 0;
    bottom: 12px;
    z-index: 10;
    border-radius: 24px;
    padding: 5px;
    border: 2.5px solid #1E293B;
    background: #0B1120;
    transform: rotate(8deg);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    opacity: 0.95;
  }

  .hero-mini-preview .phone-screen {
    border-radius: 19px;
  }

  .hero-mini-preview .phone-speaker {
    width: 22px;
    height: 2.5px;
    top: 2px;
  }

  .hero-mini-preview .phone-camera-hole {
    width: 5px;
    height: 5px;
    top: 6px;
  }

  /* On mobile: Hide floating overlay cards completely so phones have 0% obstruction */
  .hero-floating-card {
    display: none !important;
  }
}

/* ==========================================================================
   EXTRA-SMALL MOBILE (< 420px)
   ========================================================================== */
@media (max-width: 420px) {
  #hero {
    padding-top: 4.6rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn-playstore,
  .hero-actions .btn-ne-secondary {
    width: 100%;
    justify-content: center;
  }

  .hero-visuals {
    min-height: 430px;
  }

  .hero-phone-stage {
    width: 260px;
    height: 420px;
  }

  .hero-phone-stage .android-phone.phone-hero {
    width: 185px;
    height: 394px;
    border-radius: 26px;
    padding: 5px;
  }

  .hero-phone-stage .android-phone.phone-hero .phone-screen {
    border-radius: 21px;
  }

  .hero-mini-preview {
    width: 152px;
    height: 324px;
    right: 0;
    bottom: 8px;
    border-radius: 22px;
    padding: 4px;
  }

  .hero-mini-preview .phone-screen {
    border-radius: 18px;
  }
}
