/* Google Fonts link ------------------------------------------------------------ */

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap");

/* Body ------------------------------------------------------------------------- */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: "Poppins", sans-serif;
}

html {
    font-size: 62.5%;
    overflow-x: hidden;
}

body {
    background: #1f242d;
    color: #fff;
    overflow: hidden;
}

section {
    min-height: 100vh;
    padding: 10rem 9% 2rem;
}

/* Header ----------------------------------------------------------------------- */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #1f242d;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.header.sticky {
    border-bottom: 0.1rem solid rgba(0, 0, 0, 0.2);
}

.logo {
    display: flex;
    font-size: 3rem;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    margin: 1rem 0rem 1rem 6rem;
}

.nav-links {
    display: flex;
    justify-content: space-around;
    width: 35%;
}

.nav-links a {
    font-size: 1.7rem;
    color: #fff;
    transition: .5s ease;
}

.nav-links a:hover,
.nav-links a:active {
    color: #0ef;
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 5px;
    transition: all 0.3s ease
}

@media screen and (max-width:1200px) {
    .nav-links {
        width: 60%;
        color: #fff;
    }

    .logo {
        margin: 1rem 0rem 1rem 2rem;
    }
}

@media screen and (max-width:768px) {
    .nav-links {
        position: absolute;
        right: -15px;
        height: 80vh;
        top: 8vh;
        background-color: #1f242d;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 40%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
    }

    .burger {
        display: block;
        margin-right: 2rem;
    }
}

.nav-active {
    transform: translateX(-5%);
}

@keyframes navLinkFade {
    0% {
        opacity: 0;
        transform: translateX(10px);
    }

    100% {
        opacity: 1;
        transform: translateX(0px);
    }
}

.toggle .line1 {
    transform: rotate(-40deg) translate(-5px, 6px);
}

.toggle .line2 {
    transform: rotate(90deg) translate(0px, 0px);
}

.toggle .line3 {
    transform: rotate(35deg) translate(-5px, -6px);
}

/* Home ------------------------------------------------------------------------- */

.home {
    display: flex;
    justify-content: center;
    align-items: center;
}

.home-img img {
    width: 40vw;
    animation: floatImage 4s ease-in-out infinite;
}

@keyframes floatImage {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-2.4rem);
    }

    100% {
        transform: translateY(0);
    }
}

.home-content h3 {
    font-size: 3.2rem;
    font-weight: 700;
}

.home-content h3:nth-of-type(2) {
    margin-bottom: 2rem;
}

span {
    color: #0ef;
}

.home-content h1 {
    font-size: 5.6rem;
    font-weight: 700;
    line-height: 1.3;
}

.home-content p {
    font-size: 1.6rem;
}

.social-media a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background: transparent;
    border: 0.2rem solid #0ef;
    border-radius: 50%;
    font-size: 2rem;
    color: #0ef;
    margin: 3rem 1.5rem 3rem 0;
    transition: 0.5s ease;
}

.social-media a:hover {
    background: #0ef;
    color: #323946;
    box-shadow: 0 0 1rem #0ef;
}

.btn {
    display: inline-block;
    padding: 1rem 2.8rem;
    background: #0ef;
    border-radius: 4rem;
    box-shadow: 0 0 1rem #0ef;
    font-size: 1.6rem;
    color: #323946;
    letter-spacing: 0.1rem;
    font-weight: 600;
    transition: 0.5s ease;
}

.btn:hover {
    box-shadow: none;
}

/* About ------------------------------------------------------------------------ */

.about {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    background: #323946;
}

.about-img img {
    width: 35vw;
}

.heading {
    text-align: center;
    font-size: 4.5rem;
}

.about-content h2 {
    text-align: left;
    line-height: 1.2;
}

.about-content h3 {
    font-size: 2.6rem;
}

.about-content p {
    font-size: 1.6rem;
    margin: 2rem 0 3rem;
}

/* Services --------------------------------------------------------------------- */

.services {
    margin-bottom: 5rem;
}

.services-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.services-container .services-box {
    flex: 1 1 30rem;
    background: #323946;
    padding: 3rem 2rem 4rem;
    border-radius: 2rem;
    text-align: center;
    border: 0.2rem solid #1f242d;
}

.services-container .services-box:hover {
    border-color: #0ef;
    transform: scale(1.02);
}

.services-box i {
    font-size: 7rem;
    color: #0ef;
}

.services-box h3 {
    font-size: 2.6rem;
}

.services-box p {
    font-size: 1.6rem;
    margin: 1rem 0rem 3rem;
}

/* Projects --------------------------------------------------------------------- */

.portfolio {
    background: #323946;
    padding-bottom: 20px;
}

.portfolio h2 {
    margin-bottom: 4rem;
}

.portfolio-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    gap: 2.5rem;
}

.portfolio-container .portfolio-box {
    position: relative;
    border-radius: 2rem;
    box-shadow: 0 0 1rem #0ef;
    overflow: hidden;
    display: flex;
    background-color: #0ef;
}

.portfolio-box img {
    width: 90%;
    transition: 0.5s ease;
}

.portfolio-box:hover img {
    transform: scale(1.1);
}

.portfolio-box .portfolio-layer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0), #0ef);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    padding: 0 4rem;
    transform: translateY(100%);
    transition: 0.5s ease;
}

.portfolio-box:hover .portfolio-layer {
    transform: translateY(0);
}

.portfolio-layer h4 {
    font-size: 3rem;
    margin: 5.3rem 0 1rem;
}

.portfolio-layer p {
    font-size: 1.7rem;
    margin: 0.3rem 0 1rem;
}

.portfolio-layer > a:not(.yt-name) {
    width: 3rem;
    height: 3rem;
    background: #fff;
    border-radius: 50%;
}

.portfolio-layer > a i {
    margin-top: 9px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: #323946;
}

/* Contact ---------------------------------------------------------------------- */

.contact-left {
    flex-basis: 35%;
}

.contact-right {
    flex-basis: 60%;
}

.social-icons {
    margin-top: 30px;
    align-items: center;
    text-align: center;
    justify-content: center;
}

.social-icons a {
    display: inline-block;
    background: transparent;
    border: 0.2rem solid #0ef;
    border-radius: 50%;
    color: #0ef;
    width: 5rem;
    height: 5rem;
    margin: 3rem 2rem;
    font-size: 3.4rem;
    transition: 0.5s ease;
}

.social-icons a:hover {
    background: #0ef;
    color: #323946;
    box-shadow: 0 0 1rem #0ef;
}

.social-icons a i {
    align-items: center;
    text-align: center;
    justify-content: center;
}

.contact-right form {
    width: 100%;
}

form input,
form textarea {
    resize: none;
    width: 100%;
    border: 0;
    outline: none;
    background: #323946;
    padding: 15px;
    margin: 15px 0;
    color: #fff;
    font-size: 18px;
    border-radius: 6px;
}

#msg {
    display: blo2k;
    margin-top: 15px;
    font-size: 1.6rem;
    color: greenyellow;
}

/* Footer ----------------------------------------------------------------------- */

.footer {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding: 2rem;
    background: #323946;
}

.footer-text {
    font-size: 1.6rem;
    margin: 0rem 10rem;
}

.footer-iconTop {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 0.8rem;
    background: #0ef;
    border-radius: 0.8rem;
    transition: 0.5s ease;
}

.footer-iconTop a:hover {
    box-shadow: 0 0 1rem #0ef;
}

.footer-iconTop a i {
    font-size: 2.4rem;
    color: #323946;
}

/* Media-Querry (1700px) -------------------------------------------------------- */

@media (max-width: 1700px) {
    .portfolio-layer h4 {
        font-size: 2rem;
        margin: 5rem 0 1rem;
    }

    .portfolio-layer p {
        font-size: 1.7rem;
        margin: 0.3rem 0 1rem;
    }

    .portfolio-layer a {
        width: 3rem;
        height: 3rem;
        background: #fff;
        border-radius: 50%;
    }

    .portfolio-layer a i {
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
        font-size: 1.5rem;
        color: #323946;
    }

}

/* Media-Querry (1500px) -------------------------------------------------------- */

@media (max-width: 1500px) {
    html {
        font-size: 55%;
    }

    .portfolio-layer h4 {
        font-size: 2rem;
        margin: 4rem 0 1rem;
    }

    .portfolio-layer p {
        font-size: 1.7rem;
        margin: 0.3rem 0 1rem;
    }

    .portfolio-layer a {
        width: 3rem;
        height: 3rem;
        background: #fff;
        border-radius: 50%;
    }

    .portfolio-layer a i {
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
        font-size: 1.5rem;
        color: #323946;
    }

}

/* Media-Querry (1200px) -------------------------------------------------------- */

@media (max-width: 1200px) {
    html {
        font-size: 50%;
    }

    .portfolio-layer h4 {
        font-size: 2rem;
        margin: 2rem 0 1rem;
    }

    .portfolio-layer a {
        width: 3rem;
        height: 3rem;
        background: #fff;
        border-radius: 50%;
    }

    .portfolio-layer a i {
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 1.5rem;
        color: #323946;
    }

}

/* Media-Querry (1100px) -------------------------------------------------------- */

@media (max-width: 1100px) {
    html {
        font-size: 50%;
    }

    .portfolio-layer h4 {
        font-size: 1.7rem;
        margin: 1rem 0 1rem;
    }

    .portfolio-layer p {
        font-size: 1.6rem;
        margin: 0.3rem 0 1rem;
    }

    .portfolio-layer a {
        width: 3rem;
        height: 3rem;
        background: #fff;
        border-radius: 50%;
    }

    .portfolio-layer a i {
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
        font-size: 1.5rem;
        color: #323946;
    }

}

/* Media-Querry (991px) --------------------------------------------------------- */

@media (max-width: 991px) {
    section {
        padding: 10rem 3% 2rem;
    }

    .services {
        padding-bottom: 7rem;
    }

    .portfolio {
        padding-bottom: 7rem;
    }

    .portfolio-layer p {
        font-size: 1.3rem;
    }

    .portfolio-layer h4 {
        font-size: 1.8rem;
    }

    .contact {
        min-height: auto;
    }

    .social-icons a {
        width: 5rem;
        height: 5rem;
        font-size: 3.4rem;
    }

    .footer {
        padding: 2rem 3%;
    }

}

/* Media-Querry (768px) --------------------------------------------------------- */

@media (max-width: 768px) {
    #menu-icon {
        display: block;
    }

    #menu-icon:hover {
        cursor: pointer;
    }

    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 1rem 3%;
        background: #1f242d;
        border-top: 0.1rem solid rgba(0, 0, 0, 0.2);
        border-top: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
        display: none;
    }

    .navbar.active {
        display: block;
    }

    .navbar a {
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
    }

    .home {
        flex-direction: column;
    }

    .home-content h3 {
        font-size: 2.6rem;
    }

    .home-content h1 {
        font-size: 5rem;
    }

    .home-img img {
        width: 70vw;
        margin-top: 4rem;
    }

    .about {
        flex-direction: column-reverse;
    }

    .about img {
        width: 70vw;
        margin-top: 4rem;
    }

    .services h2 {
        margin-bottom: 3rem;
    }

    .portfolio h2 {
        margin-bottom: 3rem;
    }

    .portfolio-layer h4 {
        font-size: 2rem;
        margin: 1rem 0 1rem;
    }

    .portfolio-layer p {
        font-size: 1.8rem;
    }

    .portfolio-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .social-icons a {
        width: 4rem;
        height: 4rem;
        font-size: 2.5rem;
    }

}

/* Media-Querry (617px) --------------------------------------------------------- */

@media (max-width: 617px) {
    .portfolio-container {
        grid-template-columns: 1fr;
    }

    .portfolio-box img {
        width: 100%;
    }

    .social-icons a {
        width: 4rem;
        height: 4rem;
        font-size: 2.5rem;
    }

    .portfolio-layer h4 {
        font-size: 3rem;
        margin: 3rem 0 1rem;
    }

    .portfolio-layer p {
        font-size: 2rem;
    }

    .footer-text {
        font-size: 1.4rem;
        margin: 0rem 5rem;
    }

}

/* Media-Querry (450px) --------------------------------------------------------- */

@media (max-width: 450px) {
    html {
        font-size: 50%;
    }

    .social-icons a {
        width: 3rem;
        height: 3rem;
        font-size: 2rem;
    }

    .portfolio-layer h4 {
        font-size: 2.5rem;
        margin: 3rem 0 1rem;
    }

}

/* Media-Querry (365px) --------------------------------------------------------- */

@media (max-width: 365px) {
    .home-img img {
        width: 90vw;
    }

    .about-img img {
        width: 90vw;
    }

    .social-icons a {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.5rem;
    }

    .footer {
        flex-direction: column-reverse;
    }

    .footer p {
        text-align: center;
        margin-top: 2rem;
    }

}
