html {
  scroll-behavior: smooth;
  font-size: 20px;
}

::selection {
  background: var(--line);
}

body {
  font-family: 'Rethink Sans', sans-serif;
  color: var(--dark);
  background: var(--white);
  margin: 0;
  z-index: 1;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: unset;
  transition: .2s;
}

/*====================================================================================================
ROOT
====================================================================================================*/
:root {
  /*----------colors----------*/
  --white: #ffffff;
  --dark: #222222;
  --light: #eeeeee;
  --shade-dark: rgba(34 34 34 / 0.5);
  --shade-light: rgba(255 255 255 / 0.8);
  --line: rgba(128 128 128 / 0.2);

  /*----------gap----------*/
  --section-gap: 8rem;
  --div-gap: 6rem;
  --item-gap: 4rem;
  --thin-gap: 2rem;

  /*----------fonts----------*/
  --h1: 3.5rem;
  --h2: 2.5rem;
  --h3: 1.5rem;
  --p: 1rem;
  --small: 0.8rem;

  /*----------weights----------*/
  --strong: 600;
  --regular: 400;
  --blur: blur(1rem);
}

/*====================================================================================================
FONTS
====================================================================================================*/
b, strong {
  font-weight: var(--strong);
}

h1 {
  font-size: var(--h1);
  font-weight: var(--strong);
  margin: 0;
}

h2 {
  font-size: var(--h2);
  font-weight: var(--strong);
  margin: 0;
}

h3 {
  font-size: var(--h3);
  font-weight: var(--strong);
  margin: 0;
}

p {
  font-size: var(--p);
  line-height: 1.5rem;
  font-weight: var(--regular);
  margin: 0;
}

small {
  font-size: var(--small);
  font-weight: var(--regular);
  margin: 0;
}

/*====================================================================================================
HEADER
====================================================================================================*/
#header {
  background: var(--shade-light);
  backdrop-filter: var(--blur);
  padding: calc(var(--thin-gap) / 2) 0;
  position: sticky;
  top: 0;
  z-index: 2;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 80vw;
  max-width: 1400px;
  margin: 0 auto;
}

#menu {
  margin: 0;
}

#menu span {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: calc(var(--thin-gap) / 2);
  align-items: center;
}

#menu span .sec-button {
  background: unset;
}

#menu span .sec-button:hover {
  background: var(--line);
}

#btn-mobile {
  display: none;
}

/*====================================================================================================
BUTTONS
====================================================================================================*/
#button {
  font-size: var(--small);
  font-weight: var(--strong);
  padding: calc(var(--thin-gap) / 2.5) calc(var(--thin-gap) / 1.5);
  border-radius: var(--section-gap);
}

#button:hover {
  transform: scale(1.05);
}

.main-button {
  color: var(--white);
  background: var(--dark);
}

.sec-button {
  color: inherit;
  background: var(--line);
}

/*====================================================================================================
BUILDING BLOCKS
====================================================================================================*/
section {
  display: flex;
  flex-direction: column;
  gap: var(--section-gap);
  padding: var(--section-gap) 0;
}

.container {
  display: flex;
  flex-direction: column;
  gap: var(--div-gap);
  width: 80vw;
  max-width: 1400px;
  margin: 0 auto;
}

.grid-div {
  display: grid;
  gap: var(--thin-gap);
  grid-template-columns: repeat(3, 1fr);
}

.hor-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--item-gap);
}

.hor-item > * {
  flex: 1;
}

.ver-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--item-gap);
}

.hor-thin {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--thin-gap);
}
.ver-thin {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--thin-gap);
}

.hollow {
  width: 80%;
  height: 100%;
}

/*====================================================================================================
CUSTOM BLOCKS
====================================================================================================*/
#hero .hor-item > * {
  flex: unset;
}

#info {
  gap: calc(var(--thin-gap) / 2);
}

#footer {
  gap: unset;
  padding: unset;
  background: var(--line);
}

#about {
  padding: var(--section-gap) 0 var(--item-gap);
}

#copyrights {
  padding: var(--item-gap) 0;
}

#copyrights .hor-item {
  justify-content: space-between;
}

#copyrights .hor-item > * {
  flex: unset;
}

#hor-social {
  gap: calc(var(--thin-gap) / 4);
}

#hor-social a {
  padding: calc(var(--thin-gap) / 4);
  border-radius: var(--section-gap);
}

#hor-social a:hover {
  background: var(--line);
  transform: scale(1.1);
}

.text-desc {
  opacity: 0.5;
}

.work-thumb {
    aspect-ratio: 1.5 / 1;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    border: 1px solid #e1e1e1;
    border-radius: 4px;
}

.work-thumb-overlay {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--white);
  background: var(--shade-dark);
  backdrop-filter: var(--blur);
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: .2s;
}

.work-thumb:hover .work-thumb-overlay {
  opacity: 1;
}

.avatar-img-div {
  aspect-ratio: 1 / 1;
  width: 100%;
  background-position: center;
  background-size: cover;
}

/*====================================================================================================
RESPONSIVE
====================================================================================================*/
@media (max-width: 1600px) {
  html {
    font-size: 16px;
  }
}

@media (max-width: 800px) {
  :root {
    --h1: 2.8rem;
    --h2: 2.4rem;
    --h3: 1.8rem;
    --h4: 1.4rem;
    --p: 1rem;
    --small: 0.8rem;
    --section-gap: 6rem;
    --div-gap: 4rem;
    --item-gap: 2rem;
    --thin-gap: 1rem;
  }

  /*---------- buttons ----------*/
  #button {
    padding: var(--thin-gap) calc(var(--thin-gap) * 2);
  }

  /*---------- main elements ----------*/
  .hor-item {
    flex-direction: column;
    align-items: flex-start;
    row-gap: var(--item-gap);
  }
  .hor-thin {
    align-items: center;
    flex-wrap: wrap;
    column-gap: var(--thin-gap);
    row-gap: var(--thin-gap);
  }
  .ver-item {
    display: flex;
    flex-direction: column;
    row-gap: var(--item-gap);
  }
  .ver-thin {
    display: flex;
    flex-direction: column;
    row-gap: var(--thin-gap);
  }
  .grid-div {
    grid-template-columns: repeat(1, 1fr);
  }
  .hollow {
    display: none;
  }

  /*---------- custom elements ----------*/
  #copyrights .hor-item{
    flex-direction: column-reverse;
  }

  /*-------------------- header --------------------*/
  #header {
    padding: calc(var(--thin-gap) * 2) 0;
  }

  .header-container {
    width: 80vw;
  }
  #menu {
    position: absolute;
    width: 100vw;
    margin: 0;
    top: calc(calc(var(--thin-gap) * 2) + calc(var(--thin-gap) * 2) + 20px);
    right: 0;
    flex-direction: column;
    height: 0;
    transition: .4s;
    z-index: 1000;
    visibility: hidden;
    overflow-y: hidden;
    background: var(--white);
  }
  #menu span {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    row-gap: var(--item-gap);
    padding: var(--section-gap) 0;
  }
  #menu #button {
    font-size: var(--h4);
    width: 80vw;
    padding: 0.5rem 0;
    margin: 0 auto;
    transition: .2s;
  }
  #menu span .main-button {
    color: unset;
    background: unset;
    border-radius: unset;
  }
  #menu span .sec-button:hover {
    color: unset;
    background: unset;
    border-radius: unset;
  }
  #nav.active #menu {
    display: flex;
    height: 100vh;
    visibility: visible;
    justify-content: space-between;
  }
  #hamburger {
    content: url("img/icon/menu_open.svg");
  }
  #hamburger::before, #hamburger::after {
    content:'';
    display: block;
    width: 20px;
    height: 1px;
    background-color: currentcolor;
    margin-top:5px;
    position: relative;
    transition: .4s;
  }
  #nav.active #hamburger {
    content: url("img/icon/menu_close.svg");
  }
  #btn-mobile {
    display: flex;
    background: transparent;
    padding: 0;
    border: none;
    cursor: pointer;
  }

  .hollow {
    display: none;
  }
}

.header-container #logo{
  width: 50px;
}

.logoref{
  display: flex;
  align-items: center;
}