/* intro.css - استایل‌های خاص صفحه معرفی */

.intro-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  width: 100%;
  margin-right: 0 !important;
}

.wave-bg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1200 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z' opacity='.25' fill='%231e88e5'/%3E%3Cpath d='M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z' opacity='.5' fill='%231e88e5'/%3E%3Cpath d='M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z' fill='%231e88e5'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 1200px;
  opacity: 0.1;
  animation: wave 60s linear infinite;
  z-index: -1;
}

.wave-2 {
  animation: wave 45s linear infinite reverse;
  opacity: 0.05;
  bottom: -20px;
}

.wave-3 {
  animation: wave 30s linear infinite;
  opacity: 0.03;
  bottom: -40px;
}

.intro-content {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
}

.intro-header {
  margin-bottom: 4rem;
  position: relative;
}

.logo-circle {
  width: 100px;
  height: 100px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: var(--gradient-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(30, 136, 229, 0.3);
  transition: transform 0.3s ease;
}

.logo-circle:hover {
  transform: scale(1.05) rotate(10deg);
}

.logo-icon {
  font-size: 2.5rem;
  color: white;
}

.intro-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--dark-blue);
  margin-bottom: 0.5rem;
  position: relative;
  display: inline-block;
}

.intro-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  right: 50%;
  transform: translateX(50%);
  width: 80px;
  height: 4px;
  background: var(--gradient-blue);
  border-radius: 2px;
}

.intro-subtitle {
  font-size: 1.2rem;
  color: #555;
  margin-bottom: 0;
}

.services-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 20px;
  justify-content: center;
  align-items: stretch;
}

.service-card {
  position: relative;
  background: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  text-decoration: none;
  color: #333;
  overflow: hidden;
  flex: 1 1 260px;
  max-width: 320px;
  display: flex;
  flex-direction: column;
}

@media (max-width: 480px) {
  .service-card {
    flex-basis: 220px;
    max-width: 100%;
  }
}

.service-card[href="/hadith"] {
  border-top: 4px solid var(--color-hadith);
  transition: all 0.3s ease;
}

.service-card[href="/hadith"]:hover {
  box-shadow: 0 4px 8px rgba(46, 125, 50, 0.2);
}

.service-card[href="/eshragh"],
.service-card[href="/search"],
.service-card[href="/quest/embedding"],
.service-card[href="/quest/freechat"] {
  transition: all 0.3s ease;
}

.service-card[href="/eshragh"] {
  border-top: 4px solid var(--color-quest-parsa);
}

.service-card[href="/eshragh"]:hover {
  box-shadow: 0 4px 8px rgba(79, 70, 229, 0.2);
}

.service-card[href="/search"] {
  border-top: 4px solid var(--color-quest-haditha);
}

.service-card[href="/search"]:hover {
  box-shadow: 0 4px 8px rgba(106, 27, 154, 0.2);
}



.service-card[href="/quest/embedding"] {
  border-top: 4px solid var(--color-quest-embedding);
}

.service-card[href="/quest/embedding"]:hover {
  box-shadow: 0 4px 8px rgba(245, 158, 11, 0.2);
}

.service-card[href="/quest/freechat"] {
  border-top: 4px solid var(--color-quest-freechat);
}

.service-card[href="/quest/freechat"]:hover {
  box-shadow: 0 4px 8px rgba(211, 47, 47, 0.2);
}

.service-card[href="/quest/shared_rag"] {
  border-top: 4px solid var(--color-quest-shared-rag);
  transition: all 0.3s ease;
}

.service-card[href="/quest/shared_rag"]:hover {
  box-shadow: 0 4px 8px rgba(34, 197, 94, 0.2);
}

.service-card[href="/chat"] {
  border-top: 4px solid var(--color-chat);
  transition: all 0.3s ease;
}

.service-card[href="/chat"]:hover {
  box-shadow: 0 4px 8px rgba(211, 47, 47, 0.2);
}

.service-card[href="/ocr"] {
  border-top: 4px solid var(--color-ocr);
  transition: all 0.3s ease;
}

.service-card[href="/ocr"]:hover {
  box-shadow: 0 4px 8px rgba(69, 90, 100, 0.2);
}

.service-card[href="/wiki"] {
  border-top: 4px solid var(--color-wiki);
  transition: all 0.3s ease;
}

.service-card[href="/wiki"]:hover {
  box-shadow: 0 4px 8px rgba(0, 137, 123, 0.2);
}

/* جستجوی معنایی */
.service-card[href="/search"] {
  border-top: 4px solid var(--color-search);
  transition: all 0.3s ease;
}

.service-card[href="/search"]:hover {
  box-shadow: 0 4px 8px rgba(37, 99, 235, 0.2);
}



/* استایل آیکون‌ها */
.service-card[href="/hadith"] .card-icon i {
  color: var(--color-hadith);
  background: rgba(46, 125, 50, 0.1);
  padding: 12px;
  border-radius: 50%;
}

.service-card[href="/eshragh"] .card-icon i {
  color: var(--color-quest-parsa);
  background: rgba(79, 70, 229, 0.1);
  padding: 12px;
  border-radius: 50%;
}

.service-card[href="/search"] .card-icon i {
  color: var(--color-quest-haditha);
  background: rgba(106, 27, 154, 0.1);
  padding: 12px;
  border-radius: 50%;
}

.service-card[href="/quest/embedding"] .card-icon i {
  color: var(--color-quest-embedding);
  background: rgba(245, 158, 11, 0.1);
  padding: 12px;
  border-radius: 50%;
}

.service-card[href="/quest/freechat"] .card-icon i {
  color: var(--color-quest-freechat);
  background: rgba(211, 47, 47, 0.1);
  padding: 12px;
  border-radius: 50%;
}

.service-card[href="/quest/shared_rag"] .card-icon i {
  color: var(--color-quest-shared-rag);
  background: rgba(34, 197, 94, 0.1);
  padding: 12px;
  border-radius: 50%;
}

.service-card[href="/chat"] .card-icon i {
  color: var(--color-chat);
  background: rgba(211, 47, 47, 0.1);
  padding: 12px;
  border-radius: 50%;
}

.service-card[href="/ocr"] .card-icon i {
  color: var(--color-ocr);
  background: rgba(69, 90, 100, 0.1);
  padding: 12px;
  border-radius: 50%;
}

.service-card[href="/wiki"] .card-icon i {
  color: var(--color-wiki);
  background: rgba(0, 137, 123, 0.1);
  padding: 12px;
  border-radius: 50%;
}

.service-card[href="/search"] .card-icon i {
  color: var(--color-search);
  background: rgba(37, 99, 235, 0.1);
  padding: 12px;
  border-radius: 50%;
}

.service-card[href="/docs"] .card-icon i {
  color: var(--color-docs);
  background: rgba(94, 53, 177, 0.1);
  padding: 12px;
  border-radius: 50%;
}

.service-card .card-icon {
  font-size: 2rem;
  margin-bottom: 15px;
}

.card-hover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.05);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover .card-hover {
  opacity: 1;
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--dark-blue);
  transition: color 0.3s ease;
}

.service-card p {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 0;
  transition: color 0.3s ease;
}

.intro-footer {
  margin-top: 4rem;
  color: #666;
  font-size: 0.9rem;
}

.social-links {
  margin-top: 1rem;
}

.social-links a {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  border-radius: 50%;
  background: var(--light-blue);
  color: var(--primary-blue);
  margin: 0 0.5rem;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--primary-blue);
  color: white;
  transform: translateY(-3px);
}

.service-card:nth-child(1) {
  animation-delay: 0.1s;
}

.service-card:nth-child(2) {
  animation-delay: 0.2s;
}

.service-card:nth-child(3) {
  animation-delay: 0.3s;
}

.service-card:nth-child(4) {
  animation-delay: 0.4s;
}

/* استایل برای هدر جمع‌وجور */
.compact-header {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row-reverse;
  gap: 15px;
  margin-bottom: 30px;
}

.compact-header .logo-circle {
  width: 60px;
  height: 60px;
  margin: 0;
}

.compact-header .header-text {
  text-align: right;
}

.compact-header .intro-title {
  font-size: 1.5rem;
  margin-bottom: 5px;
}

.compact-header .intro-subtitle {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* برای صفحه‌های کوچک‌تر */
@media (max-width: 768px) {
  .compact-header {
    flex-direction: column;
    text-align: center;
  }

  .compact-header .header-text {
    text-align: center;
  }
}