::selection {
    background-color: #b8b8b8;
}

html {
    scroll-behavior: smooth;
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
}

body,html {
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

body {
    background: #131313;
    color: #ddd;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

div {
    display: block;
    unicode-bidi: isolate;
}

#heading {
    display: flex;
}

#navbar {
    padding: 30px 0;
    color: #ddd;
    width: 100%;
    display: flex;
    justify-content: center;
}

#navbar .item {
    font-weight: 800;
    padding: 10px 0;
    margin: 0 30px;
    font-family: 'Alegreya Sans SC', sans-serif;
    font-size: 18px;
    transition: 0.5s;
}

#navbar .item i {
    margin-right: 10px;
    
}

#navbar .item.active {
    color: #fff;
    border-bottom: solid 2px #fff;
}

@media only screen and (max-width: 600px) {
    #navbar {
        padding:15px 0;
    }

    #navbar .item {
        padding: 10px 0;
        margin: 0 15px;
    }
}

@media only screen and (max-width: 500px) {
    #navbar .nav-icon {
        display: none;
    }
}

.section-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-wrapper section {
    max-width: 600px;
    padding: 10px;
}

.section-wrapper hr {
    margin-top: 16px;
    border-style: dashed;
}

.skills-container {
    padding-top: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    max-width: 600px; /* Ensures the icons don't stretch too wide */
}

.skill {
    font-size: clamp(16px, 4vw, 28px); /* Dynamic sizing for responsiveness */
    transition: transform 0.1s ease-in-out;
    cursor: pointer;
    padding: 2px;
}

.skill:hover {
    transform: scale(1.3);
}

/* Adjustments for smaller screens */
@media only screen and (max-width: 600px) {
    .skills {
        gap: 10px;
    }

    .skill {
        font-size: clamp(20px, 8vw, 35px);
    }
}

#skill-text {
    position: relative;
    text-align: center;
    width: 100%;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    font-size: 2.4rem;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.25);
    cursor: default;
    display: flex;
    flex-direction: column; /* Stacks name and stars */
    align-items: center; /* Centers text and stars */
    gap: 4px; /* Adds spacing between name and stars */
}

#skill-name {
    font-size: 2.4rem;
    font-weight: bold;
}

#skill-stars {
    font-size: 2rem;
}


#wrapper {
    font-family: "Noto Sans Mono", monospace;
    font-weight: 300;
    padding: 40px 0;
    margin: 0 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
}

.page-content {
    max-width: 800px;
    
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

.link {
    color: #ddd;
    text-decoration: none;
    padding-bottom: 4px;
    font-size: 1em;
    font-weight: 700;
    transition: 0.5s;
}

.link:hover {
    color: #fff;
}

footer {
    font-family: "Roboto", sans-serif;
    font-size: .85em;
    line-height: 1.4em;
    color: #777;
    text-align: center;
    padding-top: 60px;
    padding-bottom: 20px;
}

footer .link {
    color: #c4c4c4;
    font-weight: 400;
    padding-bottom: 1px;
    border-bottom: none;
}