* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

ul {
    list-style: none;
}

a {
    color: #000;
    text-decoration: none;
}

input {
    font-family: inherit;
}

/* vars */

:root {
    --dark-text-color: #002e5b;
    --light-text-color: #7d7d7d;
    --button-color: #ff4f46;
    --dark-button-color: #e51c0d;
    --main-bg: #fffafa;
}

.btn {
    padding: 15px 30px;
    color: #fff;
    font-size: 0.94117647058824rem;
    background-color: var(--button-color);
    transition: all 300ms ease;
    border-radius: 6px;
    display: inline-block;
}

.img-fluid {
    max-width: 100%;
    height: auto;
}

.btn:hover {
    background-color: var(--dark-button-color);
}

body {
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
}

h1 {
    font-size: 4rem;
}

h2 {
    font-size: 3rem;
}

h3 {
    font-size: 2rem;
}

h4 {
    font-size: 1.6rem;
}

h5 {
    font-size: 1.4rem;
}

h6 {
    font-size: 1.2rem;
}

p {
    font-size: 1rem;
}

/* header */

header {
    background-color: var(--main-bg);
}

section {
    width: 100%;
}

.container {
    width: 1180px;
    margin: 0 auto;
}

.nav-bar {
    margin: 0 auto;
}

.nav-bar .container {
    display: flex;
    padding: 10px 0;
    justify-content: space-between;
    align-items: center;
}

nav ul {
    display: flex;
    gap: 30px;
}

nav ul li a {
    color: var(--light-text-color);
}

nav ul li a:active {
    color: var(--dark-text-color);
}

.nav-bar i {
    display: none;
    font-size: 25px;
    color: var(--button-color);
}

.home-hero .container {
    display: flex;
    gap: 30px;
    align-items: center;
}

.social-head {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-right: 20px;
    align-self: flex-start;
    font-size: 24px;
    margin-top: 12px;
    color: var(--dark-text-color);
}

.hero-text {
    width: 60%;
    display: flex;
}

.hero-text h1 {
    color: var(--dark-text-color);
    font-weight: 600;
    font-family: serif;
}

.hero-text p {
    color: var(--light-text-color);
    margin: 30px 0 50px 0;
    line-height: 1.6;
    font-size: 1.2rem;
}

.hero-img {
    width: 40%;
}


/* 1st section */

.home-about-me {
    padding: 100px 0;
    text-align: center;
}

.about-min-text {
    text-align: center;
}

.home-about-me h2 {
    color: var(--dark-text-color);
    font-family: serif;
    font-weight: 500;
}

.home-about-me p {
    margin: 20px 0;
}

.home-about-me p {
    color: var(--light-text-color);
}

.home-about-me hr {
    width: 100px;
    border: 1px solid var(--button-color);
    border-radius: 30px;
    margin: 0 auto;
}

.passion .container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    align-items: left;
    margin-top: 100px;
    text-align: left;
}

.moti h3 {
    color: var(--dark-text-color);
    font-family: serif;
}

.moti hr {
    width: 50px;
    border: 1px solid var(--button-color);
    border-radius: 30px;
    margin: 20px 0;
}

.moti p {
    line-height: 1.5;
}



.img {
    width: 100%;
    height: 415px;
    background-image: url(../images/computer.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    border-radius: 10px;
    position: relative;
}

.img::after {
    position: absolute;
    background-color: var(--dark-button-color);
    content: " ";
    width: 100%;
    height: 450px;
    border-radius: 10px;
    z-index: -1;
    right: -15px;
    top: -12px;
}

.tw-columns {
    column-count: 2;
    grid-column-gap: 30px;
}

.tw-columns p {
    line-height: 2;
}

/* 2nd section  */

.services {
    background-color: var(--main-bg);
    padding: 100px 0;
}

.service-text {
    width: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 0 auto;
}


.service-text h2 {
    font-family: serif;
    color: var(--dark-text-color);
    font-weight: 600;
}

.service-text p {
    margin: 30px 0;
    color: var(--light-text-color);
    line-height: 1.5;
}

.service-text hr {
    width: 100px;
    border: 1px solid var(--button-color);
    border-radius: 30px;
}

.services .container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
    margin-top: 50px;
}

.service-box {
    background-color: #fff;
    border-radius: 8px;
    text-align: center;
    padding: 30px 50px;
    box-shadow: 5px 5px 15px 3px #ddd;
}

.service-box img {
    width: 70px;
}

.service-box h3 {
    font-family: serif;
    color: var(--dark-text-color);
    margin: 30px 0;
}

.service-box p {
    color: var(--light-text-color);
    margin-bottom: 30px;
    line-height: 1.5;
}

.service-box i {
    font-size: 40px;
    color: #555;
}

.service-box i:hover {
    color: var(--button-color);
}

/* 3rd section */

.process {
    padding: 100px 0;
    text-align: center;
    display: flex;
    align-items: center;
    flex-direction: column;
    color: #fff;
    background-image: linear-gradient(rgba(56, 51, 51, 0.648), rgba(56, 51, 51, 0.648)), url(../images/worker.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.process i {
    font-size: 70px;
    transition: all 200ms ease-in;
}

.process i:hover {
    color: var(--button-color);
}

.process h2 {
    margin: 30px 0;
}

/* 4th section */

.work {
    padding: 100px 0;
}


.work-text {
    text-align: center;
    margin-bottom: 50px;
}

.work-text h2 {
    color: var(--dark-text-color);
    font-family: serif;
}

.work-text p {
    color: var(--light-text-color);
    margin: 30px 0;
}

.work-text hr {
    width: 100px;
    border: 1px solid var(--button-color);
    border-radius: 30px;
    margin: 0 auto;
}

.wrap {
    width: 100%;
    height: 100%;
    background: var(--main-bg);
}

.work .container {
    padding-top: 30px;
}

.main-stats,
.sub-stats {
    display: grid;
}

.main-stats {
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

.card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 5px 5px 15px 3px #ddd;
    padding: 15px;
}

.card h4 {
    font-size: 22px;
    font-weight: 400;
}

.card p:first-of-type {
    color: var(--button-color);
    margin: 20px 0;
    font-size: 20px;
}

.card p:last-of-type {
    margin-bottom: 40px;
    line-height: 2;
}

.card progress {
    color: var(--dark-button-color);
    width: 100%;
    height: 25px;
}

.sub-stats {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
}

/* 5th section */

.projects {
    padding-bottom: 100px;
}

.pro-text-wrap {
    display: flex;
    justify-content: center;
    background-color: var(--main-bg);
    padding-top: 100px;
}

.pro-text {
    text-align: center;
    width: 600px;
    margin-bottom: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pro-text h2 {
    color: var(--dark-text-color);
    font-weight: 600;
    font-family: serif;
}

.pro-text p {
    color: var(--light-text-color);
    line-height: 1.75;
    margin: 20px 0;
}

.pro-text hr {
    width: 100px;
    border: 1px solid var(--button-color);
}

.websites {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}

.websites img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

/* 6th section */

.response {
    padding: 50px 0;
    background-color: var(--main-bg);
}

.response-text {
    text-align: center;
    margin: 0 auto;
    width: 600px;
}

.response-text h2 {
    color: var(--dark-text-color);
    font-weight: 600;
    font-family: serif;
}

.response-text p {
    margin: 20px 0;
    color: var(--light-text-color);
}

.response-text hr {
    width: 100px;
    border: 1px solid var(--button-color);
    border-radius: 30px;
    margin: 0 auto;
}



.response .container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 60px;
    width: 1100px;
    margin-top: 50px;
}

.res-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #fff;
    box-shadow: 2px 2px 20px 3px #ddd;
    padding: 30px 20px;
}

.res-card i {
    font-size: 30px;
    color: var(--dark-button-color);
}

.res-card img {
    width: 60px;
    height: auto;
    margin: 20px 0;
    border-radius: 100%;
    outline: 2px solid var(--dark-button-color);
}

.res-card p {
    line-height: 2;
    margin-bottom: 20px;
}

.res-card hr {
    width: 30px;
    border: 1px solid var(--dark-button-color);
    border-radius: 30px;
    margin-bottom: 20px;
}

/* 7th section */

.touch {
    padding: 100px 0;
}

.touch .container {
    text-align: center;
    display: flex;
    align-items: center;
    flex-direction: column;
}

.touch h2 {
    color: var(--dark-text-color);
    font-weight: 600;
    font-family: serif;
}

.touch p {
    color: var(--light-text-color);
    margin: 20px 0;
    line-height: 1.5;
}

.touch hr {
    width: 30px;
    border: 1px solid var(--button-color);
    border-radius: 30px;
    margin-bottom: 20px;
}

.touch input {
    outline: none;
    border: 1px solid #666;
    background-color: #f6f6f6f6;
    color: #7d7d7d;
    margin-bottom: 50px;
    display: block;
    width: 600px;
    height: 40px;
    padding: 0 20px;
}

.touch input::placeholder {
    color: #666;
}


/* footer */

footer {
    background-color: #002e5b;
    color: #fff;
    padding: 50px 0;
    text-align: center;
}

.row1 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
}

.social-icons i {
    margin-right: 15px;
}

.row1 img {
    margin: 0 auto;
}

.row1 h4 {
    font-family: serif;
}

.row2 {
    display: flex;
    justify-content: center;
}