/* 🌐 فونت‌ها */
@font-face {
  font-family: 'SFProL';
  src: url('../fonts/SFProL.woff2') format('woff2');
}

@font-face {
  font-family: 'SFProM';
  src: url('../fonts/SFProM.woff2') format('woff2');
}

@font-face {
  font-family: 'Yekan';
  src: url('../fonts/Yekan.woff2') format('woff2'),
    url('../fonts/Yekan.woff') format('woff'),
    url('../fonts/Yekan.ttf') format('truetype');
}

/* 🌙 متغیرهای رنگی تم */
:root {
  --bg-color: #ececec;
  --text-color: #232323;
  --button-bg: #ffffff;
  --button-border: #232323;
}

body.dark {
  --bg-color: #181818;
  --text-color: #f2f2f2;
}

/* 🧱 پایه */
html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  direction: rtl;
  font-family: 'SFProL', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  text-align: center;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

.page-content {
  flex: 1 0 auto;
  position: relative;
  z-index: 1;
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 50px;
  position: relative;
}

.orange-box {
  width: 586px;
  height: 115px;
  background-color: #ff5e00;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.white-box {
  width: 800px;
  height: 100px;
  background-color: #fff;
  border-radius: 10px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.logo {
  width: 58px;
  height: 50px;
  object-fit: contain;
}

.brand-title {
  font-size: 70px;
  margin-top: 230px;
  margin-bottom: 30px;
  font-family: 'SFProM', sans-serif;
  color: var(--text-color);
}

/* 💬 شعر */
.poem-line {
  display: flex;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
}

.poem {
  font-size: 20px;
  font-family: 'Yekan', sans-serif;
  color: var(--text-color);
  white-space: nowrap;
}

/* 🎯 دکمه‌ها */
.buttons {
  margin-top: 135px;
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.button {
  width: 185px;
  height: 65px;
  background-color: #ffffff;
  color: #232323;
  border: 2px solid #232323;
  border-radius: 10px;
  font-size: 22px;
  font-family: 'SFProL', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-direction: row-reverse;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* 🎤 تول‌تیپ */
.has-tooltip {
  position: relative;
}

.has-tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%);
  background-color: #ffffff;
  color: #232323;
  font-family: 'Yekan', sans-serif;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 10px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  box-shadow: none;
  z-index: 1000;
}

.has-tooltip:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
}

.has-tooltip::before {
  content: "";
  position: absolute;
  bottom: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 8px;
  background-color: #ffffff;
  border-radius: 3px;
  clip-path: polygon(50% 100%, 0 0, 100% 0);
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 999;
}

.has-tooltip:hover::before {
  opacity: 1;
}

/* 🔠 انیمیشن عنوان */
.animated-title {
  unicode-bidi: isolate;
  text-transform: none;
  font-variant: normal;
}

.animated-title span {
  display: inline-block;
  transition: transform 0.4s ease;
}

.animated-title:hover span:nth-child(odd) {
  transform: translateY(-8px);
}

.animated-title:hover span:nth-child(even) {
  transform: translateY(8px);
}

/* 🌊 موج پایین */
.wave-container {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 180px;
  overflow: hidden;
  line-height: 0;
  z-index: 0;
  pointer-events: none;
}

.waves {
  width: 100%;
  height: 100%;
  position: relative;
}

.parallax>use {
  animation: move-forever 25s cubic-bezier(.55, .5, .45, .5) infinite;
}

.parallax>use:nth-child(1) {
  animation-delay: -2s;
  animation-duration: 7s;
}

.parallax>use:nth-child(2) {
  animation-delay: -3s;
  animation-duration: 10s;
}

.parallax>use:nth-child(3) {
  animation-delay: -4s;
  animation-duration: 13s;
}

.parallax>use:nth-child(4) {
  animation-delay: -5s;
  animation-duration: 20s;
}

@keyframes move-forever {
  0% {
    transform: translate3d(-90px, 0, 0);
  }

  100% {
    transform: translate3d(85px, 0, 0);
  }
}

/* ✨ افکت fade-in */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s ease forwards;
}

.delay-1 {
  animation-delay: 0.3s;
}

.delay-2 {
  animation-delay: 0.6s;
}

.delay-3 {
  animation-delay: 0.9s;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 📜 فوتر */
.footer {
  flex-shrink: 0;
  padding: 20px 0;
  font-size: 12px;
  color: #232323;
  text-align: center;
  font-family: 'SFProL', sans-serif;
  position: relative;
  z-index: 2;
}

.footer a {
  color: #ffffff;
  background-color: #232323;
  border-radius: 3px;
  padding: 6px;
  text-decoration: none;
}

/* 🌘 دکمه تغییر تم */
.theme-toggle {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: var(--button-bg);
  color: #232323;
  border: 1px solid var(--button-border);
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  z-index: 9999;
  font-family: 'Yekan', sans-serif;
}

/* 📱 واکنش‌گرایی موبایل */
@media (max-width: 768px) {
  .orange-box {
    width: 85%;
    height: 85px;
    margin: 0 auto;
  }

  .white-box {
    width: 100%;
    height: 75px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .logo {
    width: 42px;
    height: 38px;
  }

  .brand-title {
    font-size: 36px;
    margin-top: 130px;
  }

  .poem {
    font-size: 16px;
  }

  .button {
    width: 160px;
    height: 60px;
    font-size: 18px;
  }

  .buttons {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 90px;
  }

  .wave-container {
    height: 140px;
  }
}