@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@700;900&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Cairo', sans-serif;
  background: #f9fafb;
  color: #1e1e1e;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Header */
.header {
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  padding: 14px 32px;

  position: fixed;      /* 👈 يثبت */
  top: 0;
  right: 0;
  width: 100%;
  z-index: 1000;        /* فوق أي حاجة */
}



.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  width: 44px;
  height: 44px;
}

.brand-name {
  font-size: 28px;
  font-weight: 900;
  background: linear-gradient(135deg, #2F80ED, #56CCF2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Button */
.cta-btn {
  background: linear-gradient(135deg, #2F80ED, #56CCF2);
  color: #fff;
  border: none;
  padding: 10px 22px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(47, 128, 237, 0.3);
}

/* Hero */

.hero {
 padding: 24px 20px 5px;  text-align: center;
}

#typing-text::after {
  content: "|";
  margin-right: 4px;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 50%, 100% { opacity: 1; }
  25%, 75% { opacity: 0; }
}

.hero h1 {
  font-size: 34px; /* أصغر شوية */
  color: #2F80ED;
  margin-bottom: 12px;
}

.hero p {
  font-size: 18px;
  color: #555;
}


/* Responsive */
@media (max-width: 768px) {
  .header {
    padding: 12px 16px;
  }

  .container {
    position: relative;
    justify-content: center;
  }

  .brand {
    width: 100%;
    justify-content: center;
  }

  .brand img {
    position: absolute;
    right: 16px; /* اللوجو يفضل مكانه */
    width: 40px;
    height: 40px;
  }

  .brand-name {
    font-size: 32px;       /* تكبير الاسم */
    text-align: center;
  }

  .hero h1 {
    font-size: 27px;
  }

  .container {
    padding: 0 16px;
  }
   .cta-btn {
    display: none;
  }
}

.apps {
  padding: 70px 0px 80px;
}

.apps-grid {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.app-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  will-change: transform;
  opacity: 0;
  transform: translateY(40px);
    perspective: 1000px;
  position: relative;
  overflow: hidden;
    max-width: 360px;   /* 👈 يمنع التضخيم */
  margin: auto;
}
.app-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.35),
    transparent
  );
}


.apps-title {
  font-size: 24px;
  font-weight: 900;
  text-align: center;
  margin-bottom: 32px;
  color: #000000;
}
.apps-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(135deg, #2F80ED, #56CCF2);
  margin: 12px auto 0;
  border-radius: 2px;
}


.app-card:hover::after {
  animation: shimmer 0.8s ease;
}

@keyframes shimmer {
  to {
    left: 100%;
  }
}

.app-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 18px 40px rgba(47, 128, 237, 0.18);
}


.app-card.show {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.6s ease;
}


.app-card img {
  width: 100%;
  height: 300px;          /* ارتفاع ثابت */
  object-fit: cover;     /* يملأ المساحة بالكامل */
  border-radius: 16px;
  margin-bottom: 20px;
    transition: transform 0.4s ease;
      animation: float 3.5s ease-in-out infinite;


}



@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}


.app-card:hover img {
  transform: scale(1.08);
}


.app-card h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.app-card p {
  font-size: 15px;
  color: #666;
  margin-bottom: 16px;
}


.subscribe-btn {
  display: block;
  width: 100%;
  padding: 14px 0;
  font-size: 16px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  border-radius: 12px;
  color: #fff;

  background: linear-gradient(
    270deg,
    #2F80ED,
    #56CCF2,
    #9B51E0,
    #2F80ED
  );
  background-size: 600% 600%;
  animation: gradientMove 6s ease infinite;

  box-shadow:
    0 0 0 rgba(47,128,237,0),
    0 8px 20px rgba(47,128,237,0.35);

  transition: transform 0.25s ease, box-shadow 0.25s ease;
}


/* Gradient animation */
@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.app-card button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,0.35),
    transparent
  );
  transform: translateX(-100%);
}



.page-bg {
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    -45deg,
    #f5f9ff,
    #eef4ff,
    #f9fbff,
    #eef7ff
  );
  background-size: 400% 400%;
  animation: bgMove 18s ease infinite;
}

@keyframes bgMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
/* Background Shapes */
.bg-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.bg-shapes span {
  position: absolute;
  display: block;
  width: 260px;
  height: 260px;
  background: radial-gradient(
    circle,
    rgba(47,128,237,0.25),
    rgba(47,128,237,0.05),
    transparent 70%
  );
  border-radius: 50%;
  animation: floatBg 22s linear infinite;
  filter: blur(6px);
}

/* كل عنصر مكانه وسرعته */
.bg-shapes span:nth-child(1) {
  top: 10%;
  left: -80px;
  animation-duration: 26s;
}

.bg-shapes span:nth-child(2) {
  top: 60%;
  right: -100px;
  width: 340px;
  height: 340px;
  animation-duration: 32s;
}

.bg-shapes span:nth-child(3) {
  bottom: -120px;
  left: 30%;
  width: 300px;
  height: 300px;
  animation-duration: 28s;
}

/* Animation */
@keyframes floatBg {
  0% {
    transform: translateY(0) translateX(0);
  }
  50% {
    transform: translateY(-120px) translateX(60px);
  }
  100% {
    transform: translateY(0) translateX(0);
  }
}

/* Random Background Particles */
.bg-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.bg-particles span {
  position: absolute;
  width: 12px;
  height: 12px;
  background: rgba(47, 128, 237, 0.18);
  border-radius: 50%;
  animation: particleMove linear infinite;
  filter: blur(0.5px);
}

/* حركة عشوائية */
@keyframes particleMove {
  from {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  to {
    transform: translateY(-120vh) translateX(40px);
    opacity: 0;
  }
}
.page-bg > *:not(.bg-shapes):not(.bg-particles) {
  position: relative;
  z-index: 1;
}
/* Section backgrounds */
.apps-section {
  position: relative;
  padding: 40px 0;
}

/* AI Tools */
.apps-section[data-bg="ai-tools"] {
  background: radial-gradient(circle at top,
    rgba(47,128,237,0.08),
    transparent 70%);
}

/* AI Apps */
.apps-section[data-bg="ai-apps"] {
  background: radial-gradient(circle at top,
    rgba(155,81,224,0.08),
    transparent 70%);
}

/* Design */
.apps-section[data-bg="design"] {
  background: radial-gradient(circle at top,
    rgba(86,204,242,0.10),
    transparent 70%);
}

/* Video */
.apps-section[data-bg="video"] {
  background: radial-gradient(circle at top,
    rgba(242,153,74,0.10),
    transparent 70%);
}
.bg-particles span,
.bg-shapes span {
  will-change: transform;
}
/* Discount Ribbon */
.discount-ribbon {
  position: absolute;
  top: 16px;
  left: -48px;
  width: 160px;
  padding: 8px 0;

  background: linear-gradient(135deg, #ff3b3b, #d60000);
  color: #fff;

  font-size: 14px;
  font-weight: 900;
  text-align: center;
  letter-spacing: 1px;

  transform: rotate(-45deg);
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);

  z-index: 5;
  pointer-events: none;
}
.discount-ribbon.hot {
  background: linear-gradient(135deg, #ff8a00, #ff3b3b);
}
.discount-ribbon::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,0.5),
    transparent
  );
  animation: ribbonShine 3.5s infinite;
}

@keyframes ribbonShine {
  0% { left: -100%; }
  50% { left: 120%; }
  100% { left: 120%; }
}
.app-card:hover .discount-ribbon {
  animation: ribbonShake 0.4s ease;
}

@keyframes ribbonShake {
  0% { transform: rotate(-45deg) translateX(0); }
  25% { transform: rotate(-45deg) translateX(-3px); }
  50% { transform: rotate(-45deg) translateX(3px); }
  75% { transform: rotate(-45deg) translateX(-3px); }
  100% { transform: rotate(-45deg) translateX(0); }
}
.why-us {
}

.section-title {
  text-align: center;
  font-size: 32px;
  font-weight: 900;
  margin-bottom: 50px;
}

.why-cards {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.why-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 16px;
  padding: 30px 20px;
  text-align: center;
  transition: 0.3s;
}

.why-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.why-card .icon {
  font-size: 36px;
  margin-bottom: 16px;
}

.why-card h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.why-card p {
  font-size: 14px;
  color: #666;
}
