@import url("https://fonts.googleapis.com/css2?family=Syne:wght@400..800&display=swap");


:root {
  --header-height: 3.5rem;
  --hue: 550;
  --first-color: hsl(var(--hue), 55%, 55%);
  --first-color-light: hsl(var(--hue), 55%, 65%);
  --first-color-alt: hsl(var(--hue), 50%, 50%);
  --title-color: hsl(var(--hue), 30%, 95%);
  --text-color: hsl(var(--hue), 20%, 80%);
  --text-color-light: hsl(var(--hue), 20%, 70%);
  --body-color: hsl(var(--hue), 40%, 16%);
  --container-color: hsl(var(--hue), 40%, 20%);

  --body-font: "Syne", sans-serif;
  --biggest-font-size: 3rem;
  --big-font-size: 1.5rem;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1rem;
  --normal-font-size: .938rem;
  --small-font-size: .813rem;

  --font-regular: 400;
  --font-semi-bold: 600;
  --font-bold: 700;
  --z-tooltip: 10;
  --z-fixed: 100;
}

@media screen and (min-width: 1150px) {
  :root {
    --biggest-font-size: 5.5rem;
    --big-font-size: 2.75rem;
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1.125rem;
    --small-font-size: .875rem;
  }
}

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body,
input,
textarea,
button {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
}

body {
  background-color: var(--body-color);
  color: var(--text-color);
}

input,
button,
textarea {
  border: none;
  outline: none;
}

h1, h2, h3 {
  color: var(--title-color);
  font-weight: var(--font-semi-bold);
}

p {
  line-height: 130%;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: var(--text-color);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.container {
  max-width: 1120px;
  margin-inline: 1.5rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.section {
  padding-block: 5rem 2rem;
}

.section__title {
  text-align: center;
  font-size: var(--h1-font-size);
  font-weight: var(--font-bold);
  margin-bottom: 2rem;
}

.main {
  overflow: hidden;
}
.header{
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    background-color: transparent;
    z-index: var(--z-fixed);
}

.nav{
    position: relative;
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav__logo{
    color: var(--title-color);
    font-weight: var(--font-bold);
}

.nav__toggle,
.nav__close{
    font-size: 1.5rem;
    color: var(--title-color);
    cursor: pointer;
}

/* Navigation for mobile devices */
@media screen and (max-width:1150px){
    .nav__menu{
        position: fixed;
        top: 0;
        right: -100%;/*Hiding the menu section*/
        background-color: hsl(var(--hue), 70%, 4%, .2);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        width: 80%;
        height: 100%;
        padding: 7rem 3rem;
        transition: right .4s;
    }
}

.nav__list{
    display: flex;
    flex-direction: column;
    row-gap: 3rem;
}

.nav__link{
    position: relative;
    color: var(--text-color);
    font-weight: var(--font-semi-bold);
    transition: color .4s;
}
/*adding line under each word*/
.nav__link::after{
    content: '';
    width: 100%;
    height: 2px;
    background-color: var(--first-color-light); 
    position: absolute;
    left: 0;
    bottom: -.5rem;
    transition: width .3s;;
}

.nav__link:hover{
    color: var(--first-color-light);
}

.nav__link:hover::after{
    width: 50%;
}

.nav__close{
    position: absolute;
    top: 1rem;
    right: 1.5rem;
}

.show-menu{
    right: 0;
}

.blur-header::after{
  content:'';
  position: absolute;
  width: 1000%;
  height: 100%;
  background-color: hsl(var(--hue), 70%, 4%, .2);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(16px);
  top: 0;
  left: 0;
  z-index: -1;
}

.active-link{
  color: var(--first-color-light);
}
.active-link::after{
  width: 30%;
}

.home__container{
    row-gap: 2rem;
    padding-top: 1rem;
}
.home__name{
    font-size: var(--big-font-size);
    font-weight: var(--font-bold);
    margin-bottom: 1rem;
}

.home__profession{
    position: relative;
    font-size: var(--normal-font-size-font-size);
    color: var(--text-color);
}
/*Adding a line under the profession*/
.home__profession::after{
    content: '';
    position: absolute;
    left: 0;
    bottom: -.5rem;
    width: 25%;
    height: 3px;
    background-color: var(--text-color);
}

@media screen and (max-width: 300px){
  .container{
    margin-inline: 1rem;
  }
}

@media screen and (min-width: 540px){
  .home__container{
    grid-template-columns: 350px;
    justify-content: center;
  }
}

@media screen and (min-width: 768px){
  .nav__menu{
    width: 50%;
  }

  .home__container{
    grid-template-columns: repeat(2,350px);
  }

  .home__data{
    align-self: flex-end;
    padding-bottom: 3rem;
    order: -1;
  }
  .home__scroll{
    grid-column: 1 / 3;
  }
}

@media screen and (min-width: 1150px){
  .container{
    margin-inline: auto;
  }
  .section{
    padding-block: 7rem 16rem;
  }

  .section__title{
    margin-bottom: 4rem;
  }

  .nav__toggle,
  .nav__close{
    display: none;
  }
  .nav__menu{
    width: initial;
  }
  .nav__list{
    flex-direction: row;
    column-gap: 4rem;
  }

  .home__container{
    grid-template-columns: 700px 350px;
    gap: 3rem 16rem;
  }
  .home__img{
    width: 350px;
  }

  .home__name{
    margin-bottom: 1.5rem;
  }
  .home__profession::after{
    bottom: -1rem;
    width: 35%;
  }

  .footer__container{
    padding-block: 3rem;
    grid-template-columns: repeat(2,max-content);
    justify-content: space-between;
  }
  .footer__links{
    column-gap: 4rem;
    order: 1;
  }
}