* {
  box-sizing: border-box;
}

::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-thumb {
  background-color: #ffffff;
  border-radius: 10px;
  border: 3px solid #333;
}

::-webkit-scrollbar-track {
  background-color: #333;
  border-radius: 10px;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
}

/* بک گراند متحرک */

#hero-placeholder {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 200px;
  z-index: 1;
  overflow: hidden;
}

/* بک گراند متحرک */

#starfield {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
}

.star {
  position: absolute;
  background-color: white;
  border-radius: 50%;
  opacity: 0.5;
  animation: twinkle infinite alternate;
}

@keyframes twinkle {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* هدر */

header {
  margin-top: 300px;
  position: relative;
  z-index: 2;
  padding: 20px 0;
  text-align: center;
}

header, section, footer {
  position: relative;
  z-index: 2;
}

section {
  position: relative;
  z-index: 1;
  padding: 100px 0;
  text-align: center;
  color: white;
}

section, header {
  scroll-snap-align: center;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #1a1a1a;
  color: #fff;
  overflow-x: hidden;
  cursor: default !important;
}

html, body {
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  height: 100%;
  overflow-y: auto;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* پیش فرض ها */

.profile {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.profile-img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  margin-right: 20px;
  object-fit: cover;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
  animation: glowing 2s infinite alternate;
}

@keyframes glowing {
  0% {
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.6), 0 0 20px rgba(255, 255, 255, 0.6);
  }
  50% {
    box-shadow: 0 0 20px rgb(255, 255, 255), 0 0 40px rgb(255, 255, 255);
  }
  100% {
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.6), 0 0 20px rgba(255, 255, 255, 0.6);
  }
}

.intro {
  text-align: center;
  animation: fadeIn 2.5s ease forwards;
  opacity: 0;
}

.intro h1 {
  font-size: 2.5em;
  background: linear-gradient(90deg, #ffffff, #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  letter-spacing: 2px;
  font-weight: 700;
}

.intro p {
  color: #e0e0e0;
  font-size: 1.2em;
  font-weight: 500;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.8;
  letter-spacing: 0.5px;
}

.intro p span {
  color: #e0e0e0;
}

@keyframes highlightColor {
  0% { color: #e0e0e0; }
  50% { color: #000000; }
  100% { color: #e0e0e0; }
}

.highlight {
  animation: highlightColor 1s ease-in-out forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* کلاس متن و عنوان */

.services-list {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  height: 300px;
  text-align: center;
  color: white;
}

.service-item {
  width: 60%;
  padding: 20px;
  text-align: center;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  background-color: #2a2a2a;
  border-radius: 6px;
  border: 4px solid transparent;
  border-color: #ffffff;
  transition: transform 0.9s ease, box-shadow 0.9s ease;
  display: none;
}

.service-item:hover {
  transform: scale(1.005);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.6);
}

.service-item.active {
  display: block;
}

.service-item::before {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
}

.service-item h3 {
  font-size: 2rem;
  color: #ffffff;
  margin-bottom: 10px;
  position: relative;
  padding-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 2px 5px rgba(255, 255, 255, 0.6);
  transition: all 0.9s ease;
}

.service-item h3:hover {
  color: #ffffff;
  text-shadow: 0 4px 15px rgba(255, 255, 255, 0.8);
  transform: scale(1.1);
}

.service-item p {
  color: #ccc;
  line-height: 1.6;
  transition: color 0.9s ease;
  opacity: 0;
  animation: fadeInText 1s ease-in-out forwards;
  text-shadow: 0 2px 5px rgba(255, 255, 255, 0.6);
  font-size: 1.2em;
  font-weight: 600;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.service-item p:hover {
  color: #ffffff;
}

@keyframes fadeInText {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.button-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.toggle-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  background-color: transparent;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 10px #ffffffaa;
  padding: 0;
}

.toggle-btn:hover {
  background-color: #ffffff22;
  box-shadow: 0 0 5px #ffffffcc, 0 0 10px #ffffffaa;
  transform: scale(1.15);
}

.toggle-btn:active {
  transform: scale(1.05);
}

.toggle-btn i {
  margin: 0;
}

.toggle-btn:disabled {
  background-color: #cccccc;
  color: #666666;
  cursor: not-allowed;
  border: 2px solid #999999;
  opacity: 0.6;
}

.toggle-btn:enabled {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

/* بخش سرویس های من */

.hire-armin {
  width: 60%;
  text-align: center;
  background-color: #2a2a2a;
  background-size: 600% 600%;
  padding: 40px;
  border-radius: 6px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: 4px solid transparent;
  margin: 0 auto;
  animation: bgAnimation 15s ease infinite, glowBorder 3s ease-in-out infinite alternate;
}

.hire-armin p {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 600;
  color: #a8ffa8;
  text-shadow: 0 0 5px #ffffffa0;
  font-size: 1.2em;
}

@keyframes bgAnimation {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes glowBorder {
  0%, 100% {
    box-shadow: 0 0 10px 2px #ffffff;
    border-color: #ffffff;
  }
  50% {
    box-shadow: 0 0 20px 4px #ffffff;
    border-color: #ffffff;
  }
}

/* بخش من را استخدام کنید */

:root {
  --primary-color: #c1c1c1ad;
  --secondary-color: #000000;
  --shadow-light: 0 0.2rem 0.4rem rgb(0 0 0 / 25%);
  --shadow-medium: 0 0.2rem 0.6rem rgb(0 0 0 / 35%);
  --shadow-heavy: 0 0.3rem 2rem rgb(0 0 0 / 45%);
  --hover-shadow-light: 0 0.3rem 0.6rem rgb(0 0 0 / 30%);
  --hover-shadow-medium: 0 0.3rem 0.8rem rgb(0 0 0 / 40%);
  --hover-shadow-heavy: 0 0.4rem 2.5rem rgb(0 0 0 / 50%);
  --direction: normal;
  --duration: 10s;
}

.app {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.tag-list {
  width: 100%;
  max-width: 35rem;
  display: flex;
  flex-shrink: 0;
  flex-direction: column;
  gap: 1rem 0;
  position: relative;
  padding: 1.5rem 0;
  overflow: hidden;
}

.loop-slider .inner {
  will-change: transform;
  display: flex;
  width: fit-content;
  animation-name: loop;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-direction: var(--direction);
  animation-duration: var(--duration);
}

.tag {
  display: flex;
  align-items: center;
  gap: 0 0.2rem;
  color: var(--secondary-color);
  background-color: var(--primary-color);
  border-radius: 0.4rem;
  padding: 0.5rem 1.5rem;
  margin-right: 1rem;
  box-shadow: var(--shadow-light), var(--shadow-medium), var(--shadow-heavy);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.tag:hover {
  box-shadow: var(--hover-shadow-light), var(--hover-shadow-medium), var(--hover-shadow-heavy);
  transform: translateY(-2px);
}

.fade {
  pointer-events: none;
  background: linear-gradient(90deg, #1a1a1a, transparent 30%, transparent 70%, #1a1a1a);
  position: absolute;
  inset: 0;
}

@keyframes loop {
  0% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(-25%);
  }
  100% {
    transform: translateX(-50%);
  }
}

.skill-img {
  width: 1.25em;
  height: 1.25em;
}

/* بخش مهارت های من */

.project-carousel {
  position: relative;
  max-width: 400px;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.project-slide-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  border-radius: 10px;
}

.project-slide-track {
  display: flex;
  flex-direction: row;
  transition: transform 0.6s ease;
}

.project-item {
  flex: 0 0 100%;
  background-color: #2a2a2a;
  border-radius: 6px;
  border: 4px solid transparent;
  border-color: #dfdfdf;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(221, 221, 221, 0.4);
  text-align: center;
  color: #ccc;
  box-sizing: border-box;
  transition: transform 0.3s ease;
}

.project-item img {
  opacity: 0.7;
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
}

.project-item h3 {
  color: #c8c8c8;
  font-size: 1.0em;
  margin-bottom: 10px;
}

.project-item p {
  color: #ccc;
  font-size: 1.1em;
  margin-bottom: 10px;
}

.project-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 600px;
  margin: 20px auto 0;
  padding: 0 20px;
  gap: 20px;
}

.arrow {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid #d1d1d1;
  background-color: transparent;
  color: #c5c5c5;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 10px #ddddddaa;
  padding: 0;
}

.arrow.disabled {
  background-color: #cccccc;
  color: #666666;
  cursor: not-allowed;
  border: 2px solid #999999;
  opacity: 0.6;
}

.arrow svg {
  stroke: #e9e9e9;
  transition: stroke 0.3s ease;
  width: 20px;
  height: 20px;
}

.arrow:hover {
  background-color: #ffffff22;
  box-shadow: 0 0 5px #cacacacc, 0 0 10px #b7b7b7aa;
  transform: scale(1.15);
}

.arrow:hover svg {
  stroke: #ffffff;
}

.project-link {
  color: #a5a5a5;
  text-decoration: none;
  font-size: 1em;
  margin-right: 15px;
  border: 1.5px solid #bfbfbf;
  border-radius: 9px;
  padding: 5px 15px;
  background: rgba(0, 40, 0, 0.15);
  transition: 
    background 0.23s cubic-bezier(.45,1.54,.76,1.1),
    color 0.23s,
    box-shadow 0.23s;
  box-shadow: 0 2px 10px #b0b0b025;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 500;
}

.project-link:hover {
  background: #ffffff;
  color: #181818;
  text-decoration: none;
  box-shadow: 0 0 18px #828282, 0 0 20px #b9b9b988;
}

.project-link i {
  font-size: 1.05em;
  margin-left: 5px;
  transition: color 0.2s;
}

.project-link:hover i {
  color: #181818;
}

.project-link2 {
  color: #a5a5a5;
  text-decoration: none;
  font-size: 1em;
  margin-right: 15px;
  border: 1.5px solid #bfbfbf;
  border-radius: 9px;
  padding: 5px 15px;
  background: rgba(0, 40, 0, 0.15);
  transition: 
    background 0.23s cubic-bezier(.45,1.54,.76,1.1),
    color 0.23s,
    box-shadow 0.23s;
  box-shadow: 0 2px 10px #b0b0b025;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 500;
}

.project-link2:hover {
  background: #880000;
  color: #181818;
  text-decoration: none;
  box-shadow: 0 0 18px #828282, 0 0 20px #b9b9b988;
}

.project-link2 i {
  font-size: 1.05em;
  margin-left: 5px;
  transition: color 0.2s;
}

.project-link2:hover i {
  color: #181818;
}

/* بخش پروژه های من */

/* بخش تحصیلات من */

.education-carousel {
  max-width: 600px;
  margin: 30px auto;
  padding: 0 15px;
}

.education-track {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.education-item.active {
  display: block;
}

.education-item {
  display: none;
  background-color: #2a2a2a;
  border-radius: 6px;
  border: 4px solid transparent;
  border-color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 25px 30px;
  transition: box-shadow 0.6s ease, transform 0.6s ease;
  transform: translateY(0);
}

.education-item h3 {
  font-size: 1.5rem;
  color: #a1a1a1;
  margin-bottom: 5px;
  font-weight: 700;
}

.education-item h4 {
  font-size: 1.25rem;
  color: #ffffff;
  margin-bottom: 10px;
  font-weight: 600;
}

.education-item p {
  font-size: 1rem;
  color: #ccc;
  line-height: 1.6;
}

.education-item:hover {
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
  transform: translateY(-5px);
}

.education-track {
  width: 100%;
  position: relative;
}

.education-item.active {
  display: block;
}

/* بخش "درباره من" */

#about-me {
  color: #fff;
  padding: 40px 0;
  text-align: center;
}

#about-me h2 {
  font-size: 2.5em;
  color: #4d4d4d;
}

#about-me p {
  color: #ccc;
  font-size: 1.1em;
  line-height: 1.5;
  max-width: 800px;
  margin: 0 auto;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.about-item {
  background-color: rgba(0, 255, 0, 0.12);
  border: 1.5px solid #ffffff;
  padding: 12px 16px;
  border-radius: 10px;
  color: #e0e0e0;
  background-color: #2a2a2a;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: auto;
  max-width: 100%;
  display: inline-block;
}

.about-item:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

.about-item strong {
  color: #ffffff;
}

/* بخش "چرا من را استخدام کنید" */

#why-hire-me {
  color: #fff;
  padding: 40px 0;
  text-align: center;
}

#why-hire-me h2 {
  font-size: 2.5em;
  color: #ffffff;
}

#why-hire-me p {
  color: #ccc;
  font-size: 1.2em;
  line-height: 1.5;
  max-width: 800px;
  margin: 0 auto;
}

/* بخش "تحصیلات من" */

#education {
  color: #fff;
  padding: 40px 0;
  text-align: center;
}

#education h2 {
  font-size: 2.5em;
  color: #ffffff;
}

#education p {
  color: #ccc;
  font-size: 1.1em;
  line-height: 1.5;
  max-width: 800px;
  margin: 0 auto;
}

/* بخش ارتباط با من */

.contact-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  margin-top: 30px;
  padding: 0 20px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: rgba(0, 0, 0, 0.05);
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #ccc;
  transition: all 0.3s ease;
  max-width: 400px;
  box-shadow: 0 0 10px transparent;
  backdrop-filter: blur(4px);
}

.contact-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.25);
  border-color: #ffffff;
}

.contact-item i {
  color: #ffffff;
  font-size: 1.4em;
  min-width: 26px;
  transition: transform 0.3s ease, color 0.3s ease;
}

.contact-item:hover i {
  transform: scale(1.1);
  color: #ffffff;
}

.contact-item a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 500;
  font-size: 0.95em;
  line-height: 1.3;
}

.contact-item a:hover {
  color: #ffffff;
}

/* فوتر */

.foter-armin {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.foter-armin p {
  font-size: 0.95em;
  margin: 0;
  color: #888;
}

.myskills-p {
  text-align: center;
  width: 100%;
  padding: 3px;
  font-size: 0.9em;
}

/* پایان */

@media (max-width: 480px) {
  #hero-placeholder {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 150px;
    z-index: 1;
    overflow: hidden;
  }
 
  .profile {
    padding: 10px;
  }

  .profile-img {
    width: 180px;
    height: 180px;
  }

  .intro h1 {
    font-size: 1.8em;
  }

  .intro p {
    font-size: 0.9em;
  }

  .service-item {
    width: 90%;
    padding: 12px;
    margin: 0 auto;
  }

  .toggle-btn {
    padding: 7px 10px;
    font-size: 1rem;
  }

  .service-item h3 {
    font-size: 1.1rem;
  }
  
  .service-item p {
    font-size: 0.9em;
  }

  .hire-armin {
    width: 85%;
    padding: 15px;
  }

  .myskills-p {
    text-align: center;
    width: 100%;
    padding: 3px;
    font-size: 0.9em;
  }

  .hire-armin p {
    font-size: 0.8rem !important;
  }

  .skill-item {
    width: 30%;
    padding: 8px 15px;
  }

  .skill-item i {
    font-size: 1.8em;
  }

  #skills p {
    font-size: 0.9em;
  }

  .project-item {
    width: 95%;
    padding: 10px;
    font-size: 0.8em;
  }

  .project-item h3 {
    font-size: 1.1em;
  }

  .project-item p {
    font-size: 0.8em;
  }

  .arrow {
    width: 30px;
    height: 30px;
    font-size: 1.1rem;
  }

  .project-controls {
    margin-top: 10px;
    padding: 0 10px;
  }

  .project-slide-container {
    width: 80%;
  }

  .education-carousel {
    padding: 0 10px;
    gap: 20px;
    margin-top: 10px;
  }

  .education-item {
    padding: 10px;
  }

  .education-item h3 {
    font-size: 1.3em;
  }

  .education-item h4 {
    font-size: 1.1em;
  }

  .education-item p {
    font-size: 0.9em;
  }

  #about-me {
    padding: 25px 10px;
  }

  #about-me h2 {
    font-size: 1.8em;
  }

  #about-me p {
    font-size: 0.9em;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 20px;
  }

  .about-item {
    padding: 12px;
    font-size: 0.85em;
    max-width: 300px;
    margin: 0 auto;
  }

  .contact-grid {
    padding: 0 10px;
    gap: 10px;
  }

  .contact-item {
    flex-direction: row;
    align-items: center;
    padding: 10px 12px;
    gap: 8px;
    max-width: 320px;
    width: 100%;
    font-size: 1.1em;
    border-radius: 6px;
  }

  .contact-item i {
    font-size: 1.2em;
    min-width: 20px;
  }

  .contact-item a {
    font-size: 0.85em;
    line-height: 1.3;
  }
}