:root {
  --main-color: #039d8f; /* لون أساسي */
  --accent-color: #ff8c32; /* لون فرعي */
  --dark-color: #2f2f2f; /* لون داكن للنص */
  --text-light: #fff; /* نص أبيض */
  --overlay-color: rgba(3, 157, 143, 0.45); /* طبقة شفافة */
}

/* الخط الأساسي */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Tajawal", sans-serif;
}

/* نجعل خلفية الشاشة كاملة بحد أدنى 100vh */
html,
body {
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden; /* السماح بالتمرير عمودي فقط */
}

/* القسم الرئيسي للصفحة */
.coming-soon {
  position: relative;
  /* مهم: أدنى ارتفاع للشاشة */
  min-height: 100vh;
  /* خلفية متدرجة متحركة */
  background: linear-gradient(135deg, #eeeeee, #d4ecdd, #ffffff, #f9f9f9);
  background-size: 300% 300%;
  animation: gradientBG 8s ease infinite alternate;

  /* مساحات داخلية علوية وسفلية */
  padding: 2rem 0;

  /* التوزيع الأفقي للصندوق */
  display: flex;
  justify-content: center;
  /* نترك align-items: flex-start لاستيعاب المحتوى الطويل */
  align-items: flex-start;
}

/* حركة الخلفية */
@keyframes gradientBG {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

/* الفقاعات المتحركة */
.bubble {
  position: absolute;
  border-radius: 50%;
  opacity: 0.15;
  animation: floatBubble 10s ease-in-out infinite alternate;
  z-index: 1;
}
.bubble1 {
  width: 100px;
  height: 100px;
  background-color: var(--main-color);
  top: 20%;
  left: 10%;
  animation-duration: 12s;
}
.bubble2 {
  width: 80px;
  height: 80px;
  background-color: var(--accent-color);
  bottom: 25%;
  right: 15%;
  animation-duration: 10s;
}
.bubble3 {
  width: 120px;
  height: 120px;
  background-color: #0a81ab;
  top: 60%;
  left: 60%;
  animation-duration: 14s;
}
@keyframes floatBubble {
  0% {
    transform: translateY(0) scale(1);
  }
  100% {
    transform: translateY(-40px) scale(1.05);
  }
}

/* طبقة شفافة */
.overlay {
  position: absolute;
  inset: 0;
  background: var(--overlay-color);
  z-index: 1;
  animation: fadeIn 1.2s ease forwards;
}
@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* الصندوق الزجاجي */
.glass-box {
  position: relative;
  z-index: 2;
  width: 90%;
  max-width: 1200px;
  /* اجعل أدنى ارتفاع للعلبة لضبط أقل شكل (يمكنك تقليل الرقم) */
  min-height: 420px;
  padding: 3.5rem;
  display: flex;
  flex-direction: row; /* العدّاد يسار, النص يمين */
  gap: 2rem;
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(2px);
  border-radius: 15px;
  animation: slideUp 1.2s ease forwards;
}
@keyframes slideUp {
  0% {
    transform: translateY(30px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* القسم الأيمن (التايمر) */
.right-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.launch-title {
  color: var(--dark-color);
  font-size: 1.3rem;
  margin-bottom: 1rem;
  text-align: center;
}
.countdown {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.time-box {
  background: var(--main-color);
  color: white;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  min-width: 60px;
  text-align: center;
  transition: transform 0.3s;
}
.time-box:hover {
  transform: scale(1.05);
}
.time-box span {
  font-size: 1.4rem;
  font-weight: bold;
}
.subscribe-text {
  font-size: 0.95rem;
  color: var(--dark-color);
  margin-bottom: 1rem;
  text-align: center;
}
.subscribe-form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.subscribe-form input[type="email"] {
  padding: 0.6rem;
  border: 2px solid var(--main-color);
  border-radius: 6px;
  min-width: 220px;
}
.subscribe-form button {
  background: var(--accent-color);
  border: none;
  border-radius: 6px;
  color: #fff;
  padding: 0.6rem 1rem;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s, transform 0.3s;
}
.subscribe-form button:hover {
  background: #e67e22;
  transform: translateY(-2px);
}

/* القسم الأيسر (النص) */
.left-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: right;
}
.left-col h1 {
  color: var(--dark-color);
  font-size: 2rem;
  margin-bottom: 1rem;
}
.left-col h1 span {
  color: var(--main-color);
}
.left-col .description {
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
  margin-bottom: 2rem;
  text-align: justify;
  text-align-last: right;
}
.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: auto;
  justify-content: flex-end;
}
.social-icons a {
  width: 40px;
  height: 40px;
  background: var(--accent-color);
  color: #fff;
  font-weight: bold;
  text-align: center;
  line-height: 40px;
  border-radius: 50%;
  transition: background 0.3s, transform 0.3s;
  text-decoration: none;
}
.social-icons a:hover {
  background: #e67e22;
  transform: scale(1.1);
}

/* استجابة للشاشات الصغيرة */
@media (max-width: 700px) {
  .coming-soon {
    padding: 2rem 0;
    align-items: flex-start; /* لتسمح بالتمرير إذا المحتوى طويل */
  }
  .glass-box {
    flex-direction: column-reverse;
    gap: 1.5rem;
    padding: 2rem;
  }
  .left-col {
    text-align: center;
  }
  .description {
    text-align: center;
    text-align-last: center;
  }
  .social-icons {
    justify-content: center;
    margin-top: 1rem;
  }
}
