/* ========================================
   HERO SECTION
   ======================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(
    160deg,
    var(--color-neutral-950) 0%,
    var(--color-primary-900) 40%,
    var(--color-primary-800) 70%,
    var(--color-primary-700) 100%
  );
}

/* --- Background Pattern --- */
.hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero__pattern {
  position: absolute;
  inset: -50%;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(29, 158, 117, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(196, 151, 42, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 50% 80%, rgba(29, 158, 117, 0.05) 0%, transparent 50%);
  animation: heroPatternFloat 20s ease-in-out infinite alternate;
}

@keyframes heroPatternFloat {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-2%, 2%) scale(1.05); }
}

/* --- Geometric decorative lines --- */
.hero::before {
  content: '';
  position: absolute;
  top: 15%;
  right: 8%;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 50%;
  animation: heroRingPulse 8s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 20%;
  left: 5%;
  width: 200px;
  height: 200px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 50%;
  animation: heroRingPulse 12s ease-in-out infinite reverse;
}

@keyframes heroRingPulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 1; }
}

/* --- Container --- */
.hero__container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-16);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-32) var(--space-6) var(--space-16);
  text-align: center;
}

/* --- Content --- */
.hero__content {
  max-width: 720px;
}

.hero__bismillah {
  font-family: var(--font-arabic);
  font-size: var(--text-3xl);
  color: var(--color-gold-300);
  margin-bottom: var(--space-8);
  opacity: 0.9;
  letter-spacing: 0.05em;
  text-shadow: 0 0 40px rgba(196, 151, 42, 0.2);
}

.hero__title {
  font-size: clamp(var(--text-3xl), 5vw, var(--text-6xl));
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: var(--space-6);
  letter-spacing: var(--tracking-tight);
  line-height: 1.1;
}

.hero__title-highlight {
  display: block;
  background: linear-gradient(135deg, var(--color-gold-300), var(--color-gold-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__mission {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.7);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-10);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hero__mission strong {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
}

/* --- Actions --- */
.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.hero__actions .btn--primary {
  background: linear-gradient(135deg, var(--color-gold-500), var(--color-gold-400));
  color: var(--color-neutral-950);
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
}

.hero__actions .btn--primary:hover {
  box-shadow: var(--shadow-lg), 0 0 30px rgba(196, 151, 42, 0.3);
}

.hero__actions .btn--outline {
  color: rgba(255, 255, 255, 0.7);
  border-color: rgba(255, 255, 255, 0.15);
}

/* --- Logo Hero --- */
.hero__decoration {
  display: none;
  flex-shrink: 0;
}

.hero__logo-wrap {
  position: relative;
  width: 340px;
  height: 340px;
  animation: logoFloat 6s ease-in-out infinite;
}

/* Halo lumineux derrière le logo */
.hero__logo-wrap::before {
  content: '';
  position: absolute;
  inset: -30px;
  background: radial-gradient(circle, rgba(196, 151, 42, 0.18) 0%, transparent 70%);
  border-radius: 50%;
  animation: logoGlow 4s ease-in-out infinite alternate;
}

@keyframes logoGlow {
  0%   { opacity: 0.5; transform: scale(0.95); }
  100% { opacity: 1;   transform: scale(1.05); }
}

.hero__logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 40px rgba(196, 151, 42, 0.3)) drop-shadow(0 0 80px rgba(0, 0, 0, 0.2));
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

/* --- Scroll Indicator --- */
.hero__scroll-indicator {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: rgba(255, 255, 255, 0.4);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  animation: scrollBounce 2s ease-in-out infinite;
}

.hero__scroll-arrow {
  width: 1px;
  height: 24px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent);
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* --- Responsive --- */
@media (min-width: 1024px) {
  .hero__decoration {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero__container {
    text-align: left;
  }

  .hero__mission {
    margin-left: 0;
  }

  .hero__actions {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .hero__bismillah {
    font-size: var(--text-2xl);
  }

  .hero__mission {
    font-size: var(--text-base);
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .hero__container {
    padding: var(--space-24) var(--space-4) var(--space-16);
  }
}
