body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #4a5442;
    position: relative;
    min-height: 100vh;
    overflow: hidden; /* Prevent body scroll */
}

.logo {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    max-width: 300px;
    height: auto;
    filter: none;
    transition: all 0.5s ease;
}

.logo.scrolled {
    top: 10px;
    left: 20px;
    transform: none;
    max-width: 150px;
}

.logo-red {
    filter: hue-rotate(120deg) saturate(2); /* Makes the logo reddish */
}

.logo-blue {
    filter: hue-rotate(240deg) saturate(1.5); /* Makes the logo bluish */
}

.logo-green {
    filter: hue-rotate(80deg) saturate(1.5); /* Makes the logo greenish */
}

h1 {
    color: #999;
    font-size: 50px;
    text-align: center;
    margin-top: 20px;
}

.sneeze-container {
    position: absolute; /* Changed to absolute to avoid being pushed down */
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.sneeze-object {
    position: absolute;
    width: 100px;
    height: auto;
    left: -100%; /* Start completely off-screen */
    transition: left 0.8s ease-in-out; /* Smoother transition for peeking */
    cursor: pointer; /* Show pointer cursor on hover */
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.2)); /* Add subtle shadow */
}

.sneeze-object:hover {
    filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.4)); /* Enhanced shadow on hover */
    transform: scale(1.05); /* Slightly enlarge on hover */
}

/* Plants link container */
.plants-link-container {
    margin: 0;
    padding: 0;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 20;
}

/* Plants link styling */
.plants-link {
    color: #4a7c3a; /* Warm foresty green */
    text-decoration: none; /* Remove underline */
    font-size: 16px;
    padding-bottom: 2px; /* Space for the underline */
    transition: color 0.3s ease;
    position: relative;
    display: inline-block;
}

.plants-link:hover {
    color: #5c9c48; /* Slightly lighter green on hover */
}

.plants-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: #5c9c48;
    transition: width 0.8s ease; /* Slow transition for the underline */
}

.plants-link:hover::after {
    width: 100%; /* Full width on hover */
}

/* Square shapes styling */
#shapes-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
}

.square-shape {
    position: absolute;
}

/* Project Cards Styling */
#projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    padding: 1rem;
    position: fixed;
    top: 340px;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 90%;
    max-width: 1200px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
    z-index: 1;
    transition: top 0.9s ease;
}

#projects-container.scrolled {
    top: 200px;
}

/* Custom scrollbar for projects container */
#projects-container::-webkit-scrollbar {
    width: 6px;
}

#projects-container::-webkit-scrollbar-track {
    background: transparent;
}

#projects-container::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

#projects-container::-webkit-scrollbar-thumb:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.project-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1rem;
    width: 300px;
    height: 200px; /* Fixed height instead of aspect ratio */
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    box-sizing: border-box;
}

.project-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.project-header {
    margin-bottom: 0.75rem;
}

.project-title {
    font-size: 1.2rem;
    margin: 0;
    color: #fff;
    font-weight: 600;
}

.project-date {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
    display: block;
    margin-top: 0.25rem;
}

.project-content {
    display: flex;
    flex: 1;
    gap: 1rem;
}

.project-description {
    flex: 1;
    font-size: 0.8rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.8);
    overflow-y: auto;
}

.project-thumbnail {
    width: 90px;
    height: 67.5px; /* Maintains 4:3 ratio */
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
}

.project-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-thumbnail img {
    transform: scale(1.05);
}

/* Custom scrollbar for project description */
.project-description::-webkit-scrollbar {
    width: 3px;
}

.project-description::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.project-description::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

.project-description::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Mobile and Tablet styles */
@media screen and (max-width: 1024px) {
    #projects-container {
        grid-template-columns: minmax(300px, 1fr);
        max-width: 300px;
        top: 340px;
    }

    #projects-container.scrolled {
        top: 180px;
    }

    .logo.scrolled {
        top: 10px;
        left: 20px;
        transform: none;
        max-width: 150px;
    }
}

/* Tablet styles */
@media screen and (min-width: 768px) and (max-width: 1024px) {
    #projects-container {
        grid-template-columns: repeat(2, 1fr);
        max-width: 700px;
    }
}

/* Desktop styles */
@media screen and (min-width: 1025px) {
    #projects-container {
        grid-template-columns: repeat(3, 1fr);
        max-width: 1200px;
    }

    .logo.scrolled {
        top: 10px;
        left: 20px;
        transform: none;
        max-width: 150px;
    }
}