/* General Style Css */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  color: white;
  scroll-behavior: smooth;
}

body {
  background-color: black;
  font-family: sans-serif;
}

ul {
  list-style-type: none;
}

a {
  text-decoration: none;
}

#particleCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  display: block;
}

body > *:not(#particleCanvas) {
  position: relative;
  z-index: 1;
}

/* Header Style Css */

.container-header {
  display: flex;
  justify-content: space-around;
  text-align: center;
  margin: 10px 0;
  padding: 20px;
}

/* Header Button */

.container-header .navbar-header {
  display: flex;
  gap: 30px;
}

.container-header .btn-contact {
  font-weight: bold;
  position: relative;
  transition: color 0.5s;
}

/* Button Border Button Orange */
.container-header .btn-contact::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  background: orange;
  transition: width 0.3s ease;
}

.container-header .btn-contact:hover {
  color: rgba(255, 166, 0, 0.671);
}

.container-header .btn-contact:hover::after {
  width: 100%;
}

.container-header .nickname {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: bold;
  font-size: 20px;
  color: orange;
  text-shadow: 2px 3px 4px #f06529;
}

/* Media Query Mobile */

@media only screen and (max-width: 992px) {
  .container-header {
    display: flex;
    flex-direction: column;
    line-height: 2;
    text-align: center;
    align-items: center;
  }

  .container-header .nickname {
    width: 25%;
    margin: 0 auto;
  }
}

/* Hero Style Css */

.hero {
  width: 85%;
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin: 80px auto;
  padding: 100px 0;
  border-radius: 20px;
}

.hero .title {
  font-size: 18px;
  font-weight: bold;
}

.hero .job {
  color: orange;
  font-weight: bold;
}

.hero .image-hero {
  width: 280px;
  border-radius: 10px;
}

.hero .name {
  margin: 5px 0;
  color: greenyellow;
}

.info-hero .bio {
  text-align: center;
  font-weight: 500;
  margin-top: 10px;
}

.info-hero .btn-hero {
  display: flex;
  margin: 30px 70px 0;
  gap: 25px;
  text-align: center;
}

.btn-hero .btn-hero-link {
  font-size: 30px;
  transition: transform 2s ease;
  transform: translateY(5px);
}

.btn-hero .btn-hero-link:hover {
  color: orange;
  animation: rotate 1.3s ease 1;
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Media Query Mobile */

@media only screen and (max-width: 992px) {
  .hero {
    width: 95%;
    margin: 10px 0;
    text-align: center;
    display: flex;
    flex-direction: column;
  }
  .hero .image-hero {
    width: 200px;
    margin: 20px 0 0;
    padding: 40px 0 0;
  }
}

/* About Me Style Css */

.about-me {
  width: 85%;
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 80px;
  margin: 75px auto;
  padding: 100px 0;
  border-radius: 20px;
}

.about-me .image-hero {
  width: 280px;
  border-radius: 10px;
}

.info-about-me .title-about {
  font-size: 32px;
  color: chartreuse;
}

.about-me .info-about-me {
  width: 50%;
  line-height: 2.5;
}

.btns-about {
  display: flex;
  justify-content: flex-end;
}

.info-about-me .btn-info-about {
  color: chartreuse;
  padding: 5px;
  font-weight: bold;
  border-radius: 20px;
  box-shadow: 1px 2px 3px rgba(107, 106, 104, 0.2);
}

.btn-info-about:active {
  box-shadow: none;
}

/* Media Query Mobile */

@media only screen and (max-width: 992px) {
  .about-me {
    display: flex;
    flex-direction: column;
  }

  .about-me .image-hero {
    width: 200px;
    margin: 20px 0 0;
  }

  .about-me .info-about-me {
    width: 95%;
  }
}

/* Services Style Css */

.services-title {
  text-align: center;
  margin: 40px 0 20px;
}

.services {
  width: 66%;
  margin: 50px auto 70px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.services-icon {
  font-size: 30px;
}

.service-item {
  cursor: pointer;
  width: 400px;
  margin: 20px 0;
  padding: 40px 0;
  text-align: center;
  border-radius: 15px;
  transition: 0.5s;
}

.service-item:hover {
  transform: translateY(-2px);
  box-shadow:
    0 1px 1px rgba(255, 123, 0, 0.2),
    inset 1px 2px 3px rgba(255, 123, 0, 0.2);
}

.service-item:hover .services-icon {
  color: yellow;
  transform: rotateY(360deg);
  transition: 1.4s;
}

.services .service-title {
  margin: 15px 0;
}

/* Media Query Mobile */

@media only screen and (max-width: 992px) {
  .service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 99%;
  }
}

/* Skills Me Style Css */

.skills-title {
  text-align: center;
  margin: 120px 0 20px;
}

.skill-item {
  margin-bottom: 30px;
}

.skill-item .skill-title {
  direction: ltr;
  width: 59%;
  display: flex;
  justify-content: space-between;
  margin: 5px auto;
  align-items: center;
}

.skill-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #d6def0;
  gap: 10px;
}

.skill-name .icon {
  font-size: 1.3rem;
}

.skill-percent {
  font-size: 1rem;
  font-weight: 700;
  color: #b0c0e8;
}

.progress-track {
  direction: ltr;
  width: 60%;
  height: 10px;
  margin: 0 auto;
  background: #1e2440;
  border-radius: 50px;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
}

.progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 50px;
  transition: width 1.8s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.15);
}

/* ----- رنگ‌های اختصاصی هر مهارت ----- */
.fill-html {
  background: linear-gradient(90deg, #e34c26, #f06529);
}
.fill-css {
  background: linear-gradient(90deg, #264de4, #2965f1);
}
.fill-js {
  background: linear-gradient(90deg, #f7df1e, #f0b800);
}
.fill-py {
  background: linear-gradient(90deg, #3776ab, #4d8fc5);
}
.fill-react {
  background: linear-gradient(90deg, #61dafb, #00b4d8);
}
.fill-git {
  background: linear-gradient(90deg, #fafafad0, #d3d1d1);
}

/* ----- ریسپانسیو ----- */
@media (max-width: 600px) {
  .skills-section {
    padding: 28px 20px;
  }
  .skills-section h2 {
    font-size: 1.7rem;
  }
  .skill-name {
    font-size: 0.95rem;
  }
}

/* Xp Me Style Css */

.xp-me {
  width: 70%;
  display: flex;
  justify-content: space-around;
  margin: 20px auto 40px;
  padding: 50px 0;
  align-items: center;
}

.xp-me .xp {
  font-size: 20px;
  font-weight: bold;
}

.xp-me .xp-items {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

/* Media Query Style Css */

@media only screen and (max-width: 992px) {
  .xp-me {
    display: flex;
    flex-direction: column;
    gap: 50px;
  }
}

/* ===== ریست و استایل پایه ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ===== Footer Style Css ===== */

#footer {
  color: #e0e0e0;
  padding: 3rem 1.5rem 1.5rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* ===== Title Footer Style Css ===== */

.footer-title {
  font-size: 1.1rem;
  font-weight: bold;
  color: #f59e0b;
  margin-bottom: 0.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

/* ===== Footer Links Style Css ===== */

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-links li {
  line-height: 1.7;
}

.footer-links a {
  font-size: 0.9rem;
  position: relative;
  display: inline-block;
  transition: 0.3s;
  padding: 0.15rem 0;
}

/* ===== Link Effect Style Css ===== */

.footer-links a::before {
  content: "›";
  margin-left: 6px;
  color: var(--footer-title-color);
  opacity: 0;
  transform: translateX(-8px);
  transition: all var(--footer-link-transition);
  display: inline-block;
}

.footer-links a:hover {
  color: orange;
  transform: translateX(-4px);
}

.footer-links a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

/* ===== Copy Right Style Css ===== */

.footer-copyright {
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.7;
  padding-top: 0.5rem;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.footer-separator {
  opacity: 0.3;
  user-select: none;
}

/* ===== Media Query Mobile Footer ===== */

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .footer-title::after {
    width: 30px;
  }
}

/* Small Mobile */
@media (max-width: 576px) {
  :root {
    --footer-padding: 2rem 1rem 1rem;
    --footer-gap: 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-title {
    font-size: 1rem;
  }

  .footer-title::after {
    width: 30px;
  }

  .footer-links a {
    font-size: 0.85rem;
  }

  .footer-copyright {
    font-size: 0.75rem;
    flex-direction: column;
    gap: 0.25rem;
  }

  .footer-separator {
    display: none;
  }
}

/* ===== Hover Mb ===== */
@media (hover: none) {
  .footer-links a::before {
    opacity: 1;
    transform: translateX(0);
    margin-left: 4px;
  }

  .footer-links a:hover {
    transform: none;
  }

  .footer-cta:hover {
    transform: scale(1) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
