body {
  font-family: "Vazir", Tahoma, sans-serif;
  background: #0a0a12;
  color: #e0e0e0;
}

/* ── Profile Card ── */
.profile-card {
  width: 100%;
  max-width: 960px;
  margin: 2rem auto;
  background: linear-gradient(145deg, #141428 0%, #1a1a2e 100%);
  border: 1px solid #2d2d44;
  border-radius: 28px;
  padding: 2.5rem;
  box-sizing: border-box;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  flex-wrap: wrap;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #2d2d44;
}

.avatar img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #7c3aed;
  padding: 3px;
  background: #1a1a2e;
}

.user-info h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.3px;
}

.user-info .title {
  color: #a78bfa;
  font-weight: 500;
  margin-top: 0.35rem;
  font-size: 0.88rem;
  opacity: 0.9;
}

/* ── About Section ── */
.about {
  background: linear-gradient(135deg, #1c1c36, #1a1a2e);
  border: 1px solid #2d2d44;
  border-left: 4px solid #7c3aed;
  padding: 1.3rem 1.5rem;
  border-radius: 16px;
  line-height: 1.9;
  margin-bottom: 2rem;
  color: #c0c0d0;
  font-size: 0.9rem;
}

/* ── Section Headers ── */
.resume-section {
  margin-top: 2rem;
}

.resume-section h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #e0e0e0;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #2d2d44;
  position: relative;
}

.resume-section h2::after {
  content: '';
  position: absolute;
  bottom: -2px;
  width: 56px;
  height: 2px;
  background: linear-gradient(90deg, #7c3aed, #a78bfa);
  border-radius: 3px;
}

html[dir="rtl"] .resume-section h2::after { right: 0; }
html[dir="ltr"] .resume-section h2::after { left: 0; }

/* ── Resume Items ── */
.resume-item {
  margin-bottom: 0.9rem;
  padding: 1.1rem 1.3rem;
  background: #141428;
  border: 1px solid #2a2a40;
  border-radius: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.resume-item:hover {
  border-color: #7c3aed;
  box-shadow: 0 0 0 2px rgba(124,58,237,0.06);
}

html[dir="rtl"] .resume-item { border-right: 3px solid #7c3aed; }
html[dir="ltr"] .resume-item { border-left: 3px solid #7c3aed; }

.resume-item h3 {
  margin: 0 0 0.15rem 0;
  color: #a78bfa;
  font-size: 0.92rem;
  font-weight: 600;
}

.resume-item .date {
  font-size: 0.75rem;
  color: #8888a0;
  display: inline-block;
  margin-bottom: 0.35rem;
  background: rgba(124,58,237,0.1);
  padding: 0.1rem 0.7rem;
  border-radius: 20px;
}

.resume-item p {
  color: #b0b0c8;
  font-size: 0.84rem;
  line-height: 1.7;
  margin: 0;
}

/* ── Skills List ── */
#skills-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

#skills-list li {
  background: #141428;
  border: 1px solid #2a2a40;
  border-radius: 12px;
  padding: 0.7rem 1rem;
  font-size: 0.82rem;
  color: #b0b0c8;
  transition: border-color 0.2s;
  position: relative;
}

html[dir="rtl"] #skills-list li { padding-right: 2rem; }
html[dir="ltr"] #skills-list li { padding-left: 2rem; }

#skills-list li::before {
  content: '▹';
  color: #7c3aed;
  position: absolute;
  font-size: 0.9rem;
}

html[dir="rtl"] #skills-list li::before { right: 0.7rem; }
html[dir="ltr"] #skills-list li::before { left: 0.7rem; }

#skills-list li:hover {
  border-color: #7c3aed;
}

/* ── Logout Button ── */
.btn-logout {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  color: #fff;
  border: none;
  padding: 0.7rem 1.5rem;
  border-radius: 30px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 2rem;
  width: 100%;
  transition: opacity 0.2s;
  font-family: inherit;
}

.btn-logout:hover { opacity: 0.85; }

/* ── Contact Section ── */
#contact-section {
  margin-top: 2.5rem;
  padding: 1.8rem;
  background: linear-gradient(135deg, #141428, #1a1a2e);
  border: 1px solid #2d2d44;
  border-radius: 20px;
}

#contact-section h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #e0e0e0;
  margin-bottom: 0.3rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #2d2d44;
  position: relative;
}

#contact-section h2::after {
  content: '';
  position: absolute;
  bottom: -2px;
  width: 56px;
  height: 2px;
  background: linear-gradient(90deg, #7c3aed, #a78bfa);
  border-radius: 3px;
}

html[dir="rtl"] #contact-section h2::after { right: 0; }
html[dir="ltr"] #contact-section h2::after { left: 0; }

#contact-desc {
  color: #8888a0 !important;
  font-size: 0.84rem;
  margin-bottom: 1.2rem !important;
  line-height: 1.6;
}

#contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

#contact-form .form-control {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 2px solid #2d2d44;
  border-radius: 12px;
  font-size: 0.88rem;
  font-family: "Vazir", Tahoma, sans-serif;
  background: #141428;
  color: #e0e0e0;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  box-sizing: border-box;
}

#contact-form .form-control:focus {
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124,58,237,0.12);
}

#contact-form .form-control::placeholder {
  color: #6b7280;
}

html[dir="rtl"] #contact-form .form-control { text-align: right; }
html[dir="ltr"] #contact-form .form-control { text-align: left; }

#contact-form textarea.form-control {
  resize: vertical;
  min-height: 110px;
}

#contact-submit-btn {
  background: linear-gradient(135deg, #7c3aed, #6d28d9) !important;
  color: #fff !important;
  border: none !important;
  padding: 0.75rem 2rem !important;
  border-radius: 12px !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s !important;
  align-self: flex-start;
  font-family: "Vazir", Tahoma, sans-serif !important;
}

#contact-submit-btn:hover {
  opacity: 0.88;
  transform: translateY(-2px);
}

#contact-submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

#contact-result p {
  padding: 0.6rem 1rem;
  border-radius: 10px;
  font-size: 0.84rem;
  font-weight: 600;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .profile-card {
    padding: 1.2rem;
    margin: 1rem;
    border-radius: 20px;
  }

  .profile-header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .avatar img {
    width: 100px;
    height: 100px;
  }

  #skills-list {
    grid-template-columns: 1fr;
  }

  #contact-section {
    padding: 1rem;
  }

  #contact-submit-btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .profile-card {
    padding: 1rem;
    margin: 0.6rem;
  }

  .user-info h1 {
    font-size: 1.2rem;
  }

  .resume-item {
    padding: 0.8rem 1rem;
  }
}
