@font-face {
  font-family: "IRANSans";
  src:
    url(../fonts/woff2/IRANSansWeb_Light.woff2) format("woff2"),
    url(../fonts/woff/IRANSansWeb_Light.woff) format("woff");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IRANSans";
  src:
    url(../fonts/woff2/IRANSansWeb.woff2) format("woff2"),
    url(../fonts/woff/IRANSansWeb.woff) format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IRANSans";
  src:
    url(../fonts/woff2/IRANSansWeb_Medium.woff2) format("woff2"),
    url(../fonts/woff/IRANSansWeb_Medium.woff) format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IRANSans";
  src:
    url(../fonts/woff2/IRANSansWeb_Bold.woff2) format("woff2"),
    url(../fonts/woff/IRANSansWeb_Bold.woff) format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "IRANSans";
}
:root {
  --priemrey: #a551ff;
  --secondary: #200543;
  --background: #05010b;
  --headerbg: #00000050;
  --herobg1: #00000060;
  --herobg2: #b81c00;
  --rgbferst3: #462c7d;
  --rgbferst4: #831c91;
  --rgbferst5: #d552a3;
  --rgbferst6: #00d9ff;
  --rgbferst7: #6f00ff;
  --rgbferst8: #dd00ff;
  --rgbsolar-sistem1: #6f00ff;
  --rgbsolar-sistem2: #cc00ff;
  --rgbsolar-sistem3: #2b0056;
  --rgbsolar-sistem4: #45454540;
  --myskill1: #2a125440;
  --myskill2: #2b0056;
  --myskill3: rgba(30, 41, 59, 0.8);
  --myskill4: #ffffff70;
  --myskillicon: #f200ff32;
  --khat: #8400ff;
  --footer: #2b0056a2;
  --text: #ffffff;
  --accent: #000;
}
body {
  width: 100%;
  max-height: 95%;
  background-color: var(--background);
  display: flex;
  flex-direction: column;
}
html {
  scroll-behavior: smooth;
}
.mainheader {
  width: 100%;
  background-color: var(--headerbg);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  position: fixed;
  z-index: 100;
}
.headlogo {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}
.headlogo img {
  width: 70px;
  height: 45px;
  margin-left: 24px;
}
.headlogo p {
  color: var(--text);
  font-weight: 600;
  font-size: 1.5rem;
}
.headmenu {
  background-color: var(--herobg1);
  padding: 10px 40px;
  border-radius: 24px;
  backdrop-filter: blur(10px);
}
.headmenu ul {
  display: flex;
  gap: 150px;
  list-style-type: none;
}
.headmenu ul a {
  text-decoration: none;
  color: var(--text);
  transition: all ease 0.5s;
}
.headmenu ul a:hover {
  color: var(--priemrey);
  background: linear-gradient(45deg, #a600ff, #0099ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.headmenu ul li {
  transition: all ease 0.5s;
}
.headmenu ul li:hover {
  transform: scale(1.2);
}
.headsocialicon {
  width: 150px;
  height: 60px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-right: 100px;
}
.headsocialicon .img1 {
  width: 60px;
  height: 60px;
  transition: all ease 0.5s;
}
.headsocialicon .img1:hover {
  transform: scale(1.2);
}
.headsocialicon .img2 {
  width: 33px;
  height: 33px;
  margin-left: 16px;
  transition: all ease 0.5s;
}
.headsocialicon .img2:hover {
  transform: scale(1.2);
}
.headsocialicon .img3 {
  width: 30px;
  height: 28px;

  transition: all ease 0.5s;
}
.headsocialicon .img3:hover {
  transform: scale(1.2);
}
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.background-video {
  position: absolute;
  top: -80%;
  left: 0;
  width: 100%;
  height: 180%;
  object-fit: cover;
  z-index: 1;
  pointer-events: none;
  transform: rotate(180deg);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 2;
}
.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: row-reverse;
  width: 90%;
  max-width: 1200px;
  margin-right: 250px;
  gap: 3rem;
  padding: 2rem 0;
}
.hero-contenttext {
  position: absolute;
  top: 30%;
  right: 5%;
  z-index: 10;
  color: var(--text);
  text-align: right;
}
.hero-content h1 {
  font-size: 3.5rem;
}
.hero-content span {
  background: linear-gradient(
    45deg,
    var(--rgbferst6),
    var(--rgbferst7),
    var(--rgbferst8)
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-content p {
  font-size: 1.5rem;
  margin-right: 10px;
  margin-top: 24px;
}
.hero-content mark {
  padding: 8px 16px;
  border-radius: 16px;
  background: linear-gradient(
    45deg,
    var(--rgbferst3),
    var(--rgbferst4),
    var(--rgbferst5)
  );
  color: var(--text);
}
.hero-content .p2 {
  font-size: 1rem;
  margin-top: 64px;
}
.hero-contentimg img {
  width: 400px;
  height: 400px;
  position: absolute;
  top: 28%;
  left: 10%;
  border-radius: 25px;
  border: 2px solid rgba(138, 43, 226, 0.3);
  transition: transform 0.5s ease;
  transform: rotate(-5deg);
  z-index: 10;
}
.hero-contentimg img:hover {
  transform: scale(1.1);
}
/* ============== ساختار اصلی (بدون تغییر اندازه) ============== */
.solar-system-header {
  width: 100%;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden; /* برای مخفی کردن ستاره‌ها و شهاب‌سنگ‌ها خارج کادر */
}

.solar-system-head {
  padding: 32px;
  display: flex;
  justify-content: center;
  border-radius: 16px;
  font-size: 1.5rem;
  margin-top: 82px;
  position: relative;
  z-index: 5;
}

.solar-system-head h2 {
  background: linear-gradient(
    45deg,
    var(--rgbferst6),
    var(--rgbferst7),
    var(--rgbferst8)
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 30px rgba(180, 140, 255, 0.4);
}

.solar-system-head-menu {
  width: 60%;
  padding: 20px;
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  font-size: 1.2rem;
  background-color: var(--rgbsolar-sistem3);
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  border: 2px solid var(--khat);
  position: relative;
  z-index: 5;
}

.solar-system-head-menu a {
  text-decoration: none;
  color: var(--text);
  transition: all ease 0.5s;
}

.solar-system-head-menu a:hover {
  transform: scale(1.1);
  background-color: #685080;
  padding: 2px 14px;
  border-radius: 20px;
  box-shadow: 0 0 20px rgba(120, 80, 200, 0.6);
}

.solar-system {
  width: 100%;
  height: 350vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  position: relative;

  /* 🌌 افکت شیشه‌ای + ستاره‌های متحرک چندلایه برای کل بخش */
  background:
    radial-gradient(1px 1px at 20% 30%, #fff, transparent),
    radial-gradient(1px 1px at 40% 70%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 60% 20%, #fff, transparent),
    radial-gradient(1px 1px at 80% 50%, #fff, transparent),
    radial-gradient(1px 1px at 10% 80%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 90% 10%, #fff, transparent),
    radial-gradient(1px 1px at 50% 90%, #fff, transparent),
    radial-gradient(1px 1px at 30% 50%, #fff, transparent),
    radial-gradient(1px 1px at 70% 40%, #fff, transparent),
    radial-gradient(2px 2px at 15% 15%, #b388ff, transparent),
    radial-gradient(2px 2px at 85% 85%, #7c4dff, transparent);
  background-size:
    200px 200px,
    300px 300px,
    250px 250px,
    400px 400px,
    350px 350px,
    500px 500px,
    450px 450px,
    280px 280px,
    320px 320px,
    600px 600px,
    700px 700px;
  animation: starsMove 60s linear infinite;
}

/* 🌌 حرکت ستاره‌ها */
@keyframes starsMove {
  from {
    background-position:
      0 0,
      0 0,
      0 0,
      0 0,
      0 0,
      0 0,
      0 0,
      0 0,
      0 0,
      0 0,
      0 0;
  }
  to {
    background-position:
      200px 200px,
      -300px 300px,
      250px -250px,
      -400px 400px,
      350px 350px,
      -500px 500px,
      450px -450px,
      -280px 280px,
      320px -320px,
      -600px 600px,
      700px 700px;
  }
}

.khat1 {
  width: 95%;
  border: 2px solid var(--khat);
  margin-bottom: 32px;
  position: relative;
  z-index: 5;
  box-shadow: 0 0 10px rgba(150, 100, 255, 0.3);
}

.khat2 {
  width: 100%;
  border: 2px solid var(--khat);
  margin: 16px;
  box-shadow: 0 0 8px rgba(150, 100, 255, 0.25);
}

.solar-system-myprojects-img {
  width: 100%;
  height: 100%;
  z-index: 30;
  position: relative;
}

.box {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  gap: 150px;
  width: 100%;
  height: 18%;
  margin-top: 24px;
  position: relative;
  z-index: 5;
}

/* 🔮 افکت شیشه‌ای (Glassmorphism) برای کارت‌ها */
.projebox {
  background: rgba(20, 15, 50, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 4px solid var(--secondary);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px;
  width: 25%;
  height: 80%;
  border-radius: 24px;
  box-shadow:
    0 0 30px rgba(120, 60, 255, 0.25),
    inset 0 0 20px rgba(180, 140, 255, 0.08);
  transition: all 0.4s ease;

  /* 🛸 شناور بودن کارت‌ها در فضا */
  animation: spaceCard 6s ease-in-out infinite alternate;
}

.projebox:hover {
  box-shadow:
    0 0 50px rgba(180, 120, 255, 0.55),
    inset 0 0 25px rgba(180, 140, 255, 0.15);
  transform: scale(1.03);
}

/* تفاوت زمان شناور بودن برای هر کارت (طبیعی‌تر) */
.box:nth-child(1) .projebox {
  animation-duration: 5.5s;
  animation-delay: 0s;
}
.box:nth-child(2) .projebox {
  animation-duration: 6.5s;
  animation-delay: 0.5s;
}
.box:nth-child(3) .projebox {
  animation-duration: 5s;
  animation-delay: 1s;
}
.box:nth-child(4) .projebox {
  animation-duration: 7s;
  animation-delay: 0.3s;
}
.box:nth-child(5) .projebox {
  animation-duration: 6s;
  animation-delay: 0.8s;
}

@keyframes spaceCard {
  from {
    transform: translateY(0) rotate(0);
  }
  to {
    transform: translateY(-15px) rotate(calc(var(20deg) + 2deg));
  }
}

.projebox .titel {
  color: var(--text);
  font-size: 1.4rem;
  font-weight: 500;
  text-shadow: 0 0 12px rgba(180, 140, 255, 0.5);
}

.projebox .bodyimg {
  width: 100%;
  height: 75%;
}

.bodyimg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

/* 🪐 سیاره شناور + ✨ هاله نور تپش‌دار */
.solar-img {
  animation: updown 10s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 40px #7c4dff);
}

.solar-img img {
  animation:
    rotate 70s linear infinite,
    glow 3s ease-in-out infinite;
}

/* تفاوت زمان شناور برای هر سیاره */
.box:nth-child(1) .solar-img {
  animation-duration: 3.5s;
}
.box:nth-child(2) .solar-img {
  animation-duration: 4s;
  animation-delay: 0.5s;
}
.box:nth-child(3) .solar-img {
  animation-duration: 3s;
  animation-delay: 1s;
}
.box:nth-child(4) .solar-img {
  animation-duration: 4.5s;
  animation-delay: 0.2s;
}
.box:nth-child(5) .solar-img {
  animation-duration: 3.2s;
  animation-delay: 0.7s;
}

@keyframes rotate {
  from {
    transform: rotate(0);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes updown {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-60px);
  }
}

/* ✨ تپش نور سیاره */
@keyframes glow {
  0%,
  100% {
    filter: drop-shadow(0 0 200px #8800ff3f);
  }
  50% {
    filter: drop-shadow(0 0 200px #009dff21);
  }
}

/* 🌠 شهاب‌سنگ‌ها */
.meteor {
  position: absolute;
  width: 120px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #fff);
  border-radius: 50%;
  opacity: 0;
  z-index: 2;
  pointer-events: none;
}

.meteor-1 {
  top: 10%;
  left: -150px;
  animation: meteorFly 5s linear infinite;
  animation-delay: 0s;
}
.meteor-2 {
  top: 35%;
  left: -150px;
  animation: meteorFly 7s linear infinite;
  animation-delay: 2s;
}

.meteor-3 {
  top: 60%;
  left: -150px;
  animation: meteorFly 6s linear infinite;
  animation-delay: 4s;
}
.meteor-4 {
  top: 80%;
  left: -150px;
  animation: meteorFly 4s linear infinite;
  animation-delay: 6s;
}
@keyframes meteorFly {
  0% {
    transform: translate(0, 0) rotate(10deg);
    opacity: 1;
  }
  50% {
    transform: translate(120vw, 40vh);
    opacity: 1;
  }
  100% {
    transform: translate(120vw, 40vh) rotate(10deg);
    opacity: 0;
  }
}

/* دکمه ادامه */
.seemore {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 10vh;
  position: relative;
  z-index: 5;
}

.boxseemore {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  border: 4px solid var(--secondary);
  width: 12%;
  height: 100%;
  border-radius: 16px;
  background: rgba(20, 15, 50, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 0 25px rgba(120, 60, 255, 0.3);
  transition: all 0.4s ease;
}

.boxseemore:hover {
  box-shadow: 0 0 45px rgba(180, 120, 255, 0.6);
  transform: translateY(-5px);
}

.boxseemore a {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  text-decoration: none;
}

.boxseemore a p {
  font-size: 2rem;
  color: var(--text);
  margin-left: 16px;
  text-shadow: 0 0 10px rgba(180, 140, 255, 0.5);
}

.boxseemore a img {
  width: 30px;
  height: 30px;
  transform: rotate(180deg);
  filter: drop-shadow(0 0 6px #b388ff);
}

.skills-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  flex-wrap: wrap;
  direction: ltr;
  gap: 32px;
}
.skill-card {
  background: linear-gradient(145deg, var(--myskill2) 0%, var(--myskill1) 100%);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: 20px;
  padding: 30px;
  width: 450px;
  margin-top: 100px;
  backdrop-filter: blur(10px);
  transition: all ease 0.5s;
}
.skill-card:hover {
  box-shadow: 0 0 100px rgba(208, 0, 255, 0.55);
  transform: scale(1.01);
}
.card-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
}
.icon-box {
  width: 50px;
  height: 50px;
  background: var(--myskillicon);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.icon-box svg {
  width: 28px;
  height: 28px;
  fill: #22d3ee;
}
.card-title {
  color: var(--text);
  font-size: 1.8rem;
  font-weight: 700;
}
.skill-item {
  margin-bottom: 25px;
}
.skill-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.skill-name {
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
}
.skill-percentage {
  color: var(--myskill4);
  font-size: 14px;
  font-weight: 600;
}
.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--myskill3);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #ee22ee 0%, #5900ff 100%);
  border-radius: 10px;
  position: relative;
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.5);
  animation: fillProgress 1.5s ease-out forwards;
  width: 0;
}
@keyframes fillProgress {
  to {
    width: var(--progress);
  }
}
.programming-icon::before {
  content: "</>";
  color: #22d3ee;
  font-size: 24px;
  font-weight: bold;
}
.ai-icon::before {
  content: "🧠";
  font-size: 24px;
}
.design-icon::before {
  content: "🎨";
  font-size: 24px;
}
/* =========================================
   Footer Styles
   ========================================= */
.footer {
  position: relative;
  width: 100%;
  background-color: var(--footer);
  backdrop-filter: blur(15px);
  border-top: 2px solid var(--khat);
  padding: 60px 0 20px;
  margin-top: 100px;
  overflow: hidden;
  direction: rtl;
}

/* افکت درخشش بالای فوتر */
.footer-glow {
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 100px;
  background: radial-gradient(
    ellipse at center,
    var(--priemrey) 0%,
    transparent 70%
  );
  opacity: 0.3;
  pointer-events: none;
  z-index: 0;
}

.footer-container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* بخش دعوت به همکاری */
.footer-cta {
  text-align: center;
  margin-bottom: 50px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-cta h3 {
  color: var(--text);
  font-size: 1.8rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.cta-button {
  display: inline-block;
  padding: 12px 32px;
  background: linear-gradient(45deg, var(--rgbferst7), var(--rgbferst8));
  color: var(--text);
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(111, 0, 255, 0.4);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(111, 0, 255, 0.6);
}

/* گرید محتوای فوتر */
.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-col h4 {
  color: var(--text);
  font-size: 1.3rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

/* خط زیر عنوان ستون‌ها */
.footer-col h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--rgbferst6), var(--rgbferst7));
  border-radius: 2px;
}

.footer-col p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  line-height: 1.8;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}

.footer-logo img {
  width: 50px;
  height: auto;
}

.footer-logo span {
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 700;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
}

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s ease;
}

/* افکت هاور لینک‌ها در حالت RTL */
.footer-col ul li a:hover {
  color: var(--priemrey);
  padding-right: 8px;
}

/* آیکون‌های شبکه‌های اجتماعی */
.social-links {
  display: flex;
  gap: 15px;
}

.social-icon {
  width: 45px;
  height: 45px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.social-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}
.social-icon .img1 {
  width: 50px;
  height: 50px;
}

.social-icon:hover {
  background-color: var(--priemrey);
  border-color: var(--priemrey);
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(165, 81, 255, 0.4);
}

/* بخش پایینی کپی‌رایت */
.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-bottom .highlight {
  color: var(--priemrey);
  font-weight: 700;
}
.arrow {
  position: relative;
}
.arrow img {
  width: 60px;
  height: 60px;
  position: fixed;
  bottom: 32px;
  left: 32px;
  z-index: 100;
}
/* =========================================
   Responsive Design
   ========================================= */

/* تبلت */
@media (max-width: 992px) {
  .headlogo p {
    font-size: 1.2rem;
  }
  .headlogo img {
    width: 55px;
    height: 35px;
  }
  .headmenu ul {
    gap: 40px;
  }
  .headsocialicon {
    margin-right: 15px;
    width: auto;
  }
  .headsocialicon .img1 {
    width: 45px;
    height: 45px;
  }
  .headsocialicon .img2 {
    width: 28px;
    height: 28px;
  }
  .headsocialicon .img3 {
    width: 25px;
    height: 23px;
  }
  .hero-content {
    margin-right: 50px;
  }
  .hero-content h1 {
    font-size: 2.5rem;
  }
  .hero-contentimg img {
    width: 280px;
    height: 280px;
    left: 5%;
  }
  .solar-system-head-menu {
    width: 80%;
    font-size: 1rem;
  }
  .box {
    flex-direction: column;
    gap: 40px;
    height: auto;
    margin-bottom: 30px;
  }

  .projebox {
    width: 60%;
    height: auto;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    transform: rotate(0deg) !important;
    animation: none !important;
  }
  .solar-img {
    width: 100px;
    height: 100px;
    filter: drop-shadow(0 0 10px #7c4dff);
  }

  .boxseemore {
    width: 25%;
  }
  .skill-card {
    width: 100%;
    max-width: 450px;
  }
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

/* موبایل */
@media (max-width: 768px) {
  .mainheader {
    display: flex;
    flex-direction: column;
    gap: 5px;
  }
  .headlogo {
    width: 100%;
    justify-content: center;
  }
  .headmenu {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    padding: 8px;
    width: 80%;
    margin-bottom: 16px;
  }
  .headmenu ul {
    font-size: 1rem;
  }
  .headsocialicon {
    display: none !important;
  }
  .background-video {
    position: absolute;
    top: -40%;
    width: 100%;
    height: 120%;
  }
  .hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 75vh;
  }
  .hero-content {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    z-index: 10;
  }
  .hero-contenttext {
    display: flex;
    flex-direction: column;
    width: 100%;
  }
  .hero-contenttext h1 {
    padding: 0;
    font-size: 1.8rem !important;
    font-weight: 600;
    width: 100%;
    margin-top: 50px;
  }
  .hero-content p {
    font-size: 1rem;
    margin: 16px 0;
  }
  .hero-content p mark {
    padding: 4px;
    border-radius: 8px;
  }
  .hero-content .p2 {
    font-size: 0.8rem;
    margin-top: 110px;
    padding: 0 0 0 80px !important;
  }
  .hero-contentimg img {
    margin:  130px 0 0 8px;
    width: 150px !important;
    height: 150px !important;
  }
  .solar-system-head h2 {
    font-size: 1.5rem;
  }
  .solar-system-head{
    padding-top: 0;
  }
  .solar-system-head-menu {
    width: 100%;
    flex-direction: row;
    gap: 15px;
    padding: 15px;
    margin-bottom: 24px;
    border-radius: 24px !important;
  }
  .khat1 {
    display: none;
  }
  .solar-system-head-menu a {
    background-color: var(--rgbsolar-sistem4);
    border-radius: 16px;
  }
  .solar-system {
    height: auto;
  }

  /* ✅ فقط صاف کردن باکس، بدون انیمیشن */
  .projebox {
    width: 85%;
    min-height: 50vh;
    transform: rotate(0deg) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    background-color: var(--rgbsolar-sistem4);
    box-shadow: 0 0 20px rgba(120, 60, 255, 0.2);
    transition: all 0.3s ease;
    animation: none !important;
  }

  .projebox:hover {
    box-shadow: 0 0 100px rgba(120, 60, 255, 0.2);
  }

  /* ✅ فعال‌سازی انیمیشن سیاره‌ها */
  .solar-img {
    animation: updown 4s ease-in-out infinite alternate !important;
    filter: drop-shadow(0 0 20px #7c4dff);
    margin-top: -100px;
  }
  .solar-img img {
    animation:
      rotate 40s linear infinite,
      glow 3s ease-in-out infinite !important;
  }

  /* ✅ فعال‌سازی شهاب‌سنگ‌ها */
  .meteor {
    display: block !important;
    animation: meteorFly 6s linear infinite !important;
  }

  /* ✅ فعال‌سازی حرکت ستاره‌های پس‌زمینه */
  .solar-system {
    animation: starsMove 60s linear infinite !important;
  }

  .boxseemore {
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    background-color: var(--rgbsolar-sistem4);
  }
  .boxseemore a p {
    font-size: 1.2rem;
  }
  .skills-container {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  .skill-card {
    width: 95%;
    max-width: 500px;
    padding: 20px;
    margin-top: 50px;
  }
  .card-title {
    font-size: 1.5rem;
  }
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-col h4::after {
    right: 50%;
    transform: translateX(50%);
  }
  .footer-col ul li {
    justify-content: center;
  }
  .footer-col ul li a:hover {
    padding-right: 0;
    padding-left: 8px;
  }
  .social-links {
    justify-content: center;
  }
  .footer-logo {
    justify-content: center;
  }
  .footer-cta h3 {
    font-size: 1.4rem;
  }
  .arrow img {
    width: 50px;
    height: 50px;
  }
}

/* موبایل کوچک */
@media (max-width: 576px) {
  .headlogo p {
    font-size: 1rem;
  }
  .headlogo img {
    width: 45px;
    height: 30px;
    margin-left: 10px;
  }
  .headmenu ul {
    gap: 15px;
    font-size: 0.85rem;
  }
  .hero-content h1 {
    font-size: 1.6rem;
  }
  .hero-contentimg img {
    width: 180px;
    height: 180px;
  }

  .projebox {
    width: 95%;
    transform: rotate(0deg) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    background-color: var(--rgbsolar-sistem4);
    box-shadow: 0 0 15px rgba(120, 60, 255, 0.15);
    transition: all 0.3s ease;
    animation: none !important;
  }
  .projebox .titel {
    font-size: 1.1rem;
    text-shadow: none;
  }

  .boxseemore {
    width: 70%;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    background-color: var(--rgbsolar-sistem4);
    box-shadow: 0 0 15px rgba(120, 60, 255, 0.15);
  }
  .boxseemore a p {
    text-shadow: none;
  }
  .khat2 {
    box-shadow: none;
  }
  .skill-card {
    width: 95%;
  }
  .skill-name {
    font-size: 13px;
  }
  .skill-percentage {
    font-size: 12px;
  }
  .footer-cta h3 {
    font-size: 1.2rem;
  }
  .cta-button {
    font-size: 1rem;
    padding: 10px 24px;
  }
}

/* موبایل خیلی کوچک */
@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.4rem;
  }
  .hero-contentimg img {
    width: 150px;
    height: 150px;
  }
  .hero-content mark {
    font-size: 0.9rem;
    padding: 6px 12px;
  }
  .projebox {
    width: 95%;
    transform: rotate(0deg) !important;
    backdrop-filter: blur(5px) !important;
    -webkit-backdrop-filter: blur(5px) !important;
    background-color: var(--rgbsolar-sistem4);
    box-shadow: 0 0 10px rgba(120, 60, 255, 0.1);
    animation: none !important;
  }
  .boxseemore {
    width: 90%;
    backdrop-filter: blur(5px) !important;
    -webkit-backdrop-filter: blur(5px) !important;
    background-color: var(--rgbsolar-sistem4);
    box-shadow: 0 0 10px rgba(120, 60, 255, 0.1);
  }
}

/* =========================================
   Keyframes
   ========================================= */

@keyframes starsMove {
  from {
    background-position:
      0 0,
      0 0,
      0 0,
      0 0,
      0 0,
      0 0,
      0 0,
      0 0,
      0 0,
      0 0,
      0 0;
  }
  to {
    background-position:
      200px 200px,
      -300px 300px,
      250px -250px,
      -400px 400px,
      350px 350px,
      -500px 500px,
      450px -450px,
      -280px 280px,
      320px -320px,
      -600px 600px,
      700px 700px;
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes updown {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-30px);
  }
}

@keyframes glow {
  0%,
  100% {
    filter: drop-shadow(0 0 20px #8800ff3f);
  }
  50% {
    filter: drop-shadow(0 0 30px #009dff40);
  }
}

@keyframes meteorFly {
  0% {
    transform: translate(0, 0) rotate(20deg);
    opacity: 1;
  }
  50% {
    transform: translate(150vw, 40vh) rotate(20deg);
    opacity: 1;
  }
  100% {
    transform: translate(120vw, 40vh) rotate(20deg);
    opacity: 0;
  }
}
