* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    color: #555;
    line-height: 1.6;
}

a {
    text-decoration: none;
}

img {
    width: 100%;
    display: block;
}

.container1 {
    min-height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, .7), rgba(0, 0, 0, .7)),
        url("../img/hero\ img.jpg") center/cover;
    color: white;
}

.sec1 {
    width: 90%;
    margin: auto;
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logoleft {
    width: auto;
}

.logo {
    color: #ff305b;
    font-size: 24px;
    font-weight: bold;
}

.topnav {
    list-style: none;
    display: flex;
    gap: 25px;
}

.topnav a {
    color: white;
    transition: .3s;
}

.topnav a:hover {
    color: #ff305b;
}

.home {
    min-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.home p {
    font-size: 24px;
}

.home h1 {
    color: #ff305b;
    font-size: 60px;
}

.home h3 {
    text-align: center;
    line-height: 1.2;
    font-weight: 300;
    font-size: 26px;
    color: white;
}

.home h3::after {
    content: "";
    animation: type 5s infinite;
}

@keyframes type {
    0% {
        content: "D|";
    }

    4% {
        content: "De|";
    }

    8% {
        content: "Dev|";
    }

    12% {
        content: "Deve|";
    }

    16% {
        content: "Devel|";
    }

    20% {
        content: "Develo|";
    }

    24% {
        content: "Develop|";
    }

    28% {
        content: "Develope|";
    }

    32% {
        content: "Developer|";
    }

    36% {
        content: "Develope|";
    }

    40% {
        content: "Develop|";
    }

    44% {
        content: "Develo|";
    }

    48% {
        content: "Devel|";
    }

    52% {
        content: "De|";
    }

    56% {
        content: "D|";
    }

    60% {
        content: "De|";
    }

    64% {
        content: "Des|";
    }

    68% {
        content: "Desi|";
    }

    72% {
        content: "Desig|";
    }

    76% {
        content: "Design|";
    }

    80% {
        content: "Designe|";
    }

    84% {
        content: "Designer|";
    }

    88% {
        content: "Designe|";
    }

    92% {
        content: "Design|";
    }

    96% {
        content: "Desig|";
    }

    100% {
        content: "Des|";
    }
}

/* General Title */

.title {
    text-align: center;
    margin-bottom: 50px;
}

.title h2 {
    color: #333;
    font-size: 36px;
    position: relative;
}

.title h2::after {
    content: "";
    display: block;
    width: 80px;
    height: 3px;
    background-color: #ff305b;
    margin: 15px auto 0;
}

/* About */

.container2 {
    width: 90%;
    max-width: 1100px;
    margin: auto;
    padding: 100px 0;
    display: flex;
    align-items: center;
    gap: 60px;
}

.container2 .box {
    width: 45%;
}

.container2 .image {
    border: 8px solid #333;
    border-radius: 5px;
    position: relative;
}

.container2 .image img {
    transform: translate(20px, 20px);
}

.container2 .text1 {
    width: 55%;
}

.text1 h2 {
    color: #333;
    font-size: 34px;
    margin-bottom: 20px;
}

.text1 h2::before {
    content: "";
    border-left: 4px solid #ff305b;
    margin-right: 10px;
}

.text1 p {
    margin-bottom: 20px;
}

.info {
    display: flex;
    flex-wrap: wrap;
}

.info p {
    width: 50%;
}

.buttons {
    display: flex;
    gap: 15px;
}

.btn {
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    color: white;
    font-size: 15px;
}

.button0 {
    background-color: #ff305b;
}

.button1 {
    background-color: #333;
}

.btn:hover {
    opacity: .8;
}

/* Services */

.container3 {
    background-color: #f1f1f1;
    padding: 100px 0;
}

.sec3 {
    width: 90%;
    max-width: 1100px;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.item1 {
    width: calc(50% - 10px);
    text-align: center;
    padding: 40px 25px;
    transition: .3s;
}

.item1:hover {
    background-color: white;
    box-shadow: 0 5px 20px rgba(0, 0, 0, .1);
}

.item1 i {
    color: #ff305b;
    font-size: 30px;
    margin-bottom: 20px;
}

.item1 h3 {
    color: #333;
    margin-bottom: 15px;
}

/* Portfolio */

.container4 {
    padding: 100px 0;
}

.portfolio-menu {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
}

.portfolio-menu a {
    color: #333;
}

.portfolio-menu a:first-child {
    color: #ff305b;
}

.sec4 {
    width: 90%;
    max-width: 1100px;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.item2 {
    width: calc(33.333% - 14px);
}

.inn {
    position: relative;
    overflow: hidden;
}

.layer {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, .6);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: .3s;
}

.inn:hover .layer {
    opacity: 1;
}

.layer i {
    color: #ff305b;
    font-size: 25px;
}

/* Counter */

.container5 {
    background-color: #f1f1f1;
    padding: 70px 0;
}

.sec5 {
    width: 90%;
    max-width: 1100px;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
}

.item5 {
    flex: 1 1 200px;
    text-align: center;
}

.in {
    padding: 20px;
}

.in i {
    color: #ff305b;
    font-size: 30px;
}

.in h3 {
    color: #333;
    font-size: 28px;
}

/* Feedback */

.container6 {
    padding: 100px 0;
}

.row6 {
    width: 80%;
    max-width: 800px;
    margin: auto;
    padding: 50px;
    background-color: #f1f1f1;
    display: flex;
    align-items: center;
    gap: 30px;
}

.image6 {
    width: 120px;
    min-width: 120px;
}

.image6 img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
}

.text6 {
    flex: 1;
}

.text6 h3 {
    color: #333;
    font-size: 24px;
}

.location {
    color: #777;
}

.location i {
    color: #ff305b;
}

.stars {
    color: #f1c40f;
}

/* Blog */

.container7 {
    background-color: #f1f1f1;
    padding: 100px 0;
}

.sec7 {
    width: 90%;
    max-width: 1100px;
    margin: auto;
    display: flex;
    gap: 25px;
}

.vid1 {
    width: calc(33.333% - 17px);
    background-color: white;
}

.blog-text {
    padding: 20px;
}

.blog-text h3 {
    margin: 10px 0;
}

.blog-text h3 a {
    color: #333;
}

.blog-text h3 a:hover,
.read-more:hover {
    color: #ff305b;
}

.read-more {
    color: #333;
}

/* Contact */

.container8 {
    padding: 100px 0;
}

.contact-form {
    width: 70%;
    max-width: 800px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    outline: none;
    font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #ff305b;
}

.send-btn {
    align-self: flex-start;
    padding: 12px 25px;
    background-color: #ff305b;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.send-btn:hover {
    opacity: .8;
}

/* Footer */

.footer-area {
    background-color: #333;
    color: white;
    padding: 50px 20px;
    text-align: center;
}

.footer-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-icons a {
    color: white;
}

.footer-icons a:hover {
    color: #ff305b;
}

.footer-area p a {
    color: #ff305b;
}

/* Tablet */

@media (max-width: 991px) {

    .topnav {
        gap: 15px;
    }

    .container2 {
        gap: 30px;
    }

    .item2 {
        width: calc(50% - 10px);
    }

    .sec7 {
        flex-wrap: wrap;
    }

    .vid1 {
        width: calc(50% - 13px);
    }
}

/* Mobile */

@media (max-width: 767px) {

    .sec1 {
        flex-direction: column;
        gap: 20px;
    }

    .topnav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .home h1 {
        font-size: 42px;
    }

    .home h3 {
        font-size: 20px;
    }

    .container2 {
        flex-direction: column;
    }

    .container2 .box,
    .container2 .text1 {
        width: 100%;
    }

    .container2 .image img {
        transform: translate(10px, 10px);
    }

    .info p {
        width: 100%;
    }

    .buttons {
        flex-wrap: wrap;
    }

    .item1 {
        width: 100%;
    }

    .item2 {
        width: 100%;
    }

    .portfolio-menu {
        flex-wrap: wrap;
        gap: 15px;
    }

    .row6 {
        width: 90%;
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }

    .sec7 {
        flex-direction: column;
    }

    .vid1 {
        width: 100%;
    }

    .form-row {
        flex-direction: column;
    }

    .contact-form {
        width: 90%;
    }
}