@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600&display=swap');

* {
    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%;
    scroll-behavior: smooth;
}

body {
    width: 100%;
    background-color: black;
    color: rgb(255, 255, 255);
    overflow-x: hidden;
}

/* HEADER */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 9%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.85);
    z-index: 100;
}

.logo {
    font-size: 3rem;
    color: #b74b4b;
    font-weight: 800;
    transition: 0.3s ease;
}

.logo:hover {
    transform: scale(1.1);
    color: #ffffff;
}

nav a {
    font-size: 1.8rem;
    color: rgb(255, 255, 255);
    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 #b74b4b;
}

/* SECTION BASE */

section {
    min-height: 100vh;
    padding: 7rem 9% 5rem;
}

/* HOME */

.home {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8rem;
    background-color: black;
    flex-wrap: wrap;
}

.home-img {
    border-radius: 50%;
}

.home-img img {
    width: 32vw;
    border-radius: 50%;
    box-shadow: 0 0 25px #b74b4b;
    transition: 0.3s ease;
}

.home-img img:hover {
    transform: scale(1.05);
}

.home-content h1 {
    font-size: 6rem;
    font-weight: 700;
    line-height: 1.3;
}

.home-content h3 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

span {
    color: #b74b4b;
}

.home-content p {
    font-size: 2.1rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
    max-width: 600px;
}

/* TYPING TEXT */

.typing-text {
    font-size: 3.2rem;
    font-weight: 600;
    min-width: 280px;
    height: 4rem;
}

.typing-text span {
    color: #b74b4b;
}

/* SOCIAL ICONS */

.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 {
    background-color: #b74b4b;
    color: black;
    transform: scale(1.2) translateY(-5px);
    box-shadow: 0 0 25px #b74b4b;
}

/* BUTTON */

.btn {
    display: inline-block;
    padding: 1rem 2.8rem;
    border-radius: 4rem;
    font-size: 1.6rem;
    color: #b74b4b;
    font-weight: 600;
    letter-spacing: 0.3rem;
    border: 2px solid #b74b4b;
    background-color: black;
    transition: 0.3s ease;
    cursor: pointer;
}

.btn:hover {
    background-color: #b74b4b;
    color: black;
    box-shadow: 0 0 25px #b74b4b;
    transform: scale(1.05);
}

/* SECTIONS: Skills, Education, Project, Contact */

section h2 {
    font-size: 3.5rem;
    color: #b74b4b;
    margin-bottom: 2rem;
    text-align: center;
}

section ul {
    font-size: 1.8rem;
    list-style: disc inside;
    line-height: 2.8rem;
    max-width: 800px;
    margin: auto;
    padding-left: 2rem;
    color: rgb(255, 255, 255);
}

section#contact p {
    font-size: 1.6rem;
    margin: 1rem auto;
    text-align: center;
}

section#contact a {
    color: #b74b4b;
    text-decoration: underline;
}

.project .project-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    font-size: 1.6rem;
    justify-content: center;
}

.project-card {
    background-color: #161616;
    border: 1px solid #b74b4b;
    font-size: 1.6rem;
    padding: 2rem;
    border-radius: 1rem;
    width: 300px;
    color: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px #b74b4b;
    font-size: 1.6rem;
}

/* RESPONSIVE */

@media (max-width: 1000px) {
    .home {
        gap: 4rem;
    }

    .home-content h1 {
        font-size: 4rem;
    }

    .home-content h3 {
        font-size: 2.5rem;
    }

    .home-img img {
        width: 70vw;
    }
}

@media (max-width: 768px) {
    nav {
        display: none;
    }

    nav.active {
        display: block;
        position: absolute;
        top: 100%;
        right: 0;
        width: 50%;
        background-color: #161616;
        border-left: 3px solid #b74b4b;
        border-bottom: 3px solid #b74b4b;
        border-bottom-left-radius: 1rem;
        padding: 2rem;
    }

    nav a {
        display: block;
        margin: 2rem 0;
        font-size: 2rem;
    }

    .menu-toggle {
        display: block;
        font-size: 2.4rem;
        color: #b74b4b;
        cursor: pointer;
    }

    header {
        justify-content: space-between;
    }
}
