@import url('https://fonts.googleapis.com/css2?family=Cormorant:ital,wght@0,300..700;1,300..700&family=Poppins:wght@300;400;500;600;900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    font-family: 'Cormorant', sans-serif;

}

html {
    font-size: 62.5%;
}

body {
    width: 100%;
    height: 100vh;
    overflow-x: hidden;
    background-color: #121212;
    color: white
}


header {
    margin-top: 0px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 9%;
    background-color: #b74b4b75;
    filter: drop-shadow(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.menu {
    font-size: 2.5rem;
    cursor: pointer;
    color: white;
}

.logo {
    font-size: 3rem;
    color: whitesmoke;
    font-weight: 800;
    cursor: pointer;
    transition: 0.5s ease;
}

.logo:hover {
    transform: scale(1.1);
}


nav a {
    font-size: 1.8rem;
    color: white;
    margin-left: 4rem;
    font-weight: 500;
    transition: 0.3s ease;
    border-bottom: 3px solid transparent;
}

nav a:hover,
nav a.active {
    color: #b74b4b;
    border-bottom: 3px solid whitesmoke;
}

header img {
    display: none;
}

@media(max-width: 1140px) {}

@media(max-width:768px) {
    header img {
        display: block;
        max-width: 35px;
    }

    nav {
        margin-top: 0px;
        position: absolute;
        display: none;
        top: 0;
        right: 0;
        width: 80%;
        border-left: 3px solid #b74b4b;
        border-bottom: 3px solid #b74b4b;
        border-bottom-left-radius: 1rem;
        padding: 1rem solid;
        background-color: #121212;
        border-top: 0.1rem solid rgba(0, 0, 0, 0, 1);
        padding-left: 10px;


    }

    header {
        margin-top: 0;
        background-color: #121212;
    }

    nav.active {
        display: block;
        transition: 0.3s ease;
        transform: translateX(-10px)
    }

    nav a {
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
    }

    nav a:hover,
    nav a.active {
        width: 20rem;
        padding: 1rem;
        border-radius: 0.5rem;
        border-bottom: 0.5rem solid #b74b4b;
    }
}

.home-img {
    border-radius: 1000px;
    max-width: 100%;
    border-radius: 50%;
}

section {
    margin-top: 50px;
    min-height: auto;
    padding: 5rem 9% 5rem;
}

.home {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8rem;
    background-color: 121212;
}

.home .home-content h1 {
    font-size: 6rem;
    font-weight: 900;
    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.7rem;
}


.home-img img {
    position: relative;
    width: 32vw;
    border-radius: 50%;
    box-shadow: 0 0 25px solid #b74b4b;
    cursor: pointer;
    transition: 0.2s linear;
}

.home-img img:hover {
    font-size: 1.8rem;
    font-weight: 500;
}

.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 3.5rem;
    height: 3.5rem;
    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: whitesmoke;
}

.social-icons a:hover {
    color: #121212;
    transform: scale(1.3) translateY(-5px);
    background-color: #b74b4b;
    box-shadow: 0 0 25px #b74b4b;
}

.btn {
    display: inline-block;
    padding: 1rem 2.8rem;
    background-color: #121212;
    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: #b74b4b;
    color: #121212;
    box-shadow: 0 0 25px #b74b4b;
}

.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: #121212;
    position: absolute;
    width: calc(100% + 8px);
    height: 50%;
    border-left: 3px solid #121212;
    right: -8;
    animation: cursor 0.6s infinite;
}

@keyframes cursor {
    to {
        border-left: 3px solid;
    }

}

@keyframes words {

    0%,
    20% {
        content: "JavaScript Developer";
    }

    21%,
    40% {
        content: "Python Developer"
    }

    41%,
    60% {
        content: "HTML & CSS Designer";
    }

    61%,
    80% {
        content: "Content Creator ";
    }

    80%,
    100% {
        content: "Script Writer"
    }

}

@media(max-width: 1000px) {
    .home {
        gap: 4rem;
    }
}

@media(max-width: 955px) {
    .home {
        flex-direction: column;
        margin: 5rem 4rem;
    }

    .home .home-content {
        font-size: 2.5rem;
    }

    .home-content h1 {
        font-size: 5rem;
    }

    .home-img img {
        width: 70vh;
        margin-top: 4rem;
    }
}

.skills {
    top: 0;
    display: flex;
    font-size: 1.5rem;
    justify-content: center;
    gap: 20px;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 5rem;
    align-items: center;


}

.boxes {
    flex: 1;
    border: 1px solid #b74b4b;
    padding-right: 50px;
    border-left: 4px solid #b74b4b;
    min-width: 250px;
    padding-bottom: 2rem;
    padding-left: 10px;
    transition: 0.3s ease;
    border-radius: 5px;
}

.boxes:hover {
    transform: translateY(-1.2rem);
    cursor: pointer;
    transition: 0.3s ease;
    border: 2px solid #b74b4b;
    box-shadow: 0 0 25px #b74b4b;
}

.boxes ul {
    list-style-position: inside;
    padding-left: 20px;
}

.titles {
    color: #b74b4b;
    padding-right: 50px;
    align-items: center;
}

ul li {
    font-size: 1.5rem;
    padding-bottom: 5px;
}

.pro-titles {
    text-align: center;
    font-size: 60px;
}

.projects {
    margin-top: 0;
    display: flex;
    flex-direction: row;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    top: 0;
    transition: 0.3s ease;

}

.project1:hover {
    transition: 0.3s ease;
    transform: translateY(-1.2rem);
    box-shadow: 0 0 25px #b74b4b;
    cursor: pointer;
}

.project1 {
    flex: 1;
    text-align: center;
    border: 2px solid #b74b4b;
    padding: 25px 15px;
    border-radius: 5px;
    height: 260px;

}

.projects .project1 img {
    width: 200px;
    max-width: 250px;
    height: 150px;
    margin: auto;

}

.project1 h2 {
    font-weight: 900;
    font-size: 20px;
    padding-bottom: 5px;
}

.project1 p {
    font-weight: 900;
    font-size: 15px;
}

.project-summary {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
    list-style-position: inside;


}

.summary {
    flex: 1 1 300px;
    border: 2px solid #b74b4b;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 5px;
    min-height: 360px;

}

.summary ul li {
    list-style-type: square;
    font-size: 16px;
    line-height: 2rem;
}

.summary:hover {
    transform: translateY(-10px);
    transition: 0.3s ease;
    box-shadow: 0 0 25px #b74b4b;
    cursor: pointer;

}

.pro-titles {
    margin-top: 50px;
    margin-bottom: 50px;
    color: #b74b4b;
}

.project-summary h2 {
    font-size: 24px;
    padding-bottom: 10px;
}

.project-summary p {
    font-size: 16px;
    padding-bottom: 10px;
}

.contact-footer {
    background-color: #161616;
    color: whitesmoke;
    padding: 3rem 9%;
    text-align: center;
    border-top: 2px solid #b74b4b;
}

.contact-footer h2 {
    color: #b74b4b;
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.contact-info p {
    margin: 0.5rem 0;
    font-size: 1.6rem;
}

.contact-form {
    margin: 2rem auto;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    border: 1px solid #b74b4b;
    border-radius: 5px;
    background-color: #000;
    color: white;
}

.contact-form button {
    background-color: #b74b4b;
    color: black;
    font-weight: bold;
    border: none;
    padding: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s ease;
}

.contact-form button:hover {
    background-color: whitesmoke;
    color: #b74b4b;
}

.collab{
    font-size : 16px;
}

.footer-note {
    margin-top: 2rem;
    font-size: 1.4rem;
    color: gray;
}