.gridImage {
    position: fixed;
    z-index: 0;
    opacity: 2%;  /* Start with the grid invisible */
    transition: opacity 0.2s ease-in-out;
    width: 100vw;
    height: 100vh;
    left: 0rem;
    filter: grayscale(100%) invert(100%); 
    mix-blend-mode: screen;
    object-fit: fill;
    
    /* Add radial gradient to blend edges */
    background: radial-gradient(circle, rgba(255, 255, 255, 0) 50%, rgba(0, 0, 0, 0.7) 100%), red;
    pointer-events: none;
}

/* Container */
.container {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 90vh;
}
.bottom{
    position: absolute;
    bottom: 1rem;
    display: flex;
    flex-direction: row;
    cursor: pointer;
    gap: .5rem;
    padding: .5rem;
    border-radius: 1rem;
    align-self: center;
    justify-content: center;
    width: fit-content;

    color: var(--font);
    overflow-x: scroll;
    background-color: rgba(117, 117, 117, 0.068);
    backdrop-filter: blur(10px);
}

/* Home Section */
.home{
    position: relative;
    display: flex;
    flex-direction: column;
    /* background-color: rgb(58, 19, 19); */
    height: auto;
    gap: var(--gap);
    height: 98vh;
}
/* Hero Section Mid Bento */
#bento-3{
    padding: 0rem;
    clip-path: padding-box;
    background-color: rgba(0, 0, 0, 0.5);
    /* background-image: none; */
    transition: 1s;
}
#bento-3 .bentotext{
    padding: 2rem;
}
.featured {
    position: relative;
    display: flex;
    flex-direction: row;  /* Allows wrapping to the next row if items exceed width */
    gap: 2rem;  /* Adds space between items */
    justify-content: space-between;  /* Ensures items are spaced evenly */
    background-color: rgb(194, 182, 226);  /* Set background color of the featured section */
    padding: 1rem;  /* Add padding to the featured section */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);  /* Subtle shadow for a lifted effect */
  }
.item {
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 8px;  /* Rounded corners for individual items */
    padding: 1rem;  /* Padding inside each item */
    gap: 1rem;
    transition: transform 0.3s ease;  /* Smooth transition for hover effect */
}
.item:hover {
    transform: scale(1.05);  /* Slight zoom effect on hover */
}
.item h3 {
    font-size: 1.2rem;
    color: #333;
}

.item p {
    font-size: .6rem;
    color: #666;
    text-align: center;
}

.icon-row{
    display: flex;
    justify-content: flex-end;
}


@property --rotate {
    syntax: "<angle>";
    initial-value: 13deg;
    inherits: false;
}
.bento-box::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: .5px; /* controls the "thickness" illusion */
    background: linear-gradient(var(--rotate), #585858, #222222 43%, #2c2c2c);
    -webkit-mask:
      linear-gradient(#000000 0 0) content-box, 
      linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: 1;
    pointer-events: none;
    cursor: pointer;
    animation: spin 7s linear infinite;
  }

.bento-box {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    box-sizing: border-box; /* Ensure padding is included in width calculation */
    border-radius: 1rem;
    height: 100%;
    width: 100%; /* Ensure bento box takes full width */
    background-color: var(--transparent);
    justify-content: space-between;
    text-transform: lowercase;
    transition: 1s;
    backdrop-filter: blur(.15em);
}

  @keyframes spin {
    0% {
      --rotate: 0deg;
    }
    100% {
      --rotate: 360deg;
    }
  }

.bento-box:hover{
    /* cursor: pointer; */
    background-color: var(--secondary-color);
    transition: 1s;
    
}

.bento-box:hover h2{
    text-transform: uppercase;
    transition: 1s;
    color: white;
}
.bento-box:hover h4{
    text-transform: uppercase;
    color: white;
    opacity: 50%;
    transition: .1s;
}

#bento-1 {
    height: 15vh;   
}

.firstRow {
    display: flex;
    width: 100%;
    height: 100%;
    gap: var(--gap);
}
.firstRowCol {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: var(--gap);
}
.firstCol {
    flex: 1; /* Take equal space */
}
.middleCol {
    flex: 4; /* This column will be bigger */
}
.thirdCol {
    flex: 1; /* Take equal space */
}
.secondRow {
    display: flex;
    width: 100%;
    height: 30%;
    gap: var(--gap);
}
.information {
    display: flex;
    flex-direction: column;
    justify-content: start;
    gap: 0.5rem;
    padding: 1rem;
    animation: slideInFromRight 0.8s ease-out forwards;
    transform: translateX(100%); /* Start off-screen */
}

@keyframes slideInFromRight {
    0% {
        opacity: 0%;
        transform: translateX(-200%); /* Start from the right */
    }
    20%{
        opacity: 0%;
    }
    100% {
        opacity: 100%;
        transform: translateX(0); /* End at the normal position */
    }
}
canvas{
    display: flex;
    /* width: 5rem; */
    position: relative;

}

/* Projects */
.projectContainer{
    position: relative;
    display: flex;
    flex-direction: column;
    height: 90vh;
}
.projects{
    padding: .5rem;
    display: flex;
    flex-wrap: wrap;
    gap:1rem;
    border-radius: 1rem;
    /* height: 70vh; */
    overflow: scroll;
    background-color: rgba(117, 117, 117, 0.068);
}
.project-item {
    display: flex;
    flex: 1;
    background-color: black;
    justify-content: space-between;
    border-radius: min(1rem, 2rem);
    padding: .5rem;
    cursor: pointer;
    height: 15rem;
    width: min-content;
    min-width: max-content;
    box-sizing: border-box;
    box-shadow: 0 0 .5rem rgb(61, 72, 92);
    overflow: hidden;
}
.project-item:hover  {
    background-color: rgb(159, 151, 196);
    color: black;
}
.project-info{
    position: absolute;
    display: none;
    flex-direction: column;
    /* background-color: red; */
    gap: 1rem;
    width: 25rem ;
    /* width: 12rem; */
}
.content-image {
    height: 100%;
    width: 100%;
    object-fit: cover; /* This ensures images are cropped to fit the area without distorting their aspect ratio */
    border-radius: 1rem;
    transition: 2s ease-in-out;
    /* position: absolute; */
}

/* Services */
.services{
    padding: .5rem;
    display: flex;
    flex-wrap: wrap;
    gap:1rem;
    border-radius: 1rem;
    /* height: 70vh; */
    overflow: scroll;
    /* background-color: rgba(117, 117, 117, 0.068); */
}
.service-item {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 2rem;
    background-color: black;
    color: rgb(250, 236, 253);
    justify-content: space-between;
    border-radius: 2rem;
    padding: 2rem;
    height: 15rem;
    width: min-content;
    min-width: max-content;
    cursor: pointer;
    /*The transition is set in the JavaScript file (projectpage.js).*/
    box-shadow: 0 0 .5rem rgba(255, 255, 255, 0.096);
    /* box-shadow: inset 5em 1em rgba(255, 255, 255, 0.349); */
}
.service-item:hover {
    background-color: rgb(171, 151, 196);
    color: black;
}

@media (max-width: 1050px) {
    .gridImage {
        width: 500vw;
        height: 100vh;
    }
    .container {
        gap: 0rem;
        flex-direction: column;
        /* background-color:red; */
        overflow: hidden;
        height: 98vh;
    }
    .home{
        overflow-y: scroll;
    }
    .sidebar{
        width: auto;
        flex-direction: column;
        margin-bottom: 0rem;
    }
    .featured {
        overflow-x: scroll;
    }
   .firstRow{
    display: flex;
    flex-direction: column;
   }
   
   .secondRow{
    display: flex;
    flex-direction: column;
   }

}
   
