* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

/* انیمیشن‌های لود اولیه */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateX(30px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes popIn {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

body {
  font-family: 'Vazirmatn', sans-serif;
  background: #fdf8ef;
  color: #2c1b33;
  line-height: 1.9;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

.container {
  width: min(1100px, 90%);
  margin: auto;
}

/* هدر و نویگیشن */
nav {
  padding: 24px 0;
  position: sticky;
  top: 0;
  background: rgba(253, 248, 239, 0.9);
  backdrop-filter: blur(8px);
  z-index: 100;
  border-bottom: 1px solid rgba(228, 207, 239, 0.3);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.logo {
  font-size: clamp(18px, 4vw, 22px);
  font-weight: 900;
  letter-spacing: -1px;
  color: #731b9d;
  animation: fadeIn 1s ease-out;
}

.logo small {
  display: block;
  font-size: 12px;
  color: #138043;
  font-weight: 500;
  margin-top: -4px;
}

.nav-links {
  display: flex;
  gap: 24px;
  color: #555;
  font-size: 14px;
  font-weight: 500;
  overflow-x: auto; /* اسکرول افقی در موبایل به جای مخفی شدن */
  padding-bottom: 4px;
  scrollbar-width: none;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-links a:hover {
  color: #731b9d;
}

/* بخش Hero */
.hero {
  padding: clamp(60px, 10vw, 120px) 0 clamp(40px, 8vw, 90px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.hero > .container > div:first-child {
  animation: fadeInUp 0.8s ease-out forwards;
}

.hero h1 {
  font-size: clamp(42px, 8vw, 76px);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -2px;
  margin-bottom: 24px;
  color: #731b9d;
}

.hero h1 span {
  color: #138043;
}

.hero p {
  font-size: clamp(16px, 3vw, 20px);
  color: #5a4363;
  max-width: 700px;
}

.badge {
  display: inline-block;
  padding: 8px 18px;
  border: 1px solid #cce8d6;
  border-radius: 999px;
  margin-bottom: 24px;
  color: #138043;
  font-size: 14px;
  font-weight: 600;
  background: #eaf5ec;
  animation: popIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.cta {
  margin-top: 36px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 700;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.btn-dark {
  background: #138043;
  color: #fff;
  box-shadow: 0 4px 15px rgba(19, 128, 67, 0.2);
}

.btn-dark:hover {
  transform: translateY(-3px);
  background: #0e6132;
  box-shadow: 0 8px 20px rgba(19, 128, 67, 0.3);
}

.btn-light {
  border: 1px solid #d4c1df;
  color: #731b9d;
  background: #fdf8ef;
}

.btn-light:hover {
  background: #f5ebfa;
  border-color: #731b9d;
  transform: translateY(-3px);
}

/* کارت Hero */
.hero-card {
  background: #f2e8f7;
  border-radius: 32px;
  padding: clamp(24px, 5vw, 40px);
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(115, 27, 157, 0.05);
  animation: popIn 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.hero-card::before {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, #e4cfef, #f5ebfa);
  border-radius: 50%;
  top: -100px;
  left: -100px;
  transition: transform 0.5s ease;
}

.hero-card:hover::before {
  transform: scale(1.1) translate(10px, 10px);
}

.hero-card h3 {
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 900;
  z-index: 2;
  position: relative;
  color: #731b9d;
  margin-bottom: 12px;
}

.hero-card p {
  font-size: clamp(14px, 2.5vw, 15px);
  color: #5a4363;
  z-index: 2;
  position: relative;
  margin-bottom: 24px;
}

.funny-box {
  background: #fff;
  border-radius: 20px;
  padding: 24px;
  z-index: 2;
  position: relative;
  border: 1px solid rgba(228, 207, 239, 0.6);
  box-shadow: 0 10px 20px rgba(0,0,0,0.02);
  transition: transform 0.3s ease;
}

.hero-card:hover .funny-box {
  transform: translateY(-5px);
}

.funny-box div {
  margin-bottom: 12px;
  font-size: 14px;
  color: #444;
  font-weight: 500;
}
.funny-box div:last-child {
  margin-bottom: 0;
}

/* بخش‌های عمومی */
.section {
  padding: clamp(60px, 10vw, 120px) 0;
  border-top: 1px solid rgba(228, 207, 239, 0.4);
}

.section-title {
  font-size: clamp(32px, 6vw, 48px);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -1.5px;
  color: #138043;
}

.section-desc {
  color: #5a4363;
  max-width: 700px;
  margin-bottom: clamp(40px, 6vw, 60px);
  font-size: clamp(16px, 3vw, 18px);
}

/* شبکه‌ها و کارت‌ها */
.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.product {
  background: #fff;
  border: 1px solid rgba(228, 207, 239, 0.8);
  border-radius: 24px;
  padding: 32px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  top: 0;
}

.product:hover {
  top: -8px;
  border-color: #731b9d;
  box-shadow: 0 15px 30px rgba(115, 27, 157, 0.08);
}

.product small {
  color: #138043;
  display: inline-block;
  margin-bottom: 16px;
  font-weight: 700;
  font-size: 13px;
  background: #eaf5ec;
  padding: 4px 12px;
  border-radius: 8px;
}

.product h3 {
  font-size: clamp(20px, 4vw, 24px);
  margin-bottom: 16px;
  font-weight: 900;
  color: #731b9d;
}

.product p {
  color: #5a4363;
  font-size: 15px;
  line-height: 1.8;
}

.weird {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.weird-card {
  background: #eaf5ec;
  border-radius: 24px;
  padding: clamp(24px, 5vw, 36px);
  transition: transform 0.3s ease;
}

.weird-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(19, 128, 67, 0.1);
}

.weird-card h3 {
  font-size: clamp(22px, 4vw, 28px);
  margin-bottom: 16px;
  font-weight: 900;
  color: #138043;
}

.weird-card p {
  color: #3a5c46;
  font-size: 16px;
}

/* خاطرات */
.memory-box {
  border-right: 4px solid #731b9d; /* در راست‌چین border-right منطقی‌تر است */
  background: #fff;
  padding: 20px 24px;
  border-radius: 16px 0 0 16px;
  margin-bottom: 24px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
  transition: all 0.3s ease;
}

.memory-box:hover {
  border-right-width: 8px;
  transform: translateX(-5px);
  box-shadow: 0 8px 20px rgba(115, 27, 157, 0.08);
}

.memory-box h4 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
  color: #731b9d;
}

.memory-box p {
  color: #5a4363;
  font-size: 15px;
  margin: 0;
}

/* تماس */
.contact-info {
  background: #f5ebfa;
  border-radius: 20px;
  padding: clamp(24px, 5vw, 36px);
  margin-top: 30px;
  border: 2px dashed #b78ccf;
  display: inline-flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 500px;
  transition: all 0.3s ease;
}

.contact-info:hover {
  background: #f0e1f7;
  border-color: #731b9d;
}

.contact-info div {
  font-size: clamp(15px, 3vw, 16px);
  color: #4a295c;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.contact-info strong {
  font-weight: 900;
  margin-left: 8px;
  color: #731b9d;
  min-width: 70px;
}

/* فوتر */
footer {
  border-top: 1px solid rgba(228, 207, 239, 0.5);
  padding: clamp(40px, 8vw, 60px) 0;
  color: #5a4363;
  font-size: 14px;
  background: #fff;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 40px;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a:hover {
  color: #731b9d;
  text-decoration: underline;
}

.muted {
  color: #888;
}

/* واکنش‌گرایی برای موبایل‌های کوچکتر */
@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero h1, .hero p {
    margin-left: auto;
    margin-right: auto;
  }

  .cta {
    justify-content: center;
  }
  
  .btn {
    width: 100%;
  }

  .nav-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
  }
  
  .contact-info div {
    flex-direction: column;
    align-items: flex-start;
  }
}
