:root {
    --background-color: #131312; /* Dark background */
    --frame-color: #1f1f1f; /* Light frame background */
    --text-color: #fff; /* White text */
    --bar-color: #fdcf68; /* The orange color for the bar */
}

a {
    color: var(--bar-color); /* This makes the link have the same color as the surrounding text */
    text-decoration: none; /* This removes the underline from the link */
}

a:hover {
    cursor: pointer; /* This changes the cursor to the 'pointer' hand icon on hover */
}

body {
    background-color: var(--background-color);
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    color: var(--text-color);
}

.container {
    background-color: var(--frame-color);
    border-radius: 20px;
    padding: 20px;
    max-width: 800px;
    margin: auto;
}

.title {
    margin-top: 0;
    font-size: 24px;
}

.bar {
    width: 40px;
    height: 5px;
    background-color: var(--bar-color);
    margin: 10px 0;
    border-radius: 10px;
}

.main-image {
    width: 100%;
    border-radius: 10px; /* Rounded corners for the image */
    margin-bottom: 20px;
}

.image-placeholder {
    width: 100%;
    max-width: 200px;
    height: auto; /* Adjust as needed */
    background-color: #ddd; /* Placeholder color */
    border-radius: 10px; /* Rounded corners for the image */
    margin: 20px auto; /* Top and bottom margins are 20px, left and right margins are auto */
    display: block; 
}

.project-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px; /* Increase gap for a bit more space around items */
}

.project-item {
    flex: 0 1 calc(40% - 30px); /* Make items slightly larger than before */
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Align items to the start (left) */
}

.project-img {
    width: 100%;
    overflow: hidden;
    border-radius: 15px; /* Rounded corners for the images */
    display: block;
    /* Define a fixed height to create a landscape aspect */
    height: 200px; /* Adjust this value based on your desired aspect ratio */
}

.project-item, .project-img {
    padding: 0;
    margin: 0;
}

.project-item a, .project-title, .project-category {
    color: white; /* Sets the text color to white */
}

.project-item a {
    text-decoration: none;
    color: inherit; /* Inherits the text color from the parent element */
    display: block; /* Ensures the link occupies the entire area of its parent for the hover effect */
    transition: color 0.3s ease; /* Smooth transition for color change */
}

.project-img img {
    width: 100%; /* Fill the width of the container */
    height: 100%; /* Fill the height we've set on the container */
    object-fit: cover; /* Cover ensures the image covers the container while maintaining its aspect ratio */
    object-position: center; /* Centers the image within the container */
    transition: transform 0.3s ease
}

.project-item:hover .project-img img {
    transform: scale(1.1); /* Enlarges the image to 110% of its size */
}

.project-item:hover .project-title,
.project-item:hover .project-category,
.project-item:hover a {
    color: var(--bar-color); /* Changes text color to the custom variable on hover */
}

.project-title,
.project-category {
    text-align: left; /* Align text to the left */
    width: 100%; /* Ensure the text aligns with the image's borders */
    margin-top: 10px; /* Add some space between the image and the text */
}

@media screen and (max-width: 768px) {
    .project-item {
        flex: 0 1 calc(50% - 30px); /* Adjust for medium screens */
    }
}

@media screen and (max-width: 480px) {
    .project-item {
        flex: 0 1 100%; /* Full width on smaller screens */
    }
}

.back-button,
.home-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #FFF; /* or any color you prefer */
  padding: 8px 16px;
  border-radius: 4px;
  background-color: #333; /* or any background color you prefer */
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
}

.back-button ion-icon,
.home-button ion-icon {
  font-size: 20px;
}

/* Additional styling for hover effects */
.back-button:hover,
.home-button:hover {
  background-color: #555; /* Darken the background on hover */
}

