/*
   █████╗ ██╗     ██╗    ███╗   ██╗ █████╗ ███████╗██╗███╗   ███╗██╗
  ██╔══██╗██║     ██║    ████╗  ██║██╔══██╗██╔════╝██║████╗ ████║██║
  ███████║██║     ██║    ██╔██╗ ██║███████║███████╗██║██╔████╔██║██║
  ██╔══██║██║     ██║    ██║╚██╗██║██╔══██║╚════██║██║██║╚██╔╝██║██║
  ██║  ██║███████╗██║    ██║ ╚████║██║  ██║███████║██║██║ ╚═╝ ██║██║
  ╚═╝  ╚═╝╚══════╝╚═╝    ╚═╝  ╚═══╝╚═╝  ╚═╝╚══════╝╚═╝╚═╝     ╚═╝╚═╝
                     ✦ A L I   N A E M I ✦

                 ────────  @naemiorg  ────────
                 ────────  @fiberTeam  ────────
*/
/* --- متغیرهای اصلی (تم پیش‌فرض: تیره) --- */
:root {
  /* Back Ground Colors */
  --bg-black: #1a202c;
  --bg-dark: #171923;
  --bg-card: #2d3748; /* برای کارت‌ها و بخش‌های داخلی */

  /* Text Colors */
  --text-white: #f7fafc;
  --text-gray-light: #a0aec0;
  --text-gray-dark: #f7fafc80;
  --text-gray-faded: #f7fafc61;

  /* Website Colors */
  --color-blue: #33b3dd;
  --color-green: #48bb78;
  --color-orange: #ff7140;
  --color-magenta: #bf992a;
  --color-red-1: #d64847;
  --color-red-2: #cc3300;
  --color-darkBlue: #005685;
  --color-dblue: #024959;

  /* Other */
  --border-color: #4a5568;
  --shadow-color: rgba(0, 0, 0, 0.4);
  --skill-bar-bg: #8484841e;
}

/* --- متغیرهای تم روشن --- */
body.light-theme {
  --bg-black: #f7fafc;
  --bg-dark: #edf2f7;
  --bg-card: #ffffff;

  --text-white: #1a202c;
  --text-gray-light: #4a5568;
  --text-gray-dark: #4a5568;
  --text-gray-faded: #718096;

  --border-color: #cbd5e0;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --skill-bar-bg: #e2e8f0;
}

@font-face {
  font-family: "aria";
  src: url("../fonts/Aria-Regular.eot") format("eot");
  src: url("../fonts/Aria-Regular.ttf") format("truetype"),
    url("../fonts/Aria-Regular.woff") format("woff");
}

* {
  font-family: "aria";
  box-sizing: border-box;
}

body {
  font-family: "aria";
  direction: rtl;
  padding: 0;
  margin: 0;
  overflow: hidden;
  background-color: var(--bg-black);
  transition: background-color 0.3s ease, color 0.3s ease;
}

main {
  display: flex;
  height: 100vh;
  
}

/* Sidebar Website */
main .sidebar {
  width: 300px;
  height: 100vh;
  top: 0;
  background-color: var(--bg-black);
  padding: 15px 20px;
  transition: all 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

main .sidebar.active {
  width: 0;
  padding: 0;
  overflow: hidden;
}

main .sidebar .nav-icon-sm {
  display: none;
}

main .sidebar .image {
  text-align: center;
  margin-top: 20px;
}

main .sidebar .image img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 4px solid var(--color-blue);
  box-shadow: 0 0 15px var(--color-blue);
  transition: all 0.3s ease-in-out;
}

main .sidebar .image img:hover {
  transform: scale(1.05) rotate(5deg);
}

main .sidebar .information {
  text-align: center;
  margin-top: 15px;
}

main .sidebar .information p:nth-child(1) {
  font-size: 1.5em;
  color: var(--text-white);
  font-weight: bold;
}

main .sidebar .sidebar-content {
  flex-grow: 1;
  margin-top: 20px;
}
.sidebar-content::-webkit-scrollbar {
  width: 5px;
}
.sidebar-content::-webkit-scrollbar-thumb {
  background-color: var(--color-darkBlue);
}

main .sidebar .conections h4 {
  color: var(--text-gray-light);
  border-bottom: 2px solid var(--color-blue);
  padding-bottom: 8px;
  margin-bottom: 20px;
  display: inline-block;
  font-size: 1.1em;
}

main .sidebar .conections .conection--item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 10px;
  /* حذف استایل‌های قدیمی‌تر */
  background: none;
  box-shadow: none;
  border-radius: 0;
  border-left: none;
  border-right: none;
  border-top: none;
}

main .sidebar .conections .conection--item span {
  color: var(--text-white);
  font-size: 0.9em;
  text-shadow: none;
}

main .sidebar .conections .conection--item .con-icon {
  color: var(--color-blue);
}

main .sidebar .time-now {
  display: flex;
  justify-content: space-between;
  color: var(--text-gray-light);
  padding: 15px 5px;
  font-size: 0.8em;
  margin-top: auto;
}

/* Content Website */
main .content {
  transition: all 0.3s ease-in-out;
  height: 100vh;
  width: 100%;
  background-color: var(--bg-dark);
  overflow-y: auto;
  padding: 20px 30px;
}
.content::-webkit-scrollbar {
  width: 8px;
}
.content::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
.content::-webkit-scrollbar-thumb {
  background-color: var(--color-blue);
  border-radius: 10px;
}

main .content #navicon {
  color: var(--text-gray-light);
  cursor: pointer;
  margin-left: 15px;
  background-color: var(--bg-dark);
}

main .content .title {
  display: flex;
  align-items: center;
  margin: 25px 0;
}

main .content .title.sm {
  display: none;
}

main header {
  position: fixed;
  justify-content: center;
  align-items: center;
  top: 0;
  right: 250px;
  width: calc(100% - 250px) !important;
  z-index: 999;
  transition: all .3s ease-in-out;
  backdrop-filter: blur(3px);
  display: flex;
  justify-content: center;
  padding: 0 10px;
}

main .content .title.absolute {
  width: 100%;
  margin-right: 10px;
  justify-content: space-between;
  display: flex;

  div{
    display: flex;
    justify-content: center;
  }
}

main .content .title.absolute span {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: transparent !important;
}

main .content .title.absolute h2 {
  margin: 0;
  background-color: transparent !important;
}

.social-icons span {
  margin-left: 20px;
  color: var(--text-white);
}

.social-icons a {
  color: inherit;       
  text-decoration: none;
}


.social-icons a svg {
  transition: transform 0.3s, fill 0.3s;
  cursor: pointer;
  margin: 0 5px;
}

.social-icons a:hover svg {
  transform: scale(1.2);
}

.social-icons a[href*="instagram"] svg { fill: var(--text-white); }   /* صورتی */
.social-icons a[href*="t.me"] svg { fill: var(--text-white); }        /* آبی تلگرام */
.social-icons a[href*="github"] svg { fill: var(--text-white); }         /* مشکی گیتهاب */


main .content.active header {
  right: 10px;
  transition: all .3s ease-in-out;


}



main .content .title h2 {
  position: relative;
  background-color: var(--bg-dark);
  padding-left: 10px;
  color: var(--color-orange);
  font-size: 1.8em;
  margin-top: 0;
}

main .content .title hr {
  flex-grow: 1;
  border: 0;
  border-top: 1px solid var(--border-color);
  margin-top: 0;
  margin-right: -5px;
}

main .content .me .about-me {
  width: 100%;
  margin-top: 50px;
  line-height: 2;
  color: var(--text-gray-dark);
  font-size: 1em;
  display: flex;
  justify-content: space-evenly;
  text-align: justify;
  flex-wrap: wrap;
  gap: 20px;
}

main .content .me .about-me p {
  width: 20%;
  min-width: 300px;
  flex: 1 1 45%;
}

main .content .language .title h2 {
  color: var(--color-magenta);
}

main .content .language .language--items {
  display: flex;
  justify-content: space-evenly;
  width: 100%;
  flex-wrap: wrap;
  gap: 20px;
}

main .content .language .language--items .language--items__item {
  width: 23%;
  padding: 15px;
  background-color: var(--bg-card);
  border-radius: 8px;
  box-shadow: 0 4px 6px var(--shadow-color);
}

main
  .content
  .language
  .language--items
  .language--items__item
  .language-itemm__title {
  color: var(--text-white);
  margin-bottom: 20px;
  font-size: 1.3em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.language-itemm__title svg {
  color: var(--color-magenta);
}

.language--skill__item {
  background-color: var(--skill-bar-bg);
  width: 100%;
  margin: 10px 0px;
  border-radius: 20px;
}

.language--skill__item .lang--skill {
  padding: 7px 15px;
  color: #fff;
  border-radius: 20px;
  font-size: 0.9em;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

main .content .skills .title h2 {
  color: var(--color-green);
}

main .content .skills .skills-items {
  display: flex;
  justify-content: space-evenly;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

main .content .skills .skills-items .skils-item {
  width: 23%;
  padding: 15px;
  background-color: var(--bg-card);
  border-radius: 20px;
  box-shadow: 0 4px 6px var(--shadow-color);
  margin-top: 10px;
}

main .content .skills .skills-items .skils-item .skills-title {
  color: var(--color-green);
  margin: 10px 4px;
  font-size: 1.3em;
}
.big-chart {
  width: 46% !important;
}

main .content .skills .skills-items .skils-item .skill-con {
  display: flex;
  justify-content: center;
  align-items: center;
}

.years-skill span {
  font-size: 1em;
  color: var(--text-gray-dark);
}

.years-skill span .counter {
  font-size: 1.5em;
  margin: 0px 5px;
  color: var(--color-green);
  font-weight: bold;
}

main .content .con2 .title h2 {
  color: var(--color-darkBlue);
}

main .content .con2 .section {
  margin: 40px 0px;
}

main .content .con2 .section .more-skills {
  width: 90%;
  padding: 20px;
  text-align: center;
  margin: 0 auto;
}

main .content .section .more-skills .more-skill-items .more-skill-item {
  margin: 15px auto;
  display: flex;
  justify-content: space-around;
  width: 100%;
  align-items: center;
  gap: 15px;
}

main
  .content
  .section
  .more-skills
  .more-skill-items
  .more-skill-item
  .more-skill-name {
  width: 150px;
  text-align: right;
  color: var(--text-gray-light);
}

main
  .content
  .section
  .more-skills
  .more-skill-items
  .more-skill-item
  .more-skill-Percent {
  flex-grow: 1;
}

main
  .content
  .section
  .more-skills
  .more-skill-items
  .more-skill-item
  .more-skill-Percent
  .precent-box {
  width: 100%;
  background-color: var(--skill-bar-bg);
  border-radius: 5px;
  direction: ltr;
}

.precent-box .precent-box-skill {
  border-radius: 5px;
  padding: 5px 5px;
}

footer {
  color: var(--text-gray-light);
  text-align: center;
  padding: 20px;
  margin-top: 40px;
  border-top: 1px solid var(--border-color);
  font-size: 0.9em;
}

/* --- استایل‌های افکت تایپ --- */
.job-title {
  font-size: 0.9em;
  color: var(--text-gray-light);
  height: 20px;
}
.job-title::after {
  content: "|";
  animation: blink 0.7s infinite;
  color: var(--color-orange);
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* --- دکمه تغییر تم --- */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  background: var(--text-gray-faded, #f8f8f8);
  transition: background 0.3s ease;
  position: relative;
  margin: 0 auto;
}

.theme-toggle svg {
  position: absolute;
  width: 22px;
  height: 22px;
  color: var(--text-white, #555);
  transition: opacity 0.3s ease, transform 0.3s ease;
}



.theme-toggle .sun { opacity: 1; transform: scale(1); }
.theme-toggle .moon { opacity: 0; transform: scale(0.5); }

.theme-toggle.dark .sun { opacity: 0; transform: scale(0.5); }
.theme-toggle.dark .moon { opacity: 1; transform: scale(1); }

/* حالت‌های تم */
body.light-theme {
  background: var(--bg-dark);
  color: #222;
}
body.dark-theme {
  background: var(--bg-dark);
  color: #eee;
}


/* --- بخش جدید پروژه‌ها --- */
.projects .title h2 {
  color: var(--color-green);
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 20px;
}
.project-card {
  background-color: var(--bg-card);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px var(--shadow-color);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 20px var(--shadow-color);
}
.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.project-info {
  padding: 20px;
}
.project-info h3 {
  color: var(--text-white);
  margin-bottom: 10px;
}
.project-info p {
  color: var(--text-gray-dark);
  font-size: 0.9em;
}

/* --- استایل‌های مودال (پنجره پاپ‌آپ) --- */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.7);
  animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.modal-content {
  background-color: var(--bg-card);
  margin: 2% auto;
  padding: 30px;
  border-radius: 8px;
  width: 50%;
  max-width: 700px;
  position: relative;
  height: 500px;
  overflow: scroll;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  animation: slideIn 0.3s ease;
}
@keyframes slideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}


.close-button {
  color: var(--text-gray-dark);

  position: absolute;
  top: 0;
  font-size: 55px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s;
}
.close-button:hover,
.close-button:focus {
  color: var(--color-red-1);
}

#modal-body h2 {
  color: var(--color-blue);
  margin-bottom: 20px;
}
#modal-body .modal-image {
  width: 90%;
  height: 330px;
  border-radius: 8px;
  margin-bottom: 20px;
}

#modal-body .div-image{
  width: 100%;
  text-align: center;
}


#modal-body p {
  color: var(--text-gray-dark);
  line-height: 1.8;
  margin-bottom: 20px;
}
#modal-body h4 {
  color: var(--text-white);
  margin-bottom: 10px;
}
.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}
.tech-tags span {
  background-color: var(--bg-dark);
  color: var(--color-blue);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.9em;
  display: flex;
  justify-content: center;
  align-items: center;
}
.project-link {
  display: inline-block;
  background-color: var(--color-green);
  color: #fff;
  padding: 10px 25px;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s;
}
.project-link:hover {
  background-color: #38a169;
}

/* --- انیمیشن هنگام اسکرول --- */
.hidden {
  opacity: 0;
  filter: blur(5px);
  transform: translateY(20px);
  transition: all 1s;
}
.show {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

/* --- Media Queries (حفظ ساختار اصلی شما) --- */
@media screen and (max-width: 992px) {
  main .content .skills .skills-items .skils-item {
    width: 40%;
  }
  main .content .language .language--items .language--items__item {
    width: 50%;
  }

  main .content .me .about-me p {
    width: 40% !important;
  }
}

@media screen and (max-width: 780px) {
  main .content .skills .skills-items .skils-item {
    width: 80%;
  }
  .big-chart {
    width: 90% !important;
  }
  main .content .skills .skills-items .skils-item .skill-con .skill-chart {
    width: 40% !important;
  }
  main .sidebar .image img {
    width: 100%;
    height: 100%;
  }
}

@media screen and (max-width: 660px) {
  main .content .language .language--items .language--items__item {
    width: 80% !important;
  }
  main .content .skills .skills-items .skils-item .skill-con .skill-chart {
    width: 50% !important;
  }
  .big-chart {
    width: 85% !important;
  }

  main .content .me .about-me p {
    width: 80% !important;
  }
}

@media screen and (min-width: 560px) {
  .sidebar-content {
    overflow-y :scroll;
  }
  .timer.sm {
    display: none !important;
  }

  .networks.sm {
    display: none !important;
  }

}

@media screen and (max-width: 560px) {
  body {
    overflow-y: scroll;
  }
  main {
    height: unset;
  }
  main{
    display: flex;
    flex-direction: column;
    overflow-y: scroll;
  }
  main .content {
    overflow-y: unset;
  }


  main .sidebar {
    width: 100%;
    height: 80%;
    padding: 0;
  }
  .sidebar-content {
    overflow :unset;
  }

  main .conections {
    height: fit-content;
  }


  main .sidebar .image {
    height: 10% !important;
  }

  main .sidebar .image img {
    margin-top: 20px;
    width: 100px;
    height: 100px;
  }

  main .sidebar .image img:hover {
    width: 23%;
  }

  .nav-icon-lg {
    display: none;
  }

  #modal-body .modal-image {
    width: 100%;
  }


  .modal-content{
    width: 100%;
    margin: 0 auto;
    margin-top: 10px;
    height: 90vh;

  }

  main header {
    display: none;
  }

  .title.sm {
    display: flex !important;
  }

  main .content .me .about-me {
    margin-top: 0px !important;
  }

  .networks.sm {
    display: flex;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);

  }
  .time-now.sm span.text-sm {
    display: none;
  }

  .sidebar {
    padding: 0 10px !important;
  }
  
}

/*
   █████╗ ██╗     ██╗    ███╗   ██╗ █████╗ ███████╗██╗███╗   ███╗██╗
  ██╔══██╗██║     ██║    ████╗  ██║██╔══██╗██╔════╝██║████╗ ████║██║
  ███████║██║     ██║    ██╔██╗ ██║███████║███████╗██║██╔████╔██║██║
  ██╔══██║██║     ██║    ██║╚██╗██║██╔══██║╚════██║██║██║╚██╔╝██║██║
  ██║  ██║███████╗██║    ██║ ╚████║██║  ██║███████║██║██║ ╚═╝ ██║██║
  ╚═╝  ╚═╝╚══════╝╚═╝    ╚═╝  ╚═══╝╚═╝  ╚═╝╚══════╝╚═╝╚═╝     ╚═╝╚═╝
                     ✦ A L I   N A E M I ✦

                 ────────  @naemiorg  ────────
                 ────────  @fiberTeam  ────────
*/