:root {
  --bg-color: #ffffff;
  --text-color: #000000;
  --hero-bg: #2c3e50;
  --hero-text: #ffffff;
  --footer-bg: #2c3e50;
  --footer-text: #ffffff;
  --section-border: #3498db;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-color: #121212;
    --text-color: #e0e0e0;
    --hero-bg: #1e1e1e;
    --hero-text: #ffffff;
    --footer-bg: #1e1e1e;
    --footer-text: #ffffff;
    --section-border: #3498db;
  }
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: var(--bg-color) !important;
  color: var(--text-color) !important;
  margin: 0;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

section {
  scroll-margin-top: 70px;
}

.hero {
  background-color: var(--hero-bg);
  color: var(--hero-text);
  padding: 4rem 1rem;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
}

.section-title {
  border-bottom: 2px solid var(--section-border);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
}

footer {
  background-color: var(--footer-bg);
  color: var(--footer-text);
  text-align: center;
  padding: 1rem;
  margin-top: 3rem;
}

ul {
  padding-left: 1rem;
}

.profile-pic {
  width: 120px;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: 2px solid #ffffff;
  transition: transform 0.3s ease;
}

.profile-pic:hover {
  transform: scale(1.03);
}

.ltr-justify {
  text-align: justify;
  direction: ltr;
  font-family: Tahoma, sans-serif;
}
.rtl-justify {
  direction: rtl;
  text-align: justify;
  font-family: 'Vazir', Tahoma, sans-serif;
}

.ltr-justify {
  direction: ltr;
  text-align: justify;
  font-family: 'Segoe UI', sans-serif;
}
.phone-ltr {
  direction: ltr;
  unicode-bidi: plaintext;
  white-space: nowrap;
}
.contact-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-list i {
  font-size: 1.2rem;
}