:root {
  --color-text: #263130;
  --color-primary: #139487;
  --color-primary-shadow: 0 2px 10px 1px rgb(19 148 135 / 50%), 0 0px 8px 1px rgb(19 148 135 / 50%);
  --color-primary-hover: #118579;
  --color-cyan-lighter: #ECFAFF;
  --color-green-lighter: #E4FEF5;
  --color-red-lighter: #FCE7EA;
  --color-cyan: #22a6b3;
  --color-green: #29BB89;
  --color-red: #FF4C6B;
  --color-partner: #4b56d2;

  --color-cyan-box: #F9FDFF;
  --color-green-box: #F5FEFB;
  --color-red-box: #FDF7F7;

  --color-primary-op: rgba(19, 148, 135, 0.1);
  --color-primary-op-hover: rgba(19, 148, 135, 0.15);

  --size-navbar-height: 70px;
}

html,
body {
  height: 100%;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* Smooth scrolling enhancement */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* DEBUG */

/*
* {
  outline: 1px solid red;
} */



/* Reset Defaults */

img {
  display: inline-block;
  max-width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  color: var(--color-text);
}

/* End Reset Defaults */

/* Common styles */
.w-full {
  width: 100%;
}

.h-full {
  height: 100%;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.mt-auto {
  margin-top: auto;
}

.mb-auto {
  margin-bottom: auto;
}

.mr-auto {
  margin-right: auto;
}

.ml-auto {
  margin-left: auto;
}

.mis-auto {
  margin-inline-start: auto;
}

.mie-auto {
  margin-inline-end: auto;
}

/* End Common styles */

html {
  font-size: 14px;
}

/* App styles */
body {
  direction: rtl;
  color: var(--color-text);
  font-family: IRANYekanX, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

header.app-header {
  width: 100%;
  height: var(--size-navbar-height);
  display: flex;
  align-items: center;
  border-bottom: 1px solid #eee;
  position: fixed;
  z-index: 100;
  top: 0;
  background-color: rgba(255, 255, 255, 0.85);
  -o-backdrop-filter: blur(10px);
  -ms-backdrop-filter: blur(10px);
  -moz-backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: background-color 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              border-bottom-color 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              backdrop-filter 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

header.app-header.nav-dark {
  background-color: rgba(15, 19, 29, 0.95) !important;
  border-bottom: 1px solid rgba(230, 232, 239, 0.08) !important;
  backdrop-filter: none !important;
}

footer.app-footer {
  width: 100%;
  min-height: 100px;
  display: flex;
  align-items: center;
padding-top: 40px;
}

.menu-toggle {
  margin-top: 5px;
  position: relative;
  z-index: 200;
}

.menu-toggle span {
  display: flex;
  width: 24px;
  height: 3px;
  margin-bottom: 5px;
  position: relative;
  background: #13948755;
  border-radius: 3px;
  transform-origin: 4px 0px;
  transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0),
    background 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0),
    opacity 0.55s ease;
}

.menu-toggle span:first-child {
  transform-origin: 0% 0%;
}

.menu-toggle span:nth-last-child(2) {
  width: 16px;
  transform-origin: 0% 100%;
}

.menu-toggle.menu-visible span {
  opacity: 0;
  /* transform: rotate(45deg) translate(-4px, -2px); */
  transform: rotate(45deg);
  /* background: #232323; */
  background: tomato;
}

.menu-toggle.menu-visible span:nth-last-child(3) {
  opacity: 0;
  transform: rotate(0deg) scale(0.2, 0.2);
}

.menu-toggle.menu-visible span:nth-child(1)
{
  opacity: 1;
  transform: rotate(45deg) translate(3px, -1px);
}

.menu-toggle.menu-visible span:nth-child(3) {
  opacity: 1;
  transform: rotate(-45deg) translate(0px, -1px);
}


.menu-sidebar {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  /* margin: -100px 0 0 -50px; */
  background-color: rgba(0, 0, 0, 0);
  /* background: ; */
  list-style-type: none;
  -webkit-font-smoothing: antialiased;
  /* to stop flickering of text in safari */
  transform-origin: 0% 0%;
  transform: translate(100%, 0);
  transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0) 0.1s, background-color 0.25s ease-in-out;
  overflow-x: visible;
  overflow: hidden;
  z-index: 50;
}

.menu-sidebar .sidebar-content {
  width: 280px;
  height: 100%;
  background-color: #fff;
  padding-inline: 1.5rem;
  padding-block: 60px;
  padding-top: 125px;
  font-size: 2rem;
  display: flex;
  flex-direction: column;
  background-color: rgba(255, 255, 255, 1);
}

.menu-sidebar .sidebar-content a {
  transition: ease-in-out 200ms;
  color: var(--color-text);
  text-decoration: none;
  margin-block: 0.25rem;
  padding-block: 0.25rem;
  width: 100%;
}

.menu-sidebar .sidebar-content a:hover {
  color: var(--color-primary);
}

.menu-sidebar.menu-visible {
  background-color: rgba(0, 0, 0, 0.2);
  transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0), background-color 0.4s ease-in-out .3s;

  transform: translate(0, 0);
}

.menu-sidebar.menu-visible .backdrop {
  transform: translate(-100%, 0) !important;
}

.app-navbar {
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
}

.navbar-content,
main {
  width: 100%;
  max-width: 1280px;
  padding-inline: 1.5rem;
  margin-inline: auto;
}

main {
  margin-top: var(--size-navbar-height);
}

.nav-list {
  padding: 0;
  margin: 0;
  list-style-type: none;
  display: flex;
  flex-direction: row;
  margin-inline: auto;
}

.nav-list li {
  display: flex;
  align-items: center;
  margin-inline: 2rem;
}

.nav-list li a {
  -o-transition: color 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  -moz-transition: color 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-transition: color 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  transition: color 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  color: var(--color-text);
}

.nav-list li a:hover {
  color: var(--color-primary);
}

.navbar-item {
  display: flex;
  /* justify-content: center; */
}

.nav-brand {
  font-size: 1.25rem;
  color: var(--color-primary);
  position: relative;
  display: flex;
  flex-direction: column;
  margin-left: auto;
  justify-content: center;
}

.nav-brand h1 {
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}

.nav-brand::after {
  content: ' ';
  width: 50%;
  right: 0;
  height: 3px;
  top: 100%;
  background-color: var(--color-primary);
  display: flex;
}

.mail-button {
  -o-user-select: none;
  -ms-user-select: none;
  -moz-user-select: none;
  -webkit-user-select: none;
  user-select: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #555;
  font-family: IRANYekanX, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  background-color: var(--color-primary-op);
  transition: ease-in-out 150ms;
  position: relative;
}

.mail-text {
  font-family: IRANYekanX, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.mail-button:hover {
  background-color: var(--color-primary-op-hover);
}

/* App styles */

.app-section {
  height: auto;
  padding-block: 0;
  margin: 0;
  align-items: center;
  display: flex;
  scroll-margin-top: calc(var(--size-navbar-height) + 16px);
}

/* فاصله یکنواخت بین سکشن‌ها */
.app-section + .app-section {
  margin-top: 40px;
}

.nav-dark {
  background: #0f131d;
}

.nav-dark .app-navbar {
  background: transparent;
}

.nav-dark .navbar-content a,
.nav-dark .nav-brand,
.nav-dark .navbar-content {
  color: #e6e8ef !important;
  transition: color 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-dark .menu-line {
  background: #e6e8ef;
  transition: background 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-dark .app-navbar .nav-brand {
  color: #e6e8ef;
}

.nav-dark .mail-button {
  background-color: rgba(255, 255, 255, 0.1) !important;
  color: rgba(255, 255, 255, 0.9) !important;
  transition: background-color 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              color 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-dark .mail-button:hover {
  background-color: rgba(255, 255, 255, 0.15) !important;
}

.nav-dark .nav-list li a {
  color: #e6e8ef !important;
}

.nav-dark .mail-button {
  background-color: rgba(230, 232, 239, 0.08);
  color: #e6e8ef;
}

.nav-dark .mail-button:hover {
  background-color: rgba(230, 232, 239, 0.16);
}

/* پدینگ ملایم برای سکشن‌های میانی */
.app-section:not(:first-child) {
  padding-top: 1.25rem;
}

.app-section:not(:last-child) {
  padding-bottom: 1.25rem;
}

.app-section:first-child {
  padding-top: 0;
  min-height: calc(100vh - var(--size-navbar-height));
  padding-block: 2rem;
  box-sizing: border-box;
}

.app-section:last-child {
  padding-bottom: 0;
}

.app-section-content {
  height: 100%;
  /* background-color: #eee; */
  display: flex;
  align-items: center;
}

.profile-img-container {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 0;
}

.profile-image {
  -o-user-select: none;
  -ms-user-select: none;
  -moz-user-select: none;
  -webkit-user-select: none;
  user-select: none;
  width: 150px;
  aspect-ratio: 1/1;
  border-radius: 100%;
  z-index: 0;
  position: relative;
}

.intro-container>* {
  line-height: 1.75;
  margin-block: 1rem;
}

.intro-container>h2 {
  text-align: center;
}

/* Hero Section Loading Animations - All elements load together with slight stagger */
.profile-img-container,
.intro-container > *,
.intro-footer {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.profile-img-container {
  transition-delay: 0.15s;
}

.intro-container > h2 {
  transition-delay: 0.25s;
}

.intro-container > p:nth-of-type(1) {
  transition-delay: 0.35s;
}

.intro-container > p:nth-of-type(2) {
  transition-delay: 0.45s;
}

.intro-container > p:nth-of-type(3) {
  transition-delay: 0.55s;
}

.intro-footer {
  transition-delay: 0.65s;
}

.hero-loaded .profile-img-container,
.hero-loaded .intro-container > *,
.hero-loaded .intro-footer {
  opacity: 1;
  transform: translateY(0);
}

.app-btn {
  display: inline-flex;
  align-items: center;
  color: #fff;
  background-color: var(--color-primary);
  border-radius: 10px;
  height: 3.5rem;
  padding-inline: 2rem;
  font-weight: 500;
}

.app-btn:hover,
.app-btn:focus,
.app-btn:active,
.app-btn:focus-within {
  background-color: var(--color-primary-hover) !important;
  box-shadow: var(--color-primary-shadow);
}

.btn-resume {
  width: 100%;
  justify-content: center;
  font-size: 1.15rem;
}

.social-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin-inline-start: auto;
}

.social-container>.social-item {
  cursor: pointer;
  margin-inline: 0.5rem;
  color: #00252D;
  background-color: var(--color-primary-op);
  padding: 0.5rem;
  width: 55px;
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  transition: ease-in-out 150ms;
}

.social-container>.social-item:hover {
  background-color: var(--color-primary-op-hover);
}

/* .services-list {} */

.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.65;
  text-align: center;
}

/* Faraman follow section title padding */
.faraman-title {
  padding-top: 80px;
}

/* Animated Title Styles - Similar to sunday.ai */
.animated-title-container {
  width: 100%;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 4rem 1rem;
  position: relative;
  overflow: visible;
  background: linear-gradient(135deg, #FFF8DC 0%, #FFEAA7 30%, #FDCB6E 100%);
  border-radius: 2rem;
  margin: 2rem 0;
  box-shadow: 0 10px 40px rgba(255, 235, 180, 0.3);
}

.animated-title-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.3) 0%, transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.animated-title-container > * {
  position: relative;
  z-index: 1;
}

.animated-title {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 0.75rem;
  max-width: min(95%, 1200px);
  width: 100%;
  min-height: 50vh;
  position: relative;
  padding: 0;
  box-sizing: border-box;
}

/* Reduce gap on mobile */
@media (max-width: 767px) {
  .animated-title-container {
    padding: 2rem 1rem !important;
    margin: 1.5rem 0 !important;
    border-radius: 1.25rem !important;
    min-height: auto !important;
  }

  .animated-title {
    gap: 0;
    row-gap: 0;
    line-height: 2.0 !important;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px !important;
    padding: 0 !important;
    min-height: auto;
    max-width: 100%;
  }

  .title-word {
    line-height: 2.0 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-block;
  }

  /* Pull second line up to reduce vertical gap */
  .title-word[data-word="4"],
  .title-word[data-word="5"],
  .title-word[data-word="6"] {
    margin-top: -12px !important;
  }

  /* Ensure 32px spacing between blocks in yellow section */
  .animated-title-container .services-description {
    margin-top: 8px !important;
  }
  .animated-title-container .services-description p {
    margin: 0 0 8px 0;
  }
  .animated-title-container .services-description p:last-child {
    margin-bottom: 0;
  }
}

.title-word {
  font-size: clamp(3.5rem, 12vw, 8rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--color-text);
  display: inline-block;
  opacity: 0;
  transform: translateY(150px) translateX(-50px) rotateX(90deg);
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  white-space: nowrap;
  flex-shrink: 0;
}

.title-word.visible {
  opacity: 1;
  will-change: transform, opacity;
}

/* Initial diagonal positioning - Persian RTL layout */
.title-word[data-word="1"].visible {
  transform: translateY(-20px) translateX(30px) rotateX(0deg);
}

.title-word[data-word="2"].visible {
  transform: translateY(-10px) translateX(20px) rotateX(0deg);
}

.title-word[data-word="3"].visible {
  transform: translateY(0px) translateX(10px) rotateX(0deg);
}

.title-word[data-word="4"].visible {
  transform: translateY(10px) translateX(-10px) rotateX(0deg);
}

.title-word[data-word="5"].visible {
  transform: translateY(20px) translateX(-20px) rotateX(0deg);
}

.title-word[data-word="6"].visible {
  transform: translateY(30px) translateX(-30px) rotateX(0deg);
}

/* Force title to break after word 3: "خدمات من به" on line 1, rest on line 2 */
.animated-title .title-word[data-word="3"]::after {
  content: '';
  display: block;
  width: 100%;
}

/* Aligned state - horizontal layout */
.animated-title.aligned .title-word {
  position: relative;
  transform: translateY(0) translateX(0) rotateX(0deg) !important;
  transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 992px) {
  .animated-title {
    max-width: 500px; /* limit each line width on desktop */
    width: 100%;
    justify-content: flex-start;
    align-items: flex-start;
  }
  
  .animated-title.aligned {
    justify-content: flex-start;
    align-items: flex-start;
  }
  
  /* Keep words unwrapped per line */
  .animated-title .title-word {
    white-space: nowrap;
  }
}

@media (min-width: 1200px) {
  .animated-title {
    max-width: min(85%, 1400px);
  }
}

.services-description {
  max-width: min(95%, 1200px);
  margin: 0 auto 0 0;
  padding: 2rem 1rem 0;
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s cubic-bezier(0.16, 1, 0.3, 1) 0.5s;
  position: relative;
  z-index: 1;
  text-align: right;
}

.services-description.visible {
  opacity: 1;
  transform: translateY(0);
}

.services-description p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.8;
  color: var(--color-text);
  margin-bottom: 1.25rem;
  text-align: right;
}


.services-list {
  position: relative;
  z-index: 2;
  margin-top: 3rem;
  padding-bottom: 2rem;
}

.services-list .service-card {
  height: 100%;
  padding: 2rem;
  border-radius: 2rem;
  /* margin-block: 2rem; */
  box-shadow: 0px 1px 1px 0 rgb(0 0 0 / 0.05);
  opacity: 0;
  transform: translateY(100px) scale(0.9);
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.2s ease;
  visibility: visible;
  pointer-events: none;
}

.services-list .service-card.entering,
.services-list .service-card.exiting {
  will-change: transform, opacity;
}

.services-list .service-card.visible,
.services-list .service-card.entering {
  pointer-events: auto;
}

.services-list .service-card.entering {
  opacity: 0;
  transform: translateY(100px) scale(0.9);
}

.services-list .service-card.visible {
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
  visibility: visible;
}

.services-list .service-card.exiting {
  opacity: 0;
  transform: translateY(-50px) scale(0.95);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.services-list .service-card.visible:hover {
  transform: translateY(-5px) scale(1);
  box-shadow: 0px 5px 15px 0 rgb(0 0 0 / 0.1);
}

.services-list .service-card.service-cyan {
  background-color: var(--color-cyan-box);
}

.services-list .service-card.service-red {
  background-color: var(--color-red-box);
}

.services-list .service-card.service-green {
  background-color: var(--color-green-box);
}

.ic-service {
  padding: 0.5rem;
  width: 50px;
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1.25rem;
}

.service-card>*:not(:first-child) {
  margin-block: 1rem;
}

.service-card>h3 {
  padding-top: 1rem;
}

.service-card>p {
  line-height: 1.75;
  /* text-align: justify; */
}

.services-list .service-card.service-cyan .ic-service {
  background-color: #ECF9FF;
}

.services-list .service-card.service-green .ic-service {
  background-color: #E4FEF5;
}

.services-list .service-card.service-red .ic-service {
  background-color: #FCE8EA;
}

.services-list .service-card h3 {
  font-weight: bold;
  font-size: 1.125rem;
}

footer.app-footer {
  flex-direction: column;
  font-weight: 400;
}

footer.app-footer .footer-top {
  width: 100%;
  display: flex;
  z-index: -1;
  justify-content: center;
  position: relative;
}

footer.app-footer .footer-top .brand-name {
  color: #fff;
  padding: 0.5rem 2.25rem;
  border-radius: 15px;
  background-color: var(--color-primary);
  font-weight: 600;
  font-size: 1rem;
  z-index: 1;
}

footer.app-footer .footer-top::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 1px;
  background-color: var(--color-primary);
}

.partner-mark {
  color: var(--color-partner);
  text-decoration: none;
  font-weight: 500;
}

/* Large Devices Breakpoint */
@media (min-width: 992px) {

  :root {
    --size-navbar-height: 100px
  }

  html {
    font-size: 16px;
  }

  .intro-container>h2 {
    text-align: right;
    text-align: start;
  }

  .section-title {
    font-size: 1.8rem;
    text-align: start;
  }

  .app-section {
    min-height: auto;
    padding-block: 0;
    margin: 0;
  }
  
  .app-section + .app-section {
    margin-top: 40px;
  }
  
  .app-section:not(:first-child) {
    padding-top: 1.25rem;
  }
  
  .app-section:not(:last-child) {
    padding-bottom: 1.25rem;
  }
  
  .app-section:first-child {
    padding-top: 0;
    min-height: calc(100vh - var(--size-navbar-height));
    padding-block: 2.5rem;
    box-sizing: border-box;
  }
  
  .app-section:last-child {
    padding-bottom: 0;
  }

  .profile-image {
    width: 100%;
    aspect-ratio: 1/1;
  }

  .profile-img-container {
    justify-content: flex-start;
    padding-inline-end: 4rem;
  }
}

@media (min-width: 1200px) {
  .profile-img-container {
    justify-content: flex-start;
    padding-inline-end: 7rem;
  }
}


.banner-faraman {
background-color: #1a1d29;
border-radius: 1.5rem;
display: flex;
flex-direction: column;
align-items: center;
gap: 1.5rem;
padding: 2rem;
margin-bottom: 0;
text-align: center;
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
position: relative;
overflow: hidden;
transform-style: preserve-3d;
transition: transform 0.1s ease-out, box-shadow 0.3s ease;
}

.banner-faraman::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: 
  linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.02) 50%, transparent 70%),
  linear-gradient(-45deg, transparent 30%, rgba(255, 255, 255, 0.02) 50%, transparent 70%);
background-size: 60px 60px;
animation: waveMove 15s linear infinite;
pointer-events: none;
z-index: 0;
opacity: 0.6;
}

.banner-faraman::after {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: 
  radial-gradient(circle at 20% 50%, rgba(79, 83, 172, 0.08) 0%, transparent 50%),
  radial-gradient(circle at 80% 80%, rgba(79, 83, 172, 0.08) 0%, transparent 50%),
  radial-gradient(circle at 40% 20%, rgba(79, 83, 172, 0.06) 0%, transparent 50%);
animation: gradientShift 20s ease-in-out infinite;
pointer-events: none;
z-index: 0;
}

@keyframes waveMove {
0% {
  background-position: 0 0, 0 0;
}
100% {
  background-position: 60px 60px, -60px -60px;
}
}

@keyframes gradientShift {
0%, 100% {
  opacity: 1;
  transform: scale(1);
}
50% {
  opacity: 0.8;
  transform: scale(1.05);
}
}

.banner-faraman,
.banner-faraman p,
.banner-faraman h1,
.banner-faraman span {
font-family: IRANYekanX, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
color: #ffffff;
position: relative;
z-index: 1;
}

.banner-faraman h1 {
font-weight: 700;
font-size: 2.5rem;
margin-bottom: 0.35rem;
}

.faraman-subtitle {
font-weight: 700;
font-size: 1.75rem;
display: inline-flex;
margin-top: .25rem;
}

.faraman-logo {
width: 35vw;
min-width: 35vw;
object-fit: contain;
aspect-ratio: 1/1;
position: relative;
z-index: 1;
}

.faraman-description {
font-size: 1.15rem;
line-height: 2;
font-weight: 300;
}

.btn-faraman {
font-weight: 500;
color: #1a1d29;
background-color: #ffffff;
padding: 10px 16px;
border-radius: 10px !important;
height: 46px;
font-size: 1.1rem;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.3s ease;
}

.btn-faraman:hover {
color: #1a1d29;
background-color: #f0f0f0;
transform: translateY(-2px);
box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

.faraman-content {
display: flex;
flex-direction: column;
gap: 1rem;
position: relative;
z-index: 1;
}

@media (min-width: 992px) {

.banner-faraman {
  flex-direction: row;
  padding: 6rem;
  gap: 8rem;
  border-radius: 3rem;
  text-align: start;
}

.banner-faraman h1 {
  font-size: 3rem;
}

.faraman-subtitle {
  font-size: 2rem;
}

.faraman-logo {
  width: 350px;
  min-width: 350px;
}

.btn-faraman {
  display: inline-flex;
}
}

/* Products Section */
.products-list {
margin-bottom: 0;
}

/* Games Section */
.games-section {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 5rem 0 7rem;
  margin-bottom: 2rem;
  background:
    radial-gradient(circle at 15% 20%, rgba(19, 148, 135, 0.14), transparent 35%),
    radial-gradient(circle at 85% 75%, rgba(34, 166, 179, 0.18), transparent 40%),
    linear-gradient(160deg, #f4fffc 0%, #f2fbff 100%);
  overflow: hidden;
  position: relative;
}

.games-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 26%, rgba(255, 255, 255, 0.44), transparent 44%),
    radial-gradient(circle at 77% 71%, rgba(255, 255, 255, 0.34), transparent 48%);
  pointer-events: none;
  z-index: 0;
}

.xo-field {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.xo-glyph {
  position: absolute;
  left: calc(var(--xo-x) * 1%);
  top: calc(var(--xo-y) * 1%);
  width: calc(var(--xo-size) * 1px);
  height: calc(var(--xo-size) * 1px);
  transform: translate(-50%, -50%);
  opacity: 0;
  color: rgba(71, 85, 105, var(--xo-alpha, 0.48));
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.28));
  animation: xoLife var(--xo-dur) cubic-bezier(0.22, 1, 0.36, 1) infinite;
  animation-delay: var(--xo-delay);
}

.xo-core {
  width: 100%;
  height: 100%;
  position: relative;
  animation: xoSpin var(--xo-dur) ease-in-out infinite;
  animation-delay: var(--xo-delay);
}

.xo-char {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  line-height: 1;
  font-size: calc(var(--xo-size) * 1px);
  font-family: IRANYekanX, system-ui, sans-serif;
}

.xo-char-x {
  animation: xoCharX var(--xo-dur) ease-in-out infinite;
  animation-delay: var(--xo-delay);
}

.xo-char-o {
  opacity: 0;
  animation: xoCharO var(--xo-dur) ease-in-out infinite;
  animation-delay: var(--xo-delay);
}

.xo-glyph.start-o .xo-char-x {
  animation-name: xoCharO;
}

.xo-glyph.start-o .xo-char-o {
  animation-name: xoCharX;
}

.games-inner {
  width: min(1200px, 100% - 2rem);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.games-header {
  margin-bottom: 2rem;
}

.games-description {
  margin: 8px 0 0;
  color: #4b5a5a;
  font-size: 1rem;
  line-height: 1.9;
}

.games-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-bottom: 1.25rem;
}

.game-row {
  display: grid;
  grid-template-columns: minmax(260px, 34%) 1fr;
  gap: 1.25rem;
  align-items: center;
  padding: 1rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(19, 148, 135, 0.15);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  box-shadow: 0 12px 30px rgba(19, 148, 135, 0.08);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.game-row:hover {
  transform: translateY(-4px);
  border-color: rgba(19, 148, 135, 0.28);
  box-shadow: 0 16px 34px rgba(19, 148, 135, 0.14);
}

.game-poster-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 1rem;
  overflow: hidden;
  position: relative;
}

.game-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.game-title {
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 8px;
}

@keyframes xoLife {
  0% {
    opacity: 0;
    transform: translate(-50%, calc(-50% + 10px)) scale(0.7);
  }
  16% {
    opacity: 0.45;
    transform: translate(-50%, -50%) scale(1);
  }
  66% {
    opacity: 0.45;
    transform: translate(-50%, calc(-50% - 2px)) scale(1.02);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, calc(-50% - 12px)) scale(1.14);
  }
}

@keyframes xoSpin {
  0% {
    transform: rotate(0deg);
  }
  28% {
    transform: rotate(0deg);
  }
  46% {
    transform: rotate(var(--xo-rot));
  }
  64% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

@keyframes xoCharX {
  0%, 34% {
    opacity: 1;
    transform: scale(1);
  }
  46% {
    opacity: 0;
    transform: scale(0.76);
  }
  100% {
    opacity: 0;
    transform: scale(0.76);
  }
}

@keyframes xoCharO {
  0%, 34% {
    opacity: 0;
    transform: scale(0.78);
  }
  46% {
    opacity: 1;
    transform: scale(1);
  }
  62% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(0.74);
  }
}

.game-text {
  margin: 0 0 1.25rem;
  color: #495959;
  line-height: 1.95;
  font-size: 1rem;
}

.game-cta {
  color: #fff;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-cyan) 100%);
  border-radius: 12px;
  min-height: 46px;
  padding: 0.65rem 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(19, 148, 135, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.game-cta:hover,
.game-cta:focus {
  color: #fff;
  transform: translateY(-2px);
  filter: saturate(1.08);
  box-shadow: 0 14px 26px rgba(19, 148, 135, 0.3);
}

.product-card {
display: block;
height: 100%;
padding: 2.5rem;
border-radius: 1.5rem;
background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
border: 1px solid rgba(0, 0, 0, 0.05);
text-decoration: none;
color: var(--color-text);
transition: all 0.3s ease;
position: relative;
overflow: hidden;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.product-card::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 4px;
background: linear-gradient(90deg, var(--color-primary), var(--color-cyan));
transform: scaleX(0);
transform-origin: left;
transition: transform 0.3s ease;
}

.product-card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 30px rgba(19, 148, 135, 0.15);
border-color: rgba(19, 148, 135, 0.2);
}

.product-card:hover::before {
transform: scaleX(1);
}

.product-icon {
width: 60px;
height: 60px;
display: flex;
align-items: center;
justify-content: center;
background: linear-gradient(135deg, var(--color-primary-op), var(--color-primary-op-hover));
border-radius: 1rem;
margin-bottom: 1.5rem;
color: var(--color-primary);
transition: all 0.3s ease;
}

.product-card:hover .product-icon {
background: linear-gradient(135deg, var(--color-primary), var(--color-cyan));
color: #ffffff;
transform: scale(1.1) rotate(5deg);
}

.product-card h3 {
font-size: 1.25rem;
font-weight: 700;
margin-bottom: 1rem;
color: var(--color-text);
transition: color 0.3s ease;
}

.product-card:hover h3 {
color: var(--color-primary);
}

.product-card p {
font-size: 0.95rem;
line-height: 1.7;
color: #666;
margin-bottom: 1.5rem;
min-height: 3.4rem;
}

.product-link {
display: inline-flex;
align-items: center;
font-size: 0.9rem;
font-weight: 600;
color: var(--color-primary);
transition: all 0.3s ease;
margin-top: auto;
}

.product-card:hover .product-link {
transform: translateX(5px);
color: var(--color-cyan);
}

@media (min-width: 992px) {
.product-card {
  padding: 3rem;
}

.product-card h3 {
  font-size: 1.375rem;
}

.product-card p {
  font-size: 1rem;
}
}

@media (max-width: 991px) {
  .games-section {
    padding: 4rem 0 5.5rem;
    margin-bottom: 1.25rem;
  }

  .games-inner {
    width: min(1200px, 100% - 1.5rem);
  }

  .game-row {
    grid-template-columns: 1fr;
  }

  .game-title {
    font-size: 1.3rem;
  }
}

/* Process Section with GSAP ScrollTrigger */
.process-section {
  padding: 6rem 0;
  background: #1a1d29;
  min-height: 100vh;
  display: flex;
  align-items: center;
  width: 100vw;
  position: relative;
  box-sizing: border-box;
  overflow: hidden;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

@media (max-width: 767px) {
  /* Limit process section height to viewport on mobile to avoid extra scroll */
  .process-section {
    max-height: 100vh;
    overflow: hidden;
  }
  .process-container {
    max-height: calc(100vh - 80px);
    overflow: hidden;
  }
}

/* Override app-section styles for process section */
.process-section.app-section {
  padding-left: 0;
  padding-right: 0;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.process-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
  width: 100%;
  padding: 0 2rem;
}

.process-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: sticky;
  top: 120px;
  align-self: start;
}

.process-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: 1rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  opacity: 0.4;
  transform: translateX(-20px);
}

.process-item:first-child {
  opacity: 1;
  transform: translateX(0);
}

.process-item.active {
  opacity: 1;
  transform: translateX(0);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.process-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.4);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.process-item.active .process-indicator {
  background: #FF6B35;
  border-color: #FF6B35;
  width: 16px;
  height: 16px;
  position: relative;
}


.process-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  transition: color 0.3s ease;
}

.process-item.active .process-title {
  color: #ffffff;
  font-weight: 700;
}

.process-descriptions {
  position: relative;
  min-height: 300px;
}

.process-description {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s linear 0.15s;
  pointer-events: none;
  z-index: 1;
}

.process-description.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  position: relative;
  pointer-events: auto;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s;
  z-index: 2;
}

.process-description p {
  font-size: 1.25rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  font-weight: 300;
}

@media (max-width: 991px) {
  .process-container {
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
  }
  
  .process-list {
    position: static;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
  
  .process-item {
    min-width: auto;
    flex-direction: row;
    text-align: right;
    padding: 1rem;
    width: 100%;
  }
  
  .process-title {
    font-size: 1.1rem;
  }
  
  .process-descriptions {
    min-height: auto;
  }
  
  .process-description p {
    font-size: 1rem;
    line-height: 1.6;
  }
}

@media (max-width: 767px) {
  .process-section {
    padding: 4rem 0;
  }
  
  .process-item {
    min-width: 150px;
    padding: 0.8rem;
  }
  
  .process-title {
    font-size: 1rem;
  }
  
  .process-description p {
    font-size: 1rem;
    line-height: 1.6;
  }
}

/* * {
outline: 1px solid red;
} */
