@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;700&display=swap');

:root {
  --bg-dark: #1a1a2e;
  --bg-gradient: linear-gradient(135deg, #1a1a2e, #2f195f);
  --text-light: #f0f0f0;
  --text-muted: #bbb;
  --accent: #a678f0;
  --hover: #c49fff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  direction: rtl;
  font-family: 'Vazirmatn', sans-serif;
  background: linear-gradient(to left, #f8fbfd, #eaeef5);
  color: #222;
  scroll-behavior: smooth;
}


/* Header / Breadcrumb */

header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: #000000;
  color: #eaeef5;
  padding: 50px;
  text-align: center;
  z-index: 1000;
  transition: background-color 0.5s ease;
}


.breadcrumb {
  margin-top: 10px;
  font-size: 14px;
  color: #bbb;
}

.menu-header h4{
margin-top: 20px;
}



/* Container */
.container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 50px;
  max-width: 1200px;
  margin-top: 140px;
  animation: fadeInUp 1.2s ease forwards;
  opacity: 0;
}

/* About Text */
.about-text {
  flex: 1 1 55%;
  padding: 20px;
  font-size: 16px;
  line-height: 2;
  color: #333;
  margin: 1px;
}

/* About Profile */
.about-profile {
  flex: 1 1 35%;
  text-align: center;
  padding: 20px;
}

.profile-img {
  border-radius: 20px;
  width: 250px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}


.name {
  font-weight: bold;
  margin-top: 10px;
  color:#000000
  
}

/* Contact Boxes */
.contact-boxes {
  display: flex;
  flex-wrap: wrap;
  margin-top: 30px;
  gap: 20px;
}

.contact-item {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  padding: 15px 20px;
  flex: 1 1 45%;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.12);
}

.contact-icon {
  font-size: 20px;
}

.contact-text {
  font-size: 14px;
  color: #555;
  text-decoration: none;

}

/* Animations */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(50px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.counter-section {
  margin: 20px auto;
  max-width: 400px;
  background: #000000;
  border-radius: 14px;
  text-align: center;
  font-size: 20px;
  font-weight: bold;
  padding: 25px;
  box-shadow: 0 3px 15px rgba(0,0,0,0.1);
  color: #ffffff;
}

.tile{

  color: #a200ff;
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Vazir', sans-serif;
}

/* بدنه */
body {
  background-color: #fff;
  color: #2E0854; /* بنفش پررنگ */
  direction: rtl;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
}

/* Navbar ساده و خوانا */
.navbar {
  width: 100%;
  max-width: 960px;
  margin-bottom: 40px;
}

.navbar ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 35px;
}

.navbar ul li a {
  text-decoration: none;
  color: #2E0854;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 8px 15px;
  border-radius: 10px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.navbar ul li a:hover {
  background-color: #2E0854;
  color: #fff;
}

/* بخش هرو (عکس + متن) */
.hero {
  width: 100%;
  max-width: 900px;
  text-align: center;
}

/* عکس بزرگ بدون گردی، با سایه */
.hero img.axxx {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(46, 8, 84, 0.25);
  margin-bottom: 35px;
}

/* کادر متن خوش آمدگویی */
.hero-content {
  background-color: #2E0854; /* بنفش پررنگ */
  color: #fff;
  border-radius: 24px;
  padding: 40px 30px;
  box-shadow: 0 8px 25px rgba(46, 8, 84, 0.3);
}

.hero-content h1 {
  font-size: 2.9rem;
  margin-bottom: 18px;
  font-weight: 800;
  line-height: 1.1;
}

.hero-content p {
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .container {
    flex-direction: column;
    padding: 20px;
    margin-top: 180px;
  }

  .about-profile {
    order: -1; /* عکس بیاد بالا */
    padding: 10px 0;
  }

  .profile-img {
    width: 100%;
    max-width: 320px;
    border-radius: 16px;
    margin: 0 auto;
    display: block;
  }

  .name {
    font-size: 16px;
    margin-top: 12px;
    text-align: center;
  }

  .about-text {
    font-size: 15px;
    padding: 10px;
    line-height: 2.1;
  }

  .contact-boxes {
    flex-direction: column;
    gap: 15px;
  }

  .contact-item {
    flex: 1 1 100%;
    font-size: 14px;
    padding: 12px;
  }

  .counter-section {
    font-size: 18px;
    padding: 20px;
    margin-top: 20px;
  }

  header {
    padding: 35px 20px;
  }

  .menu-header h2 {
    font-size: 24px;
  }

  .menu-header h4 {
    font-size: 14px;
    color: #ccc;
  }
}

.name {
  font-size: 16px;
  margin-top: 20px; /* قبلاً 12px بود */
  text-align: center;
  color: #000;
}


.about-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
}


@keyframes fadeInImage {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .profile-img.animate-in {
    animation: fadeInImage 1s ease-in-out 0.4s forwards;
    opacity: 0;
  }
}
