:root {
  --primary-color: #1c005c;
  --accent-color: #ffe600;
  --background: #f9f9f9;
  --text-color: #333;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Calibri, Vazir, Tahoma, sans-serif;
  background-color: var(--background);
  color: var(--text-color);
  line-height: 1.8;
  padding-bottom: 4rem;
}

header {
  background-color: var(--primary-color);
  color: white;
  padding: 3rem 1rem;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

header p {
  font-size: 1.2rem;
  opacity: 0.9;
}

.navbar {
  background-color: white;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 999;
  padding: 0.5rem 1rem;
}

.menu-icon {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--primary-color);
  user-select: none;
}

.menu {
  display: flex;
  justify-content: center;
  list-style: none;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 0;
  padding: 0.5rem;
}

.menu li a {
  text-decoration: none;
  color: var(--primary-color);
  font-weight: bold;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: background 0.3s ease, color 0.3s ease;
}

.menu li a:hover {
  background-color: var(--accent-color);
  color: black;
}

section {
  background-color: white;
  max-width: 900px;
  margin: 2rem auto;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

section:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

section h2 {
  color: var(--primary-color);
  font-size: 1.8rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid #1c005c33;
  padding-bottom: 0.5rem;
}

/* فقط در پروژه‌ها ستاره نمایش داده شود */
#projects ul li {
  position: relative;
  padding-right: 1.8rem;
  margin-bottom: 0.5rem;
  list-style: none;
}

#projects ul li::before {
  content: "★";
  position: absolute;
  right: 0;
  top: 0.2rem;
  color: #ffec80;
  font-size: 0.8rem;
}

/* بقیه بخش‌ها مثل experience, education, contact بدون ستاره */

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.5rem 0 1rem;
}

.skill-badge {
  background-color: var(--accent-color);
  color: black;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid #ccc;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.skill-badge:hover {
  background-color: var(--primary-color);
  color: white;
  cursor: default;
}

.skill-group h3 {
  color: #444;
  margin-top: 1.2rem;
  font-size: 1rem;
}

.contact-list {
  list-style: none;
  padding-right: 1rem;
  line-height: 2.2;
}

.contact-list li {
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-list a {
  color: var(--primary-color);
  font-weight: bold;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-list a:hover {
  color: var(--accent-color);
}

.contact-list .icon {
  display: inline-flex;
  width: 20px;
}

footer {
  text-align: center;
  padding: 2rem 1rem;
  background-color: #e0e0e0;
  color: #555;
  font-size: 0.9rem;
  margin-top: 4rem;
  border-top: 1px solid #ccc;
}

@media (max-width: 768px) {
  .menu-icon {
    display: block;
  }

  #menu-toggle {
    display: none;
  }

  .menu {
    display: none;
    flex-direction: column;
    align-items: center;
  }

  #menu-toggle:checked + .menu-icon + .menu {
    display: flex;
  }

  header h1 {
    font-size: 2rem;
  }

  header p {
    font-size: 1rem;
  }

  section {
    margin: 1.5rem 1rem;
    padding: 1.5rem 1rem;
  }
}

html {
  scroll-padding-top: 100px;
  scroll-behavior: smooth;
}
