
@import url("https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css");
/*=============== VARIABLES CSS ===============*/
/* تعریف متغیرهای سراسری پروژه */
:root {
  /* ارتفاع هدر سایت */
  --header-height: 3.5rem;

  /*========== Colors ==========*/
  /* 
    سیستم رنگ‌بندی با HSL
    با تغییر مقدار hue، کل تم سایت تغییر می‌کند

    رنگ پیش‌فرض: Cyan
    امکان تغییر به آبی، سبز، بنفش، نارنجی و ...
  */

  /* رنگ اصلی پروژه (کنترل‌کننده تم سایت) */
  --hue: 180;

  /* رنگ اصلی سایت */
  --first-color: hsl(var(--hue), 80%, 48%);

  /* رنگ جایگزین برای حالت hover */
  --first-color-alt: hsl(var(--hue), 80%, 44%);

  /* رنگ متن‌های روشن */
  --white-color: hsl(var(--hue), 8%, 92%);

  /* رنگ متن‌های تیره */
  --black-color: hsl(var(--hue), 4%, 8%);

  /* رنگ متن‌های خاکستری */
  --gray-color: hsl(var(--hue), 4%, 50%);

  /* رنگ پس‌زمینه اصلی سایت */
  --body-color: hsl(var(--hue), 8%, 8%);

  /* رنگ پس‌زمینه کارت‌ها و کانتینرها */
  --container-color: hsl(var(--hue), 8%, 12%);

  /*========== Font and typography ==========*/
  /* 
    0.5rem = 8px
    1rem = 16px
    سیستم تایپوگرافی پروژه
  */

  /* فونت اصلی سایت (فارسی) */
  --body-font: Vazirmatn, sans-serif;

  /* بزرگ‌ترین سایز متن (Hero Section) */
  --bigger-font-size: 2.2rem;

  /* سایز تیتر اصلی */
  --h1-font-size: 1.7rem;

  /* سایز تیتر سطح دوم */
  --h2-font-size: 1.45rem;

  /* سایز تیتر سطح سوم */
  --h3-font-size: 1.2rem;

  /* سایز متن عادی */
  --normal-font-size: 1rem;

  /* سایز متن کوچک */
  --small-font-size: 0.813rem;

  /*========== Font weight ==========*/
  /* وزن فونت‌ها */
  --font-light: 300;
  --font-regular: 400;
  --font-medium: 500;
  --font-semi-bold: 600;

  /*========== z index ==========*/
  /* لایه‌بندی عناصر */
  --z-tooltip: 10; /* تولتیپ‌ها */
  --z-fixed: 100;  /* هدر و عناصر ثابت */
}

/*========== Responsive typography ==========*/
/* تغییر سایز فونت‌ها در نمایشگرهای بزرگ */
@media screen and (min-width: 1150px) {
  :root {
    --bigger-font-size: 3.2rem;
    --h1-font-size: 2.45rem;
    --h2-font-size: 1.7rem;
    --h3-font-size: 1.45rem;
    --normal-font-size: 1.2rem;
    --small-font-size: 1rem;
  }
}

/*=============== BASE ===============*/
/* ریست اولیه استایل مرورگر */
* {
  box-sizing: border-box; /* جلوگیری از به‌هم‌ریختگی سایز */
  padding: 0;             /* حذف padding پیش‌فرض */
  margin: 0;              /* حذف margin پیش‌فرض */
}

/* اسکرول نرم در کل سایت */
html {
  scroll-behavior: smooth;
}

/* یکدست‌سازی فونت در کل پروژه */
body,
button,
input,
textarea {
  font: var(--font-light) var(--normal-font-size) var(--body-font);
}

/* تنظیم رنگ پس‌زمینه و متن سایت */
body {
  background-color: var(--body-color);
  color: var(--white-color);
}

/* حذف استایل پیش‌فرض دکمه‌ها */
button {
  outline: none;
  border: none;
}

/* وزن پیش‌فرض تیترها */
h1,
h2,
h3,
h4 {
  font-weight: var(--font-semi-bold);
}

/* حذف استایل لیست‌ها */
ul {
  list-style: none;
}

/* حذف خط زیر لینک‌ها */
a {
  text-decoration: none;
}

/* تنظیم استاندارد تصاویر */
img {
  display: block;     /* حذف فاصله اضافی */
  max-width: 100%;    /* جلوگیری از خروج از کانتینر */
  height: auto;       /* حفظ نسبت تصویر */
}


/* clasess*/
.container{
  max-width: 1100px;
  margin-inline: 1.5rem;
}
.grid{
  display: grid;
  gap: 1.5rem;
}
.section{
  padding-block: 5rem 1rem;
}
.section__title{
  text-align: center;
  font-size: var(--h1-font-size);
  color: var(--first-color);
  margin-bottom: 1.5rem;
}
.main{
  overflow: hidden;
}
/*=============== LOADER ===============*/

#loader{
    position: fixed;
    inset: 0;
    background: var(--body-color);

    display: flex;
    justify-content: center;
    align-items: center;

    z-index: 99999;

    transition: opacity .7s ease, visibility .7s ease;
}

.loader__logo{
    font-size: 3.8rem;
    font-weight: 700;
    color: var(--white-color);
    letter-spacing: 1px;

    animation: loaderPulse 1.6s ease-in-out infinite;
}

.loader__logo span{
    color: var(--first-color);
}

.loader-hide{
    opacity: 0;
    visibility: hidden;
}

@keyframes loaderPulse{

    0%{
        transform: scale(.96);
        text-shadow: 0 0 0 rgba(0,255,255,0);
    }

    50%{
        transform: scale(1.05);
        text-shadow:
        0 0 10px rgba(0,255,255,.35),
        0 0 25px rgba(0,255,255,.25),
        0 0 45px rgba(0,255,255,.15);
    }

    100%{
        transform: scale(.96);
        text-shadow: 0 0 0 rgba(0,255,255,0);
    }

}
/* header */
.header{
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
  transition: all 0.4s;
   /* box-shadow:
    0 8px 32px rgba(0,0,0,0.35),
    0 0 20px rgba(0,255,255,0.08); */
        background: linear-gradient(90deg,#134e4a,#115e59);
    border-bottom: 1px solid #0f766e;
    
     /* border-bottom: 2px solid rgba(0, 255, 255, 0.15); */
}
.nav{
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav__logo{
  color: var(--white-color);
  font-weight: var(--font-semi-bold);
  transition: color 0.4s;
  transition: all .3s;
}
.nav__logo:hover{
  color: var(--first-color);
  transform: scale(1.05);
}
.nav__close,
.nav__toggle{
  font-size: 1.5rem;
  cursor: pointer;

}
.nav__toggle:hover{
  color: var(--first-color);
  transform: scale(1.2);
  text-shadow: 0 0 15px var(--first-color);
  
}
@media screen and (max-width:1150px) {
  .nav__menu{
    position: fixed;
    top: -120%;
    left: 0;
    width: 100%;
    background-color: hsl(var(--hue), 8%, 12%,0.9);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px hsla(var(--hue), 80%, 48%,0.15);
    padding-block: 5rem 4rem;
    border-radius: 0 0 1.5rem 1.5rem;
    transition: all 0.4s ease;
  }
}
.nav__list{
  text-align: center;
  display: flex;
  flex-direction: column;
  row-gap: 2rem;
}
.nav__link{
  position: relative;
  color: var(--white-color);
  font-weight: var(--font-medium);
  font-size: 1.15rem;
  transition: all 0.4s;
}
.nav__link::after{
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  left: 0;
  bottom: -0.5rem;
  transition: all 0.4s;
  background-color: var(--first-color);
}
.nav__link:hover{
  color: var(--first-color);
  transform: translateY(-3px);
}
.nav__link:hover::after{
  width: 60%;
}
.nav__close{
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: var(--first-color);
  transition: 0.3s;
}
.nav__close:hover{
  transform: rotate(90deg) scale(1.15);
  color: var(--white-color);
}
.show-menu{
  top: 0;
}

/* home__container */
.home__container{
  row-gap: 4rem;
  padding-block: 2.5rem 2rem;
}
.home__content{
  position: relative;
  justify-self: center;
}
.home__image{
  width: 260px;
  height: 260px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  text-align: center;
  justify-content: center;
  border: 4px solid var(--first-color);
  box-shadow: 0 0 20px hsla(var(--hue) , 80% , 60% , 0.5),
  0 0 40px hsla(var(--hue) , 80% , 60% , 0.2);
  transition: all .4s ease;
  /* width: 240px;
  height: 240px;
  background-color: var(--white-color);
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  border: 5px solid var(--first-color);
  box-shadow: 0 8px 32px hsla(var(--hue), 80%, 45%,0.3);
  transition: .4s; */
}
.home__image:hover{
  transform: scale(1.05);
  box-shadow:  0 0 30px hsla(var(--hue) , 80% , 60% , 0.7),
  0 0 60px hsla(var(--hue) , 80% , 60% , 0.4) ;
}
.home__img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.2);
  filter: drop-shadow(0 4px 16px hsla(0,0%,0%,0,2));
  /* width: 200px;
  filter: drop-shadow(0 4px 16px hsla(0,0%,0%,0.2)); */
}
.home__social{
  position: absolute;
  top: 0;
  bottom: 0;
  right: -2.5rem;
  display: grid;
  align-items: center;
  row-gap: 1.5rem;
}
.home__link{
  color: var(--white-color);
  font-size: 1.5rem;
  transition: all 0.4s;
}
.home__link:hover{
  transform: translateY(-0.25rem);
  color: var(--first-color);
}

.home__data{
  text-align: center;
  row-gap: 1rem;
}
.home__subtitle span{
color: var(--first-color);
}
.home__title{
  font-size: var(--bigger-font-size);
  color: var(--first-color);
}
.home__buttons{
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 2rem;
}
.button{
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background-color: var(--first-color);
  color: var(--black-color);
  font-weight: var(--font-medium);
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  transition: all 0.4s;
}
.view-icon{
  margin-left: .5rem;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
}
.button:hover{
    transform: translateY(-3px);
  box-shadow: 0 8px 24px hsla(var(--hue), 80%, 48%,0.3);
}
.button__ghost{
  background-color: var(--body-color);
  color: var(--white-color);
  border: 2px solid var(--first-color);
}
.button__ghost:hover{
  color: var(--first-color);
}

/* about__container */
.about__container{
row-gap: 4rem;
}
.about__content{
  display: grid;
  row-gap: 3rem;
}
.about__data{
  text-align: center;
}
.about__dexcription{
  margin-bottom: 3rem;
}
.about__subtitle{
  display: flex;
  align-items: center;
  justify-content: center;
  column-gap: 0.5rem;
  font-size: var(--h3-font-size);
  color: var(--first-color);
  margin-bottom: 2rem;
}
.about__subtitle i {
  font-size: 1.5rem;
  font-weight: initial;
}


.about__skills{
  grid-column: 1 / -1;
  width: 100%;
  justify-content: center;
  text-align: center;
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.skills__items{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  /* width: 100%; */
  align-items: center;
  max-width: 650px;
  margin: 10px auto;
  /* gap: 0.5rem; */
}

.about__item{
  background-color: var(--first-color);
  padding: 0.5rem 0.75rem;
  border-radius: 2rem;
  color: var(--black-color);
  font-weight: var(--font-regular);
  border: 2px solid var(--body-color);
  transition: all 0.4s;
  cursor: pointer;
}
.about__item:hover{
  background-color: var(--body-color);
  color: var(--white-color);
  border-color: var(--first-color);
}
.about__image{
  width: 320px;
  height: 320px;
  /* background-color: var(--white-color); */
  border-radius: 1rem;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  justify-self: center;
  box-shadow: 0 8px 32px hsla(var(--hue) , 80% , 48% , 0.3);
}
.about__img{
  width: 120%;
  height: 120%;
  object-fit: cover;
  transform: scale(1.15);
  transition: all .4s ease;
  /* width: 200px; */
  filter: drop-shadow(0 4px 16px hsla(0,0%,0%,0.2));
}
.about__img:hover{
  box-shadow: 0 0 40px rgb(0, 255, 255,.4);
  transform: scale(1.22);
  filter: contrast(1.25) brightness(1.1);
}
.shadow-header{
    /* background: rgba(18, 18, 18, 0.949); */
    box-shadow:
    0 4px 24px hsla(0,0%,0%,0.4),
    0 0 25px hsla(var(--hue), 80%, 60%, 0.12);
      border-radius: 0 0 20px 20px;
}

/* projecs */
.section__header{
text-align: center;
margin-bottom: 3rem;
}
.title__icon{
  display: block;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}
.title__sub{
  display: block;
  font-size: 1rem;
  margin-top: 0.5rem;
  font-weight: 400px;
}
.section__description{
  max-width: 600px;
  margin: 1rem auto 0;
  line-height: 1.6;
}
.projects__container{
  row-gap: 2rem;
}
.projects__card{
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 8px 16px hsla(0,0,0%,0.5);
  transition: all 0.4s;
}

 .projects__data{
    padding: 1.3rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .9rem;
}

.project__title{
    font-size: var(--h3-font-size);
}

.projects__discription{
    font-size: var(--small-font-size);
    line-height: 1.7;
}

.project__title{
  font-size: var(--h3-font-size);
}
.projects__discription{
  font-size: var(--small-font-size);
}

/* kourosh car */
.project__buttons{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    width: 100%;
}

.project__buttons .button{
    padding: .8rem 1.2rem;
    font-size: .9rem;
    min-width: 145px;
}

.project__buttons .button__ghost{
    background: transparent;
}


/* resume */
.resume__description{
  max-width: 600px;
  margin: 0 auto 3rem;
  text-align: center;
  color: var(--text-color);
}
.resume__container{
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2 , 1fr);
  gap: 2rem;
  /* align-items: start; */
  padding-inline: 1rem;

  
}

.resume__left,
.resume__card{
  display: grid;
  gap: 2rem;
}
.resume__card{
  /* background: var(--container-color); */
  /* border: 2px solid transparent;
  border-radius: 1rem;
  padding: 1.8rem; */
  /* transition: .4s; */
  /* height: fit-content; */
  background: rgba(35, 35, 35, 85);
  backdrop-filter: blur(12px);
  border: solid 1px rgba(0, 255, 255, .12);
  border-radius: 1.5rem;
  transition: .4s;
  padding: 2rem 1.6rem;
  min-width: 0;
}
.resume__card i{
  color: var(--first-color);
  font-size: 1.2rem;
}


.resume__wide{
  grid-column: 1 / 3;
}
.resume__card:hover{
  transform: translateY(-10px);
  border-color: var(--first-color);
  box-shadow: 0 15px 40px rgba(0, 255, 255, .18);
}
.resume__card-title{
  display: flex;
  align-items: center;
  gap: 5rem;
  margin-bottom: 1.2rem;
  font-size: 1.2rem;
  color: var(--title-color);
}
.resume__title i {
  margin-bottom: 1rem;
  color: var(--first-color);
  font-size: 1.5rem;
  /* font-size: var(--h3-font-size); */
}
.resume__title::after{
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  margin: .7rem auto 0;
  border-radius: 50px;
  background: linear-gradient(90deg,transparent,var(--first-color),transparent);
}
.resume__title{
  text-align: center;
  /* margin-bottom: 1.6rem; */
}

.resume__list{
  display: grid;
  gap: 1rem;
}
.resume__list li{
  display: flex;
  justify-content: space-between;
}
.resume__list i{
  color: var(--first-color);
  font-size: 1.2rem;
}
.resume__list span {
  color: var(--first-color);
}
.resume__skill{
  margin-bottom: 1.3rem;
}
.resume__skill span{
  display: block;
  margin-bottom: .5rem;
}
.resume__bar{
  width: 100%;
  height: 8px;
  background: #333;
  border-radius: 20px;
  overflow: hidden;
}
.resume__fill{
  height: 100%;
  background-color: var(--first-color);
  border-radius: 20px;
}
.html{
  width: 95%;
}
.js{
  width: 80%;
}
.responsive{
  width: 90%;
}
.git{
  width: 75%;
}
.resume__tools{
  display: flex;
  flex-wrap: wrap;
  gap: 8rem;
}
.resume__tools span{
  padding: .5rem 1rem;
  border-radius: .5rem;
  border: 1px solid var(--first-color);
  color: var(--first-color);
  font-size: .9rem;
}
.section__subtitle{
  display: block;
  text-align: center;
  max-width: 600px;
  margin: 0 auto 2rem;
  padding-inline: 1rem;
  color: var(--first-color);
  line-height: 1.7;
}
.resume__download{
  margin-top:4rem;
  background: var(--container-color);
  border-radius: 1rem;
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.resume__download p {
  max-width: 500px;
  margin-top: .5rem;
}

/* contact */
/*=============== CONTACT ===============*/

.contact{
    padding-bottom: 6rem;
}

.section__subtitle{
    display:block;
    text-align:center;
    color:var(--gray-color);
    margin-bottom:3.5rem;
    line-height:1.8;
}

.contact__container{
    display:grid;
    grid-template-columns:420px 1fr;
    gap:3rem;
    align-items:start;
}

.contact__info{
    display:grid;
    gap:1.3rem;
}

.contact__card{
    background:var(--container-color);
    border:2px solid transparent;
    border-radius:1rem;
    padding:1.5rem;
    display:flex;
    align-items:center;
    column-gap:1rem;
    transition:.4s;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.contact__card:hover{
    border-color:var(--first-color);
    transform:translateY(-5px);
}

.contact__icon{
    font-size:1.6rem;
    color:var(--first-color);
}

.contact__title{
    font-size:1rem;
    margin-bottom:.35rem;
}

.contact__text{
    color:var(--gray-color);
    font-size:.95rem;
}

.contact__link{
    color:var(--gray-color);
    transition:.3s;
}

.contact__link:hover{
    color:var(--first-color);
}

.contact__form{
    background:var(--container-color);
    padding:2rem;
    border-radius:1rem;
    border:2px solid transparent;
    transition:.4s;
}

.contact__form:hover{
    border-color:var(--first-color);
}

.contact__group{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:1rem;
}

.contact__box{
    margin-bottom:1.5rem;
}

.contact__label{
    display:block;
    margin-bottom:.6rem;
    color:var(--white-color);
    font-size:.95rem;
}

.contact__input{
    width:100%;
    background:var(--body-color);
    border:2px solid transparent;
    color:var(--white-color);
    padding:1rem;
    border-radius:.75rem;
    outline:none;
    transition:.3s;
    font-family:var(--body-font);
}

.contact__input:focus{
    border-color:var(--first-color);
}

.contact__area textarea{
    resize:none;
}
/*=============== CONTACT BUTTON ===============*/

.contact__button{
    width: 100%;
    justify-content: center;
    column-gap: .6rem;
    cursor: pointer;
    margin-top: .5rem;
}

.contact__button i{
    font-size: 1.1rem;
    transition: .4s;
}

.contact__button:hover i{
    transform: translateX(-5px);
}

.contact__note{
    margin-top: 1.5rem;
    text-align: center;
    color: var(--gray-color);
    font-size: .9rem;
    line-height: 1.7;
}

.contact__note i{
    color: var(--first-color);
    margin-left: .35rem;
}

/*=============== HOVER EFFECTS ===============*/

.contact__card:hover .contact__icon{
    transform: scale(1.15);
    text-shadow: 0 0 15px hsla(var(--hue),80%,60%,.6);
}

.contact__icon{
    transition: .4s;
}

.contact__input::placeholder{
    color: var(--gray-color);
}

.contact__input:hover{
    border-color: hsla(var(--hue),80%,60%,.3);
}

.contact__input:focus{
    box-shadow: 0 0 15px hsla(var(--hue),80%,60%,.15);
}

/*=============== FORM ANIMATION ===============*/

.contact__form,
.contact__card{
    box-shadow: 0 10px 30px rgba(0,0,0,.15);
}

.contact__form:hover{
    box-shadow:
    0 12px 35px rgba(0,0,0,.3),
    0 0 18px hsla(var(--hue),80%,60%,.15);
}

.contact__card:hover{
    box-shadow:
    0 10px 25px rgba(0,0,0,.25),
    0 0 15px hsla(var(--hue),80%,60%,.12);
}

/* footer */
/*=============== FOOTER ===============*/

.footer{
    margin-top: 6rem;
    padding: 4rem 0 2rem;
    border-top: 1px solid hsla(var(--hue),70%,60%,.15);
}

.footer__container{
    text-align: center;
}

.footer__logo{
    font-size: var(--h1-font-size);
    font-weight: var(--font-semi-bold);
    margin-bottom: .75rem;
    transition: .3s;
}

.footer__logo span{
    color: var(--first-color);
}
.footer__logo:hover{
  color: var(--first-color);
  text-shadow: 0 0 15px hsla(var(--hue) , 90% , 60% , .6);
}

.footer__description{
    max-width: 550px;
    margin: 0 auto 2rem;
    color: var(--text-color);
    line-height: 1.8;
}

.footer__links{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.footer__link{
    color: var(--text-color);
    transition: .3s;
}

.footer__link:hover{
    color: var(--first-color);
}

.footer__bottom{
    border-top: 1px solid hsla(var(--hue),70%,60%,.15);
    margin-top: 2rem;
    padding-top: 2rem;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer__copy{
    color: var(--text-color-light);
    font-size: var(--small-font-size);
}

.footer__theme{
    display: inline-flex;
    align-items: center;
    gap: .5rem;

    padding: .8rem 1.2rem;
    border-radius: .75rem;

    background: var(--container-color);
    color: var(--title-color);

    border: 1px solid hsla(var(--hue),70%,60%,.2);

    cursor: pointer;
    transition: .3s;
}

.footer__theme i{
    font-size: 1rem;
}

.footer__theme:hover{
    color: var(--first-color);
    border-color: var(--first-color);
    box-shadow: 0 0 15px hsla(var(--hue),90%,60%,.35);
}
/* light mode */
.theme-toggle{
    position: fixed;
    right: 2rem;
    bottom: 2rem;

    width: 55px;
    height: 55px;

    border-radius: 50%;
    border: 2px solid var(--first-color);

    background: var(--container-color);
    color: var(--first-color);

    display: grid;
    place-items: center;

    cursor: pointer;

    font-size: 1.3rem;

    box-shadow: 0 8px 25px rgba(0,0,0,.25);

    z-index: 1000;

    transition: .3s;
}

/*================ LIGHT THEME ================*/

body.light-theme{
  /* رنگ پس‌زمینه اصلی */
  --body-color: hsl(var(--hue), 25%, 96%);

  /* رنگ کارت‌ها */
  --container-color: hsl(var(--hue), 25%, 100%);

  /* متن اصلی */
  --white-color: hsl(var(--hue), 8%, 12%);

  /* متن تیره */
  --black-color: hsl(var(--hue), 8%, 5%);

  /* متن خاکستری */
  --gray-color: hsl(var(--hue), 6%, 42%);

  /* رنگ اصلی سایت */
  --first-color: hsl(var(--hue), 80%, 42%);
  --first-color-alt: hsl(var(--hue), 80%, 38%);
}
body.light-theme .header{
    /* background: rgba(255,255,255,.9); */
    /* backdrop-filter: blur(15px); */
    background: linear-gradient(90deg,#ffffff,#f8fafa);
    box-shadow: 0 5px 20px rgba(0,0,0,.08);
    border-bottom: 1px solid rgba(0,0,0,.08);
}
body.light-theme .theme-toggle{
    background: white;
    color: var(--first-color);
    box-shadow: 0 8px 30px rgba(0,0,0,.12);
}
body.light-theme .resume__card,
body.light-theme .contact__card,
body.light-theme .contact__form,
body.light-theme .projects__card{
    background: white;
}
body.light-theme .contact__input{
    background: #f5f5f5;
    color: #222;
}
.theme-toggle:hover{
    transform: translateY(-4px) rotate(15deg);
}
/*========== Light Theme Mobile Menu ==========*/
body.light-theme .nav__menu{
    background: rgba(255,255,255,.96);
    border-bottom: 1px solid rgba(0,0,0,.08);
    box-shadow: 0 12px 30px rgba(0,0,0,.08);
}

body.light-theme .nav__link{
    color: var(--black-color);
}

body.light-theme .nav__link:hover{
    color: var(--first-color);
}

body.light-theme .nav__close{
    color: var(--first-color);
}


/* back to top */
#backToTop{
    position: fixed;
    left: 30px;
    right: auto;
    bottom: 30px;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: var(--container-color);
    color: var(--first-color);
    border: 2px solid var(--first-color);
    font-size: 22px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: .3s;
    box-shadow: 0 0 15px hsla(180,100%,50%,.35);
}

#backToTop:hover{
    background:var(--first-color);
    color:var(--body-color);
    transform: translateY(-5px);
    box-shadow:0 0 25px hsla(180,100,50%,.45);
}


/* footer */
.footer{
    margin-top: 4rem;
    padding: 3rem 0 1.5rem;
}

.footer__description{
    font-size: var(--small-font-size);
    padding: 0 1rem;
}

.footer__links{
    gap: 1rem;
    font-size: .9rem;
}

.footer__bottom{
    flex-direction: column;
    text-align: center;
}

.footer__theme{
    margin-top: .5rem;
}


/*================ MOBILE =================*/

@media screen and (max-width:768px){

.container{
    margin-inline:1rem;
}

/*========== HOME ==========*/

.home__container{
    grid-template-columns:1fr;
    text-align:center;
    gap:3rem;
}

.home__buttons{
    justify-content:center;
}

.home__social{
    position:static;
    display:flex;
    justify-content:center;
    gap:1rem;
    margin-top:1.5rem;
}

/*========== ABOUT ==========*/

.about__container{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:2.5rem;
}

.about__content,
.about__data,
.about__skills{
    width:100%;
}

.about__data{
    text-align:center;
}

.about__data .section__title{
    text-align:center;
}

.about__skills{
    margin-top:1rem;
}

.skills__items{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:12px;
}

/*========== PROJECTS ==========*/

.projects__container{
    grid-template-columns:1fr;
}

/*========== RESUME ==========*/

.resume__container{
    grid-template-columns:1fr;
    width:100%;
    gap:1rem;
}

.resume__wide{
    grid-column:auto;
}

/*========== CONTACT ==========*/

.contact__container{
    grid-template-columns:1fr;
    gap:2rem;
}

.contact__group{
    grid-template-columns:1fr;
}

.contact__form{
    padding:1.5rem;
}

/*========== FOOTER ==========*/

.footer__bottom{
    flex-direction:column;
    text-align:center;
}

}

/*================ EXTRA SMALL =================*/

@media screen and (max-width:320px){

.home__image,
.about__image{
    width:220px;
    height:220px;
}

.home__img,
.about__img{
    width:100%;
}

.button{
    width:100%;
}

.contact__card{
    padding:1rem;
}

.resume__card{
    padding:1rem;
}

}

@media screen and (min-width:1150px){
  .container{
    margin-inline: auto;
  }
  .nav{
    height: calc(var(--header-height) + 2rem);
  }
  .nav__toggle,
  .nav__close{
    display: none;
  }
  .nav__list{
    flex-direction: row;
    column-gap: 4rem;
  }
  .section{
    padding-block: 7rem 2rem;
  }
  .section__title{
    margin-bottom: 3rem;
  }
  .home__container{
    grid-template-columns: 400px 480px;
    column-gap: 7rem;
    padding-block: 8rem 3rem;
  }
  .home__image{
    width: 400px;
    height: 400px;
    border-width: 8px;
  }
  .home__img{
    width: 340px;
  }
  .home__social{
    right: -4rem;
  }
  .home__data{
    row-gap: 1.5rem;
  }
  .home__buttons{
    margin-top: 3.5rem;
    column-gap: 1.5rem;
  }
  .about__container{
    grid-template-columns: 540px 400px;
    column-gap: 6rem;
    padding-block: 5rem 3rem;
  }
  .about__content{
    row-gap: 5rem;
  }
  .about__data .section__title{
    margin-bottom: 1.5rem;
  }
  .about__image{
    width: 400px;
    height: 400px;
    border-radius: 1.5rem;
  }
  .about__img{
    width: 350px;
  }
  .projects{
    padding-block: 8rem 4rem;
  }
  .projects__container{
    grid-template-columns: repeat(3 , 350px);
    gap: 3rem 2rem;
  }
  .projects__data .button{
   margin-top: 1rem;
  }
  /* rsume */
  .resume__container{
    width: 85%;
    margin-inline: auto;
    gap: 2rem;
  }
  /* contact */
   .contact__container{
        grid-template-columns:400px 1fr;
        gap:4rem;
    }

    .contact__form{
        padding:2.5rem;
    }

    .contact__card{
        padding:1.6rem;
    }
}
