@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600&display=swap');
@import url('https://fonts.googleapis.com/css?family=Exo:400,700');


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    font-family: 'Poppins', sans-serif;
}

html {
    font-size: 62.5%;
}

body {
    width: 100%;
    height: 100vh;
    overflow-x: hidden;
    background-color: rgb(255, 255, 255);
    color: rgb(0, 0, 0);
}

header {
    margin-top: 20px;
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 9%;
    background-color: transparent;
    filter: drop-shadow(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.logo {
    font-size: 3rem;
    font-weight: 800;
    cursor: pointer;
    transition: 0.5s ease;
    margin-right: 100px;
    color: rgb(180, 66, 66);
}

.logo:hover {
    transform: scale(0.7);
}

nav a {
    font-size: 1.8rem;
    color: rgb(0, 0, 0);
    margin-left: 4rem;
    font-weight: 500;
    transition: 0.3s ease;
    border-bottom: 3px solid transparent;
}

.navbar-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    margin-right: 100px;

}


.nav-bar-toggle {
    display: none;
}

.side-navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    margin-right: 100px;
}


@media screen and (max-width: 950px) {
    .nav-bar-toggle {
        display: block;
        font-size: 2rem;
        cursor: pointer;
    }

    nav {
        display: none;
    }

}


nav a.active {
    color: #000000;

}

nav a:hover {
    border-bottom: 3px solid #ca4e4e;
}

@media(max-width:550px) {
    nav {

        position: absolute;
        display: none;
        top: 0;
        right: 0;
        width: 40%;
        border-left: 3px solid #b74b4b;
        border-bottom: 3px solid #b74b4b;
        border-bottom-left-radius: 2rem;
        padding: 1rem solid;
        background-color: #161616;
        border-top: 0.1rem solid rgba(0, 0, 0, 0.1);
    }

    nav.active {
        display: block;
    }

    nav a {
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
    }

    nav a:hover,
    nav a.active {
        padding: 1rem;
        border-radius: 0.5rem;
        border-bottom: 0.5rem solid #b74b4b;
    }
}

section {
    min-height: 100vh;
    padding: 5rem 9% 5rem;
}

.home {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8rem;
    background-color: rgb(255, 255, 255);
    box-shadow: rgba(0, 0, 0, 0.45) 0px 25px 20px -20px;
}

.home .home-content h1 {
    font-size: 6rem;
    font-weight: 700;
    line-height: 1.3;
}

span {
    color: #b74b4b;
}

.home-content h3 {
    font-size: 4rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.home-content p {
    font-size: 1.6rem;
}

.home-img {
    border-radius: 50%;
}

.home-img img {
    position: relative;
    width: 32vw;
    border-radius: 50%;
    box-shadow: 0 0 25px solid #b74b4b;
    cursor: pointer;
    transition: 0.2s linear;
    box-shadow: rgba(0, 0, 0, 0.17) 0px -23px 25px 0px inset,
        rgba(0, 0, 0, 0.15) 0px -36px 30px 0px inset, rgba(0, 0, 0, 0.1) 0px -79px 40px 0px inset,
        rgba(0, 0, 0, 0.06) 0px 2px 1px, rgba(0, 0, 0, 0.09) 0px 4px 2px, rgba(0, 0, 0, 0.09) 0px 8px 4px,
        rgba(0, 0, 0, 0.09) 0px 16px 8px, rgba(0, 0, 0, 0.09) 0px 32px 16px;
    box-shadow: rgba(6, 24, 44, 0.4) 0px 0px 0px 2px, rgba(6, 24, 44, 0.65) 0px 4px 6px -1px, rgba(255, 255, 255, 0.08) 0px 1px 0px inset;
}

.home-img img:hover {
    font-size: 1.8rem;
    font-weight: 500;
}

.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background-color: transparent;
    border: 0.2rem solid #b74b4b;
    font-size: 2rem;
    border-radius: 50%;
    margin: 3rem 1.5rem 3rem 0;
    transition: 0.3s ease;
    color: #b74b4b;
}

.social-icons a:hover {
    color: black;
    transform: scale(1.3) translateY(-5px);
    background-color: #d35f5f;
    box-shadow: 0 0 25px #b74b4b;
}

.btn {
    display: inline-block;
    padding: 1rem 2.8rem;
    background-color: rgb(255, 255, 255);
    border-radius: 4rem;
    font-size: 1.6rem;
    color: #b74b4b;
    letter-spacing: 0.3rem;
    font-weight: 600;
    border: 2px solid #b74b4b;
    transition: 0.3s ease;
    cursor: pointer;
}

.btn:hover {
    transform: scale3d(1.03);
    background-color: #ffffff;
    color: black;
    box-shadow: 0 0 55px #4bb7b3;
}

.typing-text {
    font-size: 34px;
    font-weight: 600;
    min-width: 280px;
}

.typing-text span {
    position: relative;
}

.typing-text span::before {
    content: "Software Developer";
    color: #b74b4b;
    animation: words 20s infinite;
}

.typing-text span::after {
    content: "";
    background-color: rgb(255, 255, 255);
    position: absolute;
    width: calc(100% + 8px);
    height: 100%;
    border-left: 3px solid black;
    right: -8;
    animation: cursor 0.6s infinite;

}

@keyframes cursor {
    to {
        border-left: 3px solid #b74b4b;
    }
}

@keyframes words {

    0%,
    20% {
        content: "Web Developer";
    }

    21%,
    40% {
        content: "Developer";
    }

    41%,
    60% {
        content: "Web Designer";
    }
}

@media (max-width: 1000px) {
    .home {
        gap: 4rem;
    }
}

@media(max-width:995px) {
    .home {
        flex-direction: column;
        margin: 5rem 4rem;
    }

    .home .home-content h3 {
        font-size: 2.5rem;
    }

    .home-content h1 {
        font-size: 5rem;
    }

    .home-img img {
        width: 70vw;
        margin-top: 4rem;
    }

    .logo {
        font-size: 2.5rem;
    }
}



@media(max-width:550px) {
    .home .home-content h1 {
        font-size: 4rem;
    }

    .home-content h3 {
        font-size: 2rem;
    }

    .home-content p {
        font-size: 1.4rem;
    }

    .home-img img {
        width: 70vw;
    }

    .logo {
        font-size: 2rem;
    }

    .typing-text {
        font-size: 2rem;
    }
}


.services {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8rem;
    background-color: rgb(255, 255, 255);

}

.heading {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 3rem;
}

.box-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
}

.box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: rgba(0, 0, 0, 0.45) 0px 25px 20px -20px;
    background-color: #f5f5f5;
    transition: 0.3s ease;

}

Image {
    width: 100%;
    height: 100%;

}

.heading:hover {
    transform: scale(1.1);
    cursor: pointer;
}

.box:hover {
    transform: scale(1.1);
    cursor: pointer;
}

.box img {
    width: 10rem;
}

.box h3 {
    font-size: 2.5rem;
    font-weight: 700;
}

.box p {
    font-size: 1.6rem;
    text-align: center;
}

@media(max-width:995px) {
    .services {
        flex-direction: column;
        margin: 5rem 4rem;
    }

    .heading {
        font-size: 3rem;
    }

    .box-container {
        flex-direction: column;
        gap: 4rem;
    }

    .box {
        padding: 1rem;
    }

    .box img {
        width: 8rem;
    }

    .box h3 {
        font-size: 2rem;
    }

    .box p {
        font-size: 1.4rem;
    }
}

@media(max-width:550px) {
    .heading {
        font-size: 2.5rem;
    }

    .box h3 {
        font-size: 1.8rem;
    }

    .box p {
        font-size: 1.2rem;
    }

    .box img {
        width: 6rem;
    }
}

.about {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8rem;
    background-color: rgb(255, 255, 255);
    box-shadow: rgba(0, 0, 0, 0.45) 0px 25px 20px -20px;
}

.about-img img {
    width: 40vw;
    border-radius: 1rem;
    box-shadow: rgba(0, 0, 0, 0.45) 0px 25px 20px -20px;
}

.about-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.about-content h1 {
    font-size: 4rem;
    font-weight: 700;
}

.about-content p {
    font-size: 1.6rem;
    text-align: center;
}

@media(max-width:995px) {
    .about {
        flex-direction: column;
        margin: 5rem 4rem;
    }

    .about-img img {
        width: 70vw;
    }

    .about-content h1 {
        font-size: 3rem;
    }

    .about-content p {
        font-size: 1.4rem;
    }
}

@media(max-width:550px) {
    .about-content h1 {
        font-size: 2.5rem;
    }

    .about-content p {
        font-size: 1.2rem;
    }
}

.contact {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8rem;
    background-color: rgb(255, 255, 255);
    box-shadow: rgba(0, 0, 0, 0.45) 0px 25px 20px -20px;
}

.contact-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.contact-content h1 {
    font-size: 4rem;
    font-weight: 700;
}

.contact-content p {
    font-size: 1.6rem;
    text-align: center;
}

.contact-form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.contact-form input,
.contact-form textarea {
    width: 40vw;
    padding: 1rem;
    border-radius: 1rem;
    border: 0.1rem solid #b74b4b;
    font-size: 1.6rem;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    font-size: 1.6rem;
}

.contact-form button {
    padding: 1rem 2.8rem;
    background-color: black;
    border-radius: 4rem;
    font-size: 1.6rem;
    color: #b74b4b;
    letter-spacing: 0.3rem;
    font-weight: 600;
    border: 2px solid #b74b4b;
    transition: 0.3s ease;
    cursor: pointer;
}

.contact-form button:hover {
    transform: scale3d(1.03);
    background-color: #b74b4b;
    color: black;
    box-shadow: 0 0 25px #b74b4b;
}

@media(max-width:995px) {
    .contact {
        flex-direction: column;
        margin: 5rem 4rem;
    }

    .contact-content h1 {
        font-size: 3rem;
    }

    .contact-content p {
        font-size: 1.4rem;
    }

    .contact-form input,
    .contact-form textarea {
        width: 70vw;
    }

    .contact-form button {
        padding: 1rem 2.8rem;
    }
}

@media(max-width:550px) {
    .contact-content h1 {
        font-size: 2.5rem;
    }

    .contact-content p {
        font-size: 1.2rem;
    }

    .contact-form input,
    .contact-form textarea {
        width: 70vw;
    }

    .contact-form button {
        padding: 1rem 2.8rem;
    }
}

footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    background-color: #161616;
    color: rgb(255, 255, 255);
    padding: 2rem 0;
    border-radius: 10px;
}

footer p {
    font-size: 1.6rem;
}

footer a {
    font-size: 1.6rem;
    color: #b74b4b;
    font-weight: 600;
    transition: 0.3s ease;

}

footer a:hover {
    color: rgb(255, 255, 255);
}

@media(max-width:550px) {
    footer {
        flex-direction: column;
        gap: 1rem;
    }
}

.contact {
    font-size: large;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: rgba(0, 0, 0, 0.45) 0px 25px 20px -20px;
    background-color: #f5f5f5;
    transition: 1.5s ease-out;
    cursor: pointer;

}

.contact:hover {
    transform: scale(1.1);
    cursor: pointer;
}