* {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {

    background-color: rgb(0, 0, 33);
    color: white;
}

.vertical-text br {
    display: none;
}

nav {
    display: flex;
    justify-content: space-around;
    text-align: center;
    /* height: 80px; */
    background-color: rgb(18, 18, 62);
    padding: 20px 0px;
}

nav ul {
    display: flex;
    justify-content: center;
}

nav ul li {
    list-style: none;
    margin: 0 23px;
}

nav ul li a {
    text-decoration: none;
    color: white;
    font-size: 1.4rem;
    padding: 12px 12px;
    border-radius: 7px;
    transition: 0.5s;
}

nav ul li a:hover {
    color: purple;
    background-color: rgb(208, 208, 226);

}

.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 250px;
    z-index: 999;
    background-color: rgba(18, 18, 62, 0.273);
    backdrop-filter: blur(10px);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    margin: 0 0;
}

.sidebar.active {
    transform: translateX(0);
}

.sidebar li {
    width: 100%;
    margin: 22px 0;
}

.sidebar a {
    width: 100%;
}

.menu-button {
    display: none;
}

main hr {
    border: 0;
    background-color: #9c97f1;
    height: 1.2px;
    margin: 60px 84px;
}

.left {
    font-size: 2.0rem;
    color: rgb(170, 107, 228);
}

.left .logo {
    border: 4px solid rgb(142, 130, 130);
    border-radius: 7px;
    color: rgb(196, 192, 192);
    font-size: 1.8rem;
    padding: 7px 7px;
    position: relative;
    top: -1px;
    left: -12px;


}

#home {
    display: flex;
    justify-content: space-around;
    margin: 20px 0;
    align-items: center;
    margin: 110px 0;
    flex-wrap: wrap;

}

#home>div {
    width: 30%;
}

.leftSection {
    flex-basis: 40%;
    font-size: 3rem;
    margin: 30px 0;
}

button {
    padding: 50px 0;
    padding: 12px;
    background-color: #1e2167;
    color: white;
    border: 2px solid white;
    border-radius: 6px;
    font-size: 20px;
    cursor: pointer;

    &:hover {
        background-color: rgb(209, 106, 209);
    }
}

#element {
    color: rgb(170, 107, 228);
}

.rightSection img {
    border-radius: 100%;
    flex-basis: 50%;
    width: 100%;
}

/* #about {
    height: 90vh;
} */

.row {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.left-col {
    flex-basis: 35%;

}

.left-col img {
    width: 80%;
    border-radius: 15px;
}

.right-col {
    flex-basis: 60%;
}

.right-col h1 {
    font-size: 3rem;

}

.right-col p {
    font-size: 1.5rem;
    padding-right: 12px;
}


.leftSection span {
    color: rgb(170, 107, 228);
}

.purple {
    color: rgb(170, 107, 228);

}

.tab-titles {
    display: flex;
    margin: 20px 0 40px;
}

.tab-links {
    margin-right: 50px;
    padding: 2px 4px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    transition: transform 0.3s;

    &:hover {
        color: purple;
        transform: scale(1.05);
    }


}

.tab-links::after {
    content: '';
    width: 0;
    height: 3px;
    background-color: rgb(170, 107, 228);
    position: absolute;
    left: 0;
    bottom: -8px;
    transition: 0.5s;
}

.tab-links.active-link {
    color: rgb(224, 136, 225);
}

.tab-links.active-link::after {
    width: 50%;

}

.tab-contents ul li {
    list-style: none;
    margin: 10px 0;
    font-size: 22px;
}


.tab-contents {
    display: none;
}

.tab-contents.active-tab {
    display: block;
}

.skills-section {
    max-width: 500px;
    margin: 20px 0;
}

.skill-titles,
.date {
    font-size: 22px;
    font-weight: 500px;
    color: rgb(224, 136, 225);
}

.code-logo {
    width: 32px;
    position: relative;
    top: 4px;
    left: -2px;
}

.school-titles {
    font-size: 16px;
    color: gray;
}

.skill-bar {
    background-color: #333;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}

.skill-level {
    height: 15px;
    line-height: 15px;
    background-color: rgb(170, 107, 228);
    color: rgb(10, 251, 34);
    text-align: right;
    padding-right: 10px;
    border-radius: 10px 0 0 10px;
    transition: width 1s ease-in-out;
}

#projects {
    margin-bottom: 20vh;
    color: white;
}

#projects h1 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 2.5rem;
}

#projects h2 {
    text-align: center;
    margin-bottom: 40px;

}

.project-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.boxes {
    border: 2px solid white;
    width: 300px;
    height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.05);
    /* Optional styling */
    transition: transform 0.3s;
}

.boxes:hover {
    transform: scale(1.05);
}

.boxes img {
    width: 60%;
    height: auto;
    margin-bottom: 10px;
}


#contact-me {
    max-width: 80vw;
    margin: auto;
    height: 80vh;
}

#contact-me h1 {
    font-size: 2rem;
}

.contact-left {
    flex-basis: 35%;

}

.contact-right {
    flex-basis: 60%;

}

.contact-left p {
    margin: 15px 0;
}

.contact-left p i {
    color: #1e2167;
    margin-right: 15px;
    font-size: 25px;
}

.social-icons a {
    text-decoration: none;
    font-size: 30px;
    margin-right: 15px;
    color: #ababab;
    display: inline-block;
    transition: transform 0.5s;
}

.social-icons a:hover {
    color: #ff004f;
    transform: translateY(-3px);
}

.contact-right form {
    width: 100%;
}

form input,
form textarea {
    width: 100%;
    border: 0;
    outline: none;
    padding: 15px;
    margin: 15px;
    background-color: #0e0e1a;
    color: #fff;
    font-size: 18px;
    border-radius: 6px;

    &:hover {
        background-color: white;
        color: #0e0e1a;
    }
}

form button {
    padding: 14px 60px;
    font-size: 18px;
    margin-top: 20px;
}


footer {
    background-color: #0e0e1a;
    display: flex;
    padding: 23px 22px;
    justify-content: space-evenly;
    text-align: center;
}

footer>div {
    width: 223px;
}


@media (max-width: 800px) {
    .hideOnMobile {
        display: none;
    }

    .menu-button {
        display: block;
    }

    .leftSection {
        margin-bottom: 10px;
    }

    .leftSection .vertical-text {
        writing-mode: vertical-rl;
        font-size: 2.0rem;

    }

    .vertical-text br {
        display: block;
    }
}


@media (max-width: 400px) {
    .sidebar {
        width: 100%;
    }

}