/* BINARY BACKGROUND AND BODY */
#binary-wave-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -100;
    pointer-events: none; 
    /* GPU acceleration for smoother animation */
    will-change: transform;
    backface-visibility: hidden;
}




/* OVERWRITE GLOBAL SCROLL CONTAINER PADDING TOP AND BOTTOM IF NEEDED!!! ADD NEW SECTION FIRST*/
/* Adjust scroll container padding (change for each page) */


/* SCROLL CONTAINER & SCROLL BAR */
.scroll-container {

        padding-top: 15px;
    padding-bottom: 10px;



    position: absolute;
    top: var(--nav-height); /* start right below the navbar */
    left: 0;
    right: 0;
    bottom: 0;
    overflow-y: auto; /* scroll only in this area */







    padding-right: 3%;

    padding-left: 3%;


    box-sizing: border-box; /* make padding included in width */
    
    /* Smooth scrolling performance */
    -webkit-overflow-scrolling: touch; /* iOS momentum scrolling */
    scroll-behavior: smooth;
    will-change: scroll; /* hints browser to optimize scroll */
}




/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #0a0a0a; /* dark for contrast with binary wave */
    color: #fff;
    line-height: 1.6;
    margin: 0; /* remove extra padding to prevent big top gap */
    padding: 20px;

    
}







/* ===== PAGE HEADING ===== */
/* ===== PAGE HEADING ===== */
h1 {
    font-size: 2.4rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    color: #ffffff;
    display: inline-block;
    /* Combined animations: slow vertical wave + flicker */
    animation: wave 10s infinite ease-in-out, flicker 2s infinite;
    margin-bottom: 10px;
}

/* Slow vertical movement */
@keyframes wave {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); } /* subtle vertical shift */
}

/* Quick opacity flicker */
@keyframes flicker {
    0%, 100% { opacity: 1; }
    10% { opacity: 0.9; }
    20% { opacity: 0.95; }
    30% { opacity: 1; }
    40% { opacity: 0.92; }
    50% { opacity: 0.98; }
    60% { opacity: 1; }
    70% { opacity: 0.94; }
    80% { opacity: 1; }
    90% { opacity: 0.96; }
}


/* ===== PROJECT GRID ===== */
ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr; /* only one card per row */
    gap: 20px;
}

/* ===== PROJECT CARD ===== */
li {
    background-color: rgba(255, 255, 255, 0.1); /* slightly transparent */
    border-left: 6px solid #ffffff; /* accent color */
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

li:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.75);
}

/* ===== PROJECT TITLE ===== */
li h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #fff;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
}

/* ===== LINKS ===== */
li a {
    color: #007BFF; /* Bright blue */
    text-decoration: none;
    word-break: break-word;
    margin-top: 5px;
    font-weight: 500;
}

li a:hover {
    text-decoration: underline;
    color: #ffffff;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    li {
        padding: 15px;
    }

    li h2 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    li h2 {
        font-size: 1.1rem;
    }

    li a {
        font-size: 0.95rem;
    }
}