/* GLOBAL */
:root {
  /* --bg-body: hsl(0, 0%, 8%); css custom property */
  --bg-body: #0b011d;
  --bg-contact: hsl(0, 0%, 14%);
  /* --accent: hsl(153, 71%, 59%); */
  --accent: #dc6e6a;
  --text2: hsl(0, 0%, 85%);
  /* --text1: hsl(0, 0%, 100%); */
  --text1: #fcd580;
  --invalid: hsl(7, 100%, 51%);
  --fs-18: 1.125rem;
  --fs-72: 4.5rem;
  --fs-40: 2.5rem;
  --fs-88: 5.5rem;
  --fs-48: 3rem;
  --fs-32: 2rem;
  --fs-24: 1.5rem;
  --container: 69.375rem; /*1110/16*/
  --transition: 250ms ease-in-out;
}

html {
  box-sizing: border-box; /*so that the padding doesnt add to the width or the height of elements*/
  font-size: 100%; /*so that the font size is taken from the browser based font styles*/
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

h1 > span {
  border-bottom: 4px solid var(--accent);
  display: inline;
  line-height: 0.2;
}

h1 > span:hover {
  color: var(--accent);
  transition: color var(--transition);
  cursor: pointer;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: 2.5rem;
  font-size: clamp(2.5rem, 0.7rem + 7.7vw, 5.5rem);
}

h1,
h2,
h3 {
  line-height: 1.1;
}

p {
  font-size: 1rem;
  font-size: clamp(1rem, 0.792rem + 0.89vw, 1.125rem);
  line-height: 1.5;
  color: var(--text2);
}

body {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  background-color: var(--bg-body);
  color: var(--text1);
  font-size: var(--fs-18); /*16px is the default font size so 18/16 =1.125*/
  line-height: 1.56;
  /* padding-bottom: 6000px; */
}

a.underline {
  border-bottom: 2px solid var(--accent);
  display: inline-block;
  padding-bottom: 10px;
  line-height: 1.625rem;
  font-size: 1.5rem;
  letter-spacing: 2.29px;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 700;
  color: var(--text1);
}

a {
  transition: color var(--transition);
}

a:hover {
  color: var(--accent);
}

.visuallyhidden {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.wrapper {
  width: calc(100% - 2rem);
  max-width: var(--container);
  margin-inline: auto;
}

/* Header */
.header {
  margin-top: 20px;
}

.nav {
  position: relative;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
  gap: 20px 25px;
}

.headerhome {
  font-size: 1.5rem;
  font-size: clamp(1.5rem, 1.02rem + 2.04vw, 2rem);
  line-height: 1;
  color: var(--text1);
  text-decoration: none;
  flex: 1 0 100%;
}

.socials svg {
  display: block;
}

.socials > svg > path {
  transition: fill var(--transition);
}

.socials:hover > svg > path {
  fill: var(--accent);
}

/* HERO */
.hero {
  /* position: absolute; */
  /* top: 64px;
  border: 2px solid red;
  height: 100%; */
}

.hero_description {
  margin-bottom: 24px;
}

.hero_headline {
  margin-bottom: 24px;
}

.hero_wrapper {
  padding-bottom: 80px;
  border-bottom: 1px solid var(--text1);
}

.hero_text {
  text-align: center;
  margin-top: 400px;
  position: relative;
}

.hero_circle {
  position: absolute;
  top: 244px;
  right: 0;
  translate: 50%;
  opacity: 0.8;
}

.hero_rings {
  position: absolute;
  top: 120px;
  right: 50%;
  /* translate: -40%; */
  opacity: 0.65;
}

.hero_image {
  position: absolute;
  top: 100px;
  left: 50%;
  translate: -50%;
  margin-inline: auto;
  display: block;
  width: 200px;
  height: 350px;
}

.hero_contact {
  font-size: 1.5rem;
  color: var(--text1);
  text-decoration: none;
}

/* phone */
@media (min-width: 37.5em) {
  .wrapper {
    width: calc(100% - 3.75rem);
  }

  .nav {
    justify-content: flex-start;
    align-items: center;
    text-align: left;
    gap: 32px;
  }
  .headerhome {
    flex: 0 1 auto;
    margin-inline-end: auto;
  }
}

@media (min-width: 600px) {
  .header {
    margin-bottom: 90px;
  }
  .hero_wrapper {
    padding-bottom: 60px;
  }

  .hero_text {
    margin-top: 0;
    text-align: left;
    width: 58vw;
  }

  .hero_headline {
    margin-bottom: 60px;
  }

  .hero_headline > br {
    display: inline-block !important;
  }

  .hero_image {
    position: absolute;
    z-index: 1;
    /* top: 100px; */
    left: auto;
    right: 0;
    top: 5px;
    translate: 0;
    /* margin-inline: auto; */
    /* display: block; */
    height: 500px;
    /* height:auto; */
    width: 285px;
  }

  .hero_circle {
    position: absolute;
    z-index: 2;
    top: 373px;
    right: 0;
    translate: 50%;
    opacity: 0.8;
  }

  .hero_rings {
    position: absolute;
    top: 90px;
    right: 65%;
    /* translate: -40%; */
    opacity: 0.65;
  }

  .hero_description {
    margin-bottom: 44px;
  }
}

@media (min-width: 1000px) {
  .wrapper {
    width: calc(100% - 2rem);
    max-width: 90rem;
    margin-inline: auto;
  }

  .hero_wrapper {
    position: relative;
    padding-bottom: 160px;
  }

  .hero_image {
    position: absolute;
    z-index: 1;
    /* top: 100px; */
    /* left: auto; */
    /* right: -50px;  
    top: -100px; */
    translate: 0 -200px;
    height: 600px;
    width: 342px;
  }

  .hero_headline {
    font-size: 69px;
    margin-bottom: 43px;
  }

  .hero_headline > br {
    display: none !important;
  }

  .hero_description {
    margin-bottom: 66px;
    width: 800px;
  }

  .header {
    margin-top: 40px;
    margin-bottom: 127px;
  }

  /* .wrapper {
    width: calc(800px);
  } */

  .hero_circle {
    position: absolute;
    z-index: 2;
    /* top: 373px; */
    /* right: 50%; */
    /* translate: 50%; */
    left: 70%;
    top: 230px;
    opacity: 0.8;
  }

  .hero_rings {
    position: absolute;
    top: -64px;
    right: 80%;
    /* translate: -40%; */
    opacity: 0.65;
  }

  .hero_text {
    width: 1000px;
  }

  .nav {
    padding-right: 30px;
  }
}

/* skills section */

.skill {
  position: relative;
  padding-bottom: 80px;
}

.skills_container {
  padding-block: 50px;
  display: grid;
  gap: 15px;
  grid-template-rows: 1fr 1.2fr 0.5fr 0.5fr 0.7fr 0.7fr 0.5fr 0.7fr 0.7fr;
  grid-template-columns: 1fr;
  justify-items: center;
  max-width: 80%;
  border-bottom: 1px solid var(--text1);
}

.item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.skills_description {
  opacity: 0.8;
}

.skills_title {
  font-size: 2rem;
  font-size: clamp(2rem, 0.33rem + 7.11vw, 3rem);
}

.skills_title:hover {
  color: var(--accent);
  transition: color var(--transition);
}
.skill_item h3 {
  margin-bottom: 2px;
}
.skill_item p {
  margin-bottom: 1px;
}

/* .skills_rings {
  position: absolute;
  bottom: -1101px;
  left: 50%;
  overflow-x: unset;
} */

.skills_rings {
  position: absolute;
  left: 50%;
  bottom: 1.5%;
}
