/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Refined, more elegant color palette */
  --bg-main:       #fdfcff;
  --text-main:     #1e1b4b;
  --text-muted:    #4338ca;
  --accent-primary:#f59e0b; /* Golden amber */
  --accent-light:  #fbbf24;
  --accent-dark:   #d97706;
  
  --purple-glow:   rgba(124, 58, 237, 0.15);
  --pink-glow:     rgba(219, 39, 119, 0.12);
  --amber-glow:    rgba(245, 158, 11, 0.12);

  --white:         #ffffff;
  --white-80:      rgba(255,255,255,0.80);
  --white-60:      rgba(255,255,255,0.60);
  --white-20:      rgba(255,255,255,0.20);
  
  --glass-bg:      rgba(255, 255, 255, 0.7);
  --glass-border:  rgba(255, 255, 255, 0.4);
  --glass-shadow:  0 8px 32px rgba(31, 38, 135, 0.07);

  --font:          'Cairo', sans-serif;
  --radius-card:   32px;
  --ease:          cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background-color: var(--bg-main);
  color: var(--text-main);
  overflow-x: hidden;
  min-height: 100vh;
  direction: rtl;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  /* Very subtle, elegant gradient background */
  background: linear-gradient(120deg, #fdfcff 0%, #f3f0ff 50%, #fff0f5 100%);
}

/* ---- Decorative soft glowing orbs ---- */
.deco {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
  z-index: 0;
}
.deco-1 {
  width: 600px; height: 600px;
  background: var(--purple-glow);
  top: -200px; right: -100px;
}
.deco-2 {
  width: 500px; height: 500px;
  background: var(--amber-glow);
  bottom: -150px; left: -50px;
}
.deco-3 {
  width: 400px; height: 400px;
  background: var(--pink-glow);
  top: 40%; left: 40%;
  transform: translate(-50%, -50%);
}

/* ---- Inner layout ---- */
.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 60px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

/* ============================================
   LEFT CONTENT (Text Area)
   ============================================ */
.hero__content {
  flex: 0 1 450px;

  /* entrance animation */
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.hero__content.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ---- pill tag ---- */
.pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 50px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}

/* ---- headline ---- */
.hero__title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  line-height: 1.3;
  color: var(--text-main);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero__title .highlight {
  color: var(--accent-primary);
  position: relative;
  display: inline-block;
  z-index: 1;
}
.hero__title .highlight::before {
  content: '';
  position: absolute;
  right: -5%; bottom: 8px;
  width: 0; height: 16px;
  background: var(--accent-light);
  opacity: 0.3;
  border-radius: 4px;
  z-index: -1;
  transition: width 0.8s 0.8s var(--ease);
}
.hero__title .highlight.animate::before {
  width: 110%;
}

/* ---- subtitle ---- */
.hero__subtitle {
  font-size: clamp(0.9rem, 1.2vw, 1.05rem);
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 40px;
  font-weight: 500;
  opacity: 0.9;
}

/* ============================================
   BUTTONS
   ============================================ */
.hero__actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 36px;
  border-radius: 50px;
  font-family: var(--font);
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
  transition: all 0.3s var(--ease);
}

/* Primary */
.btn--primary {
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-light) 100%);
  color: #fff;
  box-shadow: 0 10px 25px rgba(245, 158, 11, 0.3);
}
.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(245, 158, 11, 0.4);
  background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent-primary) 100%);
}
.btn--primary:active { transform: translateY(0); }

/* Ghost */
.btn--ghost {
  background: var(--glass-bg);
  color: var(--text-main);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(10px);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(31, 38, 135, 0.1);
}

/* Play icon */
.play-icon {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--accent-primary);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease);
}
.btn--ghost:hover .play-icon {
  transform: scale(1.1);
}
.play-icon svg {
  width: 14px; height: 14px;
  fill: #fff;
  transform: scaleX(-1); /* RTL flip */
}

/* ============================================
   BRAND LOGOS
   ============================================ */
.hero__brands {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--text-muted);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s 1s var(--ease), transform 0.8s 1s var(--ease);
}
.hero__brands.visible {
  opacity: 1;
  transform: translateY(0);
}

.brand-item svg {
  width: 150px;
  height: 50px;
}

.brand-divider {
  width: 2px;
  height: 30px;
  background: var(--text-muted);
  opacity: 0.2;
  flex-shrink: 0;
}

/* ============================================
   RIGHT IMAGE (Appears fully, not cropped)
   ============================================ */
.hero__image-wrap {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s 0.3s var(--ease), transform 0.8s 0.3s var(--ease);
  position: relative;
}
.hero__image-wrap.visible {
  opacity: 1;
  transform: translateX(0);
}

.image-container {
  position: relative;
  width: 100%;
  max-width: 750px; /* Let the image take more space */
  display: flex;
  justify-content: center;
}

@keyframes steadyFloat {
  0%   { transform: translateY(0px);   }
  50%  { transform: translateY(-15px); }
  100% { transform: translateY(0px);   }
}

.hero__img {
  width: 100%;
  height: auto; /* Maintains original aspect ratio perfectly */
  object-fit: contain; /* Ensures no cropping */
  border-radius: var(--radius-card);
  /* Optional: soft shadow to lift the image off the background */
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.08));
}

/* ---- floating badges ---- */
.badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: 20px;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 15px 35px rgba(31, 38, 135, 0.08);
  color: var(--text-main);
  white-space: nowrap;
  direction: rtl;
  z-index: 10;
}
.badge div {
  display: flex;
  flex-direction: column;
  line-height: 1.4;
}
.badge strong { font-weight: 800; font-size: 0.95rem; }
.badge span   { font-weight: 600; color: var(--text-muted); font-size: 0.8rem; }
.badge__icon  { font-size: 1.5rem; }

.badge--top {
  top: 10%;
  right: -5%;
  animation: badgeFloat 5s ease-in-out infinite alternate;
}
.badge--bottom {
  bottom: 15%;
  left: -5%;
  animation: badgeFloat 6s ease-in-out infinite alternate-reverse;
}

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

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
  .hero__inner {
    padding: 60px 4%;
    gap: 40px;
  }
  .hero__title { font-size: 3rem; }
  .badge--top { right: -2%; }
  .badge--bottom { left: -2%; }
}

@media (max-width: 880px) {
  .hero {
    height: auto;
    min-height: 100vh;
    padding-top: 40px;
  }
  .hero__inner {
    flex-direction: column;
    text-align: center;
    gap: 50px;
  }
  .hero__content {
    max-width: 100%;
    transform: translateY(30px);
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero__content.visible {
    transform: translateY(0);
  }
  
  .hero__image-wrap {
    transform: translateY(30px);
    order: -1; /* Image on top for mobile */
    width: 100%;
  }
  .hero__image-wrap.visible {
    transform: translateY(0);
  }
  
  .hero__actions {
    justify-content: center;
  }
  .hero__brands {
    justify-content: center;
  }
  
  .image-container {
    max-width: 400px; /* slightly smaller on tablets */
  }
  
  .badge--top { top: 5%; right: 0; }
  .badge--bottom { bottom: 5%; left: 0; }
}

@media (max-width: 480px) {
  .hero__inner { padding: 40px 5%; }
  .hero__title { font-size: 2.2rem; }
  .btn { padding: 14px 28px; width: 100%; justify-content: center; }
  .hero__actions { width: 100%; flex-direction: column; gap: 15px; }
  
  /* Badges might clutter very small screens, so we shrink or hide them */
  .badge { padding: 10px 14px; gap: 8px; }
  .badge__icon { font-size: 1.2rem; }
  .badge strong { font-size: 0.85rem; }
  .badge span { font-size: 0.7rem; }
  
  .image-container { max-width: 90%; }
}

/* ============================================
   STORY SECTION
   ============================================ */
.story {
  padding: 100px 5%;
  background-color: var(--white);
  position: relative;
  overflow: hidden;
}

.story::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,0,0,0.05), transparent);
}

.story__inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.story__header {
  text-align: center;
  margin-bottom: 70px;
}

.story__header h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--text-main);
  font-weight: 900;
  position: relative;
  display: inline-block;
}

.story__header h2::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-light));
  border-radius: 2px;
}

.story__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  position: relative;
}

/* Connecting line for desktop */
@media (min-width: 900px) {
  .story__grid::before {
    content: '';
    position: absolute;
    top: 50px; /* middle of icons */
    left: 10%;
    right: 10%;
    height: 2px;
    background-image: linear-gradient(90deg, var(--accent-light) 40%, transparent 40%);
    background-size: 15px 2px;
    background-repeat: repeat-x;
    opacity: 0.5;
    z-index: 0;
  }
}

.story__card {
  background: #ffffff;
  padding: 50px 35px;
  border-radius: 24px;
  text-align: center;
  border: 1px solid rgba(0,0,0,0.04);
  box-shadow: 0 20px 40px rgba(0,0,0,0.03);
  position: relative;
  z-index: 1;
  overflow: hidden;
  transition: all 0.4s var(--ease);
}

.story__card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--accent-light), var(--accent-primary));
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.story__card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(0,0,0,0.08);
  border-color: rgba(245, 158, 11, 0.2);
}

.story__card:hover::before {
  opacity: 1;
}

.story__icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 30px auto;
  background: rgba(245, 158, 11, 0.08);
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  border: 1px solid rgba(245, 158, 11, 0.15);
  box-shadow: 0 10px 20px rgba(245, 158, 11, 0.05);
  transform: rotate(-5deg);
  transition: all 0.4s var(--ease);
}

.story__card:hover .story__icon {
  transform: rotate(0deg) scale(1.1);
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-light));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 15px 30px rgba(245, 158, 11, 0.25);
}

.story__icon svg {
  width: 38px;
  height: 38px;
}

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

.story__card .highlight-text {
  display: block;
  margin-top: 15px;
  color: var(--accent-dark);
  font-weight: 800;
  font-size: 1.1rem;
}

/* ============================================
   STORY RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .story {
    padding: 60px 5%;
  }
  .story__header {
    margin-bottom: 40px;
  }
  .story__card {
    padding: 40px 25px;
  }
}

/* ============================================
   SHOWCASE SECTION (CIRCLES)
   ============================================ */
.showcase {
  padding: 100px 5%;
  background-color: var(--bg-main);
  position: relative;
  text-align: center;
}

.showcase__inner {
  max-width: 1000px;
  margin: 0 auto;
}

.showcase__header {
  margin-bottom: 60px;
}

.showcase__header h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--text-main);
  font-weight: 900;
  margin-bottom: 15px;
}

.showcase__header p {
  font-size: 1.15rem;
  color: var(--text-muted);
}

.showcase__circles {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 80px;
  flex-wrap: wrap;
}

.circle-item {
  position: relative;
}

.circle-img {
  width: clamp(260px, 35vw, 380px);
  height: clamp(260px, 35vw, 380px);
  border-radius: 50%;
  padding: 15px;
  background: #ffffff;
  box-shadow: 0 25px 50px rgba(0,0,0,0.06);
  border: 2px dashed rgba(245, 158, 11, 0.5); /* Golden dashed border */
  transition: all 0.5s var(--ease);
  position: relative;
}

.circle-img::before {
  content: '';
  position: absolute;
  top: -10px; left: -10px; right: -10px; bottom: -10px;
  border-radius: 50%;
  border: 1px solid rgba(245, 158, 11, 0.15);
  z-index: -1;
  transition: all 0.5s var(--ease);
}

.circle-img:hover {
  transform: translateY(-15px) scale(1.02);
  border-color: var(--accent-primary);
  box-shadow: 0 35px 60px rgba(245, 158, 11, 0.15);
}

.circle-img:hover::before {
  transform: scale(1.05);
  background: rgba(245, 158, 11, 0.05);
}

.circle-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

@media (max-width: 768px) {
  .showcase {
    padding: 60px 5%;
  }
  .showcase__circles {
    gap: 50px;
  }
}

/* ============================================
   PREMIUM RESULTS & CTA SECTION
   ============================================ */
.results-cta {
  padding: 120px 5%;
  background: var(--bg-main);
  position: relative;
  overflow: hidden;
}

/* Ambient glow */
.results-cta::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 80vw; height: 80vw;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.04) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

.results-cta__inner {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

/* --- 1. Top Grid --- */
.results__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.result-card {
  background: #fff;
  border-radius: 24px;
  padding: 40px 30px;
  text-align: center;
  border: 1px solid rgba(0,0,0,0.03);
  box-shadow: 0 15px 35px rgba(0,0,0,0.04);
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}

.result-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-light), var(--accent-primary));
  transform: scaleX(0);
  transition: transform 0.4s var(--ease);
}

.result-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(245, 158, 11, 0.08);
}
.result-card:hover::after {
  transform: scaleX(1);
}

.result-icon {
  width: 70px; height: 70px;
  margin: 0 auto 20px auto;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(219, 39, 119, 0.05));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  color: var(--accent-primary);
  border: 1px solid rgba(245, 158, 11, 0.1);
}

.result-card h4 {
  font-size: 1.4rem;
  color: var(--text-main);
  margin-bottom: 10px;
  font-weight: 800;
}

.result-card p {
  color: var(--text-muted);
  font-size: 1.05rem;
  font-weight: 600;
}

/* --- 2. Secret Box --- */
.secret-box {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
  border-radius: 32px;
  padding: 50px 40px;
  text-align: center;
  color: #fff;
  position: relative;
  box-shadow: 0 30px 60px rgba(30, 27, 75, 0.2);
  overflow: hidden;
}

.secret-box::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 250px; height: 250px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.25) 0%, transparent 70%);
  border-radius: 50%;
}
.secret-box::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -80px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(219, 39, 119, 0.2) 0%, transparent 70%);
  border-radius: 50%;
}

.secret-box__icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  width: 80px; height: 80px;
  border-radius: 50%;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
}

.secret-box h3 {
  font-size: 2.2rem;
  margin-bottom: 15px;
  font-weight: 900;
  color: var(--accent-light);
  position: relative;
  z-index: 2;
}

.secret-box p {
  font-size: 1.3rem;
  line-height: 1.9;
  color: rgba(255,255,255,0.9);
  position: relative;
  z-index: 2;
}

.secret-box strong {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 900;
  display: block;
  margin-top: 12px;
  text-decoration: underline;
  text-decoration-color: var(--accent-primary);
  text-decoration-thickness: 3px;
  text-underline-offset: 8px;
}

/* --- 3. CTA Box --- */
.cta-box {
  text-align: center;
  padding: 20px 0 40px;
}

.cta-box p {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-muted);
  margin-bottom: 25px;
}

.btn-glow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-dark) 100%);
  color: #fff;
  padding: 18px 45px;
  border-radius: 50px;
  font-family: var(--font);
  font-size: 1.2rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 15px 35px rgba(245, 158, 11, 0.4);
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}

.btn-glow::before {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transition: left 0.6s ease;
}

.btn-glow:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 45px rgba(245, 158, 11, 0.55);
}

.btn-glow:hover::before {
  left: 100%;
}

.btn-glow__icon {
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
}
.btn-glow__icon svg {
  width: 20px; height: 20px;
  color: #fff;
}

@media (max-width: 768px) {
  .results-cta {
    padding: 80px 5%;
  }
  .secret-box {
    padding: 40px 25px;
  }
  .secret-box h3 {
    font-size: 1.8rem;
  }
  .secret-box p {
    font-size: 1.15rem;
  }
  .secret-box strong {
    font-size: 1.3rem;
  }
  .btn-glow {
    width: 100%;
    padding: 16px 20px;
    font-size: 1.1rem;
  }
}
