/* page sizing */
* {
    box-sizing: border-box;
}
/* header */
header{
    background-color: #111014;

    position: fixed;
    top: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 100;
}
    /* top banner */
.top_banner {
        width: 100vw;
        max-width: 100vw;
        height: auto;
        margin: 0 auto;
        text-align: center;
        overflow: hidden;
        display: block;
    }


    /* banner image */
.top_banner img {
        width: 100vw;
        max-width: 2172px;
        height: auto;
        display: block;
    }


    /* navbar */
.navbar, 
.has-sub_projects button,
.has-sub_projects span  {
        width: 100vw;
        max-width: 100vw;
        background-color: black;

        height: 6vh;
        max-height: 6vh;
        border-top: 2px solid #B52CFF;
        border-bottom: 2px solid #B52CFF;
        margin: 0;
        padding: 0;
        display: block;
    }


    /* navbar list */
.navbar ul {
        display: flex;
        list-style-type: none;
        background-color: black;
        padding: 0px;
        margin: 0px;
        justify-content: center;
    }


    /* dropdown parent */
.has-sub_projects {
        position: relative;
    }



    /* navbar links */
.navbar a ,
.has-sub_projects button,
.has-sub_projects span {
    font-size: 15px;
    color: aliceblue;
    text-decoration: none;
    padding: 15px 40px;
    display: block;
    text-align: center;
    width: 100%; 
    }


    /* navbar hover */
.navbar a:hover,
.has-sub_projects:hover > button,
.has-sub_projects:hover > span {
    background-color: #603BA6;
}


    /* dropdown menu */
.navbar .sub_projects {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: black;
        z-index: 900;
        min-width: 100%;
        padding: 0;
        margin: 0;
    }
.has-sub_projects button,
.has-sub_projects span {
    cursor: pointer;
    background: none; 
    border: none;
    font: inherit;
    font-size: 15px;    
    color: aliceblue;   
    margin: 0;
    outline: none; /* 👈 ADD THIS LINE TO REMOVE THE WHITE OUTLINE */
}


/* dropdown hover */
.has-sub_projects:hover .sub_projects {
    display: flex;
    flex-direction: column;
}


/* main content */
main {
    padding-top: var(--header-height);
}
/* page body */
body {
    margin: 0px;
    min-height: 100%;
}


/* dropdown links */
.sub_projects a {
    padding: 15px 20px;
    white-space: nowrap;
}

html, body{
    min-height: 100%;
}


/* software box */
.software_box {
    position: absolute;
    top: 53%;
    left: 78%;
    transform: translate(-50%, -50%);

    width: 48rem;
    min-height: 27rem;
    height: auto;

    border: 2px solid #ae4ff7;
    border-top: 30px solid #ae4ff7;
    z-index: 10;
    padding: 20px;
    box-sizing: border-box;
}


/* window buttons */
.sw-btn {
    width: 20px;
    height: 20px;
    background-color: black;
    position: absolute;
    top: -25px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-sizing: border-box;
}


/* button positions */
.sw-close { right: 5px; }
.sw-maximize { right: 30px; }
.sw-minimize { right: 55px; }


/* minimize icon */
.sw-minimize::before {
    content: "";
    width: 10px;
    height: 2px;
    background-color: #ae4ff7;
    position: absolute;
    bottom: 4px;
}


/* maximize icon */
.sw-maximize::before, .sw-maximize::after {
    content: "";
    border: 1.5px solid #ae4ff7;
    position: absolute;
    box-sizing: border-box;
    background-color: black;
}


.sw-maximize::before { width: 9px; height: 9px; top: 3px; right: 3px; }
.sw-maximize::after { width: 9px; height: 9px; bottom: 3px; left: 3px; }


/* close icon */
.sw-close::before, .sw-close::after {
    content: "";
    position: absolute;
    width: 12px;
    height: 2px;
    background-color: #ae4ff7;
}


.sw-close::before { transform: rotate(45deg); }
.sw-close::after { transform: rotate(-45deg); }


/* button hover */
.sw-btn:hover { background-color: #ae4ff7; }
.sw-btn:hover::before, .sw-btn:hover::after { background-color: black; border-color: black; }


/* window title */
.sw-title {
    position: absolute;
    top: -26px;
    left: 8px;
    color: black;
    font-family: monospace;
    font-size: 1rem;
    font-weight: bold;
    user-select: none;
}


/* terminal row */
.sw-text-one { color: aliceblue; position: absolute; top: 5px; left: 2.5rem; font-size: 1rem; margin: 0; }
.sw-text-two { color: #00FF00; position: absolute; top: 5px; left: 17rem; font-size: 1rem; margin: 0; }
.sw-text-three { color: #FFA500; position: absolute; top: 5px; left: 18.5rem; font-size: 1rem; margin: 0; }
.sw-text-four { color: #D3D3D3; position: absolute; top: 5px; left: 38rem; font-size: 1rem; margin: 0; }


/* loading text */
.sw-text-five {
    color: #D3D3D3;
    position: absolute;
    top: 40px;
    left: 6.65%;
    font-size: 1.1rem;
    margin: 0;
}


/* progress rows */
.progress-container,
.progress-container-two,
.progress-container-three {
    position: absolute;
    left: 6.65%;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0;
    width: 90%;
    background-color: transparent;
    padding: 0;
}


/* progress positions */
.progress-container       { top: 90px; }
.progress-container-two   { top: 135px; }
.progress-container-three { top: 180px; }


/* progress bars */
.progress-bar, .progress-bar-two, .progress-bar-three {
    width: 150px;
    height: 14px;
    background-color: #e0e0e0;
    border-radius: 25px;
    margin: 0;
    overflow: hidden;
    order: 2;
    flex-shrink: 0;
}


/* progress fill */
.progress-bar::before, .progress-bar-two::before, .progress-bar-three::before {
    content: "";
    display: block;
    height: 100%;
    background-color: #4caf50;
    border-radius: 25px;
}


/* fill amounts */
.progress-bar::before { width: 70%; }
.progress-bar-two::before { width: 40%; }
.progress-bar-three::before { width: 90%; }


/* progress labels */
.sw-text-six, .sw-text-seven, .sw-text-eight {
    color: #D3D3D3;
    font-size: 1rem;
    margin: 0;
    white-space: nowrap;
    order: 1;
    width: 200px;
    flex-shrink: 0;
}


/* smaller screens */
@media (max-width: 1600px) {


    body {
        overflow-x: hidden !important;
    }


    .top_banner {
        width: 100% !important;
        height: auto !important;
    }

    .navbar ul {
        flex-direction: row !important;
        align-items: stretch !important;
        border-top: 0.25vh solid #B52CFF !important;
        border-bottom: 0.25vh solid #B52CFF !important;

    }


    .navbar a {
        padding: 15px 40px !important;
        text-align: left !important;
    }


    .navbar .sub_projects {
        position: absolute !important;
        flex-direction: column !important;
        top: 0 !important;
        left: 0 !important;
        margin-top: 36.5%;
    }


    .software_box {
        position: absolute !important;
        top: 25% !important;
        left: 45% !important;
        transform: none !important;
        width: 92% !important;
        max-width: 48rem;


        height: auto !important;
        min-height: 27rem !important;


        margin-top: 40px !important;
        margin-bottom: 40px !important;
        margin-left: 20px !important;
        margin-right: auto !important;

        padding: 20px !important;
        padding-bottom: 40px !important;
        box-sizing: border-box !important;
    }


    .sw-close, .sw-maximize, .sw-minimize {
        display: none !important;
    }


    .sw-text-one, .sw-text-two, .sw-text-three, .sw-text-four, .sw-text-five {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        display: block !important;
        margin: 10px 0 !important;
    }


    .sw-text-one, .sw-text-two, .sw-text-three, .sw-text-four {
        display: inline-block !important;
        margin-right: 12px !important;
        margin-bottom: 10px !important;
    }


    .sw-text-five {
        margin-bottom: 25px !important;
    }


    .progress-container,
    .progress-container-two,
    .progress-container-three {
        position: relative !important;
        top: auto !important;
        left: auto !important;

        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 0 !important;

        background-color: transparent !important;
        padding: 0 !important;
        margin: 15px 0 !important;
        width: 100% !important;
    }


    .progress-bar, .progress-bar-two, .progress-bar-three {
        position: relative !important;
        top: auto !important;
        left: auto !important;

        width: 150px !important;
        height: 14px !important;
        background-color: #e0e0e0 !important;
        border-radius: 25px !important;
        margin: 0 !important;
        overflow: hidden !important;

        order: 2 !important;

        flex-shrink: 0 !important;
    }


    .progress-bar::before, .progress-bar-two::before, .progress-bar-three::before {
        content: "" !important;
        display: block !important;
        height: 100% !important;
        background-color: #4caf50 !important;
        border-radius: 25px !important;
    }


    .progress-bar::before { width: 70% !important; }
    .progress-bar-two::before { width: 40% !important; }
    .progress-bar-three::before { width: 90% !important; }


    .sw-text-six, .sw-text-seven, .sw-text-eight {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        display: block !important;
        margin: 0 !important;
        color: #D3D3D3 !important;
        font-size: 0.95rem !important;
        white-space: nowrap !important;

        order: 1 !important;

        width: 200px !important;
        flex-shrink: 0 !important;
    }


}

.blog-layout-wrapper > nav {
    position: fixed;
    width: 25%;
    max-width:25%;
    margin-top: 11.75%;
    height: calc(100vh - 11.75vw);
}

/* 2. Update your sidebar to fill that nav container completely */
.b-blog-sidebar {
    width: 100%;
    max-width: 100%;
    background-color: #491f92; 
    flex-direction: column;
    height: 100%;
    max-height: 100%;
    z-index: 50;
    overflow-y: auto; 
}

/* 3. Ensure the list stacks vertically instead of smashing horizontally */
.b-blog-sidebar ul {
    display: flex;
    flex-direction: column;
    list-style-type: none;
    background-color: black;
    padding: 0px;
    margin: 0px;
}
.b-blog-sidebar ul li {
    width: 25vw;
    display: block;
    position: relative;
}

.b-blog-sidebar a {
        font-size: 15px;
        color: aliceblue;
        text-decoration: none;
        padding: 20px 15px;
        display: block;
        text-align: center;
    }


    /* navbar hover */
.b-blog-sidebar a:hover {
        background-color: #603BA6;
    }

/* Fix: Assign remaining space to your blog content */
.blog-main-content {
    flex: 1;
    padding: 20px;
}

/* about title */
.a_page_title{
    color: #e0e0e0;
    position: absolute;
    top: 25%;
    left: 3%;
}
.b-blog-layout{
    display: flex;
    align-items: stretch;
    width: 100%;
}

/* blog one */
.b-ai-blog-one,
.b-ai-blog-two,
.b-ai-blog-three,
.b-ai-blog-four,
.b-ai-blog-five,
.b-ai-blog-six,
.b-ai-blog-seven,
.b-ai-blog-eight,
.b-ai-blog-nine,
.b-ai-blog-ten {
    position: relative;    
    width: 100%;          
    background-color: #491f92;
    color: white;
    text-align: center;
    box-sizing: border-box;
    z-index: 50;
    scroll-margin-top: 20%;
}

.b-blog-link-one,
.b-blog-link-two,
.b-blog-link-three,
.b-blog-link-four,
.b-blog-link-five,
.b-blog-link-six,
.b-blog-link-seven,
.b-blog-link-eight,
.b-blog-link-nine,
.b-blog-link-ten {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.b-ai-blog-one:hover,
.b-ai-blog-two:hover,
.b-ai-blog-three:hover,
.b-ai-blog-four:hover,
.b-ai-blog-five:hover,
.b-ai-blog-six:hover,
.b-ai-blog-seven:hover,
.b-ai-blog-eight:hover,
.b-ai-blog-nine:hover,
.b-ai-blog-ten:hover {
    background-color: #8b3dff;
}

.b-ai-blog-one h3,
.b-ai-blog-two h3,
.b-ai-blog-three h3,
.b-ai-blog-four h3,
.b-ai-blog-five h3,
.b-ai-blog-six h3,
.b-ai-blog-seven h3,
.b-ai-blog-eight h3,
.b-ai-blog-nine h3,
.b-ai-blog-ten h3 {
    position: relative;
    z-index: 2;
    pointer-events: none;
    margin: 0;
    padding: 20px 10px;  
}
.b-content-bar-wrapper{
    position: relative;
    margin-top: 10%;
}
/* blog content */
.b-content-bar{
    position: absolute;
    left: 25%;
    background-color: #111014;
    color: #e8e8e8;
    width: 50%;
    max-width: 50%;
    min-height: 100%;
    border-right: 1px solid #ae4ff7;
    border-left: 3px solid #ae4ff7;
}

.b-content-selection-bar{
    position: relative;
    left: 0%;
    background-color: #1d1b22;
    color: white;
    width: 25%;
    height: 100%;
}
.b-content-bar{
    position: absolute;
    left: 25%;
    background-color: #111014;
    color: #e8e8e8;
    width: 50%;
    max-width: 50%;
    min-height: 100%;
    border-right: 1px solid #ae4ff7;
    border-left: 3px solid #ae4ff7;
}

.b-content-selection-bar{
    position: relative;
    left: 0%;
    background-color: #1d1b22;
    color: white;
    width: 25%;
    height: 100%;

}

/* blog post */
.blog-post {
    width: 90%;
    margin-top: 5%;
    margin-left: 5%;
    padding: 0px 0 100px;
    scroll-margin-top: 225px;

}


/* blog title */
.blog-post h1 {
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-family: 'Courier New', Courier, monospace;
    line-height: 1.1;
    margin-bottom: 40px;
    color: #ffffff;
    letter-spacing: -1px;
    text-align: center;
}


/* blog headings */
.blog-post h2 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-family: 'Courier New', Courier, monospace;
    margin-top: 70px;
    margin-bottom: 20px;

    color: #b56cff;

    border-left: 4px solid #8b3dff;
    padding-left: 15px;
}


/* blog paragraphs */
.blog-post p {
    font-size: 1.08rem;
    font-family: 'Courier New', Courier, monospace;
    margin: 0 0 22px;
    color: #d4d4d4;
}


/* bold text */
.blog-post strong {
    color: #ffffff;
    font-weight: 700;
}


/* inline code */
.blog-post code {
    font-family: Consolas, "Courier New", monospace;

    background: #17131f;
    color: #d59cff;

    padding: 2px 6px;
    border-radius: 4px;

    font-size: 0.95em;
}


/* code blocks */
.blog-post pre {
    background: #111116;

    border: 1px solid #29212f;
    border-left: 4px solid #8b3dff;

    border-radius: 8px;

    padding: 20px;
    margin: 30px 0;

    overflow-x: auto;
}


/* block code */
.blog-post pre code {
    background: none;
    padding: 0;
    color: #e5d7ff;

    font-size: 0.95rem;
}


/* quotes */
.blog-post blockquote {
    margin: 35px 0;
    padding: 18px 25px;

    background: #15111c;

    border-left: 4px solid #a855f7;

    color: #cfcfcf;

    font-style: italic;
}


/* links */
.blog-post a {
    color: #b56cff;
    text-decoration: none;
    border-bottom: 1px solid transparent;

    transition: 0.2s ease;
}


/* link hover */
.blog-post a:hover {
    color: #d0a2ff;
    border-bottom-color: #d0a2ff;
}


/* text selection */
.blog-post ::selection {
    background: #7c2ee8;
    color: white;
}


/* mobile */
@media (max-width: 700px) {

    .blog-post {
        width: 88%;
        padding-top: 45px;
    }

    .blog-post h1 {
        font-size: 2.3rem;
    }

    .blog-post h2 {
        margin-top: 50px;
        font-size: 1.6rem;
    }

    .blog-post p {
        font-size: 1rem;
        line-height: 1.75;
    }

    .blog-post pre {
        padding: 15px;
        font-size: 0.9rem;
    }
    .blog-post em {
        color: #b56cff;
        font-style: italic;
    }
}
