/* ============================================
   PREMIUM HERO CAROUSEL
   ============================================ */

.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  overflow: hidden;
  background: var(--color-charcoal);
}

.hero-carousel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  z-index: 2;
}

.hero-slide-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 8s ease;
}

.hero-slide.active .hero-slide-image {
  transform: scale(1.05);
}

/* Hero Overlay */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(37, 37, 34, 0.4) 0%,
    rgba(37, 37, 34, 0.2) 50%,
    rgba(37, 37, 34, 0.6) 100%
  );
  z-index: 3;
}

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 4;
  height: 100%;
  display: flex;
  align-items: center;
  color: var(--color-white);
  padding: var(--header-height) var(--spacing-lg) var(--spacing-xl);
}

.hero-content-inner {
  max-width: 900px;
  animation: heroContentFadeIn 1s ease forwards;
  animation-delay: 0.5s;
  opacity: 0;
}

@keyframes heroContentFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content h1 {
  color: var(--color-white);
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1.1;
  margin-bottom: var(--spacing-lg);
  letter-spacing: -0.02em;
  animation: heroHeadingReveal 1s ease forwards;
  animation-delay: 0.7s;
  opacity: 0;
  -webkit-text-stroke: 2px black;
  text-shadow: 4px 4px 8px rgba(0,0,0,0.8);
  paint-order: stroke fill;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 400;
  letter-spacing: 0.15em;
  color: var(--color-bronze);
  margin-bottom: var(--spacing-sm);
  animation: heroBrandReveal 1s ease forwards;
  animation-delay: 0.5s;
  opacity: 0;
}

@keyframes heroBrandReveal {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroHeadingReveal {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 2vw, 1.375rem);
  line-height: 1.6;
  max-width: 600px;
  margin-bottom: var(--spacing-xl);
  animation: heroTextReveal 1s ease forwards;
  animation-delay: 0.9s;
  opacity: 0;
}

@keyframes heroTextReveal {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-cta {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
  animation: heroCTAReveal 1s ease forwards;
  animation-delay: 1.1s;
  opacity: 0;
}

@keyframes heroCTAReveal {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-cta .btn {
  background: var(--color-white);
  color: var(--color-charcoal);
  border-color: var(--color-white);
}

.hero-cta .btn:hover {
  background: var(--color-bronze);
  border-color: var(--color-bronze);
  color: var(--color-white);
}

.hero-cta .btn-primary {
  background: var(--color-bronze);
  color: var(--color-white);
  border-color: var(--color-bronze);
}

.hero-cta .btn-primary:hover {
  background: var(--color-white);
  color: var(--color-charcoal);
  border-color: var(--color-white);
}

/* Carousel Controls */
.carousel-controls {
  position: absolute;
  bottom: var(--spacing-xl);
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
  pointer-events: auto;
}

.carousel-arrow {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  backdrop-filter: blur(10px);
  pointer-events: auto;
}

.carousel-arrow:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}

.carousel-arrow svg {
  width: 20px;
  height: 20px;
  stroke: var(--color-white);
}

.carousel-indicators {
  display: flex;
  gap: var(--spacing-sm);
}

.carousel-indicator {
  width: 12px;
  height: 12px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: all var(--transition-fast);
  background: transparent;
}

.carousel-indicator.active {
  background: var(--color-white);
  border-color: var(--color-white);
}

.carousel-indicator:hover {
  border-color: var(--color-white);
}

/* Architectural Background in Hero */
.hero-architectural-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.hero-architectural-bg svg {
  width: 100%;
  height: 100%;
}

.blueprint-line {
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 1;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: drawLine 3s ease forwards;
}

.blueprint-rect {
  stroke: rgba(255, 255, 255, 0.05);
  stroke-width: 1;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: drawLine 3s ease forwards;
  animation-delay: 1s;
}

.blueprint-line:nth-child(1) { animation-delay: 0.1s; }
.blueprint-line:nth-child(2) { animation-delay: 0.2s; }
.blueprint-line:nth-child(3) { animation-delay: 0.3s; }
.blueprint-line:nth-child(4) { animation-delay: 0.4s; }
.blueprint-line:nth-child(5) { animation-delay: 0.5s; }
.blueprint-line:nth-child(6) { animation-delay: 0.6s; }
.blueprint-line:nth-child(7) { animation-delay: 0.7s; }
.blueprint-line:nth-child(8) { animation-delay: 0.8s; }
.blueprint-line:nth-child(9) { animation-delay: 1.5s; }
.blueprint-line:nth-child(10) { animation-delay: 1.6s; }
.blueprint-line:nth-child(11) { animation-delay: 1.7s; }

@keyframes drawLine {
  to {
    stroke-dashoffset: 0;
  }
}

/* Geometric Squares in Hero */
.hero-geo-square {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 3;
  animation: heroSquareFloat 6s ease-in-out infinite;
}

.hero-geo-square-1 {
  top: 20%;
  right: 10%;
  width: 200px;
  height: 200px;
  animation-delay: 0s;
}

.hero-geo-square-2 {
  bottom: 30%;
  left: 5%;
  width: 150px;
  height: 150px;
  animation-delay: 2s;
}

.hero-geo-square-3 {
  top: 15%;
  left: 15%;
  width: 100px;
  height: 100px;
  animation-delay: 4s;
}

@keyframes heroSquareFloat {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.15;
  }
  50% {
    transform: translateY(-20px) rotate(5deg);
    opacity: 0.25;
  }
}

/* Mobile Responsive */
@media (max-width: 767px) {
  .hero {
    min-height: 600px;
  }

  .hero-content {
    padding: var(--header-height) var(--spacing-md) var(--spacing-xl);
  }

  .hero-content h1 {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .hero-content p {
    font-size: 1rem;
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .carousel-controls {
    bottom: var(--spacing-lg);
  }

  .carousel-arrow {
    width: 40px;
    height: 40px;
  }

  .hero-geo-square {
    display: none;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .hero-slide-image {
    transition: none;
  }

  .hero-slide.active .hero-slide-image {
    transform: none;
  }

  .hero-content-inner,
  .hero-content h1,
  .hero-content p,
  .hero-cta {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .hero-geo-square {
    animation: none;
  }
}
