body, html {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-width: 250px;
}

#birdCanvas {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
}

.menu-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 10;
}

.logo svg {
    height: 30px;
}

.menu-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    color: #333;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-items {
    display: flex;
    gap: 1rem;
}

.menu-items a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
}

.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.main-title {
    font-family: 'Poppins', sans-serif;
    font-size: 4rem;
    color: #333;
    font-weight: 700;
    position: relative;
}

.main-title span {
    display: inline-block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 40px;
    background-color: rgba(255, 255, 255, 0.8);
    width: 100%;
    box-sizing: border-box;
}

.spacer {
    height: 100vh; /* This creates a space equal to 100% of the viewport height */
    width: 100%;
}

.grid-item {
    display: flex;
    flex-direction: column;
    background-color: #f0f0f0;
    border-radius: 15px;
    overflow: hidden;
    /* Remove the following line to eliminate the shadow */
    /* box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); */
    position: relative;
}

.grid-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.grid-item p {
    margin: 0;
    padding: 15px;
    font-size: 14px;
    color: #333;
    font-weight: 300;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.overlay p {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    padding: 20px;
}

.grid-item:hover img {
    transform: scale(1.1);
}

.grid-item:hover .overlay {
    opacity: 1;
}

@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: 1fr; /* Stack items vertically on small screens */
    }
}

@media (prefers-reduced-motion: no-preference) {
    body {
        scroll-behavior: smooth;
    }
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.grid-item {
    text-align: center;
}

.grid-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.grid-item p {
    margin-top: 10px;
}

/* Ensure the main content area takes full width */
main {
    width: 100%;
    flex: 1;
    min-height: 100vh;
}

.intro-section {
    padding: 40px;
    background-color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    padding-top: 80px; /* Adjust this value based on your header height */
    margin-top: -80px; /* This negative margin offsets the padding */
}

.intro-section p {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.footer-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.8);
    margin-top: 40px;
    min-height: 100px; /* Ensure minimum height */
}

.footer-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    color: #333;
    font-weight: 500;
    text-align: center;
    white-space: pre-wrap; /* Preserve spaces and line breaks */
}

/* Adjust font size for smaller screens */
@media (max-width: 768px) {
    .footer-title {
        font-size: 1rem;
    }
}

/* Ensure the footer stays at the bottom */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

.footer {
    position: fixed;
    bottom: -60px; /* Start off-screen */
    left: 0;
    width: 100%;
    background-color: #f0f0f0;
    text-align: center;
    transition: bottom 0.3s ease-in-out;
    z-index: 1000;
}

.footer-content {
    padding: 20px;
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    color: #333;
}

.footer-content span {
    display: inline-block;
    margin: 0 5px;
}

.footer-content span:nth-child(2) {
    transform: rotate(-5deg);
}

.footer-content span:nth-child(3) {
    transform: rotate(5deg);
}

.footer-content span:nth-child(4) {
    transform: rotate(-5deg);
}

.footer.visible {
    bottom: 0;
}

.footer-title {
    font-family: 'Poppins', sans-serif;
    font-size: 4rem;
    color: #333;
    font-weight: 500;
    text-align: center;
}

@media (max-width: 768px) {
    .footer-title {
        font-size: 2rem;
    }
}

.footer-title span {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28), opacity 0.3s ease;
}

/* Removed the hover effect on individual letters */

@media (max-width: 399px) {
    .menu-title {
        display: none;
    }
    
    .menu-bar {
        justify-content: space-between; /* Adjusts spacing if needed */
    }
    
    .logo {
        margin-right: auto; /* Pushes logo to the left */
    }
    
    .menu-items {
        margin-left: auto; /* Pushes menu items to the right */
    }
}
