* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

#sidebar {
    width: 170px;
    height: 100vh;
    background-color: #2c3e50;
    color: white;
    position: fixed;
    z-index: 10;
    top: 0;
    left: -170px;
    /* Hide by default */
    transition: 0.4s ease-out;
    padding-top: 20px;
}

#sidebar a {
    display: block;
    padding: 15px;
    text-decoration: none;
    color: white;
}

#sidebar a:hover {
    background-color: #34495e;
}

#openBtn {
    position: fixed;
    top: 0;
    z-index: 5;
    padding: 15px 7px;
    background-color: #2c3e50;
    color: white;
    border: none;
    cursor: pointer;
}

#closeBtn {
    margin-left: 20px;
    margin-bottom: 20px;
    padding: 10px;
    background-color: red;
    color: white;
    border: none;
    cursor: pointer;
}


nav {
    background-color: rgb(236, 236, 236);
    padding: 10px;
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

nav h1 {
    color: white;
    font-family: "Caprasimo", serif;
    font-weight: 400;
    font-style: normal;
    animation: nav 1.5s ease forwards;
    background-image: url(neon.jpg);
    background-size: cover;
    background-position: center;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    opacity: 0;
}

@keyframes nav {
    100% {
        transform: rotate(360deg) scale(1.1);
        opacity: 1;
    }
}

header {
    background-color: rgb(114, 198, 225);
    height: 70vh;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    overflow: hidden;

}

header h1,
header p {
    color: red;
    font-family: 'Poppins', sans-serif;
    transform: translateX(100vw);
    animation: heading 1.5s ease forwards;

}

@keyframes heading {
    100% {
        transform: translateX(0) scale(1.1);
        color: rgb(0, 0, 0);
    }
}

.aboutme {
    margin: 7%;
    padding: 100px 30px;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

.aboutme img {
    height: 200px;
    border: 0;
    border-radius: 50%;
}

.aboutme h1,
.aboutme h2,
.aboutme p {
    color: rgb(0, 0, 0);
    font-family: 'Poppins', sans-serif;
}

.details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.skills {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding-top: 40px;
}

.skills section {
    width: 620px;
    margin: auto;
    background-color: #ffffff;
    display: grid;
    grid-template-columns: 120px 120px 120px;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 50px 30px;

}


.skills section div {
    background-color: black;
    width: 120px;
    height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all .3s ease;
}

.skills section div:hover {
    transform: scale(1.1);
}

.skills section div p {
    color: white;
    font-family: 'Poppins', sans-serif;
}

.skills img {
    width: 60px;
}

.work {
    margin: 7%;
    padding: 100px 50px;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

.work h1,
.work li,
.work p {
    color: rgb(0, 0, 0);
    font-family: 'Poppins', sans-serif;


}

.worklinks a {
    color: white;
    text-decoration: none;
    border: 0;
    border-radius: 30px;
    padding: 10px 15px;
    background-color: black;
    transition: all .3s ease;
}

.worklinks a:hover {
    transform: translateY(-4px) scale(1.1);
    background-color: rgb(62, 180, 137);
    color: black;
}

.worklinks {
    display: flex;
    gap: 40px;
    padding: 20px;

}


footer {
    background-color: black;
    padding: 30px;
    height: 70vh;
}

footer h1,
footer p {
    color: white;
    font-family: 'Poppins', sans-serif;

}

footer div {
    display: flex;
    gap: 15px;
}

footer img {
    height: 20px;
    transition: all .3s ease;
}

footer img:hover {
    transform: scale(1.1);
}


.animate {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.5s ease-out;
}

.animate-in {
    opacity: 1;
    transform: translateY(0);
}

@media only screen and (max-width:720px) {

    .skills section {
        width: 320px;
        display: grid;
        grid-template-columns: 120px 120px;
    }
}