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

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

html {
    font-size: 62.5%;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: black;
}

::-webkit-scrollbar-thumb {
    background: #b74b4b;

    border-radius: 12px;

    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: #b74b4b;
}

body {
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    background-color: black;
    color: white;
}

header {
    margin-top: 20px;
    position: fixed;
    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;
    
    transition: transform 0.4s ease;
}

header.hide {
    transform: translateY(-100%); 
}


.logo {
    font-size: 3rem;
    font-weight: 800;
    color: #b74b4b;
    transition: 0.5s ease;
    cursor: pointer;
}

.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 #b74b4b;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}
@media (max-width: 995px) {
    .hamburger {
        display: flex;
    }
    nav {
        position: absolute;
        display: none;
        top: 100%;
        right: 0;
        width: 250px;
        background-color: black;
        border: 2px solid #b74b4b;
        border-radius: 0.5rem;
        padding: 1rem;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
        z-index: 101;
    }
    nav.active {
        display: block;
    }
    nav a {
        display: block;
        font-size: 1.8rem;
        margin: 0.5rem 0;
        color: white;
        text-decoration: none;
        padding: 0.5rem;
        border-radius: 0.3rem;
        transition: 0.3s;
    }
    nav a:hover,
    nav a.active {
        background-color: #b74b4b;
        color: white;
    }
}
section {
    min-height: 100vh;
    padding: 10rem 10% 5rem;
}

.home {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8rem;
    background-color: black;
    margin-top: -10px;
}

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

span {
    color: #b74b4b;
}

.home-content h3 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.home-content p {
    font-size: 1.8rem;
    font-weight: 500;
    color: white;
}
.home-img {
    border-radius: 50%;
}
.home-img img {
    position: relative;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    box-shadow: 0 0 25px #b74b4b;
    cursor: pointer;
    transition: 0.2s linear;
    object-fit: cover;
}

.home-img img:hover {
    box-shadow: 0 0 50px #b74b4b;
    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 {
    background-color: #b74b4b;
    color: black;
    transform: scale(1.3) translateY(-5px);
    box-shadow: 0 0 25px #b74b4b;
}

.btn {
    display: inline-block;
    padding: 1rem 2.8rem;
    background-color: #b74b4b;
    color: black;
    font-weight: 600;
    border: 0.2rem solid #b74b4b;
    font-size: 1.6rem;
    border-radius: 4rem;
    transition: 0.3s ease;
    cursor: pointer;
}

.btn:hover {
    background-color: transparent;
    color: #b74b4b;
    box-shadow: 0 0 25px #b74b4b;
}

.typewriter {
    border-right: 3px solid #b74b4b;
    padding-right: 5px;
    animation: blink 0.8s infinite;
}

@keyframes blink {
    0%,
    100% {
        border-color: transparent;
    }
    50% {
        border-color: #b74b4b;
    }
}

@media (max-width: 1000px) {
    .home {
        gap: 4rem;
    }
}

@media (max-width: 995px) {
    .home {
        flex-direction: column;
        margin: 5rem 4rem;
    }

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

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

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

section .content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
section .title {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}
section .title span {
    color: white;
    font-size: 30px;
    font-weight: 600;
    position: relative;
    padding-bottom: 8px;
}
section .title span::before,
section .title span::after {
    content: "";
    position: absolute;
    height: 3px;
    width: 100%;
    background: #b74b4b;
    left: 0;
    bottom: 0;
}
section .title span::after {
    bottom: -7px;
    width: 70%;
    left: 50%;
    transform: translateX(-50%);
}

.about .content {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.about .about-details {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.about .about-details .left,
.about .about-details .right {
    width: 100%;
}

.about .about-details .button {
    width: 100%;
    display: flex;
    justify-content: center;
    order: 3;
}

.about .about-details .button button {
    margin-top: 1rem;
}

@media (min-width: 996px) {
    .about .about-details {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
    }

    .about .about-details .left,
    .about .about-details .right {
        width: 48%;
    }
}
.about-details .left {
    border-radius: 50%;
}
.about-details .left img {
    position: relative;
    width: 300px;
    height: 300px;
    border-radius: 10%;
    box-shadow: 0 0 25px #b74b4b;
    cursor: pointer;
    transition: 0.2s linear;
    object-fit: cover;
}
.about-details .left img:hover {
    box-shadow: 0 0 50px #b74b4b;
    font-size: 1.8rem;
    font-weight: 500;
}
.right .topic {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #b74b4b;
}
.right p {
    font-size: 1.5rem;
    font-weight: 500;
    color: white;
}
button {
    display: inline-block;
    padding: 1rem 2.8rem;
    background-color: #b74b4b;
    color: black;
    font-weight: 600;
    border: 0.2rem solid #b74b4b;
    font-size: 1.6rem;
    border-radius: 4rem;
    transition: 0.3s ease;
    cursor: pointer;
}
button:hover {
    background-color: transparent;
    color: #b74b4b;
    box-shadow: 0 0 25px #b74b4b;
}

.Skills {
    background-color: black;
}

.Skills .content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 0;
}

.Skills .skills-details {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    gap: 4rem;
    flex-wrap: wrap;
}

.skills-details .text {
    width: 50%;
    flex-shrink: 0;
}

.skills-details .text .topic {
    font-size: 2.5rem;
    font-weight: 700;
    color: #b74b4b;
    margin-top: 3rem;
    margin-bottom: 2rem;
}

.skills-details p {
    color: white;
    text-align: left;
    font-size: 1.8rem;
    line-height: 1.8;
}

.Skills .skills-details .experience {
    display: flex;
    align-items: center;
    margin: 2rem 0 0 0;
}

.skills-details .experience .num {
    color: white;
    font-size: 110px;
    font-weight: 700;
}

.skills-details .experience .exp {
    color: white;
    font-size: 24px;
    margin-left: 20px;
    font-weight: 600;
}

.skill-boxes {
    width: 45%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
}

.skills-details .boxes {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
}

.skills-details .boxes .topic {
    color: #b74b4b;
    font-size: 22px;
    font-weight: 600;
    text-align: center;
}

.skills-details .boxes .per {
    font-size: 70px;
    color: #b74b4b;
    font-weight: 700;
    text-align: center;
    line-height: 1;
}

.services .boxes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.5rem;
    width: 100%;
    margin-top: 3rem;
}

.services .box {
    background-color: rgba(183, 75, 75, 0.15);
    border-radius: 2rem;
    padding: 3rem 2rem;
    text-align: center;
    transition:
        transform 0.3s ease,
        background-color 0.3s ease;
}

.services .box:hover {
    transform: translateY(-10px);
    background-color: rgba(183, 75, 75, 0.25);
}

.services .box.highlight {
    box-shadow: 0 0 30px rgba(183, 75, 75, 0.35);
}

.services .box.highlight .topic,
.services .box.highlight p {
    color: white;
}

.services .box.highlight .icon {
    background-color: #b74b4b;
    color: white;
}

.services .box .icon {
    width: 5rem;
    height: 5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #b74b4b;
    color: white;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.services .box .topic {
    color: white;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.services .box p {
    color: #ddd;
    font-size: 1.4rem;
    line-height: 1.8;
}

@media (max-width: 995px) {
    .Skills .skills-details {
        flex-direction: column;
        align-items: center;
    }

    .skills-details .text,
    .skill-boxes,
    .skills-details .boxes {
        width: 100%;
    }

    .skill-boxes {
        grid-template-columns: 1fr;
    }
}

.contact .text {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact .topic {
    font-size: 3rem;
    font-weight: 700;
    color: #b74b4b;
    margin-top: 5rem;
    margin-bottom: 10rem;
}

.contact p {
    font-size: 1.8rem;
    color: white;
    margin-bottom: 2rem;
    max-width: 600px;
}

.contact .button {
    display: flex;
    justify-content: center;
}

footer {
    background-color: black;
    padding: 2rem 0;
    border-top: 1px solid #b74b4b;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

footer .text span {
    color: white;
    font-size: 1.7rem;
}

.footer-icon a {
    color: #b74b4b;
    font-size: 2rem;
    margin: 0 1rem;
    transition: 0.3s ease;
}

.footer-icon a:hover {
    color: white;
    transform: scale(1.2);
}

@media (max-width: 995px) {
    .services .boxes {
        grid-template-columns: 1fr;
    }

    .contact .topic {
        font-size: 2.5rem;
    }

    .contact p {
        font-size: 1.5rem;
    }

    footer {
        flex-direction: column;
        gap: 1rem;
    }

    footer .text span {
        font-size: 1.2rem;
    }

    .footer-icon a {
        font-size: 1.8rem;
        margin: 0 0.5rem;
    }
}
.footer-icon 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;
}

.footer-icon a:hover {
    background-color: #b74b4b;
    color: black;
    transform: scale(1.3) translateY(-5px);
    box-shadow: 0 0 25px #b74b4b;
}
