@font-face {
  font-family: "Exat Wide Regular";
  src: url("assets/exat-font-family/exatcyrwide-regular.otf");
  font-display: block;
}

@font-face {
  font-family: "Exat Medium";
  src: url("assets/exat-font-family/exatcyr-medium.otf");
  font-display: block;
}

@font-face {
  font-family: "Exat Wide Medium";
  src: url("assets/exat-font-family/exatcyrwide-medium.otf");
  font-display: block;
}

@font-face {
  font-family: "Exat Wide Light";
  src: url("assets/exat-font-family/exatcyrwide-light.otf");
  font-display: block;
}

@font-face {
  font-family: "Montserrat Medium";
  src: url("assets/Montserrat/static/Montserrat-Medium.ttf");
  font-display: block;
}

@font-face {
  font-family: "Montserrat Light";
  src: url("assets/Montserrat/static/Montserrat-Light.ttf");
  font-display: block;
}

@font-face {
  font-family: "Melvina";
  src: url("assets/natural_signature/NaturalSignature.otf");
  font-display: block;
}

html,
body {
  padding: 0;
  margin: 0;
  background-color: #f5e9dc;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
}

.hidden {
  opacity: 0;
}

header {
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: black;
  padding: 1rem 1.5vw;
  margin: 0;
  font-family: "Montserrat Medium", sans-serif;
  font-size: 12px;
  position: sticky;
  top: 0px;
  z-index: 10;
  background-color: #f5e9dc50;
  height: 60px;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

button {
  cursor: pointer;
}

.initials {
  font-family: "Exat Wide Medium";
  font-size: x-large;
  margin-bottom: 5px;
}

a {
  text-decoration: none;
  color: black;
}

nav {
  height: 100%;
}

nav > ul {
  padding: 0;
  margin: 0;
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  height: 100%;
}

nav > ul > li {
  display: flex;
  justify-content: center;
  align-items: center;
}

.right_list {
  display: flex;
  column-gap: 0.5rem;
}

li {
  list-style-type: none;
  height: 100%;
}

.featured-work-h2,
.experience-heading,
.skills-heading,
.contact-heading {
  font-family: "Exat Wide Regular";
  font-weight: 550;
  font-size: clamp(2rem, 4vw, 6rem);
  margin: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  opacity: 1;
  margin-right: 0.5rem;
  padding-left: 0.5rem;
  padding-bottom: 1rem;
  position: relative;
  z-index: 1;
  background-color: #f5e9dc;
}

.skills-heading,
.contact-heading {
  align-items: flex-start;
  justify-content: flex-start;
}

.hero {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: min-content min-content 1fr;
  height: calc(100vh - 60px);
  min-height: 450px;
  width: 100%;
  scroll-margin-top: 60px;
}

.name-container{
  overflow-y: clip;
}

.name {
  width: 100%;
  color: black;
  z-index: 2;
  text-wrap: nowrap;
  text-align: center;
  grid-row: 1/2;
  margin-bottom: -1vw;
  margin-top: -3vw;
  font-family: "Exat Wide Regular";
  font-size: clamp(4.5rem, 11vw, 18rem);
  font-weight: 100;
}

.job-title {
  font-family: "Melvina", cursive, serif;
  font-size: clamp(3rem, 7vw, 11rem);
  color: #a44033;
  z-index: 2;
  margin: -7vw 0vw;
  text-align: center;
}

.hero-main {
  display: grid;
  min-height: 0;
  grid-template-columns: 0.8fr 1fr 0.8fr;
  grid-template-rows: 1fr 2fr 1fr;
  position: relative;
}

.hero-img-container {
  z-index: 1;
  grid-row: 1/3;
  grid-column: 2/3;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 0;
}

.hero-img-container > img {
  object-fit: contain;
  object-position: top top;
  max-width: 100%;
  max-height: 100%;
  background: linear-gradient(
    to bottom right,
    rgb(240, 240, 240),
    white,
    rgb(235, 235, 235)
  );
}

.pill-container {
  position: absolute;
  right: 10vw;
  top: 5vw;
  z-index: 5;
}

.pill {
  background-color: #a44033;
  color: #f5e9dc;
  font-family: "Montserrat Medium", sans-serif;
  font-size: clamp(0.5rem, 0.5rem + 0.9vw, 15rem);
  font-weight: bold;
  padding: 0.5vw 1vw;
  border-radius: 50px;
  transform: rotate(-20deg);
  width: fit-content;
  height: fit-content;
  display: inline-flex;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  position: relative;
}

.pill .pill-hover {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  white-space: nowrap;
  pointer-events: none;
}

.pill:hover .pill-default {
  opacity: 0;
}

.pill:hover .pill-hover {
  opacity: 1;
}

.alt-titles {
  font-size: clamp(1rem, 0.467rem + 1.111vw, 1.8rem);
  font-family: "Exat Wide Regular";
  margin-left: 1.5vw;
  grid-column: 1/2;
  grid-row: 1/2;
}

.location {
  width: 100%;
  font-size: clamp(1rem, 0.467rem + 1.111vw, 1.8rem);
  font-family: "Exat Wide Regular";
  grid-column: 3/4;
  grid-row: 1/2;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  right: 0.4vw;
  position: absolute;
  top: 40vh;
  margin-right: 1.5vw;
}

.transition-text-container,
.transition-text-container-2 {
  grid-row: 3/4;
  grid-column: 1/2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  z-index: 2;
}

.below-text,
.transition-text,
.transition-text-2 {
  font-size: clamp(1rem, 0.467rem + 1.111vw, 1.8rem);
  margin: 0;
  margin-inline: 1.5vw;
  font-family: "Exat Wide Regular", sans-serif;
  height: fit-content;
  width: fit-content;
}

.invisible {
  visibility: hidden;
}

#work {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  grid-template-rows: min-content 1fr;
  min-height: calc(100vh - 60px);
  color: black;
  scroll-margin-top: 60px;
  background-color: #f5e9dc;
}

.project-container {
  grid-column: 1/3;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  grid-auto-rows: auto;
  align-content: center;
}

.project {
  box-sizing: border-box;
  border: 1px solid gray;
  margin: 1rem;
  padding: 1rem;
  background-color: #f6e3cf;
  grid-row: span 2;
  display: grid;
  grid-template-rows: subgrid;
  box-shadow: 0 0 1px 1px rgba(128, 128, 128, 0.205);
}

.project-title {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Exat Wide Regular", sans-serif;
  font-size: clamp(1rem, 0.467rem + 1.111vw, 1.4rem);
  padding-inline: 1rem;
  border-bottom: 1px solid black;
}

.project-content {
  font-family: "Exat Wide Light";
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-content > h3 {
  padding: 5px;
  width: fit-content;
}

.code-content {
  display: flex;
  justify-content: space-between;
}

.code-content-left > a {
  font-family: inherit;
  font-size: medium;
  color: white;
}

.code-content-right {
  display: flex;
  justify-content: center;
  align-items: center;
}

.code-content-right > * {
  margin-inline: 0.1rem;
}
a {
  display: inline-block;
}

#send-email-button,
.code-content-left > a {
  background-color: #a44033;
  color: white;
  padding: 0.3em 0.8em;
  font-size: clamp(0.5rem, 0.5rem + 0.3vw, 1.1rem);
  font-family: "Exat Wide Regular";
  transition: background-color 0.2s;
  text-align: center;
  margin: 0 auto;
  height: fit-content;
  border: 1px solid black;
}

#send-email-button:hover,
.code-content-left > a:hover {
  background-color: #a4403396;
}

#experience {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  grid-template-rows: min-content 1fr;
  min-height: calc(100vh - 60px);
  color: black;
  scroll-margin-top: 60px;
  background-color: #f5e9dc;
}

.experience-container {
  grid-column: 1/3;
}

.experience-inner-container {
  height: 100%;
  display: grid;
  grid-template-columns: 0.4fr 0.2fr 0.3fr;
}

.hawl-svg-container {
  background-color: #995adf;
  padding: 1rem;
  min-height: 0;
  height: 80%;
}

.experience-title-container {
  visibility: hidden;
  font-size: clamp(1.5rem, 3vw, 4.5rem);
  font-family: "Exat Wide Regular";
  text-align: right;
  box-sizing: border-box;
  padding-right: 2rem;
}

.at-symbol {
  padding-right: 3vw;
}

.hawl-title {
  color: #995adf;
}

.experience-description {
  display: grid;
  grid-template-rows: 1fr 1fr;
  box-sizing: border-box;
  padding-top: 2rem;
  padding-left: 1rem;
  font-size: clamp(1rem, 0.467rem + 1.111vw, 1.8rem);
  font-family: "Exat Wide Regular";
  max-height: 80%;
}

.experience-description > ul {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.experience-description > ul > li {
  list-style: circle;
  height: min-content;
}

.resume-download-button {
  color: #a44033;
}

#skills {
  min-height: calc(100vh - 60px);
  scroll-margin-top: 60px;
  position: relative;
  z-index: 1;
  background-color: #f5e9dc;
  grid-template-rows: min-content;
  display: grid;
}

.skill-category {
  display: flex;
  flex-direction: column;
  row-gap: 2rem;
  width: 100%;
  align-items: center;
}

.skill-category > h3 {
  font-family: "Exat Wide Regular";
  width: 100%;
  text-align: center;
  margin: 0;
  margin-top: 1rem;
  font-size: clamp(1rem, 0.393rem + 1.286vw, 2.2rem);
}

.skill-category > ul {
  width: 100%;
  display: flex;
  padding: 0px;
  margin: 0px;
  justify-content: space-around;
  flex-wrap: wrap;
  font-family: "Montserrat Light";
}

.skill-category > ul > li {
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: 0.5rem;
  font-size: clamp(0.9rem, 0.6rem + 0.5vw, 1.2rem);
}

.skill-category > ul > li img {
  width: 25px;
}

.skill-category > ul > li img.big-logo {
  width: 50px;
}

#contact {
  height: calc(100vh - 89px);
  scroll-margin-top: 60px;
  position: relative;
}

.plane {
  position: absolute;
  pointer-events: none;
}

.dash {
  background-color: black;
  width: 10px;
  height: 5px;
  position: absolute;
  pointer-events: none;
  top: 0;
  left: 0;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr;
  height: 100%;
  flex: 1;
}

form {
  margin-left: 0.5rem;
  grid-column: 1/2;
}

#form-content-container {
  display: flex;
  flex-direction: column;
  background-color: #f5e9dc;
  z-index: 1;
  position: relative;
  width: min-content;
}

#form-content-container > *:not(button) {
  font-family: "Montserrat Light";
  font-size: clamp(1rem, 0.467rem + 1.111vw, 1.8rem);
  z-index: 1;
  width: clamp(280px, 25vw, 500px);
}

label {
  font-weight: 900;
}

input,
textarea {
  background-color: #f6e3cf;
  padding: 0.4rem;
  margin-bottom: 1rem;
  border: 1px solid grey;
}

textarea {
  resize: none;
  height: 100px;
}

#send-email-button {
  display: block;
  margin-left: auto;
  margin-right: 0;
  width: fit-content;
  font-family: "Exat Wide Regular";
  font-size: clamp(0.8rem, 0.5rem + 0.75vw, 10rem);
}

.project-link,
.github-link {
  color: #a44033;
  cursor: pointer;
}

footer {
  background-color: black;
  height: fit-content;
  padding: 0.5rem;
  width: 100%;
}

footer > div {
  display: block;
  color: white;
  text-align: center;
  font-family: "Montserrat Medium";
  pointer-events: none;
  font-size: clamp(0.8rem, 0.6rem + 0.4vw, 1.1rem);
}

.footer-initials {
  border: 1px solid white;
  padding-inline: 5px;
  font-family: "Exat Wide Medium";
}

.name,
.job-title > div,
.hero-img-container > img,
.location > div,
.alt-titles > div,
.pill,
.transition-text-container {
  visibility: hidden;
}

@media (max-width: 768px) {
  header {
    display: flex;
    flex-wrap: wrap;
    height: auto;
    padding: 0;
    margin: 0;
  }

  .right_list {
    width: 100%;
    margin: 0;
    padding: 0;
    justify-content: space-between;
    padding-inline: 1rem;
  }

  nav {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding-inline: 1rem;
  }

  nav > ul {
    gap: clamp(8px, 2.5vw, 16px);
    flex-wrap: wrap;
    font-size: clamp(10px, 2.8vw, 12px);
    display: flex;
    justify-content: space-between;
    width: 100%;
  }

  .hero,
  #experience {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: calc(100vh - 67px);
  }

  .name {
    font-size: clamp(2.5rem, 11vw, 18rem);
    margin-top: clamp(-1rem, -2.5vw, -0.3rem);
    margin-bottom: clamp(-0.4rem, -1vw, 0rem);
    text-wrap: wrap;
    text-align: center;
  }

  .job-title {
    font-size: clamp(2.25rem, 0.107rem + 10.714vw, 5.25rem);
    margin: clamp(-3.25rem, -0.25rem + -6.25vw, -1.5rem) 0;
    text-align: center;
  }

  .hero-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: clamp(1rem, 4vw, 1.75rem);
  }

  .pill-container {
    position: static;
    transform: none;
    margin: clamp(0.35rem, 1.5vw, 0.75rem) 0;
  }

  .pill {
    transform: rotate(-20deg);
    font-size: clamp(0.875rem, 0.696rem + 0.893vw, 1.125rem);
    padding: clamp(0.35rem, 1.5vw, 0.5rem) clamp(0.85rem, 3.5vw, 1.25rem);
  }

  .alt-titles,
  .location,
  .below-text,
  .transition-text,
  .transition-text-2 {
    font-size: clamp(0.875rem, 0.696rem + 0.893vw, 1.125rem);
    text-align: center;
    position: static;
  }

  .featured-work-h2,
  .experience-heading,
  .skills-heading,
  .contact-heading {
    font-size: clamp(1.625rem, 1rem + 3.125vw, 2.5rem);
    justify-content: center;
    text-align: center;
    padding-bottom: clamp(0.5rem, 2vw, 1rem);
  }

  #work {
    display: flex;
    flex-direction: column;
  }

  .project-container {
    grid-template-columns: 1fr;
  }

  .project {
    grid-row: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .project-title {
    font-size: clamp(0.95rem, 0.75rem + 1vw, 1.25rem);
  }

  .code-content {
    gap: 1rem;
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .code-content-right {
    width: 100%;
    justify-content: flex-start;
  }

  #experience {
    display: flex;
    flex-direction: column;
  }

  .experience-inner-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(1rem, 4vw, 1.75rem);
    padding: 0 1rem;
  }

  .experience-title-container {
    text-align: center;
    padding-right: 0;
    font-size: clamp(1.35rem, 0.8rem + 2.75vw, 2rem);
  }

  .at-symbol {
    padding-right: 0;
  }

  .hawl-svg-container {
    width: clamp(120px, 35vw, 160px);
    height: clamp(120px, 35vw, 160px);
  }

  .experience-description {
    padding-left: 0;
    text-align: center;
    font-size: clamp(0.875rem, 0.696rem + 0.893vw, 1.125rem);
    display: flex;
    flex-direction: column;
    max-height: none;
  }

  .experience-description > ul {
    align-items: center;
    padding-left: 0;
  }
  #contact {
    height: calc(100vh - 96px);
  }

  #email-form {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  #send-email-button {
    margin: auto;
  }

  #form-content-container {
    display: flex;
    flex-direction: column;
    background-color: #f5e9dc;
    z-index: 1;
    position: relative;
    width: min-content;
  }

  input,
  textarea {
    padding: clamp(0.35rem, 1.5vw, 0.55rem);
  }

  .plane,
  .dash {
    display: none;
  }
}
