@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;700&display=swap');

:root {
  --md-primary: #1f3c88;
  --md-primary-dark: #162f6c;
  --md-accent: #e53935;
  --md-accent-dark: #b71c1c;
  --md-surface: #ffffff0d;
  --md-light: #eceff1;
  --md-shadow-light: rgba(0,0,0,0.1);
  --md-shadow-dark: rgba(0,0,0,0.3);
}

/* التنسيقات الأساسية */
* {
  box-sizing: border-box;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, var(--md-primary-dark), var(--md-primary));
  font-family: 'Cairo', Arial, sans-serif;
  color: #fff;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.page-wrapper {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* تنسيقات الرأس */
header {
  background: var(--md-surface);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  width: 100%;
  max-width: 960px;
  padding: 20px 40px;
  margin: 20px auto 30px;
  box-shadow: 0px 4px 12px var(--md-shadow-dark);
}

.top-row {
    width: 100%;
    /* استخدام Flexbox لتوزيع العناصر */
    display: flex; 
    /* وضع اللوجو في أقصى اليسار والنص في أقصى اليمين */
    justify-content: space-between; 
    align-items: center;
}

.header-text {
    /* تأكد من أن النص متراصف لليمين داخل مكانه */
    text-align: center; 
}

.top-row img {
  height: 70px;
  border-radius: 8px;
  box-shadow: 0px 2px 6px var(--md-shadow-dark);
}

.top-row img:hover {
  transform: scale(1.04) rotate(-2deg);
}

.header-text h1 {
  font-size: 1.5em;
  margin: 0;
  font-weight: 900;
  letter-spacing: 1px;
  color: var(--md-accent);
}

.header-text h2 {
  margin: 0;
  font-weight: 500;
  font-size: 1em;
  color: var(--md-light);
}

/* تنسيقات الأزرار */
.download-btn, .cta-btn {
  background-color: var(--md-accent);
  color: #fff;
  font-weight: 700;
  padding: 14px 30px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-size: 1.1em;
  letter-spacing: 0.5px;
  box-shadow: 0px 3px 6px var(--md-shadow-dark);
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.download-btn:hover, .cta-btn:hover {
  background-color: var(--md-accent-dark);
  box-shadow: 0px 4px 10px rgba(0,0,0,0.4);
  transform: translateY(-2px);
}

.download-btn:active, .cta-btn:active {
  transform: scale(0.97) translateY(0);
}

.download-btn.floating {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 999;
  padding: 14px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0px 4px 12px var(--md-shadow-dark);
  background-color: var(--md-accent);
}

.download-btn.floating svg {
  fill: #fff;
  width: 24px;
  height: 24px;
}

.download-btn.floating:hover {
  background-color: var(--md-accent-dark);
  box-shadow: 0px 6px 14px rgba(0,0,0,0.5);
}

/* تنسيقات المحتوى الرئيسي */
.main-content {
  flex-grow: 1;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;

}

iframe {
  width: 90vw;
  max-width: 960px;
  height: 80vh;
  border-radius: 16px;
  border: none;
  background-color: var(--md-surface);
  backdrop-filter: blur(6px);
  box-shadow: 0px 4px 12px var(--md-shadow-dark);
  margin: auto;
}

/* تنسيقات التذييل */
footer {
  background: var(--md-surface);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  width: 90%;
  max-width: 960px;
  padding: 15px;
  margin: 30px auto 20px;
  text-align: center;
  font-size: 0.95em;
  color: var(--md-light);
  box-shadow: 0px -2px 8px rgba(0,0,0,0.2);
}

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

.contact-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0.8;
}
.contact-item:hover {
    opacity: 1;
}

.qr-code img {
  height: 100px;
  border-radius: 8px;
  opacity: 0.8;
}
.qr-code img:hover {
    opacity: 1;
}

/* تنسيقات صفحة index.html */
.hero-section {
  padding: 80px 20px;
  border-radius: 16px;
  background-color: var(--md-surface);
  backdrop-filter: blur(6px);
  box-shadow: 0px 4px 12px var(--md-shadow-dark);
  margin-bottom: 5px;
}

.hero-section h1 {
  font-size: 2em;
  color: var(--md-accent);
  margin-bottom: 10px;
}

.hero-section p {
  font-size: 1.2em;
  color: #cfd8dc;
  margin-bottom: 5px;
}

.features-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.feature-card {
  background-color: var(--md-surface);
  backdrop-filter: blur(6px);
  padding: 10px;
  border-radius: 16px;
  box-shadow: 0px 4px 12px var(--md-shadow-dark);
  flex: 1 1 300px;
  max-width: 300px;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0px 6px 15px rgba(0,0,0,0.4);
}

.feature-card i {
  font-size: 3em;
  color: var(--md-accent);
  margin-bottom: 15px;
}

.feature-card h3 {
  font-size: 1.4em;
  color: #fff;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 1em;
  color: #cfd8dc;
}

/* تنسيقات الشاشات الصغيرة */
@media (max-width: 600px) {
  header {
    padding: 15px;
  }

  .top-row {
    width: 100%;
    /* استخدام Flexbox لتوزيع العناصر */
    display: flex; 
    /* وضع اللوجو في أقصى اليسار والنص في أقصى اليمين */
    justify-content: space-between; 
    align-items: center;
}

.header-text {
    /* تأكد من أن النص متراصف لليمين داخل مكانه */
    text-align: center; 
}

  .top-row img {
    height: 60px;
    margin: 0 auto;
  }

 

  .header-text h1 {
    font-size: 1.3em;
  }

  .header-text h2 {
    font-size: 0.9em;
  }

  .download-btn {
    padding: 10px 20px;
    font-size: 1em;
  }

  .download-btn.floating {
    width: 45px;
    height: 45px;
  }

  .download-btn.floating svg {
    width: 20px;
    height: 20px;
  }

  .footer-content {
    flex-direction: flex;
  }

  .contact-info {
    align-items: center;
  }

  .hero-section {
    padding: 10px 10px;
  }

  .hero-section h1 {
    font-size: 1.5em;
  }

  .hero-section p {
    font-size: 1em;
  }

  .cta-btn {
    padding: 10px 20px;
    font-size: 1em;
  }

  .features-section {
    flex-direction: column;
    gap: 15px;
  }

  .feature-card {
    max-width: 100%;
  }
}