/* Reset and Layout */
body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: Arial, sans-serif;
    overflow-y: auto;
}

body {
    transition: background 0.5s ease;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 95%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 10px;
    background-color: transparent;
}

.header-nav {
    display: flex;
    gap: 20px;
}

.header-button {
    color: black;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    padding: 8px 16px;
    transition: background-color 0.3s ease;
}

.header-button:hover {
    color: chartreuse; /* Subtle hover effect */
}

.small-logo {
    width: 80px;
    height: 80px;
}

main {
    padding-top: 80px;
    text-align: center;
}

h1 {
    font-family: Arial, sans-serif;
    font-size: 36px;
    margin: 20px 0;
}

.sort-buttons {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

button {
    font-size: 16px;
    padding: 10px 20px;
    margin: 5px;
    cursor: pointer;
    background: none;
    border: none;
    font-family: 'Futura', Arial, sans-serif; /* Use Futura font */
    color: black;
    font-weight: bold;
}

button:hover {
    color: chartreuse;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.filter-buttons button {
    font-size: 16px;
    padding: 10px 20px;
    cursor: pointer;
    background: none;
    border: 1px solid black;
    font-family: 'Futura', Arial, sans-serif;
    color: black;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.filter-buttons button:hover {
    background-color: chartreuse;
    color: white;
}

/* Projects Grid */
.projects-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 items per row on large screens */
    gap: 15px;
    padding: 20px;
    justify-items: center; /* Center items in each column */
}

/* Project Item Styling */
.project {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding-top: 100%; /* Keeps each project item square */
    background: #ddd;
    transition: transform 0.3s ease;
}

.project img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project p {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 5px 0;
    text-align: center;
}

.project:hover {
    transform: scale(1.05);
}

/* Preloader styling */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff; /* Preloader background color */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Make sure the preloader is on top */
}

.preloader-icon {
    width: 80px; /* Adjust size of the icon */
    height: 80px;
}



/* Responsive Adjustments */

/* Stack Projects Vertically for Small Mobile Devices (up to 600px) */
@media (max-width: 600px) {
    .projects-container {
        grid-template-columns: 1fr; /* Single-column layout */
    }

    .project {
        width: 100%; /* Take full width of the container */
        padding-top: 100%; /* Maintain square aspect ratio */
        max-width: 100%; /* Limit the max width to prevent scaling infinitely */
        margin: 0 auto; /* Center-align items */
    }
}

@media (max-width: 480px) {
    .header-button{
        font-size: 14px;
        padding: 8px 10px;
    }

    .small-logo{
        width: 60px;
        height: 60px;
    }

    .wip{
        font-size: large;
    }

    button{
        font-size: 12px;
        padding: 5px 18px;
    }

    .sort-buttons{
        padding-right: 2px;
    }
}

