/* Reset some default styles */
body, h1, p, ul {
    margin: 0;
    padding: 0;
}

/* Apply a background color to the body */
body {
    background-color: #f5f5f5;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* Style the header */
header {
    background-color: #f5f5f5;
    color: #000;
    padding: 10px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

nav ul {
    list-style: none;
    display: flex;
}

nav li {
    margin-right: 20px;
}

nav a {
    text-decoration: none;
    color: #000;
    font-weight: 500;
}

.content {
    margin-top: 75px;
}

/* Style the Mainlink */
#mainlink {
     position: absolute;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     opacity: 0; /* Make it invisible */
     z-index: 1; /* Ensure it's on top of the div */
     color: inherit;
}

/* Style the hero section */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.first {
    text-align: center;
    padding: 150px 0;
    animation: fadeIn 1s ease-in-out;
    align-items: center;
}

.first h1 {
    font-size: 48px;
    margin: 20px 0;
    color: #000;
}

.first p {
    font-size: 20px;
    color: #555;
}

@keyframes fadeIn2 {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0); /* Move it back to its original position */
    }
}

.second {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    animation: fadeIn2 1s ease-in-out forwards;
}

.second h1 {
    margin: 20px 0;
    align-items: center;
    text-align: center;
    color: #000;
}

.projects {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.project {
    width: calc(100% / 3);
    max-width: 300px;
    margin: 20px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
}

.project img {
    width: 100%;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    transition: .5s ease;
    backface-visibility: hidden;
    display: block;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.third {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.third h1 {
    margin: 20px 0;
    align-items: center;
    text-align: center;
    color: #000;
}

.participate {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.participate-item {
    width: calc(100% / 3);
    max-width: 300px;
    margin: 20px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.participate-item img {
    width: 100%;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    transition: opacity 0.3s ease;
    backface-visibility: hidden;
    display: block;
    /* Prevent Selection */
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.participate-item h2 {
    margin: 8px 0 10px;
    color: #333;
    /* Prevent Selection */
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.participate-item p {
    color: #666;
    margin: 0px 0 11px;
    /* Prevent Selection */
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.description {
    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;
}

.description p {
    color: white;
    padding: 20px;
    text-align: center;
    /* Prevent Selection */
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.participate-item:hover img {
    opacity: 0.3;
}

.participate-item:hover .description {
    opacity: 1;
}

@media only screen and (max-width: 768px) {
    .participate-item {
        width: 100%;
        max-width: 300px;
    }
    .project {
        width: 100%;
        max-width: 300px;
    }
}

