* {
    margin: 0;
    padding: 0;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
}

:root{
    --bg-color: rgb(15,15,15);
    --second-color: #161616;
    --text-color: aliceblue;
    --main-color: rgb(234, 78, 104);
}

html{
    font-size: 62.5%;
    overflow-x: hidden;
}

body{
    background: var(--bg-color);
    color: var(--text-color);
}

.header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 3rem 9%;
    background: var(--second-color);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.logo{
    font-size: 3rem;
    color: var(--text-color);
    font-weight: 800;
    cursor: pointer;
    transition: 0.4s ease-in-out;
}

.logo:hover{
    transform: scale(1.1);
}

.navbar a{
    font-size: 1.8rem;
    color: aliceblue;
    margin-left: 4rem;
    font-weight: 500;
    transition: 0.4s ease-in-out;
    border-bottom: 3px solid transparent;
}

.navbar a:hover,
.navbar a.active{
    color: var(--main-color);
    border-bottom: 3px solid var(--main-color);
}

#menu-icon{
    font-size: 3rem;
    color: var(--main-color);
    display: none;
}

section{
    min-height: 100vh;
    padding: 10rem 9% 10rem;
}

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

span{
    color: var(--main-color);
}

.logo span{
    color: var(--main-color);
}

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

.home-img{
    border-radius: 50%;
}

.home-img img{
    position: relative;
    border-radius: 50%;
    width: 32vw;
    box-shadow: 0 0 25px var(--main-color);
    cursor: pointer;
    transition: 0.4s ease-in-out;
}

.home-img img:hover{
    box-shadow: 0 0 50px var(--main-color),
    0 0 100px var(--main-color)
}

.home-content p{
    font-size: 1.8rem;
    font-weight: 500;
}

.socials a{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background: transparent;
    border: 0.2rem solid var(--main-color);
    font-size: 2rem;
    border-radius: 50%;
    color: var(--main-color);
    margin: 3rem 1.5rem 3rem 0;
    transition: 0.4s ease-in-out;
}

.socials a:hover{
    color: aliceblue;
    transform: scale(1.3)translateY(-5px);
    background-color: var(--main-color);
    box-shadow: 0 0 25px var(--main-color);
}

.btn{
    display: inline-block;
    padding: 1rem 2.8rem;
    background: var(--bg-color);
    border-radius: 4rem;
    font-size: 1.6rem;
    color: var(--main-color);
    border: 2px solid var(--main-color);
    letter-spacing: 3px;
    font-weight: 600;
    transition: 0.4s ease-in-out;
    cursor: pointer;
}

.btn:hover{
    transform: scale(1.05);
    background: var(--main-color);
    color: var(--text-color);
    border: 2px solid var(--main-color);
    box-shadow: 0 0 25px var(--main-color);
}

.animated-text{
    font-size: 42px;
    font-weight: 600;
    min-width: 280px;
    margin: 10px 0;
}

.animated-text span{
    position: relative;
}

.animated-text span::before{
    content: "Web Developer";
    color: var(--main-color);
    animation: words 20s infinite;
}

.animated-text span::after{
    content: "";
    background-color: var(--bg-color);
    position: absolute;
    width: calc(100% + 8px);
    height: 100%;
    border-left: 3px solid var(--bg-color);
    right: -8px;
    animation: cursor 0.6s infinite, typing 20s steps(14) infinite;
}

@keyframes cursor{
    to{
        border-left: 2px solid var(--main-color);
    }
}

@keyframes words{
    0%, 
    20%{
        content: "Web Developer.";
    }
    21%,
    40%{
        content: "Web Designer.";
    }
    41%,
    60%{
        content: "Student.";
    }
    61%,
    80%{
        content: "Copywriter.";
    }
    81%,
    100%{
        content: "People's choice!";
    }
}

@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);
    }
}

.heading{
    text-align: center;
    font-size: 8rem;
}

.services{
    background-color: var(--second-color);
}

.services h2{
    margin-bottom: 8rem;
}

.service-container{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 3rem;
}

.service-container .services-box{
    flex: 1 1 40rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--second-color);
    padding: 3rem 2rem 4rem;
    height: 550px;
    border-radius: 2rem;
    border: 3px solid var(--main-color);
    cursor: pointer;
    transition: 0.4s ease-in-out;
}

.service-container .services-box:hover{
    transform: scale(1.02);
    background-color: aliceblue;
    color: black;
}

.services-box i{
    font-size: 7rem;
    color: var(--main-color);
    margin-bottom: 1rem;
}

.services-box h3{
    font-size: 2.6rem;
}

.services-box p{
    font-size: 1.6rem;
    margin: 1rem 0 3rem;
    font-weight: 500;
}


.services-box .btn{
    background-color: transparent;
}

.services-box .btn:hover{
    color: var(--main-color);
    background-color: black;
}

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

::-webkit-scrollbar-thumb{
    background-color: var(--main-color);
}

::-webkit-scrollbar-track{
    background-color: var(--bg-color);
    width: 50px;
}


.projects{
    background: var(--bg-color);
}

.projects h2{
    margin-bottom: 8rem;
}

.projects-container{
    display: grid;
    grid-template-columns: repeat(3,1fr);
    align-items: center;
    gap: 2.5rem;
}

.projects-container .projects-box{
    position: relative;
    height: 550px;
    overflow: hidden;
    display: flex;
    border-radius: 2rem;
    border: 3px solid transparent;
    transition: 0.4s ease-in-out;
}

.projects-box:hover{
    border: 3px solid var(--main-color);
}

.projects-box img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s ease-in-out;
}

.projects-box:hover img{
    transform: scale(1.05);
}

.projects-box .projects-info{
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    gap: 1rem;
    padding: 0 4rem;
    cursor: pointer;
    transition: 0.5s ease-in-out;
    backdrop-filter: grayscale(100%);
}

.projects-box .projects-info:hover{
    background: rgba(0, 0, 0, 0.522);
    backdrop-filter: grayscale(0%);
}

.projects-info h4{
    font-size: 4rem;
    color: var(--main-color);
    font-weight: 800;
}

.projects-info p{
    font-size: 1.6rem;
    margin: 0.3rem 0 1rem;
    color: var(--main-color);
}

.see-more-container {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.see-more{
    margin-top: 3rem;
}

.contact{
    background-color: var(--second-color);
}

.contact h2{
    margin-bottom: 3rem;
}

.contact form{
    max-width: 70rem;
    margin: 1rem auto;
    text-align: center;
    margin-bottom: 3rem;
}

.contact form .input-box{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
}

.contact form .input-box input,
.contact form textarea{
    width: 100%;
    padding: 1.5rem;
    font-size: 1.6rem;
    color: var(--text-color);
    background: var(--bg-color);
    border: 2px solid var(--main-color);
    border-radius: 0.8rem ;
    margin: 1rem 0;
    resize: none;
}

.contact form .btn{
    margin-top: 2rem;
}

.footer{
    position: relative;
    bottom: 0;
    width: 100%;
    padding: 40px 0;
    background-color: var(--bg-color);
}

.footer .socials{
    text-align: center;
    padding-bottom: 25px;
    color: aliceblue;
}

.footer ul{
    margin-top: 0;
    padding: 0;
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 0;
    text-align: center;
}

.footer ul li{
    display: inline-block;
    padding: 0 15px;
}

.footer ul li a{
    color: aliceblue;
    border-bottom: 3px solid transparent;
    transition: 0.4s ease-in-out;
}

.footer ul li a:hover{
    border-bottom: 3px solid var(--main-color);
    color: var(--main-color);
}

.footer .copyright{
    margin-top: 50px;
    text-align: center;
    font-size: 16px;
    color: var(--main-color);
}

/* 
.skills{
    background: var(--second-color);
}

.skills .skills-content .section-title{
    text-align: center;
    font-size: 2.6rem;
    margin-top: 2rem;
}

.skills .skills-content  .section-text{
    text-align: center;
    font-size: 1.8rem;
    margin-top: 2rem;
}

.skills .skills-content .tabs {
    width: 100%;
    padding: 3rem 9%;
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 2.6rem;
}

.skills-box,
.tools-box{
    width: 50%;
    border: 2px solid var(--main-color);
}

.skills-tools-container{
    display: grid;
    grid-template-columns: repeat(3,1fr);
    align-items: center;
    gap: 2.5rem;
}

.skills-tools-container .skills-box{
    height: 100%;
    overflow: hidden;
    display: flex;
    border: 3px solid transparent;
    transition: 0.4s ease-in-out;
}

.skills-tools-container .tools-box{
    height: 100%;
    overflow: hidden;
    display: flex;
    border: 3px solid transparent;
    transition: 0.4s ease-in-out;
    margin-left: 75rem;
}

.skills-box .skills-list .skill-card .tooltip,
.tools-box .tools-list .tool-card .tooltip{
    font-size: 1.6rem;
    margin-bottom: 3rem;
} */

@media (max-width: 1200px) {
    html{
        font-size: 55%;
    }
    .projects-container{
        padding-bottom: 7rem;
        grid-template-columns: repeat(1, 1fr);
        margin: 0 3rem;
    }
    
}

@media (max-width: 1000px) {
    header{
        padding: 2rem 3%;
    }
    section{
        padding: 10rem 3% 2rem;
    }
    .services{
        padding-bottom: 7rem;
    }
    .footer{
        padding: 2rem 3%;
    }
}

@media (max-width: 995px) {
    #menu-icon{
        display: block;
    }
    .navbar{
        position: absolute;
        top: 100%;
        right: 0;
        width: 50%;
        border-left: 3px solid var(--main-color);
        border-bottom: 3px solid var(--main-color);
        padding: 1rem 3%;
        background: rgb(25,25,25);
        display: none;
    }
    .navbar.active{
        display: block;
    }
    .navbar a{
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
    }
    .home{
        flex-direction: column;
        margin: 5rem 4 rem;
    }
    .home-content h3{
        font-size: 2.6rem;
    }
    .home-content h1{
        font-size: 5rem;
    }
    .home-img img{
        width: 70vw;
        margin-top: 4rem;
    }
    .services-box{
        margin: 0 5rem;
    }
    .services h2{
        margin-bottom: 3rem;
    }
    .projects h2{
        margin-bottom: 3rem;
    }
}