:root {
  --primary-color: #3498db;
  --secondary-color: #2ecc71;
  --default-font: 'Alexandria', sans-serif;
  
  /* Light mode variables (default) */
  --background-color: #ffffff;
  --default-color: #212529;
  --heading-color: #2d465e;
  --accent-color: #0d83fd;
  --surface-color: #ffffff;
  --contrast-color: #ffffff;
  
  --bg-color: #f8f9fa;
  --text-color: #212529;
  --card-bg: #ffffff;
  --border-color: #dee2e6;
  --muted-color: #6c757d;
}

/* Dark mode variables - applied when body has dark-mode class */
body.dark-mode {
  --background-color: #121212;
  --default-color: #e0e0e0;
  --heading-color: #ffffff;
  --accent-color: #4da8ff;
  --surface-color: #1e1e1e;
  --contrast-color: #ffffff;
  
  --bg-color: #121212;
  --text-color: #e0e0e0;
  --card-bg: #1e1e1e;
  --border-color: #333333;
  --muted-color: #a0a0a0;
}

/* Light mode is the default (no class needed) */
body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--default-font);
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Apply colors to components */
.card, .pricing-card, .service-card, .testimonial-item, .info-box,
.project-card, .nft {
  background-color: var(--card-bg);
  border-color: var(--border-color);
  color: var(--text-color);
}

.text-muted {
  color: var(--muted-color) !important;
}

.border {
  border-color: var(--border-color) !important;
}

.section-title h2 {
  color: var(--heading-color);
}

.project-title {
  color: var(--heading-color);
}

.project-description {
  color: var(--default-color);
  opacity: 0.9;
}

/* Theme toggle button */
.theme-toggle {
  position: fixed;
  bottom: 90px;
  right: 20px;
  z-index: 9999;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--card-bg);
  color: var(--text-color);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* NFT card theming */
.nft {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  background: linear-gradient(0deg, var(--card-bg) 0%, color-mix(in srgb, var(--accent-color), transparent 95%) 100%);
  box-shadow: 0 7px 20px 5px rgba(0, 0, 0, 0.1);
}

.nft:hover {
  border: 1px solid var(--border-color);
  box-shadow: 0 7px 50px 10px rgba(0, 0, 0, 0.15);
}

.nft .description,
.nft .tokenInfo .duration,
.nft .creator ins {
  color: var(--muted-color);
}

/* Project cards */
.project-card {
  background-color: var(--surface-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.project-card:hover {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.project-tag {
  background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
  color: var(--accent-color);
}

/* Light mode specific adjustments */
body:not(.dark-mode) {
  /* Light mode only styles if needed */
}

/* Dark mode specific adjustments */
body.dark-mode {
  /* Dark mode only styles if needed */
}

/* Smooth transitions for all theme-able elements */
.card, .pricing-card, .service-card, .testimonial-item, .info-box,
.project-card, .nft, .theme-toggle, .project-tag {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Keep your existing RTL, hover effects, and responsive styles below */
.hero-buttons .btn {
  margin-right: 0 !important;
  margin-left: 10px;
}

/* ... rest of your existing RTL and other styles ... */

    .feature-item.text-end,
    .feature-item.text-start {
      text-align: right !important;
    }

    .feature-item .d-flex {
      flex-direction: row-reverse;
    }

    .feature-list {
      padding-right: 0;
    }

    .feature-list li {
      list-style: none;
      padding-right: 1.5rem;
      position: relative;
    }

    .feature-list li i {
      position: absolute;
      right: 0;
    }

    .nav-tabs {
      padding-right: 0;
    }

    /* Additional RTL fixes */
    .me-auto {
      margin-left: auto !important;
      margin-right: 0 !important;
    }

    .ms-auto {
      margin-right: auto !important;
      margin-left: 0 !important;
    }

    .me-2 {
      margin-left: 0.5rem !important;
      margin-right: 0 !important;
    }

    .ms-2 {
      margin-right: 0.5rem !important;
      margin-left: 0 !important;
    }

    /* Header adjustments for RTL */
    .header-container {
      flex-direction: row-reverse;
    }

    .navmenu ul {
      padding-right: 0;
    }

    /* Hero section adjustments */
    .hero-content {
      text-align: right;
    }

    /* About section adjustments */
    .about-content {
      text-align: right;
    }

    /* Fix for Bootstrap icons in RTL */
    .bi-arrow-right::before {
      transform: rotate(180deg);
      display: inline-block;
    }

    .bi-arrow-left::before {
      transform: rotate(180deg);
      display: inline-block;
    }

    /* Custom styling for Arabic content */
    .arabic-content {
      line-height: 1.8;
      text-align: right;
    }

    .section-title h2 {
      position: relative;
      padding-bottom: 15px;
    }

    .section-title h2::after {
      content: '';
      position: absolute;
      right: 0;
      bottom: 0;
      width: 50px;
      height: 3px;
      background: var(--primary-color);
    }


.project-card {
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}

/* Overlay effect */
.project-card .overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0));
  transition: background 0.3s ease;
}
.project-card:hover .overlay {
  background: rgba(0,0,0,0.5);
}

/* Image zoom on hover */
.transition-hover {
  transition: transform 0.5s ease;
}
.project-card:hover .transition-hover {
  transform: scale(1.1);
}

/* Gradient button */
.btn-gradient {
  background: linear-gradient(90deg, #6a11cb 0%, #2575fc 100%);
  border: none;
  color: white;
  transition: transform 0.2s ease;
}
.btn-gradient:hover {
  transform: scale(1.05);
}



code {
  font-family: 'Alexandria', sans-serif,
    monospace;
}

.nft{
  user-select:none;
  max-width: 300px;
  margin: 5rem auto;
  border: 1px solid #ffffff22;
  background-color: #282c34;
  background: linear-gradient(0deg, rgba(40,44,52,1) 0%, rgba(17,0,32,.5) 100%);
  box-shadow: 0 7px 20px 5px #00000088;
  border-radius: .7rem;
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  overflow: hidden;
  transition: .5s all;
  hr{
    width: 100%;
    border: none;
    border-bottom: 1px solid #88888855;
    margin-top: 0;
  }
  ins{
    text-decoration: none;
  }
  .main{
    display: flex;
    flex-direction: column;
    width: 90%;
    padding: 1rem;
    .tokenImage{
      border-radius: .5rem;
      max-width: 100%;
      height: 250px;
      object-fit: cover;
    }
    .description{
      margin: .5rem 0;
      color: #a89ec9;
    }
    .tokenInfo{
      display: flex;
      justify-content: space-between;
      align-items: center;
      .price{
        display: flex;
        align-items: center;
        color: #ee83e5;
        font-weight: 700;
        ins{
          margin-left: -.3rem;
          margin-right: .5rem;
        }
      }
      .duration{
        display: flex;
        align-items: center;
        color: #a89ec9;
        margin-right: .2rem;
        ins{
          margin: .5rem;
          margin-bottom: .4rem;
        }
      }
    }
    .creator{
      display: flex;
      align-items: center;
      margin-top: .2rem;
      margin-bottom: -.3rem;
      ins{
        color: #a89ec9;
        text-decoration: none;
      }
      .wrapper{
        display: flex;
        align-items: center;
        border: 1px solid #ffffff22;
        padding: .3rem;
        margin: 0;
        margin-right: .5rem;
        border-radius: 100%;
        box-shadow: inset 0 0 0 4px #000000aa;
        img{
          border-radius: 100%;
          border: 1px solid #ffffff22;
          width: 2rem;
          height: 2rem;
          object-fit: cover;
          margin: 0;
        }
      }
    }
  }
  ::before{
    position: fixed;
    content: "";
    box-shadow: 0 0 100px 40px #ffffff08;
    top: -10%;
    left: -100%;
    transform: rotate(-45deg);
    height: 60rem;
    transition: .7s all;
  }
  &:hover{
    border: 1px solid #ffffff44;
    box-shadow: 0 7px 50px 10px #000000aa;
    transform: scale(1.015);
    filter: brightness(1.3);
    ::before{
      filter: brightness(.5);
      top: -100%;
      left: 200%;
    }
  }
}

.bg{
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  h1{
    font-size: 20rem;
    filter: opacity(0.5);
  }
}

@media (max-width: 768px) {
  .header-container {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
  }

  .logo {
    order: 1 !important; 
  }

  .btn-getstarted {
    order: 2 !important; /* الزر على اليسار */
    margin-left: 1 !important;
  }

  #navmenu {
    order: 3 !important; /* القائمة بعدهم */
  }
}

#whatsapp-btn {
  position: fixed;
  bottom: 20px;       /* المسافة من أسفل الشاشة */
  left: 20px;         /* المسافة من يسار الشاشة */
  z-index: 9999;      /* فوق كل العناصر */
}

#whatsapp-btn a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;          /* مسافة بين الأيقونة والنص */
  background-color: rgb(23, 235, 23);
  color: #0b0202;
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
  border-radius: 50px;
  width: 200px;       /* العرض في الشاشات الكبيرة */
  padding: 12px 15px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

#whatsapp-btn a:hover {
  background-color: #25d366; /* لون واتساب الرسمي */
  transform: translateY(-3px);
}

#whatsapp-btn i {
  font-size: 20px;
}

/* في الموبايل */
@media (max-width: 768px) {
  #whatsapp-btn a {
    width: 150px;     /* عرض أصغر */
    font-size: 14px;
    padding: 10px 12px;
  }
  #whatsapp-btn i {
    font-size: 18px;
  }
}

.projects-container {
          display: grid;
          grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
          gap: 30px;
          max-width: 1200px;
          margin: 0 auto;
          padding: 0 20px;
        }

        .project-card {
          background-color: var(--surface-color);
          border-radius: 12px;
          overflow: hidden;
          box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
          transition: all 0.3s ease;
          display: flex;
          flex-direction: column;
          height: 100%;
        }

        .project-card:hover {
          transform: translateY(-10px);
          box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
        }

        .project-image {
          height: 220px;
          overflow: hidden;
          position: relative;
        }

        .project-image img {
          width: 100%;
          height: 100%;
          object-fit: cover;
          transition: transform 0.5s ease;
        }

        .project-card:hover .project-image img {
          transform: scale(1.05);
        }

        .project-overlay {
          position: absolute;
          top: 0;
          left: 0;
          width: 100%;
          height: 100%;
          background: linear-gradient(to bottom, transparent 0%, rgba(13, 131, 253, 0.7) 100%);
          opacity: 0;
          transition: opacity 0.3s ease;
          display: flex;
          align-items: flex-end;
          justify-content: flex-end;
          padding: 20px;
        }

        .project-card:hover .project-overlay {
          opacity: 1;
        }

        .project-link {
          color: white;
          background-color: var(--accent-color);
          width: 40px;
          height: 40px;
          border-radius: 50%;
          display: flex;
          align-items: center;
          justify-content: center;
          transition: all 0.3s ease;
        }

        .project-link:hover {
          background-color: color-mix(in srgb, var(--accent-color), transparent 15%);
          transform: scale(1.1);
        }

        .project-content {
          padding: 25px;
          flex-grow: 1;
          display: flex;
          flex-direction: column;
        }

        .project-title {
          font-size: 22px;
          margin-bottom: 12px;
          color: var(--heading-color);
        }

        .project-description {
          color: var(--default-color);
          opacity: 0.8;
          line-height: 1.6;
          margin-bottom: 20px;
          flex-grow: 1;
        }

        .project-tags {
          display: flex;
          flex-wrap: wrap;
          gap: 8px;
          margin-top: auto;
        }

        .project-tag {
          background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
          color: var(--accent-color);
          padding: 5px 12px;
          border-radius: 50px;
          font-size: 12px;
          font-weight: 500;
        }

        /* Responsive adjustments */
        @media (max-width: 768px) {
          .projects-container {
            grid-template-columns: 1fr;
            padding: 0 15px;
          }
          
          .section-title {
            font-size: 28px;
          }
          
          .section-description {
            font-size: 16px;
          }
        }

        

