body{
    margin: 0%;
    padding: 0%;
    font-family:Verdana, Geneva, Tahoma, sans-serif;
    background-color: #543521;
    scroll-behavior: smooth;
}




header{
    height: 800px;
    background-color: rgb(255, 255, 255);
    left: 0;
    bottom: 0;
    width: 100%;  
    background-image: url(/images/backgroud-image-sky-5.png); 
    margin-bottom: -70px;
}

.arrow {
    position: absolute;
    top: 70%;
    left: 50%;
    transform: translate(-50%, -50%);
    transform: rotate(0deg);
    cursor: pointer;
    animation: fadeIn 1.5s ; 
}

.arrow span {
    display: block;
    width: 1.5vw;
    height: 1.5vw;
    border-bottom: 5px solid rgb(184, 184, 184);
    border-right: 5px solid rgb(185, 185, 185);
    transform: rotate(45deg);
    margin: -10px;
    animation: animate 2s infinite;
}

.arrow span:nth-child(2) {
    animation-delay: -0.2s;
}

.arrow span:nth-child(3) {
    animation-delay: -0.4s;
}

@keyframes animate {
    0% {
        opacity: 0;
        transform: rotate(45deg) translate(-20px, -20px);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: rotate(45deg) translate(20px, 20px);
    }
}

main{
    background-color: #2b2019;
    height: fit-content;
    text-align: center;
    color: white;
    margin: 0%;
    padding-left:  50px;
    padding-right: 50px;
    padding-bottom: 50px;
}


.logo{
    text-align: center;
    bottom: 50%;
    opacity: 1;  
    animation: fadeIn 1.5s ; 
}

@keyframes fadeIn {  
    from {  
        opacity:0;  
    }  
 
    to {  
        opacity:1;  
    }  
 }

.main-title{
    margin-top: 70px;
    font-size: x-large;
    margin-bottom: 70px ;
    transform: translate(0%, 50%);
}


.corner-points{
    position: relative;
}

.top-corner-left{
    position: absolute;
    left: -50px;
    top: -123px;
}

.top-corner-right{
    position: absolute;
    left: 1390px;
    top: -123px;
}

.bottom-corner-left{
    position: absolute;
}

.bottom-corner-right{
    position: absolute;
}

.project{
    width: 350px;
    height: 350px;
    background-color: #2b2019;
    padding: 1em;
    border: 10px double;
    border-radius: 10px;
    margin-bottom: 100px;
}

.project{
    padding: 0%;
    display: grid;
    grid-template-columns: 350px;
    grid-template-rows: 300px 50px;
    justify-content: center;
    align-items: center;
    grid-row-start: 1;
    grid-row-end: 3;

    transition: transform .6s;
}

.project:hover {
    transform: scale(1.1);
    background-color: #3f2e24;
  }

.project-title{
    display: flex;
    justify-content: center;
    align-items: center;
    grid-row-start: 2;
    grid-row-end: 3;
}

.projects{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
    padding: 20px;
}

footer{
    height: 50px;
    background-color: #543521;
    left: 0;
    bottom: 0;
    width: 100%;    
    color: white;
    text-align: center;
    font-size: xx-large;
    position: relative; 
    transform: translate(0%, 25%);
   
}

footer a{
    text-decoration: none;
    color: white;
}


/* Project page */ 

.project-page{
    display: grid;
    grid-template-columns: 50%,50%;
    grid-template-rows: 300px 500px;
    height: fit-content;
}

.project-members{
    background-color: #2b2019;
    grid-column-start: 1;
    grid-column-end: 3;
    grid-row-start: 1;
    grid-row-end: 2;
    margin: 1em;
}

.project-members h1{
    text-align: center;
    transform: translate(0%, -50%);
    padding: 20px;
}

.project-members img{
    align-items: center;
    transform: translate(0%, -10%);
    margin-left: 30px;
    margin-right: 30px;
    justify-content: space-around;
    transition: transform .6s;
    width: 150px;
    height: 225px;
    border: 1px double;
    border-radius: 10px;
    text-decoration: none !important;
    border:0px !important;
    outline:none;
    border-width: 0px;
    outline-width:0px;
    border-bottom: none;

}

.project-members img:hover {
    transform: scale(102%);
    transition: 1s ease;
    opacity: 0.7; /* Reduce opacity on hover */
}

.project-members .member-text {
    opacity: 0; /* Initially hide the text */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    transition: opacity 0.5s ease;
}

.project-members:hover .member-text {
    opacity: 1; /* Reveal text on hover */
}


.project-members img:hover {
    transform: scale(102%);
    transition: 1s ease;
    opacity: 0.3;
    
  }

.project-about{
    background-color: #2b2019;
    grid-column-start: 2;
    grid-column-end: 3;
    grid-row-start: 2;
    grid-row-end: 3;
    margin: 1em;
    text-align: left;
    padding-top: 1em;
    height: fit-content;
    padding-top: 50px;
}

.project-image{
    grid-column-start: 1;
    grid-column-end: 2;
    margin: 30px;
    height: fit-content;
    padding-top: 50px;
}















/* Media Queries */ 

@media only screen and (max-width: 1200px) {
    .project-image img{
        width: 600px;
    }
  }


@media only screen and (max-width: 1000px) {
    .logo img{
        width: 700px;
    }

    .project-image img{
        width: 500px;
    }
  }

  @media only screen and (max-width: 750px) {
    .logo img{
        width: 500px;
    }
  }

 @media only screen and (max-width: 600px) {
    .logo img{
        width: 390px;
    }
  }


  @media only screen and (max-width: 600px) {
    .project-page {
        grid-template-columns: 100%; 
        grid-template-rows: auto;
    }

    .project-members,
    .project-about,
    .project-image {
        grid-column-start: auto; 
        grid-column-end: auto;
        margin: 0; 
        padding: 1em; 
    }

    .project-members img,
    .project-image img {
        width: 100%; 
        max-width: 100%; 
        height: auto;
    }
}

/* Media Query for Mobile Devices */
@media only screen and (max-width: 600px) {
    .project-page {
        grid-template-columns: 100%; 
        grid-template-rows: auto; 
    }

    .project-members,
    .project-about,
    .project-image {
        grid-column-start: auto; 
        grid-column-end: auto;
        margin: 0; 
        padding: 1em; 
    }

    .project-members img {
        width: 100%; 
        max-width: 100%; 
        height: auto; 
        display: block; 
        margin: 0 auto; 
        margin-bottom: 10px; 
        transition: transform 0.6s, opacity 0.6s; 
    }

    .project-members img:hover {
        transform: scale(1.02);
        opacity: 0.7; 
    }

    .project-members .member-text {
        opacity: 0; 
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        color: white;
        text-align: center;
        transition: opacity 0.5s ease;
    }

    .project-members:hover .member-text {
        opacity: 1;
    }
}
