/* ========================
   1. FONTS
   ======================== */

@font-face {
  font-family: 'dillen-b';
  src: url('font/PortadaARA-Semibold.otf') format('truetype');
}

@font-face {
  font-family: 'dillen-c';
  src: url('font/AradVF.ttf') format('truetype');
}

/* ========================
   2. RESET & GLOBAL
   ======================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: dillen-c;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

::-webkit-scrollbar {
  width: 0px;
}

body {
  min-height: 100vh;
  background: radial-gradient(circle at top center, #FFFFFF 0%, #BFBFBF 70%);
}

/* ========================
   3. ANIMATIONS
   ======================== */
@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes txtline {
  0% {
    transform: scale(0.9);
    opacity: 0%;
  }

  100% {
    transform: scale(1.0);
    opacity: 80%;
  }
}

@keyframes mot {
  0% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(100px);
  }

  100% {
    transform: translateX(0);
  }
}

@keyframes mott {
  0% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(-100px);
  }

  100% {
    transform: translateX(0);
  }
}

@keyframes start {
  0% {
    opacity: 0%;
  }

  100% {
    opacity: 100%;
  }
}


/* ========================
   4. SCROLL LOGIC & STAGE
   ======================== */
.scroll-stage {
  position: fixed;
  inset: 0;
  overflow: hidden;
}

.scroll-wrapper {
  position: absolute;
  width: 100%;
  height: 400vh;
}

.scene {
  position: absolute;
  width: 100%;
  height: 100vh;
  top: 0;
  left: 0;
  will-change: transform, opacity;
  opacity: 0;
  transform: scaleX(1.1) scaleY(1.2);
  transition: transform 1s cubic-bezier(.22, .61, .36, 1), opacity 0.5s ease;
  pointer-events: none;
}

.scene.active {
  opacity: 1;
  transform: scaleX(1);
  pointer-events: auto;
}

.scene.behind {
  transform: scaleX(1.1) scaleY(1.2);
}

/* ========================
   5. PAGE BOX & BACKGROUNDS
   ======================== */
.page-box {
  background: radial-gradient(circle at top center, #FFFFFF 0%, #BFBFBF 70%);
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  cursor: url('img/mouse.png'), auto;
  animation: start 0.5s ease-in-out;
}

.page-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("img/noiz-over.jpg");
  opacity: 100%;
  background-size: cover;
  background-position: center;
  z-index: 10;
  mix-blend-mode: screen;
}

/* ========================
   6. COMMON ELEMENTS
   ======================== */
/* Text */
.text {
  position: absolute;
  color: #777;
  font-size: 40px;
  line-height: 80px;
  animation: txtline 1.5s ease-in-out;
}

.text.left {
  top: 15%;
  left: 10%;
  text-align: left;
  opacity: 80%;
}

.text.right {
  bottom: 20%;
  right: 10%;
  text-align: right;
  opacity: 0.8;
}

.xx {
  display: flex;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 11;
  cursor: url('img/link.png'), auto;
  gap: 20px;
}

.z {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

/* Logo & Button */
.logo {
  z-index: 11;
  filter: drop-shadow(#919191 0px 3px 0px);
  cursor: url('img/link.png'), auto;
}

.logo img {
  width: 150px;
}

.bu-start {
  margin-top: 5px;
  font-size: 20px;
  line-height: 20px;
  color: #1D1C1B;
  text-decoration: none;
  z-index: 11;
  width: 150px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: #FECC00;
  border-radius: 15px;
  filter: drop-shadow(#91919160 0px 3px 0px);
  cursor: url('img/link.png'), auto;
}

/* Clouds */
.cloud {
  position: absolute;
  opacity: 0.95;
}

.cloud-1 {
  top: 60px;
  right: -100px;
  width: 700px;
  z-index: 11;
  animation: mot 5s infinite;
  opacity: 0.5;
}

.cloud-2 {
  bottom: 40px;
  left: -60px;
  width: 700px;
  animation: mott 4s infinite;
  opacity: 0.5;
}

.cloud-3 {
  bottom: -30px;
  right: 20px;
  width: 800px;
  animation: mot 6s infinite;
  opacity: 0.5;
}

/* Shapes */
.triangle {
  position: absolute;
  bottom: -150px;
  left: -170px;
  width: 500px;
  animation: rotate 2.5s infinite;
  filter: drop-shadow(#ffa600 0px 0px 150px);
}

.circle {
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  animation: rotate 2.5s infinite;
  filter: drop-shadow(#ffa600 0px 0px 150px);
  z-index: 10;
}

/* ========================
   7. SECTION SPECIFIC
   ======================== */

/* --- Section Two (Dark) --- */
.section-two {
  position: relative;
  height: 100vh;
  background: radial-gradient(circle at top center, #3d3d3d 0%, #1d1d1d 50%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: url('img/mouse-b.png'), auto;
}

.section-two::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("img/noiz-over.jpg");
  opacity: 20%;
  background-size: cover;
  background-position: center;
  z-index: 5;
  mix-blend-mode: screen;
}

/* --- Section Two B (Light) --- */
.section-two-b {
  position: relative;
  height: 100vh;
  background: radial-gradient(circle at top center, #FFFFFF 0%, #BFBFBF 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: url('img/mouse-b.png'), auto;
}

.section-two-b::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("img/noiz-over.jpg");
  opacity: 100%;
  background-size: cover;
  background-position: center;
  z-index: 5;
  mix-blend-mode: screen;
}

/* --- Section Three --- */
.section-three {
  cursor: url('img/mouse-b.png'), auto;
  position: relative;
  height: 100vh;
  background: radial-gradient(circle at top center, #ffffff 0%, #d1d1d1 70%);
  overflow: hidden;
}

.section-three::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("img/bac-3.jpg");
  opacity: 30%;
  background-size: cover;
  background-position: center;
  z-index: 1;
}

/* AB Box (Profile) */
.ab {
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 15;
}

.ab-box {
  width: 90%;
  max-width: 1080px;
}

.cv-text {
  width: 100%;
  text-align: center;
}

.cv-text p {
  color: #a18100;
  padding-top: 10px;
  font-size: 30px;
  line-height: 40px;
  filter: drop-shadow(#FECC00 0px 0px 25px);
}

.sir-photo {
  object-fit: cover;
  width: 100%;
  border-radius: 15px;
  filter: drop-shadow(#919191 0px 3px 0px);
}

/* Stars */
.star {
  position: absolute;
  width: 400px;
  opacity: 0.8;
  animation: rotate 2.5s infinite;
  filter: drop-shadow(#027AFD 0px 0px 150px);
}

.star-left {
  top: -150px;
  left: -150px;
  animation: rotate 2.5s infinite;
}

.star-right {
  bottom: -150px;
  right: -150px;
  z-index: 13;
}

.star-blue {
  position: absolute;
  width: 350px;
  opacity: 0.9;
  animation: rotate 2.5s infinite;
  filter: drop-shadow(#0D8BE8 0px 0px 150px);
  z-index: 2;
}

.star-tl {
  top: -120px;
  left: -120px;
}

.star-br {
  bottom: -120px;
  right: -120px;
}

/* Cards */
.cards {
  display: flex;
  gap: 60px;
  z-index: 5;
}

.card {
  width: 25vh;
  background: linear-gradient(180deg, #242a33, #1b1f26);
  border-radius: 15px;
  background-size: cover;
  box-shadow: #00000080 0px 0px 50px;
  transition: 0.4s ease;
  cursor: url('img/link.png'), auto;
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.card:hover {
  transform: translateY(-20px) scale(1.03);
}

.cardmob {
  position: absolute;
  width: 0px;
  height: 0px;
}

.cardmob p {
  font-size: 0px;
  line-height: 0px;
}

/* Bottom Circles */
.bottom-circle {
  position: absolute;
  bottom: -90%;
  width: 1200px;
  opacity: 0.2;
  filter: drop-shadow(#027AFD 0px 0px 150px);
}

.bottom-circle-b {
  position: absolute;
  top: 90%;
  width: 1200px;
  opacity: 1.0;
  filter: drop-shadow(#027AFD 0px 0px 150px);
  z-index: 15;
}

/* UI Text & Mockups */
.ui-text {
  position: absolute;
  bottom: 10%;
  text-align: center;
  width: 100%;
  z-index: 20;
}

.ui-text p {
  font-size: 50px;
  line-height: 50px;
  color: #000000;
}

.ui-text-b {
  position: absolute;
  top: 50px;
  text-align: center;
  width: 100%;
  z-index: 20;
}

.ui-text-b p {
  font-size: 30px;
  line-height: 30px;
  color: #ffffff;
}

.ui-mockup {
  position: absolute;
  margin-top: 30px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 520px;
  height: 620px;
  z-index: 10;
}

.ui {
  position: absolute;
  width: 100%;
  border-radius: 15px;
}

.ui.back {
  transform: translate(0px, 0px) scale(1.0);
  opacity: 1.0;
  filter: drop-shadow(#00000020 3px 3px 20px);
}

.ui.front {
  transform: translate(-120px, 60px) scale(0.7);
  filter: drop-shadow(#00000020 3px 3px 20px);
  z-index: 2;
}

.rail-pro {
  display: flex;
  gap: 15px;
}

/* ========================
   8. MEDIA QUERIES (MOBILE)
   ======================== */
@media (max-width: 758px) {


  .rail-pro {
    display: block;
    width: 100%;
    border-radius: 15px;
  }


  /* Shapes */
  .triangle {
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 250px;
    filter: drop-shadow(#ffa600 0px 0px 150px);
  }

  .circle {
    position: absolute;
    top: -100px;
    right: -100px;
    width: 250px;
    filter: drop-shadow(#ffa600 0px 0px 150px);
    z-index: 10;
  }

  /* Clouds (No animation on mobile) */
  .cloud-1 {
    top: 60px;
    right: -100px;
    width: 400px;
    z-index: 11;
    animation: none;
    opacity: 0.5;
  }

  .cloud-2 {
    bottom: 140px;
    left: -160px;
    width: 400px;
    animation: none;
    opacity: 0.5;
  }

  .cloud-3 {
    bottom: -30px;
    right: -120px;
    width: 400px;
    animation: none;
    opacity: 0.5;
  }

  /* Text Positioning */
  .text {
    position: absolute;
    color: #777;
    font-size: 25px;
    line-height: 50px;
    animation: txtline 1.5s ease-in-out;
    animation: none;
  }

  .text.left {
    top: 20%;
    left: 10%;
    text-align: left;
    opacity: 80%;
  }

  .text.right {
    bottom: 20%;
    right: 10%;
    text-align: right;
    opacity: 0.8;
  }

  .ui-text-b {
    position: absolute;
    top: 30%;
    text-align: center;
    width: 100%;
    z-index: 20;
  }

  .ui-text-b p {
    font-size: 0px;
    line-height: 0px;
  }

  /* Cards Mobile */
  .cards {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    z-index: 5;
  }

  .card {
    margin-left: auto;
    margin-right: auto;
    width: 20vh;
    background: linear-gradient(180deg, #242a33, #1b1f26);
    border-radius: 15px;
    background-size: cover;
    box-shadow: #00000080 0px 0px 50px;
    transition: 0.4s ease;
    cursor: url('img/link.png'), auto;
  }

  .cardmob {
    position: unset;
    margin-left: auto;
    margin-right: auto;
    width: 20vh;
    background: linear-gradient(180deg, #242a33, #1b1f26);
    border-radius: 15px;
    background-size: cover;
    box-shadow: #00000080 0px 0px 50px;
  }

  .cardmob p {
    margin-top: 40%;
    color: #ffffff;
    font-size: 1.7rem;
    line-height: 1.9rem;
    text-align: right;
    text-shadow: #ffffff 0px 0px 20px;
  }

  /* Circles Mobile */
  .bottom-circle {
    width: 250vw;
    animation: normal;
    bottom: -60%;
  }

  .bottom-circle-b {
    width: 0vw;
    bottom: -95%;
  }

  /* UI Mockup Mobile */
  .ui-mockup {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    z-index: 10;
  }

  .ui {
    position: absolute;
    width: 100%;
    border-radius: 15px;
  }

  .ui.back {
    transform: translate(0px, 0px) scale(1.0);
    opacity: 1.0;
    filter: drop-shadow(#00000020 3px 3px 20px);
  }

  .ui.front {
    transform: translate(-50px, 50px) scale(0.7);
    filter: drop-shadow(#00000020 3px 3px 20px);
    z-index: 2;
  }

  .ui-text {
    position: absolute;
    bottom: 25%;
    text-align: center;
    width: 100%;
    z-index: 20;
  }

  .ui-text p {
    font-size: 30px;
    line-height: 30px;
    color: #000000;
  }

  .sir-photo {
    height: 30vh;
    background-size: cover;
    border-radius: 15px;
    filter: drop-shadow(#919191 0px 3px 0px);
  }

  .star {
    animation: none;
  }

  .star-blue {
    animation: none;
  }
}


/* ========================
   SCENE ANIMATION CONTROL
   ======================== */

/* پیش‌فرض: همه انیمیشن‌ها خاموش */
.scene * {
  animation-play-state: paused !important;
  transition: none !important;
}

/* فقط وقتی صفحه active شد */
.scene.active * {
  animation-play-state: running !important;
  transition: inherit !important;
}

/* جلوگیری از hover قبل از فعال شدن */
.scene:not(.active) {
  pointer-events: none;
}

.scene.active {
  pointer-events: auto;
}




.pro-pla-one {
  margin-top: 15px;
  box-shadow: inset #FFFFFF90 0px 5px 5px;
  width: 300px;
  border-radius: 25px;
  flex-shrink: 0;
}

.pro-pla-one-top {
  padding: 15px;
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
}

.pro-pla-one-top img {
  width: 70px;
  height: 70px;
}

.pro-pla-one-top p {
  margin-left: auto;
  font-size: 25px;
  line-height: 25px;
  font-family: dillen-c;
  font-weight: bold;
}

.box-pla-one {
  padding: 15px;
  background-color: #202020d3;
  border-radius: 5px 5px 25px 25px;
}

.box-pla-one p {
  color: #ffffff;
  font-size: 15px;
  line-height: 20px;
  font-family: dillen-c;
  font-weight: bold;
}

.buy-pla-pro {
  margin-top: 15px;
  box-shadow: inset #FFFFFF30 3px 3px 3px;
  background-color: #337740;
  border-radius: 100px;
  height: 50px;
  color: #C1FFD7;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: url('img/link.png'), auto;
}

.title-txt {
  font-size: 35px;
  line-height: 35px;
  width: 100%;
  text-align: center;
  padding-bottom: 15px;
  color: #473a00;
  text-shadow: #ecdc00 0px 2px 0px;
  font-family: dillen-c;
  font-weight: bold;
  filter: drop-shadow(#ecc800 0px 0px 40px);
}

.xxz {
  display: flex;
  align-items: center;
  justify-content: right;
  width: 100%;
}
.loading{
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1001;
}
.lodd svg{
    animation: start 0.5s ease-in-out;
}
.lodd{
    background: linear-gradient(#191c20, #191c2050, #191c20);
    backdrop-filter: blur(50px);
    width: 100%;
    height: 100vh;
    animation: start 0.5s ease-in-out;
}

.xxz p {
  padding-top: 2px;
  padding-right: 5px;
}

.xxz img {
  width: 25px;
}

.linka-enmad {
  width: auto;
  height: 615px;
  height: 100px;
  backdrop-filter: blur(30px);
  background-color: #00000050;
  margin-top: 15px;
  border-radius: 15px;
}