/* variables */
:root{
    --color-white: #fff;
    --color-light-gray: rgba(255, 255, 255, 0.568);
    --transition-duration: .3s;
    --dark-background-color: rgb(7, 17, 102);
    --text-color: rgb(22, 57, 35);
}


/* settings */
*,
::after,
::before{
    padding: 0;
}

html {
  scroll-behavior: smooth;
}

body{
    background-color: #2a2a2c;
    box-sizing: border-box;
    font-family:  "Source Code Pro", monospace;
}

a,
button,
input,
textarea,
svg * {
    transition: all var(--transition-duration) ease;
}

p{
    margin: 0;
}

a{
    text-decoration: none;
    color: var(--color-white);
}

ul,
ol,
li{
    list-style-type: none;
}


/* utils */
.invisible{
    display: none;
    font-size: 0;
    margin: 0;
    padding: 0;
    color: none;
    text-decoration: none;
    text-transform: none;
    width: 0;
    height: 0;
}

.container{
    max-width: 1500px;
    margin-inline: auto;        
    padding: 100px 50px 50px 50px;
    background-color: #829d71;
}

.title{
    font-size: clamp(32px, 5vw, 70px);
    text-align: center;
    color: #046015;
    margin-bottom: 50px;
}

/* animations */

.opacity-animation{
    animation: transition-of-container  1s ease forwards;
}

.text-animation{
    animation: text-animation 1.5s ease forwards;
}

@keyframes transition-of-container {
    0%{
        opacity: 0.5;
    }

    100%{
        opacity: 1;
    }
}

@keyframes text-animation {
    0%{
        opacity: 0;
        transform: translateY(20px)
    }

    100%{
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes nav-transition {
    0%{
        top: -100px;
    }
    
    40%{
        top: -70px
    }

    65%{
        top: -80px;
    }

    100%{
        top: 0px;
    }
}


/* header */
.header__nav{
    position: fixed;
    display: flex;
    top: 0;
    left: 0;
    width: 100%;
    justify-content: space-around;
    background-color: var(--dark-background-color);
    padding: 20px;
    animation: nav-transition 2s ease forwards;
    z-index: 1;
}

.header__nav-links{
    display: flex;
    align-items: center;
    column-gap: clamp(10px, 1.04vw, 20px);
    font-size: 20px
}

.header__link:hover{
    color: var(--color-light-gray);
    transition: color var(--transition-duration);
}

.header__svg-a-logo{
    transition: transform var(--transition-duration);
    cursor: pointer;
}

.header__svg-a-logo:hover{
    transform: scale(1.15);
}


/* about me section */
.about-me{
    display: flex;
    position: relative;
    justify-content: center;
    align-items: center;
    color: var(--color-white);
}

.about-me__container{
    display: flex;
    row-gap: 25px;
    width: 100%;
    flex-direction: column;
    align-items: center;
    padding: 125px;
    background-color: #2d4c33;
    box-shadow: 0 0 25px #1f3423;
    margin-block-end: -50px;
}

.about-me__title{
    font-size: 40px;
}

.about-me__desc{
    display: flex;
    line-height: 1.8;
    font-size: 20px;
    max-width: 1200px;
}

/* Goals section fixed */
.goals__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr); 
  gap: 20px;                              
  grid-auto-rows: minmax(140px, auto);    
  justify-items: stretch;                 
  align-items: stretch;
}


.goals__list-item {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #69a76d;
  padding: clamp(30px, 3vw, 70px);
  font-size: 30px;
  /* border-radius: 20px; */
  color: var(--text-color);
  box-shadow: 0 0 20px #1f3423;
  transition: all var(--transition-duration);
  width: 100%;     
  text-align: center;
  box-sizing: border-box;
  cursor: default;
}

.goals__list-item:not(:last-child){
    margin-top: 20px;
}


.goals__list-item:hover {
  background-color: var(--text-color);
  color: #69a76d;
  box-shadow: 0 0 20px #1f3423 inset;
}


.goals__list-item:last-child {
  grid-column: 2 / 4; 
  font-size: 40px;
  font-weight: 700;
}


/* Projects */
.projects__figure{
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    row-gap: 30px;
}

.projects__figure{
    margin-top: 100px;
}

.projects__link{
    font-size: 20px;
    text-decoration: dashed;
    transition: all var(--transition-duration);
    background-color: #2d4c33;
    padding: 20px 50px;
    border-radius: 50px;
    font-weight: 600;
}

.projects__link:hover{
    transform: scale(1.1);
}

.projects__link:active{
    transform: scale(1);
    color: #1f3423;
}


.projects__img{
    max-width: 800px;
}

/* Footer */
.footer{
    width: 100%;
    background-color: #2a2a2c;
    text-align: center;
}

.footer__container{
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-direction: column;
    row-gap: 50px;
    color: #829d71;
}

.footer__list{
    display: flex;
    flex-direction: row;
    column-gap: 20px;
    font-size: 20px;
}

.footer__text{
    font-size: 25px;
}

.footer__text:not(:last-child){
    margin-top: 50px;
}




@media (max-width: 1200px) {
  /* My goals */
  .goals__list {
    grid-template-columns: repeat(2, 1fr);
  }

  .goals__list-item:last-child {
    grid-column: 1 / -1; 
  }

  /* Projects */
  .projects__img{
    width: 600px;
  }

  .projects__link{
    font-size: 18px;
    padding: 20px;
  }

  .projects__title{
    font-size: 25px;
  }

  .footer__list{
    flex-direction: column;
    align-items: center;
    justify-content: center;
    row-gap: 20px;
  }
}


@media (max-width: 768px) {
  .goals__list {
    grid-template-columns: 1fr;
  }

  .goals__list-item:last-child {
    grid-column: auto; 
  }

   /* My projects */

    .projects__img{
        width: 400px;
  }

  .projects__link{
    font-size: 15px;
    padding: 15px;
  }

  .footer{
    font-size: 10px;
  }
}

@media (max-width: 425px) {
    .header__nav{
        row-gap: 15px;
        overflow: scroll;
    }

    .header__svg-a-logo{
        display: none;
    }

    .header__nav-links{
        font-size: 16px;
    }

    .about-me__title{
        font-size: 25px;
    }   

    .about-me__desc{
        font-size: 16px;
    }

    .about-me__container{
        padding-inline: 20px;
    }


    .projects__img{
        width: 300px;
  }

  .footer__text:not(:last-child){
        margin: 20px;
  }

  .footer__text{
    font-size: 18px;
  }

  .footer__list{
    font-size: 18px;
  }
}