body {
    font-family: 'Arial', sans-serif;
    background: black;
    color: #ffffff;
    margin: 0;
    padding: 0;
    min-height: 100vh; /* Ensure the body covers the full viewport height */
    display: flex;
    flex-direction: column;
}
@keyframes changeColor {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
  } 
header {
    text-align: center;
    margin-bottom: 20px;
}

header h1 {
    font-size: 36px;
    margin-bottom: 10px;
  
}

main {
    flex-grow: 1; /* Allow main content to grow to fill remaining space */
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

@keyframes changeColor {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}
.logo img {
    max-width: 300px;
    height: auto;
    mix-blend-mode: lighten;
    animation: changeColor 30s linear infinite;
    margin: auto;
}

.categories {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    align-items: center;

}

.category-btn {
    padding: 20px; /* Increase padding for larger buttons */
    margin: 10px;
    font-size: 18px; /* Increase font size */
    background: #96969600;
    backdrop-filter: blur(50px);
    color: #ffffff;
    display: flex;
    border: 2px solid rgb(255, 255, 255);
    border-radius: 10px; /* Rounded corners */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Add shadow */
    cursor: pointer;
    transition: transform 0.6s ease, box-shadow 0.3s ease; /* Add transitions */
    
}

.category-btn:hover {
    transform: translateY(-5px); /* Add slight elevation on hover */
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2); /* Change shadow on hover */
    color: #000000;
    background-color: #fff;
    backdrop-filter: none;
    
}
.btn {
    padding: 10px; /* Increase padding for larger buttons */
    margin: 10px;
    max-width: 30px;
    max-height: 30px;
    font-size: 30px; /* Increase font size */
    background: #4b4a4a21;
    color: #ffffff;
    border: 2px solid rgb(255, 255, 255);
    border-radius: 10px; /* Rounded corners */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Add shadow */
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Add transitions */
  }
  
  /* Darker background on mouse-over */
  .btn:hover {
    transform: translateY(-5px); /* Add slight elevation on hover */
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2); /* Change shadow on hover */
    color: #000000;
    background-color: #fff;
  }

.category {
    display: none;
    margin-top: 20px;
    width: 100%; /* Set width to fill the container */
}

.category.active {
    display: block;
}

.category h2 {
    font-size: 24px;
    margin-bottom: 10px;
    text-align: center;
    backdrop-filter: none;
}

.projects {
    display: flex;
    flex-wrap: wrap;
   z-index: 1121;
  
    justify-content: space-around;
}

.project {
    width: calc(25% - 20px); /* Adjust project width */
    margin-bottom: 20px;
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
  
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--border-color);
    border-radius: 2px;
    transition: transform 0.3s ease; /* Add transition for hover effect */
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.project h3 {
    text-align: center;
    color:linear-gradient(0deg, #44da34f0, #81eae1b3);
    animation: changeColor 30s linear infinite;

}

.project img {
    width: 100%; /* Ensure images take up the full width of the container */
    height: auto; /* Maintain aspect ratio */
    display: block; /* Remove extra space below images */
}



.project h3,
.project p {
    padding: 10px;
    font-size: 15px;
    margin: 0;
}

.project p {
    flex: 1;
}

.project video {
    width: 100%;
}

footer {
    text-align: center;
    padding: 20px 0;
    background-color: #33333300;
    color: #fff;
    flex-shrink: 0; /* Ensure footer does not shrink */
}

/* Media queries for responsiveness */
@media only screen and (max-width: 768px) {
    .category-btn {
        width: calc(50% - 20px);
      position: relative;
       display: flex;
       text-align: center;
       font-size: 8px;
       backdrop-filter: blur(50px);
    }
    .category-btn h2{
        width: calc(50% - 20px);
      position: relative;
       display: flex;
       backdrop-filter: none;

    }
    

    .project {
        width: calc(50% - 20px); /* Adjust project width for smaller screens */
        background-color: #ffffff22;
    }
    .categories{
        width: calc(50% - 20px);
        position: relative;
         display: flex;
    }
}

@media only screen and (max-width: 480px) {
    .category-btn {
        padding: 10px; /* Further reduce padding for smallest screens */
        font-size: 14px; /* Further reduce font size for smallest screens */
    }

    .project {
        width: calc(100% - 20px); /* Adjust project width for smallest screens */
    }
}
/* Media queries for responsiveness */
@media only screen and (max-width: 768px) {
    .categories {
        flex-direction: column;
        align-items: center;
    }
    
    .category-btn {
        width: calc(50% - 20px);
        font-size: 14px;
    }

    .project {
        width: calc(50% - 20px);
    }
}

@media only screen and (max-width: 480px) {
    .category-btn {
        width: calc(100% - 20px);
        font-size: 12px;
    }

    .project {
        width: calc(100% - 20px);
    }
}
