@font-face {
  font-family: 'Plasma';
  src: url('fonts/Plasma.ttf') format('truetype');
}

@font-face {
  font-family: 'Hasti';
  src: url('fonts/Hasti.ttf') format('truetype');
}

@font-face {
  font-family: 'Gofteh';
  src: url('fonts/Gofteh.ttf') format('truetype');
}

@font-face {
  font-family: 'Pelak';
  src: url('fonts/Pelak-ExtraBold.ttf') format('truetype');
  font-weight: 800;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  background-color: #0c1410;
  overflow-x: hidden;
  overflow-y: auto !important;
}

body.modal-open {
  overflow: hidden !important;
}

.scroll-track {
  width: 100%;
  height: 10500px;
  pointer-events: none;
  background: transparent;
}

.viewport-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  pointer-events: none;
  z-index: 10;
}

.bg-base {
  position: absolute;
  inset: 0;
  background-color: #0c1410;
  z-index: 1;
}

.shapes-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image: url('images/path.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0.85;
  mix-blend-mode: screen;
  transition: opacity 0.85s ease, filter 0.85s ease;
}

.hero-triangles-glow {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: radial-gradient(circle 380px at 20% 20%, rgba(70, 172, 194, 0.45) 0%, transparent 70%),
              radial-gradient(circle 440px at 80% 30%, rgba(79, 141, 108, 0.4) 0%, transparent 70%),
              radial-gradient(circle 350px at 50% 85%, rgba(70, 172, 194, 0.35) 0%, transparent 70%);
  mix-blend-mode: screen;
  filter: blur(40px);
  opacity: 0.85;
  animation: heroTrianglesLightSweep 7s ease-in-out infinite alternate;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

@keyframes heroTrianglesLightSweep {
  0% { transform: scale(0.95) rotate(0deg); opacity: 0.5; }
  50% { transform: scale(1.08) rotate(3deg); opacity: 0.95; filter: blur(30px); }
  100% { transform: scale(1.02) rotate(-3deg); opacity: 0.65; }
}

.hero-triangles-glow.scrolled {
  opacity: 0 !important;
}

.shapes-layer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 15% 25%, rgba(70, 172, 194, 0.55) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 35%, rgba(24, 47, 28, 0.85) 0%, transparent 60%),
    radial-gradient(circle at 50% 65%, rgba(70, 172, 194, 0.4) 0%, transparent 65%),
    radial-gradient(circle at 75% 85%, rgba(47, 107, 79, 0.5) 0%, transparent 55%);
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.85s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}

.shapes-layer::after {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 18% 28%, rgba(40, 169, 146, 0.65) 0%, transparent 50%),
    radial-gradient(circle at 82% 25%, rgba(190, 211, 194, 0.55) 0%, transparent 45%),
    radial-gradient(ellipse at 50% 80%, rgba(40, 169, 146, 0.5) 0%, transparent 55%),
    radial-gradient(circle at 85% 75%, rgba(190, 211, 194, 0.45) 0%, transparent 50%);
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.85s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}

.shapes-layer.step1-active::before { opacity: 1; }
.shapes-layer.step2-active::after { opacity: 1; }
.shapes-layer.step-final-active {
  filter: hue-rotate(45deg) saturate(1.8) brightness(1.2);
  opacity: 0.95;
}

.glow-flicker {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(70, 172, 194, 0.12) 0%, rgba(24, 47, 28, 0.2) 35%, transparent 65%);
  z-index: 3;
  animation: subtleFlicker 3s infinite ease-in-out;
  transition: opacity 0.4s ease;
}

.glow-flicker.scrolled {
  opacity: 0 !important;
  animation-play-state: paused;
}

@keyframes subtleFlicker {
  0%, 100% { opacity: 0.7; }
  30% { opacity: 0.25; }
  50% { opacity: 0.8; }
  75% { opacity: 0.35; }
}

.blur-overlay {
  position: absolute;
  inset: 0;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  z-index: 4;
}

/* هیرو */
.hero-screen {
  position: absolute;
  inset: 0;
  z-index: 15;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.3s ease, transform 0.3s ease;
  padding: 0 20px;
}

.hero-titles {
  text-align: center;
}

.main-title {
  font-family: 'Plasma', sans-serif;
  font-size: clamp(54px, 11vw, 125px);
  color: #4f8d6c;
  line-height: 1.1;
}

.sub-title {
  font-family: 'Hasti', sans-serif;
  font-size: clamp(22px, 4.5vw, 50px);
  color: #ffffff;
  margin-top: 10px;
}

/* ویجت اسکرول و متن «شروع کنید» اختصاصی هیرو */
.scroll-widget-container {
  position: fixed !important;
  bottom: 26px !important;
  left: 50% !important;
  transform: translate(-50%, 10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 99 !important;
  transition: opacity 0.65s cubic-bezier(0.25, 1, 0.5, 1), transform 0.65s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.65s ease;
}

.scroll-widget-container.visible {
  opacity: 1 !important;
  visibility: visible;
  transform: translate(-50%, 0);
}

.scroll-start-text {
  display: none;
  font-family: 'Pelak', sans-serif;
  font-weight: 800;
  font-size: 13px;
  color: #ffffff;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  opacity: 0;
}

.scroll-widget-container.hero-mode .scroll-start-text {
  display: block;
  animation: startPulseFade 2.2s ease-in-out infinite alternate 0.5s;
}

@keyframes startPulseFade {
  0%   { opacity: 0.25; }
  100% { opacity: 1; }
}

.scroll-icon-wrapper {
  width: 46px;
  height: 46px;
}

.scroll-chevron-widget {
  width: 100%;
  height: 100%;
  display: block;
}

.scroll-widget-container.visible .scroll-icon-wrapper {
  animation: smoothFloatingBounce 2.2s ease-in-out infinite alternate;
}

@keyframes smoothFloatingBounce {
  0%   { transform: translateY(0px); }
  50%  { transform: translateY(8px); }
  100% { transform: translateY(0px); }
}

/* تایم‌لاین دسکتاپ */
.timeline-line {
  position: absolute;
  right: 5%;
  top: 15vh;
  height: 70vh;
  width: 2px;
  background-color: rgba(255, 255, 255, 0.85);
  z-index: 20;
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* مراحل */
.steps-wrapper {
  position: absolute;
  right: calc(5% + 24px);
  top: 0;
  width: auto;
  height: 100vh;
  z-index: 25;
}

.step-row {
  position: absolute;
  right: 0;
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  font-family: 'Gofteh', sans-serif;
  font-size: clamp(18px, 3.2vw, 32px);
  color: #ffffff;
  opacity: 0;
  white-space: nowrap;
  transition: top 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.5s ease, transform 0.6s ease;
}

.step-text {
  white-space: nowrap;
  line-height: 1;
}

.step-badge {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  line-height: 1;
  background-color: #0c1410;
  flex-shrink: 0;
}

.step-row.pos-down-hidden {
  top: 65vh;
  opacity: 0;
  transform: translateY(30px);
}

.step-row.pos-active {
  top: 50vh;
  opacity: 1;
  transform: translateY(-50%);
}

.step-row.pos-faded-up {
  top: 32vh;
  opacity: 0.35;
  transform: translateY(-50%);
}

.step-row.pos-up-hidden {
  top: 15vh;
  opacity: 0;
  transform: translateY(-30px);
}

/* مرحله ۱: لوگوها */
.step1-showcase {
  position: absolute;
  left: calc(7% + 50px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 25;
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.step1-showcase.active {
  opacity: 1;
}

.rotating-border-box {
  position: relative;
  border-radius: 42px;
  padding: 2.5px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.65);
}

.rotating-border-light {
  position: absolute;
  inset: -100%;
  background: conic-gradient(
    from 0deg,
    transparent 0%,
    rgba(255, 255, 255, 0.1) 40%,
    #ffffff 50%,
    rgba(255, 255, 255, 0.1) 60%,
    transparent 100%
  );
  animation: rotateLightLoop 4.5s linear infinite;
}

@keyframes rotateLightLoop {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.showcase-glass {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-evenly;
  gap: 50px;
  padding: 40px 60px;
  min-width: 850px;
  height: 190px;
  border-radius: 40px;
  background: radial-gradient(135% 100% at 10% 10%, rgba(20, 30, 25, 0.88) 0%, rgba(8, 14, 11, 0.95) 100%);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
}

.showcase-logo-item {
  width: 180px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.showcase-logo-img {
  max-width: 100%;
  max-height: 85px;
  object-fit: contain;
  opacity: 0;
  transform: translateY(18px) scale(0.88);
  filter: brightness(1.25) contrast(1.1);
  transition: opacity 0.7s cubic-bezier(0.25, 1, 0.5, 1), transform 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}

.showcase-logo-img.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* مرحله ۲: کاورها */
.step2-showcase {
  position: absolute;
  left: calc(7% + 30px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 25;
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.step2-showcase.active {
  opacity: 1;
}

.step2-glow {
  position: absolute;
  inset: -45px -60px;
  background: radial-gradient(ellipse at 50% 50%, rgba(40, 169, 146, 0.45) 0%, rgba(190, 211, 194, 0.18) 55%, transparent 75%);
  z-index: 1;
  border-radius: 60px;
  filter: blur(35px);
  opacity: 0;
  transition: opacity 0.6s ease;
}

.step2-showcase.active .step2-glow {
  opacity: 1;
  animation: coverGlowFlicker 6s infinite ease-in-out;
}

@keyframes coverGlowFlicker {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  30%      { opacity: 0.45; transform: scale(0.98); }
  55%      { opacity: 0.95; transform: scale(1.02); }
  80%      { opacity: 0.5;  transform: scale(0.99); }
}

.covers-grid {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 26px;
}

.cover-card-wrapper {
  position: relative;
  border-radius: 28px;
  padding: 2.5px;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(30px) scale(0.92);
  transition: opacity 0.7s cubic-bezier(0.25, 1, 0.5, 1), transform 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}

.cover-card-wrapper.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.cover-card-light {
  position: absolute;
  inset: -120%;
  background: conic-gradient(
    from 0deg,
    transparent 0%,
    rgba(255, 255, 255, 0.1) 40%,
    rgba(255, 255, 255, 0.95) 50%,
    rgba(255, 255, 255, 0.1) 60%,
    transparent 100%
  );
  animation: rotateLightLoop 4s linear infinite;
}

.cover-glass-card {
  position: relative;
  z-index: 2;
  padding: 12px;
  border-radius: 26px;
  background: radial-gradient(135% 100% at 10% 10%, rgba(190, 211, 194, 0.18) 0%, rgba(20, 35, 28, 0.92) 100%);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
}

.cover-img-wrapper {
  width: 250px;
  height: 320px;
  border-radius: 16px;
  overflow: hidden;
  background-color: #080f0c;
}

.showcase-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* مرحله ۳: اینستاگرام */
.step3-showcase {
  position: absolute;
  left: calc(7% + 30px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 25;
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.step3-showcase.active {
  opacity: 1;
}

.step3-flex-container {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 28px;
}

.insta-showcase-glass {
  position: relative;
  z-index: 2;
  padding: 30px 34px;
  border-radius: 36px;
  background: radial-gradient(135% 100% at 10% 10%, rgba(255, 255, 255, 0.1) 0%, rgba(12, 24, 18, 0.85) 100%);
  backdrop-filter: blur(26px) saturate(170%);
  -webkit-backdrop-filter: blur(26px) saturate(170%);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  box-shadow: 
    0 35px 70px rgba(0, 0, 0, 0.6),
    inset 0 1px 2px rgba(255, 255, 255, 0.25);
  transform: scale(0.9) translateY(24px);
  opacity: 0;
  transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.step3-showcase.active .insta-showcase-glass {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.insta-grid {
  display: grid;
  grid-template-columns: repeat(3, 110px);
  gap: 18px;
  align-items: center;
  justify-content: center;
}

.insta-logo-card {
  width: 110px;
  height: 110px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.15);
  opacity: 0;
  transform: scale(0.85) translateY(18px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.insta-logo-card.show {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.insta-grid-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 14px;
}

.insta-standalone-glass {
  position: relative;
  z-index: 2;
  width: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 36px;
  background: radial-gradient(135% 100% at 10% 10%, rgba(255, 255, 255, 0.12) 0%, rgba(12, 24, 18, 0.88) 100%);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  box-shadow: 
    0 35px 70px rgba(0, 0, 0, 0.6),
    inset 0 1px 2px rgba(255, 255, 255, 0.3),
    0 0 45px rgba(220, 39, 67, 0.22);
  transform: scale(0.88) translateY(24px);
  opacity: 0;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.18s, opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.18s;
}

.step3-showcase.active .insta-standalone-glass {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.insta-animated-badge {
  position: relative;
  width: 140px;
  height: 140px;
  border-radius: 36px;
  overflow: hidden;
  padding: 3.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.insta-glow-spinner {
  position: absolute;
  inset: -60%;
  background: conic-gradient(
    from 0deg,
    #f09433,
    #e6683c,
    #dc2743,
    #cc2366,
    #bc1888,
    #f09433
  );
  animation: rotateGlowDoubleSpeed 1.7s linear infinite;
  border-radius: 40%;
  filter: blur(4px);
}

@keyframes rotateGlowDoubleSpeed {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.insta-icon-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  border-radius: 32px;
  background: #08100c;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* مرحله ۴: طراحی وبسایت */
.step4-showcase {
  position: absolute;
  left: calc(7% + 80px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 25;
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.step4-showcase.active {
  opacity: 1;
}

.web-showcase-glass {
  width: 320px;
  height: 320px;
  border-radius: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(135% 100% at 10% 10%, rgba(255, 255, 255, 0.12) 0%, rgba(14, 26, 20, 0.8) 100%);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  box-shadow: 
    0 35px 70px rgba(0, 0, 0, 0.6),
    inset 0 1px 2px rgba(255, 255, 255, 0.35),
    0 0 50px rgba(70, 172, 194, 0.2);
  transform: scale(0.9) translateY(20px);
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.step4-showcase.active .web-showcase-glass {
  transform: scale(1) translateY(0);
}

.web-icon-img {
  width: 170px;
  height: auto;
  filter: brightness(0) invert(1) drop-shadow(0 0 25px rgba(255, 255, 255, 0.75));
  animation: webFloatAnim 4s ease-in-out infinite alternate;
}

@keyframes webFloatAnim {
  0%   { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-16px) rotate(2.5deg); }
}

/* صفحه ۵: تایپوگرافی */
.final-screen {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s cubic-bezier(0.25, 1, 0.5, 1), transform 0.7s cubic-bezier(0.25, 1, 0.5, 1);
  transform: scale(1);
  padding: 0 20px;
}

.final-screen.active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.final-screen.fading-out {
  opacity: 0;
  transform: scale(0.96) translateY(-20px);
  pointer-events: none;
}

.final-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 70px;
}

.final-icons {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 38px 26px;
  border-radius: 34px;
  background: radial-gradient(135% 100% at 10% 10%, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.03) 100%);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  box-shadow: 
    0 30px 60px rgba(0, 0, 0, 0.45),
    inset 0 1px 2px rgba(255, 255, 255, 0.3),
    0 0 40px rgba(79, 141, 108, 0.15);
  opacity: 0;
  transform: scale(0.85) translateY(24px);
  transition: opacity 0.75s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.75s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.final-screen.active .final-icons {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.ico-item-wrap {
  width: 74px;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.final-ico {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transform: translateY(18px) scale(0.85);
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.final-ico.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.final-typography {
  display: flex;
  flex-direction: column;
  font-family: 'Gofteh', sans-serif;
  font-size: clamp(38px, 6.5vw, 84px);
  line-height: 1.35;
  text-align: right;
}

.type-line {
  min-height: 1.35em;
  white-space: nowrap;
  margin-bottom: 6px;
}

.color-white { color: #ffffff; }
.color-mint  { color: #cbe665; }
.color-green { color: #6db638; }

.cursor {
  display: inline-block;
  width: 4px;
  height: 0.85em;
  background-color: currentColor;
  margin-right: 6px;
  vertical-align: middle;
  animation: blink 0.8s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* =============================================================
   بخش ۶: صفحه نهایی تماس با دو دکمه
============================================================= */
.contact-screen {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.75s cubic-bezier(0.25, 1, 0.5, 1);
  padding: 0 24px;
}

.contact-screen.active {
  opacity: 1;
  pointer-events: auto;
}

.contact-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  max-width: 1000px;
}

.contact-headline {
  font-family: 'Hasti', sans-serif;
  font-size: clamp(40px, 6.5vw, 76px);
  color: #ffffff;
  margin-bottom: 24px;
  line-height: 1.2;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.75s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.contact-screen.active .contact-headline {
  opacity: 1;
  transform: translateY(0);
}

.contact-actions-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
}

.collab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Pelak', sans-serif;
  font-weight: 800;
  border-radius: 9999px;
  text-decoration: none;
  cursor: pointer;
  pointer-events: auto;
  opacity: 0;
  transform: translateY(28px);
  transition: 
    background-color 0.35s ease, 
    color 0.35s ease, 
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    opacity 0.75s cubic-bezier(0.2, 0.8, 0.2, 1) 0.15s,
    transform 0.75s cubic-bezier(0.2, 0.8, 0.2, 1) 0.15s;
}

.contact-screen.active .collab-btn {
  opacity: 1;
  transform: translateY(0);
}

.collab-btn-green {
  font-size: clamp(16px, 2.2vw, 23px);
  color: #ffffff;
  background-color: #4f8d6c;
  border: 2px solid #4f8d6c;
  padding: 15px 42px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
}

.collab-btn-green:hover {
  background-color: transparent;
  color: #4f8d6c;
  border-color: #4f8d6c;
  box-shadow: 0 0 25px rgba(79, 141, 108, 0.35), inset 0 0 15px rgba(79, 141, 108, 0.12);
}

.pricing-btn-white {
  font-size: clamp(14px, 1.8vw, 18px);
  color: #0c1410;
  background-color: #ffffff;
  border: 2px solid #ffffff;
  padding: 11px 34px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.pricing-btn-white:hover {
  background-color: transparent;
  color: #ffffff;
  border-color: #ffffff;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.3), inset 0 0 15px rgba(255, 255, 255, 0.1);
}

.contact-cards-grid {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: center;
  gap: 22px;
  margin-top: 65px;
  width: 100%;
}

.contact-glass-card {
  flex: 1;
  max-width: 290px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px 20px;
  text-decoration: none;
  border-radius: 28px;
  background: radial-gradient(135% 100% at 10% 10%, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.03) 100%);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  box-shadow: 
    0 24px 48px rgba(0, 0, 0, 0.45),
    inset 0 1px 2px rgba(255, 255, 255, 0.3),
    inset 0 -1px 2px rgba(0, 0, 0, 0.3),
    0 0 35px rgba(70, 172, 194, 0.12);
  cursor: pointer;
  pointer-events: auto;
  opacity: 0;
  transform: translateY(30px) scale(0.92);
  transition: 
    transform 0.4s ease, 
    border-color 0.4s ease, 
    box-shadow 0.4s ease,
    opacity 0.75s cubic-bezier(0.25, 1, 0.5, 1);
}

.contact-glass-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 
    0 30px 60px rgba(0, 0, 0, 0.55),
    0 0 30px rgba(70, 172, 194, 0.25);
}

.contact-glass-card.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.contact-glass-card.show:hover {
  transform: translateY(-6px) scale(1.02);
}

.contact-ico-wrap {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-ico-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1) drop-shadow(0 4px 10px rgba(255, 255, 255, 0.35));
  transition: transform 0.3s ease;
}

.contact-glass-card:hover .contact-ico-img {
  transform: scale(1.1);
}

.contact-value {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: clamp(13px, 1.2vw, 15px);
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.3px;
  word-break: break-all;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* =============================================================
   بخش مدال‌ها (فرم همکاری و جدول نرخ‌نامه)
============================================================= */
.form-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(12, 20, 16, 0.88);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  overflow-y: auto;
  padding: 30px 16px;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.form-modal-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-bg-shapes {
  position: absolute;
  inset: 0;
  background-image: url('images/path.png');
  background-size: cover;
  background-position: center;
  opacity: 0.75;
  mix-blend-mode: screen;
  pointer-events: none;
}

.modal-blur-layer {
  position: absolute;
  inset: 0;
  backdrop-filter: blur(17px);
  -webkit-backdrop-filter: blur(17px);
  pointer-events: none;
}

.form-modal-window,
.pricing-modal-window {
  position: relative;
  z-index: 2;
  width: 100%;
  background: radial-gradient(135% 100% at 10% 10%, rgba(255, 255, 255, 0.12) 0%, rgba(20, 32, 24, 0.8) 100%);
  backdrop-filter: blur(28px) saturate(170%);
  -webkit-backdrop-filter: blur(28px) saturate(170%);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 36px;
  box-shadow: 
    0 35px 70px rgba(0, 0, 0, 0.65),
    inset 0 1px 2px rgba(255, 255, 255, 0.35),
    inset 0 -1px 2px rgba(0, 0, 0, 0.35),
    0 0 50px rgba(70, 172, 194, 0.18);
  transform: translateY(35px) scale(0.94);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.form-modal-window {
  max-width: 620px;
  padding: 44px 38px 36px;
}

.pricing-modal-window {
  max-width: 820px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  padding: 38px 34px 28px;
}

.form-modal-overlay.open .form-modal-window,
.form-modal-overlay.open .pricing-modal-window {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 22px;
  left: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

/* استایل‌های فرم مدال */
.form-header {
  text-align: center;
  margin-bottom: 26px;
}

.form-title {
  font-family: 'Hasti', sans-serif;
  font-size: clamp(26px, 3.5vw, 36px);
  color: #ffffff;
  margin-bottom: 8px;
}

.form-subtitle {
  font-family: 'Gofteh', sans-serif;
  font-size: clamp(14px, 1.6vw, 17px);
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.4;
}

.form-group-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
  padding: 12px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.15);
  transition: border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group-card:focus-within {
  border-color: rgba(70, 172, 194, 0.75);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 20px rgba(70, 172, 194, 0.25), inset 0 1px 2px rgba(255, 255, 255, 0.25);
}

.form-group-card label {
  font-family: 'Gofteh', sans-serif;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
}

.form-group-card input,
.form-group-card textarea {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 15px;
  color: #ffffff;
  resize: none;
}

.form-group-card input::placeholder,
.form-group-card textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
  font-size: 14px;
}

.form-status-msg {
  min-height: 24px;
  font-family: 'Gofteh', sans-serif;
  font-size: 14px;
  text-align: center;
  margin-bottom: 12px;
  transition: opacity 0.3s ease;
}

.form-status-msg.error {
  color: #ff6b6b;
}

.form-submit-btn {
  width: 100%;
  padding: 15px 24px;
  font-family: 'Pelak', sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: #0c1410;
  background-color: #ffffff;
  border: 2px solid #ffffff;
  border-radius: 9999px;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
  transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.form-submit-btn:hover {
  background-color: transparent;
  color: #ffffff;
  border-color: #ffffff;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.3), inset 0 0 15px rgba(255, 255, 255, 0.1);
}

.form-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-success-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 50px 20px;
  text-align: center;
  animation: modalFadeIn 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.form-success-text {
  font-family: 'Hasti', sans-serif;
  font-size: clamp(34px, 5.5vw, 54px);
  color: #ffffff;
  text-shadow: 0 0 25px rgba(70, 172, 194, 0.6);
  line-height: 1.4;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1); }
}

/* استایل‌های جدول نرخ‌نامه */
.pricing-header {
  text-align: center;
  margin-bottom: 22px;
}

.pricing-main-title {
  font-family: 'Hasti', sans-serif;
  font-size: clamp(26px, 3.6vw, 36px);
  color: #ffffff;
  margin: 0;
  line-height: 1.3;
}

.pricing-scroll-area {
  overflow-y: auto;
  padding-right: 6px;
  flex: 1;
}

.pricing-scroll-area::-webkit-scrollbar {
  width: 5px;
}

.pricing-scroll-area::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.pricing-scroll-area::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 4px;
}

.pricing-category-block {
  margin-bottom: 24px;
}

.category-header-title {
  font-family: 'Pelak', sans-serif;
  font-weight: 800;
  font-size: 16px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 9px 18px;
  margin-bottom: 12px;
  border-right: 4px solid #4f8d6c;
}

.pricing-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-family: 'Gofteh', sans-serif;
  font-size: 14.5px;
}

.col-service {
  width: 50%;
  text-align: right;
}

.col-time {
  width: 25%;
  text-align: center;
}

.col-price {
  width: 25%;
  text-align: center;
}

.pricing-table th {
  color: rgba(255, 255, 255, 0.5);
  font-weight: 400;
  font-size: 13px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.pricing-table td {
  color: #ffffff;
  padding: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: middle;
}

.pricing-table td:nth-child(1) {
  text-align: right;
}

.pricing-table td:nth-child(2) {
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
}

.pricing-table td:nth-child(3) {
  text-align: center;
  font-weight: 600;
}

.pricing-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.04);
}

.pricing-table strong {
  display: block;
  font-weight: 600;
}

.pricing-table .sub-desc {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 3px;
  line-height: 1.4;
}

.inquiry-text-highlight {
  color: #cbe665;
  font-family: 'Pelak', sans-serif;
  font-weight: 800;
  letter-spacing: 0.3px;
}

/* ریسپانسیو تبلت */
@media (max-width: 1200px) {
  .step1-showcase, .step2-showcase, .step3-showcase, .step4-showcase {
    left: 4%;
  }
  .showcase-glass {
    min-width: 650px;
    gap: 30px;
    padding: 25px 35px;
  }
  .showcase-logo-item {
    width: 140px;
    height: 75px;
  }
  .cover-img-wrapper {
    width: 190px;
    height: 250px;
  }
  .contact-cards-grid {
    gap: 16px;
    margin-top: 50px;
  }
  .contact-glass-card {
    padding: 20px 14px;
  }
}

/* ریسپانسیو موبایل */
@media (max-width: 768px) {
  .scroll-track {
    height: 7200px;
  }
  
  .timeline-line {
    right: 18px;
    top: 14vh;
    height: 72vh;
    width: 2px;
  }
  
  .steps-wrapper {
    right: 28px;
    left: 16px;
    height: 100vh;
  }
  
  .step-row {
    gap: 10px;
    font-size: 15px;
    right: 0;
  }
  
  .step-badge {
    width: 38px;
    height: 38px;
    font-size: 17px;
    border-width: 1.5px;
  }

  .step-row.pos-down-hidden {
    top: 36vh;
    opacity: 0;
    transform: translateY(20px);
  }

  .step-row.pos-active {
    top: 23vh;
    opacity: 1;
    transform: translateY(-50%);
  }

  .step-row.pos-faded-up {
    top: 14vh;
    opacity: 0.28;
    transform: translateY(-50%);
  }

  .step-row.pos-up-hidden {
    top: 6vh;
    opacity: 0;
    transform: translateY(-20px);
  }

  .step1-showcase,
  .step2-showcase,
  .step3-showcase,
  .step4-showcase {
    left: calc((100vw - 36px) / 2) !important;
    top: 64vh !important;
    transform: translate(-50%, -50%) !important;
    width: calc(100vw - 64px);
    max-width: 340px;
  }

  .rotating-border-box {
    border-radius: 26px;
    width: 100%;
  }

  .showcase-glass {
    min-width: unset;
    width: 100%;
    height: 95px;
    padding: 10px 14px;
    gap: 10px;
    border-radius: 24px;
    justify-content: space-between;
  }

  .showcase-logo-item {
    width: 31%;
    height: 100%;
  }

  .showcase-logo-img {
    max-width: 100%;
    max-height: 44px;
  }

  .covers-grid {
    gap: 6px;
    width: 100%;
    justify-content: center;
  }

  .step2-glow {
    inset: -12px;
    filter: blur(18px);
  }

  .cover-card-wrapper {
    flex: 1;
    max-width: 32%;
    border-radius: 16px;
    padding: 1.5px;
  }

  .cover-glass-card {
    padding: 3px;
    border-radius: 14px;
  }

  .cover-img-wrapper {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4.2;
    border-radius: 12px;
  }

  .step3-flex-container {
    flex-direction: column-reverse !important;
    align-items: center;
    gap: 12px;
    width: 100%;
  }

  .insta-showcase-glass {
    width: 100%;
    padding: 12px;
    border-radius: 22px;
    transform: scale(1);
  }

  .insta-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .insta-logo-card {
    width: 100%;
    height: 64px;
    border-radius: 14px;
    padding: 6px;
  }

  .insta-standalone-glass {
    width: auto !important;
    min-width: unset;
    height: auto !important;
    padding: 14px 24px;
    border-radius: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(135% 100% at 10% 10%, rgba(255, 255, 255, 0.12) 0%, rgba(12, 24, 18, 0.88) 100%);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.55);
    transform: scale(1) !important;
  }

  .insta-animated-badge {
    width: 86px;
    height: 86px;
    border-radius: 26px !important;
    padding: 3px;
  }

  .insta-glow-spinner {
    border-radius: 35% !important;
  }

  .insta-icon-wrapper {
    border-radius: 23px !important;
  }

  .insta-animated-badge svg {
    width: 44px;
    height: 44px;
  }

  .web-showcase-glass {
    width: 190px;
    height: 190px;
    border-radius: 32px;
    margin: 0 auto;
  }

  .web-icon-img {
    width: 105px;
  }

  .final-content {
    flex-direction: column-reverse;
    gap: 22px;
    padding: 0 10px;
  }

  .final-typography {
    text-align: center;
    font-size: clamp(24px, 6.8vw, 34px);
    line-height: 1.45;
  }

  .type-line {
    min-height: 1.45em;
    margin-bottom: 6px;
  }

  .final-icons {
    flex-direction: row;
    padding: 12px 20px;
    gap: 16px;
    border-radius: 22px;
  }

  .ico-item-wrap {
    width: 44px;
    height: 44px;
  }

  .contact-headline {
    font-size: 28px;
    margin-bottom: 18px;
  }

  .collab-btn-green {
    padding: 13px 28px;
    font-size: 15px;
    width: 90vw;
    max-width: 320px;
  }

  .pricing-btn-white {
    padding: 10px 24px;
    font-size: 14px;
    width: 90vw;
    max-width: 260px;
  }

  .contact-cards-grid {
    flex-direction: column;
    gap: 10px;
    margin-top: 30px;
    width: 100%;
  }

  .contact-glass-card {
    max-width: 100%;
    width: 90vw;
    flex-direction: row;
    justify-content: flex-start;
    padding: 12px 18px;
    gap: 14px;
    border-radius: 16px;
  }

  .contact-ico-wrap {
    width: 34px;
    height: 34px;
  }

  .contact-value {
    font-size: 13px;
    text-align: left;
  }

  .pricing-modal-window {
    padding: 28px 14px 20px;
    max-height: 92vh;
  }

  .col-service { width: 46%; }
  .col-time    { width: 27%; }
  .col-price   { width: 27%; }

  .pricing-table th,
  .pricing-table td {
    padding: 9px 5px;
    font-size: 12px;
  }
}


