/* =========================
   GLOBAL
========================= */

@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap');

* {
  box-sizing: border-box;
  font-family: 'Lato', sans-serif;
}

body {
  background-color: rgb(243, 243, 248);
  margin: 0;
  padding: 0;
}

/* =========================
   HEADER / INFO CARD
========================= */
.info{
  display: flex;
  flex-flow: row;
  justify-content: center;
  border: 1px solid #e0e0e0;
  width: 96vw;
  height: 85px;
  border-radius: 6px;
  margin: 40px auto 40px auto;
  
  
  
}
header {
  display: flex;
  flex-flow: row nowrap;
  justify-content:space-evenly;
  align-items: center;
  width: 96vw;
  padding: 8px;
}

/* Avatar */
.pic {
  grid-row: 1 / span 2;
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  border: 1px solid #e0e0e0;
  border-radius: 100%;
  overflow: hidden;

  
}
.canvas{
  
  
   width:180px;
   
}
.namePic{
  display: flex;
  flex-flow: row nowrap;
  width:32%;
  
  align-items: center;
  gap: 10px;
  justify-content: flex-start;
  
}

.pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Name */
.name {
  flex-shrink: 0;
  font-weight: bold;
  font-size: 18px;
  color: #000000;
  line-height: 1.1;
}

/* Description */
.desc {
  align-self: start;
  font-size: 10px;
  font-weight: 300;
  color: #707070;
  margin-top: 2px;
}

/* Social Icons */
.icons {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap:12px;
  width:32%;

}

.lkd {
  width: 20px;
  height: 20px;
}

.insta {
  margin-top: 2px;
  width: 18px;
  height: 18px;
  
}

/* =========================
   BUTTONS
========================= */
.buttons {
  display: flex;
  flex-flow: row, nowrap;
  justify-content: center;
  gap: 12px;
  width: 96vw;
  margin: 0 auto;
  margin-bottom: 40px;
  
}

.work,
.port,
.buttonSend {
  display: flex;
  justify-content: center;
  align-items: center;

  border: 1px solid #e0e0e0;
  width: 100px;
  height: 40px;
  border-radius: 6px;

  background: transparent;
  font-size: 12px;
  font-weight: 500;
  color: #5777f7;
  cursor: pointer;
}

.buttonSend {
  height: 30px;
  margin: 2vh auto;
  transition-property: all;
  transition: 250ms ease;
}
.work{
  transition-property: all;
  transition: 250ms ease;
}
button{
  transition-property: all;
  transition: 250ms ease;
}
button:hover {
  background-color: #5777f7;
  border-color: rgb(97, 152, 201);
}

.work:hover,
.port:hover,
.buttonSend:hover {
  color: #ffffff;
}

/* =========================
   MEDIA GRID
========================= */
.media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  width:96vw;
  margin:0 auto;
  padding: 34px 65px;
  
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  
}

@media (max-width: 1024px) {
  .media-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .media-grid {
    grid-template-columns: 1fr;
    padding: 20px;
  }
  header{
    display: flex;
    justify-content: space-around;
    width: 400px;
  }
  .nameDesc{
    visibility: hidden;
  }
  
}

/* Card */
.media-card {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 4px;
}

/* Images */
.media-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

/* Hover swap */
.media-card .gif {
  opacity: 0;
}

.media-card:hover .gif {
  opacity: 1;
}

.media-card:hover .static {
  opacity: 0;
}

/* =========================
   CONTACT SECTION
========================= */
.contact {
  display: flex;
  flex-direction: column;
  align-items: center;

  border: 1px solid #e0e0e0;
  border-radius: 6px;
  width: 96vw;
  margin: 4vh auto;
  padding: 0 24px;
}
.nameDesc{
  display: flex;

  flex-flow: column nowrap;
}

/* Title */
.contact h2 {
  font-weight: bold;
  font-size: 18px;
  color: #5777f7;
  margin: 24px 0 12px;
}

/* Form */
form {
  width: 78vw;
  display: flex;
  flex-direction: column;
}

/* Labels */
.nameContact,
.nameEmail,
.message {
  font-size: 10px;
  font-weight: 300;
  color: #707070;
  padding: 6px 10px;
}

/* Inputs */
input {
  margin: 0 10px;
  height: 28px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 4px;
}

/* Textarea */
#messageBox {
  width: 76.7vw;
  max-width: 100%;
  height: 100px;
  min-height: 50px;
  margin: 0 auto;

  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 6px;
  resize: vertical;
}

/* Focus */
input:focus-visible,
textarea:focus-visible {
  outline: 1px solid #57aaf7;
}


