/* =============================================
   HERO SECTION - CINEMATIC ORBIT
   Self-contained styles — does NOT affect other sections
   ============================================= */

/* --- Initial Preloader --- */
.initial-preloader {
  position: fixed;
  inset: 0;
  background: var(--color-dark-green);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.initial-preloader__logo {
  width: 80px;
  animation: preloaderPulse 2s ease-in-out infinite;
}

@keyframes preloaderPulse {
  0%, 100% { opacity: 0.3; transform: scale(0.95); }
  50% { opacity: 1; transform: scale(1.05); }
}

/* --- Intro Screen Container --- */
.hero-orbit {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-dark-green);
  z-index: 9000;
  cursor: pointer;
  transition: opacity 1.5s ease, visibility 1.5s ease;
}

/* --- Hover Background Container & Layers --- */
.hero-orbit__bg-image {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-orbit__bg-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.6s ease;
  will-change: opacity; /* Force hardware acceleration */
}

.hero-orbit__bg-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 5, 0.25);
  pointer-events: none;
}

/* --- Architect Sketch Background --- */
.hero-orbit__sketch-bg {
  position: absolute;
  inset: 0;
  z-index: 1; /* Below particles, above dark bg */
  background-image: url('../images/architect_sketch.png');
  background-size: cover;
  background-position: center;
  opacity: 0.15; /* Subtle presence */
  mix-blend-mode: screen; /* Blend the pencil lines beautifully */
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.hero-orbit.is-hovering .hero-orbit__sketch-bg {
  opacity: 0;
}

/* --- Ambient Glow --- */
.hero-orbit::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 700px;
  height: 700px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(238, 217, 162, 0.03) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* --- Particle Canvas --- */
.hero-orbit__particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.hero-orbit.is-hovering .hero-orbit__particles {
  opacity: 0.2;
}

/* --- Center Content --- */
.hero-orbit__center {
  position: relative;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  pointer-events: none;
  max-width: 460px;
  padding: 0 20px;
}

.hero-orbit__center > * {
  pointer-events: auto;
}

.hero-orbit__center,
.hero-orbit__top-left,
.hero-orbit__bottom-left {
  transition: opacity 0.5s ease, filter 0.5s ease;
}

.hero-orbit.is-hovering .hero-orbit__center,
.hero-orbit.is-hovering .hero-orbit__top-left,
.hero-orbit.is-hovering .hero-orbit__bottom-left {
  opacity: 0.1;
  filter: blur(8px);
}

/* --- Corner Content --- */
.hero-orbit__top-left {
  position: absolute;
  top: 60px;
  left: 60px;
  z-index: 20;
  pointer-events: none;
  text-align: left;
}

.hero-orbit__bottom-left {
  position: absolute;
  bottom: 60px;
  left: 60px;
  z-index: 20;
  pointer-events: none;
  text-align: left;
  max-width: 380px;
}

.hero-orbit__top-left > *, .hero-orbit__bottom-left > * {
  pointer-events: auto;
}

/* --- Logo --- */
.hero-orbit__logo {
  width: 280px;
  height: auto;
  margin: 0;
  opacity: 0;
  filter: brightness(1.1) drop-shadow(0 0 30px rgba(238, 217, 162, 0.15));
}

/* --- Title --- */
.hero-orbit__title {
  font-family: var(--font-serif, 'Cormorant Garamond', serif);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 400;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: #f5f0e8;
  margin: 0;
  line-height: 1.15;
  opacity: 0;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6);
}

.hero-orbit__subheading {
  font-family: var(--font-sans, 'Raleway', sans-serif);
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(214, 195, 144, 0.8);
  margin: 8px 0 0 0;
  opacity: 0;
}

.hero-orbit__title sup {
  font-size: 0.4em;
  vertical-align: super;
  opacity: 0.5;
  font-weight: 300;
}

/* --- Tagline --- */
.hero-orbit__tagline {
  font-family: var(--font-sans, 'Raleway', sans-serif);
  font-size: clamp(12px, 1.1vw, 15px);
  font-weight: 300;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(214, 195, 144, 0.65);
  line-height: 1.8;
  margin: 0;
  max-width: 380px;
  opacity: 0;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
}

.hero-orbit__click-text {
  font-family: var(--font-sans, 'Raleway', sans-serif);
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--color-gold, #eed9a2);
  opacity: 0;
  text-transform: uppercase;
  margin-top: 15px;
}

/* --- CTA Button --- */
.hero-orbit__cta {
  display: inline-block;
  font-family: var(--font-sans, 'Raleway', sans-serif);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--color-gold, #eed9a2);
  border: 1px solid rgba(238, 217, 162, 0.3);
  padding: 16px 42px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.4s ease, color 0.4s ease, transform 0.3s ease;
  cursor: none;
  opacity: 0;
  text-decoration: none;
}

.hero-orbit__cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(238, 217, 162, 0.08) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.hero-orbit__cta:hover {
  border-color: rgba(238, 217, 162, 0.6);
  color: #f5ebd0;
  transform: translateY(-2px);
}

.hero-orbit__cta:hover::before {
  opacity: 1;
}

/* --- Orbit Container --- */
.hero-orbit__ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  z-index: 5;
  pointer-events: none;
}

/* --- Orbit Card --- */
.hero-orbit__card {
  position: absolute;
  width: 130px;
  height: 170px;
  border-radius: 10px;
  overflow: hidden;
  pointer-events: auto;
  cursor: none;
  will-change: transform;
  /* Glass/premium appearance */
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.5),
    0 2px 8px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: box-shadow 0.5s ease, opacity 0.3s ease;
}

.hero-orbit__card.is-dimmed {
  opacity: 0.1 !important;
}

.hero-orbit__card.is-highlighted {
  opacity: 1 !important;
}

.hero-orbit__card:hover {
  box-shadow:
    0 12px 48px rgba(0, 0, 0, 0.6),
    0 4px 12px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero-orbit__card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.hero-orbit__card:hover img {
  transform: scale(1.08);
}

/* --- Glass overlay on cards --- */
.hero-orbit__card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.06) 0%,
    transparent 40%,
    rgba(0, 0, 0, 0.15) 100%
  );
  pointer-events: none;
  border-radius: 10px;
}

/* --- Scroll Indicator --- */
.hero-orbit__scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.hero-orbit__scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--color-gold, #eed9a2));
  animation: heroScrollPulse 2s ease-in-out infinite;
}

@keyframes heroScrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.8); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* --- Parallax Layer --- */
.hero-orbit__parallax {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

/* =============================================
   RESPONSIVE - HERO ORBIT
   ============================================= */
@media (max-width: 1024px) {
  .hero-orbit__card {
    width: 110px;
    height: 144px;
    border-radius: 8px;
  }

  .hero-orbit__logo {
    width: 110px;
  }

  .hero-orbit__top-left {
    top: 40px;
    left: 40px;
  }
  
  .hero-orbit__bottom-left {
    bottom: 40px;
    left: 40px;
  }
}

@media (max-width: 768px) {
  .hero-orbit {
    min-height: 100vh;
  }

  .hero-orbit__card {
    width: 85px;
    height: 112px;
    border-radius: 7px;
  }

  .hero-orbit__logo {
    width: 90px;
  }

  .hero-orbit__top-left {
    top: 30px;
    left: 20px;
  }
  
  .hero-orbit__bottom-left {
    bottom: 30px;
    left: 20px;
  }

  .hero-orbit__title {
    letter-spacing: 4px;
  }

  .hero-orbit__tagline {
    letter-spacing: 1.5px;
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .hero-orbit__card {
    width: 68px;
    height: 90px;
    border-radius: 6px;
  }

  .hero-orbit__logo {
    width: 75px;
  }

  .hero-orbit__top-left {
    top: 20px;
    left: 15px;
  }
  
  .hero-orbit__bottom-left {
    bottom: 20px;
    left: 15px;
  }

  .hero-orbit__title {
    font-size: 24px;
    letter-spacing: 3px;
  }

  .hero-orbit__tagline {
    font-size: 10px;
    letter-spacing: 1px;
  }

  .hero-orbit__click-text {
    font-size: 9px;
  }
}
