/* ====== FONT ====== */
@font-face {
  font-family: 'MORABBA';
  src: url('../fonts/MORABBA-REGULAR.TTF') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}


/* ====== RESET ====== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'MORABBA', sans-serif;
}

body {
  margin: 0;
  background: #000;
  overflow-x: hidden;
  overflow-y: auto;
  color: #fff;
  line-height: 1.5;
}

/* ====== SCENE ====== */
.scene {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* ====== BACKGROUND ====== */
.bg-video {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* ====== OVERLAY CONTENT ====== */
.overlay {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: fadeUp 1.2s ease forwards;
  max-width: 800px;
  padding: 30px;
  text-align: center;
}

.logo-wrap {
  margin-bottom: 15px;
}

.logo {
  width: clamp(200px, 30vw, 350px);
  animation: float 3s ease-in-out infinite;
  position: relative; /* relative برای transform */
}

/* ====== TITLES ====== */
.main-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin: 10px 0;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.main-subtitle {
  font-size: clamp(1rem, 3vw, 1.4rem);
  margin: 5px 0 20px;
  color: #b6c7bd;
}

/* ====== BUTTONS – Winter Theme ====== */
.buttons {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 300px;
}

.btn {
  display: block;
  text-decoration: none;
  padding: 15px 40px;
  border-radius: 8px;
  font-size: clamp(1.2rem, 4vw, 1.6rem);
  text-align: center;

  font-weight: bold;
  color: #eaf6ff;

  background: linear-gradient(
    to bottom,
    #264b73,
    #1b3552
  );

  border: 2px solid rgba(120, 200, 255, 0.65);

  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 4px 10px rgba(0, 0, 0, 0.6);

  cursor: pointer;
  transition: all 0.25s ease;
}

/* دکمه اصلی */
.btn.primary {
  border-color: #7fd7ff;
}

/* دکمه فرعی – کمی تیره‌تر */
.btn.secondary {
  background: linear-gradient(
    to bottom,
    #1f3a5a,
    #162a40
  );
  border-color: rgba(160, 220, 255, 0.45);
}

/* Hover – برق یخ */
.btn:hover {
  transform: translateY(-3px) scale(1.02);

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 0 16px rgba(180, 220, 255, 0.45);
}

/* Active – فشار یخ */
.btn:active {
  transform: translateY(1px);

  box-shadow:
    inset 0 3px 6px rgba(0, 0, 0, 0.7);
}

/* ====== ANIMATIONS ====== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ====== FLOAT ANIMATION با لوگوی بالاتر ====== */
@keyframes float {
  0%, 100% { transform: translateY(-100px); } /* پایه بالاتر */
  50% { transform: translateY(-110px); }      /* وسط float */
}

/* ====== FOOTER ====== */
.footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(5, 10, 8, 0.92), rgba(5, 10, 8, 0.65), rgba(5, 10, 8, 0));
  backdrop-filter: blur(6px);
  padding: 12px 0;
  z-index: 3;
  text-align: center;
}

.footer-inner {
  max-width: 1000px;
  margin: auto;
  padding: 0 15px;
  color: #b6c7bd;
  font-size: clamp(0.8rem, 2.5vw, 0.95rem);
}

.footer-links a {
  color: #7fe3b0;
  text-decoration: none;
  margin: 0 5px;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #ffffff;
}

/* ===== Download Modal ===== */
#download-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(5, 10, 8, 0.55);
  backdrop-filter: blur(12px);

  opacity: 0;
  pointer-events: none;
  visibility: hidden;

  transition: opacity 0.25s ease, visibility 0.25s ease;
}

/* فعال شدن مودال */
#download-modal.active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

/* کارت دانلود */
.download-card {
  position: relative;
  width: min(92%, 420px);
  padding: 35px 30px;

  background: radial-gradient(
    circle at top,
    rgba(25, 60, 50, 0.96),
    rgba(10, 20, 18, 0.99)
  );

  border: 1px solid rgba(120, 200, 255, 0.35);
  border-radius: 18px;

  text-align: center;
  color: #eaf6ff;

  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.9),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);

  transform: scale(0.92);
  transition: transform 0.25s ease;
}

#download-modal.active .download-card {
  transform: scale(1);
}

.download-card .close {
  position: absolute;
  top: 10px;
  left: 12px;

  background: none;
  border: none;

  font-size: 1.6rem;
  color: #9fb4aa;
  cursor: pointer;
}

.download-card .close:hover {
  color: #ffffff;
}

.header {
  border-radius: 15px;
  border: 2px solid rgba(120, 200, 255, 0.65);
  color: #eaf6ff;
  background: linear-gradient(
    to bottom,
    #264b73,
    #1b3552
  );
  width: 380px;
  height: 80px;
  text-align: center;
  align-items: center;
  justify-content: center;
  display: flex;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 4px 10px rgba(0, 0, 0, 0.6);
  
}

.sub {
    border-radius: 15px;
  border: 2px solid rgba(120, 200, 255, 0.65);
  color: #eaf6ff;
  background: linear-gradient(
    to bottom,
    #264b73,
    #1b3552
  );
  width: 340px;
  height: 40px;
  text-align: center;
  align-items: center;
  justify-content: center;
  display: flex;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 4px 10px rgba(0, 0, 0, 0.6);
    transform:translateY(-80px);
  
}

/* ====== MOBILE RESPONSIVE – BIGGER ====== */
@media (max-width: 600px) {

  /* Overlay محتوا */
  .overlay {
    max-width: 700px;
    padding: 25px;
  }

  /* لوگو */
  .logo {
    width: clamp(300px, 50vw, 500px);
    transform: translateY(-90px); /* float کمی بالاتر */
  }

  /* عناوین */
  .main-title {
    font-size: clamp(2rem, 9vw, 3rem);
  }

  .main-subtitle {
    font-size: clamp(1rem, 4.5vw, 1.4rem);
  }

  /* دکمه‌ها */
  .buttons {
    gap: 12px;
    max-width: 95%;
    height:auto;
  }

  .btn {
    padding: 15px 35px;
    font-size: clamp(1.5rem, 5vw, 2.0rem);
  }

  /* Footer */
  .footer-inner {
    font-size: clamp(0.8rem, 3vw, 0.9rem);
    padding: 0 12px;
  }

  /* Header */
  .header {
    width: 95%;
    height: 75px;
    font-size: 1rem;
  }

  /* Download modal */
  .download-card {
    width: 95%;
    padding: 30px 25px;
    border-radius: 18px;
    transform: scale(1);
  }
}
