@font-face {
  font-family: vazir;
  src: url('../font/Vazirmatn-Regular.ttf');
}

html {
  scroll-behavior: smooth;
}

button{
  font-family: vazir;
}

body {
  margin: 0;
  font-family: vazir;
  background: #080923;
  direction: rtl;
}

/* NavBar Start */
.navbar {
  width: 100%;
  background: rgba(8, 9, 35, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(82, 77, 211, 0.2);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  margin: auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: #524dd3;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.nav-links li a {
  text-decoration: none;
  color: #fff;
  font-size: 15px;
  transition: 0.3s;
  position: relative;
}

.nav-links li a::after {
  content: "";
  position: absolute;
  bottom: -6px;
  right: 0;
  width: 0%;
  height: 2px;
  background: #524dd3;
  transition: 0.3s;
}

.nav-links li a:hover {
  color: #524dd3;
}

.nav-links li a:hover::after {
  width: 100%;
}

.btn-nav {
  padding: 8px 16px;
  border-radius: 8px;
  background: linear-gradient(135deg, #524dd3, #7b75ff);
  color: #fff !important;
  box-shadow: 0 0 20px rgba(82, 77, 211, 0.5);
}

.btn-nav:hover {
  box-shadow: 0 0 35px rgba(82, 77, 211, 0.9);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #524dd3;
  border-radius: 5px;
}

@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 70px;
    right: 0;
    width: 100%;
    background: rgba(8, 9, 35, 0.95);
    backdrop-filter: blur(10px);
    flex-direction: column;
    align-items: center;
    max-height: 0;
    overflow: hidden;
    transition: 0.4s ease;
  }

  .nav-links.active {
    max-height: 300px;
    padding: 20px 0;
  }

  .hamburger {
    display: flex;
  }
}

/* NavBar End */
/* Home Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #080923, #0d0d2b);
  color: #fff;
  padding: 0 20px;
  overflow: hidden;
}

.hero-container {
  display: flex;
  align-items: center;
  gap: 50px;
  max-width: 1200px;
  width: 100%;
}

.hero-image img {
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #524dd3;
  box-shadow: 0 0 25px #524dd3;
  opacity: 0;
  transform: translateX(-100px);
  transition: 1s ease;
}

.hero-content {
  opacity: 0;
  transform: translateX(100px);
  transition: 1s ease;
}

.hero-content h1 {
  font-size: 4rem;
  color: #524dd3;
  margin: 0;
}

.homename {
  color: #ffde24;
}

.hero-content p {
  font-size: 1.5rem;
  margin-top: 20px;
}

.hero-btn {
  display: inline-block;
  margin-top: 40px;
  padding: 15px 35px;
  font-size: 1.2rem;
  border-radius: 10px;
  background: linear-gradient(135deg, #524dd3, #7b75ff);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 0 20px rgba(82, 77, 211, 0.7);
  transition: 0.3s;
}

.hero-btn:hover {
  box-shadow: 0 0 40px rgba(82, 77, 211, 1);
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .hero-container {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

  .hero-image img {
    width: 200px;
    height: 200px;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content p {
    font-size: 1.2rem;
  }

  .hero-btn {
    padding: 12px 25px;
    font-size: 1rem;
  }
}

/* Social Media Icons (Icons) */
.hero {
  position: relative;
}

.hero-container {
  display: flex;
  align-items: center;
  gap: 50px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.hero-social {
  position: absolute;
  margin-top: 3px;
  gap: 20px;
  display: flex;
  top: 110%;
  right: 3%;
}

.hero-social a {
  color: #fff;
  font-size: 1.5rem;
  transition: 0.3s;
}

.hero-social a:hover {
  color: #524dd3;
  transform: scale(1.2);
  text-shadow: 0 0 10px #524dd3;
}

@media (max-width: 768px) {
  .hero-social {
    position: static;
    justify-content: center;
    margin-top: 20px;
    width: 100%;
  }
}

/* Social Media end */
/* About Section */

.about {
  background: #080923;
  padding: 140px 20px;
  display: flex;
  justify-content: center;
}

.about-wrap {
  max-width: 900px;
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 28px;
  padding: 60px 50px;
  border: 1px solid rgba(82, 77, 211, 0.35);
  box-shadow: 0 0 40px rgba(82, 77, 211, 0.25);
  color: #fff;
  text-align: right;
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  transition: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-wrap.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.about-title {
  font-size: 2.2rem;
  margin-bottom: 15px;
  color: #524dd3;
  text-shadow: 0 0 12px rgba(82, 77, 211, 0.6);
}

.about-desc {
  line-height: 1.9;
  opacity: 0.9;
  margin-bottom: 50px;
}

.skills {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.skill-name {
  opacity: 0.9;
}

.skill-percent {
  color: #524dd3;
  font-weight: bold;
}

.skill-bar {
  width: 100%;
  height: 12px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #524dd3, #7f7aff);
  box-shadow:
    0 0 10px rgba(82, 77, 211, 0.6),
    0 0 25px rgba(82, 77, 211, 0.8);
  transition: width 1.6s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.skill-progress::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg,
      transparent 0%,
      rgba(255, 255, 255, 0.35) 50%,
      transparent 100%);
  transform: translateX(-100%);
  animation: shimmer 2.5s infinite;
}

@keyframes shimmer {
  to {
    transform: translateX(100%);
  }
}

@media (max-width: 768px) {
  .about {
    padding: 100px 16px;
  }

  .about-wrap {
    padding: 40px 20px;
    border-radius: 20px;
  }

  .about-title {
    font-size: 1.9rem;
  }
}

/* About Section End */
/* Projects Section  */
.projects {
  background: #080923;
  padding: 140px 20px;
  color: #fff;
  text-align: center;
}

.projects-title {
  font-size: 2.2rem;
  margin-bottom: 60px;
  color: #524dd3;
  text-shadow: 0 0 12px rgba(82, 77, 211, 0.6);
}

.projects-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.project-card {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(82, 77, 211, 0.25);
  backdrop-filter: blur(12px);
  position: relative;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  perspective: 1000px;
  transform-style: preserve-3d;
}

.project-card.reveal {
  opacity: 0;
  transform: translateY(40px) scale(0.95);
  transition: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card.reveal.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.project-card:hover {
  transform: translateY(-12px) rotateX(6deg) rotateY(-6deg) scale(1.03);
  box-shadow: 0 0 40px rgba(82, 77, 211, 0.5);
}

.project-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(600px circle at var(--x, 50%) var(--y, 50%),
      rgba(127, 122, 255, 0.25),
      transparent 40%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.project-card:hover::after {
  opacity: 1;
}

.project-thumb img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid rgba(82, 77, 211, 0.25);
}

.project-content {
  padding: 22px 20px 26px;
  text-align: right;
}

.project-content h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.project-content p {
  font-size: 0.85rem;
  opacity: 0.85;
  line-height: 1.7;
  margin-bottom: 18px;
}

.project-btn {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  background: #524dd3;
  color: #080923;
  font-size: 0.8rem;
  transition: 0.3s;
  text-decoration: none;
}

.project-btn:hover {
  box-shadow: 0 0 15px rgba(82, 77, 211, 0.8);
  transform: translateY(-2px);
}

@media (max-width: 900px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

/* Projects Section end */
/* Contact Section */

.contact {
  background: #080923;
  padding: 140px 20px;
  color: #fff;
  display: flex;
  justify-content: center;
}

.contact-wrap {
  max-width: 600px;
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 28px;
  border: 1px solid rgba(82, 77, 211, 0.35);
  box-shadow: 0 0 40px rgba(82, 77, 211, 0.25);
  padding: 50px 40px;
  text-align: center;
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  transition: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-wrap.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.contact-wrap h2 {
  font-size: 2rem;
  margin-bottom: 35px;
  color: #524dd3;
  text-shadow: 0 0 12px rgba(82, 77, 211, 0.6);
}

.contact-wrap input,
.contact-wrap textarea {
  width: 100%;
  padding: 12px 18px;
  margin-bottom: 18px;
  border-radius: 12px;
  border: 1px solid rgba(82, 77, 211, 0.35);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 0.95rem;
  resize: none;
  outline: none;
  transition: 0.3s;
}

.contact-wrap input:focus,
.contact-wrap textarea:focus {
  border-color: #524dd3;
  box-shadow: 0 0 12px rgba(82, 77, 211, 0.6);
}

.contact-wrap button {
  background: #524dd3;
  color: #080923;
  padding: 12px 28px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  transition: 0.3s;
}

.contact-wrap a {
  background: #524dd3;
  color: #080923;
  padding: 12px 28px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  transition: 0.3s;
}

.contact-wrap button:hover {
  box-shadow: 0 0 15px rgba(82, 77, 211, 0.8);
  transform: translateY(-2px);
}

.contact-wrap a:hover {
  box-shadow: 0 0 15px rgba(82, 77, 211, 0.8);
  transform: translateY(-2px);
}

@media (max-width: 600px) {
  .contact-wrap {
    padding: 35px 20px;
  }
}

.contact input,textarea {
  font-family: vazir;
}