body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont;
  font-family: 'Vazirmatn', system-ui, sans-serif;
  background-color: #ffffff;
  color: #333;
  scroll-behavior: smooth;
}

.hero-section {
  height: 100vh;
  background: url("../images/hero.webp") center/cover no-repeat;
  position: relative;
  padding-top: 80px;
  filter: contrast(1.05) saturate(1.1);
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.01);
}

.hero-content {
  position: relative;
  color: #fff;
}

.bg-section {
  background-color: #f8f9fa; /* خاکستری خیلی روشن */
}

.contact-section {
  background: url("../images/contact.webp") center/cover no-repeat;
  position: relative;
  color: #fff;
  filter: contrast(1.05) saturate(1.1);
}

.contact-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.01);
}

.contact-content {
  position: relative;
}

.section-padding {
  padding: 100px 0;
}

.section-title {
  font-weight: 700;
  margin-bottom: 20px;
}

.section-desc {
  max-width: 700px;
  margin: auto;
  color: #666;
}

.skill-card {
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0,0,0,.05);
}

.portfolio-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
  transition: transform 0.3s, box-shadow 0.3s;
}

.portfolio-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,.1);
}


.portfolio-card img {
  width: 100%;
  display: block;
  filter: contrast(1.05) saturate(1.1);
}

.portfolio-content {
  padding: 15px;
}

.footer {
  padding: 30px 0;
  background: #111;
  color: #aaa;
}

.social-links a {
  font-size: 28px;
  margin: 0 12px;
  color: #fff; /* حالت عادی */
  transition: color 0.3s;
}

.social-links a.youtube:hover i {
  color: #FF0000; /* قرمز یوتیوب */
}

.social-links a.telegram:hover i {
  color: #0088CC; /* آبی تلگرام */
}

.social-links a.instagram:hover i {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.social-links a.phone:hover i {
  color: #28a745; /* سبز تلفن / call */
}

body.dark {
  background: #111;
  color: #ddd;
}

body.dark .bg-section {
  background-color: #121212;
}

body.dark .bg-light {
  background-color: #1b1b1b !important;
}

body.dark .skill-card,
body.dark .portfolio-card {
  background: #1f1f1f;
  color: #ddd;
}

body.dark .navbar {
  background: #111 !important;
}

/* ===== Dark Mode Navbar Fix ===== */

body.dark .navbar {
  background-color: #111 !important;
}

body.dark .navbar-brand,
body.dark .navbar-nav .nav-link {
  color: #f1f1f1 !important;
}

body.dark .navbar-nav .nav-link:hover {
  color: #0d6efd !important;
}

/* آیکن منوی موبایل */
body.dark .navbar-toggler {
  border-color: #333;
}

body.dark .navbar-toggler-icon {
  filter: invert(1);
}


.navbar-nav .nav-link {
  position: relative;
  color: #333;
  font-weight: 500;
  padding: 8px 0;
  transition: color 0.3s;
}

.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 3px;
  background-color: #0d6efd; /* رنگ خط */
  transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
  width: 100%; /* هنگام hover کل طول متن */
}



body.dark #themeToggle {
  color: #fff;
}
body:not(.dark) #themeToggle {
  color: #111;
}

#themeToggle {
  font-size: 18px;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: transform 0.3s;
}

#themeToggle:hover {
  transform: rotate(20deg);
}

