* {
    background-color: rgb(42, 40, 40);
}

#name {
    font-size: 160px;
    color: blanchedalmond;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-top: 50px;   
    animation: fadeIn 2.6s ease-out;
 
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


#aboutnav {
    margin-left: 30px;
    font-size: 35px;
    display:inline-flex;    /* only as wide as content */
    align-items: center;
    justify-content: center;
    padding: 8px 25px;  /* space around nav items */
    background-color: #5C80BC; /* curved container color */
    border-radius: 30px;  /* round corners */
    transition: all 0.3s ease;

}


#contactnav {
    margin-left: 1180px;
    font-size: 35px;
    display:inline-flex;    /* only as wide as content */
    align-items: center;
    justify-content: center;
    padding: 8px 25px;  /* space around nav items */
    background-color: #5C80BC; /* curved container color */
    border-radius: 30px;  /* round corners */
    transition: all 0.3s ease;

}


#contactnav:hover{
    background-color: #960000; /* New color on hover */
    cursor: pointer; /* Changes cursor to a hand pointer */
    background-color: #960000;
    transform: translateY(-7px);
}


#aboutnav:hover{
    background-color: #960000; /* New color on hover */
    /* cursor: pointer; /* Changes cursor to a hand pointer */
    background-color: #960000;
    transform: translateY(-7px);
}

#scrolltextanimation {

 animation: bounceText 1.5s infinite ease-in-out;

}

@keyframes bounceText {
    0%   { transform: translateY(0); }
    50%  { transform: translateY(-15px); }
    100% { transform: translateY(0); }

}

#arrowimage {
    height: 60px;
    width: 130px;
   margin-left: 650px;
   transform: rotate(45deg);
   color: #960000;

}



#image-box-1 {
margin-right: 30px ;
    
}


#image-box-2 {
    margin-right: 30px ;
        
    }


#image-box-3 {
    margin-right: 30px ;
        
    }


#image-box-4 {
    margin-right: 30px ;
        
    }


#image-box-5 {
    margin-right: 30px ;
        
    }


#image-box-6 {
    margin-right: 30px ;
        
    }


#contactheader {
    font-size: 100px;
    font-family: monospace;
    color:blanchedalmond;
}

.image-row {
    display: flex;
    gap: 330px; /* space between images */
    margin-left: 80px;
    margin-right: 80px;
    margin-top: 200px;
    margin-bottom: 200px;
  }
  
  .image-row img {
    width: 500px; /* adjust size */
    height: 500px;
    border-radius: 8px;
  }

.projects-grid{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px; /*space between projects */
    padding: 100px;
}

.projects-card{
    display: flex;
    flex-direction: column;
    align-items: center;
    color: blanchedalmond;
    font-family: monospace;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    animation: fadeUp 1s ease forwards; 
}
/*Note:nth-child = _child of a parent. For example nth-child (3), means third child of the parent element */
.projects-card:nth-child(1) {animation-delay: 0.2s; }
.projects-card:nth-child(2) {animation-delay: 0.4s; }
.projects-card:nth-child(3) {animation-delay: 0.6s; }
.projects-card:nth-child(4) {animation-delay: 0.8s; }
.projects-card:nth-child(5) {animation-delay: 1s; }
.projects-card:nth-child(6) {animation-delay: 1.2s;}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.projects-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 25px rgba(92, 128, 188, 1);
}

.project-card img {
    width: 100%;
    max-width: 450px;
    border-radius: 12px;
    background-color: white;
  }

  .nameheader {
    display: grid;
    flex-direction: row;
  }

  


  /*768px and under_tablets*/
@media (max-width: 768px) {
    
  h1{
    font-size: medium;

  }

}


/*520px and under_mobile*/
@media (max-width: 520px) {
    h1{
        font-size: x-small;
    }
    

}