body {
    margin: 0;
    display: flex;
    flex-direction: column;
    padding: 20px;
    position: relative;
    overflow: hidden;
    height: 100vh;
    background-color: #4a5568;
}

.background-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-size: 200px 200px;
    background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
                      linear-gradient(180deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    animation: movePattern 20s linear infinite, colorChange 10s ease-in-out infinite alternate;
}

@keyframes movePattern {
    0% {
        transform: translate(100px, 100px);
    }
    100% {
        transform: translate(-100px, -100px);
    }
}

@keyframes colorChange {
    0% {
        filter: hue-rotate(0deg);
    }
    100% {
        filter: hue-rotate(360deg);
    }
}

.container {
    position: relative;
    z-index: 2;
    height: auto;
    margin-top: 20px;
    text-align: center;
}

.rectangle {
    position: absolute;
    width: 150px;
    height: 75px;
    transform-origin: center;
    animation: spin 2s linear forwards;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.rect1, .rect2, .rect3, .rect4 {
    top: 20px;
    left: 20px;
}

.rect1 {
    background-color: #a8e6cf;
}

.rect2 {
    background-color: #ffd3b6;
}

.rect3 {
    background-color: #ffcc5c;
}

.rect4 {
    background-color: #ffb347;
}

.rectangle:hover {
    transform: scale(1.1) rotate(360deg);
    background-color: #6b705c;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.title {
    font-family: 'Arial', sans-serif;
    font-size: 72px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    opacity: 0;
    z-index: 3;
    transition: color 0.3s ease, transform 0.3s ease;
}

.title:hover {
    color: #ffcc5c;
    transform: scale(1.1);
}

.projects-container {
    position: relative;
    z-index: 4;
    margin-top: 5vh; /* Move higher on the page */
    padding-top: 10px;
    text-align: center;
    width: 100%;
    max-width: 600px;
    opacity: 0;
}

.projects-title {
    font-family: 'Arial', sans-serif;
    font-size: 36px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 10px;
}

.project-logo {
    width: 100%;
    max-width: 437.5px;
    height: auto;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.project-logo:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

.social-media {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    opacity: 0;
}

.social-icon {
    width: 75px;
    height: auto;
    margin: 0 10px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.social-icon:hover {
    transform: scale(1.2);
    opacity: 0.8;
}

.support-container {
    position: relative;
    z-index: 4;
    margin-top: 3vh;
    padding-top: 10px;
    text-align: center;
    width: 100%;
    max-width: 600px;
    opacity: 0;
}

.support-title {
    font-family: 'Arial', sans-serif;
    font-size: 32px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 10px;
}

.support-icon {
    width: 75px;
    height: auto;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.support-icon:hover {
    transform: scale(1.2);
    opacity: 0.8;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .title {
        font-size: 54px;
        top: 10px;
    }

    .projects-container {
        margin-top: 2vh; /* Reduce margin-top for mobile */
    }

    .support-container {
        margin-top: 2vh; /* Reduce margin-top for mobile */
    }

    .social-icon {
        width: 62.5px;
        margin: 0 5px;
    }
}
