/**
 * El Attareen Group - Signature Architectural Hero
 * Monumental Full-Bleed Design with The Godfather / Classic Dynastic Typography
 */

.portal-hero {
  position: relative !important;
  min-height: 100vh !important;
  min-height: 100dvh !important;
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  background-color: #060708 !important;
  overflow: hidden !important;
  padding-top: var(--header-height) !important;
  padding-bottom: 5rem !important;
  padding-inline: var(--space-md) !important;
  box-sizing: border-box !important;
}

/* Background Video Canvas & Layers */
.hero-bg-layer {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  pointer-events: none !important;
  user-select: none !important;
  -webkit-user-select: none !important;
}

.hero-media-canvas {
  overflow: hidden !important;
  background-color: #060708 !important;
  background-image:
    radial-gradient(ellipse at 50% 30%, rgba(200, 168, 112, 0.2) 0%, transparent 60%),
    radial-gradient(circle at 50% 60%, rgba(12, 14, 18, 0.7) 0%, rgba(6, 7, 8, 0.98) 85%),
    url('/assets/images/hero-portal.jpg') !important;
  background-position: center !important;
  background-size: cover !important;
  z-index: 1 !important;
}

.hero-ambient-video {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 100% !important;
  min-height: 100% !important;
  transform: translate(-50%, -50%) scale(1.05) !important;
  object-fit: cover !important;
  filter: brightness(0.72) contrast(1.15) !important;
  pointer-events: none !important;
  user-select: none !important;
  -webkit-user-select: none !important;
  z-index: 1 !important;
}

@media (prefers-reduced-motion: reduce) {
  .hero-ambient-video {
    display: none !important;
  }
}

.hero-gradient-overlay {
  background: linear-gradient(to bottom,
      rgba(6, 7, 8, 0.75) 0%,
      rgba(6, 7, 8, 0.25) 40%,
      rgba(6, 7, 8, 0.85) 85%,
      rgba(6, 7, 8, 1) 100%) !important;
  z-index: 2 !important;
}

.hero-grid-matrix {
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px) !important;
  background-size: 72px 72px !important;
  opacity: 0.75 !important;
  z-index: 2 !important;
}

/* Hero Centerpiece Lockup */
.hero-centerpiece {
  position: relative !important;
  width: 100% !important;
  max-width: 960px !important;
  margin-inline: auto !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  overflow: visible !important;
  z-index: 10 !important;
}

/* Centered Official Seal with Subtle Bronze Rings */
.hero-seal-wrapper {
  position: relative !important;
  width: 160px !important;
  height: 160px !important;
  aspect-ratio: 1 / 1 !important;
  flex-shrink: 0 !important;
  box-sizing: border-box !important;
  margin: 0 auto 2rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  animation: heroSealOpeningScale 1.4s cubic-bezier(0.16, 1, 0.3, 1) both !important;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.hero-seal-ring {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  border-radius: 50% !important;
  pointer-events: none !important;
  aspect-ratio: 1 / 1 !important;
  flex-shrink: 0 !important;
  box-sizing: border-box !important;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.4s ease,
    box-shadow 0.4s ease !important;
}

.hero-seal-ring.inner {
  width: 220px !important;
  height: 220px !important;
  border: 1px solid rgba(200, 168, 112, 0.45) !important;
  box-shadow: 0 0 25px rgba(200, 168, 112, 0.25) !important;
  animation: sealRingRotateInner 1.4s cubic-bezier(0.16, 1, 0.3, 1) both !important;
}

.hero-seal-ring.outer {
  width: 270px !important;
  height: 270px !important;
  border: 1px dashed rgba(223, 186, 142, 0.3) !important;
  animation: sealRingRotateOuter 1.4s cubic-bezier(0.16, 1, 0.3, 1) both !important;
}

.hero-seal-disc {
  width: 160px !important;
  height: 160px !important;
  aspect-ratio: 1 / 1 !important;
  flex-shrink: 0 !important;
  box-sizing: border-box !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #C8A870 0%, #A67F53 100%) !important;
  border: 1.5px solid #DFBA8E !important;
  box-shadow: 0 6px 30px rgba(200, 168, 112, 0.4), 0 0 50px rgba(0, 0, 0, 0.85) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  animation: heroSealDiscGlow 1.4s cubic-bezier(0.16, 1, 0.3, 1) both !important;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.4s ease,
    box-shadow 0.5s ease,
    background 0.4s ease !important;
}

.hero-seal-img {
  width: 90% !important;
  height: 90% !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: contain !important;
  background: transparent !important;
  filter: drop-shadow(0 1px 3px rgba(6, 7, 8, 0.35)) !important;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.4s ease !important;
}

/* Hover Effects for Official Seal */
.hero-seal-wrapper:hover .hero-seal-disc {
  transform: scale(1.06) !important;
  border-color: #DFBA8E !important;
  background: linear-gradient(135deg, #DFBA8E 0%, #C8A870 100%) !important;
  box-shadow: 0 10px 40px rgba(200, 168, 112, 0.55),
    0 0 65px rgba(0, 0, 0, 0.9) !important;
}

.hero-seal-wrapper:hover .hero-seal-img {
  transform: scale(1.04) !important;
  filter: drop-shadow(0 2px 6px rgba(6, 7, 8, 0.5)) !important;
}


.hero-seal-wrapper:hover .hero-seal-ring.inner {
  transform: translate(-50%, -50%) scale(1.05) rotate(45deg) !important;
  border-color: rgba(223, 186, 142, 0.75) !important;
  box-shadow: 0 0 30px rgba(200, 168, 112, 0.35) !important;
}

.hero-seal-wrapper:hover .hero-seal-ring.outer {
  transform: translate(-50%, -50%) scale(1.08) rotate(-45deg) !important;
  border-color: rgba(223, 186, 142, 0.5) !important;
}

/* ==========================================================================
   Website Opening Motion - Automatic Pure CSS Keyframe Animation
   Guaranteed never to get stuck, 100% resilient across all browsers & devices
   ========================================================================== */

@keyframes heroSealOpeningScale {
  0% {
    transform: scale(1.85);
  }

  15% {
    transform: scale(1.85);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes heroSealDiscGlow {
  0% {
    border-color: #DFBA8E;
    box-shadow: 0 0 75px rgba(200, 168, 112, 0.7),
      0 0 120px rgba(0, 0, 0, 0.98),
      inset 0 0 35px rgba(223, 186, 142, 0.35);
  }

  15% {
    border-color: #DFBA8E;
    box-shadow: 0 0 75px rgba(200, 168, 112, 0.7),
      0 0 120px rgba(0, 0, 0, 0.98),
      inset 0 0 35px rgba(223, 186, 142, 0.35);
  }

  100% {
    border-color: #DFBA8E;
    box-shadow: 0 6px 30px rgba(200, 168, 112, 0.4),
      0 0 60px rgba(0, 0, 0, 0.98),
      inset 0 0 25px rgba(200, 168, 112, 0.18);
  }
}

@keyframes sealRingRotateInner {
  0% {
    transform: translate(-50%, -50%) rotate(-25deg);
  }

  15% {
    transform: translate(-50%, -50%) rotate(-25deg);
  }

  100% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
}

@keyframes sealRingRotateOuter {
  0% {
    transform: translate(-50%, -50%) rotate(35deg);
  }

  15% {
    transform: translate(-50%, -50%) rotate(35deg);
  }

  100% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
}

/* Staggered Entrance of Hero Typography and Actions (Automatic) */
.hero-centerpiece .hero-kicker-badge {
  animation: heroCascadeEntrance 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.35s both !important;
}

.hero-centerpiece .hero-main-title {
  animation: heroCascadeEntrance 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.45s both !important;
}

.hero-centerpiece .hero-tagline {
  animation: heroCascadeEntrance 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.55s both !important;
}

.hero-centerpiece .hero-disciplines-bar {
  animation: heroCascadeEntrance 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.65s both !important;
}

.hero-centerpiece .hero-actions-row {
  animation: heroCascadeEntrance 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.75s both !important;
}

.hero-scroll-discover {
  animation: heroCascadeEntrance 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.9s both !important;
}

.site-header {
  animation: heroHeaderEntrance 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both !important;
}

@keyframes heroHeaderEntrance {
  0% {
    opacity: 0;
    transform: translateY(-16px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroCascadeEntrance {
  0% {
    opacity: 0;
    transform: translateY(18px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile Adjustments - Circles always stay 100% circular */
@media (max-width: 768px) {
  .hero-seal-wrapper {
    width: 110px !important;
    height: 110px !important;
    margin: 0 auto 1.5rem !important;
    animation: heroSealOpeningScaleMobile 1.4s cubic-bezier(0.16, 1, 0.3, 1) both !important;
  }

  .hero-seal-disc {
    width: 110px !important;
    height: 110px !important;
    padding: 0 !important;
  }

  .hero-seal-ring.inner {
    width: 155px !important;
    height: 155px !important;
  }

  .hero-seal-ring.outer {
    width: 195px !important;
    height: 195px !important;
  }

  @keyframes heroSealOpeningScaleMobile {
    0% {
      transform: scale(1.35);
    }

    15% {
      transform: scale(1.35);
    }

    100% {
      transform: scale(1);
    }
  }
}

/* Kicker Badge */
.hero-kicker-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  padding: 0.35rem 1.1rem !important;
  background: rgba(200, 168, 112, 0.08) !important;
  border: 1px solid rgba(200, 168, 112, 0.3) !important;
  border-radius: 9999px !important;
  margin-bottom: 0.85rem !important;
}

.hero-kicker-dot {
  width: 6px !important;
  height: 6px !important;
  border-radius: 50% !important;
  background-color: var(--color-bronze-400) !important;
  box-shadow: 0 0 8px var(--color-bronze-400) !important;
}

.hero-kicker-text {
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  color: var(--color-bronze-300) !important;
}

:lang(en) .hero-kicker-text {
  font-family: 'Cinzel', serif !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
}

:lang(ar) .hero-kicker-text,
[dir="rtl"] .hero-kicker-text {
  font-family: 'Alexandria', sans-serif !important;
  letter-spacing: normal !important;
}

/* Main Monumental Title (Godfather Style for EN / Alexandria for AR) */
.hero-main-title {
  font-size: clamp(2.4rem, 2rem + 3.2vw, 4.6rem) !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  margin: 0 !important;
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.95) !important;
}

:lang(en) .hero-main-title {
  font-family: 'Cinzel', 'Playfair Display', Georgia, serif !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  background: linear-gradient(180deg, #FFFFFF 0%, #E8EDF5 50%, #B8C2D2 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

:lang(ar) .hero-main-title,
[dir="rtl"] .hero-main-title {
  font-family: 'Alexandria', sans-serif !important;
  color: #FFFFFF !important;
  background: none !important;
  -webkit-text-fill-color: initial !important;
}

/* Tagline / Motto */
.hero-tagline {
  font-size: clamp(1.15rem, 1rem + 0.5vw, 1.45rem) !important;
  color: var(--color-bronze-300) !important;
  font-weight: 500 !important;
  line-height: 1.5 !important;
  max-width: 680px !important;
  margin: 0.85rem 0 1.25rem !important;
}

:lang(en) .hero-tagline {
  font-family: 'Playfair Display', 'Cormorant Garamond', Georgia, serif !important;
  font-style: italic !important;
  letter-spacing: 0.02em !important;
}

:lang(ar) .hero-tagline,
[dir="rtl"] .hero-tagline {
  font-family: 'Cairo', 'Alexandria', sans-serif !important;
  font-style: normal !important;
  line-height: 1.7 !important;
}

/* Four Disciplines Bar */
.hero-disciplines-bar {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
  gap: 0.5rem 1rem !important;
  margin-bottom: 2rem !important;
  padding: 0.4rem 1.25rem !important;
  background: rgba(16, 18, 22, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: var(--radius-xs) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
}

.hero-discipline-pill {
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  color: #C0C8D6 !important;
}

:lang(en) .hero-discipline-pill {
  font-family: 'Cinzel', serif !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
}

:lang(ar) .hero-discipline-pill,
[dir="rtl"] .hero-discipline-pill {
  font-family: 'Alexandria', sans-serif !important;
  letter-spacing: normal !important;
}

.hero-discipline-sep {
  color: var(--color-bronze-400) !important;
  font-size: 0.75rem !important;
  opacity: 0.8 !important;
}

/* Action Buttons Row */
.hero-actions-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
  gap: 1.25rem !important;
}

.btn-hero-primary {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.65rem !important;
  padding: 0.95rem 2.4rem !important;
  background: linear-gradient(135deg, #C8A870 0%, #A67F53 100%) !important;
  color: #060708 !important;
  font-weight: 700 !important;
  font-size: 0.875rem !important;
  border-radius: var(--radius-xs) !important;
  border: 1px solid #DFBA8E !important;
  text-decoration: none !important;
  box-shadow: 0 6px 30px rgba(200, 168, 112, 0.4) !important;
  transition: all var(--duration-normal) var(--ease-architectural) !important;
}

:lang(en) .btn-hero-primary {
  font-family: 'Cinzel', serif !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
}

:lang(ar) .btn-hero-primary,
[dir="rtl"] .btn-hero-primary {
  font-family: 'Alexandria', sans-serif !important;
  letter-spacing: normal !important;
}

.btn-hero-primary:hover {
  background: linear-gradient(135deg, #DFBA8E 0%, #C8A870 100%) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 40px rgba(200, 168, 112, 0.55) !important;
}

.btn-hero-secondary {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
  padding: 0.95rem 2rem !important;
  background: rgba(16, 18, 22, 0.7) !important;
  color: #F0F2F6 !important;
  font-weight: 600 !important;
  font-size: 0.875rem !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: var(--radius-xs) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  text-decoration: none !important;
  transition: all var(--duration-fast) var(--ease-smooth) !important;
}

:lang(en) .btn-hero-secondary {
  font-family: 'Cinzel', serif !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
}

:lang(ar) .btn-hero-secondary,
[dir="rtl"] .btn-hero-secondary {
  font-family: 'Alexandria', sans-serif !important;
  letter-spacing: normal !important;
  font-weight: 600 !important;
}

.btn-hero-secondary:hover {
  border-color: rgba(200, 168, 112, 0.5) !important;
  background: rgba(24, 27, 34, 0.9) !important;
  color: #FFFFFF !important;
}

/* Bottom Discover Indicator */
.hero-scroll-discover {
  position: absolute !important;
  bottom: 1.5rem !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 0.4rem !important;
  text-decoration: none !important;
  color: rgba(255, 255, 255, 0.4) !important;
  font-size: 0.6875rem !important;
  z-index: 20 !important;
  transition: color var(--duration-fast) var(--ease-smooth) !important;
}

:lang(en) .hero-scroll-discover .discover-text {
  font-family: 'Cinzel', serif !important;
  letter-spacing: 0.2em !important;
}

:lang(ar) .hero-scroll-discover .discover-text,
[dir="rtl"] .hero-scroll-discover .discover-text {
  font-family: 'Alexandria', sans-serif !important;
  letter-spacing: normal !important;
}

.hero-scroll-discover:hover {
  color: var(--color-bronze-300) !important;
}

.discover-line {
  width: 1px !important;
  height: 24px !important;
  background: linear-gradient(to bottom, var(--color-bronze-400), transparent) !important;
  animation: discoverPulse 2s infinite ease-in-out !important;
}

@keyframes discoverPulse {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }

  50% {
    transform: scaleY(1);
    transform-origin: top;
  }

  51% {
    transform: scaleY(1);
    transform-origin: bottom;
  }

  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

@media (max-width: 640px) {
  .portal-hero {
    padding-top: calc(var(--header-height-mobile) + 1rem) !important;
    padding-bottom: 4rem !important;
  }

  .hero-main-title {
    font-size: clamp(2rem, 1.8rem + 2.5vw, 2.8rem) !important;
  }

  .hero-actions-row {
    flex-direction: column !important;
    width: 100% !important;
  }

  .btn-hero-primary,
  .btn-hero-secondary {
    width: 100% !important;
    justify-content: center !important;
  }
}