@import url("smart-reset.css");
@import url("fontawesome7.css");
@import url("font.css");
:root {
  --primary-color: #242734;
  --secondary-color: #FFB027;
  --accent-color: #4E68B9;
  --neutral-color: #1ABC9C;
  --section-background:#353A4D;
  --body-bg-color: #242734;
  --light-blue: #6580d2;
  --dark-blue: #3f5595;
  --services-border: #474C66;
  --warning-alert:#E74C3C;
  --light-icon:#cdd1e2;
  --border-color:#cdd1e0;
  --text-white: #FFF;
  --text-light-gray: #9BA1BA;
  --text-dark-gray: #474C66;
  --font-family: "vazir", "sans-serif";
  --font-size: 1rem;
  --font-size-h1: 2rem; /* 32px */
  --line-height-h1: 3rem;
  --font-size-h2: 1.75rem; /* 28px */
  --line-height-h2: 2.625rem;
  --font-size-h3: 1.5rem;  /* 24px */
  --line-height-h3: 2.25rem;
  --font-size-h4: 1.25rem;  /* 20px */
  --line-height-h4: 1.875rem;
  --font-size-large: 1.125rem; /* 18px */
  --line-height-large: 2rem;
  --font-size-medium: 1rem; /* 16px */
  --line-height-medium: 1.875rem;
  --font-size-small: 0.875rem;  /* 14px */
  --line-height-small: 1.575rem;
  --font-size-caption: 0.75rem; /* 12px */
  --line-height-caption: 1.125rem;
  --font-weight-light: 300;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-bold: 700;
  --font-weight-black: 900;
  --border-radius-4: 4px ;
  --border-radius-8: 8px ;
  --border-radius-16: 16px ;
  --border-radius-24: 24px ;
  --border-radius-50: 50px ;
  --border-radius-100: 100px ;
  --border-radius-rounded: 100% ;
  --transition: all 0.2s ease-in-out;
}

html{
   overflow-x:hidden;
}
body {
	font-family: var(--font-family);
    font-size: var(--font-size);
    background-color: var(--body-bg-color);
    color: var(--text-white);
	-moz-font-feature-settings: "ss01";
    -webkit-font-feature-settings: "ss01";
    font-feature-settings: "ss01";
    min-height: 100vh;
    margin:0;
    padding:0;
   overflow-x:hidden;
}
a{
    transition: var(--transition);
}
h1{
    font-size: var(--font-size-h1);
    line-height: var(--line-height-h1);
    font-weight: var(--font-weight-bold);
}
h2{
    font-size: var(--font-size-h2);
    line-height: var(--line-height-h2);
    font-weight: var(--font-weight-bold);
}
h3{
    font-size: var(--font-size-h3);
    line-height: var(--line-height-h3);
    font-weight: var(--font-weight-bold);
}
h4{
    font-size: var(--font-size-h4);
    line-height: var(--line-height-h4);
    font-weight: var(--font-weight-medium);
}
/* main{
    min-height: 90vh;
    position: relative; 
} */
.primary-link{
    background-color: var(--secondary-color);
    color: var(--primary-color);
    min-width: 9.375rem;
    padding: 0.5rem 1rem;
    font-weight: var(--font-weight-medium);
    border-radius: var(--border-radius-50);
    font-size: var(--font-size-small);
    display: flex;
    justify-content: center;
    align-items: center;
}
.primary-link:hover{
    box-shadow: rgba(255, 176, 39, 0.6) 0 0 15px;
}
.primary-link i{
    font-size: 1rem;
    position: relative;
    top: 1px;
    margin-right: 0.5rem;
}

.container{
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 2rem
}
.hero-section{
    position: relative;
    background:linear-gradient(15deg, var(--primary-color) 60%, #364b89 100%);

}
/* .hero-section:before{
    position: absolute;
    content: "";
    width: 30vw;
    aspect-ratio: 1 / 1;
    top: 0;
    right: 0;
    background-image: url('../images/right-bg.svg');
    background-size: contain; 
    background-repeat: no-repeat;
    background-position: center;
    z-index: 0;
} */
.hero-section:after{
    position: absolute;
    content: "";
    width: 60vw;
    aspect-ratio: 16 / 9;
    top: -2rem;
    left: 0;
    background-image: url('../images/left-bg.svg');
    background-size: contain; 
    background-repeat: no-repeat;
    background-position: center;
    z-index: 0;
}
.hero{
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8rem 0;
    z-index: 2
}
.header{
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2rem 0 1rem;
    z-index: 2;
    padding: 0.3rem 0.5rem;
    border-radius: var(--border-radius-8);
    background-color: rgba(71, 76, 102, 0.4);
}
.inner-page{
    position: relative;
}
.inner-page:before{
    content: "";
    position: absolute;
    left: 0;
    top: -37rem;
    transform: translateX(-50%);
    width: 50rem;  
    height: 52rem; 
    background: radial-gradient(circle at center, #364b89 0%, transparent 70%);
    z-index: 0;
    border-radius: 50%;
}
.header * {
  position: relative;
  z-index: 1;
}
.hero__right, .hero__left{
    flex-basis: 50%;
}
.hero__right{
    margin-top: -1rem;
}
.hero__bars,
.header__bars{
    font-size: 1.4rem;
    color: var(--text-white);
    transition: var(--transition);
    padding: 0.5rem;
    display: none
}
.hero__bars:hover,
.header__bars:hover{
    cursor: pointer;
    color: var(--secondary-color);
}
.hero__bars-close,
.header__bars-close{
    position: absolute;
    left: 1.2rem;
    top: 1.2rem;
    font-size: 1.4rem;
    transition: var(--transition);
    display: none;
    z-index: 2;
}
.hero__bars-close:hover,
.header__bars-close:hover{
    cursor: pointer;
    color: var(--secondary-color);
}
.hero__menu--fixed{
    position: fixed;
    top: 0;
    right: 0;
    z-index: 10;
    background-color: var(--dark-blue);
    width: 100%;
    padding: 0.7rem 1rem;
    margin: 0;
    border-radius: 0;
}
.hero__menu-list,
.header__menu-list{
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding-right: 0.5rem
}
.header__menu-list{
    padding: 0.3rem 0.8rem;
}
.hero__menu-link,
.header__menu-link{
    font-size: var(--font-size-medium);
    line-height: var(--line-height-medium);
    padding-right: 1rem;
    position: relative;
    margin-left: 2.6rem;
    
}
.hero__menu-link:hover,
.header__menu-link:hover{
    color: var(--secondary-color);    
}
.hero__menu-link:before,
.header__menu-link:before{
    position: absolute;
    right: 0;
    top: -1px;
    content: "\f111";
    font-family:var(--fa-style-family,"fontawesome");
    color: var(--secondary-color);
    font-size: 0.5rem
}
.hero__menu-link:hover:before,
.header__menu-link:hover:before{
    content: "\e51e";
}
.hero__description{
    padding-top: 2.5rem;
}
.hero__main-title{
    color: var(--secondary-color);
    margin-bottom: 1rem;
    min-height: 3rem;
}
.hero__intro{
    font-size: var(--font-size-h4);
    line-height: var(--line-height-h4);
    font-weight: var(--font-weight-medium);
}
.hero__intro span{
    min-height: 2rem;
    display: block;
    padding: 0.5rem 0;
    opacity: 0; 
    transform: translateX(50px);
}
.hero__cta{
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-top: 2rem;
}
.hero__resume-link{
    background: linear-gradient(to right, var(--primary-color) 0%, var(--accent-color) 50%);
    background-size: 200% 100%;
    background-position:left bottom;
    color: var(--text-white);
    border:1px solid var(--accent-color);
    min-width: 9rem;
    padding: 0.5rem 1rem;
    font-weight: var(--font-weight-medium);
    border-radius: var(--border-radius-50);
    font-size: var(--font-size-small);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 0.8rem;
    transition:all 0.5s ease;
}
.hero__resume-link:hover{
    background-position:right bottom
}
.hero__portfolio-link{
    background: linear-gradient(to right, var(--primary-color) 0%, var(--secondary-color) 50%);
    background-size: 200% 100%;
    background-position:left bottom;
    color: var(--text-white);
    border:1px solid var(--secondary-color);
    min-width: 9rem;
    padding: 0.5rem 1rem;
    font-weight: var(--font-weight-medium);
    border-radius: var(--border-radius-50);
    font-size: var(--font-size-small);
    display: flex;
    justify-content: center;
    align-items: center;
    transition:all 0.5s ease;
}
.hero__portfolio-link:hover{
    background-position:right bottom
}
.hero__left{
    display: flex;
    justify-content: flex-end;
    position: relative;
    z-index: 1
}
.hero__image{
    max-width: 23.125rem;
    position: relative;
    z-index: 1
}
 .hero__animate {
  width: 103%;
  height: 103%;
  border-radius: 100%;
  padding: 4px;
  background: conic-gradient(
    from 0deg,
    #4E68B9,
    #242734,
    #242734,
    #4E68B9
  );
  animation: rotate 3s linear infinite; 
  position: absolute;
  right: -6px;
  top: -6px;
  z-index: 0
}
@keyframes rotate {
  100% {
    transform: rotate(360deg);
  }
}

.hero__img{
    width: 100%;
    position: relative;
    z-index: 1
}
.hero__img-caption{
    background-color: var(--accent-color);
    padding: 0.8rem 1rem;
    border-radius: 1rem 1rem 1rem 0;
    color: var(--text-white);
    font-size: var(--font-size-small);
    font-weight:var(--font-weight-regular);
    position: absolute;
    top: 1.2rem;
    right: -5.5rem;
    z-index: 2;
}

.hero__socials{
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 2rem;
}
.social-item{
    background-color: #E6E8EE;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-rounded);
    margin-bottom: 0.5rem;
    width: 2.2rem;
    height: 2.2rem;
    border:2px solid #B4B9CB;
    color: #474C66;
    font-size: 1.25rem;
}
.social-item:hover{
    background-color: var(--accent-color);
    color: var(--text-white);
    border-color: var(--accent-color);
}
.about-section{
    padding: 9rem 0;
    /* background-color: var(--section-background);
    clip-path: polygon(0 10%, 100% 0%, 100% 90%, 0 100%); */
}
.about{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5rem 4rem 5rem 5rem;
    background-color: var(--section-background);
    border-radius: var(--border-radius-50);
    border-top-right-radius: 0;
}
.screen-reader{
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    white-space: nowrap;
    border: 0;
    clip-path: inset(50%);
}
.about__right{
    flex-basis: 40%;
}
.about__left{
    flex-basis: 60%;
    position: relative;
}
.about__left:before{
    position: absolute;
    content: "";
    width: 70%;
    aspect-ratio: 1 / 1;
    top: -2rem;
    left: 0;
    background-image: url('../images/about.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 0;
}
.about__right img{
    opacity: 0;
    transform: translateX(20px);
}
.about__content{
    padding-right: 0;
    position: relative;
    z-index: 1;
}
.about__content h3{
    font-size: var(--font-size-h3);
    line-height: var(--line-height-h3);
    margin-bottom: 1.25rem;
    color: var(--secondary-color);
}
.about__content p{
    font-size: var(--font-size-medium);
    line-height: var(--line-height-medium);
    margin-bottom: 0.6rem;
}
.skill-section{
    position: relative;
    /* background:linear-gradient(15deg, var(--primary-color) 60%, #364b89 100%); */
    /* background: radial-gradient(circle at center left, #364b89 0%, #242734 30%); */
    background: radial-gradient(circle at center, #364b89 0%, #242734 45%);
}
.skill{
    padding: 6rem 0 8rem
}
.skill__title{
    margin-bottom: 3rem;
    text-align: center;
}
.skill__title h3{
    font-size: var(--font-size-h3);
    line-height: var(--line-height-h3);
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}
.skill__title p{
    color: var(--text-light-gray);
    font-size: var(--font-size-small);
    position: relative;
    display: inline-block;
}
.skill__content{
    position: relative;
    direction: ltr;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}
.skill__bar {
    min-width:5rem;
    width: auto;
    height: 2.9rem;
    background: #fff;
    border-radius: var(--border-radius-50);
    overflow: hidden;
    direction: ltr;
    position: relative;
}
.skill__label{
    display: flex;
    justify-content: flex-start;
    align-items: center;
    height: 100%;
    color: var(--primary-color);
    justify-content: center;
}
.skill__name{
    color: var(--text-dark-gray);
    font-weight: 600;
    font-feature-settings: "tnum";
    font-size: var(--font-size-small);
    line-height: 1.2rem;
    padding:1rem;
}
.skill__name img{
    display: inline-block;
    width: 1.375rem;
    position: relative;
    top: 5px;
    margin-right: 10px;
}
.skill__name .skill__icon-rocket{
    width: 1.125rem;
}
.skill__percent{
    position: absolute;
    right: 1rem;
    color: var(--neutral-color);
    font-feature-settings: "tnum";
    font-weight: 700;
    font-size: 1.2rem;
}
.skill__fill {
    height: 100%;
    width: auto;
    background: linear-gradient(to right, #f1fffd 0%, #a9fae9 60%);
    background-size: 200% 100%;
    background-position:left bottom;
    border-radius: var(--border-radius-24);
}
.experience{overflow-x:hidden}
.experience-section{
    padding: 7rem 0;
    background-color: var(--section-background);
    position: relative;
}
.experience__title{
    margin-bottom: 3rem;
    text-align: center;
}
.experience__title h3{
    font-size: var(--font-size-h3);
    line-height: var(--line-height-h3);
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}
.experience__title p{
    color: var(--text-light-gray);
    font-size: var(--font-size-small);
    position: relative;
    display: inline-block;
}
.experience__timeline{
    display: flex;
    flex-direction: column; 
    align-items: center; 
    position: relative;
    width: 75%;
    margin: 0 auto;
}
.experience__timeline:before{
    position: absolute;
    width: 50%;
    height: 100%;
    border-left: 2px dashed var(--neutral-color);
    content: '';
    right: 0;
    top: 0;
}

.experience__item{
    position: relative;
    padding: 0.5rem 2rem 0.8rem;
    display: flex;
    align-content: center;
    flex-direction: column;
    background-color: var(--text-white);
    border-radius: var(--border-radius-16);
    width: 46%;
}
.experience__item:nth-child(odd){
    align-self: flex-start;
    border-top-left-radius:0;
}
.experience__item:nth-child(even) {
    align-self: flex-end;
    border-top-right-radius:0;
    margin:2rem 0;
}
.experience__item:before{
    position: absolute;
    width: 1rem;
    height: 1rem;
    border-radius: var(--border-radius-100);
    background-color: var(--neutral-color);
    content: '';
    top: -0.3rem;
    z-index: 2;
}
.experience__item:nth-child(odd):before{
    left: -2.55rem;
}
.experience__item:nth-child(even):before{
    right: -2.6rem;
}
.experience__time{
    border-bottom: 1px solid var(--border-color);
    color: var(--text-light-gray);
    font-size: var(--font-size-small);
    line-height: var(--line-height-small);
    width: 100%;
    height: 2.375rem;
    margin-bottom: 0.3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.experience__content {
    width: 100%;
}
.experience__content i{
    color: var(--light-icon);
    margin-top: 1px;
}
.experience__company{
    color: var(--text-dark-gray);
    font-size: var(--font-size-small);
    line-height: var(--line-height-small);
    padding: 0.2rem 0;
}
.experience__company .lbl{
    color: var(--text-light-gray);
}
.experience__job-title{
    color: var(--neutral-color);
    font-size: var(--font-size-small);
    line-height: var(--line-height-small);
    font-weight: var(--font-weight-medium);
    margin-top: 0.2rem;
}
.experience__jobs{
    font-size: var(--font-size-small);
    line-height: var(--line-height-small);
    color: var(--text-dark-gray);
    padding: 0.0 0.5rem 0 0;
    margin: 0.5rem 0.9rem 0.2rem 0;
    border-right: 2px solid var(--border-color);
}



.services-section{
    padding: 6rem 0 3rem;
    position: relative;
    background-color: var(--section-background); 
}

.services__title{
    margin-bottom: 3rem;
    text-align: center;
}
.services__title h3{
    font-size: var(--font-size-h3);
    line-height: var(--line-height-h3);
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}
.services__title p{
    color: var(--text-light-gray);
    font-size: var(--font-size-small);
    position: relative;
    display: inline-block;
}
.services__item{
    position: relative;
    margin-bottom: 7rem;
}
.services__item--graphic:before{
    position: absolute;
    left:4.4rem;
    top: -6rem;
    content: '';
    background: url('../images/graphic.svg');
    background-size: cover;
    width:220px;
    aspect-ratio: 1/1;
    transform: rotate(0);
}
.services__item--frontend:before{
    position: absolute;
    right:4rem;
    top: -6rem;
    content: '';
    background: url('../images/laptop.svg');
    background-size: cover;
    width:340px;
    aspect-ratio: 1/1;
    transform: rotate(5deg) scaleX(-1);
    transform-origin: center;
}
.services__item--wordpress:before{
    position: absolute;
    left: 2rem;
    top: -6rem;
    content: '';
    background: url('../images/seo.svg');
    background-size: cover;
    width:280px;
    aspect-ratio: 1/1;
    transform: rotate(20deg);
}
.services__item--right{
    padding:3rem 16rem 0 0;
}
.services__item--left{
    padding:3rem 0 0 16rem;
}
.services__image-layer{
    position:absolute;
    width:310px;
    height:220px;
    top: 0;
    border:3px dashed var(--services-border);
    border-radius: 1rem;
}
.services__item--right .services__image-layer{
    right: 0
}
.services__item--left .services__image-layer{
    left: 0;
}
.services__image{
    position:relative;
    top: 1rem;
    width: 100%;
    height: 100%;
    z-index: 1;
    border:3px solid var(--services-border);
    overflow: hidden;
}
.services__image img{
    object-fit: cover;
}
.services__item--right .services__image{
    right: 1rem;
    border-radius: 1rem;
    border-bottom-left-radius: 0;
}
.services__item--left .services__image{
    left: 1rem;
    border-radius: 1rem;
    border-bottom-right-radius: 0;
}
.services__article{
    position: relative;

}
.services__article h3{
    text-align: right;    
    padding-right: 6rem;
}
.services__item--right .services__article{
    padding-left: 1.1rem;
}
.services__item--left .services__article{
    padding-right: 1.1rem;
}
.services__article h3{
    margin-bottom: 1.6rem;
}
.services__article h3 a:hover{
    color: var(--light-blue);
}
.services__item--right h3{
    text-align: right;    
    padding-right: 6rem
}
.services__item--left h3{
    text-align: left;    
    padding-left: 6rem;
}
.services__content{
    position: relative;
}
.services__content:before{
    position: absolute;
    width: 100%;
    height: 100%;
    content: '';
    border:3px dashed var(--services-border);
    z-index: 0;
    border-radius: 1rem;
}
.services__item--right .services__content:before{
    left: -1.1rem;
    bottom: -1.1rem;
    border-bottom-left-radius: 0;
}
.services__item--left .services__content:before{
    right: -1.1rem;
    bottom: -1.1rem;
    border-bottom-right-radius: 0;
}
.services__content .inner{
    position: relative;
    background-color: #fff;
    border:3px solid var(--services-border);
    z-index: 0;
    border-radius: 1rem;
}
.services__item--right .services__content .inner{
    border-bottom-left-radius: 0;
    padding: 2rem 6rem 2rem 2rem;
}
.services__item--left .services__content .inner{
    border-bottom-right-radius: 0;
    
    padding: 2rem 2rem 2rem 6rem;
}
.services__content .inner p{
    color: var(--text-dark-gray);
    font-size: var(--font-size-small);
    line-height: var(--line-height-small);
}
.services__content .inner .bld{
    color: var(--neutral-color);
    font-size: var(--font-size-large);
    line-height: var(--line-height-large);
    font-weight: var(--font-weight-medium);
    margin-bottom: 0.5rem;
    display: block;
}
.services__link{
    color: var(--text-light-gray);
    border:2px solid var(--text-light-gray);
    width: 2rem;
    height: 2rem;
    border-radius: 100%;
    font-weight: var(--font-weight-medium);
    border-radius: var(--border-radius-50);
    font-size: var(--font-size-small);
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    opacity: 0;
    transform: translateX(20px);
}
.services__link:hover{
    color: var(--light-blue);
    border-color: var(--light-blue);
}
.services__item--right .services__link{
    top: 0.3rem;
    left: 1.1rem;
}
.services__item--left .services__link{
    top: 0.3rem;
    right: 1.1rem;
}

.contact-section{
    padding: 7rem 0 10rem;
    position: relative;
}
.contact-section:before{
    position: absolute;
    width: 300px;
    aspect-ratio: 1/1;
    right: 0;
    bottom: 10rem;
    content: '';
    background: url('../images/contact2.svg');
    background-size: cover;   
    background-repeat: no-repeat;
    background-position: center;
    z-index: 0;
}
.contact-section:after{
    position: absolute;
    width: 21.875rem;
    aspect-ratio: 1/1;
    left: 0;
    top: 20rem;
    content: '';
    background: url('../images/contact1.svg');
    background-size: cover;  
    background-repeat: no-repeat;
    background-position: center;
    z-index: 0;
}
.contact {
  max-width: 50rem;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.contact:before {
    position: absolute;
    width: 9.375rem;
    aspect-ratio: 1/1;
    left: 45%;
    bottom: -9.625rem;
    content: '';
    background: url('../images/arrow.svg');
    background-size: cover;  
    background-repeat: no-repeat;
    background-position: center;
    z-index: 0;
}
.contact__title{
    margin-bottom: 3rem;
    text-align: center;
}
.contact__title h3{
    font-size: var(--font-size-h3);
    line-height: var(--line-height-h3);
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}
.contact__title p{
    color: var(--text-light-gray);
    font-size: var(--font-size-small);
    position: relative;
    display: inline-block;
}

.contact__form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem 1.5rem;
  background-color: #fff;
  padding: 2rem;
  border-radius: var(--border-radius-50);
}
#post-23 .contact__form{
    max-width:50rem;
    margin: 3rem auto 1rem;
}
#post-23 .page__content p{
    text-align:center;
}
.contact__group {
  display: flex;
  flex-direction: column;
}

.contact__group--full {
  grid-column: 1 / -1; 
}

.contact__form label {
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  color: var(--text-dark-gray);
}

.contact__form input,
.contact__form textarea {
  padding: 0.7rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-50);
  border-top-right-radius: 0;
  font-size: 0.875rem;
  color: var(--text-dark-gray);
}

.contact__form textarea {
  resize: none;
  color: var(--text-dark-gray);
  border-radius: var(--border-radius-50);
  border-top-right-radius: 0;
}

.contact__actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
}
.contact__form button[type="submit"] {
  background: linear-gradient(to right, var(--primary-color) 0%, var(--accent-color) 50%);
    background-size: 200% 100%;
    background-position:left bottom;
    color: var(--text-white);
    border:1px solid var(--accent-color);
    min-width: 7rem;
    padding: 0.7rem 1.4rem;
    font-weight: var(--font-weight-medium);
    border-radius: var(--border-radius-50);
    font-size: var(--font-size-medium);
    display: flex;
    justify-content: center;
    align-items: center;
    transition:all 0.5s ease;
    margin: 1rem 0 0.5rem;
}
.contact__form button[type="submit"]:hover{
    background-position:right bottom
}

.footer{
    background-color: var(--primary-color);
    padding: 3rem 0 1.5rem;
    position: relative;
    overflow: hidden;
}
.footer--single{
    padding: 5rem 0 1.5rem;
}
.footer:before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -25rem;
    transform: translateX(-50%);
    width: 35rem;  
    height: 35rem; 
    background: radial-gradient(circle at center, #364b89 0%, transparent 70%);
    z-index: 0;
    border-radius: 50%;
}
.footer * {
  position: relative;
  z-index: 1;
}
.footer__socials{
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin-bottom: 1.5rem;
}
.footer__socials .social-item{
    margin: 0 0.5rem;
}
.footer__copyright{
    text-align: center;
    font-size: var(--font-size-small);
    line-height: var(--line-height-small);
}
.footer__copyright a{
    color: var(--secondary-color);
}
.footer__copyright a:hover{
    color: #fff;
}

.experience__bg{
    position: absolute
}
.experience__bg img{
    position: absolute;
    width: 20rem;
    aspect-ratio: 1/1;
    z-index: 0
}
.experience__bg--one{
    top: 7rem;
    left: -2rem;
    transform: scaleX(-1);
}
.experience__bg--one img{
    width: 22rem;
    left:0;
    top:0;
}
.experience__bg--two{
    top: 90vw;
    right: -2rem;
    transform: scaleX(-1);
}

.breadcrumb {
  font-size: 14px;
  margin: 1rem 0;
  padding:0.4rem 0.2rem 
}

.breadcrumb__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
}

.breadcrumb__item {
  display: flex;
  align-items: center;
}

.breadcrumb__item + .breadcrumb__item::before {
  content: "/";
  margin: 0 0.5rem;
  color: var(--text-dark-gray);
}

.breadcrumb__link {
  text-decoration: none;
  color: var(--text-light-gray);
  transition: color 0.2s;
}

.breadcrumb__link:hover {
  color: var(--accent-color);
}

.breadcrumb__item--current {
  color: var(--text-white);
}

.project{
    padding:3rem 4rem 4rem;
    position: relative;
    background-color: rgba(71, 76, 102, 0.4);
    border-radius: var(--border-radius-8);
    margin-bottom: 1rem;
}
.project__header{
    margin-bottom: 2rem;
}
.project__title{
    font-size: var(--font-size-h2);
    line-height: var(--line-height-h2);
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.project__subtitle{
    font-size: var(--font-size-medium);
    line-height: var(--line-height-medium);
    font-weight: normal;
    color: var(--text-light-gray);
}
.project__details{
    display: flex;
    justify-content: space-between;
}
.project__right{
    flex-basis: 50%;
}
.project__left{
    flex-basis: 40%;
}
.project__right p{
    font-size: var(--font-size-medium);
    line-height: var(--line-height-medium);
    font-weight: normal;
    margin-bottom: 1rem;
    position: relative;
}
.project__right h3{
    font-size: var(--font-size-large);
    line-height: var(--line-height-large);
    color: var(--neutral-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.project__right dt{
    font-size: var(--font-size-medium);
    line-height: var(--line-height-medium);
    font-weight: normal;
    color: var(--text-white);
}
.project__right dd{
    font-size: var(--font-size-small);
    line-height: var(--line-height-small);
    font-weight: normal;
    color: var(--text-light-gray);
    position: relative;
    padding-right: 1.5rem;
    margin-bottom: 0.5rem;
}
.project__right dd:before{
    position: absolute;
    right: 0;
    top: -0.1rem;
    content: '\e4c0';
    font-size: 1rem;
    font-family: 'fontawesome';
    color: var(--accent-color);
    transform: rotate(180deg);
}
.project__right ul{
    margin-top: 2rem;
}
.project__right ul li{
    font-size: var(--font-size-medium);
    line-height: var(--line-height-medium);
    font-weight: normal;
    padding: 0.1rem 0
}
.project__right ul li span{
    color: var(--neutral-color);
}
.project__right ul li a{
    font-size: var(--font-size-small);
    letter-spacing: 0.05rem;
}
.project__right ul li a:hover{
    color: var(--secondary-color);
}

.gallery {
  max-width: 960px;
  margin: 0 auto;
  padding-inline: 1rem; /* فاصله امن در موبایل */
}

/* --- Main Viewer --- */
.gallery__viewer {
    width: 100%;
    position: relative;
    overflow: hidden;
    height: 24rem;
}
.gallery__main {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: object-position 5s ease;
    border-radius: var(--border-radius-16);
    border:4px solid var(--text-dark-gray)
}
.gallery__viewer:hover .gallery__main{
    object-position: bottom;
}
.gallery__zoom {
  position: absolute;
  inset-inline-end: 12px;
  inset-block-start: 12px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
}
.gallery__zoom::before {
  content: "⤢";
  color: #fff;
  font-size: 18px;
}

/* --- Thumbnails --- */
.gallery__thumbs {
  width: 100%;
  display: grid;
  grid-auto-columns: 4rem;
  grid-auto-flow: column;
  overflow-x: auto;
  gap: 1rem;
  padding: 0.3rem;
  margin-block: 12px 0;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}
.gallery__thumbs::-webkit-scrollbar {
  display: none;
}
.gallery__thumb {
  width: 4rem;
  height: 4rem;
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  border-radius: 10px;
  flex-shrink: 0; /* جلوگیری از جمع شدن */
}
.gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 10px;
  opacity: 0.7;
}
.gallery__thumb:is(:hover, :focus) img {
  opacity: 0.95;
}
.gallery__thumb.is-active img {
  outline: 4px solid var(--text-dark-gray);
  opacity: 1;
}

/* --- Lightbox --- */
.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  padding: 1rem;
}
.lightbox.is-open {
  display: flex;
}
.lightbox__dialog {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}
.lightbox__img {
  max-width: 100%;
  max-height: 80vh;
  display: block;
  border-radius: 12px;
}
.lightbox__caption {
  color: #fff;
  text-align: center;
  margin-top: 10px;
  font-size: 14px;
}

.lightbox__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: rgba(0, 0, 0, 0.45);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  cursor: pointer;
}
.lightbox__prev {
  left: -56px;
}
.lightbox__next {
  right: -56px;
}
.lightbox__close {
  position: absolute;
  top: -56px;
  right: 0;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 0;
  background: rgba(0, 0, 0, 0.45);
  cursor: pointer;
}
.lightbox__btn::before,
.lightbox__close::before {
  color: #fff;
  font-size: 18px;
}
.lightbox__prev::before {
  content: "◀";
}
.lightbox__next::before {
  content: "▶";
}
.lightbox__close::before {
  content: "✕";
}

.portfolio{
    padding:4rem;
    position: relative;
    background-color: rgba(71, 76, 102, 0.4);
    border-radius: var(--border-radius-8);
    margin-bottom: 1rem;
    overflow: hidden;
}
.portfolio__list{
    display: grid;
    gap:2rem;
    /* grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); */
    grid-template-columns: repeat(3 , 1fr);
}
.portfolio__header{
    margin-bottom: 4rem;
    text-align: center;
}
.portfolio__header h1{
    font-size: var(--font-size-h3);
    line-height: var(--line-height-h3);
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}
.portfolio__header p{
    color: var(--text-light-gray);
    font-size: var(--font-size-small);
    position: relative;
    display: inline-block;
}
.portfolio__item{
    border-radius: var(--border-radius-8);
    background-color: var(--text-dark-gray);
    padding: 1rem
}
.portfolio__image {
  width: 100%; 
  height: 18.75rem; 
  overflow: hidden; 
  position: relative;
  display: block;
  border-radius: var(--border-radius-8);
}

.portfolio__thumb {
  width: 100%;
  height: 100%;         
  object-fit: cover;     
  object-position: top;   
  transition: object-position 8s ease;
}

.portfolio__image:hover .portfolio__thumb {
  object-position: bottom; 
}
.portfolio__details{
    position: relative;
    padding: 0.5rem;
}
.portfolio__title{
    font-size: var(--font-size-large);
    font-weight: normal;
    color: var(--secondary-color);
    line-height: var(--line-height-large);
    margin:0.5rem 0 0
}
.portfolio__title:hover{
    color: var(--neutral-color);
}
.portfolio__year{
    font-size: var(--font-size-medium);
    font-weight: normal;
    color: var(--text-light-gray);
    line-height: var(--line-height-medium);
}

.archive__title,.page__title,.post__title{
    font-size: var(--font-size-h2);
    margin: 2rem 0 1rem;
    color: var(--secondary-color);
    position: relative;
    padding-right: 1.5rem;
}
.post__title:before,
.archive__title:before,
.page__title:before{
    position: absolute;
    width: 0.25rem;
    height: 1rem;
    border-radius: var(--border-radius-50);
    content: '';
    right: 0.45rem;
    bottom: 0.4rem;
    background-color: var(--secondary-color);
}
.post__title:after,
.archive__title:after,
.page__title:after{
    position: absolute;
    width: 0.25rem;
    height: 70%;
    border-radius: var(--border-radius-50);
    content: '';
    right: 0;
    top: 0.5rem;
    background-color: var(--secondary-color);
}
.page__content ,.post__content{
    padding: 2rem;
    border-radius: var(--border-radius-8);
    background-color: var(--section-background);
    margin-bottom: 2rem;
}
.page__content p , .post__content p{
    margin-bottom: 1rem;
    font-size: var(--font-size-medium);
    line-height: var(--line-height-medium);
}
.post__content h2{
    font-size: var(--font-size-h3);
    line-height: var(--line-height-h3);
    color: var(--neutral-color);
}
.post__content h3{
    font-size: var(--font-size-h4);
    line-height: var(--line-height-h4);
    color: var(--secondary-color);
}
.post__content h2 , .post__content h3{
    margin:2rem 0 0.5rem;
}
.post__content a{
    color: var(--secondary-color) !important;
}
.archive__item{
    padding: 1rem;
    border-radius: var(--border-radius-8);
    background-color: var(--section-background);
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}
.archive__item-image img{
    object-fit: cover;
    border-radius: var(--border-radius-8);
}
.archive__item-title{
    font-size: var(--font-size-h3);
    line-height: var(--line-height-h3);
    color: var(--neutral-color);
    margin-bottom: 0.8rem;
}
.archive__item-excerpt{
    font-size: var(--font-size-medium);
    line-height: var(--line-height-medium);
}
.post__thumb{
    text-align: center;
    margin-bottom: 2rem;
}
.post__thumb img{
    object-fit: cover;
    display: inline;
    border-radius: var(--border-radius-8);
}


/* Responsive */

@media only screen and (max-width: 1440px) {
    .container{
        width: 100%;
        padding: 0 1.4rem;
    }
}

@media only screen and (max-width: 1299px) {
    .gallery__thumbs {
        max-width: 30rem; 
    }
    .archive__item-image{
        min-width:20rem;
    }
}

@media only screen and (max-width: 1199px) {
    .hero__bars,.hero__bars-close{
        display: flex
    }
    .hero__menu{
        position: fixed;
        right: -18rem;
        top: 0;
        z-index: 15;
        background-color: var(--accent-color);
        width: 18rem;
        height: 100vh;
        padding: 1.4rem 1rem;
        opacity: 0;
        transition: var(--transition);
        pointer-events: none; 
    }
    .hero__menu--fixed .hero__menu{
        height:auto;
    }
    .hero__menu-list{
        flex-direction: column;
        padding: 1rem 2rem
    }
    .hero__menu-item{
        margin-bottom: 0.5rem;
        align-self: flex-start;
        justify-items: baseline;
    }
    .hero__menu--fixed .hero__men{
        top: 2.8rem;
        height: auto;
        width: 100%;
        right: -100%;
    }
    .hero__menu--fixed .hero__bars-close{
        display: none;
    }
    .hero__menu--fixed .hero__menu.active {
        right: 0;
        opacity: 1;
        pointer-events: auto;
        padding: 0;
        margin: 0;
        width: 100%;
        top:3.8rem;
    }
    .hero__menu.active{
        right: 0;
        opacity: 1;
        pointer-events: auto;
        padding: 0;
        margin: 0;
        width: 18rem;
    }
    .about{
        padding: 3rem
    }
    .about__left{
        flex-basis: 55%;
    }
    .experience__timeline{
        width: 80%;
    }
    .project {
        padding: 2rem 3rem 3rem;
    }
    .project__right {
        flex-basis: 55%;
        padding-left: 3rem;
    }
    .project__left {
        flex-basis: 45%;
    }
    .gallery__thumbs {
        max-width: 24rem;
    }
    .portfolio__list{
        grid-template-columns: repeat(2 , 1fr);
    }
}


@media only screen and (max-width: 1024px) {
    .about{
        flex-wrap: wrap;
        border-radius: var(--border-radius-24);
    }
    .about__right,.about__left{
        flex-basis:100%;
    }
    .about__right img{
        width: 18rem;
        margin: 0 auto 2rem;
    }
    .hero{
        padding: 6rem 0
    } 
    .project {
        padding: 2rem;
    }
    .gallery {
        max-width: 1100px;
    }
    .lightbox__img {
        max-width: 80vw;
        max-height: 80vh;
    }
    .portfolio {
        padding: 3rem 2rem 2rem;
    }
}


@media only screen and (max-width: 991px) {
    h1{
        font-size: var(--font-size-h2);
        line-height: var(--line-height-h2);
    }
    .hero__intro{
        font-size: var(--font-size-large);
        line-height: var(--line-height-large);
    }
    .hero__intro span{
        padding: 0.2rem 0;
    }
    .hero__socials {
        padding: 0 1rem 0 0.5rem;
    }
    .hero__image{
        max-width: 18rem;
    }
    .hero__img-caption{
        padding: 0.5rem 0.8rem
    }
    .hero{
        padding: 6rem 0
    }
    .hero__main-title{
        margin-bottom: 0.5rem;
    }
    .hero__cta {
        margin-top: 1.2rem;
    }
    .hero-section:after{
        width: 90vw;
    }
    .about{
        padding: 2rem
    }
    .skill__content{
        gap: 1rem;
    }
    .skill__name{
        font-size: var(--font-size-small);
    }
    .skill__percent{
        font-size: 1rem;
    }
    .skill {
        padding: 5rem 0 6rem;
    }
    .experience-section{
        padding: 5rem 0 7rem
    }
    .experience__timeline{
        width: 100%;
    }
    .experience__item:nth-child(odd):before{
        left: -2.3rem;
    }
    .experience__item:nth-child(even):before{
        right: -2.3rem;
    }
    .services__item--right h3,.services__item--left h3{
        font-size: var(--font-size-h4);
        line-height: var(--line-height-h4);
        margin-bottom: 1.4rem;
    }
    .services__item--right .services__link,.services__item--left .services__link{
        top: 0;
    }
    .services__content .inner .bld{
        font-size: var(--font-size-medium);
        line-height: var(--line-height-small);
    }
    .services__item--right .services__content .inner {
        padding: 1.5rem 5.5rem 1.5rem 1.5rem;
    }
    .services__item--left .services__content .inner {
        border-bottom-right-radius: 0;
        padding: 1.5rem 1.5rem 1.5rem 5.5rem;
    }
    .services__item--right{
        padding-right: 13rem;
    }
    .services__item--left{
        padding-left: 13rem;
    }
    .services__image-layer {
        position: absolute;
        width: 260px;
        height: 180px;
    }
    .services__item--frontend:before,.services__item--wordpress:before,.services__item--graphic:before{
        display: none;
    }
    .services__item {
        margin-bottom: 6rem;
    }
    .services-section {
        padding: 5rem 0 1.5rem;
    }
    .contact-section{
        padding-top: 5rem;
    }
    .project__details{
        flex-direction: column;
    }
    .project__left {
        order: 1;
        width: 95%;
        margin: 0 auto 3rem;
    }
    .gallery__thumbs{
        max-width: 30rem;
        padding: 0 0.5rem
    }
    .project__right{
        order: 2;
        padding-left: 0;
    }
    .gallery__thumbs {
        gap: 0.8rem;
        overflow-x: auto; 
    }
    .lightbox__img {
        max-height: 70vh;
    }
    .page__content{
        padding: 1rem;
    }
    .archive__item{
        gap: 1.5rem;
    }
    .archive__item-image{
        display:none;
    }
}

@media only screen and (max-width: 767px) {
    .header__bars,.header__bars-close{
        display: flex
    }
    .header__menu{
        position: fixed;
        right: 0;
        top: 0;
        z-index: 15;
        background-color: var(--accent-color);
        width: 18rem;
        height: 100vh;
        padding: 1.4rem 1rem;
        transition: var(--transition);
        pointer-events: none; 
        display:none;
    }
    .header__menu-list{
        flex-direction: column;
        padding: 1rem 2rem
    }
    .header__menu-item{
        margin-bottom: 0.5rem;
        align-self: flex-start;
        justify-items: baseline;
    }
    .header__menu.active {
        display:flex;
        pointer-events: auto;
        padding: 0;
        margin: 0;
        width: 18rem;
    }
   .hero{
        flex-wrap: wrap;
        padding: 3rem 0;
   }
   .hero__right, .hero__left{ 
        flex-basis: 100%;
   }
   .hero__description{
        padding-top: 1rem;
        text-align: center;
        position: relative;
        z-index: 2
   }
   .hero__cta {
        display: flex;
        justify-content: center;
        gap: 0.5rem;
    }
    /* .hero__right {
        order: 2;
    }*/
    .hero__left {
        flex-direction: column;
    } 
    .hero__image{
        margin: 3rem auto 0;
        max-width: 15rem;
    }
    .hero__img-caption{display:none}
    .hero__socials{
        margin-top: 2rem;
        flex-direction: row;
        gap: 0 1.1rem;
        padding: 0
    }
    .services__item--right,.services__item--left{
        padding: 0
    }
    .services__item--left h3{
        text-align: right;
    }
    .services__image-layer{
        display: none;
    }
    .services__item--right h3, .services__item--left h3{
        padding: 0;
        transform: translateX(0) !important;
    }
    .services__title{
        margin-bottom: 4rem;
    }
    .services__item--right .services__content .inner,
    .services__item--left .services__content .inner{
        padding: 1rem 1.5rem 1.5rem
    }
    .services__item{
        margin-bottom: 4rem;
    }
    .services__item--left .services__link {
        right: auto;
        left: 0;
    }
    .services__item--frontend:before,.services__item--wordpress:before,.services__item--graphic:before{
        display: inherit;
    }
    .services__item--graphic:before{
        left: 4rem;
        top: -6.8rem;
        width: 180px
    }
    .services__item--frontend:before{
        right: auto;
        top: -3.6rem;
        left: 1.8rem;
        width: 200px;
        transform: rotate(-5deg) scaleX(1);
    }
    .services__item--wordpress:before{
        left: 1rem;
        top: -4rem;
        width: 180px;
    }
    .services__item{
        margin-bottom: 5rem;
    }
    .lightbox__dialog {
        max-width: 100%;
        max-height: 100%;
        padding: 1rem;
        left: -5%;
        top: -10%;
    }
    .lightbox__img {
        width: 100%;
        height: auto;
        max-height: 90vh;
    }
    .lightbox__btn,
    .lightbox__close {
        width: 36px;
        height: 36px;
    }
    .lightbox__prev {
        left: 8px;
    }
    .lightbox__next {
        right: 8px;
    }
    .lightbox__close {
        top: 8px;
        right: 8px;
    }
    .about__right{
        display:none;
    }
}

@media only screen and (max-width: 690px) {
    .portfolio__list{
        grid-template-columns: repeat(1 , 1fr);
    }
}

@media only screen and (max-width: 640px) {
   .contact__form {
        grid-template-columns: 1fr;
    }
    .skill__title h3{
        font-size: var(--font-size-h4);
        line-height: var(--line-height-h4);
    }
    .experience__item{
        width: 100%;
    }
    .experience__timeline:before,
    .experience__item:before{
        display: none
    }
    .gallery__thumbs{
        max-width: 21rem;
    }
    .gallery__thumbs{
        gap: 0.5rem;
    }
    .project {
        padding: 1.5rem;
    }
    .gallery__thumbs {
        grid-auto-columns: 3.2rem; /* کوچکتر شدن تامب */
        gap: 0.6rem;
    }
    .gallery__thumb {
        width: 3.2rem;
        height: 3.2rem;
    }
    .lightbox__btn,
    .lightbox__close {
        width: 36px;
        height: 36px;
    }
    .lightbox__prev {
        left: -44px;
    }
    .lightbox__next {
        right: -44px;
    }
    .lightbox__close {
        top: -44px;
    }
}

@media only screen and (max-width: 576px) {
    .hero__menu,
    .header__menu{
        width: 100%;
    }
    .contact__form{
        gap: 1rem;
    }
    .services__item--right h3, .services__item--left h3{
        font-size: var(--font-size-large);
    }
    .header:before{
        width: 25rem;
        border-radius: var(--border-radius-24);
        top: -31rem;
    }
    .lightbox__dialog {
        left: -10%;
    }
    .project__left{
        width: 100%;
    }
}
@media only screen and (max-width: 480px) {
    .hero__menu.active ,
    .header__menu.active {
        width: 100%;
    }
    .about{
        padding: 1.5rem
    }
    .services__item--frontend:before,.services__item--wordpress:before,.services__item--graphic:before{
        opacity: 0.7;
    }
    .gallery__thumbs{
        max-width: 18rem;
    }
}
