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

/* Reset */
* {
    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%;
    min-height: 100vh;
    overflow-x: hidden;
    background-color: black;
    color: white;
}

/* Header */
header {
    margin-top: 20px;
    padding: 1rem 9%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.logo {
    font-size: 3rem;
    color: #6f0000;
    font-weight: 800;
    cursor: pointer;
}

/* Navbar */
nav a {
    font-size: 1.8rem;
    color: white;
    margin-left: 4rem;
    font-weight: 500;
    transition: 0.3s;
}

nav a:hover {
    color: #6f0000;
}

/* Hamburger */
.menu-icon {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-icon span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 4px 0;
}

/* Mobile Navbar */
@media (max-width: 995px) {
    .menu-icon {
        display: flex;
    }

    nav {
        position: absolute;
        top: 70px;
        right: 9%;
        background-color: #161616;
        padding: 2rem;
        border-radius: 1rem;
        display: none;
        flex-direction: column;
    }

    nav.active {
        display: flex;
    }

    nav a {
        margin: 1.5rem 0;
        font-size: 2rem;
    }
}

/* Section */
section {
    min-height: 100vh;
    padding: 5rem 9%;
}

/* Home */
.home {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8rem;
}

/* Text */
.home-content h1 {
    font-size: 6rem;
    font-weight: 700;
}

.home-content h3 {
    font-size: 4rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

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

span {
    color: #6f0000;
}

/* Image */
.home-img img {
    width: 32vw;
    border-radius: 50%;
    cursor: pointer;
}

/* Social Icons */
.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    border: 0.2rem solid #6f0000;
    border-radius: 50%;
    font-size: 2rem;
    color: #6f0000;
    margin: 3rem 1.5rem 3rem 0;
    transition: 0.3s;
}

.social-icons a:hover {
    background-color: #6f0000;
    color: black;
}

/* Typing Text */
.typing-text {
    font-size: 3.4rem;
    font-weight: 600;
}

.typing-text span::before {
    content: "Web Developer";
    animation: words 20s infinite;
}

@keyframes words {
    0%, 20% { content: "Web Developer"; }
    21%, 40% { content: "Historia"; }
    41%, 60% { content: "Web Designer"; }
    61%, 80% { content: "Editor"; }
    81%, 100% { content: "Script Writer"; }
}

/* Button */
.btn {
    display: inline-block;
    padding: 1.4rem 3.5rem;
    background-color: #6f0000;
    color: white;
    font-size: 1.8rem;
    font-weight: 600;
    border-radius: 4rem;
}

/* Scroll To Top */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: #6f0000;
    color: white;
    border-radius: 50%;
    font-size: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

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

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