/* ============================================
   GEMCON — Hero Section
   ============================================ */

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* --- Hero Background Slideshow --- */
.hero-slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

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

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  animation: kenBurns 20s ease-in-out infinite alternate;
}

@keyframes kenBurns {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.08) translate(-1%, 1%); }
}

/* --- Hero Overlay --- */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 10, 0.3) 0%,
    rgba(10, 10, 10, 0.5) 40%,
    rgba(10, 10, 10, 0.85) 100%
  );
  z-index: 1;
}

/* Grain texture overlay */
.hero-overlay::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.3;
  pointer-events: none;
}

/* --- Hero Content --- */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 0 var(--space-lg);
}

.hero-logo {
  width: 120px;
  margin: 0 auto var(--space-lg);
  opacity: 0;
  transform: translateY(-20px);
  animation: fadeInDown 1s var(--ease-out) 0.3s forwards;
}

.hero-logo img {
  width: 100%;
  filter: drop-shadow(0 0 20px rgba(197, 165, 114, 0.3));
}

.hero-overline {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--gemcon-gold);
  margin-bottom: var(--space-md);
  opacity: 0;
  animation: fadeInUp 1s var(--ease-out) 0.5s forwards;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 200;
  line-height: 1.1;
  color: var(--gemcon-white);
  margin-bottom: var(--space-md);
  opacity: 0;
  animation: fadeInUp 1s var(--ease-out) 0.7s forwards;
}

.hero-title span {
  color: var(--gemcon-gold);
  font-weight: 300;
}

.hero-subtitle {
  font-size: 1.125rem;
  font-weight: 300;
  color: rgba(250, 250, 250, 0.7);
  max-width: 600px;
  margin: 0 auto var(--space-xl);
  line-height: 1.8;
  opacity: 0;
  animation: fadeInUp 1s var(--ease-out) 0.9s forwards;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeInUp 1s var(--ease-out) 1.1s forwards;
}

/* --- Hero Scroll Indicator --- */
.hero-scroll {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  cursor: pointer;
  margin-top: var(--space-lg);
  opacity: 0;
  animation: fadeInUp 1s var(--ease-out) 1.5s forwards;
}

.hero-scroll span {
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gemcon-gray);
}

.scroll-indicator {
  width: 24px;
  height: 40px;
  border: 1.5px solid var(--gemcon-gray);
  border-radius: 12px;
  position: relative;
}

.scroll-indicator::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 8px;
  background: var(--gemcon-gold);
  border-radius: 3px;
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { top: 8px; opacity: 1; }
  50% { top: 20px; opacity: 0.3; }
}

/* --- Hero Progress Bar --- */
.hero-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(255,255,255,0.1);
  z-index: 3;
}

.hero-progress-bar {
  height: 100%;
  background: var(--gemcon-gold);
  width: 0%;
  transition: width 0.1s linear;
}

/* --- Keyframes --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

  .hero-logo {
    width: 80px;
  }

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

  .hero-actions .btn {
    width: 100%;
    max-width: 280px;
  }

  .hero-scroll {
    bottom: 24px;
  }
}
