body {
    margin: 0;
}

.body__container {
    padding-top: 100px;
    padding-bottom: 100px;
    width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.heading__container {
    display: flex;
    justify-content: flex-start;
}

.heading_portrait {
    height: 17rem;
    width: 17rem;
    object-fit: cover;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.heading_details {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-left: 2rem;
    padding-right: 2rem;
}

.heading__name {
    margin-bottom: 0;
    font-size: 1.8rem;
}

.heading__title {
    margin: 0;
    margin-top: 5px;
    font-size: 1rem;
}

.heading__description {
    font-size: 2rem;
    text-align: left;
    margin: 0;
    font-weight: 700;
    /* max-width: 600px; */
}

.heading__description span {
    background: -webkit-linear-gradient(0deg, #00e1ff, #ffa3c6, #ffffff, #ffa3c6, #00e1ff);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: .5px var(--color-text-primary);
    text-decoration: none;
}

:root.dark .heading__description span {
    background: -webkit-linear-gradient(0deg, #00e1ff, #ffa3c6, #ffffff, #ffa3c6, #00e1ff);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 0px #000;
    text-decoration: none;
}

.heading__subdescription {
    font-size: 1.2rem;
    margin-bottom: 0;
}

a.ninja-link {
    color: var(--color-highlight);
    text-decoration: none;
}

a.ninja-link:hover {
    text-decoration: underline;
}

.projects-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.navigation {
    list-style: none;
    padding: 0;
    margin: 0;
}

.navigation li button {
    background-color: var(--color-navbtn-base);
    border: none;
    color: var(--color-text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 10px 20px;
    border-radius: 5px;
    width: 100%;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.navigation li button span {
    font-weight: normal !important;
}

.nav-btn:hover {
    background-color: var(--color-navbtn-base-hover);
    color: var(--color-text-primary);
}

.nav-btn.active-btn {
    background-color: var(--highlight-color);
    color: var(--highlight-text-color);
    font-weight: bold;
    border-left: 4px solid var(--accent-color);
    transition: all 0.3s ease;
    pointer-events: none;
}

.nav-btn.active-btn span {
    color: var(--highlight-text-color);
    transition: all 0.3s ease;
}

.content {
    flex: 1 1 auto;
    min-height: 50vh;
    max-width: 930px;
}

.content-section {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    display: none; /* Hidden by default */
}

.content__container {
    height: 100%;
}

.content-section.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.contentroot {
    margin-top: 20px;
    display: flex;
    gap: 20px;
    align-items: stretch;
    flex-direction: row;
    width: 100%;
}

.sidebar {
    width: 250px;
    flex-shrink: 0;
}

.skills__container {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.trained-tools__container {
    display: flex;
    gap: 2px;
}

.trained-tools__item {
    width: 30px;
    height: 30px;
    transition: transform 0.2s ease;
}

.trained-tools__item:hover {
    transform: scale(1.2);
    transition: transform 0.2s ease;
}

.trained-tools__item svg {
    width: 100%;
    height: 100%;
}

.trained-tools__item img {
    width: 100%;
    height: 85%;
    object-fit: contain;
    margin: 7.5% 0;
}

.custom-tooltip {
    position: fixed;
    background-color: #333;
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, -100%);
    transition: opacity 0.2s ease;
    z-index: 9999;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
}

.home__content div {
    margin-bottom: 20px;
}

.experience-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contactme__content form {
    width: 100%;
    text-align: center;
}

.contactme__content form textarea {
    resize: none;
    min-height: 500px;
    height: 500px;
}

.contactme__content form input, 
.contactme__content form textarea {
    width: 100%;
    padding: .7rem 1.5rem;
    font-size: 18px;
    color: var(--color-text-primary);
    background-color: var(--color-base-alt);
    border-radius: 10px;
    border: 2px solid transparent;
    margin-bottom: 1rem;
}

.contactme__content form button {
    background-color: var(--highlight-color);
    color: var(--highlight-text-color);
    border: none;
    padding: 1rem 2rem;
    font-size: 18px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.aboutme__content p {
    font-size: 1.5rem;
}

.introduction {
    font-size: 1.5rem;
}

.journey-nav-btn {
    display: unset;
}

.footer-login-btn, .footer-dashboard-btn {
    position: absolute;
    left: 30px;
    bottom: 40px;
}

@media (max-width: 1300px) {

    .journey-nav-btn {
        display: none;
    }

    .body__container.scroll-at-top .contentroot {
        opacity: 0;
        visibility: hidden;
        max-height: 0px;
        transition: max-height 1s ease;
    }

    .body__container.scroll-at-top .heading_portrait {
        height: 90vw;
        width: 90vw;
        transition: all 1s ease;
    }

    .heading__container .heading_portrait {
        height: 17rem;
        width: 17rem;
        transition: all 1s ease;
    }

    .body__container.scroll-at-top {
        height: 95vh;
        margin-bottom: 5vh;
        /* justify-content: center; */

        /* make top padding equal to half of the y size of contentroot */

        /* padding-top: 0px; */
        transition: all 1s ease;
    }

    .contentroot {
        flex-direction: column-reverse;
        align-items: stretch;
        gap: 0px;
        transition: all 1s ease;
    }

    .navigation li button {
        box-shadow: 0 0 30px rgba(0, 0, 0, 0.4);
    }

    .content {
        background-color: var(--color-base);
        padding-bottom: 50px;
        
        min-height: 0px;
    }

    .sidebar {
        width: unset;
        flex-shrink: 0;
    }

    .body__container {
        width: 100%;
        padding-top: 0px;
        padding-bottom: 0px;
        transition: all 1s ease;
        justify-content: center;
    }

    .heading {
        /* margin: auto 0; */
        margin-top: 100px;
        padding: 0;
        /* transition: all 1s ease; */
    }

    .heading__container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        transition: all 1s ease;
    }

    .heading_details {
        align-items: center;
    }

    .heading__name {
        text-align: center;
        font-size: 1.3rem;
    }

    .heading__description {
        text-align: center;
        font-size: 1.6rem;
        margin-top: 5px;
        margin-bottom: 10px;
        /* max-width: 300px; */
    }

    .heading__subdescription {
        margin-bottom: 5px;
    }

    .heading__title {
        margin-bottom: 20px;
    }

    .skills__container h3 {
        display: none;
    }

    .aboutme__content p {
        font-size: 1.2rem;
    }

    .introduction {
        font-size: 1.2rem;
    }

    .contactme__content form input, 
    .contactme__content form textarea {
        width: 100%;
    }

}
