*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    scroll-behavior: smooth;
    font-family: Comfortaa;
}

:root {
    --bg-color: #161515;
    --second-bg-color: rgba(49, 48, 48, 0.126);
    --text-color: white;
    --main-color: yellow;
}

.bgclip{
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: -1;
}

html {
    font-size: 60%;
    overflow-x: hidden;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
}

.header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 12% 2rem;
    background: var(--second-bg-color);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 5;
}

.logo img{
    color: var(--text-color);
    cursor: pointer;
    transition: 0.8s ease;
    align-items: left;
    background: transparent;
    width: 18rem;
    padding-bottom: 0;
    margin:0;
}

.logo:hover{
    transform: scale(1.1);
}

.logo span{
    text-shadow: 0 0 25px var(--main-color);
}

.navbar a {
    font-size: 2rem;
    color: var(--text-color);
    font-weight: 500;
    transition: 0.3s ease;
    border-bottom: 5px solid transparent;
    padding: 10px 15px;
}

.navbar a:hover{
    padding: 20px 25px;
    color: var(--text-color);
}
.navbar a.active{
    color: white;
    border-bottom: 2px solid transparent;
}

#main{
    display: none;
}
section {
    min-height: 100vh;
    padding: 10rem 12% 10rem;
}

.home{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15rem;
}

.home-content{
    display: flex;
    flex-direction: column;
    align-items: baseline;
    text-align: left;
    justify-content: center;
    margin-top: 3rem;
}

span{
    color: var(--main-color);
}

.home-content h3 {
    margin-bottom: 2rem;
    margin-top: 1rem;
    font-size: 3.5rem;
}

.home-content h1 {
    font-size: 7rem;
    font-weight: 700;
    margin-top: 1.5rem;
    line-height: 1.3;
}
.home-content img {
    width: 19.5rem;
    transition: 0.3s ease;
    align-items: left;
    background: transparent;
}

.home-content p {
    font-size: 75px;
    font-weight: 700;
    line-height: 0.5px;
    padding-bottom: 2rem;
}

.home-img img:hover{
    box-shadow:0 0 25px var(--main-color),
                0 0 50px var(--main-color),
                0 0 100px var(--main-color);
}

.home-content p{
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.8;
    max-width: 1000px;
}

.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4.5rem;
    height: 4.5rem;
    background: transparent;
}

.btn {
    display: inline-block;
    padding: 1rem 2.8rem;
    background-color: var(--main-color);
    box-sizing: 0 0 25px var(--main-color);
    border-radius: 4rem;
    font-size: 1.6rem;
    color: black;
    border: 2px solid transparent;
    letter-spacing: 0.1rem;
    font-weight: 600;
    transition: 0.3s ease-in-out;
    cursor: pointer;

}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 50px var(--main-color);
}
.btn-group {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.btn-group a:nth-of-type(2){
    background-color: transparent;
    color: var(--main-color);
    border: 2px solid;
    box-shadow: 0 0 25px transparent;
}
.btn-group a:nth-of-type(2):hover {
    box-shadow: 0 0 25ox var(--main-color);
    background-color: var(--main-color);
    color: black;
}

.text-animation {
    font-size: 34px;
    font-weight: 600;
    min-width: 280px;
}

.text-animation span {
    position: relative;
}

.text-animation span::before {
    content:"Web Developer";
    color: var(--main-color);
    animation: words 20s infinite;
}

.text-animation span::after {
    content: "";
    background-color: var(--bg-color);
    position: absolute;
    width: calc(100% + 8px);
    height: 100%;
    border-left: 3px solid var(--main-color);
    right:-8px;
    animation: cursor 25s steps(14) infinite;
    animation: typing 20s steps(14) infinite;
}

@keyframes cursor {
    to{
        border-left: 2px solid var(--main-color);
    }
    40%, 60%{
        left: 100%;
    }
    100%{
        left:0%;
    }

}

@keyframes words {
    0%,
    20%{
        content:"Creative Designs?";
    }
    21%,
    40%{
        content: "Web Designs?";
    }
    41%,
    60%{
        content: "Website Maintenance?";
    }
    61%,
    80%{
        content: "Brand Strategy?";
    }
    81%,
    100%{
        content: "Print Design?";
    }
}

@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);
    }
}

@media (max-width: 600px) {
    #contact {
        display: none;
    }
    .btn {
        margin-left: 60px;
    }
    .home-content p{
        margin-top: 3rem;
    }
    .active{
        display:none;
    }
    #main{
        display:flex;
    }
}


@media (max-width: 500px) {
    .home-content h1 {
        display: none;
    }
}
