:root {
  --scrollbar-bg-light: #f0f0f0;
  --scrollbar-thumb-light: #a0a0a0;

  --scrollbar-bg-dark: #1f2937;
  --scrollbar-thumb-dark: #4b5563;

  --scrollbar-width: 12px;
}

/* Light Mode */
html:not(.dark)::-webkit-scrollbar {
  width: var(--scrollbar-width);
  background-color: var(--scrollbar-bg-light);
}

html:not(.dark)::-webkit-scrollbar-thumb {
  background-color: var(--scrollbar-thumb-light);
  border-radius: 6px;
  border: 3px solid var(--scrollbar-bg-light);
}

/* Dark Mode */
html.dark::-webkit-scrollbar {
  width: var(--scrollbar-width);
  background-color: var(--scrollbar-bg-dark);
}

html.dark::-webkit-scrollbar-thumb {
  background-color: var(--scrollbar-thumb-dark);
  border-radius: 6px;
  border: 3px solid var(--scrollbar-bg-dark);
}

html::-webkit-scrollbar-track {
  background-color: transparent;
}

html::-webkit-scrollbar-thumb:hover {
  filter: brightness(1.2);
}

@media (max-width: 1024px) {
  html.dark .nav-links {
    background: #0f172a;
  }

  html:not(.dark) .nav-links {
    background: white;
  }
}

.success-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.7);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.success-box {
  background: #0f172a;
  color: #ffffff;
  padding: 2rem;
  border-radius: 1rem;
  text-align: center;
  width: 90%;
  max-width: 420px;
  border: 1px solid #1e293b;
  animation: scaleIn 0.25s ease;
}

.success-icon {
  width: 56px;
  height: 56px;
  background: #22c55e;
  color: white;
  font-size: 28px;
  font-weight: bold;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.success-box h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.success-box p {
  font-size: 0.95rem;
  color: #cbd5e1;
  margin-bottom: 18px;
}

.success-btn {
  background: #6366f1;
  color: white;
  padding: 10px 28px;
  border-radius: 12px;
  font-weight: bold;
  border: none;
  cursor: pointer;
}

@keyframes scaleIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Fix Hero overlap with fixed navbar on small screens */
@media (max-width: 641px) {
  #hero-section {
    padding-top: 140px !important;
  }
}

/* ✅ Fix Hero Rings on small screens */
@media (max-width: 500px) {

  /* الدائرة الكبيرة */
  #hero-section .border-dashed {
    width: 230px !important;
    height: 230px !important;
  }

  /* الدائرة الصغيرة */
  #hero-section .border-secondary\/20 {
    width: 180px !important;
    height: 180px !important;
  }

}

@media (max-width: 380px) {

  #hero-section .border-dashed {
    width: 200px !important;
    height: 200px !important;
  }

  #hero-section .border-secondary\/20 {
    width: 150px !important;
    height: 150px !important;
  }

}