* {
    box-sizing: border-box;
}

body {
    background-image: url("https://images.pexels.com/photos/998641/pexels-photo-998641.jpeg");
    background-size: cover;
    background-attachment: fixed;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Prevents side-scrolling */
    position: absolute;
    z-index: -1;
}

/* Container to hold the header elements */
.header-wrapper {
    position: relative;
    width: 100%;
    height: 150px; /* Adjust based on how tall you want the header area */
}

.footer-wrapper {
    position: relative;
    width: 100%;
    height: 558px;
}

/* The Main Top Bar */
#box {
    width: 100%;
    height: 65px;
    background: rgb(100, 100, 100);
    border-bottom: 5px solid red;
}
#box5 {
    width: 100%;
    height: 65px;
    background: rgb(100, 100, 100);
}

/* Common styles for all decorative boxes */
.shape {
    width: 100px;
    height: 100px;
    background: rgb(100, 100, 100);
    position: absolute;
    top: 0;
    border-bottom: 5px solid red;
}

.rotate {
    height: 50px;
    width: 50px;
    border-bottom: 7px solid red;
}

/* Specific Positions */
#box1 { 
    left: 0; 
}
#box3 { 
    left: 75px; top: 40px; 
    rotate: -45deg;
}
#box2 { 
    right: 0; 
}
#box4 { 
    right: 75px; top: 40px;
    rotate: 45deg; 
}

/* Reset and layout setup */
body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden; 
    background-color: #1a1a1a;
}

#grid-container {
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1; /* Sits behind your other content */
    
    display: grid;
    width: 100vw;
    height: 100vh;
    
    /* Grid structure */
    grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
    grid-template-rows: repeat(auto-fill, minmax(50px, 1fr));
    gap: 1px;
    
    /* Your background image */
    background-image: url("https://images.pexels.com/photos/998641/pexels-photo-998641.jpeg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.grid-item {
    background-color: black;
    border: 0.1px solid black;
    box-shadow: 0 0 5px 5px darkcyan inset;
    box-shadow: 0 0 5px 5px darkcyan;
    transition: transform 0.15s ease-out, opacity 0.15s ease-out;
    transform-origin: center; 
    /* Performance boost for animations */
    will-change: transform, opacity;
    pointer-events: none; 
}