@import url("base/rest.css");
@import url("base/font&Core.css");
@import url("base/variables&root.css");

/* ============================================
   Scroll Progress Bar
   ============================================ */

.scroll-progress {
  position: fixed;
  top: 0;
  width: 100%;
  height: 4px;
  background: var(--border);
  z-index: 2000;
}

body.dark .scroll-progress {
  background: var(--dark-mode);
}

#progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  width: 0%;
  transition: width 0.2s ease;
}

/* ============================================
   message box
   ============================================ */
#message-box {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  gap: 10rem;
  font-size: 1rem;
  bottom: 2rem;
  right: 1rem;
  padding: 1rem 1rem;
  z-index: 100000;
  font-family: "VazirmatnMedium";
  animation: "handelmessage" 1s;
}

.message-box-cross {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.message-box-cross:hover {
  transform: rotate(90deg);
}

@keyframes handelmessage {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

.successful {
  background-color: #e0f2c0;
  color: #5a9152;
  border-right: 10px solid #5a9152;
}

.error {
  background-color: #ffbabb;
  color: #d51c2b;
  border-right: 10px solid #d51c2b;
}

.warning {
  background-color: #ffefb4;
  color: #a97532;
  border-right: 10px solid #a97532;
}

.successful .message-box-cross svg {
  fill: #5a9152;
}

.error .message-box-cross svg {
  fill: #d51c2b;
}

.warning .message-box-cross svg {
  fill: #a97532;
}


/* ============================================
   Navbar
   ============================================ */

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  height: 80px;
  margin-top: 4px;
}

body.dark .navbar {
  background: rgba(48, 49, 58, 0.8);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 2rem;

}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  width: 100%;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon {
  width: 45px;
  height: 45px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-icon img {
  width: 100%;
  height: 100%;
}

.logo-text {
  width: 8rem;
}

body.dark .logo-text {
  color: var(--white);
}

.nav-menu {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  color: var(--dark-mode);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  padding: 5px 10px;
  border-radius: 10px;
  cursor: pointer;
}

body.dark .nav-link {
  color: var(--white);
}

.nav-link:hover {
  color: var(--primary);
  background: rgba(26, 221, 208, 0.1);
}

body.dark .nav-link:hover {
  color: var(--primary);
}

.dropdown-menu {
  flex-direction: column;
  align-items: start;
  position: absolute;
  top: 75%;
  list-style: none;
  background: var(--white);
  border-radius: var(--radius-md);
  min-width: 200px;
  padding: 0.5rem;
  margin-top: 0.5rem;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 100;
  border: 1px solid var(--border);
}

body.dark .dropdown-menu {
  background: var(--dark-mode);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-links li:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  padding: 0.75rem 0.5rem 0.75rem 0;
  border-radius: 7px;
  width: 100%;
  color: var(--dark-mode);
  transition: color 0.2s ease;
}

.dropdown-menu>a:hover {
  color: var(--primary);
  background: rgba(26, 221, 208, 0.1);
}

body.dark .dropdown-menu>a:hover {
  color: var(--primary);
  background: rgba(26, 221, 208, 0.1);
}

body.dark .dropdown-menu a {
  color: var(--white);
}

/* Nav Hamberger */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle svg {
  width: 30px;
  height: 30px;
  transition: transform 0.3s ease;
}

.theme-toggle:hover svg {
  transform: rotate(20deg);
  fill: var(--dark-mode);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  width: 24px;
  height: 3px;
  background: var(--dark-mode);
  border-radius: 2px;
  transition: all 0.3s ease;
}

body.dark .menu-toggle span {
  background: var(--white);
}

.menu-mobile {
  height: 100vh;
  width: 50%;
  position: fixed;
  top: 0;
  left: -50%;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  border-right: 1px solid var(--border);
  z-index: 1999;
  flex-direction: column;
  justify-content: start;
  align-items: center;
  transition: all 1s 50ms ease;
}

body.dark .menu-mobile {
  background: rgba(48, 49, 58, 0.8);
  border-right-color: rgba(255, 255, 255, 0.1);
}

.menu-mobile .cross {
  width: 100%;
  padding: 2rem 1rem;
  justify-content: start;
}

.menu-mobile .cross button {
  border: none;
  background-color: transparent;
}

.menu-mobile .cross button svg {
  width: 3.5rem;
  height: 3.5rem;
  padding: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}


.menu-mobile .cross button svg:hover {
  transform: rotate(90deg);
}

body.dark .menu-mobile .cross button svg path {
  fill: var(--dark-mode);
}

body.dark .menu-mobile .cross button svg path {
  fill: var(--white);
}

.menu-mobile .btn-primary {
  display: none;
  margin-bottom: 2rem;
}

.menu-mobile .nav-links {
  display: block;
  align-items: start;
  font-size: 1.25rem;
  width: 100%;
}

.menu-mobile .nav-links li {
  display: flex;
  flex-direction: column;
  align-items: center;
  border: none;
  padding: 0.75rem 2.5rem;
  width: 100%;
}

.menu-mobile .nav-links li .nav-link {
  padding: 10px 20px;
  width: 100%;
}

.dropdown-menu-mobile {
  width: 100%;
  flex-direction: column;
  opacity: 0;
  display: none;
  transform: translateY(-10px);
  transition: all 0.5 30ms ease;
  border-top: 1px solid var(--primary);
}

.dropdown-menu-mobile a {
  padding: 0.75rem 0.5rem;
  border-radius: 7px;
  width: 100%;
  color: var(--dark-mode);
  transition: all 0.5s 30ms ease;
  font-size: 1rem;
}

body.dark .dropdown-menu {
  background: var(--dark-mode);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-links li:hover .dropdown-menu-mobile {
  opacity: 1;
  display: flex;
  transform: translateY(0);
  padding: 0.5rem;
}

.dropdown-menu-mobile>a:hover {
  color: var(--primary);
  background: rgba(26, 221, 208, 0.1);
}

body.dark .dropdown-menu-mobileu>a:hover {
  color: var(--primary);
  background: rgba(26, 221, 208, 0.1);
}

body.dark .dropdown-menu-mobile a {
  color: var(--white);
}

.menu-mobile .logout {
  margin-top: 3rem;
  display: none;
}

.menu-mobile .username {
  margin: 1rem 0 2rem;
  display: none;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-family: "Vazirmatn", sans-serif;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 8px 16px rgba(26, 221, 208, 0.1);
}

.username {
  font-size: 1rem;
  color: var(--primary);
  background-color: rgba(26, 221, 208, 0.1);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  text-align: center;
  border: 1px solid var(--primary);
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.username:hover {
  color: var(--white);
  background-color: #1abdd0ce;
  box-shadow: 0 0 5px 0px var(--primary);

}

.logout {
  font-size: 1rem;
  color: var(--secondary);
  background-color: rgb(137 38 143 / 10%);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  text-align: center;
  border: 1px solid var(--secondary);
  font-family: "VazirmatnMedium";
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.logout:hover {
  color: var(--white);
  background-color: #711f76ce;
  box-shadow: 0 0 5px 0px var(--secondary);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 5px 24px rgba(26, 221, 208, 0.3);
}

.btn-outline {
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--dark-mode);
}


body.dark .btn-outline {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

body.dark .btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.2rem;
}

.btn-full {
  width: 100%;
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
  padding: 150px 0 100px;
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-blobs {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 0;
  top: 0;
  left: 0;
}

.blob {
  width: 500px;
  height: 500px;
  position: absolute;
  filter: blur(80px);
  opacity: 0.3;
  border-radius: 50%;
}

.blob-1 {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  top: 0;
  right: 0;
  animation: float 8s ease-in-out infinite;
}

.blob-2 {
  background: rgba(137, 38, 143, 0.4);
  bottom: 0px;
  left: 0;
  animation: float 8s ease-in-out infinite 2s;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-30px);
  }
}

.text-center {
  text-align: center;
  position: relative;
  z-index: 1;
}

.badge {
  background: var(--gray-light);
  color: var(--primary);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.hero-title {
  font-size: 5rem;
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--dark-mode);
  word-spacing: -20px;
  font-family: "VazirmatnBold";
}

body.dark .hero-title {
  color: var(--white);
}

.gradient-text {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  color: var(--gray);
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 3rem;
  line-height: 1.8;
}

body.dark .hero-subtitle {
  color: #bbb;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ============================================
   Stats Section
   ============================================ */

.stats {
  padding: 4rem 0;
  position: relative;
  z-index: 10;
}

.stats-grid {
  background: var(--white);
  padding: 3rem;
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  box-shadow: var(--shadow);
  margin-top: -50px;
  text-align: center;
}

body.dark .stats-grid {
  background: var(--dark-mode);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item h2 {
  font-size: 2.1rem;
  color: var(--primary);
  font-weight: bold;
  margin-bottom: 0.5rem;
  font-family: "VazirmatnMedium";
}


.stat-item p {
  color: var(--gray);
  font-size: 1rem;
}

.divider {
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
}

body.dark .divider {
  border-color: rgba(255, 255, 255, 0.1);
}

/* ============================================
   Services Section
   ============================================ */

.services {
  padding: 70px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
  align-items: center;
  display: flex;
  flex-direction: column;
}

.section-header h2 {
  font-size: 2.25rem;
  font-weight: lighter;
  margin-bottom: 0.7rem;
  color: var(--dark-mode);
  font-family: "VazirmatnBold";
}

body.dark .section-header h2 {
  color: var(--white);
}

.section-header p {
  color: var(--gray);
  font-size: 1.1rem;
}

.tabs-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 0.75rem 1.7rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  transition: all 0.3s ease;
  font-size: 1.2rem;
  font-weight: lighter;
  font-family: "VazirmatnMedium", sans-serif;
}

body.dark .tab-btn {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.tab-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

body.dark .tab-btn:hover {
  color: var(--primary);
}

.tab-btn.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

body.dark .tab-btn.active {
  color: var(--primary);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.service-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: all 0.5s ease;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  cursor: pointer;
}

body.dark .service-card {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

body.dark .service-card:hover {
  border-color: rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.1);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  background-color: var(--border);
  border-color: var(--primary);
}

.service-card__badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--primary);
  color: var(--white);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-family: "VazirmatnMedium";
  font-weight: lighter;
}

.card-icon {
  width: 60px;
  height: 60px;
  background: var(--gray-light);
  color: var(--primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

body.dark .card-icon {
  background: rgba(26, 221, 208, 0.1);
}

.card-icon svg {
  width: 28px;
  height: 28px;
}

.service-card h3 {
  font-size: 1.15rem;
  color: var(--dark-mode);
  font-weight: lighter;
  font-family: "VazirmatnMedium";
}

body.dark .service-card h3 {
  color: var(--white);
}

.service-card p {
  color: var(--gray);
  font-size: 0.9rem;
  line-height: 1.6;
}

.service-card .service-price {
  font-size: 1rem;
  width: 100%;
  color: var(--primary);
  background-color: rgba(26, 221, 208, 0.1);
  padding: 0.5rem;
  border-radius: var(--radius-md);
  text-align: center;
}

/* ============================================
   AI Tools Section
   ============================================ */

.ai-tools {
  padding: 70px 0;
  background: var(--light-mode);
}

body.dark .ai-tools {
  background: var(--dark-mode);
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.tool-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

body.dark .tool-card {
  background: rgba(255, 255, 255, 0.05);
}

.tool-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  cursor: pointer;
}

.tool-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: var(--light-mode);
  position: relative;
  transition: all 0.5s ease-in;
}

.tool-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, transparent, rgba(26, 221, 208, 0.2));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.tool-card:hover .tool-image::before {
  opacity: 1;
}

.tool-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.tool-card:hover .tool-image img {
  transform: scale(1.05);
}

.tool-content {
  padding: 2rem;
}

.tool-content h3 {
  font-size: 1.25rem;
  color: var(--dark-mode);
  margin-bottom: 0.75rem;
  font-weight: lighter;
  font-family: "VazirmatnMedium";
}

body.dark .tool-content h3 {
  color: var(--white);
}

.tool-content p {
  color: var(--gray);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.tool-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.3s ease;
}

.tool-link:hover {
  gap: 0.75rem;
}

/* ============================================
   Features Section - Why Choose Us
   ============================================ */

.features {
  padding: 70px 0;
  background: var(--light-mode);
}

body.dark .features {
  background: var(--dark-mode);
}

.feature-badge {
  color: var(--secondary);
  font-size: 1.1rem;
  font-weight: 600;
  display: block;
  margin-bottom: 1rem;
  background-color: #f8f0f8;
  width: 45%;
  border-radius: var(--radius-md);
  padding: 1rem;
}

.features .section-header h2 {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  font-family: "VazirmatnMedium";
  font-weight: lighter;
}

.feature-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  display: flex;
  gap: 1.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

body.dark .feature-card {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-icon svg {
  width: 28px;
  height: 28px;
}

.feature-text h3 {
  font-size: 1.1rem;
  color: var(--dark-mode);
  margin-bottom: 0.5rem;
  font-size: "VazirmatnMedium";
  font-weight: lighter;
}

body.dark .feature-text h3 {
  color: var(--white);
}

.feature-text p {
  color: var(--gray);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ============================================
   Auth Modal
   ============================================ */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1999;
}

.modal-overlay.active {
  display: flex;
}

.auth-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.auth-modal.active {
  display: flex;
}

.auth-modal-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 3rem;
  width: 100%;
  max-width: 600px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  position: relative;
  animation: slideUp 0.4s ease-out;
}

body.dark .auth-modal-card {
  background: var(--dark-mode);
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.auth-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--dark-mode);
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

body.dark .auth-modal-close {
  color: var(--white);
}

.auth-modal-close:hover {
  transform: rotate(90deg);
}

.auth-modal-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-modal-header h3 {
  font-size: 1.5rem;
  color: var(--dark-mode);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

body.dark .auth-modal-header h3 {
  color: var(--white);
}

.auth-modal-header p {
  color: var(--gray);
}

.auth-modal-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.auth-modal-form.hidden {
  display: none;
}

.auth-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-family: inherit;
  background: var(--white);
  color: var(--dark-mode);
  transition: border-color 0.3s ease;
}

body.dark .auth-input {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.auth-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 189, 208, 0.1);
}

.checkbox-label {
  display: flex;
  gap: 0.5rem;
}

.checkbox-label a {
  color: var(--primary);
}

.auth-forgot {
  background: none;
  border: none;
  color: var(--primary);
  text-align: right;
  cursor: pointer;
  font-size: 0.9rem;
  font-family: "Vazirmatn", sans-serif;
  padding: 0;
  transition: color 0.3s ease;
}

.auth-forgot:hover {
  color: var(--primary-hover);
}

.auth-back {
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  font-size: 0.9rem;
  font-family: "Vazirmatn", sans-serif;
  padding: 0;
  transition: color 0.3s ease;
}

.auth-back:hover {
  color: var(--primary-hover);
}

.auth-modal-footer {
  text-align: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

body.dark .auth-modal-footer {
  border-top-color: rgba(255, 255, 255, 0.1);
}

.auth-modal-footer span {
  color: var(--gray);
  font-size: 0.95rem;
}

#toggleBtn {
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  padding: 0;
  margin-right: 0.25rem;
  transition: color 0.3s ease;
  font-family: "VazirmatnMedium", sans-serif;
  font-weight: lighter;
  font-size: 0.95rem;
}

#toggleBtn:hover {
  color: var(--primary-hover);
}

.input-box {
  justify-content: space-between;
  gap: 1rem;
}

.input-box>div {
  width: 100%;
  gap: 0.2rem;
  flex-direction: column;
  align-items: end;
}

.userNameMessage {
  font-size: 0.8rem;
  flex-direction: row;
  justify-content: end;
}

.passwordMessage {
  font-size: 0.7rem;
}

.passwordMessageFormat {
  font-size: 0.7rem;
}

/* ============================================
   Live Chat Widget - Enhanced
   ============================================ */

.live-chat-widget {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 1500;
  font-family: "Vazirmatn", sans-serif;
}

.chat-bubble {
  width: 3.75rem;
  height: 3.75rem;
  background: var(--light-mode);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0px 5px rgba(26, 221, 208, 0.4);
  transition: all 0.3s ease;
  position: relative;
  border: 1px solid var(--primary);
}

body.dark .chat-bubble {
  background: var(--dark-mode);
}

.chat-bubble-logo {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
}

.chat-bubble:hover {
  transform: scale(1.1);
  box-shadow: 0 0px 10px rgba(26, 221, 208, 0.5);
}

.chat-bubble:active {
  transform: scale(0.95);
}

.chat-window {
  position: absolute;
  bottom: 80px;
  left: 0;
  width: 380px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  height: 500px;
  overflow: hidden;
  animation: slideUp 0.3s ease-out;
}

body.dark .chat-window {
  background: var(--dark-mode);
}

.chat-window.hidden {
  display: none;
}

.chat-header {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
}

.chat-header h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
}

.chat-close {
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.chat-close:hover {
  transform: rotate(90deg);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.message {
  display: flex;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.message.bot {
  justify-content: flex-start;
}

.message.user {
  justify-content: flex-end;
}

.message p{
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  line-height: 1.4;
  margin: 0;
}

.message.bot p {
  background: var(--gray-light);
  color: var(--dark-mode);
  border-radius: var(--radius-md) var(--radius-md) var(--radius-md) 0;
}

body.dark .message.bot p {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.message.user p {
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-md) var(--radius-md) 0 var(--radius-md);
}

.chat-input-container {
  padding: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 0.5rem;
  background: var(--white);
}

body.dark .chat-input-container {
  background: var(--dark-mode);
  border-top-color: rgba(255, 255, 255, 0.1);
}

.chat-input {
  flex: 1;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-family: "Vazirmatn", sans-serif;
  color: var(--dark-mode);
  background: var(--white);
  transition: border-color 0.2s ease;
}

body.dark .chat-input {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.chat-input:focus {
  outline: none;
  border-color: var(--primary);
}

.chat-send {
  padding: 0.5rem 1rem;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-weight: 600;
  font-family: "Vazirmatn", sans-serif;
  transition: all 0.2s ease;
}

.chat-send:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}

.chat-send:active {
  transform: translateY(0);
}

/* ============================================
   Footer
   ============================================ */

.footer {
  background: var(--white);
  color: var(--dark-mode);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0px 10px 20px var(--gray);
}

body.dark .footer {
  background: var(--dark-mode);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.container-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  width: 100%;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-logo>img {
  width: 3rem;
  height: 3rem;
}

.footer-logo img:nth-child(2) {
  width: 8rem;
}

.footer-socials {
  display: flex;
  gap: 0.8rem;
}

.footer-socials a {
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: all 0.3s ease;
}

.footer-socials a:hover {
  transform: translateY(-3px) scale(1.1);
}

.footer-socials svg {
  width: 2.75rem;
  height: 2.75rem;
}

.footer-contact {
  display: flex;
  gap: 2rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  width: 100%;
}

.footer-contact a {
  color: var(--gray);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-contact a:hover {
  color: var(--primary);
}

.footer-divider {
  height: 1px;
  background-color: var(--gray);
  margin: 15px 20px;
  width: 100%;
}

.footer-content {
  gap: 1.5rem;
  width: 100%;
  padding: 1.25rem 0 3rem 0;
  justify-content: space-between;
  align-items: start;
}

.footer-content .temp {
  width: 50%;
  gap: 1.5rem;
  display: flex;
  flex-direction: row;
  align-items: start;
}

.footer-content .temp div {
  width: 30%;
  align-items: start;
}

.footer-content .d-f {
  flex-direction: column;
  justify-content: end;
}

.footer-content .item-1 {
  width: 50%;
  align-items: start;
}

.footer-content .temp .item-4 {
  align-items: end;
}

.footer-content .temp .item-4 a {
  width: 100%;
}

.footer-content img {
  width: 100%;
}

.footer-column h4 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--dark-mode);
  font-weight: lighter;
  font-family: "VazirmatnMedium";
}

body.dark .footer-column h4 {
  color: var(--white);
}

.footer-column p {
  color: #999;
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-column ul {
  list-style: none;
}

.footer-column a {
  color: #999;
  text-decoration: none;
  font-size: 0.9rem;
  display: block;
  margin-bottom: 0.75rem;
  transition: color 0.3s ease;
}

.footer-column a:hover {
  color: var(--primary);
}

.footer-bottom {
  display: flex;
  width: 100%;
  justify-content: space-between;
  color: #999;
  font-size: 0.9rem;
  padding-bottom: 1rem;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (pointer: coarse) {

  button:active,
  a:active,
  input[typr="submit"]:active,
  input[typr="button"]:active,
  li:active {
    background-color: initial !important;
  }
}


@media (max-width: 1024px) {
  :root {
    font-size: 15px;
  }

  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .hero-title {
    font-size: 4rem;
    word-spacing: -10px;
  }

  .stats-grid {
    gap: 0.5rem;
  }

  .divider {
    border: none;
  }

  .footer-content {
    flex-direction: column;
  }

  .footer-content .item-1 {
    width: 100%;
  }

  .footer-content .temp {
    width: 100%;
  }
}

@media (max-width: 768px) {
  :root {
    font-size: 14px;
  }

  .nav-links {
    flex-direction: column;
    gap: 0;
  }

  .nav-links li {
    border-bottom: 1px solid var(--border);
  }

  body.dark .nav-links li {
    border-bottom-color: rgba(255, 255, 255, 0.1);
  }

  .nav-link {
    display: block;
    padding: 1rem 1.5rem;
  }

  .dropdown-menu {
    position: static;
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    background: var(--gray-light);
    box-shadow: none;
    margin: 0;
    transition: all 0.3s ease;
  }

  body.dark .dropdown-menu {
    background: rgba(255, 255, 255, 0.05);
  }

  .dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    max-height: 200px;
  }

  .dropdown-menu li {
    padding: 0.75rem 1.5rem 0.75rem 2.5rem;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-actions .btn-primary {
    display: none;
  }

  .username {
    display: none;
  }

  .nav-actions .logout {
    display: none;
  }

  .menu-mobile .username {
    display: flex;
  }

  .menu-mobile .logout {
    display: flex;
  }

  .menu-mobile .btn-primary {
    display: block;
  }

  .nav-wrapper {
    justify-content: space-between;
  }

  .section-header h2 {
    font-size: 2rem;
  }


  .footer-contact {
    display: flex;
    justify-content: space-around;
  }
}

@media (max-width: 576px) {
  :root {
    font-size: 13x;
  }

  .logo-text {
    display: none;
  }

  .hero-blobs {
    display: none;
  }

  .hero-title {
    font-size: 3rem;
    word-spacing: -5px;
  }

  .nav-actions {
    gap: 0.75rem;
  }

  .menu-toggle {
    gap: 3px;
  }

  .menu-toggle span {
    width: 25px;
    height: 4px;
  }

  .input-box {
    flex-direction: column;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .section-header h2 {
    font-size: 1.5rem;
  }

  .feature-badge {
    padding: 0.7rem;
  }

  .card-icon {
    width: 45px;
    height: 45px;
  }

  .service-card {
    align-items: center;
  }

  .feature-card {
    flex-direction: column;
    align-items: center;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .feature-text {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .feature-text p {
    text-align: center;
  }

  .feature-text h3 {
    text-align: center;
  }

  .feature-icon {
    width: 45px;
    height: 45px;
  }

  .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    font-family: "VazirmatnMedium";
    font-weight: lighter;
  }

  .footer-logo>img {
    width: 2.25rem;
    height: 2.25rem;
  }

  .footer-logo img:nth-child(2) {
    width: 6rem;
  }

  .footer-contact {
    gap: 0.5rem 1rem;
  }

  .footer-socials svg {
    width: 2.25rem;
    height: 2.25rem;
  }

  .footer-divider {
    margin: 10px 15px;
    height: 0.5px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  .chat-bubble-logo {
    width: 3.5rem;
    height: 3.5rem;
  }

  .chat-bubble {
    width: 5rem;
    height: 5rem;
  }

  .chat-window {
    width: 300px;
  }
}

@media (max-width: 430px) {
  :root {
    font-size: 12px;
  }
}