/*
* ملف التنسيق الرئيسي لصفحة ChainTopList
* https://chaintoplist.online/
*/

/* ========== Global Styles ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: #1F134D;
  color: #FFFFFF;
  line-height: 1.6;
}

/* ========== Header ========== */
header {
  background: #3D2C8D;
  padding: 15px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 100;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  max-width: 100%;
  height: auto;
}

#logo-desktop {
  display: block;
  width: 200px;
  height: 50px;
}

#logo-mobile {
  display: none;
  width: 160px;
  height: 40px;
}

nav {
  display: flex;
  align-items: center;
}

nav a {
  color: #29A745;
  margin-left: 18px;
  text-decoration: none;
  font-size: 1rem;
}

#menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #29A745;
  cursor: pointer;
  padding: 5px 10px;
}

#nav-menu {
  display: flex;
  gap: 18px;
}

/* ========== Hero Section ========== */
.hero {
  background: url('/images/hero-mobile.webp') center/cover no-repeat;
  background-color: rgba(61, 44, 141, 0.7);
  background-blend-mode: overlay;
  height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 80px 20px 20px;
  position: relative;
}

@media (min-width: 768px) {
  .hero {
    background-image: url('/images/hero-tablet.webp');
  }
}

@media (min-width: 1024px) {
  .hero {
    background-image: url('/images/hero-desktop.webp');
  }
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(0, 0, 0, 0.3));
  pointer-events: none;
}

.hero h1 {
  font-size: clamp(1.8rem, 6vw, 3.5rem);
  color: white;
  z-index: 2;
  margin-bottom: 15px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.hero p {
  font-size: 1.2rem;
  color: #B0B0B0;
  max-width: 800px;
  z-index: 2;
  margin-bottom: 30px;
}

.cta-button {
  z-index: 2;
  display: inline-block;
  padding: 14px 30px;
  background: linear-gradient(135deg, #4CAF50, #29A745);
  color: white;
  text-decoration: none;
  font-weight: bold;
  border-radius: 8px;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
  transition: all 0.3s ease;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(76, 175, 80, 0.7);
}

/* ========== Platform Cards ========== */
.cards-section {
  padding: 60px 5%;
  text-align: center;
}

.cards-section h2 {
  font-size: 2.2rem;
  margin-bottom: 30px;
  color: #FFFFFF;
}

.cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  max-width: 1400px;
  margin: 0 auto;
}

.card {
  background: #8BC34A; /* نستخدم هذا اللون كخلفية لبطاقة المنصة */
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1), 0 0 15px rgba(139, 195, 74, 0.3);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  height: 100%;
}

.card:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2), 0 0 25px rgba(139, 195, 74, 0.5);
}

.card-icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  margin: 0 auto 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  border: 1px solid rgba(255,255,255,0.3);
}

.card-icon img {
  width: 60px;
  height: 60px;
}

.card h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.card p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.card .cta-link {
  display: inline-block;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.95rem;
  transition: 0.3s;
}

.card .cta-link:hover {
  background: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

/* ========== Block 1: Why Traders Choose Us ========== */
.block-1 {
  padding: 80px 5%;
  background: rgba(61, 44, 141, 0.4);
  text-align: center;
}

.block-1 h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  color: #FFFFFF;
}

.block-1 p {
  color: #D0D0D0;
  max-width: 800px;
  margin: 0 auto 40px;
  font-size: 1.1rem;
}

.features {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.feature {
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 10px;
  width: 220px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.feature h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: #4CAF50;
  display: flex;
  align-items: center;
  gap: 10px;
}

.feature h3 img {
  width: 30px;
  height: 30px;
}

.feature p {
  color: #B0B0B0;
  font-size: 0.95rem;
  margin: 0;
}

/* ========== Block 2: How It Works ========== */
.block-2 {
  padding: 80px 5%;
  text-align: center;
}

.block-2 h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  color: #FFFFFF;
}

.steps {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  margin-top: 40px;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 200px;
}

.step-number {
  width: 50px;
  height: 50px;
  margin-bottom: 15px;
}

.step-number img {
  width: 50px;
  height: 50px;
}

.step h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.step p {
  color: #B0B0B0;
  font-size: 0.95rem;
}

/* ========== Block 3: What Traders Say ========== */
.block-3 {
  padding: 80px 5%;
  background: rgba(61, 44, 141, 0.4);
  text-align: center;
}

.block-3 h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  color: #FFFFFF;
}

.testimonials {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  margin-top: 40px;
}

.testimonial {
  background: rgba(255, 255, 255, 0.08);
  padding: 25px;
  border-radius: 10px;
  max-width: 350px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  position: relative;
}

.testimonial-avatar {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
}

.testimonial p {
  font-style: italic;
  color: #D0D0D0;
  margin-bottom: 15px;
  padding-top: 20px;
}

.user {
  font-weight: bold;
  color: #4CAF50;
}

/* ========== Block 4: Ready to Trade Smarter? ========== */
.block-4 {
  padding: 100px 5%;
  text-align: center;
  background: linear-gradient(135deg, #3D2C8D, #2A1D75);
}

.block-4 h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #FFFFFF;
}

.block-4 p {
  color: #B0B0B0;
  max-width: 700px;
  margin: 0 auto 30px;
  font-size: 1.1rem;
}

.cta-large {
  display: inline-block;
  padding: 16px 40px;
  background: linear-gradient(135deg, #4CAF50, #29A745);
  color: white;
  text-decoration: none;
  font-weight: bold;
  border-radius: 8px;
  font-size: 1.2rem;
  box-shadow: 0 6px 16px rgba(76, 175, 80, 0.5);
  transition: all 0.3s ease;
}

.cta-large:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(76, 175, 80, 0.7);
}

/* ========== قسم الدليل المجاني (Block Download) ========== */
.block-download {
  padding: 80px 5%;
  text-align: center;
  background: linear-gradient(135deg, #1F134D, #2A1D75);
}

.block-download h2 {
  font-size: 2.3rem;
  margin-bottom: 15px;
  color: #FFFFFF;
}

.block-download p {
  color: #B0B0B0;
  max-width: 700px;
  margin: 0 auto 30px;
  font-size: 1.1rem;
}

/* ========== Footer ========== */
footer {
  background: #3D2C8D;
  padding: 40px 5%;
  text-align: center;
  margin-top: 60px;
}

footer p {
  color: #D0D0D0;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 15px;
}

.footer-links a {
  color: #B0B0B0;
  font-size: 0.9rem;
  text-decoration: none;
}

.footer-links a:hover {
  color: #FFFFFF;
}

/* ========== WhatsApp Button (Fixed) ========== */
.whatsapp-button {
  position: fixed;
  bottom: 90px;
  right: 30px;
  background: #25D366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  z-index: 1000;
  text-decoration: none;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* ========== Responsive Design (Mobile First) ========== */
@media (max-width: 768px) {
  header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
  }

  #logo-desktop {
    display: none;
  }

  #logo-mobile {
    display: block;
    width: 160px;
    height: 40px;
  }

  #menu-toggle {
    display: block;
  }

  #nav-menu {
    display: none;
    position: absolute;
    top: 65px;
    left: 0;
    width: 100%;
    background: #3D2C8D;
    flex-direction: column;
    padding: 10px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 100;
  }

  #nav-menu.active {
    display: flex;
  }

  nav a {
    color: #B0B0B0;
    margin: 0;
    padding: 12px 20px;
    display: block;
    text-align: center;
    font-size: 1rem;
  }

  /* ========== تعديل حجم العناوين ورفع الزر على الجوال فقط ========== */
  .hero {
    padding-top: 100px !important;
    padding-bottom: 30px;
  }

  .hero h1 {
    font-size: 1.8rem;
    line-height: 1.3;
    margin-bottom: 10px;
  }

  .hero p {
    margin-bottom: 20px;
  }

  .cta-button {
    margin-top: 10px;
    margin-bottom: 20px;
  }

  .cards-section h2,
  .block-1 h2,
  .block-2 h2,
  .block-3 h2,
  .block-4 h2,
  .block-download h2 {
    font-size: 2rem;
  }

  .card h3 {
    font-size: 1.4rem;
  }

  .features, .steps, .testimonials {
    flex-direction: column;
    align-items: center;
  }

  .feature, .step, .testimonial {
    width: 100%;
    max-width: 300px;
  }

  /* ========== تنسيق التذييل على الجوال فقط ========== */
  .footer-links {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 0;
    margin: 15px 0;
  }

  .footer-links a {
    font-size: 0.95rem;
    padding: 6px 0;
    color: #B0B0B0;
    text-align: center;
    width: 100%;
    max-width: 280px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: color 0.3s ease;
  }

  .footer-links a:hover {
    color: #FFFFFF;
  }
}

@media (max-width: 480px) {
  .cta-button {
    padding: 12px 20px;
    font-size: 1rem;
  }

  .cta-large {
    padding: 14px 30px;
    font-size: 1.1rem;
  }

  .block-4 h2 {
    font-size: 2rem;
  }

  .footer-links a {
    font-size: 0.9rem;
    padding: 5px 0;
  }
}