﻿

/*NAAAAAAAAAAAAAAAAAVVVVVVVVVVVV BARRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR*/
/*NAAAAAAAAAAAAAAAAAVVVVVVVVVVVV BARRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR*/
/*NAAAAAAAAAAAAAAAAAVVVVVVVVVVVV BARRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR*/

/*NAAAAAAAAAAAAAAAAAVVVVVVVVVVVV BARRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR*/
/* Default State: Sidebar is OPEN */
#projects-wrapper {
    margin-left: 620px;
    width: calc(100% - 640px); /* Adjust width to prevent horizontal scroll */
    transition: all 0.3s ease-in-out;
}


/* Collapsed State: When we click the button */
body.sidebar-is-collapsed #projects-wrapper {
    margin-left: 80px; /* Moves back left when sidebar hides */
    width: calc(100% - 100px);
}

/* Mobile State: Stacked and Full Width */
@media (max-width: 950px) {
    #projects-wrapper {
        margin-left: 0 !important;
        width: 100% !important;
        padding-top: 100px; /* Gives space so the toggle button doesn't cover text */
    }

    body.sidebar-is-collapsed #projects-wrapper {
        margin-left: 0 !important;
        width: 100% !important;
    }
}



#sidebar {
    width: 600px;
    height: 100vh;
    height: 100dvh; /* Use dynamic height for mobile browsers */
    position: fixed !important;
    top: 0;
    left: 0;
    transition: transform 0.3s ease-in-out;
    /* CRITICAL: This stops the 'floating' feel on mobile hardware */
    touch-action: none;
    -webkit-overflow-scrolling: auto;
    overflow: hidden !important;
    z-index: 1050;
}
@media (max-width: 950px) {
    #sidebar {
        width: 100vw !important;
        /* Ensures it stays at the top and doesn't 'slide' down on scroll */
        top: 0 !important;
        left: 0 !important;
        /* Disables the 'bounce' effect in Safari/Chrome */
        overscroll-behavior: none;
    }
}

/* Ensure the background stays fixed relative to the sidebar, not the screen */
.nav-video-bg {
    pointer-events: none;
    overflow: hidden;
}
#sidebar.collapsed {
    transform: translateX(-100%);
}

/* Toggle button hugs sidebar edge */
#sidebarToggle {
    left: 600px; /* Matches sidebar width */
    transition: left 0.3s ease, transform 0.3s ease;
    border-radius: 0 8px 8px 0; /* Rounded only on the right side */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 60px;
}
@media (max-width: 768px) {
    #sidebarToggle {
        left: 100vw;
    }
}

/* When collapsed, button stays on screen edge */
#sidebar.collapsed + #sidebarToggle {
    left: 0;
}

#typewriter::after {
    content: "|";
    margin-left: 6px;
    animation: blink 1s infinite;
    color: #4b3a2f;
}

@keyframes blink {
    0%,50%,100% {
        opacity: 1;
    }

    25%,75% {
        opacity: 0;
    }
}

.social-icons a {
    transition: transform 0.2s ease, opacity 0.2s ease;
}

    .social-icons a:hover {
        opacity: 1;
        transform: translateY(-2px);
    }

#sidebar {
    overflow: hidden;
    position: fixed;
}




/*VIDEOOOOOOOOOOOOOOOOOOOOOOOOO*/
.nav-video-bg{
  position:absolute;
  inset:0;
  z-index:0;
  pointer-events:none;
}

#ytbg {
    position: absolute;
    inset: 0;
    overflow: hidden; /* This is crucial to hide the extra video width */
    z-index: 0;
    filter: blur(2px) brightness(0.35) sepia(0.9) saturate(1.4) contrast(1.05);
}

    #ytbg iframe {
        position: absolute;
        top: 50% !important;
        left: 10% !important;
        /* We use 'vw' here to ensure the iframe is massive compared to the 600px sidebar */
        width: 350%;
        height: 100%;
        min-width: 1500px;
        min-height: 100%;
        /* Increasing the scale and ensuring centering */
        transform: translate(-50%, -50%) scale(1.2);
        pointer-events: none;
        border: none;
    }

.nav-video-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    /* This creates a gradient that is darker on the left where your text sits */
    background: linear-gradient( to right, rgba(75, 58, 47, 0.85) 0%, /* Your #4b3a2f brown at 85% opacity */
    rgba(75, 58, 47, 0.4) 100% /* Fades out to show more video on the right */
    );
}

#sidebar #typewriter {
    color: #ffffff; /* Consider white text if the background is now dark brown */
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* everything else in nav above the overlay */
#sidebar > *:not(.nav-video-bg){
  position:relative;
  z-index:2;
}


/*MENU BUTTONSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS*/
/* Vertical list container */
/*MENU BUTTONSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS*/
/* Vertical list container */
/* Keep your exact previous styling */
.v-menu-link {
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 1.25rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
    display: inline-block;
    transition: transform 0.3s cubic-bezier(.2,.8,.2,1), opacity 0.3s ease; /* Smooth transition */
    transform-origin: left center;
    opacity: 0.9;
    position: relative;
}

    /* Remain enlarged and bright when active */
    .v-menu-link.is-active {
        transform: scale(1.12);
        opacity: 1 !important;
    }

    /* Underline effect that stays when active */
    .v-menu-link::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: -5px;
        width: 0;
        height: 2px;
        background-color: #ffffff;
        transition: width 0.3s ease;
    }

    .v-menu-link.is-active::after {
        width: 100%;
    }

/*NAAAAAAAAAAAAAAAAAVVVVVVVVVVVV BARRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR*/
/*NAAAAAAAAAAAAAAAAAVVVVVVVVVVVV BARRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR*/
/*NAAAAAAAAAAAAAAAAAVVVVVVVVVVVV BARRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR*/

/*NAAAAAAAAAAAAAAAAAVVVVVVVVVVVV BARRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR*/



/*Projectsssssssssssssssssssssssssssssssssssssssssssssssssssss*/
 