/* ==========================================================================
   SORO 3D Hero Room Section & Wall Logo Styling
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&display=swap');

/* Main Hero Room Container */
.hero.hero-3d {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 700px;
  max-height: 1080px;
  overflow: hidden;
  background-color: #080808;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Background Room Image Layer */
.hero-3d__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transition: opacity 1s ease-in-out;
}

.hero-3d__bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, 0.75) 100%),
              linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, transparent 25%, transparent 75%, rgba(0, 0, 0, 0.6) 100%);
  z-index: 2;
}

/* Wall Logo Container (CORETURC Live Logo Projection) */
.wall-logo-container {
  position: absolute;
  top: 22%;
  left: 18%;
  z-index: 2;
  transform: perspective(1000px) rotateY(-28deg) rotateX(0deg) skewY(12deg) scale(0.55);
  transform-style: preserve-3d;
  pointer-events: auto;
  cursor: pointer;
  opacity: 0.82;
}

.coreturc-logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 50px;
  letter-spacing: 4px;
  -webkit-font-smoothing: antialiased;
  user-select: none;
  filter: drop-shadow(1px 2px 2px rgba(0, 0, 0, 0.85));
}

.coreturc-logo .mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  line-height: 1;
}

.coreturc-logo .letter {
  display: inline-block;
  background: linear-gradient(100deg, #b9b6ae 0%, #ffffff 45%, #ffffff 55%, #8c8a84 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  will-change: transform;
}

.coreturc-logo .e-letter {
  display: inline-flex;
  align-items: center;
  width: 0.62em;
  height: 0.62em;
  margin: 0 0.02em;
}

.coreturc-logo .e-letter svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.coreturc-logo .e-bar-fill {
  fill: #ffffff;
  opacity: 0;
}

.coreturc-logo .e-bar-line {
  fill: none;
  stroke: #ffffff;
  stroke-width: 7;
  stroke-linecap: square;
}

.coreturc-sweep {
  position: absolute;
  top: -20%;
  left: -30%;
  width: 22%;
  height: 140%;
  background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, 0.15) 50%, transparent 100%);
  pointer-events: none;
  transform: skewX(-15deg);
}

/* 3D Canvas Container */
#hero-3d-canvas-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  cursor: grab;
}

#hero-3d-canvas-container:active {
  cursor: grabbing;
}

/* Navigation Arrow & Zoom Controls Group */
.hero-3d__controls {
  position: absolute;
  top: 50%;
  left: 3.5rem;
  transform: translateY(-50%);
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0;
  border-radius: 0 !important;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.hero-3d__control-divider {
  width: 1px;
  height: 46px;
  background: rgba(255, 255, 255, 0.12);
  margin: 0;
}

.hero-3d__arrow {
  width: 46px;
  height: 46px;
  border-radius: 0 !important;
  background: transparent;
  border: none;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hero-3d__arrow:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  transform: none;
}

/* Right Side Floating Product Detail Info Panel */
.hero-3d__info-panel {
  position: absolute;
  top: 50%;
  right: 3.5rem;
  transform: translateY(-50%);
  z-index: 20;
  width: 380px;
  max-width: calc(100vw - 4rem);
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0 !important;
  padding: 2.2rem;
  color: #ffffff;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-3d__category {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 0.4rem;
}

.hero-3d__title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.hero-3d__title {
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: #ffffff;
  margin-bottom: 0.6rem;
}

.hero-3d__expand-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.hero-3d__expand-btn:hover {
  background: #ffffff;
  color: #000000;
  transform: scale(1.08);
}

.hero-3d__rating {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.hero-3d__rating .stars {
  color: #f5a623;
  letter-spacing: 2px;
  font-size: 0.85rem;
}

.hero-3d__rating .reviews-count {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
}

.hero-3d__desc {
  font-size: 0.85rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 1.4rem;
}

/* Minimal Specs Table */
.hero-3d__specs-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.6rem;
  font-size: 0.8rem;
}

.hero-3d__specs-table .specs-row {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-3d__specs-table .specs-row:last-child {
  border-bottom: none;
}

.hero-3d__specs-table .specs-label {
  text-align: left;
  padding: 0.6rem 0;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 400;
  width: 32%;
}

.hero-3d__specs-table .specs-value {
  text-align: right;
  padding: 0.6rem 0;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

/* Action Button */
.hero-3d__actions {
  display: flex;
  gap: 0.75rem;
}

.hero-3d__whatsapp-btn {
  width: 100%;
  padding: 1.1rem 1.6rem;
  border-radius: 0 !important;
  background: #ffffff;
  color: #000000;
  border: none;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  transition: all 0.25s ease;
  box-shadow: none;
}

.hero-3d__whatsapp-btn:hover {
  background: rgba(255, 255, 255, 0.9);
  color: #000000;
  transform: none;
}

/* Dots Indicator */
.hero-3d__dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  gap: 0.6rem;
}

.hero-3d__dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-3d__dots .dot.active {
  background: #ffffff;
  width: 28px;
  border-radius: 0;
}

/* Full Detail Modal (Mobile) */
.hero-3d__modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.hero-3d__modal.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-3d__modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero-3d__modal-content {
  position: relative;
  width: 100%;
  max-width: 520px;
  background: rgba(18, 18, 18, 0.94);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0;
  padding: 2.2rem 1.8rem;
  color: #ffffff;
  z-index: 2;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.6);
  max-height: 85vh;
  overflow-y: auto;
}

.hero-3d__modal.active .hero-3d__modal-content {
  transform: translateY(0);
}

.hero-3d__modal-close {
  position: absolute;
  top: 1.2rem;
  right: 1.4rem;
  width: 36px;
  height: 36px;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 1.4rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
}

.hero-3d__modal-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

.hero-3d__modal-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

/* Responsive Rules */
@media (max-width: 1024px) {
  .wall-logo-container {
    top: 16%;
    left: 10%;
    transform: perspective(1000px) rotateY(-28deg) skewY(12deg) scale(0.42);
  }

  .hero-3d__content-layer {
    padding: 1rem 0;
    width: 100%;
    z-index: 20;
    pointer-events: auto;
  }

  .hero-3d__info-panel {
    right: 2rem;
    width: 340px;
    padding: 1.8rem;
  }

  .hero-3d__controls {
    left: 2rem;
  }
}

@media (max-width: 768px) {
  .hero.hero-3d {
    height: 100vh;
    min-height: 600px;
    max-height: none;
    flex-direction: column;
    padding: 0;
    justify-content: flex-start;
  }

  #hero-3d-canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
  }

  .hero-3d__controls {
    position: absolute;
    top: auto;
    bottom: 2rem;
    left: 1.5rem;
    transform: none;
    z-index: 10;
    padding: 0;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0 !important;
  }

  .hero-3d__arrow {
    width: 40px;
    height: 40px;
  }

  .hero-3d__dots {
    bottom: 2.3rem;
    right: 1.5rem;
    left: auto;
    transform: none;
  }

  .hero-3d__expand-btn {
    display: flex;
  }

  .hero-3d__desktop-details {
    display: none;
  }

  .hero-3d__info-panel {
    position: absolute;
    top: 7.5rem;
    left: 1rem;
    right: 1rem;
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0.8rem 1.1rem;
    border-radius: 0 !important;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
  }

  .hero-3d__title {
    font-size: 1.15rem;
    margin-bottom: 0;
  }

  .hero-3d__category {
    font-size: 0.58rem;
    margin-bottom: 0.15rem;
  }

  .hero-3d__actions {
    margin-top: 0.6rem;
  }

  .hero-3d__whatsapp-btn {
    padding: 0.65rem 1rem;
    font-size: 0.76rem;
  }

  .wall-logo-container {
    top: 14%;
    left: 6%;
    transform: perspective(1000px) rotateY(-28deg) skewY(12deg) scale(0.35);
  }
}

@media (max-width: 480px) {
  .hero-3d__info-panel {
    top: 7.2rem;
    left: 0.8rem;
    right: 0.8rem;
    padding: 0.75rem 1rem;
  }

  .hero-3d__title {
    font-size: 1.05rem;
  }

  .hero-3d__controls {
    bottom: 1.5rem;
    left: 1rem;
  }

  .hero-3d__dots {
    bottom: 1.8rem;
    right: 1rem;
  }

  .wall-logo-container {
    top: 13%;
    left: 4%;
    transform: perspective(1000px) rotateY(-28deg) skewY(12deg) scale(0.28);
  }
}

/* Touch Action Lock for Mobile Scroll Pass-through */
#hero-3d-canvas-container canvas {
  touch-action: pan-y !important;
}

/* Elegant Progress Loading Line */
.hero-3d__loader-bar-wrap {
  position: absolute;
  bottom: 5.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 15;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.hero-3d__loader-bar-wrap.active {
  opacity: 1;
}

.hero-3d__loader-track {
  width: 150px;
  height: 2px;
  background: rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}

.hero-3d__loader-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #c5a059, #ffffff);
  transition: width 0.15s ease-out;
}

.hero-3d__loader-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}
