/**
 * Hero Section Widget Styles
 * Extracted from inline styles for better performance and maintainability
 */

.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--hero-bg-color, #0a0a09);
}

.hero-video-wrapper {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-video,
.hero-video-iframe {
  position: relative;
  z-index: 0;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.1);
}

.hero-video-iframe {
  position: absolute;
  top: 50%;
  inset-inline-start: 50%;
  width: 100vw;
  height: 100vh;
  transform: translate(-50%, -50%) scale(1.1);
  pointer-events: none;
}

@media (min-aspect-ratio: 16/9) {
  .hero-video-iframe {
    width: 177.78vh;
  }
}

@media (max-aspect-ratio: 16/9) {
  .hero-video-iframe {
    height: 56.25vw;
  }
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(30, 29, 27, 0.8) 0%,
      rgba(30, 29, 27, 0.7) 50%,
      rgba(30, 29, 27, 1) 100%);
  z-index: 1;
}

.hero-orb {
  position: absolute;
  width: 384px;
  height: 384px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.3;
  animation: heroOrbFloat 8s ease-in-out infinite;
  background-color: var(--hero-primary-color, #F2B713);
}

.hero-orb-1 {
  top: 25%;
  inset-inline-end: 25%;
  animation-delay: 0s;
}

.hero-orb-2 {
  bottom: 25%;
  inset-inline-start: 25%;
  opacity: 0.2;
  animation-delay: 1s;
  animation-duration: 10s;
}

@keyframes heroOrbFloat {
  0%, 100% {
    transform: scale(1);
    opacity: 0.3;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.5;
  }
}

.hero-grid-container {
  position: absolute;
  inset: 0;
  z-index: 0;
  perspective: 1000px;
  overflow: hidden;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(242, 183, 19, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 183, 19, 0.05) 1px, transparent 1px);
  background-size: 80px 80px;
  transform-style: preserve-3d;
  transform: translateZ(-100px) rotateX(0deg) rotateY(0deg);
  animation: heroGridRotate 20s ease-in-out infinite;
}

@keyframes heroGridRotate {
  0%, 100% {
    transform: translateZ(-100px) rotateX(0deg) rotateY(0deg);
  }
  25% {
    transform: translateZ(-100px) rotateX(5deg) rotateY(-5deg);
  }
  50% {
    transform: translateZ(-100px) rotateX(0deg) rotateY(0deg);
  }
  75% {
    transform: translateZ(-100px) rotateX(-5deg) rotateY(5deg);
  }
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 0 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-logo-wrapper {
  margin-bottom: 48px;
  display: flex;
  justify-content: center;
  transform-style: preserve-3d;
  perspective: 1000px;
  opacity: 0;
  visibility: hidden;
}

.hero-logo {
  width: auto;
  filter: drop-shadow(0 0 30px var(--hero-primary-color, #F2B713)4d);
  transform-style: preserve-3d;
  transition: transform 0.3s ease;
}

.hero-heading {
  color: #ffffff;
  margin-bottom: 32px;
  font-weight: 700;
  line-height: 1.1;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

.hero-heading-line1,
.hero-heading-line2 {
  opacity: 0;
  visibility: hidden;
  display: inline;
}

.hero-heading-line1 {
  position: relative;
  display: inline;
  margin-inline-end: 0.250em;
}

.hero-heading-line1::after {
  content: '';
  position: absolute;
  inset: -8px;
  background: linear-gradient(to right, var(--hero-primary-color, #F2B713)33, transparent);
  filter: blur(24px);
  opacity: 0.5;
  z-index: -1;
  animation: heroHeadingGlow1 3s ease-in-out infinite;
}

@keyframes heroHeadingGlow1 {
  0%, 100% {
    opacity: 0.5;
  }
  50% {
    opacity: 0.8;
  }
}

.hero-heading-line2 {
  position: relative;
  display: inline-block;
  color: var(--hero-primary-color, #F2B713);
}

.hero-heading-line2::after {
  content: '';
  position: absolute;
  inset: -8px;
  background: var(--hero-primary-color, #F2B713);
  filter: blur(32px);
  opacity: 0.3;
  z-index: -1;
  animation: heroHeadingGlow2 2s ease-in-out infinite;
}

@keyframes heroHeadingGlow2 {
  0%, 100% {
    transform: scale(1);
    opacity: 0.3;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.5;
  }
}

.hero-description {
  color: rgba(255, 255, 255, 0.9);
  max-width: 768px;
  margin: 0 auto 48px;
  line-height: 1.6;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  opacity: 0;
  visibility: hidden;
}

.hero-description-gradient {
  background: linear-gradient(to right, #ffffff, #ffffff, var(--hero-primary-color, #F2B713));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 24px 48px;
  font-weight: 600;
  font-size: 1.125rem;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.3s ease;
  transform-style: preserve-3d;
  border-radius: 8px;
  opacity: 0;
  visibility: hidden;
  background-color: var(--hero-primary-color, #F2B713);
  color: var(--hero-bg-color, #0a0a09);
}

.hero-button:hover {
  transform: scale(1.05);
}

.hero-button-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, #ffffff, var(--hero-primary-color, #F2B713));
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.hero-button:hover .hero-button-overlay {
  transform: translateX(0);
}

.hero-button-text {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-button-arrow {
  animation: heroArrowMove 1.5s ease-in-out infinite;
}

@keyframes heroArrowMove {
  0%, 100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(5px);
  }
}

.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-particle {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  animation: heroParticleFloat 3s ease-in-out infinite;
  animation-delay: var(--delay);
  background-color: var(--hero-primary-color, #F2B713);
}

@keyframes heroParticleFloat {
  0%, 100% {
    transform: translateY(0) scale(0);
    opacity: 0;
  }
  50% {
    transform: translateY(-30px) scale(1);
    opacity: 1;
  }
}

.hero-particle:nth-child(1) {
  left: 20%;
  top: 30%;
}

.hero-particle:nth-child(2) {
  left: 35%;
  top: 40%;
}

.hero-particle:nth-child(3) {
  left: 50%;
  top: 35%;
}

.hero-particle:nth-child(4) {
  left: 65%;
  top: 45%;
}

.hero-particle:nth-child(5) {
  left: 80%;
  top: 40%;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 48px;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0;
  visibility: hidden;
  color: var(--hero-primary-color, #F2B713);
}

/* RTL: Use positive 50% translate for Arabic */
[dir='rtl'] .hero-scroll-indicator,
html[lang='ar'] .hero-scroll-indicator,
html[lang='ar_AR'] .hero-scroll-indicator,
html[lang^='ar'] .hero-scroll-indicator {
  transform: translateX(50%);
}

.hero-logo-wrapper,
.hero-heading-line1,
.hero-heading-line2,
.hero-description,
.hero-button,
.hero-scroll-indicator {
  animation: heroContentFallback 0.1s 2s forwards;
}

@keyframes heroContentFallback {
  to {
    opacity: 1;
    visibility: visible;
  }
}

.hero-logo-wrapper[style*="visibility: visible"],
.hero-heading-line1[style*="visibility: visible"],
.hero-heading-line2[style*="visibility: visible"],
.hero-description[style*="visibility: visible"],
.hero-button[style*="visibility: visible"],
.hero-scroll-indicator[style*="visibility: visible"] {
  animation: none;
}

.hero-scroll-text {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

.hero-scroll-mouse {
  width: 24px;
  height: 40px;
  border: 2px solid currentColor;
  border-radius: 12px;
  padding: 4px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.hero-scroll-dot {
  width: 6px;
  height: 6px;
  background-color: currentColor;
  border-radius: 50%;
  animation: heroScrollDotMove 1.5s ease-in-out infinite;
}

@keyframes heroScrollDotMove {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(12px);
  }
}
