/* ============================================
   COMPONENT – Hero Section
   ============================================ */

/* ── Hero Container ── */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* ── Background Image ── */
.hero__background {
  position: absolute;
  inset: 0;
  z-index: var(--z-behind);
}

.hero__background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  will-change: transform;
  transition: transform var(--duration-slow) var(--ease-default);
}

/* ── Scrolling Marquee ── */
.hero__marquee {
  position: absolute;
  top: 25%;
  left: 0;
  width: 100%;
  transform: translateY(-50%);
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.hero__marquee-track {
  display: flex;
  white-space: nowrap;
  animation: marquee-scroll 40s linear infinite;
  will-change: transform;
}

.hero__marquee-text {
  font-family: 'GeistThin', sans-serif;
  font-size: clamp(4rem, 10vw, 10rem);
  font-weight: 100;
  color: #ffffff;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  flex-shrink: 0;
  padding-right: 0.5em;
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ── Overlay Gradient ── */
.hero__overlay {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  z-index: var(--z-base);
}

/* Decorative grain texture */
.hero__overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.4;
  pointer-events: none;
}

/* ── Content ── */
.hero__content {
  position: relative;
  z-index: var(--z-above);
  width: 100%;
  max-width: var(--container-xl);
  margin-inline: auto;
  padding: var(--space-24) var(--space-6);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-8);
}

/* ── Badge ── */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-5);
  background: rgba(212, 168, 83, 0.1);
  border: 1px solid rgba(212, 168, 83, 0.3);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-accent-400);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;

  /* Animation initial state */
  opacity: 0;
  transform: translateY(20px);
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--color-accent-500);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

/* ── Heading ── */
.hero__heading {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  color: var(--color-white);
  letter-spacing: var(--tracking-tight);
  max-width: 800px;

  /* Animation initial state */
  opacity: 0;
  transform: translateY(30px);
}

.hero__heading-highlight {
  position: relative;
  display: inline-block;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__heading-highlight::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-accent);
  border-radius: var(--radius-full);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.8s var(--ease-out);
}

.hero__heading.is-visible .hero__heading-highlight::after {
  transform: scaleX(1);
}

/* ── Description ── */
.hero__description {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--color-neutral-300);
  max-width: 580px;

  /* Animation initial state */
  opacity: 0;
  transform: translateY(30px);
}

/* ── CTA Buttons ── */
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-2);

  /* Animation initial state */
  opacity: 0;
  transform: translateY(30px);
}

.hero__btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-8);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  border-radius: var(--radius-md);
  transition: all var(--duration-normal) var(--ease-default);
  overflow: hidden;
}

/* Primary Button */
.hero__btn--primary {
  background: var(--gradient-accent);
  color: var(--color-primary-900);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

.hero__btn--primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-default);
}

.hero__btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(212, 168, 83, 0.4);
}

.hero__btn--primary:hover::before {
  opacity: 1;
}

.hero__btn--primary:active {
  transform: translateY(0);
}

/* Secondary Button */
.hero__btn--secondary {
  background: transparent;
  color: var(--color-white);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(4px);
}

.hero__btn--secondary:hover {
  border-color: var(--color-accent-400);
  color: var(--color-accent-400);
  background: rgba(212, 168, 83, 0.08);
  transform: translateY(-2px);
}

.hero__btn--secondary:active {
  transform: translateY(0);
}

/* Button Arrow Icon */
.hero__btn-arrow {
  display: inline-flex;
  transition: transform var(--duration-normal) var(--ease-default);
}

.hero__btn:hover .hero__btn-arrow {
  transform: translateX(4px);
}

/* ── Stats Bar ── */
.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  margin-top: var(--space-8);
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
  max-width: 700px;

  /* Animation initial state */
  opacity: 0;
  transform: translateY(30px);
}

.hero__stat {
  flex: 1;
  min-width: 140px;
  padding: var(--space-4) var(--space-5);
  text-align: center;
  position: relative;
}

.hero__stat:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
}

.hero__stat-value {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  color: var(--color-accent-400);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.hero__stat-label {
  font-size: var(--text-sm);
  color: var(--color-neutral-400);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

/* ── Geist Thin (for marquee) ── */
@font-face {
  font-family: 'GeistThin';
  src: url('../../fonts/Geist-Thin.ttf') format('truetype');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

/* ── Floating Stone Logo ── */
.hero__stone-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: var(--z-above);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;

  /* Animation initial state */
  opacity: 0;
}

.hero__stone-logo img {
  max-width: min(70vw, 900px);
  height: auto;
  filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.15));
  animation: stone-float 4s ease-in-out infinite;
}

@keyframes stone-float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}

.hero__stone-logo.is-visible {
  opacity: 1;
  transition: opacity 1.2s var(--ease-out);
  transition-delay: 0.3s;
}

/* ── Tagline (sol alt) ── */
.hero__tagline {
  position: absolute;
  bottom: 12rem;
  left: 8%;
  z-index: var(--z-above);
  display: flex;
  align-items: flex-start;
  gap: var(--space-5);

  /* Animation initial state */
  opacity: 0;
  transform: translateY(20px);
}

.hero__tagline-line {
  width: 1px;
  height: 28vh;
  background: rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
  margin-bottom: -12rem;
}

.hero__tagline p {
  font-family: 'Geist', sans-serif;
  font-size: var(--text-xl);
  font-weight: 400;
  line-height: var(--leading-relaxed);
  color: rgba(0, 0, 0, 0.65);
  letter-spacing: 0.01em;
  padding-bottom: 0.15em;
}

.hero__tagline.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: 0.6s;
}

/* ── Scroll Indicator ── */
.hero__scroll {
  position: absolute;
  bottom: var(--space-10);
  left: 50%;
  transform: translateX(-50%);
  z-index: var(--z-above);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-neutral-400);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  cursor: pointer;
  transition: color var(--duration-normal) var(--ease-default);

  /* Animation initial state */
  opacity: 0;
}

.hero__scroll:hover {
  color: var(--color-accent-400);
}

.hero__scroll-mouse {
  width: 24px;
  height: 38px;
  border: 2px solid currentColor;
  border-radius: 12px;
  position: relative;
}

.hero__scroll-wheel {
  width: 3px;
  height: 8px;
  background: currentColor;
  border-radius: var(--radius-full);
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll-wheel 2s infinite;
}

@keyframes scroll-wheel {
  0%   { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(14px); }
}

/* ── Decorative Elements ── */
.hero__decor-line {
  position: absolute;
  top: 0;
  right: 10%;
  width: 1px;
  height: 120px;
  background: linear-gradient(to bottom, transparent, var(--color-accent-500), transparent);
  opacity: 0.3;
  z-index: var(--z-above);

  opacity: 0;
}

.hero__decor-line--2 {
  right: 12%;
  height: 80px;
  top: 20px;
  animation-delay: 0.5s;
}

/* ── Reveal Animations ── */
.hero__badge.is-visible,
.hero__heading.is-visible,
.hero__description.is-visible,
.hero__cta.is-visible,
.hero__stats.is-visible,
.hero__scroll.is-visible,
.hero__decor-line.is-visible {
  opacity: 1;
  transform: translateY(0) translateX(0);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.hero__heading.is-visible   { transition-delay: 0.15s; }
.hero__description.is-visible { transition-delay: 0.3s; }
.hero__cta.is-visible        { transition-delay: 0.45s; }
.hero__stats.is-visible      { transition-delay: 0.6s; }
.hero__scroll.is-visible     { transition-delay: 0.8s; }
.hero__decor-line.is-visible { transition-delay: 0.5s; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero__content {
    padding: var(--space-20) var(--space-5);
    align-items: center;
    text-align: center;
  }

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

  .hero__description {
    font-size: var(--text-base);
    max-width: 100%;
  }

  .hero__cta {
    justify-content: center;
    width: 100%;
  }

  .hero__btn {
    width: 100%;
    justify-content: center;
    padding: var(--space-4) var(--space-6);
  }

  .hero__stats {
    flex-direction: column;
    gap: var(--space-2);
    max-width: 100%;
  }

  .hero__stat:not(:last-child)::after {
    display: none;
  }

  .hero__stat {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: var(--space-3) 0;
  }

  .hero__stat-value {
    font-size: var(--text-2xl);
  }

  .hero__scroll {
    display: none;
  }

  .hero__decor-line {
    display: none;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .hero__content {
    padding: var(--space-20) var(--space-8);
  }

  .hero__heading {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
  }
}
