html {
    scroll-behavior: smooth;
}
body {
    background-color:#A5D4EE;
    margin: 0;
    text-align: center;
  }

/* First section - GRID */
.container {
    min-height: 100vh;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4,25%);
    grid-template-rows: repeat(50,2%);
    z-index: 1;
}

.portfolio-text {
  grid-row: 3/6;
  grid-column: 2/4;
  justify-self: center;
  color: rgba(255,255,255,0.4);
  font-family: 'Tilt Warp', sans-serif;
  font-size: 140px;
}

.Ranim {
  grid-column: 2/4;
  grid-row: 3/6;
  justify-self: center;
  color: white;
  font-family: 'Whisper';
  font-size: 70px;
  font-weight: bold;
  margin-top: 35px;
}

/* Buttons */
.flexbox{
  display: flex;
  grid-column: 2/ span 2;
  gap: 50px;
  grid-row: 12;
}

.flexbox>*{
  transition: transform 0.3s;
}
.flexbox >*:hover{
  transform: scale(1.08);
}

.About-me-button,
.My-projects-button,
.Contact-me-button {
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family:'Tilt Warp', sans-serif;
  font-size: 35px;
  background-color: rgba(255, 255, 255, 0.3);
  height: 100px;
  width: 100%;
  border-radius: 8px;
  text-decoration: none;
}

/* About section */
#About-me {
  scroll-margin-top: 40px; 
}

.about-section {
  display: flex;
  flex-direction: column;
  align-items: center; 
  justify-content: center; /* centrerar innehållet vertikalt om du har höjd */
  padding: 65px;
  gap: 30px; 
  grid-column: 2 / 4; 
  grid-row: 20;   
}

.about-heading {
  font-size: 80px;
  color: white;
  font-family: 'Tilt Warp', sans-serif;
  margin: 10px;
  text-align: center;
  margin-top: 350px;
}

.about-me-box {
  background-color: rgba(255, 255, 255, 0.3);
  color: white;
  font-size: 24px;
  padding: 30px;
  border-radius: 20px;
  text-align: left;
  max-width: 800px;
  width: 100%;
  grid-column: 2/4;
  grid-row: 28;
}



#Contact-me {
   scroll-margin-top: 40px; 
}
.contact-section {
  padding: 10px;
  min-height: 100vh;
  font-size: 80px;
  font-family:'Tilt Warp';
  color: white;
  grid-column: 2/4;
  grid-row: 39;
}
.social-container {
  display: flex;
  gap:40px;
  justify-content: space-evenly;
  grid-column: 2/4;
  grid-row: 44;
}
.social-container a {
  background-color: white;
  padding: 20px;
  border-radius: 50%;
  height: 84px;
  width: 84px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.05);
}
.social-container a svg {
  height: 42px;
}

.social-container a::before {
content: attr(data-social);
position: absolute;
text-decoration: none;
background-color: var(--accent-color);
color:white;
border-radius: 100px;
transform: translateY(-30px) rotate(25deg);
padding: 8px;
box-shadow: rgba(0, 0, 0, 0.05);
opacity: 0;
transition: 200ms cubic-bezier(0.25, 0.1, 0.45, 1.59);
}
.social-container a:hover {
background-color: var(--accent-color);
fill: white;
}
.social-container a::after {
  content: "";
  position: absolute;
  height: 0;
  width: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 15px solid var(--accent-color);
  transform: translateY(0) rotate(25deg);
  opacity: 0;
  transition: 200ms cubic-bezier(0.25, 0.1, 0.45, 1.59);
}
.social-container a:hover::before {
  transform: translateY(-65px) rotate(0);
  opacity: 1;
}
.social-container a:hover::after {
  transform: translateY(-42px) rotate(0);
  opacity: 1;
}

.footer {
  grid-column: 1 / -1;
  grid-row: 49/52;
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  font-family: 'Tilt Warp', sans-serif;
  text-align: center;
  font-size: 22px;
}

.back-to-top {
  display: inline-block;
  margin-top: 10px;
  font-size: 18px;
  color: white;
  text-decoration: none;
  transition: opacity 0.3s;
}

.back-to-top:hover {
  opacity: 0.9;
}


/* Media query for phones!*/

@media (max-width: 765px) {
  .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
  }

  .portfolio-text {
    font-size: 60px;
    grid-column: auto;
    grid-row: auto;
  }

  .Ranim {
    font-size: 40px;
    margin-top: 10px;
    grid-column: auto;
    grid-row: auto;
  }

  .flexbox {
    flex-direction: column;
    gap: 20px;
    width: 100%;
    grid-column: auto;
    grid-row: auto;
  }

  .About-me-button,
  .My-projects-button,
  .Contact-me-button {
    font-size: 24px;
    height: 60px;
    width: 100%;
  }

  .about-section,
  .contact-section {
    font-size: 30px;
    padding: 20px;
    grid-column: auto;
    grid-row: auto;
  }

  .about-me-box {
    font-size: 18px;
    padding: 15px;
    width: 100%;
    height: auto;
    grid-column: auto;
    grid-row: auto;
  }

  .social-container {
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 100px;
  }

  .social-container a {
    height: 64px;
    width: 64px;
    padding: 15px;
  }

  .social-container a svg {
    height: 32px;
  }
}
