@import url('https://fonts.googleapis.com/css2?family=Comfortaa:wght@300&family=Righteous&display=swap');

*, ::before, ::after{
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}
:root{
  --background-color: #272727;
  --text-color: #fdfcfb;
  --primary-color: #d558c8;
  --secondary-color: #24d292;
}
a{
  text-decoration: none;
  color: var(--text-color);
}
/*SCROLLBAR*/
::-webkit-scrollbar {
  background: #0b0d10;
}
::-webkit-scrollbar-thumb {
  background: #f4f2ef;
  border-radius: 8px;
  border: 1px solid var(--background-color);
}
::-webkit-scrollbar-thumb:hover {
  background: #c7c5c3;
}
::-webkit-scrollbar-thumb:active {
  background: #9b9a98;
}

/*BODY*/
body{
  background: var(--background-color);
  color: var(--text-color);
  font-family: 'Comfortaa', cursive;
}

/*NAV BAR*/
#top-page{
  width: 100%;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  background: var(--background-color);
  z-index: 1;
}
#top-page > a{
  text-decoration: none;
  font-size: 1.5rem;
  color: var(--text-color);
}
.ana{
  font-family: 'Righteous', cursive;
  letter-spacing: 3;
}
#navbar{
  display: flex;
  gap: 12px;
}
#navbar > a{
  text-decoration: none;
  color: var(--text-color);
  padding: 4px;
}
#navbar > a:hover{
 background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
 border-radius: 4px;
 font-weight: bold;
}

/*WELCOME SECTION*/
#welcome-section{
  min-height: 100vh;
  background: #272727;
  margin-top: -52px;
  display:  flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

#welcome-section h1 {
  font-size: 4rem;
  font-family: 'Righteous', cursive;
  letter-spacing: 3;
  background: rgb(131,58,180);
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  background-clip: text;
    -webkit-background-clip: text;
    -moz-background-clip: text;
    -webkit-text-fill-color: transparent; 
    -moz-text-fill-color: transparent;
    position:relative;
}
#welcome-section h3 {
  font-size: 2rem;
  margin-bottom: 8px;
}


/*ABOUT SECTION*/
#about{
  width: 100%;
  background: #d8d8d8;
  color: var(--background-color);
  padding: 128px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 128px;
  text-align: center;
  gap: 12px;
  font-size: 1.2rem;
}
.material-symbols-outlined{
  vertical-align: sub;
}
#contact-info a:first-of-type{
  margin-right: 12px;
}

#contact-info > a:hover{
  color: black;
  cursor: pointer;
}

/*PROJECTS*/
#projects{
  padding-top: 64px;
  margin: 0 32px 128px;
}
#projects h3{
  margin-bottom: 32px;
  text-align: center;
  font-size: 2rem;
  font-family: 'Righteous', cursive;
  letter-spacing: 2;
}

.projects-container{
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  justify-content: space-around;
}

.project-card{
  box-shadow: rgba(0, 0, 0, 0.5) 0px 1px 6px, rgba(0, 0, 0, 0.6) 0px 1px 2px;
  padding: 16px;
  max-width: 650px;
}

.project-img{
  width: 100%;
  margin-bottom: 1.5rem;
  object-fit: cover;
}
.project-title{
  font-size: 1.2rem;
  display: block;
  margin: 0 auto 8px;
}

.project-description{
  line-height: 140%;
  font-size: 0.9rem;
}
/*CONTACT SECTION*/
#contact{
  display: flex;
  justify-content: space-around;
  gap: 32px;
  padding: 32px;
  place-items: center;
  margin-bottom: 128px;
}
#contact > header h3{
  margin-bottom: 12px;
  font-size: 2rem;
  letter-spacing: 1;
}
#contact > header h3 span{
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  padding: 4px;
  border-radius: 8px;
  line-height: 3rem;
}
#contact > header p{
  font-size: 1.3rem;
}
#contact > form{
  width: 40%;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
#contact > form > input{
  margin-bottom: 12px;
}
#contact > form > input, textarea{
  padding: 8px;
  border-radius: 4px;
  border: none;
}

#submit{
  background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
  color: white;
  font-weight: bold;
  font-size: 1rem;
  border: none;
  padding: 0.5em;
  border-radius: 4px;
  margin-top: 8px;
}

#submit > span{
  vertical-align: -20%;
  font-size: 1.5rem;
}

/*FOOTER*/
footer{
  padding: 16px;
  font-size: 0.9rem;
  margin-left: 32px;
}

/*MEDIA QUERIES*/

@media (max-width:800px) {
  #welcome-section h1 {
    font-size: 3rem;
  }
  #welcome-section h3 {
    font-size: 1.5rem;
  }
}
@media (max-width:850px) {
  #contact{
    display: block;
    margin: auto;
    
  }
  #contact > header{
    margin-bottom: 64px;
    text-align: center;
  }
  #contact > form{
    width: 100%;
    margin: auto;
    margin-bottom: 128px;
  }
}
