@font-face {
  font-family: "BlueButterfly";
  src: url('../fonts/BLUEBUTTERFLY-REGULAR.ttf') format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "paeez";
  src: url('../fonts/DigiPaeezProfesional.ttf') format("truetype");
  font-display: swap;
}
.blob-bg-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  filter: blur(60px);
  border-radius: 50%;
  opacity: 0.4;
  animation: floatBlob 16s infinite alternate ease-in-out;
  will-change: transform;
}

.blob-1 {
  background-color: #8b5cf6;
  width: 550px;
  height: 550px;
  top: -200px;
  left: -200px;
  animation-duration: 14s;
}

.blob-2 {
  background-color: #ec4899;
  width: 450px;
  height: 450px;
  bottom: 20%;
  right: -150px;
  animation-duration: 18s;
  animation-delay: 1s;
}

.blob-3 {
  background-color: #06b6d4;
  width: 500px;
  height: 500px;
  top: 40%;
  left: 60%;
  animation-duration: 20s;
  animation-delay: 0.5s;
  opacity: 0.3;
}

.blob-4 {
  background-color: #f59e0b;
  width: 400px;
  height: 400px;
  bottom: -100px;
  left: 20%;
  animation-duration: 17s;
  animation-delay: 2s;
  opacity: 0.35;
}

@keyframes floatBlob {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(40px, -30px) scale(1.1);
  }
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'BlueButterfly';
}

*::-webkit-scrollbar {
  background-color: transparent;
  width: 5px;
}

*::-webkit-scrollbar-thumb {
  background-color: #76ceff;
}

.nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: center;
  padding: 20px;
  border-radius: 60px;
}

.nav-links a {
  position: relative;
  background-color: rgba(255, 255, 255, 0.3);
  border: 1px solid white;
  padding: 4px 30px;
  border-radius: 30px;
  opacity: 1;
}

.nav-links a::after {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  opacity: 0;
  transition: opacity 0.3s ease-in;
  color: rgb(25, 0, 55);
  text-align: center;
}

.nav-links a:nth-child(1)::after {
  content: "خانه";
}

.nav-links a:nth-child(2)::after {
  content: "اکسپلور";
}

.nav-links a:nth-child(3)::after {
  content: "درباره ما";
}

.nav-links a:nth-child(4)::after {
  content: "تماس با ما";
}

.nav-links a:nth-child(5)::after {
  content: "همکاری با ما";
}

.nav-links img {
  width: 30px;
  height: 30px;
  transition: opacity 0.3s ease-in;
  opacity: 1;
}

.nav-links a:hover img {
  opacity: 0;
}

.nav-links a:hover::after {
  opacity: 1;
}

/* استایل glass برای نوار ناوبری */
.glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* دکمه همبرگری (موبایل) */
.hamburger {
  z-index: 100;
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  color: rgb(0, 0, 0);
  cursor: pointer;
}

/* کانتینر ناوبری */
.nav-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  pointer-events: none;
  padding: 1rem 2rem;
}

nav {
  pointer-events: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(16px);
  border-radius: 80px;
  padding: 0.1rem 1.8rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  width: 100%;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  letter-spacing: -0.025em;
  margin-top: 10px;
  margin-right: -20px;
}

/* بخش چپ هدر (دکمه دارک مود و ورود) */
.left_header {
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 998;
}

.sign_log img {
  width: 50px;
}

.user-menu {
  position: relative;
}

.user-dropdown {
  cursor: pointer;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.1);
  padding: 5px 12px 5px 8px;
  border-radius: 40px;
}

.user-avatar-mini {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.user-avatar-placeholder {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d35400, #e67e22);
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-name {
  font-size: 13px;
  font-weight: 500;
  color: #333;
}

.dropdown-arrow {
  width: 14px;
  height: 14px;
  color: #333;
  transition: transform 0.2s;
}

.user-dropdown.active .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 8px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s;
  z-index: 1000;
}



@media (max-width: 768px) {
  .nav-wrapper {
    background: rgba(255, 255, 255, 0.25);
  }

  .hamburger {
    display: block;
    z-index: 1001;
  }

  .nav-links {
    position: fixed;
    top: 80px;
    right: 20px;
    left: 20px;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    padding: 15px 20px;
    border-radius: 60px;
    gap: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    
    /* انیمیشن */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: none;
    z-index: 1000;
  }

  .nav-links.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-links a {
    padding: 6px 16px;
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.05);
    transform: translateX(-20px);
    opacity: 0;
    transition: all 0.3s ease;
  }

  .nav-links.active a {
    transform: translateX(0);
    opacity: 1;
  }

  .nav-links.active a:nth-child(1) { transition-delay: 0.05s; }
  .nav-links.active a:nth-child(2) { transition-delay: 0.1s; }
  .nav-links.active a:nth-child(3) { transition-delay: 0.15s; }
  .nav-links.active a:nth-child(4) { transition-delay: 0.2s; }
  .nav-links.active a:nth-child(5) { transition-delay: 0.25s; }

  .nav-links img {
    width: 24px;
    height: 24px;
  }

  .nav-links a::after {
    font-size: 14px;
  }

  nav {
    padding: 0.1rem 1.2rem;
  }

  .logo {
    font-size: 1.2rem;
    margin-right: 0;
  }

  .sign_log img {
    width: 40px;
  }

  .user-name {
    display: none;
  }
}

/* استایل منوی کاربر */
.user-menu {
  position: relative;
}

.user-dropdown {
  cursor: pointer;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  padding: 5px 12px 5px 8px;
  border-radius: 40px;
  transition: all 0.2s;
}

.user-info:hover {
  background: rgba(255, 255, 255, 0.25);
}

.user-avatar-mini {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.user-avatar-placeholder {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-avatar-placeholder svg {
  width: 18px;
  height: 18px;
  color: white;
}

.user-name {
  font-size: 13px;
  font-weight: 500;
  color: white;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dropdown-arrow {
  width: 14px;
  height: 14px;
  color: white;
  transition: transform 0.2s;
}

.user-dropdown.active .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 8px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s;
  z-index: 1000;
}

.user-dropdown.active .dropdown-menu {
  opacity: 1;
  visibility: visible;
}

.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: #333;
  text-decoration: none;
  font-size: 13px;
  transition: background 0.2s;
}

.dropdown-menu a:hover {
  background: #f5f5f5;
}

.dropdown-menu svg {
  width: 18px;
  height: 18px;
  color: #666;
}

.dropdown-menu .divider {
  height: 1px;
  background: #eee;
  margin: 5px 0;
}

.dropdown-menu .logout {
  color: #dc3545;
}

.dropdown-menu .logout svg {
  color: #dc3545;
}

.left_header {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* استایل selector تعداد */
.limit-selector {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.2);
  padding: 5px 15px;
  border-radius: 40px;
  backdrop-filter: blur(5px);
}

.limit-selector label {
  font-size: 13px;
  color: white;
}

.limit-selector select {
  padding: 5px 10px;
  border-radius: 30px;
  border: none;
  background: rgba(0, 0, 0, 0.2);
  color: white;
  cursor: pointer;
  font-size: 13px;
}

.limit-selector select option {
  background: #1B0039;
  color: white;
}

/* برای صفحه‌های خیلی کوچک (عرض کمتر از 480px) */
@media (max-width: 480px) {
  .nav-links {
    gap: 4px;
  }

  .nav-links a {
    padding: 4px 12px;
  }

  .nav-links img {
    width: 20px;
    height: 20px;
  }

  .nav-links a::after {
    font-size: 12px;
  }
}



/* استایل اصلی فوتر */
footer {
  padding: 6rem 1.5rem;
}


.footer-container {
  max-width: 1280px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 3rem;
  align-items: start;
}

.footer-logo {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: #0f172a;
  letter-spacing: -0.05em;
}

.col-span-2 {
  grid-column: span 2;
}

.footer-col h4 {
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  -webkit-padding-start: 0.5rem;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: rgb(255, 167, 26);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: #f43f5e;
}

.footer-bottom {
  margin-top: 1.7rem;
  padding-top: 2rem;
  border-top: 1px solid #e2e8f0;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: #64748b;
  flex-wrap: wrap;
  gap: 1rem;
}

.social-links {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
}

.social-links a {
  color: #64748b;
  text-decoration: none;
  transition: color 0.2s;
}


.social-links a:hover {
  color: #f43f5e;
}

@media (max-width:1100px) {
  .footer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
}

.nav-links {
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  transform-origin: top center;
}



/* انیمیشن برای آیتم‌های منو */
.nav-links a {
  transition: all 0.3s ease;
  transform: translateY(0);
  opacity: 1;
}

/* حالت بسته منو در موبایل */


/* انیمیشن برای دکمه همبرگر */
.hamburger {
  transition: all 0.3s ease;
}

.hamburger.active {
  transform: rotate(90deg);
}


/* ----------------------------------- INDEX ----------------------------------- */

body.index {
  direction: rtl;
  background: linear-gradient(to bottom, #190037 22%, #ffffff, #190037);
  color: #0f172a;
}

.index .glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.index .nav-wrapper {
  position: absolute;
  padding: .5rem .2rem;
}

.index nav {
  background: none;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
}

.index .parallax-wrapper {
  height: 100dvh;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.index .parallax {
  position: relative;
  height: 100%;
  width: 100%;
}

.index .layer {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
  pointer-events: none;
}

.index .train {
  position: absolute;
  width: 800px;
  right: -500px;
  top: 60%;
  transform: translateY(-50%);
  z-index: 5;
}

.index .tree {
  position: absolute;
  bottom: -10px;
  left: 0px;
  width: 100dvw;
  z-index: 6;
}

.index .sky {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.index .content-wrapper {
  position: relative;
  z-index: 1;
}

.index .search-gif {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 100;
  width: 600px;
  margin-top: -90px;
}

@media (max-width:768px) {
  .index .search-gif {
    width: 300px;
  }
}

.index .gif {
  width: 100%;
  height: 100%;
  border: none;
  /* حذف border قرمز */
  z-index: 0;
}

.index .gif img {
  width: 100%;
  height: auto;
  opacity: 0.4;
  /* برای خوانایی متن جستجو */
}

.index .search-section {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  inset: unset;
  margin-top: -20px;
}

.index .search-container {
  width: 100%;
  max-width: 600px;
  padding: 0 1rem;
}

.index .search-container .glass {
  display: flex;
  align-items: center;
  padding: 0.5rem;
  border-radius: 9999px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.index .search-container img {
  margin: 0 13px;
}

.index .search-container input {
  background: transparent;
  border: none;
  color: white;
  flex-grow: 1;
  padding: 0.75rem 0.5rem;
  font-size: 1.125rem;
  outline: none;
  text-align: right;
}

.index .search-container input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.index .search-container button {
  background: #FFEFBA;
  color: #1B0039;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.index .search-container button:hover {
  opacity: 0.9;
}

.index .services-section {
  padding: 6rem 1.5rem;
  margin: 60px auto;
  max-width: 1380px;
}

.index .services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.index .service-card {
  padding: 3rem;
  border-radius: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.2s;
}

.index .service-card img {
  width: 60px;
}

.index .service-card:hover {
  background: rgba(255, 255, 255, 0.2);
}

.index .icon-wrapper {
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.index .service-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #95c1ff;
}

.index .service-card p {
  color: #d4e6ff;
}


.index .portfolio-section {
  padding: 6rem 1.8rem;
}

.index .portfolio-container {
  max-width: 1300px;
  margin: 0 auto;
}

.index .portfolio-header {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
}

.index .portfolio-header h2 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.index .portfolio-header p {
  color: #64748b;
  max-width: 28rem;
}

.index .view-all {
  color: #f43f5e;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  transition: gap 0.2s;
  margin-top: 1.5rem;
  font-size: 20px;
}

.index .view-all img {
  width: 25px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.index .view-all:hover img {
  transform: scaleX(1.3);
  transform-origin: left center;
}

.index .masonry-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  grid-auto-rows: 200px;
}

/* آیتم‌های گالری */
.index .masonry-item {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

/* عکس داخل آیتم‌ها */
.index .masonry-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}



/* هاور روی آیتم */
.index .masonry-item:hover {
  transform: scale(1.02);
}

.index .masonry-item:hover img {
  transform: scale(1.05);
}

/* رنگ‌های پس‌زمینه (برای زمانی که عکس لود نشده) */
.index .bg-rose-400 {
  background-color: #fb7185;
}


.index .bg-orange-400 {
  background-color: #fb923c;
}


.index .bg-primary {
  background-color: #f43f5e;
}

.index .bg-rose-300 {
  background-color: #fda4af;
}


.index .bg-orange-300 {
  background-color: #fdba74;
}


.index .bg-rose-500 {
  background-color: #f43f5e;
}


.index .bg-orange-500 {
  background-color: #f97316;
}


/* عرض دو ستونه */
.index .md\:col-span-2 {
  grid-column: span 2;
}

/* ارتفاع دو ستونه */
.index .md\:row-span-2 {
  grid-row: span 2;
}

/* ریسپانسیو برای موبایل */
@media (max-width: 768px) {
  .index .masonry-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 250px;
  }

  .index .md\:col-span-2 {
    grid-column: span 1;
  }

  .index .md\:row-span-2 {
    grid-row: span 1;
  }
}

.index .about {
  padding: 8rem 1.5rem;
  overflow: hidden;
  position: relative;
  backdrop-filter: 15px;
}

.index .about-container {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  align-items: center;
}

.index .about-image {
  position: relative;
  display: flex;
  justify-content: center;
}

.index .about-image-inner {
  position: relative;
}

.index .blur-circle {
  position: absolute;
  top: -2.5rem;
  right: -2.5rem;
  width: 8rem;
  height: 8rem;
  background: #fbbf24;
  border-radius: 9999px;
  opacity: 0.2;
  filter: blur(40px);
}

.index .about-image img {
  width: 700px;
  border-radius: 3rem;
  transform: rotateY(180deg);
}

.index .about-content {
  color: white;
}

.index .about-content h2 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.index .about-text {
  font-size: 1.125rem;
  line-height: 1.8;
  color: #eff6ff;
  opacity: 0.9;
  text-align: justify;
}

.index .about-text p:first-child {
  margin-bottom: 1rem;
}

.index .about-button {
  margin-top: 3rem;
  padding: 1rem 2.5rem;
  background: white;
  color: #2563eb;
  font-weight: 700;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
}

.index .about-button:hover {
  background-color: #eff6ff;
}


.index .text-primary {
  color: #f43f5e;
}

.index .space-y-4>*+* {
  margin-top: 1rem;
}

.index .space-y-2>*+* {
  margin-top: 0.5rem;
}

.index .gap-6 {
  gap: 1.5rem;
}

.index .gap-2 {
  gap: 0.5rem;
}

.index .gap-4 {
  gap: 1rem;
}

.index .mb-12 {
  margin-bottom: 3rem;
}

.index .mb-8 {
  margin-bottom: 2rem;
}

.index .mb-6 {
  margin-bottom: 1.5rem;
}

.index .mb-4 {
  margin-bottom: 1rem;
}

.index .mb-2 {
  margin-bottom: 0.5rem;
}

.index .mt-6 {
  margin-top: 1.5rem;
}

.index .mt-4 {
  margin-top: 1rem;
}

.index .mt-12 {
  margin-top: 3rem;
}

.index .mt-24 {
  margin-top: 6rem;
}

.index .pt-8 {
  padding-top: 2rem;
}

.index .px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.index .py-24 {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.index .py-32 {
  padding-top: 8rem;
  padding-bottom: 8rem;
}

.index .flex {
  display: flex;
}

.index .items-center {
  align-items: center;
}

.index .items-end {
  align-items: flex-end;
}

.index .justify-center {
  justify-content: center;
}

.index .justify-between {
  justify-content: space-between;
}

.index .flex-col {
  flex-direction: column;
}

.index .order-1 {
  order: 1;
}

.index .order-2 {
  order: 2;
}

.index .text-justify {
  text-align: justify;
}

.index .max-w-7xl {
  max-width: 1280px;
}

.index .mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.index .relative {
  position: relative;
}

.index .absolute {
  position: absolute;
}

@media (min-width: 768px) {
  .index .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .index .portfolio-header {
    flex-direction: row;
  }

  .index .view-all {
    margin-top: 0;
  }

  .index .masonry-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .index .about-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .index .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .index .lg\:col-span-1 {
    grid-column: span 1;
  }
}

@media (max-width: 1024px) {
  .index .train {
    position: absolute;
    right: -700px;
    top: 56%;
    transform: translateY(-50%);
  }
}

@media (max-width: 768px) {
  .index .portfolio-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .index .about-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }

  .index .about-content h2 {
    font-size: 2rem;
    text-align: center;
  }

  .index .about-text {
    font-size: 1rem;
    text-align: center;
    padding: 0 0.5rem;
  }

  .index .about-content {
    padding: 0 1rem;
  }

  .index .about-button {
    display: block;
    margin: 2rem auto 0;
    width: fit-content;
  }

  .index .about-image img {
    width: 100%;
    max-width: 500px;
    transform: rotate(90deg) !important;
    margin-top: 70px;
  }

  .index .train {
    position: absolute;
    width: 600px;
    right: -500px;
    top: 57%;
    transform: translateY(-50%);
    z-index: 1;
  }
}

/* ----------------------------------- ABOUT ----------------------------------- */


body.about {
  background: linear-gradient(145deg, #f9fafc 0%, #eef2f5 100%);
  min-height: 100vh;
  direction: rtl;
  font-family: 'paeez';
  overflow-x: hidden;
  position: relative;
}

body.about *:not(.title):not(.title *):not(.nav-wrapper):not(.nav-wrapper *) {
  font-family: 'paeez', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: clamp(16px, 4vw, 35px);
  text-shadow: 0.5px 0 0 rgb(0, 0, 0);
}

body.about h1 {
  font-size: clamp(28px, 8vw, 50px);
}

/* بلب‌های پس‌زمینه */
.about .about-blobs {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.about .blob {
  position: absolute;
  filter: blur(60px);
  border-radius: 50%;
  opacity: 0.35;
  animation: floatBlobAbout 16s infinite alternate ease-in-out;
  will-change: transform;
}

.about .blob-1 {
  background-color: #8b5cf6;
  width: clamp(250px, 40vw, 550px);
  height: clamp(250px, 40vw, 550px);
  top: -100px;
  left: -100px;
}

.about .blob-2 {
  background-color: #ec4899;
  width: clamp(200px, 35vw, 450px);
  height: clamp(200px, 35vw, 450px);
  bottom: 15%;
  right: -80px;
}

.about .blob-3 {
  background-color: #06b6d4;
  width: clamp(220px, 38vw, 500px);
  height: clamp(220px, 38vw, 500px);
  top: 40%;
  left: 50%;
}

.about .blob-4 {
  background-color: #f59e0b;
  width: clamp(180px, 30vw, 400px);
  height: clamp(180px, 30vw, 400px);
  bottom: -50px;
  left: 15%;
}

.about .blob-5 {
  background-color: #10b981;
  width: clamp(160px, 28vw, 350px);
  height: clamp(160px, 28vw, 350px);
  top: 60%;
  right: 25%;
}

@keyframes floatBlobAbout {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(30px, -20px) scale(1.08);
  }
}

/* کانتینر اصلی about */
.about .container {
  width: 90%;
  max-width: 1400px;
  margin: 30px auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 50px;
  position: relative;
  z-index: 1;
  padding: 0 20px;
}

/* عنوان اصلی */
.about .title {
  margin-top: 100px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: clamp(15px, 4vw, 30px);
  flex-wrap: wrap;
  justify-content: center;
}

.about .title img {
  width: clamp(40px, 8vw, 50px);
}

.about .br-title-section1 {
  background-color: black;
  width: 90%;
  max-width: 500px;
  height: 2px;
  border-radius: 50%;
  margin-top: 50px;
}

.about .avatar-wrapper img {
  width: 200px;
  border-radius: 30px;
}

.about .bottom-team-section .avatar-wrapper {
  position: relative;
  width: 200px;
}

.about .avatar-wrapper::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: rgba(0, 0, 0, 0.75);
  color: white;
  font-size: 18px;
  font-weight: bold;
  border-radius: 30px;
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
  cursor: pointer;
}

.about .avatar-wrapper:hover::after {
  opacity: 1;
}

.about .stats {
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about .stats img {
  width: 70px;
}

.about .inner-section2 {
  position: relative;
  width: 95%;
  margin: 0 auto;
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(106, 4, 101, 0.545);
  border-radius: 30px;
}

.about .why-title::after {
  content: "چه چیزی سایت ما رو متفاوت کرده؟";
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translate(-50%, 0);
  background-color: transparent;
  padding: 15px 40px;
  z-index: 100;
  background-color: rgba(253, 227, 131, 0.565);
  border-radius: 20px;
  white-space: nowrap;
}

.about .inner-section2 p {
  margin: 0 auto;
  padding: 0 30px 40px;
  color: white;
  text-align: justify;
}

.about .inner-section3 h3 {
  font-size: 80px !important;
  font-weight: 200;
}

.about .inner-section3 {
  display: flex;
  flex-direction: column;
  align-items: end;
}

.about .inner-section3 button {
  margin: 0 auto;
  padding: 7px 50px;
  outline: none;
  border: none;
  border-radius: 40px;
  background-color: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(500px);
  transition: .1s;
}

.about .inner-section3 button:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.about .inner-section3 a {
  color: black;
  text-decoration: none;
}

.about .inner-section1 {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  padding: clamp(20px, 5vw, 50px);
  gap: clamp(30px, 6vw, 100px);
  align-items: center;
  justify-content: center;
}

.about .inner-section1 .right_section1 {
  flex: 1;
  min-width: 260px;
}

.about .inner-section1 .left_section1 {
  flex: 1;
  min-width: 220px;
  display: flex;
  justify-content: center;
}

.about .inner-section1 .left_section1 img {
  width: 100%;
  max-width: 500px;
  height: auto;
}

.about .inner-section1 p {
  font-size: clamp(14px, 3.5vw, 22px);
  line-height: 1.6;
  text-align: justify;
}

/* بخش آمارها */
.about .stat-section {
  width: 100%;
  background: rgba(0, 0, 0, 0.1);
  margin: 0 auto;
}

.about .inner-stat-section ul {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-around;
  list-style: none;
  align-items: center;
  padding: clamp(30px, 5vw, 40px) clamp(15px, 4vw, 30px);
  gap: clamp(25px, 5vw, 40px);
}

.about .inner-stat-section li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 100px;
}

.about .inner-stat-section li div {
  width: clamp(60px, 12vw, 90px);
  height: clamp(60px, 12vw, 90px);
}

.about .inner-stat-section .stats img {
  width: 100%;
  height: auto;
}

/* بخش تیم */
.about .inner-team-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(40px, 8vw, 80px) clamp(15px, 5vw, 50px);
  width: 100%;
}

.about .top-team-section {
  text-align: justify;
  width: 100%;
}

.about .top-team-section p {
  font-size: clamp(14px, 3.5vw, 20px);
  line-height: 1.6;
}

.about .bottom-team-section {
  margin: 50px 0 20px;
  width: 100%;
}

.about .bottom-team-section ul {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(25px, 6vw, 60px);
  list-style: none;
  align-items: center;
}

.about .bottom-team-section li {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.about .avatar-wrapper {
  width: clamp(120px, 25vw, 200px);
}

.about .avatar-wrapper img {
  width: 100%;
  height: auto;
  aspect-ratio: 1/1;
  object-fit: cover;
}

.about .avatar-wrapper::after {
  width: 100%;
  height: 100%;
  font-size: clamp(12px, 3vw, 18px);
}

/* بخش purple متفاوت */
.about .section2 {
  width: 100%;
}

.about .inner-section2 {
  position: relative;
  width: 95%;
  margin: 20px auto;
  padding: 25px 0 15px;
}

.about .inner-section2 .title {
  margin-top: 0;
}

.about .inner-section2 .title::after {
  content: "چه چیزی سایت ما رو متفاوت کرده؟";
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translate(-50%, 0);
  background-color: #FDE383;
  padding: clamp(8px, 2vw, 15px) clamp(15px, 5vw, 40px);
  border-radius: 20px;
  white-space: nowrap;
  font-size: clamp(12px, 3.5vw, 18px);
  font-weight: bold;
}

@media (max-width: 580px) {
  .about .inner-section2 .title::after {
    white-space: normal;
    text-align: center;
    width: 90%;
    font-size: 14px;
    top: -35px;
  }

  .about .inner-section2 {
    margin-top: 45px;
  }
}

.about .inner-section2 p {
  font-size: clamp(14px, 3.5vw, 20px);
  padding: 20px 20px 30px;
  line-height: 1.6;
}

/* بخش سوم با h3 بزرگ */
.about .inner-section3 {
  padding: clamp(40px, 8vw, 80px) clamp(15px, 5vw, 50px);
  width: 100%;
  text-align: center;
}

.about .inner-section3 h3 {
  font-size: clamp(24px, 7vw, 80px) !important;
  font-weight: 200;
  margin-bottom: 20px;
  text-align: center;
}

.about .inner-section3 img {
  max-width: 80px;
  width: 100%;
  margin: 15px auto;
}

.about .inner-section3 button {
  padding: 8px 40px;
  font-size: clamp(14px, 4vw, 20px);
}

/* بخش لوگو */
.about .inner-logo-section {
  display: grid;
  place-items: center;
  padding: 50px 20px;
  gap: 30px;
  text-align: center;
  width: 100%;
}

.about .top-logo-section img {
  max-width: 180px;
  width: 100%;
}

.about .bottom-logo-section h2 {
  font-size: clamp(18px, 5vw, 32px);
}

/* ریسپانسیو کامل برای تبلت و موبایل */
@media (max-width: 992px) {
  .about .container {
    width: 95%;
    margin-top: 20px;
    padding: 0 12px;
  }

  .about .inner-section1 {
    flex-direction: column;
    text-align: center;
  }

  .about .inner-section1 .right_section1 p {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .about .title {
    margin-top: 70px;
  }

  .about .br-title-section1 {
    margin-top: 30px;
  }

  .about .inner-stat-section ul {
    gap: 20px;
  }

  .about .bottom-team-section ul {
    gap: 30px;
  }

  .about .inner-section3 h3 {
    line-height: 1.3;
  }

  .about .inner-logo-section {
    padding: 30px 15px;
  }
}

@media (max-width: 576px) {
  .about .container {
    width: 98%;
  }

  .about .title h1 {
    font-size: 24px;
  }

  .about .title img {
    width: 35px;
  }

  .about .inner-section1 {
    padding: 25px 12px;
  }

  .about .inner-team-section {
    padding: 30px 12px;
  }

  .about .inner-section2 p {
    padding: 15px 15px 25px;
  }

  .about .avatar-wrapper {
    width: 110px;
  }

  .about .bottom-team-section ul {
    gap: 20px;
  }
}

@media (max-width: 420px) {
  .about .avatar-wrapper {
    width: 90px;
  }

  .about .inner-stat-section li div {
    width: 55px;
    height: 55px;
  }

  .about .inner-stat-section li p {
    font-size: 12px;
  }
}

/* ----------------------------------- JOIN ----------------------------------- */


.join .main-content {
  position: relative;
  z-index: 2;
  padding-top: 100px;
}

/* بخش متن - با کادر کلی */
.join .join-us-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
}

.join .join-us {
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
}

.join .join-us-inner {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  border-radius: 48px;
  padding: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
}

.join .join-us-inner p {
  line-height: 1.9;
  text-align: justify;
  font-size: 1rem;
  color: #1a1a2e;
  margin-bottom: 2rem;
  max-height: 500px;
  overflow-y: auto;
  padding-left: 15px;
}

.join .join-us-inner p::-webkit-scrollbar {
  width: 4px;
}

.join .join-us-inner button {
  background: linear-gradient(105deg, #8b5cf6, #6d28d9);
  border: none;
  border-radius: 60px;
  padding: 14px 40px;
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
  display: inline-block;
}

.join .join-us-inner button:hover {
  transform: scale(0.98);
  background: linear-gradient(105deg, #7c3aed, #5b21b6);
}

/* ========== بخش درخت + قطار (قطار روی درخت) ========== */
.join .forest-section {
  position: relative;
  width: 100%;
  line-height: 0;
  margin: 0;
  padding: 0;
}

/* درخت - لایه پایینی */
.join .tree-layer {
  width: 100%;
  display: block;

}

.join .tree-layer img {
  width: 100%;
  height: auto;
  display: block;

}

/* قطار - لایه بالایی (روی درخت) */
.join .train-layer {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  pointer-events: none;
  z-index: -1;
}

.join .bridge-layer img {
  width: 100%;
  height: auto;
  display: block;
}

.join .bridge-layer {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 0);
  width: 90%;
  pointer-events: none;
  z-index: -1;
}

.join .train-layer img {
  width: 100%;
  height: auto;
  display: block;
}

.join footer {
  z-index: 30;
  background-color: #54125a;
}

@media (max-width: 768px) {
  .join .join-us-section {
    padding: 2rem 1rem;
    min-height: auto;
  }

  .join .join-us-inner {
    padding: 1.5rem;
  }

  .join .join-us-inner p {
    font-size: 0.85rem;
    max-height: 350px;
  }

  .join .join-us-inner button {
    padding: 10px 30px;
    font-size: 1rem;
  }
  .join .train-layer {
    width: 600px;
    top: 50%;
  }
}

@media (max-width: 480px) {
  .join .join-us-inner {
    padding: 1.2rem;
  }

  .join .join-us-inner p {
    font-size: 0.8rem;
    max-height: 280px;
  }

  .join .train-layer {
    bottom: 2%;
  }
}

/* ----------------------------------- EXPLORE ----------------------------------- */
.explore {
  position: relative;
  overflow-x: hidden;
}

/* ===== دایره‌های متحرک پس‌زمینه ===== */
    padding: 8px 10px;
    background: rgba(0,0,0,0.6);
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(5px);
    z-index: 5;
}
.explore .designer-name {
    color: white;
    text-decoration: none;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}
.explore .designer-name:hover {
    color: #ff9800;
}
.explore .design-price {
    color: #4CAF50;
    font-size: 11px;
    font-weight: bold;
}
.explore .image-wrapper {
    position: relative;
}
.explore .load-more-btn {
    text-align: center;
    margin: 30px 0;
}
.explore .load-more-btn button {
    background: #1B0039;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 14px;
}
.explore .load-more-btn button:hover {
    background: #2d0b5a;
}
.explore .loading {
    text-align: center;
    padding: 20px;
    color: #666;
}
.explore .image-card-link {
    display: block;
    text-decoration: none;
}
.explore .image-actions {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: space-between;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 10;
}
.explore .image-wrapper:hover .image-actions {
    opacity: 1;
}
.explore .action-btn {
    background: rgba(0,0,0,0.7);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.explore .action-btn:hover {
    transform: scale(1.1);
}
.explore .download-btn:hover {
    background: #4CAF50;
}
.explore .save-btn:hover {
    background: #E91E63;
}
.explore .save-btn.saved {
    background: #E91E63;
}
.explore .user-menu {
    position: relative;
}
.explore .user-dropdown {
    cursor: pointer;
}
.explore .user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.15);
    padding: 5px 12px 5px 8px;
    border-radius: 40px;
    transition: all 0.2s;
}
.explore .user-info:hover {
    background: rgba(255,255,255,0.25);
}
.explore .user-avatar-mini {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}
.explore .user-avatar-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    display: flex;
    align-items: center;
    justify-content: center;
}
.explore .user-name {
    font-size: 13px;
    font-weight: 500;
    color: white;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.explore .right_header {
    display: flex;
    align-items: center;
    gap: 15px;
}
.explore .filter-select {
    padding: 8px 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background: white;
}
.explore .no-results {
    text-align: center;
    padding: 50px;
    color: #999;
}
/* پس‌زمینه اصلی رو شفاف بذار تا دایره‌ها دیده بشن */
body.explore {
  background: transparent;
  position: relative;
}

/* یک لایه نیمه شفاف روی دایره‌ها برای خوانایی متن (اختیاری) */
.explore .container::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 239, 186, 0.1);
  z-index: -1;
  pointer-events: none;
}


body.explore {
  display: flex;
  margin: 0;
  min-height: 100vh;
  position: relative;
}

/* ===== دایره‌های متحرک پس‌زمینه ===== */
.explore-blobs {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.explore .blob {
  position: absolute;
  filter: blur(60px);
  border-radius: 50%;
  opacity: 0.35;
  animation: floatBlobExplore 16s infinite alternate ease-in-out;
  will-change: transform;
}

.explore .blob-1 {
  background-color: #8b5cf6;
  width: 550px;
  height: 550px;
  top: -200px;
  left: -200px;
  animation-duration: 14s;
}

.explore .blob-2 {
  background-color: #ec4899;
  width: 450px;
  height: 450px;
  bottom: 20%;
  right: -150px;
  animation-duration: 18s;
  animation-delay: 1s;
}

.explore .blob-3 {
  background-color: #06b6d4;
  width: 500px;
  height: 500px;
  top: 40%;
  left: 60%;
  animation-duration: 20s;
  animation-delay: 0.5s;
  opacity: 0.3;
}

.explore .blob-4 {
  background-color: #f59e0b;
  width: 400px;
  height: 400px;
  bottom: -100px;
  left: 20%;
  animation-duration: 17s;
  animation-delay: 2s;
  opacity: 0.3;
}

.explore .blob-5 {
  background-color: #10b981;
  width: 350px;
  height: 350px;
  top: 60%;
  right: 30%;
  animation-duration: 22s;
  animation-delay: 3s;
  opacity: 0.25;
}

@keyframes floatBlobExplore {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(40px, -30px) scale(1.1);
  }
}

/* ===== سایدبار ===== */
.explore .sidebar {
  position: fixed;
  top: 0;
  right: -300px;
  /* اول مخفی */
  width: 280px;
  height: 100vh;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  z-index: 1000;
  transition: right 0.3s ease;
  box-shadow: -2px 0 20px rgba(0, 0, 0, 0.15);
  overflow-y: auto;
}

.explore .sidebar.open {
  right: 0;
}



/* دکمه بستن سایدبار */
.sidebar-close-btn {
  position: absolute;
  top: 15px;
  left: 15px;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: #1B0039;
  color: white;
  border: none;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.sidebar-close-btn:hover {
  background: #dc3545;
  transform: scale(1.05);
}

.explore .sidebar .logo {
  padding: 20px;
  text-align: center;
  border-bottom: 1px solid #eee;
}

.explore .sidebar-logo {
  width: 120px;
}

.explore .mobile-logo {
  display: none !important;
}

.explore .sidebar.collapsed~.container .mobile-logo {
  display: block !important;
}

@media (max-width: 768px) {
  .sidebar {
    width: 260px;
  }

  .container {
    margin-right: 0;
    max-width: 100%;
  }

  .sidebar:not(.collapsed)~.container {
    margin-right: 260px;
    max-width: calc(100% - 260px);
  }
}

@media (max-width: 768px) {
  .explore .sidebar:not(.collapsed)~.container .mobile-logo {
    display: none !important;
  }

  .explore .sidebar.collapsed~.container .mobile-logo {
    display: block !important;
  }
}

.explore .sidebar-nav {
  display: flex;
  align-items: flex-start;
  padding: 20px 0;
  flex-direction: column;
  background: none;
  box-shadow: none;
  border-radius: none;
}

.explore .nav-item {
  display: flex;
  align-items: center;
  padding: 15px 10px;
  text-decoration: none;
  width: 100%;
  color: #333;
  transition: all 0.3s;
  border-right: 4px solid transparent;
  background: transparent;
}

.explore .nav-item:hover {
  background-color: #f5f5f5;
  border-right-color: #1B0039;
}

.explore .nav-item.active {
  background-color: #fff3e0;
  border-right-color: #1B0039;
  color: #400088;
}

.explore .nav-item svg {
  width: 20px;
  height: 20px;
  margin-left: 15px;
}

.explore .nav-item span {
  font-size: 14px;
}

/* دکمه توگل سایدبار */
.explore .toggle-sidebar {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1001;
  background: #1B0039;
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.explore .sidebar.collapsed~.toggle-sidebar {
  right: 20px;
}

/* کانتینر اصلی */
.explore .container {
  margin-right: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  transition: none !important;
}

.explore .sidebar.collapsed~.container {
  margin-right: 0;
  width: 100%;
}

/* هدر */
.explore .header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  top: 0;
  z-index: 99;
}

.explore .middle_header {
  flex: 0.5;
  display: flex;
  justify-content: center;
}

.explore .left_header {
  display: flex;
  align-items: center;
}

.explore .left_header img {
  width: 150px;
  margin-right: 50px;
}

.explore .wrap {
  width: 100%;
  max-width: 500px;
}

.explore .search {
  position: relative;
  display: flex;
  width: 100%;
}

.explore .searchTerm {
  width: 100%;
  padding: 12px 15px;
  border-radius: 0 30px 30px 0;
  border: 2px solid #1B0039;
  border-left: none;
  outline: none;
  font-size: 14px;
  background: transparent;
}

.explore .searchTerm::placeholder {
  color: #c6d5ce;
}

.explore .searchButton {
  background: transparent;
  border: 2px solid #1B0039;
  border-right: none;
  border-radius: 30px 0 0 30px;
  padding: 0 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.explore .searchButton svg {
  width: 18px;
  height: 18px;
}

.explore .right_header {
  display: flex;
  flex-direction: row;
  gap: 10px;
}


/* دسته‌بندی‌ها */
.explore .categories {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px 30px;
  margin-bottom: 20px;
  width: 100%;
}

.explore .popular {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.explore .left_popular {
  font-size: 18px;
  font-weight: bold;
}

.explore .left_popular span {
  font-size: 14px;
  color: #999;
  font-weight: normal;
}

.explore .category {
  display: flex;
  gap: 15px;
  align-items: center;
  justify-content: space-between;
}

.explore .right_category {
  display: flex;
  flex-direction: row;
  gap: 10px;
  flex-wrap: wrap;
}

/* کمبو باکس */
.explore .combo-box {
  position: relative;
  width: 140px;
  transition: all 0.3s ease;
}

.explore .combo-header {
  padding: 10px 15px;
  border: 1px solid #1B0039;
  border-radius: 30px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s;
  min-height: 40px;
}

.explore .combo-options {
  position: absolute;
  background-color: transparent;
  backdrop-filter: blur(30px);
  top: 100%;
  left: 0;
  right: 0;
  border: 2px solid #ddd;
  border-top: none;
  border-radius: 0 0 10px 10px;
  display: none;
  z-index: 1000;
  max-height: 250px;
  overflow-y: auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.explore .combo-box.active .combo-options {
  display: block;
}

.explore .combo-box.active .arrow {
  transform: rotate(180deg);
}

.explore .arrow {
  transition: transform 0.3s;
  font-size: 12px;
  color: #1B0039;
}

.explore .option {
  padding: 10px 15px;
  cursor: pointer;
  transition: all 0.2s;
  border-bottom: 1px solid #f0f0f0;
}

.explore .option:last-child {
  border-bottom: none;
}

.explore .option:hover {
  background-color: #f5f5f5;
  padding-right: 20px;
}

/* گالری */
.explore .gallery {
  column-count: 4;
  column-gap: 20px;
  padding: 20px 30px;
}

@media (max-width: 1200px) {
  .explore .gallery {
    column-count: 3;
  }
}

@media (max-width: 768px) {
  .explore .gallery {
    column-count: 2;
  }

  .explore .header {
    flex-wrap: wrap;
    gap: 15px;
  }

  .explore .middle_header {
    order: 3;
    width: 100%;
    flex: auto;
  }

  .explore .category {
    flex-direction: column;
  }

  .explore .right_category {
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .explore .gallery {
    column-count: 1;
  }
}


.image-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.image-card-link:hover .image-wrapper {
  transform: translateY(-3px);
  transition: transform 0.3s;
}


.explore .image-card {
  break-inside: avoid;
  margin-bottom: 20px;
}

.explore .image-wrapper {
  position: relative;
  padding: 10px;
  background: #f5f5f5;
  border: 5px solid;
  border-radius: 15px;
  transition: border-color 0.3s;
}

.explore .gallery-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  cursor: pointer;
}

.explore .image-actions {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  padding: 0 15px;
  display: flex;
  justify-content: space-between;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.explore .image-card:hover .image-actions {
  opacity: 1;
}

.explore .action-btn {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.explore .action-btn:hover {
  transform: scale(1.1);
}

.explore .download-btn:hover {
  background: #4CAF50;
}

.explore .save-btn:hover {
  background: #E91E63;
}

/* مودال */
.explore .modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  cursor: pointer;
}

.explore .modal-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 20px;
}

.explore .modal-image {
  max-width: 90%;
  max-height: 80%;
  object-fit: contain;
  border: 5px solid;
  border-radius: 10px;
}

.explore .modal-info {
  margin-top: 20px;
  color: white;
  text-align: center;
}

.explore .close-modal {
  position: absolute;
  top: 20px;
  right: 40px;
  color: white;
  font-size: 40px;
  cursor: pointer;
}

@keyframes fadeInOut {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }

  15% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }

  85% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }

  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
  }
}

/* ----------------------------------- DASHBOARD ----------------------------------- */

body.dashboard {
  background: #f1f5f9;
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  overflow-x: hidden;
}

.dashboard .dashboard-layout {
  display: flex;
  width: 100%;
  min-height: 100vh;
  position: relative;
}

.dashboard .dashboard-sidebar {
  width: 280px;
  background-color: #1b0039;
  backdrop-filter: blur(2px);
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  position: relative;
  z-index: 100;
}

.dashboard .dashboard-sidebar.collapsed {
  margin-right: -280px;
}

.dashboard .hamburger-btn {
  display: none;
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 200;
  background: #1b0039;
  border: none;
  border-radius: 12px;
  width: 48px;
  height: 48px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
  align-items: center;
  justify-content: center;
}

.dashboard .hamburger-btn:hover {
  background: #2d0b5a;
  transform: scale(1.02);
}

.dashboard .hamburger-btn svg {
  width: 26px;
  height: 26px;
  stroke: white;
  stroke-width: 2;
  fill: none;
}

.dashboard .sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 90;
  backdrop-filter: blur(2px);
}

.dashboard .sidebar-overlay.active {
  display: block;
}

.dashboard .sidebar-header {
  padding: 1.75rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dashboard .logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dashboard .logo {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  padding: 6px;
  transition: all 0.3s ease;
}

.dashboard .logo img {
  display: block;
  width: 42px;
  height: auto;
  filter: brightness(0) invert(1);
}

.dashboard .logo-area span {
  font-size: 1rem;
  font-weight: 500;
  color: #f1f5f9;
  letter-spacing: -0.3px;
  background: linear-gradient(135deg, #ffffff, #cbd5e1);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.dashboard .logo-area:hover .logo {
  background: rgba(59, 130, 246, 0.3);
  transform: scale(1.02);
}

.dashboard .home-icon {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dashboard .home-icon:hover {
  background: rgba(59, 130, 246, 0.5);
  transform: scale(1.05);
}

.dashboard .home-icon svg {
  width: 20px;
  height: 20px;
  stroke: white;
  stroke-width: 1.8;
  fill: none;
}

.dashboard .nav-menu {
  flex: 1;
  padding: 2rem 1rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.dashboard .nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0.85rem 1.2rem;
  border-radius: 16px;
  font-size: 1rem;
  font-weight: 500;
  color: #cbd5e6;
  transition: all 0.2s;
  cursor: pointer;
  background: transparent;
  border: none;
  width: 100%;
  text-align: right;
  font-family: inherit;
}

.dashboard .nav-item svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 1.7;
  fill: none;
}

.dashboard .nav-item svg[fill="currentColor"] {
  fill: currentColor;
  stroke: none;
}

.dashboard .nav-item.active {
  background: #3b82f633;
  color: white;
  box-shadow: inset 3px 0 0 #3b82f6, 0 2px 6px rgba(0, 0, 0, 0.05);
}

.dashboard .nav-item:hover:not(.active) {
  background: rgba(255, 255, 255, 0.08);
  color: #f1f5f9;
}

.dashboard .dashboard-content {
  flex: 1;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  transition: all 0.3s ease;
}

.dashboard .top-bar {
  background: white;
  padding: 1rem 2rem;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.dashboard .top-bar-spacer {
  display: none;
}

.dashboard .page-title-placeholder {
  font-size: 1.4rem;
  font-weight: 600;
  color: #0f172a;
  letter-spacing: -0.2px;
}

.dashboard .page-viewport {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  position: relative;
}

.dashboard .switch-indicator {
  background: rgba(0, 0, 0, 0.03);
  border-radius: 48px;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 500;
  color: #334155;
  backdrop-filter: blur(4px);
  border: 1px dashed #cbd5e1;
  transition: all 0.2s;
  font-family: monospace;
  letter-spacing: 0.3px;
}

@media (max-width: 768px) {
  .dashboard .hamburger-btn {
    display: flex;
  }

  .dashboard .dashboard-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    z-index: 100;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  }

  .dashboard .dashboard-sidebar.collapsed {
    margin-right: -280px;
  }

  .dashboard .dashboard-sidebar:not(.collapsed) {
    margin-right: 0;
  }

  .dashboard .top-bar {
    padding-right: 80px;
  }

  .dashboard .page-title-placeholder {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .dashboard .logo-area span {
    display: none;
  }

  .dashboard .sidebar-header {
    justify-content: center;
    gap: 12px;
  }

  .dashboard .logo-area {
    flex: 1;
  }
}

/* ----------------------------------- CONTACT ----------------------------------- */


.contact .contact-blobs {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.contact .blob {
  position: absolute;
  filter: blur(60px);
  border-radius: 50%;
  animation: floatBlobContact 16s infinite alternate ease-in-out;
  will-change: transform;
}

.contact .blob-1 {
  background-color: #8b5cf6;
  width: 550px;
  height: 550px;
  top: -200px;
  left: -200px;
  animation-duration: 14s;
}

.contact .blob-2 {
  background-color: #ec4899;
  width: 450px;
  height: 450px;
  bottom: 20%;
  right: -150px;
  animation-duration: 18s;
  animation-delay: 1s;
}

.contact .blob-3 {
  background-color: #06b6d4;
  width: 500px;
  height: 500px;
  top: 40%;
  left: 60%;
  animation-duration: 20s;
  animation-delay: 0.5s;
  opacity: 0.3;
}

.contact .blob-4 {
  background-color: #f59e0b;
  width: 400px;
  height: 400px;
  bottom: -100px;
  left: 20%;
  animation-duration: 17s;
  animation-delay: 2s;
  opacity: 0.3;
}

.contact .blob-5 {
  background-color: #10b981;
  width: 350px;
  height: 350px;
  top: 60%;
  right: 30%;
  animation-duration: 22s;
  animation-delay: 3s;
  opacity: 0.25;
}

.contact .blob-6 {
  background-color: #fbbf24;
  width: 380px;
  height: 380px;
  top: 15%;
  left: 40%;
  animation-duration: 19s;
  animation-delay: 1.5s;
  opacity: 0.28;
}

@keyframes floatBlobContact {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(40px, -30px) scale(1.1);
  }
}

/* استایل‌های فرم و کادر تماس از کد اول */
.contact .container {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  padding-top: 100px;
  width: 100%;
  position: relative;
  z-index: 2;
}

.contact .title {
  font-size: 2.8rem;
  text-align: center;
  margin: 30px 0 30px 0;
  font-weight: 800;
  color: rgb(0, 0, 0);
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  letter-spacing: -0.02em;
}

.contact .inner-contact {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 2rem 3rem;
  width: 100%;
}

.contact .contact-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 1rem;
}

.contact .right_contact {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(16px);
  border-radius: 48px;
  padding: 2rem 1.8rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s ease;
  flex: 1;
  min-width: 280px;
}

.contact .right_contact:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.28);
}

.contact .apps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 1rem;
}

.contact .apps p {
  font-weight: 700;
  font-size: 1.3rem;
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.contact .apps_icons {
  display: flex;
  gap: 1.2rem;
}

.contact .apps_icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 60px;
  padding: 8px;
  transition: all 0.2s;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.contact .apps_icons a:hover {
  transform: scale(1.08);
  background: rgba(255, 255, 255, 0.4);
}

.contact .apps_icons img {
  width: 34px;
  height: 34px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.contact .support {
  margin-top: 1rem;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 32px;
  padding: 1.2rem;
}

.contact .support p:first-child {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
  color: #8f81c9;
}

.contact .phone-part {
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact .support p:last-child {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #fff, #c7b9ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.contact .left_contact {
  flex: 1;
  min-width: 320px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(16px);
  border-radius: 48px;
  padding: 2rem 2rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s ease;
}

.contact .left_contact:hover {
  transform: translateY(-5px);
}

.contact .left_contact label {
  font-size: 1.6rem;
  font-weight: 700;
  display: block;
  margin-bottom: 1.5rem;
  text-align: center;
  color: white;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.contact .contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.contact .contact-form input,
.contact .contact-form textarea {
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 60px;
  padding: 14px 20px;
  font-size: 1rem;
  font-family: inherit;
  color: #1e1b2f;
  outline: none;
  transition: all 0.2s;
  backdrop-filter: blur(4px);
}

.contact .contact-form input:focus,
.contact .contact-form textarea:focus {
  border-color: #b794f4;
  background: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 0 3px rgba(183, 148, 244, 0.3);
}

.contact .contact-form textarea {
  border-radius: 32px;
  resize: vertical;
  min-height: 110px;
}

.contact .contact-form button {
  background: linear-gradient(105deg, #8b5cf6, #6d28d9);
  border: none;
  border-radius: 60px;
  padding: 14px;
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

.contact .contact-form button:hover {
  transform: scale(0.98);
  background: linear-gradient(105deg, #7c3aed, #5b21b6);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.falling-leaves {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 999;
  overflow: hidden;
}

.leaf {
  position: absolute;
  font-size: 25px;
  opacity: 0.8;
  animation: fallLeaf linear forwards;
}

@keyframes fallLeaf {
  0% {
    transform: translateY(-10vh) rotate(0deg);
    opacity: 1;
  }

  100% {
    transform: translateY(110vh) rotate(360deg);
    opacity: 0;
  }
}

/* قلب‌های نارنجی */
.floating-hearts {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 998;
  overflow: hidden;
}

.heart {
  position: absolute;
  font-size: 20px;
  animation: floatHeart linear forwards;
  opacity: 0.7;
  color: #ff5722;
}

@keyframes floatHeart {
  0% {
    transform: translateY(100vh) scale(0.5);
    opacity: 0;
  }

  20% {
    opacity: 0.8;
  }

  100% {
    transform: translateY(-10vh) scale(1.2);
    opacity: 0;
  }
}

/* دکمه خاموش/روشن انیمیشن */
.toggle-animation-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1001;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 10px 18px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s;
  font-family: sans-serif;
}

.toggle-animation-btn:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.05);
}

.animations-off .falling-leaves,
.animations-off .floating-hearts {
  display: none;
}

/* لوگوی انیمیشنی iBlueDesign */
.animated-logo {
  text-align: center;
  margin: 20px 0 20px;
  position: relative;
  z-index: 10;
  min-height: 100px;
}

.logo-wrapper {
  display: inline-block;
  position: relative;
  direction: ltr;
  font-family: 'Segoe UI', 'Roboto', 'Arial', sans-serif !important;
}

.logo-letter {
  display: inline-block;
  font-size: 55px;
  font-weight: bold;
  background: linear-gradient(135deg, #d35400, #e67e22, #f39c12);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0;
  transform: translate(var(--start-x, 0), var(--start-y, 0)) scale(0);
  animation: flyToCenter 0.8s cubic-bezier(0.34, 1.2, 0.64, 1) forwards;
  text-shadow: 0 0 10px rgba(211, 84, 0, 0.3);
}

.logo-letter:nth-child(1) {
  --start-x: -200px;
  --start-y: -100px;
  animation-delay: 0s;
}

.logo-letter:nth-child(2) {
  --start-x: 200px;
  --start-y: -80px;
  animation-delay: 0.05s;
}

.logo-letter:nth-child(3) {
  --start-x: -180px;
  --start-y: 120px;
  animation-delay: 0.1s;
}

.logo-letter:nth-child(4) {
  --start-x: 180px;
  --start-y: 100px;
  animation-delay: 0.15s;
}

.logo-letter:nth-child(5) {
  --start-x: -150px;
  --start-y: -60px;
  animation-delay: 0.2s;
}

.logo-letter:nth-child(6) {
  --start-x: 150px;
  --start-y: -70px;
  animation-delay: 0.25s;
}

.logo-letter:nth-child(7) {
  --start-x: -120px;
  --start-y: 150px;
  animation-delay: 0.3s;
}

.logo-letter:nth-child(8) {
  --start-x: 120px;
  --start-y: 130px;
  animation-delay: 0.35s;
}

.logo-letter:nth-child(9) {
  --start-x: -100px;
  --start-y: -140px;
  animation-delay: 0.4s;
}

.logo-letter:nth-child(10) {
  --start-x: 100px;
  --start-y: -120px;
  animation-delay: 0.45s;
}

.logo-letter:nth-child(11) {
  --start-x: -80px;
  --start-y: 180px;
  animation-delay: 0.5s;
}

.logo-letter:nth-child(12) {
  --start-x: 80px;
  --start-y: 160px;
  animation-delay: 0.55s;
}

@keyframes flyToCenter {
  0% {
    opacity: 0;
    transform: translate(var(--start-x, 0), var(--start-y, 0)) scale(0);
  }

  30% {
    opacity: 1;
  }

  100% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
}

.logo-wrapper.loaded .logo-letter {
  animation: shimmerLetter 2s ease-in-out infinite;
  opacity: 1 !important;
  transform: scale(1) !important;
}

@keyframes shimmerLetter {

  0%,
  100% {
    text-shadow: 0 0 5px rgba(211, 84, 0, 0.3);
  }

  50% {
    text-shadow: 0 0 20px rgba(211, 84, 0, 0.7), 0 0 5px #ff9800;
  }
}

/* ----------------------------------- LOGIN ----------------------------------- */

body.logsign {
  overflow-x: hidden;
  width: 100%;
  min-height: 100dvh;
}

.logsign .parallax-wrapper {
  height: 100dvh;
  width: 100%;
  position: relative;
}

.logsign .parallax {
  position: sticky;
  top: 0;
  height: 100dvh;
  overflow: hidden;
}

.logsign .layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.logsign .sky {
  background-image: url("../img/sky.svg");
  z-index: 1;
}

.logsign .tree {
  background-image: url("../img/tree.svg");
  z-index: 3;
}

.logsign .train-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.logsign .train {
  position: absolute;
  width: clamp(260px, 70vw, 800px);
  height: 40vh;
  top: 45vh;
  right: -10vw;
  background-image: url("../img/train.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 2;
  animation: moveTrain 3s linear infinite;
}

@keyframes moveTrain {
  from {
    right: -20vw;
  }

  to {
    right: 120vw;
  }
}

.logsign .container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(95vw, 420px);
  min-height: 620px;
  padding: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logsign .form-wrapper {
  width: 100%;
  min-height: 420px;
  position: relative;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.logsign .form-wrapper.rotate {
  transform: rotateY(180deg);
}

.logsign .form {
  position: absolute;
  width: 100%;
  height: 100%;
  min-height: 420px;
  backface-visibility: hidden;
  padding: clamp(20px, 5vw, 40px);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px 0;
}

.logsign .form a {
  margin: 0 auto;
  color: #fff3e0;
}

.logsign .form.signup {
  transform: rotateY(180deg);
}

.logsign h2 {
  margin-top: -20px;
  color: #ffffff;
  text-align: center;
  font-weight: bold;
}

.logsign .signup h2 {
  margin-top: 30px;
}

.logsign .form-group {
  margin-bottom: 16px;
  text-align: right;
}

.logsign label {
  display: block;
  margin-bottom: 5px;
  color: #dedede;
  font-weight: bold;
  font-size: 14px;
}

.logsign input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  background-color: transparent;
  border-radius: 30px;
  text-align: right;
}

.logsign input:focus {
  outline: none;
  border: 1px solid #8a8a8a;
}

.logsign input::placeholder {
  color: rgb(67, 67, 67);
  text-align: right;
}

.logsign button {
  width: 100%;
  padding: 12px;
  background: transparent;
  color: #C6185B;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 10px;
  border-radius: 50px;
}

.logsign .signup button {
  margin-top: -10px;
}

.logsign button:hover {
  border: 1px solid black;
}

.logsign .toggle-link {
  text-align: center;
  margin-top: 18;
  color: #c5c5c5;
  cursor: pointer;
  text-decoration: underline;
  font-weight: bold;
  font-size: 14px;
}

.logsign .form.signup .toggle-link {
  padding-bottom: 10px;
}

@media (max-width: 1300px) {
  .logsign .train {
    top: 39vh;
  }
}

@media (max-width: 760px) {
  .logsign .train {
    top: 40vh;
  }
}

@media (max-width: 420px) {
  .logsign .container {
    min-height: 360px;
  }

  .logsign .form-wrapper,
  .logsign .form {
    min-height: 360px;
  }

  .logsign h2 {
    font-size: 18px;
  }

  .logsign input,
  .logsign button {
    padding: 10px;
    font-size: 13px;
  }
}
/* ========================================
   اصلاحات ریسپانسیو اضافه‌شده
   ======================================== */

/* فوتر موبایل */
@media (max-width: 768px) {
  footer { padding: 3rem 1rem; }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .social-links { justify-content: center; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* explore header موبایل */
@media (max-width: 768px) {
  .explore .header {
    flex-wrap: wrap;
    gap: 10px;
    padding: 15px;
  }
  .explore .left_header img { margin-right: 10px; }
  .explore .wrap { max-width: 100%; }
}

/* داشبورد موبایل — top-bar padding برای hamburger */
@media (max-width: 768px) {
  .dashboard .top-bar { padding-right: 72px; }
}

/* index — search box موبایل */
@media (max-width: 480px) {
  .index .search-gif { width: 90vw; }
  .index .search-container button {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }
}

/* مخفی کردن hamburger در دسکتاپ برای explore */
@media (min-width: 769px) {
  #toggleSidebar { display: none; }
  .explore .sidebar { right: 0; position: sticky; height: 100vh; top: 0; }
}

/* ===== DESIGN DETAIL PAGE ===== */
.design-detail-page { background: #f8fafc; }

.design-detail {
    max-width: 1200px;
    margin: 100px auto 50px;
    padding: 0 20px;
}

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    font-size: 13px;
    color: #666;
    margin-bottom: 24px;
    align-items: center;
}
.breadcrumb a { color: #1B0039; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.design-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 50px;
}

.design-image {
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    min-height: 400px;
}

.design-image img { max-width: 100%; max-height: 500px; border-radius: 16px; object-fit: contain; }

.design-info { padding: 30px; display: flex; flex-direction: column; gap: 16px; }

.design-category {
    display: inline-block;
    background: #f0f0f0;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    color: #666;
    width: fit-content;
}

.design-title { font-size: 26px; font-weight: bold; color: #1B0039; }
.design-description { color: #555; line-height: 1.8; font-size: 14px; }

.designer-box {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 16px;
}

.designer-avatar { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; }
.designer-avatar.placeholder { display: flex; align-items: center; justify-content: center; background: #e9ecef; font-size: 24px; }
.designer-name { font-weight: 600; color: #1B0039; text-decoration: none; display: block; }
.designer-name:hover { text-decoration: underline; }
.designer-bio { color: #888; font-size: 12px; margin-top: 3px; }

.design-stats { display: flex; gap: 20px; }
.stat-item { text-align: center; }
.stat-value { font-size: 20px; font-weight: bold; color: #1B0039; }
.stat-label { font-size: 11px; color: #888; }

.design-price { font-size: 22px; font-weight: bold; color: #1B0039; }
.free-label { color: #4CAF50 !important; }

.design-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #1B0039, #3d0078);
    color: white;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}
.download-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(27,0,57,0.3); }

.save-design-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0,0,0,0.06);
    color: #333;
    padding: 14px 24px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid #e0e0e0;
    text-decoration: none;
}
.save-design-btn:hover { border-color: #E91E63; color: #E91E63; }
.save-design-btn.saved { background: #E91E63; color: white; border-color: #E91E63; }

.design-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.tag { background: #f0f0f0; padding: 4px 14px; border-radius: 20px; font-size: 12px; color: #555; }

.related-section { margin-top: 20px; }
.related-title { font-size: 22px; font-weight: bold; color: #1B0039; margin-bottom: 20px; }
.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.related-card { background: white; border-radius: 16px; overflow: hidden; text-decoration: none; color: inherit; transition: transform 0.2s; display: block; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.related-card:hover { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(0,0,0,0.12); }
.related-card img { width: 100%; height: 160px; object-fit: cover; }
.related-card .info { padding: 12px; }
.related-card .title { font-size: 13px; font-weight: 600; color: #1B0039; margin-bottom: 4px; }
.related-card .designer { font-size: 11px; color: #888; margin-bottom: 6px; }
.related-card .price { font-size: 13px; font-weight: bold; color: #4CAF50; }

@media (max-width: 900px) {
    .design-main { grid-template-columns: 1fr; }
    .related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .design-detail { margin-top: 80px; }
    .design-title { font-size: 20px; }
    .related-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .design-stats { flex-wrap: wrap; gap: 12px; }
}

/* ===== SR-ONLY برای accessibility ===== */
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0);
    white-space: nowrap; border: 0;
}
