:root {
    --bg-color: #1d1d1d;
    --second-bg-color: #161616;
    --text-color: #fff;
    --main-color: rgb(236, 66, 66);
}

html {
    font-size: 62.5%;
    overflow-x: hidden;
}

body {
    color: var(--text-color);
}

html::-webkit-scrollbar {
    width: 0.8rem;
}

html::-webkit-scrollbar-track {
    background: var(--second-bg-color);
}

html::-webkit-scrollbar-thumb {
    background: var(--main-color);
}

.section {
    min-height: 100vh;
    padding: 5rem 9% 5rem;
}

.home {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8rem;
    background: var(--second-bg-color);
}

.home .home-content h1 {
    font-size: 6rem;
    font-weight: 700;
    line-height: 1.3;
}

.span {
    color: rgb(236, 66, 66);
}

.home-content h3 {
    font-size: 4rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.home-img {
    border-radius: 50%;
}

.home-img img {
    position: relative;
    width: 32vw;
    border-radius: 50%;
    box-shadow: 0 0 25px rgb(236, 66, 66);
    cursor: pointer;
}

.home-img img:hover {
    transform: scale(1.01);
    filter: drop-shadow(0 0 25px rgb(236, 66, 66));
}

.home-content p {
    font-size: 1.8rem;
    font-weight: 500;
}

.social-icon a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background: transparent;
    border: 0.2rem solid rgb(236, 66, 66);
    font-size: 2rem;
    border-radius: 50%;
    color: rgb(236, 66, 66);
    margin: 3rem 1.5rem 3rem 0;
    transition: 0.3s ease;
}

.social-icon a:hover {
    color: white;
    transform: scale(1.3)translateY(-5px);
    background: rgb(236, 66, 66);
    box-shadow: 0 0 25px rgb(236, 66, 66);
}

.btn {
    display: inline-block;
    padding: 1rem 2.8rem;
    background: #000000;
    border-radius: 4rem;
    font-size: 1.6rem;
    color: rgb(236, 66, 66);
    border: 2px solid rgb(236, 66, 66);
    letter-spacing: 0.1rem;
    font-weight: 600;
    transition: 0.3s ease;
    cursor: pointer;
}

.btn:hover {
    transform: scale(1.03);
    background-color: rgb(236, 66, 66);
    color: #fff;
    box-shadow: 0 0 25px rgb(236, 66, 66);
}

.typing-text {
    font-size: 34px;
    font-weight: 600;
    min-width: 280px;
}

.typing-text span {
    position: relative;
}

.typing-text span::before {
    content: 'Software Developer';
    color: var(--main-color);
    animation: words 20s infinite;
}

.typing-text span::after {
    content: '';
    background: var(--second-bg-color);
    position: absolute;
    width: calc(100% + 8px);
    height: 100%;
    border-left: 3px solid var(--second-bg-color);
    right: -8;
    animation: cursor 0.6 infinite, typing 20s steps(14) infinite;
}

@keyframes cursor {
    to {
        border-left: 3px solid var(--main-color);
    }
}

@keyframes words {
    0%,
    20% {
        content: '3D Artists';
    }
    21%,
    40% {
        content: 'Game Designs';
    }
    41%,
    60% {
        content: '2D Artists';
    }
    61%,
    80% {
        content: 'Film Maker';
    }
    81%,
    100% {
        content: 'Brands Designs';
    }
}

@keyframes typing {
    10%,
    15%,
    30%,
    35%,
    50%,
    55%,
    70%,
    75%,
    90%,
    95% {
        width: 0;
    }
    5%,
    20%,
    25%,
    40%,
    45%,
    60%,
    65%,
    80%,
    85% {
        width: calc(100% + 8px);
    }
}