header {
    position: -webkit-sticky; /* Support for older Safari */
    position: sticky;
    top:0;
    z-index: 999;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    padding: 2rem;
    box-sizing: border-box;
    transition: all 0.4s ease;
}

h1{
    font-family: "Modak", system-ui;
    font-weight: 300;
    font-style: normal;
    color:white;
    font-size: clamp(1.2em, 5.5vw, 4.5em);
    -webkit-text-stroke: 1px black;
    letter-spacing:0.05em;
    line-height: 1;
    text-align: center;
    margin-bottom: 1rem;
    z-index: 2;
    padding-top: clamp(5px, 2vw, 30px);
    transition: all 0.5s ease;  
}

/* Switch main to standard top-to-bottom document flow */
body:has(#about:target) main {
    display: block;
    max-width: 900px;
    margin: 0 auto;
}

/* Left-align the title */
body:has(#about:target) h1 {
    text-align: left;
    padding-left: 17%;
}

body:has(#about:target) .badge {
    opacity: 1;
}

/* Shrink artboard and pin it into the upper right corner */
body:has(#about:target) .artboard {
    width: 8.5cqw;
    float: right;
    top: 0px;
    left:3%;
    margin: 0 0 1.5rem 1rem;
}

/* Make content visible with a smooth fade-in */
body:has(#about:target) .content {
    display: block;
    opacity: 1;
    animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Clear float after content */
.content::after {
    content: "";
    display: table;
    clear: both;
}

.site-container{
	position: relative;
    width: 95%;
    max-width: 1200px;
    margin:0 auto;
}
.title {
    position:inherit;
    top: 0;
    width: 100%;
    margin: 0 auto;
    z-index: 10;
}
.titleline { 
    position:relative;
    width: 100%; 
    border-bottom: 1px solid black;
    padding: 0;
}
.navbar {
    top: -16px;
    position: relative;
    padding: 0;
    width: 90%;
    height: clamp(1.6em, 5cqw, 35px);
    border-radius: 0 0 2cqw 2cqw;
    background: linear-gradient(rgb(185, 255, 255),rgb(125, 255, 255),rgb(185, 255, 255));
    left: 50%;
    transform: translateX(-50%);
    border:2px solid black;
    border-top:none;
    font-family:Lato,Arial,sans-serif;
}
.navbar ul {
    display:grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 50vw;
    gap:2vw;
    text-align: center;
}

.nav-list li, .nav-list li a {
    text-decoration:none;
    list-style: none;
    color:white;
    -webkit-text-stroke:0.1vw black;
    font-weight:600;
    font-size: clamp(1em, 2.8cqw, 30px);
    transition: all 0.5s ease;
    padding: 0 2px 0 2px;
    }

.nav-list li:hover:not(.nabar>nav>a:hover:first-of-type){
    background: rgb(135, 209, 255);
    border: 1px solid;
    border-radius: 1vw;
}
.nav-list li:active:not(.navbar>nav>a:active:first-of-type){
    background: rgb(135, 209, 255);
    border: 1px solid;
    border-radius: 1vw;
}

/* ==========================================================================
   3. Pure CSS/HTML Projects Dropdown
   ========================================================================== */

.dropdown {
    position: relative;
    display: inline-block;

}

/* Hide native browser arrow markers */
details summary {
    list-style: none;
    cursor: pointer;
    user-select: none;
}
details summary::-webkit-details-marker {
    display: none;
}

/* Floating Dropdown Card */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    background: #ffffff;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.12);
    border-radius: 3px;
    padding: 0.1rem;
    margin: 0;
    width: 15cqw;
    list-style: none;
    z-index: 99999;
}

/*  Needs fixing */
.dropdown-menu li a {
    font-size: 1rem;
    z-index: 1000;
    font-weight: 400;
    color:black;
    outline: #424242;

}
/*
.dropdown-menu li a:hover {
    background-color: #f0f4f8;
    color: #0984e3;
}
*/
.content {
    position: inherit;
    font:Lato,Arial,sans-serif;
    font-size: clamp(1em, 2.5cqw, 2.5em);;
    padding-left: 2vw;
    padding-right: 2vw;
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 5;

}