/* ===== Hero Section ===== */
.hero-section {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background-color: var(--bg-color);
}

.bg-animation-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Canvas full background */
#hero-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* نعومة + دمج مع الأبيض */
.bg-animation-layer {
  background: radial-gradient(
    circle at 30% 20%,
    rgba(79, 70, 229, 0.08),
    transparent 60%
  );
}

.content-wrapper {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1300px;
}

/* ===== Flex Layout ===== */
.hero-flex {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  flex-wrap: wrap;
}

/* .hero-left {
  flex: 1 1 550px;
}

.hero-right {
  flex: 1 1 500px;
} */

/* ===== Hero Text ===== */
.main-title {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.2;
  background: linear-gradient(90deg, var(--pruble), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}

.gradient-highlight {
  background: linear-gradient(90deg, var(--accent), var(--accent-alt));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tagline {
  font-size: 1.15rem;
  color: var(--text-color);
  font-weight: 200;
  margin-bottom: 2rem;
  max-width: 500px;
  line-height: 1.6;
}

/* ===== Buttons ===== */
.action-buttons {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.btn {
  padding: 0.75rem 2rem;
  font-weight: 600;
  border-radius: 12px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.main-cta {
  background: var(--accent);
  color: #fff;
}

.main-cta:hover {
  background: var(--accent-alt);
  box-shadow: 0 12px 24px var(--accent-glow);
}

.secondary-cta {
  border: 2px solid var(--accent);
  color: var(--accent);
}

.secondary-cta:hover {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 24px var(--accent-glow);
}

/* ===== Services Grid ===== */
.services-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: #f9f9f9;
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.icon-frame {
  width: 60px;
  height: 60px;
  margin: 0 auto 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.service-card span {
  display: block;
  font-weight: 700;
  color: var(--text-color);
  margin-top: 0.5rem;
}

/* ===== Responsive ===== */

@media (max-width: 1200px) and (min-width: 481px) {
  .action-buttons {
    justify-content: center;
    align-items: center;
  }
}

@media (max-width: 1124px) {
  .hero-flex {
    flex-direction: column;
    align-items: center;
    gap: 3rem;
  }

  .hero-left,
  .hero-right {
    text-align: center;
  }

  .services-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .main-title {
    font-size: 2.5rem;
  }

  .tagline {
    font-size: 1rem;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding: 1 2rem;
  }
  .services-container {
    width: 100%;
    grid-template-columns: repeat(2, 1fr); /* كل صف فيه كارتين */
    gap: 1rem; /* المسافة بين الكارتات */
  }
  .service-card {
    padding: 0.5rem; /* تصغير البادينغ لتناسب الموبايل */
    max-width: 100%;
  }

  .service-card span {
    font-size: 0.8rem; /* تصغير النصوص قليلاً */
  }

  .action-buttons {
    flex-direction: column;
    gap: 1rem;
  }
}

/* ================= Hero Reveal ================= */

.hero-reveal {
  opacity: 0;
  transform: translateY(24px);
  animation: heroFadeUp 0.8s ease forwards;
}

.hero-delay-1 {
  animation-delay: 0.1s;
}
.hero-delay-2 {
  animation-delay: 0.25s;
}
.hero-delay-3 {
  animation-delay: 0.4s;
}
.hero-delay-4 {
  animation-delay: 0.55s;
}

@keyframes heroFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Why Choose Us Section ===== */

.why-choose-us-section {
  padding: 4.5rem 1.5rem;
  background-color: #ffffff;
}

.why-choose-us-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 3rem;
  align-items: center;
}

.why-container {
  margin: auto;
  padding: 1rem 4.5rem;
  max-width: 1200px;
}

/* ---------------- Text Content ---------------- */

.why-content {
  max-width: 560px;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.section-title::after {
  content: "";
  display: block;
  height: 3px;
  margin-top: 0.6rem;
  background: linear-gradient(90deg, var(--accent), var(--accent-alt));
  border-radius: 999px;
}

.section-description {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--muted-text);
  margin: 1.4rem 0 2rem;
}

/* ---------------- Features ---------------- */

.features-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  background: #fafafa;
  border: 1px solid var(--border-color);
  font-size: 0.9rem;
  font-weight: 500;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.feature-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
}

.feature-icon {
  font-size: 1.1rem;
}

/* ---------------- Image ---------------- */

.why-image {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
}

.why-image img {
  width: 100%;
  height: auto; /* يحترم 3:2 */
  display: block;
  transition: transform 0.5s ease;
}

.why-image:hover img {
  transform: scale(1.02);
}

/* ---------------- Reveal Animation ---------------- */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ---------------- Responsive ---------------- */

@media (max-width: 992px) {
  .why-choose-us-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    justify-items: center;
    text-align: center;
  }

  .why-image {
    order: -1;
  }

  .features-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .why-container {
    padding: 1rem 1.5rem;
  }
  .why-content {
    text-align: center;
  }
  .section-title {
    font-size: 1.7rem;
  }

  .section-description {
    font-size: 0.9rem;
  }
}

/* ================= What We Actually Do – Editorial Style ================= */
/* ===== What We Actually Do Section ===== */

/* ===== What We Actually Do Section ===== */

.what-we-do-section {
  padding: 1.5rem 1.5rem;
  padding-bottom: 1rem;
  background-color: #ffffff;
}

.what-container {
  margin: auto;
  padding: 1rem 4.5rem;
  max-width: 1200px;
}

/* ---------------- Header ---------------- */

.what-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, var(--accent), var(--accent-alt));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-description {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--muted-text);
  max-width: 700px;
  margin: 12px auto;
}

/* ---------------- Intro Grid ---------------- */

.what-intro-grid {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4.5rem;
}

.what-visual {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.15);
}

.what-visual img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s ease-in-out;
}

.what-visual:hover img {
  transform: scale(1.05) rotate(1deg);
}

.what-text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-color);
}

.what-text p {
  margin-bottom: 1.25rem;
}

.what-text strong {
  font-weight: 700;
  color: var(--accent);
}

.muted {
  color: var(--muted-text);
  font-style: italic;
}

.highlight {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-color);
  padding: 0.5rem 1rem;
  background: rgba(79, 70, 229, 0.08);
  border-radius: 8px;
  display: inline-block;
}

.what-focus-list {
  list-style: none;
  margin: 1.25rem 0 1.75rem;
  padding: 0;
}

.what-focus-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.5;
}

.what-focus-list li::before {
  content: "✓";
  color: var(--accent-alt);
  font-weight: bold;
  font-size: 1.2rem;
}

/* ---------------- Services ---------------- */

.what-services {
  margin-bottom: 4.5rem;
}

.services-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2.25rem;
  text-align: center;
  color: var(--text-color);
}

.what-services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
}

.what-card {
  background: linear-gradient(135deg, #fafafa, #ffffff);
  border-radius: 20px;
  padding: 2rem 1.5rem;
  border: 1px solid var(--border-color);
  text-align: center;
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
}

.what-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.1);
}

.icon-service {
  width: 60px;
  height: 60px;
  margin: 0 auto 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.what-card h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-color);
}

.what-card p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--muted-text);
}

/* ---------------- How We Work ---------------- */

/* ===== How We Work – Modern Design ===== */
.what-how {
  max-width: 900px;
  margin: 0 auto 1rem;
  text-align: center;
}

.what-how h3 {
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-color);
}

.what-how p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  color: var(--text-color);
}

.what-process {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  padding: 0;
  margin-bottom: 2rem;
}

.what-process li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 1.25rem;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
  font-size: 1rem;
  line-height: 1.5;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    background 0.3s ease;
}

.what-process li:hover {
  transform: translateY(-4px);
  background: var(--accent-glow);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

.process-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Closing CTA */
/* ===== Final CTA Before Footer ===== */

.closing-cta {
  margin-top: 0.5rem;
  padding: 3.5rem 2.5rem;
  border-radius: 28px;
  text-align: center;
  background: linear-gradient(
    135deg,
    rgba(79, 70, 229, 0.95),
    rgba(99, 102, 241, 0.95)
  );
  color: #ffffff;
  box-shadow: 0 30px 70px rgba(79, 70, 229, 0.35);
  position: relative;
  overflow: hidden;
}

/* subtle glow */
.closing-cta::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.18),
    transparent 60%
  );
  pointer-events: none;
}

.closing-cta h4 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.closing-cta p {
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 620px;
  margin: 0 auto 2.2rem;
  color: #fff;
}

/* Button */
.closing-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 3.5rem;
  background: #ffffff;
  color: var(--accent);
  font-weight: 800;
  border-radius: 999px;
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.35s ease;
}

.closing-btn:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

/* Responsive */
@media (max-width: 768px) {
  .closing-cta {
    padding: 3rem 1.8rem;
  }

  .closing-cta h4 {
    font-size: 1.6rem;
  }

  .closing-cta p {
    font-size: 1rem;
  }
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .what-process {
    grid-template-columns: 1fr;
  }
  .process-icon {
    width: 35px;
    height: 35px;
    font-size: 1.1rem;
  }
}

/* ---------------- Reveal Animation ---------------- */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.8s ease-out,
    transform 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ---------------- Responsive ---------------- */

@media (max-width: 992px) {
  .what-intro-grid {
    grid-template-columns: 1fr;
    gap: 2.75rem;
  }

  .what-visual {
    order: -1;
  }

  .what-services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .what-process {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .what-container {
    padding: 1rem 2.5rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .section-description {
    font-size: 0.95rem;
  }

  .services-title,
  .what-how h3 {
    font-size: 1.4rem;
  }

  .what-card h4 {
    font-size: 1.1rem;
  }

  .what-card p {
    font-size: 0.9rem;
  }

  .what-services-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .what-container {
    padding: 1rem 1.5rem;
  }

  .section-title {
    font-size: 1.7rem;
  }

  .what-text p,
  .what-how p {
    font-size: 0.95rem;
  }

  .what-focus-list li,
  .what-process li {
    font-size: 0.95rem;
  }
}
