/* Hero Section Styles */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  background-color: var(--color-bg-dark);
  background-image: 
    linear-gradient(135deg, rgba(14, 26, 15, 0.85) 0%, rgba(18, 20, 18, 0.75) 100%),
    url('../assets/images/hero-bg.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  overflow: hidden;
  color: var(--color-surface);
}

/* Background organic elements (floating vector shapes) */
.hero-bg-shape {
  position: absolute;
  pointer-events: none;
  opacity: 0.15;
}

.hero-shape-1 {
  top: 15%;
  right: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--color-primary-light) 0%, transparent 70%);
  border-radius: var(--radius-full);
  filter: blur(60px);
  animation: float 8s ease-in-out infinite alternate;
}

.hero-shape-2 {
  bottom: -10%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--color-secondary-light) 0%, transparent 70%);
  border-radius: var(--radius-full);
  filter: blur(50px);
  animation: float 6s ease-in-out infinite alternate-reverse;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: var(--space-8);
  position: relative;
  z-index: 10;
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: var(--space-8);
    padding-bottom: var(--space-8);
  }
}

.hero-content {
  max-width: 780px;
}

.hero-tagline {
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-secondary-light);
  margin-bottom: var(--space-4);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.hero-content h1 {
  font-size: var(--text-5xl);
  color: var(--color-surface);
  line-height: 1.15;
  margin-bottom: var(--space-6);
  font-weight: 800;
}

@media (max-width: 640px) {
  .hero-content h1 {
    font-size: var(--text-3xl);
  }
}

.hero-content p {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin-bottom: var(--space-10);
}

/* Button UI */
.btn-group {
  display: flex;
  gap: var(--space-4);
}

@media (max-width: 1024px) {
  .btn-group {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .btn-group {
    flex-direction: column;
    width: 100%;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: transform var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
  cursor: pointer;
}

@media (max-width: 480px) {
  .btn {
    width: 100%;
  }
}

.btn-primary {
  background-color: var(--color-primary-light);
  color: var(--color-bg-dark);
  box-shadow: 0 4px 14px rgba(76, 175, 80, 0.4);
}

.btn-primary:hover {
  background-color: var(--color-surface);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.6);
}

.btn-secondary {
  background-color: transparent;
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: var(--color-surface);
}

.btn-secondary:hover {
  border-color: var(--color-surface);
  background-color: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

/* Hero Visual — Company Name + Floating Badges */
.hero-image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 450px;
}

@media (max-width: 1024px) {
  .hero-image-wrapper {
    margin-top: var(--space-8);
    min-height: 380px;
  }
}

/* Large Company Name as the centerpiece */
.hero-company-name {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  text-align: center;
  will-change: transform;
  transition: transform 0.1s linear;
  z-index: 5;
}

.hero-company-ar {
  font-family: var(--font-arabic), 'Cairo', sans-serif;
  font-size: 7rem;
  font-weight: 900;
  color: transparent;
  background: linear-gradient(135deg, #4caf50 0%, #81c784 40%, #ffa726 100%);
  background-clip: text;
  -webkit-background-clip: text;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-shadow: none;
  filter: drop-shadow(0 4px 30px rgba(76, 175, 80, 0.3));
}

.hero-company-en {
  font-size: var(--text-lg);
  font-weight: 800;
  letter-spacing: 0.35em;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .hero-company-ar {
    font-size: 4.5rem;
  }
  .hero-company-en {
    font-size: var(--text-sm);
    letter-spacing: 0.25em;
  }
}

@media (max-width: 480px) {
  .hero-company-ar {
    font-size: 3.2rem;
  }
}

/* Floating Badges — base styles */
.hero-badge {
  position: absolute;
  background: var(--glass-bg-dark);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  z-index: 10;
  will-change: transform;
  transition: transform 0.1s linear;
}

.hero-badge-icon {
  width: 40px;
  height: 40px;
  background-color: var(--color-primary-light);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-bg-dark);
  flex-shrink: 0;
}

.hero-badge-text h4 {
  font-size: var(--text-base);
  color: var(--color-surface);
  margin-bottom: 0;
  white-space: nowrap;
}

.hero-badge-text p {
  font-size: var(--text-xs);
  color: #a0a8a0;
  margin-bottom: 0;
  white-space: nowrap;
}

/* Position each badge around the company name — never overlapping */
.hero-badge-1 {
  top: -5%;
  left: -20%;
  animation: float 4s ease-in-out infinite;
}

.hero-badge-2 {
  top: -8%;
  right: -22%;
  animation: float 5s ease-in-out 0.5s infinite alternate-reverse;
}

.hero-badge-3 {
  bottom: 5%;
  left: -25%;
  animation: float 4.5s ease-in-out 1s infinite;
}

.hero-badge-4 {
  bottom: -8%;
  right: -20%;
  animation: float 3.5s ease-in-out 0.8s infinite alternate-reverse;
}

.hero-badge-5 {
  top: 40%;
  right: -28%;
  animation: float 4.2s ease-in-out 1.5s infinite;
}

/* RTL badge position mirrors */
html[dir="rtl"] .hero-badge-1 {
  left: auto;
  right: -20%;
}
html[dir="rtl"] .hero-badge-2 {
  right: auto;
  left: -22%;
}
html[dir="rtl"] .hero-badge-3 {
  left: auto;
  right: -25%;
}
html[dir="rtl"] .hero-badge-4 {
  right: auto;
  left: -20%;
}
html[dir="rtl"] .hero-badge-5 {
  right: auto;
  left: -28%;
}

/* Mobile adjustments — bring badges closer but still outside name */
@media (max-width: 768px) {
  .hero-badge-1 { left: -5%; top: -8%; }
  .hero-badge-2 { right: -5%; top: -5%; }
  .hero-badge-3 { left: -8%; bottom: 0%; }
  .hero-badge-4 { right: -8%; bottom: -5%; }
  .hero-badge-5 { right: -10%; top: 38%; }
  .hero-badge { padding: var(--space-2) var(--space-4); }
  .hero-badge-icon { width: 32px; height: 32px; }
  .hero-badge-text h4 { font-size: var(--text-sm); }
  .hero-badge-text p { font-size: 10px; }
}
