
@font-face {
  font-family: 'PeydaWebVF';
  src: url('/assets/fonts/PeydaWebVF.woff2') format('woff2-variations'),
       url('/assets/fonts/PeydaWebVF.woff') format('woff-variations');
  font-weight: 100 950;
  font-style: normal;
  font-display: swap;
}

:root {
  --moonesun-bg: #0F0F0F;
  --moonesun-orange: #FB9936;
}

html { scroll-behavior: smooth; }

body,
button,
input,
textarea,
select,
option,
div,
span,
p,
h1,
h2,
h3,
h4,
h5,
h6,
a,
label {
  font-family: 'PeydaWebVF', Tahoma, sans-serif !important;
  font-feature-settings: 'swsh';
}

body {
  background-color: var(--moonesun-bg);
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.site-header {
  background: rgba(15, 15, 15, .86) !important;
}

         /* Custom Scrollbar */
         ::-webkit-scrollbar {
         width: 8px;
         }
         ::-webkit-scrollbar-track {
         background: #0F0F0F;
         }
         ::-webkit-scrollbar-thumb {
         background: #334155;
         border-radius: 4px;
         }
         /* --- انیمیشن‌های جدید و پیشرفته --- */
         /* انیمیشن درخشش و موج برای لوگو */
         @keyframes pulse-glow {
         0%, 100% { box-shadow: 0 0 30px rgba(251, 191, 36, 0.3), 0 0 60px rgba(251, 191, 36, 0.1); }
         50% { box-shadow: 0 0 50px rgba(251, 191, 36, 0.5), 0 0 100px rgba(251, 191, 36, 0.2); }
         }
         /* انیمیشن ورود المان‌ها از پایین */
         @keyframes fade-in-up {
         from {
         opacity: 0;
         transform: translateY(30px);
         }
         to {
         opacity: 1;
         transform: translateY(0);
         }
         }
         .animate-fade-in-up {
         animation: fade-in-up 0.8s ease-out forwards;
         opacity: 0; /* مخفی کردن اولیه */
         }
         /* تاخیرهای مختلف برای انیمیشن ورود */
         .delay-100 { animation-delay: 0.1s; }
         .delay-200 { animation-delay: 0.2s; }
         .delay-300 { animation-delay: 0.3s; }
         .delay-400 { animation-delay: 0.4s; }
         .delay-500 { animation-delay: 0.5s; }
         .delay-600 { animation-delay: 0.6s; }
         /* Eclipse/MoonSun Animation Graphic */
         .moonesun-container {
         position: relative;
         width: 120px;
         height: 120px;
         margin: 0 auto;
         /* ترکیب انیمیشن شناور و درخشش */
         animation: float 6s ease-in-out infinite;
         will-change: transform; 
         }
         @media (min-width: 768px) {
         .moonesun-container {
         width: 150px;
         height: 150px;
         }
         }
         .sun {
         position: absolute;
         top: 0;
         left: 0;
         width: 100%;
         height: 100%;
         border-radius: 50%;
         background: radial-gradient(circle at 30% 30%, #fbbf24, #d97706);
         /* اعمال انیمیشن درخشش */
         animation: pulse-glow 4s ease-in-out infinite;
         z-index: 1;
         }
         .moon {
         position: absolute;
         top: -5%;
         left: 25%;
         width: 100%;
         height: 100%;
         border-radius: 50%;
         background-color: #0F0F0F;
         z-index: 2;
         box-shadow: inset -5px -5px 15px rgba(255, 255, 255, 0.1);
         }
         /* Stars Animation */
         .star {
         position: absolute;
         background: white;
         border-radius: 50%;
         opacity: 0;
         animation: twinkle var(--duration) ease-in-out infinite;
         animation-delay: var(--delay);
         will-change: opacity, transform; 
         }
         @keyframes twinkle {
         0% { opacity: 0; transform: scale(0.5); }
         50% { opacity: 0.8; transform: scale(1.2); }
         100% { opacity: 0; transform: scale(0.5); }
         }
         @keyframes float {
         0%, 100% { transform: translateY(0); }
         50% { transform: translateY(-15px); }
         }
         @keyframes shooting-star {
         0% { transform: translateX(0) translateY(0) rotate(45deg) scale(0); opacity: 0; }
         10% { opacity: 1; transform: translateX(50px) translateY(50px) rotate(45deg) scale(1); }
         100% { transform: translateX(300px) translateY(300px) rotate(45deg) scale(0); opacity: 0; }
         }
         .shooting-star {
         position: absolute;
         width: 80px;
         height: 2px;
         background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,1));
         animation: shooting-star 5s linear infinite;
         top: 10%;
         left: 10%;
         opacity: 0;
         z-index: 0;
         }
         /* Glassmorphism Cards Optimized with Advanced Hover */
         .glass-card {
         position: relative;
         background: rgba(30, 41, 59, 0.8);
         border: 1px solid rgba(255, 255, 255, 0.05);
         transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
         overflow: hidden; /* برای محدود کردن افکت گرادینت */
         }
         /* افکت گرادینت متحرک روی هاور */
         .glass-card::before {
         content: '';
         position: absolute;
         top: 0;
         left: -100%;
         width: 200%;
         height: 100%;
         background: linear-gradient(
         115deg,
         transparent 0%,
         rgba(251, 191, 36, 0.1) 45%, /* رنگ طلایی ملایم */
         rgba(251, 191, 36, 0.2) 50%,
         rgba(251, 191, 36, 0.1) 55%,
         transparent 100%
         );
         transform: skewX(-20deg);
         transition: left 0.7s ease;
         pointer-events: none;
         z-index: 0;
         }
         @media (min-width: 768px) {
         .glass-card {
         background: rgba(255, 255, 255, 0.05);
         backdrop-filter: blur(10px);
         -webkit-backdrop-filter: blur(10px);
         border: 1px solid rgba(255, 255, 255, 0.1);
         }
         .glass-card:hover {
         background: rgba(255, 255, 255, 0.1);
         transform: translateY(-10px) scale(1.02); /* کمی بزرگنمایی */
         box-shadow: 0 20px 40px rgba(0,0,0,0.6), 0 0 20px rgba(251, 191, 36, 0.2); /* سایه رنگی */
         border-color: rgba(251, 191, 36, 0.5);
         }
         .glass-card:hover::before {
         left: 100%; /* حرکت گرادینت */
         }
         }
         /* Portfolio Specific Styles */
         .portfolio-image {
         width: 100%;
         height: 200px;
         background-color: #1e293b;
         border-radius: 0.75rem;
         overflow: hidden;
         position: relative;
         z-index: 1; /* بالاتر از گرادینت پس‌زمینه */
         }
         .portfolio-overlay {
         position: absolute;
         inset: 0;
         background: rgba(0,0,0,0.4);
         display: flex;
         align-items: center;
         justify-content: center;
         opacity: 1;
         transition: all 0.3s ease;
         backdrop-filter: blur(2px); /* کمی تاری برای خوانایی بهتر */
         }
         @media (min-width: 768px) {
         .portfolio-overlay {
         background: rgba(0,0,0,0.7);
         opacity: 0;
         backdrop-filter: blur(0);
         }
         .glass-card:hover .portfolio-overlay, .group:hover .portfolio-overlay {
         opacity: 1;
         backdrop-filter: blur(3px);
         }
         }
         .smooth-btn {
         transition: transform 0.2s ease-out, box-shadow 0.2s ease-out !important;
         }
         .smooth-btn:hover {
         box-shadow: 0 0 20px rgba(251, 191, 36, 0.5), 0 0 40px rgba(251, 191, 36, 0.2); /* درخشش دکمه‌ها */
         }
         .smooth-btn:active {
         transform: scale(0.95);
         box-shadow: none;
         }
         /* استایل‌های جدید برای منو */
         .nav-link {
         position: relative;
         padding: 5px 0;
         transition: color 0.3s ease;
         }
         .nav-link::after {
         content: '';
         position: absolute;
         width: 0;
         height: 2px;
         bottom: 0;
         left: 50%;
         background-color: #fbbf24;
         transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
         transform: translateX(-50%);
         box-shadow: 0 0 8px rgba(251, 191, 36, 0.8); /* درخشش خط زیر منو */
         }
         .nav-link:hover {
         color: #fbbf24;
         text-shadow: 0 0 10px rgba(251, 191, 36, 0.5); /* درخشش متن منو */
         }
         .nav-link:hover::after {
         width: 100%;
         }
      
/* Language switch */
.language-switch{display:flex;align-items:center;gap:.45rem;padding:.3rem;border:1px solid rgba(255,255,255,.1);background:rgba(15,15,15,.78);border-radius:999px}
.language-link{width:34px;height:28px;display:grid;place-items:center;border-radius:999px;opacity:.52;transition:opacity .2s ease,background .2s ease,transform .2s ease}
.language-link img{width:23px;height:16px;object-fit:cover;border-radius:3px}
.language-link:hover,.language-link.is-active{opacity:1;background:rgba(251,191,36,.14);transform:translateY(-1px)}

/* Hero */
.hero-shell {
  position: relative;
  width: min(100%, 1180px);
  min-height: clamp(520px, 66vh, 680px);
  margin: 0 auto 3rem;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  isolation: isolate;
}
.hero-shell::before {
  content: '';
  position: absolute;
  inset: 7% 14% 5%;
  z-index: -2;
  pointer-events: none;
  background: radial-gradient(circle at 50% 54%, rgba(251,153,54,.075), rgba(15,15,15,0) 58%);
  filter: blur(10px);
}
.hero-stage {
  position: relative;
  min-height: inherit;
  display: grid;
  place-items: center;
  padding: 80px 24px 60px;
}
.hero-center {
  position: relative;
  z-index: 5;
  width: min(100%, 820px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero-kicker {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: .62rem;
  margin-bottom: 1.1rem;
  color: #747474;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .025em;
}
.hero-kicker span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--moonesun-orange);
  box-shadow: 0 0 16px rgba(251,153,54,.55);
}
.hero-title {
  margin: 0;
  line-height: .88;
}
.hero-wordmark {
  display: inline-block;
  color: #e8e8e8;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: clamp(4rem, 10vw, 8.8rem);
  font-weight: 850;
  letter-spacing: -.075em;
  line-height: .88;
  text-shadow: 0 10px 42px rgba(0,0,0,.5);
}
.hero-wordmark > span {
  font-family: inherit !important;
  color: #f3b56f;
  background: linear-gradient(180deg,#ffe0bd 0%,#fb9936 62%,#b85d13 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-title-statement {
  max-width: 650px;
  margin: 1.45rem auto 0;
  color: #7d7d7d;
  font-size: clamp(.95rem, 1.55vw, 1.18rem);
  line-height: 1.9;
  font-weight: 520;
  text-wrap: balance;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .55rem;
  margin-top: 1.4rem;
}
.hero-button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .58rem .95rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.085);
  background: rgba(255,255,255,.025);
  color: #bcbcbc;
  font-size: .78rem;
  font-weight: 700;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform .2s ease, border-color .2s ease, background .2s ease, color .2s ease;
}
.hero-button:hover {
  transform: translateY(-2px);
  border-color: rgba(251,153,54,.32);
  color: #f1f1f1;
}
.hero-button--primary {
  border-color: rgba(251,153,54,.2);
  background: rgba(251,153,54,.08);
  color: #e7b47d;
}
.hero-button--ghost { background: rgba(255,255,255,.018); }
.hero-tech-orbit {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.hero-tech-card {
  position: absolute;
  width: clamp(56px, 5.2vw, 76px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 19px;
  background: linear-gradient(145deg,rgba(33,33,33,.92),rgba(16,16,16,.94));
  box-shadow: 0 18px 45px rgba(0,0,0,.36), inset 0 1px rgba(255,255,255,.045);
  transform: rotate(var(--r,0deg));
  animation: hero-float var(--float,6s) ease-in-out infinite;
  animation-delay: var(--delay,0s);
}
.hero-tech-card::after {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 13px;
  background: radial-gradient(circle at 50% 45%,rgba(255,255,255,.055),transparent 68%);
}
.hero-tech-card img {
  position: relative;
  z-index: 2;
  width: 58%;
  height: 58%;
  object-fit: contain;
  filter: saturate(.95) drop-shadow(0 7px 12px rgba(0,0,0,.34));
}
.hero-tech-card--php { top: 26%; left: 16%; --r:-8deg; --float:6.8s; --delay:-1.4s; }
.hero-tech-card--js { top: 35%; left: 24%; --r:5deg; --float:5.8s; --delay:-2.1s; }
.hero-tech-card--html { top: 61%; left: 18%; --r:8deg; --float:6.3s; --delay:-.8s; }
.hero-tech-card--css { top: 69%; left: 29%; --r:-5deg; --float:7.1s; --delay:-3.2s; }
.hero-tech-card--wordpress { top: 25%; right: 17%; --r:7deg; --float:6.4s; --delay:-1.8s; }
.hero-tech-card--github { top: 37%; right: 25%; --r:-6deg; --float:7.2s; --delay:-2.8s; }
.hero-tech-card--google { top: 62%; right: 19%; --r:-8deg; --float:5.9s; --delay:-1.1s; }
.hero-tech-card--cloudflare { top: 70%; right: 30%; --r:6deg; --float:6.7s; --delay:-3.7s; }
@keyframes hero-float {
  0%,100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}
@media(max-width:900px){
  .hero-shell{min-height:560px}
  .hero-stage{padding:70px 18px 50px}
  .hero-tech-card{width:58px;border-radius:16px;opacity:.9}
  .hero-tech-card--php{left:5%;top:25%}
  .hero-tech-card--js{left:16%;top:39%}
  .hero-tech-card--html{left:7%;top:65%}
  .hero-tech-card--css{left:22%;top:75%}
  .hero-tech-card--wordpress{right:5%;top:24%}
  .hero-tech-card--github{right:16%;top:39%}
  .hero-tech-card--google{right:7%;top:65%}
  .hero-tech-card--cloudflare{right:22%;top:75%}
}
@media(max-width:767px){
  .language-switch{margin-inline-start:auto}
  .hero-shell{
    width:100vw;
    max-width:100vw;
    min-height:500px;
    margin-top:0;
    margin-bottom:2.25rem;
    margin-left:calc(50% - 50vw);
    margin-right:calc(50% - 50vw);
  }
  .hero-stage{width:100%;padding:66px 10px 42px}
  .hero-center{width:min(100%,560px)}
  .hero-wordmark{font-size:clamp(3.25rem,18vw,5.2rem)}
  .hero-kicker{font-size:.68rem;margin-bottom:1rem}
  .hero-title-statement{max-width:88%;margin-top:1.15rem;font-size:.9rem;line-height:1.75}
  .hero-actions{margin-top:1.15rem}
  .hero-button{min-height:36px;padding:.54rem .82rem;font-size:.73rem}
  .hero-tech-card{width:48px;border-radius:14px;opacity:.82}
  .hero-tech-card--php{left:1%;top:20%}
  .hero-tech-card--js{left:8%;top:35%}
  .hero-tech-card--html{left:2%;top:69%}
  .hero-tech-card--css{left:18%;top:79%}
  .hero-tech-card--wordpress{right:1%;top:20%}
  .hero-tech-card--github{right:8%;top:35%}
  .hero-tech-card--google{right:2%;top:69%}
  .hero-tech-card--cloudflare{right:18%;top:79%}
}
@media(max-width:480px){
  .hero-shell{min-height:465px}
  .hero-stage{padding-inline:4px}
  .hero-tech-card--js,.hero-tech-card--github{display:none}
  .hero-tech-card--php{left:0;top:24%}
  .hero-tech-card--html{left:2%;top:72%}
  .hero-tech-card--css{left:20%;top:82%}
  .hero-tech-card--wordpress{right:0;top:24%}
  .hero-tech-card--google{right:2%;top:72%}
  .hero-tech-card--cloudflare{right:20%;top:82%}
}
@media(prefers-reduced-motion:reduce){
  .hero-tech-card,.hero-button{animation:none!important;transition:none!important}
}
[dir="ltr"] .text-right{text-align:left}
[dir="ltr"] .md\:text-right{text-align:left}
[dir="ltr"] .md\:text-left{text-align:right}
[dir="ltr"] .ml-2{margin-left:0;margin-right:.5rem}
