@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

/* ========================== */
/* RESET */
/* ========================== */

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

*:not(dialog) {
  margin: 0;
}

body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-family: system-ui, sans-serif;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

#root, #__next {
  isolation: isolate;
}



/* ========================== */
/* VARIABLES */
/* ========================== */

:root {
  --bg-color: #1b8ea5;
}



/* ========================== */
/* LAYOUT CONTAINER */
/* ========================== */

.container {
  width: 92%;
  max-width: 1500px;
  margin: 0 auto;
}

h1,
h2,
h3{
  font-family: "Playfair Display",sans-serif;
}

/* ========================== */
/* HEADER */
/* ========================== */

header {
  position: relative;
  min-height: 650px;
}

.header-bg {
  position: absolute;
  inset: 0;
  background-color: var(--bg-color);
  clip-path: polygon(0 0,100% 0,100% 75%,0 100%);
  z-index: -1;
}

header .container {
  display: flex;
  align-items: center;
  gap: 50px;
  min-height: 650px;
}



/* Profile */

.profile {
  width: 525px;
  height: 525px;
  position: relative;
  flex-shrink: 0;
  box-shadow: 0 12px 31px rgba(0,0,0,0.25);
}

.profile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile h3 {
  position: absolute;
  bottom: 12px;
  left: 50px;
  color: white;
  font-size: 3rem;
  font-weight: 400;
}



/* About */

header .container .about {
  flex: 1;
  min-height: 375px;
  background: white;
  padding: 50px;
  margin-left: -62px;
  box-shadow: 0 12px 25px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about h2 {
  font-size: 2.5rem;
  margin-bottom: 19px;
}

.about p {
  font-size: 1.25rem;
  color: #444;
}

.connections {
  margin-top: 25px;
  display: flex;
  gap: 25px;
  justify-content: flex-end;
}

.connections svg {
  width: 35px;
  height: 35px;
}



/* ========================== */
/* MAIN */
/* ========================== */

.main-content {
  margin: 150px auto;
}

.projects-header h3 {
  font-size: 2.5rem;
  margin-bottom: 50px;
}



/* Project Grid */

.project-container {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 44px;
}



/* Cards */

.card {
  background: white;
  box-shadow: 0 8px 19px rgba(0,0,0,0.2);
}

.proj-image {
  height: 225px;
}

.proj-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card .about {
  padding: 25px;
}

.card .about h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.proj-description {
  font-size: 1.1rem;
  color: #555;
}

.buttons {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 12px;
}

.buttons svg {
  width: 28px;
  height: 28px;
}



/* ========================== */
/* FOOTER */
/* ========================== */

footer {
  background-color: var(--bg-color);
  padding: 100px 0;
}

footer .container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 100px;
}

.footer-content {
  max-width: 525px;
  color: white;
}

.footer-content h1 {
  font-size: 2.75rem;
  margin-bottom: 25px;
}

.footer-content p {
  margin-bottom: 19px;
  font-size: 1.25rem;
}

.contact-details {
  display: flex;
  gap: 25px;
  margin-top: 25px;
}

.contact-details svg {
  width: 40px;
  height: 40px;
  fill: white;
}



/* Footer Image */

.footer-image {
  width: 525px;
  height: 525px;
}

.footer-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}



/* ========================== */
/* TABLET */
/* ========================== */

@media (max-width: 1024px) {

  header .container {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 30px;
  }

  .profile {
    width: 420px;
    height: 420px;
  }

  .profile h3 {
    font-size: 2rem;
    left: 50%;
    transform: translateX(-50%);
  }

  header .container .about {
    margin-left: 0;
    margin-top: -80px;
    width: 100%;
    max-width: 700px;
    padding: 40px;
  }

  .about h2 {
    font-size: 2.2rem;
  }

  .about p {
    font-size: 1.1rem;
  }

  .project-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 35px;
  }

  .main-content {
    margin: 120px 0;
  }

  footer .container {
    flex-direction: column;
    text-align: center;
    gap: 60px;
  }

  .footer-image {
    width: 420px;
    height: 420px;
  }

  .footer-content {
    max-width: 600px;
  }

  .contact-details {
    justify-content: center;
  }

}



/* ========================== */
/* MOBILE */
/* ========================== */

@media (max-width: 700px) {

  .profile {
    width: 100%;
    height: auto;
  }

  .profile h3 {
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
  }

  header .container .about {
    margin-top: -50px;
    padding: 30px;
  }

  .about h2 {
    font-size: 2rem;
  }

  .about p {
    font-size: 1rem;
  }

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

  .footer-image {
    width: 100%;
    height: auto;
  }

}