/* -webkit-box-shadow: 0px 2px 8px 3px rgba(0, 0, 0, 0.25);
box-shadow: 0px 2px 8px 3px rgba(0, 0, 0, 0.25);

*/




:root {

    --color-bg: #FFFFFF;
    --color-text-black: #0C0C0C;
    --color-nav-bg: rgba(251, 253, 255, 0.42);
    --color-nav-border: rgba(104, 104, 104, 0.11);

    --nav-blur: 13px;
    --nav-radius: 9999px;

    --slider: #0c0c0c18;

    --nav-shadow:
        0px 3px 8px -3px rgba(0, 0, 0, 0.33);
    --nav-shadow-in:
        inset 5px 9px 17px -3px rgba(255, 255, 255, 0.105);
}

/* Image Logic Dark-Light */
.dark-only {
    display: none !important;
}

body.dark-mode .light-only {
    display: none !important;
}

body.dark-mode .dark-only {
    display: block !important;
}

/* Same but for fun thingies */

.funny-only {
    display: none !important;
}

body.funny-mode .not-funny {
    display: none !important;
}

body.funny-mode .funny-only {
    display: block !important; 
}






body.dark-mode {

    --color-bg: #0C0C0C;
    --color-text-black: #ffffff;
    --color-nav-bg: rgba(36, 36, 36, 0.42);
    --color-nav-border: rgba(104, 104, 104, 0.11);

    --nav-blur: 13px;
    --nav-radius: 9999px;

    --slider: #ffffff29;

    --nav-shadow:
        0px 7px 8px -2px rgba(0, 0, 0, 0.33);
    --nav-shadow-in:
        inset 5px 9px 17px -3px rgba(255, 255, 255, 0.026);

}

body.perf-mode * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;

    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    box-shadow: none !important;

    filter: none !important;
}

/*
body.funny-mode img {
    transform: rotate(3deg);
}
*/


/*
body.funny-mode h1,
body.funny-mode h2 {
    animation: funny-spin 1s 1;
    display: inline-block;
}
*/









html {
    -webkit-tap-highlight-color: transparent;
    /* -webkit-touch-callout: none; */
    color-scheme: light;
    /* scrollbar-gutter: stable; */
    /* overflow-y: scroll; */
    overflow-x: hidden;
    scrollbar-color: rgba(85, 85, 85, 0.443) transparent;
    font-family: "Instrument Sans", sans-serif;
}




























html:has(body.dark-mode) {
    color-scheme: dark;
}


body {
    /* background-image: url(media/winterrush_alt.jpg); */
    background-color: var(--color-bg);
}


.content {
    padding-left: 50px;
    padding-bottom: 100px;
    padding-right: 50px;
}


h1 {
    font-family: "Instrument Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-size: 75px;
    font-style: normal;
    color: var(--color-text-black);
    font-variation-settings:
        "wdth"100;
}

h2 {
    font-family: "Instrument Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-size: 52px;
    font-style: normal;
    color: var(--color-text-black);
    margin: 0;
    margin-top: 6%;
    font-variation-settings:
        "wdth"100;
}

h3 {
    font-family: "Instrument Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-size: 24px;
    font-style: normal;
    color: var(--color-text-black);
    font-variation-settings:
        "wdth"100;
}

h4 {
    font-family: "Instrument Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-size: 18px;
    font-style: normal;
    margin-top: 2%;
    max-width: 800px;
    color: var(--color-text-black);
    font-variation-settings:
        "wdth"100;
}

hr {
    border: none;
    height: 0.5px;
    background-color: var(--color-text-black);
    opacity: 0.2;
}

.label {
    font-family: "Instrument Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-size: 18px;
    font-style: normal;
    color: var(--color-text-black);
    font-variation-settings:
        "wdth"100;
}

p {
    font-family: "Instrument Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-size: 16px;
    font-style: normal;
    color: var(--color-text-black);
    opacity: 0.72;
    font-variation-settings:
        "wdth"100;
}

.nav-item {
    font-family: "Instrument Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    cursor: pointer;
    font-size: 16px;
    font-style: normal;
    color: var(--color-text-black);
    opacity: 0.72;
    font-variation-settings:
        "wdth"100;
}

.nav-item-a {
    text-decoration: none;
    font-family: var(--font-family-sans);
}


a {
    color: inherit;
}









.header {
    user-select: none;
    -moz-user-select: none;

    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 100px;

    background-color: var(--color-nav-bg);
    border: 1px solid var(--color-nav-border);
    padding: 12px 24px;
    border-radius: var(--nav-radius);
    box-shadow: var(--nav-shadow), var(--nav-shadow-in);
    backdrop-filter: blur(var(--nav-blur));
}

/* 3. The Logo */
.logo {
    height: 28px;
    display: block;
    width: 130px;
    text-decoration: none;

    font-family: "Instrument Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-size: 24px;
    font-style: normal;
    color: var(--color-text-black);
    font-variation-settings:
        "wdth"100;
    cursor: default;
}

.logo a {
    text-decoration: none;
    color: inherit;
}

.nav {
    display: flex;
    gap: 20px;
}









.hero-title-svg {
    padding-top: 60px;
    padding-bottom: 20px;
    max-height: calc(90vh - 185px);
    max-width: 90vw;

    -webkit-user-drag: none;
}







.settings-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 3%;
    font-family: var(--font-family-sans);
}

.setting-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--slider);
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 2px;
    bottom: 2px;
    background-color: var(--color-bg);
    transition: .2s;
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

input:checked+.slider {
    background-color: var(--color-text-black);
}

input:checked+.slider:before {
    transform: translateX(22px);
}


.full-vid {
    position: fixed;
    top: 0;
    left: 0;
    /* Force the video element to fill the screen exactly */
    width: 100vw;
    height: 100%;
    /* This centers the video and crops the edges to fill the space without stretching */
    object-fit: cover; 
    z-index: -1;
}

.negative-grayscale {
    /* 1. Apply the effects to the video BEHIND the element */
    /* This inverts the background, then removes the color */
    -webkit-backdrop-filter: invert(100%) grayscale(100%);
    backdrop-filter: invert(100%) grayscale(100%);

    /* 2. Turn the image source into a mask */
    /* This cuts the rectangular backdrop-filter into the shape of your logo */
    -webkit-mask-image: url("media/logo_w.svg");
    mask-image: url("media/logo_w.svg");
    
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;

    /* 3. Hide the actual foreground image */
    /* We push the actual white "image" pixels away so they don't block 
       the see-through filter effect */
    object-position: -99999px;
}






/* ================= SPACER ================= */

.spacer-s {
    height: 20px;
}
.spacer-m {
    height: 40px;
}
.spacer-l {
    height: 80px;
}
.spacer-xl {
    height: 120px;
}
.spacer-xxl {
    height: 160px;
}



.side-panel {
    position: fixed;
    bottom: 0;
    right: 0;
    width: 20vw;
    
-webkit-box-shadow: -3px -3px 7px -3px rgba(0,0,0,0.25), var(--nav-shadow-in); 
box-shadow: -3px -3px 7px -3px rgba(0,0,0,0.25), var(--nav-shadow-in);

    padding: 20px;
    padding-top: 1px;
    -webkit-border-top-left-radius: 13px;
    -moz-border-radius-topleft: 13px;
    border-top-left-radius: 13px;

    background-color: var(--color-nav-bg);
    backdrop-filter: blur(13px);

}






























































































































































/* ================= DESKTOP HEADER (Hide on Mobile) ================= */
@media (min-width: 769px) {
    .mobile-header-bar, .mobile-menu-overlay {
        display: none !important;
    }
    /* ... Your existing desktop .header styles go here ... */
}


/* ================= MOBILE HEADER (Show on Mobile) ================= */
@media (max-width: 768px) {
    /* 1. HIDE DESKTOP HEADER */
    .header { display: none !important; }
    

    body {
        padding-top: 40px; /* Prevent content from being hidden under fixed header */
    }

    img {
        max-width: 95vw;
    }

    a.nav-item-a {
        font-family: "Instrument Sans", sans-serif;
    }

    h1 {
        font-size: 40px;
    }

    h2 {
        font-size: 32px;
    }

    p {
        width: 100%;
    }

    h4 {
        width: 100%;
        font-size: 16px;
    }

    .content {
    padding-bottom: 100px;
    padding-left: 17px;
    width: 90%;
    padding-right: 17px;
    }
    

    /* 2. THE CLOSED TOP BAR (matches image_2.png) */
    .mobile-header-bar {
        position: fixed;
        top: 20px;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        max-width: 78%;
        z-index: 2000;
        
        /* Your glassmorphism styles */
        background-color: var(--color-nav-bg);
        border: 1px solid var(--color-nav-border);
        backdrop-filter: blur(var(--nav-blur));
        -webkit-backdrop-filter: blur(var(--nav-blur));
        box-shadow: var(--nav-shadow);
        
        border-radius: 50px;
        padding: 10px 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        color: var(--color-text-black);
    }

    .mobile-brand {
        font-family: var(--font-family-sans);
        font-weight: 600;
        font-size: 1.1rem;
        color: currentColor;
        text-decoration: none;
    }

    .mobile-toggle {
        background: none;
        border: none;
        cursor: pointer;
        padding: 4px;
        color: currentColor;
        display: flex;
        align-items: center;
    }
    
    .mobile-toggle:active {
    transform: scale(0.9);
    transition: transform 0.1s ease;
}


    /* 3. THE OPEN MENU OVERLAY (Background dimmer) */
    .mobile-menu-overlay {
        position: fixed;
        top: 0; left: 0; width: 100%; height: 100%;
        z-index: 2001;
        
        /* Animation initial state */
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1); /* Smooth ease */
    }
    
    /* Active State for Overlay */
    .mobile-menu-overlay.is-open {
        opacity: 1;
        visibility: visible;
    }










/* Initial state for links: shifted down and invisible */
.mobile-nav-links li {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Active state for links when menu is open */
.mobile-menu-overlay.is-open .mobile-nav-links li {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays for the first 5 links */
.mobile-menu-overlay.is-open .mobile-nav-links li:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu-overlay.is-open .mobile-nav-links li:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu-overlay.is-open .mobile-nav-links li:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu-overlay.is-open .mobile-nav-links li:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu-overlay.is-open .mobile-nav-links li:nth-child(5) { transition-delay: 0.3s; }
























    /* 4. THE MENU CONTAINER (matches image_1.png) */
    .mobile-menu-container {
        position: fixed;
        top: 20px;
        left: 50%;
        /* Start slightly lower for slide-up effect */
        transform: translateX(-50%) translateY(10px);
        width: 90%;
        max-width: 78%;
            font-family: var(--font-family-sans);
        
        /* Must have solid background */
        /* background-color: var(--color-nav-bg); */
        border: 1px solid var(--color-nav-border);
        backdrop-filter: blur(var(--nav-blur));
        -webkit-backdrop-filter: blur(var(--nav-blur));
        box-shadow: var(--nav-shadow);
        

        border-radius: 24px;
        padding: 24px;
        
        /* Animation initial state */
        opacity: 1;
        transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
        background-color: var(--color-bg);
    }

    /* Active State for Menu Container */
    .mobile-menu-overlay.is-open .mobile-menu-container {
        opacity: 1;
        /* Slide to final position */
        transform: translateX(-50%) translateY(0);
        background-color: var(--color-bg);
    }



    .hero-title-svg {
    width: 100%;
    }

}



    /* 5. MENU CONTENTS */
    .mobile-menu-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 25px;
        color: var(--color-text-black);
    }

    .mobile-brand-large {
        font-family: var(--font-family-sans);
        font-weight: 700;
        font-size: 1.4rem;
    }

    .mobile-close {
        background: none;
        border: none; /* Removes clunky square border */
        cursor: pointer;
        padding: 4px;
        color: currentColor;
        opacity: 0.6;
        transition: opacity 0.2s;
        display: flex;
        align-items: center;
    }
    .mobile-close:hover { opacity: 1; }
    
    .mobile-close:active {
    transform: scale(0.9);
    transition: transform 0.1s ease;
}

    .mobile-nav-links ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .mobile-nav-links li {
        margin-bottom: 18px;
    }

    .mobile-nav-links a {
        font-family:"Instrument Sans", sans-serif; /* Ensures sans-serif */
        font-weight: 400;
        font-size: 1.25rem;
        color: var(--color-text-black);
        text-decoration: none;
        opacity: 0.6; /* Muted color like in design */
        transition: opacity 0.2s;
        display: block;
    }

    .mobile-nav-links a:hover {
        opacity: 1;
    }











.nmd-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 9px;
    font-weight: 600;
    text-decoration: none;
    margin: 4px;
    font-size: 14px;
    transition: transform 0.1s;
}

.nmd-btn-primary {
    background: var(--color-text-black); /* Explicit Light color */
    color: var(--color-bg);      /* Explicit Dark Text */
    border: var(--color-text-black);
}

.nmd-btn-secondary {
    background: transparent;
    color: var(--color-text-black);      /* Light Text */
    border: var(--color-text-black) 1px solid;
}

.nmd-btn:active {
    transform: scale(0.95);
    text-decoration: none;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin: 40px 0;
}

.project-card {
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    overflow: hidden;
    background: var(--color-nav-bg);
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.08);
}

body.dark-mode .project-card {
    border-color: rgba(255, 255, 255, 0.1);
}

.project-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.project-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 24px;
}

.project-content h4 {
    flex-grow: 1
}

.project-content h3 {
    margin: 0 0 12px 0;
    flex-grow: 1
}

.project-content a {
    width: max-content;
}

.project-button {
    align-self: flex-start;
    padding: 12px 24px;
    background: var(--color-text-black);
    color: var(--color-bg);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
    transition: all 0.2s;
}

.project-button:hover {
    opacity: 0.85;
}

.project-button:active {
    transform: scale(0.97);
}

/* Responsive */
@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 16px;
    }

    .project-content {
        padding: 16px;
    }

    .project-content h3 {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}



















































