/* ===================== GOOGLE FONTS ======================== */
@import url('https://fonts.googleapis.com/css2?family=Clicker+Script&family=Noto+Sans:wght@300;400;600;700&family=Poppins:wght@200;300;400;500;600&family=Roboto+Mono:wght@500;600;700&family=Roboto:wght@400;500;700&display=swap');


/* CSS VARIABLES */
:root {
    --header-height: 3.5rem;

    /* colors */
    --title-color: #4a4a4a;
    --text-color: #555;
    --text-color-alt: #999;
    --bg-color: #fff;
    --bg-color-alt: #e9ecef;
    --border-color: #f1f1f1;

    /* ======== Font and typography =========== */
    --roboto-font: 'Roboto', sans-serif;
    --mono-font: 'Roboto Mono', monospace;

    --fs-h1: 2.75rem;
    --fs-h2: 2.25rem;
    --fs-lg: 1.125rem;
    --fs-base: 1rem;
    --fs-sm: 0.875rem;
    --fs-xs: 0.75rem;

    /* ************* FONT WEIGHT ************ */
    --medium: 500;
    --semibold: 600;
    --bold: 700;
}

/* BASE*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body,
button,
input,
textarea {
    font-family: var(--roboto-font);
    font-size: var(--fs-base);
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.5em;
}

h1,
h2,
h3,
h4 {
    font-family: var(--mono-font);
    font-weight: bold;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
}

button {
    cursor: pointer;
    background: none;
    border: none;
    outline: none;
}

img {
    max-width: 100%;
    height: auto;
}

textarea,
input {
    background: none;
    border: none;
    outline: none;
}

/* ************* Reusable Css ************ */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding-left: 0.9rem;
    padding-right: 0.9rem;
}

.grid {
    display: grid;
}

.section {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.section__title {
    font-size: var(--fs-h2);
    line-height: 1.17em;
    font-weight: var(--medium);
    margin-bottom: 1.12em;
}

.text-lg {
    font-size: var(--fs-lg);
    line-height: 1.67em;
}

.text-sm {
    font-size: var(--fs-sm);
    line-height: 1.43em;
}

.text-xs {
    font-size: var(--fs-xs);
    line-height: 1.5em;
}

.skills__title,
.resume__title {
    color: var(--text-color-alt);
    letter-spacing: 0.4em;
    margin-bottom: 2.8em;
}

/* ************* header ************ */
.header {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 100;
    width: 100%;
    transition: .3s;
}

.nav {
    height: calc(var(--header-height) + 0.875rem);
    display: flex;
    align-items: flex-end;
}

.nav__list {
    display: flex;
    column-gap: 3.25rem;
}

.nav__link {
    color: #fff;
    font-size: 0.9rem;
    font-weight: var(--bold);
    font-family: var(--mono-font);
    text-transform: uppercase;
    position: relative;
    transition: 0.3s;
}

.nav__link:hover {
    opacity: 0.5;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: -0.5rem;
    width: 7px;
    height: 2px;
    background-color: #fff;
    opacity: 0;
    transition: 0.3s;
}

.nav__link:hover::after {
    opacity: 1;
}

.nav__close,
.nav__toggle {
    display: none;
}

/* Active Link */
.active-link {
    opacity: 0.5;
}

.active-link::after {
    opacity: 1;
}

/* ************* HOME ************ */
.home {
    background: url(../IMG/home-bg.jpg);
    background-size: cover;
    background-position: 50%;
    padding-top: 5.5rem;
    margin-bottom: 2.5rem;
    position: relative;
}

.home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--linear-gradient);
}

.home__container {
    grid-template-columns: 4fr 8fr;
    column-gap: 1.875rem;
}

.home__img,
.home__data {
    z-index: 10;
}

.home__img {
    width: 90%;
    height: 380px;
    object-fit: cover;
    border-radius: 0.3rem;
    transform: translateY(3.125rem);
    box-shadow: 0 0 27px rgb(96 96 96 / 34%);
}

.home__name,
.home__work,
.home__list,
.home__social-link {
    color: #fff;
    font-family: var(--mono-font);
}

.home__name {
    font-size: var(--fs-h1);
    line-height: 1.14em;
    margin: 0.9em 0 0.23em;
}

.home__work {
    margin-bottom: 2.5em;
}

.home__list dt {
    float: left;
    font-weight: var(--bold);
    opacity: 0.4;
}

.home__list dd {
    padding-left: 6.25em;
}

.home__list dd:not(:last-child) {
    margin-bottom: 0.94em;
}

.home__socials {
    margin: 1.25rem 0 2.2rem;
}

.home__social-link {
    font-size: 1.7rem;
    line-height: 1.36em;
    margin-right: 0.25rem;
    opacity: 0.4;
    transition: 0.3s;
}

.home__social-link:hover {
    opacity: 1;
}

/* ************** Hello ************** */
.hello__details {
    margin-bottom: 1.67em;
    text-align: justify;
}

/* ************** Buttons ************ */
.button {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 1.1em 2.1em;
    border-radius: 1.56rem;
    font-weight: var(--semibold);
    transition: 0.3s;
}

.button:hover {
    background-color: var(--primary-color-alt);
}

.button--flex {
    display: inline-flex;
    align-items: flex-start;
    column-gap: 0.3rem;
}

/* ************* services ************ */
.services__container {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.875rem;
}

.services__item {
    border: 1px solid var(--border-color);
    padding: 2.5rem 1.25rem 1.875rem;
    text-align: center;
}

.icon__box {
    border: 1px solid var(--border-color);
    width: 82px;
    height: 82px;
    border-radius: 50%;
    margin: 0 auto;
    margin-bottom: 1.25rem;
    position: relative;
    display: flex;
}

.services__icon {
    width: 32px;
    margin: auto;
}

.services__dot {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    animation: service-dot 1.5s linear infinite;
    animation-play-state: paused;
}

.services__item:hover .services__dot {
    animation-play-state: running;
}

@keyframes service-dot {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(1turn);
    }
}

.dot {
    width: 13px;
    height: 13px;
    background-color: var(--title-color);
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 0.9rem;
}

.service__title {
    margin-bottom: 0.8em;
}

/* ************* RESUME ************ */
.resume__container {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 3.75rem;
}

.resume__title {
    color: var(--text-color-alt);
    letter-spacing: 0.4em;
    margin-bottom: 2.8em;
}

.resume__item {
    border-left: 2px solid var(--primary-color);
    padding-left: 1.6rem;
    position: relative;
}

.resume__item:not(:last-child) {
    padding-bottom: 3rem;
}

.resume__item::before {
    content: '';
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    position: absolute;
    left: -0.60rem;
    background-color: var(--bg-color);
}

.resume__subtitle {
    color: var(--primary-color);
    margin-bottom: 0.36em;
}

.resume__date {
    color: var(--text-color-alt);
    margin-bottom: 0.7em;
}

.resume__description {
    text-align: justify;
}

/* **************** SKILLS******************* */
.skills__container {
    grid-template-columns: repeat(2, 445px);
    column-gap: 7rem;
}

.skills__list {
    row-gap: 1.8rem;
}

.skills__titles {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.625rem;
}

.skills__bar,
.skills__percentage {
    height: 5px;
    border-radius: 0.25rem;
}

.skills__bar {
    background-color: var(--bg-color-alt);
}

.skills__percentage {
    display: block;
    background-color: var(--primary-color);
}


/* ************* project ************ */
.project__categories {
    display: flex;
    flex-wrap: wrap;
    row-gap: .25rem;
    column-gap: 3rem;
    margin-bottom: 1.875rem;
}

.category__btn {
    color: var(--text-color-alt);
    font-weight: var(--bold);
    font-family: var(--mono-font);
    position: relative;
}

.category__btn:hover {
    color: var(--primary-color);
}

.category__btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: -0.5rem;
    width: 7px;
    height: 2px;
    background-color: var(--primary-color);
    opacity: 0;
    transition: 0.3s;
}

.category__btn:hover::after {
    opacity: 1;
}

.active-work {
    color: var(--primary-color);
}

.active-work::after {
    opacity: 1;
}

.projects__container {
    row-gap: 2.5rem;
}

.project__item {
    grid-template-columns: 5fr 7fr;
}

.project__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project__data {
    padding: 3rem 3rem 1.875rem;
    border: 1px solid var(--border-color);
}

.project__title {
    margin-bottom: 0.8em;
    text-align: justify;
}

.project__description {
    margin-bottom: 2.5em;
    text-align: justify;
}

.project__stack {
    margin-bottom: 1.25em;
}

.tags li {
    display: inline-block;
    margin-right: 0.6rem;
    box-shadow: 0 1px 4px rgb(0 0 0 / 14%);
    padding: 0.3rem 0.6rem;
    border-radius: 0.2rem;
}

.project__link {
    float: right;
    margin-top: 3.9em;
    color: var(--primary-color);
    font-family: var(--mono-font);
}

/* *************** Testimonials ************ */
.testimonial__bg {
    background: url(../IMG/bg.jpg);
    background-size: cover;
    background-position: 50%;
    position: relative;
}

.testimonial__bg::before {
    content: '';
    background: var(--linear-gradient);
    height: 100%;
    position: absolute;
    left: 0;
    right: 0;
}

.testimonial__icon {
    height: 88px;
    width: 88px;
    border-radius: 50%;
    position: absolute;
    top: -2.75rem;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--bg-color);
    font-size: 1.75rem;
    color: var(--primary-color);
    padding-top: 2.75rem;
    text-align: center;
}

.testimonial__item {
    padding: 0 5.75rem;
}

.testimonial__description,
.author__project,
.author__name {
    color: #fff;
}

.author__name {
    text-transform: uppercase;
    margin-bottom: 0.56em;
    font-weight: 400;
}

.author__project {
    font-style: italic;
    opacity: 0.7;
    margin-bottom: 1.25em;
}

.testimonial__description {
    text-align: justify;
}

.ruler {
    width: 100%;
    height: 1px;
    background-color: #a98a79;
    margin-bottom: 1.25rem;
}

.swiper-button-next:after,
.swiper-button-prev::after {
    display: none;
}

.swiper-button-next img,
.swiper-button-prev img {
    width: 20px;
    height: 20px;
}

.swiper-pagination-bullets.swiper-pagination-horizontal {
    bottom: 3.25rem;
}

.swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: transparent !important;
    border: 1px solid #fff;
    opacity: 1;
    margin: 0 3px !important;
}

.swiper-pagination-bullet-active {
    background-color: #fff !important;
}

/* ********************** BLOG ******************* */
.posts__container {
    grid-template-columns: repeat(3, 1fr);
    column-gap: 1.875rem;
    margin-bottom: 2.5rem;
}

.post__img {
    vertical-align: middle;
}

.post__content {
    border: 1px solid var(--border-color);
    padding: 1.25rem 1.875rem 2.5rem 1.25rem;
}

.post__date {
    text-transform: uppercase;
    color: var(--text-color-alt);
    margin-bottom: 0.8em;
}

.post__title {
    margin-bottom: 1.1em;
    color: var(--text-color);
}

.post__description {
    color: var(--text-color-alt);
    text-align: justify;
}

/* ********************** CONTACTS ******************* */
.contact {
    background: url(../IMG/bg.jpg);
    background-size: cover;
    background-position: 50%;
    position: relative;
}

.contact::before {
    content: '';
    background: var(--linear-gradient);
    height: 100%;
    width: 100%;
    position: absolute;
    left: 0;
    top: 0;
}

.contact__content {
    z-index: 10;
    position: relative;
}

.contact__container {
    grid-template-columns: 4fr 5fr 3fr;
    column-gap: 1.875rem;
    padding-top: 1.25rem;
}

.contact .section__title,
.contact__list,
.contact__social-link,
::placeholder,
.contact__input,
.contact__form-title,
.footer__copy {
    color: #fff;
    font-family: var(--mono-font);
}

.contact__list {
    margin-bottom: 3.25rem;
}

.contact__list dt {
    float: left;
    font-weight: var(--bold);
    text-transform: uppercase;
}

.contact__list dd {
    padding-left: 6.25em;
    margin-bottom: 0.94em;
}

.contact__socials li {
    margin-bottom: 0.75rem;
}



.contact__social-link {
    font-family: var(--roboto-font);
}

.contact__form {
    position: relative;
}

.contact__form-title {
    margin-bottom: 1.25em;
}

.contact__input-div {
    margin-bottom: 0.94em;
}

.contact__input {
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: 3px;
    padding: 0.625rem;
}

.textarea {
    height: 7.2rem;
    resize: none;
}

.contact__input:focus {
    box-shadow: inset 0 0 5px 0 #fff;
}

.contact__message {
    position: absolute;
    bottom: 33%;
    left: 0;
    font-family: var(--mono-font);
    color: #fff;
}

.color-light {
    opacity: 0;
}

.color-dark {
    opacity: 0.4;
}

.contact__button {
    margin-top: 1.875rem;
    width: 100%;
    box-shadow: 1 1px 29px rgb(0 0 0 / 40%);
}

.footer__copy {
    opacity: 0.4;
    margin-top: 3.75rem;
    text-align: center;
}

/*  Scroll Header  */
.scroll-header {
    position: fixed;
    background-color: var(--bg-color);
    height: 5rem;
    box-shadow: 0 5px 8px 0 rgb(0 0 0 / 14%);
}

.scroll-header .nav__link {
    color: var(--text-color);
}

.scroll-header .nav {
    align-items: center;
}

.scroll-header .nav__link::after {
    background-color: var(--text-color);
}

.scroll-header .nav__link:hover,
.scroll-header .active-link {
    color: var(--primary-color);
}

/* blog details */
.blog__header {
    height: 400px;
    background: url(../IMG/bg.jpg);
    background-size: cover;
    background-position: 50%;
    position: relative;
}

.blog__header::before {
    content: '';
    background: var(--linear-gradient);
    height: 100%;
    position: absolute;
    left: 0;
    right: 0;
}

.blog__details {
    background-color: #fff;
    padding: 3rem 4.25rem 3.75rem;
    margin-top: -16rem;
    box-shadow: 0 1px 21px rgb(0 0 0 / 14%);
    z-index: 10;
    position: relative;
    margin-bottom: 6.25rem;
}

.back__to-home text-xs {
    display: inline-flex;
    column-gap: 0.6rem;
    text-transform: uppercase;
    color: var(--text-color);
}

.post__details-title {
    text-transform: uppercase;
    margin-top: 1.67em;
    margin-bottom: .84em;
}

.post__details-date {
    color: var(--text-color-alt);
    margin: .9rem;
}

.post__details {
    margin-bottom: 1.12em;
    text-align: justify;
}

figure {
    padding: .625rem;
    padding-bottom: 2.2rem;
}

figcaption {
    color: var(--text-color-alt);
    font-family: var(--mono-font);
    margin-top: 1.4em;
}

.post__social-share {
    display: inline-flex;
    column-gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.post__share {
    margin-top: -2px;
    color: var(--text-color);
}

.post__share-link {
    color: var(--title-color);
    font-size: 1.75rem;
    opacity: .4;
    margin-right: .14em;
}

.post__share-link:hover {
    color: var(--primary-color);
    opacity: 1;
}

/* ********************** STYLE SWITCHER ******************* */
.style__switcher{
    position: fixed;
    right: 0;
    bottom: 20%;
    padding: .625rem;
    box-shadow: 5px 1px 10px rgba(0, 0, 0, 0.4);
    background-color: var(--bg-color);
    z-index: 101;
    transform: translateX(100%);
    transition: .3s;
}

.open{
    transform: translateX(0);
}

.style__switcher-toggler{
    position: absolute;
    height: 52px;
    width: 52px;
    background-color: #2d2d2d;
    right: 100%;
    top: 0;
    text-align: center;
    line-height: 50px;
    font-size: 1.75rem;
    color: #fff;
    cursor: pointer;
    border-radius: 2px;
}

.colors{
    display: flex;
    column-gap: .625rem;
}

.colors span {
    display: inline-block;
    height: 30px;
    width: 30px;
    border-radius: 2px;
}

.color-1{
    background-color: #4a4a4a;
}

.color-2{
    background-color: #6d56c1;

}

/* Break points */
/* for large devices */
@media screen and (max-width:1200px) {

    :root {
        --fs-h1: 2.25rem;
        --fs-h2: 1.75rem;
        --fs-lg: 1rem;
        --fs-base: .938rem;
        --fs-sm: 0.813rem;
        --fs-xs: 0.687rem;
    }

    .container {
        max-width: 960px;
    }

    .home__container {
        grid-template-columns: 5fr 7fr;
    }

    .skills__container,
    .services__container {
        grid-template-columns: repeat(2, 1fr);
        column-gap: 1.875rem;
    }
}

@media screen and (max-width:992px) {
    .container {
        max-width: 720px;
    }

    .nav__menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.8);
        z-index: 100;
        display: flex;
        justify-content: center;
        align-items: center;
        transform: translateX(-100%);
        transition: .3s;
    }

    .show-menu{
        transform: translateX(0);
    }

    .nav__list {
        flex-direction: column;
        row-gap: 2.125rem;
        text-align: center;
    }

    .nav__toggle,
    .nav__close {
        display: block;
    }

    .nav__close {
        font-size: 1.5rem;
        position: absolute;
        top: 2.7rem;
        left: 8%;
        cursor: pointer;
    }

    .nav__toggle {
        color: #fff;
        font-size: 1.25rem;
        opacity: .5;
    }

    .scroll-header .nav__toggle {
        color: var(--text-color);
        opacity: 1;
    }

    .home {
        padding-top: 5.25rem;
    }

    .home__img {
        display: none;
    }

    .section {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .project__item,
    .resume__container,
    .home__container {
        grid-template-columns: 1fr;
    }

    .resume__container {
        row-gap: 3.75rem;
    }

    .testimonial__container {
        padding-top: 4.4rem;
        padding-bottom: 6.25rem;
    }

    .testimonial__item {
        padding: 0 3.875rem;
    }

    .posts__container {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 1.875rem;
    }

    .contact__container {
        grid-template-columns: 5fr 7fr;
    }
}


/* for medium devices */
@media screen and (max-width:768px) {
    .container{
        max-width: 540px;
    }

    .contact__container,
    .posts__container,
    .skills__container,
    .services__container{
        grid-template-columns: 1fr;
    }

    .skills__container{
        row-gap: 3.75rem;
    }

    .project__data{
        padding: 2rem 1.25rem 1.5rem 1.25rem;
    }

    .testimonial__item{
        padding: 0 3rem;
    }

    .contact__container{
        row-gap: 2rem;
    }

    .blog__details{
        padding: 2.5rem 1.875rem;
    }
}

@media screen and (max-width:576px) {
    .home{
        padding-top: 4.4rem;
    }

    .project__categories{
        column-gap: 1.5rem;
    }

    .tags li{
        margin-bottom: .6rem;
    }

    .testimonial__item{
        padding: 0 1.5rem;
    }

    .swiper-button-next img,
    .swiper-button-prev img{
        width: 1.125rem;
        height: 1.125rem;
    }
}

/* for small devices */
@media screen and (max-width:440px) {
    :root{
        --fs-h1: 2rem;
    }

    .home__work{
        font-size: var(--fs-sm);
    }

    .home__list{
        font-size: .875rem;
    }

    .home__list dd{
        padding-left: 5.75em;
    }

    .home__social-link{
        font-size: 1.3rem;
    }
}