@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300..700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Space Grotesk", Arial, sans-serif;
}

body {
  background: #151515;
}

nav {
  position: absolute;
  width: 100%;
  padding: 2rem 0;
}

a {
  text-decoration: none;
  color: white;
  transition: 0.3s;
}

p {
  font-size: 1.125rem;
  line-height: 1.75rem;
}

input {
  text-transform: uppercase;
  font-size: 1rem;
}

textarea {
  text-transform: uppercase;
  font-size: 1rem;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.container {
  max-width: 69.375rem;
  margin: 0 auto;
}

.contact-icons {
  gap: 1.5rem;
  display: flex;
  z-index: 2;
  padding-right: 1.5rem;
}

h1 {
  color: white;
  letter-spacing: -0.44px;
  font-size: 2rem;
  font-weight: 700;
}

.navbar-icon {
  cursor: pointer;
  transition: 0.3s;
}

.navbar-icon path {
  fill: white;
  transition: fill 0.3s;
}

.navbar-icon:hover path {
  fill: #4ee1a0;
}

header {
  display: flex;
  width: 100%;
  position: relative;
  min-height: 45rem;
  overflow: hidden;
}

.intro-container {
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
  padding-top: 6.375rem;
}

.header-photo-container {
  min-height: 45rem;
  width: 27.8125rem;
  background: #24242470;
  position: absolute;
  right: 0;
  z-index: -1;
}

.intro-photo {
  width: 100%;
  position: absolute;
  bottom: 0;
}

h2 {
  font-size: 5.5rem;
  line-height: 5.5rem;
  letter-spacing: -2.5px;
  color: white;
}

.intro-text {
  max-width: 27.8125rem;
}

.contact-button,
.submit-button,
.project-button {
  width: fit-content;
  background: none;
  border: none;
  border-bottom: 2px solid #4ee1a0;
  padding-bottom: 0.5rem;
  color: white;
  cursor: pointer;
  transition: 0.3s;
  letter-spacing: 2.29px;
  font-size: 1rem;
  font-weight: 600;
  font-weight: 400;
}

.project-button:hover,
.contact-button:hover,
a:hover {
  color: #4ee1a0;
}

.intro-name {
  text-decoration: underline;
  text-decoration-color: #4ee1a0;
}

.divider-container {
  width: 100%;
  display: flex;
  justify-content: center;
  padding-top: 6rem;
  padding-bottom: 6rem
}

.divider {
  width: 100%;
  height: 1px;
  background-color: white;
  max-width: 69.375rem;
  margin-left: auto;
  margin-right: auto;
}

.photo-circle {
  position: absolute;
  bottom: 10%;
  right: 34%;
}

.circle-shapes {
  position: absolute;
  padding-top: 6rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  width: 100%;
  row-gap: 2rem;
}

h3 {
  font-size: 3rem;
  letter-spacing: -1.5px;
}

.skill-cell {
  display: flex;
  flex-direction: column;
}

.skill-cell h3,
.skill-cell p {
  color: white;
}

.skills-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 6rem;
}

.bottom-circles {
  position: absolute;
  right: 0;
  bottom: 0;
}

.project-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(3, 1fr);
  column-gap: 1.5rem;
  row-gap: 2rem;
  max-width: 69.375rem;
  margin: 0 auto;
  padding: 6em 0rem;
}

.project {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.project p,
.project h4 {
  color: white;
}

.portfolio-image {
  width: 100%;
  aspect-ratio: 288 / 163;
  background: #383a39a6;
  background-repeat: no-repeat;
  background-size:cover;
  position: relative;
  background-position: center;
}

.project-overlay {
  opacity: 0;
  width: 100%;
  height: 100%;
  transition: 0.3s;
  display: flex;
  justify-content: center;
  align-items: center;
}

.project-overlay:hover {
  opacity: 1;
  background-color: rgba(0, 0, 0, 0.8);
  transition: 0.3s;
}

footer {
  width: 100%;
  padding-bottom: 6rem;
  background-color: #242424;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid white;
}

.contact-section {
  background-color: #242424;
  padding-top: 8rem;
  padding-bottom: 7rem;
  position: relative;
}

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

.contact-form {
  width: 100%;
  max-width: 27.8125rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-info p {
  color: white;
  max-width: 27.8125rem;
}

.third-circles {
  position: absolute;
  bottom: 4rem;
}

.form-input {
  background: none;
  border: 1px solid transparent;
  border-bottom: 1px solid white;
  padding: 2rem;
  color: white;
  width: 100%;
  border-radius: 0;
}

.form-input:focus {
  outline: none;
  border-bottom: 1px solid white;
}

.submit-button-container {
  display: flex;
  justify-content: end;
}

.submit-button {
  margin-top: 3rem;
}

.submit-button:hover {
  color: #4ee1a0;
}

#result {
  color: white;
}

#footer-logo {
  cursor: pointer;
}

.hide {
  display: none;
}

#result {
  height: 16px;
}

.contact-link p {
  transition:0.3s;
}

.contact-link p:hover {
  color: #4ee1a0;
}

.number-email-section {
  display:flex;
  flex-direction: column;
  gap:1rem;
}

.number-email-container {
  display:flex;
  gap:1rem;
  align-items: center;
}



@media (max-width: 72.5rem) {
  .container {
    padding: 0 2rem;
  }

  .divider-container {
    padding-top: 6rem;
    padding-left: 2rem;
    padding-right: 2rem;
    padding-bottom: 4rem
  }

  h2 {
    font-size: 4.5rem;
    letter-spacing: -2.05px;
  }

  header {
    min-height: 37.5rem;
  }

  .header-photo-container {
    min-height: 37.5rem;
    width: 20.125rem;
  }

  .photo-circle {
    position: absolute;
    bottom: 5%;
    right: 27%;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
  }

  .projects-grid {
    padding: 6em 2rem;
  }

  .footer-container {
    padding-top: 2rem;
  }

  .contact-form {
    z-index: 5;
  }

  .contact-container {
    flex-direction: column;
    align-items: center;
    gap: 4rem;
  }

  .contact-info {
    align-items: center;
  }

  .contact-info p {
    text-align: center;
  }

  .third-circles {
    bottom: 2rem;
  }

  .contact-section {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }

  .project-overlay {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.1);
  }

  .project-overlay button {
    display: none;
  }
  .project-overlay:hover {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0);
  }

  .hide {
    display: block;
  }

  .number-email-section {
    align-items: center;
  }
}

@media (max-width: 48rem) {
  .container {
    padding: 0 1.5rem;
  }

  .header-photo-container {
    min-height: 23.9375rem;
    width: 10.875rem;
    left: 50%;
    transform: translateX(-50%);
    position: relative;
    z-index: 1;
  }

  h1 {
    z-index: 2;
  }

  h2 {
    font-size: 2.5rem;
    line-height: 2.5rem;
    text-align: center;
    letter-spacing: -1.14px;
  }

  header {
    flex-direction: column-reverse;
    gap: 1rem;
  }

  nav {
    padding-bottom: 0;
    margin-bottom: 2rem;
  }

  .nav-container {
    flex-direction: column;
    gap: 1rem;
  }

  .intro-container {
    align-items: center;
    gap: 2rem;
    padding-top: 2rem;
  }

  .intro-text {
    text-align: center;
  }

  header {
    min-height: 0;
  }

  .photo-circle {
    bottom: 26rem;
    right: -3.5rem;
  }

  .circle-shapes {
    right: 60%;
  }

  .skills-grid {
    grid-template-columns: repeat(1, 1fr);
    grid-template-rows: repeat(6, 1fr);
    gap: 2rem;
  }

  .skill-cell h3 {
    font-size: 2rem;
    letter-spacing: -1px;
  }

  .skill-cell p {
    text-align: center;
  }

  .skill-cell {
    align-items: center;
  }

  .contact-icons {
    padding-right: 0;
  }

  .projects-grid {
    grid-template-columns: repeat(1, 1fr);
    grid-template-rows: repeat(6, 1fr);
  }

  .projects-grid {
    padding: 6em 1.5rem;
  }

  .divider-container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-top: 6rem;
    padding-bottom: 6rem
  }

  .footer-container {
    padding-top: 2rem;
  }
}

@media (max-width: 374px) {
  .photo-circle {
    display: none;
  }

  .project-title {
    flex-direction: column;
    gap: 2rem;
  }

  .footer-container {
    flex-direction: column;
    gap: 2rem;
  }

  .third-circles {
    display: none;
  }
}
