/* creation of animation moving left in the header */
@keyframes moveInLeft {
    0% {
      opacity: 0;
      transform: translateX(-10rem); }
    80% {
      transform: translateX(1rem); }
    100% {
      opacity: 1;
      transform: translate(0); } }
  
  /* creation of animation moving right in the header */
  @keyframes moveInRight {
    0% {
      opacity: 0;
      transform: translateX(10rem); }
    80% {
      transform: translate(-1rem); }
    100% {
      opacity: 1;
      transform: translate(0); } }
  
  /* creating of button moving up when page loads*/
  @keyframes moveInBottom {
    0% {
      opacity: 0;
      transform: translateY(3rem); }
    100% {
      opacity: 1;
      transform: translate(0); } }

:root {
    --primary-color: #001d3d;
    --secondary-color: #ffc300;
    --third-color: #E63946;
    --fourth-color:  #003560;
    --fifth-color: lightgrey;
}

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--primary-color);
}

h3 {
    color: var(--secondary-color);
    font-weight: 500;
    font-size: 2rem;
}

.link-txt {
    color: var(--primary-color)
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.2); }
    .btn:hover::after {
      transform: scaleX(1.4) scaleY(1.6);
      opacity: 0; }

      .btn:active, .btn:focus {
        outline: none;
        transform: translateY(-1px);
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2); }
      
/* HOME PAGE STYLES */

nav {
    display: flex;
    justify-content: space-between;
    color: var(--secondary-color);
}

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

nav ul li {
    padding: 1.5rem;
    margin-right: 1.5rem;
    padding-right: 1rem;
    animation: moveInRight 3s ease-out;
}

.port-logo {
    animation: moveInLeft 3s ease-out;
}

.header-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    padding: 3rem;
    margin: 3rem;
    animation: moveInRight 3s ease-out;
}

.header-content div h1 {
    font-size: 4rem; 
    color: var(--secondary-color);
    justify-content: center;
    align-items: center;
    animation: moveInLeft 3s ease-out;
}

.info .role p {
    color: var(--third-color);
}

.header-content div p {
    color: var(--secondary-color);
    text-align: center;
}

.name {
    border-right: 3px solid #003560;
    padding-right: 2rem;
    animation: moveInLeft 3s ease-out;
}

.content-body p {
    padding-top: 2.2rem;
}

.social-icons {
  display: flex;
  gap: 50px;
  justify-content: flex-end;
  padding: 20px 30px;
  animation: moveInLeft 3s ease-out; 
  
}

.social-icons img {
    width: 30px;
    filter: invert(16%) sepia(45%) saturate(2564%) hue-rotate(185deg) brightness(88%) contrast(103%);
    opacity: 0.5; 
  }

  .buttons {
      display: flex;
      gap: 20px;
      grid-gap: 20px;
      justify-content: center;
      padding-top: 5%;
      /* animation: moveInBottom 3s ease-out; */
  }

  .btn {
      border: 2px solid var(--third-color);
      color: var(--secondary-color);
      padding: 5px 15px;
      box-shadow: rgb(242 108 79) 2px 2px 0px 0px;
      cursor: pointer;
  }

/* HOME PAGE STYLES END */

/* PROJECTS */
#projects {
    background-color: #003560;
    justify-content: center;
    align-items: center;
    padding: 50px 100px;
    flex-direction: column;
    gap: 50px;
    grid-gap: 50px;
    display: flex; 
}


.project-title,
.contact-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--secondary-color);
    text-decoration: underline;
    text-decoration-color: var(--third-color);
}

.project-title {
    padding-bottom: 2.5%;
}


.quiz,
.task,
.run-buddy,
.pw-gen,
.wrk-day,
.weather {
    display: flex;
    gap: 30px;
    max-width: 1200px;
    flex-direction: row;
    flex-wrap: no-wrap;
    padding: 1rem;
    margin-bottom: 5rem;
    /* align-items: center; */
}

.quiz img,
.task img,
.run-buddy img,
.pw-gen img,
.wrk-day img,
.weather img{
    width: 60%;
    /* animation: moveInLeft 3s ease-out; */
}

.content {
    display: flex;
    flex-direction: column;
    width: auto;
    gap: 15px;
    justify-content: center;
    /* animation: moveInRight 3s ease-out; */
}

.tech {
    display: flex;
    gap: 15px;
    color: var(--third-color)
}

.tech-html,
.tech-css,
.tech-js,
.tech-jquery,
.tech-bootstrap {
    padding: 3px 7px;
    font-size: 0.8rem;
    font-weight: 300;
    background: transparent;
    border-bottom: 1px solid gray;
    border-top: 1px solid gray;
}

.demo,
.resume {
    padding: 5px 15px;
    font-size: 1rem;
    border: 3px solid var(--third-color);
    color: var(--secondary-color);
    box-shadow: rgb(242 108 79) 2px 2px 0px 0px;
    cursor: pointer;
    transition: all 0.22s ease-in-out 0s;
}

.github {
    padding: 5px 15px;
    font-size: 1rem;
    color: rgb(194, 194, 194);
    box-shadow: rgb(194, 194, 194) 2px 2px 0px 0px;
    cursor: pointer;
}

.description,
.info .content-body p {
    color: lightgrey;
}

/* CONTACT */

.contact-footer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 50px;
}

.contact-title {
    padding: 2.5% 0;
}

.contact-info h3 {
    color: var(--third-color);
    
}

.wrapper {
    display: flex;
    padding: 50px;
    grid-gap: 50px;
    gap: 50px;
    justify-content: center;
    align-items: center;
}

form {
 width: 50%;
 background: var(--fourth-color);
 padding: 30px;
 border-radius: 10px;
 box-shadow: 0 5px 10px 0 var(--third-color);
}

.details {
    display: flex;
    flex-direction: column;
    grid-gap: 15px;
    gap: 15px;
}

form input, textarea {
    padding: 10px 20px;
    outline: none;
    border: 1px solid var(--third-color);

}

textarea {
    width: 100%;
    resize: none;
}

.message {
    margin: 15px 0;
}

.message p {
    margin-bottom: 10px;
    color: var(--secondary-color)
}

form button {
    padding: 5px 15px;
    font-size: 1rem;
    border: 3px solid var(--third-color);
    color: var(--secondary-color);
    box-shadow: 4px 2px 0 0 var(--secondary-color);
    cursor: pointer;
}

.contact-info {
    width: 50;
    display: flex;
    flex-direction: column;
    grid-gap: 30px;
    gap: 30px;
}

.contact-body {
    color: lightgrey;
}
.socials {
    color: var(--secondary-color)
}

.social a {
    display: inline-block;
}

/* CONTACT END */

/* FOOTER */

#footer {
    display: flex;
    background: var(--fourth-color);
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    padding: 20px 100px;
    color: var(--secondary-color);
    width: 100%;
}

/* MEDIA QUERIES */

/*575*/
@media (max-width: 420px) {

    h3 {
        font-weight: 500;
        font-size: 1.2rem;
    }

    /* HEADER */
    nav {
        flex-direction: column;
        gap: 15px;
        align-items: center;
      }
      nav ul {
        font-size: 15px;
        gap: 15px;
      }
      nav img {
        width: 100%;
      }

      .header-content {
        margin: auto;
        gap: 0px;
      }
      .header-content h1 {
        font-size: 3.5rem;
      }
    
      .social-icons img {
        width: 20px;
      }
    
      .header-content .content-body {
        font-size: 15px;
        padding: 0 20px;
      }
    
    /* PROJECTS */  
    #projects {
        padding: 50px 20px;
        width: 100%;
        
      } 

    /* .project-container h3 {
        font-weight: 700;
        font-size: 100px;
    }   */
    
    .quiz img,
    .task img,
    .run-buddy img,
    .pw-gen img,
    .wrk-day img,
    .weather img {
        width: auto;
        height: 50%;

    }

    .quiz,
    .task,
    .run-buddy,
    .pw-gen,
    .wrk-day,
    .weather {
        display: flex;
        flex-wrap: wrap; 
        
    }
/* CONTACT STYLES      */

.contact-title, form {
    margin: 7% 0;
}

/* form {
    margin: 7% 0;
} */
    
    /* Footer styles */
      footer p {
          align-items: center;
          justify-content: center;
          display: inline-block;
      }
      
}

@media (max-width: 768px) {

    .contact-title {
        margin: 2.5% 0;
    }

    form {
        margin-bottom: 10%;
    }

    #projects {
        width: 100%;
    }

}

/*980*/ /*800*/
@media (max-width: 800px) {

    /* HEADER */

    .header-content {
        flex-direction: column;
        gap: 15px;
        margin-top: 50px;
      }
    
      .header-content h1 {
        text-align: center;
      }
    
      .social-icons {
        justify-content: center;
      }
    
      .header-content h1::before {
        display: none;
      }
    
      .header-content .info {
        text-align: center;
        align-items: center;
      }

      .name {
        border-right: none;
    }

    /* PROJECTS */
    #projects {
        padding: 50px 30px;
        width: 100%;
      }


    /* CONTACT */
    .contact-section {
        padding: 15px;
      }
      .wrapper {
        flex-direction: column;
        padding: 15px;
      }
    
      form {
        width: 100%;
        margin-bottom: 10%;
      }
      
      .contact-title {
          padding: 7%
      }
    
      .contact-info {
        width: 100%;
      }
    
      /* .contact-info h3 {
          font-weight: 700;
      } */

    .quiz,
    .task,
    .run-buddy,
    .pw-gen,
    .wrk-day,
    .weather {
        display: flex;
        flex-wrap: wrap; 
        
    }

    .quiz img,
    .task img,
    .run-buddy img,
    .pw-gen img,
    .wrk-day img,
    .weather img {
        width: auto;
        height: 50%;

    }

    #footer {
        display: flex;
        flex-direction: column;
      }
}

