body {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  background: linear-gradient(135deg, #0b2143, #020617);
  color: #fff;
  overflow-x: hidden;
}

/* ===== Header ===== */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  position: sticky;
  top: 0;
  z-index: 100;
}
.logo {
  font-size: 1.8em;
  font-weight: 700;
}
.header-icons a {
  color: #fff;
  margin-left: 20px;
  font-size: 1.5em;
  transition: all 0.3s ease;
}
.header-icons a:hover {
  transform: scale(1.3) rotate(10deg);
  color: #fff;
  opacity: 0.8;
}

/* ===== Contact Container ===== */
.contact-container {
  max-width: 900px;
  margin: 50px auto;
  padding: 40px;
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}
.contact-container h1 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2.4em;
  color: #fff;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 25px;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
  background: rgba(255, 255, 255, 0.08);
  padding: 18px 25px;
  border-radius: 20px;
  transition: all 0.4s ease;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s forwards;
}
.contact-item:nth-child(1) {
  animation-delay: 0.2s;
}
.contact-item:nth-child(2) {
  animation-delay: 0.4s;
}
.contact-item:nth-child(3) {
  animation-delay: 0.6s;
}
.contact-item:nth-child(4) {
  animation-delay: 0.8s;
}
.contact-item:hover {
  transform: translateY(-5px) scale(1.02);
  background: rgba(255, 255, 255, 0.15);
}
.contact-item i {
  font-size: 1.6em;
  color: #fff;
}
.contact-item a,
.contact-item span {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s;
}
.contact-item a:hover {
  text-decoration: underline;
  opacity: 0.8;
}

/* ===== Contact Form ===== */
.contact-form {
  margin-top: 50px;
  display: flex;
  flex-direction: column;
  gap: 20px; /* فاصله بین فیلدها */
  animation: fadeInUp 0.8s forwards;
}
.contact-form h2 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 1.8em;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 15px;
  border-radius: 12px;
  border: 1px solid #fff; /* border سفید */
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 1em;
  margin-bottom: 10px;
  box-sizing: border-box;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #ccc;
}
.contact-form button {
  padding: 12px 25px;
  border: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}
.contact-form button:hover {
  background: rgba(255, 255, 255, 0.35);
}

/* ===== Animations ===== */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

footer {
  text-align: center;
  padding: 20px;
  color: #ccc;
  font-size: 0.9em;
  margin-top: 50px;
}

@media (max-width: 600px) {
  header {
    flex-direction: column;
    gap: 10px;
  }
  .contact-container {
    margin: 30px 20px;
    padding: 30px;
  }
}

/* last  */
@media screen and (max-width: 768px) {
  header {
    flex-direction: row; /* هدر به صورت ردیف بماند */
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    position: relative;
  }

  .menu-toggle {
    display: flex;
    position: absolute; /* روی گوشه هدر */
    top: 50%; /* وسط ارتفاع هدر */
    right: 20px; /* فاصله از راست */
    transform: translateY(-50%);
    z-index: 1001;
  }

  nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px; /* زیر هدر */
    right: 0;
    width: 100%; /* عرض کل صفحه */
    background: rgba(3, 15, 35, 0.95);
    padding: 0;
    z-index: 999;
  }

  nav.open {
    display: flex;
  }

  nav a {
    padding: 15px 20px;
    font-size: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  nav a:last-child {
    border-bottom: none;
  }
}

/* last  */

/* last stye */
/* last stye */
.contact-info .contact-item {
  margin: 14px 0;
  display: flex;
  align-items: center;
}

.icon-img {
  width: 32px;
  height: 32px;
  margin-right: 12px;
  transition: 0.3s ease;
  filter: drop-shadow(0 0 5px #00eaff);
}

.contact-info .contact-item a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #e2e8f0;
  font-size: 18px;
  transition: 0.3s ease;
}

.contact-info .contact-item span {
  font-size: 18px;
}

/* Hover effect */
.contact-info .contact-item:hover .icon-img,
.contact-info .contact-item a:hover .icon-img {
  transform: scale(1.15);
  filter: drop-shadow(0 0 10px #00eaff);
}

.contact-info .contact-item a:hover span {
  color: #4bc9ff;
}

/* last stye */
/* last stye */
