



/* Header & Nav */
/* Sticky Nav Logic */


.header-wrap {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: 20px;
}:root {
    --bg-color: #75edab;
    --card-bg: #ffffff;
    --accent: #ff6b6b; /* A goofy coral red */
    --shadow: 8px 8px 0px 0px rgba(0,0,0,1);
    --hover-shadow: 4px 4px 0px 0px rgba(0,0,0,1);
}

html, body {
    height: 100%;
    margin: 0;
    background-color: var(--bg-color);
    font-family: 'Courier New', Courier, monospace;
    scroll-behavior: smooth;
}
html {
    /* Ensures the 'canvas' for the background exists for the whole page */
    height: 100%;
    background-color: var(--bg-color); 
}

body {
    /* Min-height ensures it covers the screen, but can grow with projects */
    min-height: 100%;
    margin: 0;
    padding: 0;

    /* Your texture logic */
    background: linear-gradient(
        rgba(18, 16, 16, 0) 50%, 
        rgba(0, 0, 0, 0.1) 50%
    ), var(--bg-color);
    background-size: 100% 4px;
    background-attachment: fixed;
    
    /* This helps keep the background from 'jumping' on mobile */
    background-repeat: repeat;
}
body::after {
    content: "";
    position: fixed; /* Keeps the vignette/glow glued to the glass */
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    /* This creates that slight screen-glow/static feel */
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, rgba(0,0,0,0.08) 100%);
    pointer-events: none;
    z-index: 9999;
}

/* Remove background from body, keep it only on html */
body {
    background-color: var(--bg-color);
    margin: 0;
}

/* Create a dedicated texture layer */
body::before {
    content: "";
    position: fixed; /* Glued to the screen */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Sits behind everything */
    
    background: linear-gradient(
        rgba(18, 16, 16, 0) 50%, 
        rgba(0, 0, 0, 0.1) 50%
    );
    background-size: 100% 4px;
    pointer-events: none; /* Clicks go through it */
}
/* Header & Nav */
/* Sticky Nav Logic */


.top-bar {
    position: sticky; 
    top: 0;
    z-index: 1000;
    padding: 15px 0;
    

    background: rgba(117, 237, 171, 0.8); 
    backdrop-filter: blur(5px); 
    
    border-bottom: 4px solid black; 
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 4px solid black;
}
.top-bar {
    background: rgba(117, 237, 171, 0.85); 
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 4px solid black;
}





.top-bar h1 {
    border: 3px solid white;
    font-family: 'Orbitron', sans-serif; /* Matching your project titles */
}

.header-wrap {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-left: 20px;
}

/* 1. The Container - Now properly sized to 150px */
.logo-wrapper {
    position: relative;
    width: 150px;  /* Match your image width */
    height: 150px; /* Match your image height */
    display: inline-block;
    vertical-align: middle;
    
    /* Pushes the "AUDIO ENGINEERING" text away from the logo */
    margin-right: 30px; 
    
    /* Keeps the logo from touching the top or bottom of the green bar */
    margin-top: 10px;
    margin-bottom: 10px;
    
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1001;
}

/* 2. Unified Image Settings */
.logo-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 150px;
    height: 150px;
    
    border: 5px solid black;
    border-radius: 50%; 
    background: white;
    box-shadow: 6px 6px 0px black;
    
    /* We move the rotation here so it doesn't fight the wrapper */
    transform: rotate(-10deg); 
    
    object-fit: contain;
    transition: opacity 0.2s ease-in-out;
}

/* 3. Hover States */
.logo-hover {
    opacity: 0;
}

.logo-wrapper:hover {
    /* The whole "sticker" pops up */
    transform: scale(1.1) rotate(-5deg) translateY(-5px);
    cursor: pointer;
}

.logo-wrapper:hover .logo-normal,
.logo-wrapper:hover .main-logo { /* Targeting both just in case */
    opacity: 0;
}

.logo-wrapper:hover .logo-hover {
    opacity: 1;
}


h1 {
    background: black;
    color: white;
    display: inline-block;
    padding: 10px 20px;
    transform: rotate(-1deg);
    border: 3px solid black;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

/* 3. THE "STICKER SHEET" NAV */
/* 3. THE CLEAN STICKER NAV (No Double Borders) */
nav {
    background: transparent;
    border: none;
    box-shadow: none;
    width: 100%;
    margin: 30px 0;
    padding: 0;
    position: sticky;
    top: 20px;
    z-index: 1000;
}

nav ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 15px; 
    justify-content: center;
    flex-wrap: wrap;
}

/* We strip the LI completely so it doesn't create extra boxes/borders */
nav li {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
}

nav li a {
    display: inline-block;
    padding: 14px 24px;
    text-decoration: none;
    color: black;
    font-weight: 900;
    font-size: 0.9rem;
    text-transform: uppercase;
    
    /* THE ONLY BORDER */
    border: 4px solid #000; 
    
    /* Hard Shadow */
    box-shadow: 6px 6px 0px 0px #000;
    
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Colors for the stickers */
nav li:nth-child(1) a { background: #ff7eb9; } 
nav li:nth-child(2) a { background: #7afcff; } 
nav li:nth-child(3) a { background: #fff352; } 
nav li:nth-child(4) a { background: #ff9e4f; } 
nav li:nth-child(5) a { background: #bf94ff; } 
nav li:nth-child(6) a { background: #ff6b6b; } 

/* The "Wobble" Hover Effect */
nav li:hover a {
    transform: scale(1.1) rotate(-3deg); /* Slight tilt */
    box-shadow: 10px 10px 0px 0px #000;
}

nav li:active a {
    transform: scale(0.95) rotate(0deg);
    box-shadow: 2px 2px 0px 0px #000;
}

/* Main Content Layout */
main {
    padding: 40px 20px;
}

h2 {
    font-size: 2.5rem;
    margin-left: 10px;
    font-family: 'Orbitron', sans-serif; /* Matching your project titles */
}

main h2 {
    background: black;
    color: white;
    display: inline-block; /* Makes the box only as wide as the text */
    padding: 8px 15px;
    font-family: 'Orbitron', sans-serif; /* Matching your project titles */
    font-size: 1.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    
    /* The "Goofy" tilt */
    transform: rotate(-1.5deg);
    
    /* Hard shadow to match the cards */
    box-shadow: 6px 6px 0px var(--accent); /* Using your coral red for the shadow here! */
    
    border: 2px solid black;
    margin: 40px 0 20px 20px; /* Gives it space from projects above it */
}

/* Optional: Alternating tilts for a more chaotic look */
main h2:nth-of-type(even) {
    transform: rotate(1.5deg);
    box-shadow: -6px 6px 0px var(--accent);
}

/* Goofy Project Cards */
.side {
    background-color: var(--card-bg);
    border: 4px solid black;
    box-shadow: var(--shadow);
    margin: 40px auto;
    padding: 20px;
    width: 80%;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
}

.side:hover {
    transform: scale(1.02) rotate(0.5deg);
    box-shadow: 12px 12px 0px 0px rgba(0,0,0,1);
    background-color: #f0f0f0;
}

.side aside h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem; /* Bigger title */
    display: flex;
    justify-content: space-between; /* Pushes button to the right */
    align-items: center;
    flex-wrap: wrap; /* Prevents squishing on mobile */
    gap: 15px;
    margin-bottom: 15px;
}

/* Image Handling */
.image-scroller {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding-bottom: 15px;
}

img {
    width: 250px;
    height: 150px;
    object-fit: cover;
    border: 3px solid black;
    filter: grayscale(20%);
    transition: 0.3s;
}

img:hover {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.projects-btn {
    background: var(--accent); /* Using your coral red for the main action */
    color: black;
    border: 4px solid black;
    padding: 12px 24px; /* Much bigger button */
    text-decoration: none;
    font-family: 'Michroma', sans-serif;
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 8px 8px 0px black; /* Heavier shadow */
    transition: 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.projects-btn:hover {
    transform: translate(-2px, -2px); /* Slight lift */
    box-shadow: 12px 12px 0px black;
    background: white; /* Flip colors on hover */
}

.projects-btn:active {
    transform: translate(4px, 4px);
    box-shadow: 2px 2px 0px black;
}

footer {
    text-align: center;
    padding: 50px;
    font-weight: bold;
}


/* Nav Adjustment */
nav {
    margin: 10px auto;
    width: 95%;
    /* Keep your existing nav styles here */
}

h1 {
    background: black;
    color: white;
    display: inline-block;
    padding: 10px 20px;
    transform: rotate(-1deg);
    border: 3px solid black;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

nav {
    background: white;
    border: 4px solid black;
    box-shadow: var(--shadow);
    padding: 10px;
    width: 95%;
}

nav ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    justify-content: space-around;
    flex-wrap: wrap;
}

nav li {
    background: white;
    border: 2px solid black;
    padding: 8px 15px;
    margin: 5px;
    transition: 0.2s;
    cursor: pointer;
}

nav li:hover {
    background: var(--accent);
    transform: translateY(-3px) rotate(2deg);
    box-shadow: var(--hover-shadow);
}

/* Main Content Layout */
main {
    padding: 40px 20px;
}

h2 {
    font-size: 2.5rem;
    margin-left: 10px;
}

/* Goofy Project Cards */
.side {
    background-color: var(--card-bg);
    border: 4px solid black;
    box-shadow: var(--shadow);
    margin: 40px auto;
    padding: 30px;
    width: 80%;
    gap: 25px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
}

.side p {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 90%; /* Keeps lines from being too long and hard to read */
}

.side:hover {
    transform: scale(1.02) rotate(0.5deg);
    box-shadow: 12px 12px 0px 0px rgba(0,0,0,1);
    background-color: #f0f0f0;
}

/* Image Handling */
.image-scroller {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding-bottom: 15px;
}

img {
    width: 250px;
    height: 150px;
    object-fit: cover;
    border: 3px solid black;
    filter: grayscale(20%);
    transition: 0.3s;
}

img:hover {
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* Buttons */
.projects-btn {
    background: #5dade2;
    color: white;
    border: 3px solid black;
    padding: 5px 15px;
    text-decoration: none;
    font-size: 0.8rem;
    display: inline-block;
    margin-left: 10px;
    box-shadow: 3px 3px 0px black;
}

.projects-btn:hover {
    background: black;
    color: white;
    box-shadow: none;
    transform: translate(2px, 2px);
}

footer {
    text-align: center;
    padding: 50px;
    font-weight: bold;
}

/* THE ANIMATION DEFINITION */
@keyframes goofyPop {
    0% {
        transform: scale(0) rotate(-45deg);
        opacity: 0;
    }
    70% {
        transform: scale(1.2) rotate(10deg); /* Overshoot for that "boing" feel */
        opacity: 1;
    }
    100% {
        transform: scale(1) rotate(-10deg); /* Settle at your original tilt */
        opacity: 1;
    }
}



/* Full-screen overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.98); /* Almost solid white for a clean look */
    display: none;
    z-index: 2000;
    overflow-y: auto; /* Scrollable for long docs */
}

.modal-active {
    display: block !important;
}

/* 1. Darker Backdrop */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Darkened to 90% black with a slight blur for depth */
    background: rgba(0, 0, 0, 0.9); 
    backdrop-filter: blur(8px);
    display: none;
    z-index: 2000;
    overflow-y: auto;
    /* Smooth fade in for the overlay itself */
    animation: fadeIn 0.3s ease-out;
}

.modal-active {
    display: block !important;
}

/* 2. Simple Slide-up Animation for Content */
.modal-container {
    max-width: 1100px;
    margin: 50px auto;
    padding: 40px;
    background: white; /* Contrast against the dark backdrop */
    border: 4px solid black;
    box-shadow: 15px 15px 0px black;
    
    /* The Animation */
    animation: slideUp 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Animation Keyframes */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Close Button - adjusted to stand out on dark bg */
.close-doc {
    position: fixed;
    top: 20px;
    right: 40px;
    background: var(--accent);
    color: black;
    border: 3px solid black;
    padding: 10px 20px;
    font-family: 'Orbitron', sans-serif;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
    box-shadow: 4px 4px 0px black;
}

/* Main Portfolio Image Row */
.side-image-row img {
    width: 320px;  /* Slightly bigger than original 250px */
    height: 200px; /* Slightly bigger than original 150px */
    object-fit: cover;
    border: 3px solid black; 
    box-shadow: 5px 5px 0px black;
    transition: all 0.2s ease;
}

.side-image-row img:hover {
    transform: translateY(-3px); /* Subtle lift instead of a big scale */
    box-shadow: 8px 8px 0px black;
}

/* Ensure the scroller is clean and tight */
.side-image-row {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding-bottom: 15px;
}

/* Documentation Gallery Tweaks */
/* Reduce space between image row and the text area */
.side-image-row {
    padding-bottom: 5px; /* Shaved down from 15px/20px */
    margin-bottom: 0;
}

.side aside {
    padding-top: 5px; /* Shaved down from 15px/20px */
}

.side aside h3 {
    margin-top: 0; /* Remove any top margin pushing the name down */
    padding-top: 0;
}

/* 2. Target the logo directly for the hover */


/* 3. The Header Text Hover */
.header-wrap header:hover h1 {
    transform: translateY(-3px) rotate(1deg);
    transition: 0.2s;
    cursor: default;
}
/* 1. Set the transition for the H3 titles */
.side h3 {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-block; /* Essential for the transform to work smoothly */
    cursor: default;
}

/* 2. Apply the hover effect */
.side h3:hover {
    /* Lifts it up and gives it a slight "active" tilt */
    transform: translateY(-5px) rotate(-1deg) scale(1.02);
   
}


.side h3 .projects-btn {
    vertical-align: middle;
}

.about_me_aside{
    font-size: smaller;
}
