*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Custom Properties, update these for your own design */
:root {
    --ff-primary: 'Roboto', sans-serif;
    --ff-secondary: 'Jost', sans-serif;

    --fw-reg: 400;
    --fw-medium: 600;
    --fw-bold: 900;

    --clr-light: #fff;
    --clr-dark: #000;
    --clr-accent: #16e0bd;
    --clr-bg-gray: #333;
    --clr-highlighter: #fff4e9;
    --fs-h1: 3rem;
    --fs-h2: 2.25rem;
    --fs-h3: 1.25rem;
    --fs-body: 1rem;

    --bs: 0.25em 0.25em 0.75em rgba(0, 0, 0, .25),
        0.125em 0.125em 0.25em rgba(0, 0, 0, .15);
}

@media (min-width: 768px) {
    :root {
        --fs-h1: 4.5rem;
        --fs-h2: 3.75rem;
        --fs-h3: 1.5rem;
        --fs-body: 1.125rem;
    }
}

body {
    background: var(--clr-light);
    color: var(--clr-dark);
    margin: 0;
    font-family: var(--ff-primary);
    font-size: var(--fs-body);
    line-height: 1.6;
}

/* Navbar styles */
.navbar {
    background-color: var(--clr-accent);
    width: 100%;
}

section {
    padding: 4em 2em;
}

/* Image styles */
img {
    max-width: 100%;
}

strong {
    font-weight: var(--fw-bold);
}

/* Typography */

h1,
h2,
h3 {
    line-height: 1;
    margin: 0;
    font-family: var(--ff-secondary);
    font-weight: var(--fw-medium);
}

h1 {
    font-size: var(--fs-h1)
}

h2 {
    font-size: var(--fs-h2)
}

h3 {
    font-size: var(--fs-h3)
}

/* Sections style */
.section__title {
    margin-bottom: .25em;
}

.section__title--intro {
    font-weight: var(--fw-reg);
}

.section__title--intro strong {
    display: block;
    color: var(--clr-accent);
    background-color:  var(--clr-highlighter);
}

.section__subtitle {
    margin: 0;
    font-size: var(--fs-h3);
}

.section__subtitle--intro,
.section__subtitle--about {
    background: var(--clr-accent);
    padding: .25em 1em;
    font-family: var(--ff-secondary);
    margin-bottom: 1em;
}

.section__subtitle--work {
    color: var(--clr-accent);
    font-weight: var(--fw-bold);
    margin-bottom: 2em;
}

/*  Intro section style */
.intro {
    position: relative;
}

.section__subtitle--intro {
    display: inline-block;
}

@media (min-width: 768px) {
    .intro {
        display: grid;
        width: min-content;
        margin: auto;
        grid-column-gap: 1em;
        grid-template-areas:
            "img title"
            "img subtitle";
        grid-template-columns: min-content min-content;
    }

    .intro__img {
        grid-area: img;
        min-width: 250px;
        position: relative;
        z-index: 2;
        border: 8px solid var(--clr-light);
        border-radius: 5px;
        box-shadow: var(--bs);
    }

    .section__subtitle--intro {
        align-self: start;
        grid-column: -1 / 1;
        grid-row: 2;
        text-align: right;
        position: relative;
        left: -1.5em;
        width: calc(100% + 1.5em);
    }
}

@media (max-width: 767px) {
    .intro__img {
        width: 100vw;
        box-shadow: var(--bs);
    }
}

/*  My services section style */
.my-services {
    background-color: var(--clr-dark);
    background-image: url(../img/services-bg.jpg);
    background-size: cover;
    color: var(--clr-light);
    text-align: center;
    background-attachment: fixed;
    position: relative;
    display: block;
}

.my-services:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.my-services h2,
.my-services p,
.my-services .btn {
    position: relative;
}

.my-services p.section_title_content {
    max-width: 80%;
    margin: 0px auto 2rem;
}

.section__title--services {
    color: var(--clr-accent);
    position: relative;
}

.section__title--services::after {
    content: '';
    display: block;
    width: 2em;
    height: 1px;
    margin: 0.5em auto 0.5em;
    background: var(--clr-light);
    opacity: 0.25;
}

.services {
    margin-bottom: 3em;
    position: relative;
}

.service {
    max-width: 500px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.75);
    padding: 25px 15px;
    border-radius: 10px;
}

.service p {
    margin-bottom: 0;

}

.service h3 {
    color: var(--clr-accent);
    text-transform: uppercase;
}

@media (min-width: 768px) {
    .services {
        display: flex;
        max-width: 80%;
        margin-left: auto;
        margin-right: auto;
    }

    .service+.service {
        margin-left: 2em;
    }
}

@media (max-width: 767px){
    .service{
        margin-bottom: 20px;
    }
}
.service img {
    display:inline-block;
    vertical-align: baseline;
}

.service .icon {
    background-color: transparent;
    position: relative;
    border-radius: 50%;
    width: 100px;
    text-align: center;
    height: 100px;
    line-height: 136px;
    transition: .5s;
    margin-bottom: 30px;
    display: inline-block;
    border: 1px solid var(--clr-accent);
}

.service .icon .circles-box {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    animation-name: rotateme;
    animation-duration: 30s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}

.service .icon .circles-box .circle-one,
.service .icon .circles-box .circle-two  {
    position: absolute;
    width: 12px;
    height: 12px;
    z-index: 1;
    border-radius: 50%;
    background-color: var(--clr-accent);
}
.service .icon .circles-box .circle-one  {
    left: 8px;
    bottom: 8px;
}

.service .icon .circles-box .circle-two {
    top: 8px;
    right: 8px;
}

.rotate3d {
    animation: rotate3d 1s linear infinite;
}

.rotate2d {
    animation: rotate2d 1s linear infinite;
}

.banner-shape-inner .shape {
    position: absolute;
    animation-duration: 3s;
}

.banner-shape-inner .shape1 {
    position: absolute;
    top: 40px;
    left: 60%;
}

.banner-shape-inner .shape2 {
    position: absolute;
    top: 20px;
    right: 20%;
}

.banner-shape-inner .shape3 {
    position: absolute;
    left: 4em;
    top: 15%;
}

.banner-shape-inner .shape4 {
    position: absolute;
    right: 2%;
    top: 35%;
}

.about-shape-one {
    position: absolute;
    bottom: 0px;
    left: 0;
    animation: bounce-up-down 2s ease-in-out 0s infinite alternate;
    z-index: -1;
}

.about-shape-two {
    position: absolute;
    bottom: 10em;
    right: 0px;
    animation: bounce-up-down 2s ease-in-out 0s infinite alternate;
    z-index: -1;
}

/* Animation keyframes */
@keyframes rotateme {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes bounce-up-down {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-30px);
    }
}

@keyframes rotate3d {
    0% {
        transform: rotateY(0deg);
    }

    100% {
        transform: rotateY(360deg);
    }
}

@keyframes rotate2d {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* About me section style */
.about-me-wrap {
    position: relative;
}

.about-me {
    max-width: 1000px;
    margin: 0 auto;
}

.about-me p {
    text-align: justify;
    margin: 0px 0px 0.5em;
}

@media (max-width: 767px) {
    .about-me__img {
        width: 100vw;
        box-shadow: var(--bs);
    }
}

@media (min-width: 768px) {
    .about-me {
        display: grid;
        grid-template-columns: 1fr 300px;
        grid-template-areas:
            "title img"
            "subtitle img"
            "text img";
        grid-column-gap: 2em;
    }

    .section__title--about {
        grid-area: title;
    }

    .section__subtitle--about {
        grid-column: 1 / -1;
        grid-row: 2;
        position: relative;
        left: -1em;
        width: calc(100% + 2em);
        padding-left: 1em;
        padding-right: calc(200px + 4em);
    }

    .about-me__img {
        grid-area: img;
        position: relative;
        z-index: 2;
    }
}

/* My Work section style*/

.my-work {
    background-color: var(--clr-bg-gray);
    color: var(--clr-light);
    text-align: center;
    padding: 4em 0em 0em;
}

.portfolio {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.portfolio__item {
    overflow: hidden;

}

.portfolio__img {
    transition:
        transform 750ms cubic-bezier(.5, 0, .5, 1),
        opacity 250ms linear;
}

.portfolio__item:focus {
    position: relative;
    z-index: 2;
}

.portfolio__img:hover,
.portfolio__item:focus .portfolio__img {
    transform: scale(1.2);
    opacity: .5;
}


/* footer style*/

.footer {
    background: var(--clr-dark);
    color: var(--clr-accent);
    text-align: center;
    padding: 2em 0;
    font-size: var(--fs-h3);
    position: relative;
}

.footer a {
    color: inherit;
    text-decoration: none;
}

.footer__link {
    font-weight: var(--fw-bold);
}

.footer__link:hover,
.social-list__link:hover {
    opacity: .7;
}

.footer__link:hover {
    text-decoration: underline;
}

.social-list {
    list-style: none;
    display: flex;
    justify-content: center;
    margin: 1em 0 0;
    padding: 0;
}

.social-list__link {
    padding: .5em;
}

.footer ul.social-list>li a {
    background: var(--clr-bg-gray);
    width: 60px;
    height: 60px;
    display: block;
    line-height: 35px;
    margin: 0 0.5em;
    border-radius: 50%;
}

.footer-content h2 {
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 15px;
    color: var(--clr-light);
}

.footer-content p {
    margin: 0;
}

.footer-content p a {
    font-weight: 500;
    font-size: 2rem;
}