/* Home page desktop styles shared across Arabic and English.
   Direction-specific differences are kept under html[dir="rtl"] / html[dir="ltr"] selectors. */

.hero,
.pillars,
.about {
  position: relative;
  z-index: 1;
}

.hero {
  padding: 64px 5% 46px;
  text-align: center;
  background: linear-gradient(180deg, var(--bg2) 0%, var(--bg) 50%);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(30deg, transparent 46.5%, rgba(226,192,122,0.07) 47%, rgba(226,192,122,0.07) 53%, transparent 53.5%) center / 240px 240px,
    linear-gradient(-30deg, transparent 46.5%, rgba(226,192,122,0.07) 47%, rgba(226,192,122,0.07) 53%, transparent 53.5%) center / 240px 240px,
    linear-gradient(90deg, transparent 48.7%, rgba(226,192,122,0.05) 49%, rgba(226,192,122,0.05) 51%, transparent 51.3%) center / 240px 240px;
  opacity: 0.38;
  pointer-events: none;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  top: 46%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(200,164,90,0.05) 0%, transparent 70%);
  animation: home-pulse 4s ease-in-out infinite;
  z-index: 0;
}

@keyframes home-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
  50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.8; }
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  display: none;
}

.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.cta-btn {
  padding: 13px 28px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.3s var(--ease);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cta-primary {
  background: var(--gold);
  color: var(--bg);
  border: 2px solid var(--gold);
}

.cta-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200,164,90,0.3);
}

.cta-secondary {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border2);
}

.cta-secondary:hover {
  border-color: var(--gold);
  color: var(--gold-light);
  transform: translateY(-2px);
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 40px 5% 70px;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
}

.pillars::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(30deg, transparent 46.8%, rgba(226,192,122,0.045) 47%, rgba(226,192,122,0.045) 53%, transparent 53.2%) center / 260px 260px,
    linear-gradient(-30deg, transparent 46.8%, rgba(226,192,122,0.045) 47%, rgba(226,192,122,0.045) 53%, transparent 53.2%) center / 260px 260px,
    linear-gradient(90deg, transparent 48.9%, rgba(226,192,122,0.032) 49%, rgba(226,192,122,0.032) 51%, transparent 51.1%) center / 260px 260px;
  opacity: 0.28;
  pointer-events: none;
  z-index: 0;
}

.pillar {
  min-width: 0;
  position: relative;
  z-index: 1;
  background: rgba(15,15,18,0.88);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 34px 28px;
  text-align: center;
  transition: all 0.4s var(--ease);
  animation: home-fade-in-up 0.6s var(--ease) backwards;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.pillar:nth-child(1) { animation-delay: 0.1s; }
.pillar:nth-child(2) { animation-delay: 0.2s; }
.pillar:nth-child(3) { animation-delay: 0.3s; }
.pillar:nth-child(4) { animation-delay: 0.4s; }

@keyframes home-fade-in-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pillar:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
  border-color: rgba(200,164,90,0.4);
}

.pillar-icon {
  font-size: 3rem;
  margin-bottom: 18px;
  display: block;
  animation: home-bounce 2s ease-in-out infinite;
}

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

.pillar h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--gold-light);
}

.pillar p {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 0.95rem;
}

.about {
  padding: 48px 5% 56px;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  overflow: hidden;
}

.about::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(30deg, transparent 46.8%, rgba(226,192,122,0.035) 47%, rgba(226,192,122,0.035) 53%, transparent 53.2%) center / 280px 280px,
    linear-gradient(-30deg, transparent 46.8%, rgba(226,192,122,0.035) 47%, rgba(226,192,122,0.035) 53%, transparent 53.2%) center / 280px 280px,
    linear-gradient(90deg, transparent 48.9%, rgba(226,192,122,0.026) 49%, rgba(226,192,122,0.026) 51%, transparent 51.1%) center / 280px 280px;
  opacity: 0.22;
  pointer-events: none;
  z-index: 0;
}

.about h2,
.about p {
  position: relative;
  z-index: 1;
}

.about h2 {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 20px;
  color: var(--text);
}

.about p {
  color: var(--text-muted);
  line-height: 1.9;
  font-size: 1.05rem;
}

html[dir="ltr"] body {
  direction: ltr;
  text-align: left;
}

html[dir="ltr"] .nav-top {
  flex-direction: row;
}

html[dir="ltr"] .nav-bottom {
  justify-content: flex-start;
}

html[dir="ltr"] .nav-links {
  flex-direction: row;
}

html[dir="rtl"] .hero-tag {
  display: block;
  font-size: 40px;
  line-height: 1.18;
  letter-spacing: 0.01em;
  color: var(--gold-light);
  text-transform: none;
  font-weight: 900;
  margin-bottom: 14px;
}

html[dir="rtl"] .hero .subtitle {
  font-size: clamp(1rem, 1.9vw, 1.2rem);
  max-width: 700px;
  margin: 0 auto 28px;
  line-height: 1.75;
}

html[dir="rtl"] .about {
  max-width: 800px;
}

html[dir="ltr"] .nav-main-group {
  margin-left: 0;
  margin-right: 10px;
}

html[dir="ltr"] .hero-tag {
  display: block;
  font-size: clamp(2rem, 4vw, 2.6rem);
  line-height: 1.25;
  letter-spacing: 0.01em;
  color: var(--gold-light);
  text-transform: none;
  font-weight: 900;
  margin-bottom: 14px;
}

html[dir="ltr"] .hero .subtitle {
  font-size: clamp(1rem, 1.9vw, 1.2rem);
  max-width: 760px;
  margin: 0 auto 28px;
  line-height: 1.8;
}

html[dir="ltr"] .about {
  max-width: 820px;
}

@media (max-width: 980px) {
  .hero::before,
  .pillars::before,
  .about::before {
    display: none;
  }
}
