/* sRGB color. */
:root {
  --bright-green: rgb(44, 74, 50);
  --bright-white: rgb(242, 235, 241);
  --bright-brown: rgb(93, 50, 50);
  --background: black;
  --foreground: white;
  --border-size: 2px;
  --border-radius: 0.75em;
}

h4,
h3,
h2 {
  padding-block: 10px;
  margin: 0;
}

h2 {
  font-size: 2rem;
  color: #034c47;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
}

p {
  font-size: 1rem;
  color: #333333;
  font-family: "Poppins", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
  font-weight: thin;
  box-sizing: border-box;
  font-size: 100%;
  scroll-behavior: smooth;
  width: 100%;
  height: 100%;
}

a,
ul,
li {
  text-decoration: none;
  list-style-type: none;
}

a:link,
a:visited {
  color: #333333;
}

a.active {
  color: #b7a3c5;
  font-weight: bold;
}

a {
  transition: 0.5s ease-in-out;
}

.page-header {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  padding: 0 20px 0;
  height: 100px;
  z-index: 1000;
  background-color: white;
  display: flex;
  align-items: center;
  box-shadow: 0 8px 32px 0 #333333;
}

.page-header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-right: 20px;
}

.page-header .page-header-inner {
  display: flex;
  align-items: center;
  z-index: 1000;
}

.page-header .page-header-inner * {
  z-index: 1;
}

.page-header .toggle-menu {
  margin-right: 10px;
  width: 70px;
}

.page-header lottie-player {
  display: flex;
  z-index: 1000;
}

.page-header .logo {
  font-weight: bold;
  font-size: 30px;
}
.page-header .logo span {
  color: #2e7a89;
}

.page-header .menu-wrapper {
  transform: translateY(-200px);
  transition: transform 1s ease-in-out;
}

.page-header.menu-open .menu-wrapper {
  transform: none;
}

.page-header .menu-wrapper ul {
  display: flex;
  align-items: center;
}

.page-header .menu-wrapper li:not(:last-child) {
  margin-right: 35px;
}

.page-header .menu-wrapper a {
  display: inline-block;
  padding: 5px;
}

@media (max-width: 900px) {
  .page-header {
    padding-top: 20px;
  }

  .page-header .menu-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    display: flex;
    transform: translateY(-100vh);
    overflow-y: auto;
    background: white;
  }

  .page-header .menu-wrapper ul {
    padding: 100px 0;
    margin: auto;
    flex-direction: column;
  }

  .page-header .menu-wrapper li:not(:last-child) {
    margin: 0 0 20px;
  }
}

.get-in-touch {
  transform: scale(0.95);
  text-shadow: 1px 1px 2px black;
  background: rgba(58, 7, 95, 0.4);
}

#banner {
  position: relative;
  display: flex;
  flex-direction: column;
  padding-top: 150px;
  align-items: center;
  background: url(../images/offer.png) no-repeat;
  background-size: cover;
}

#banner h1 {
  text-align: left;
  font-size: 1.2em;
  margin: 0;
  padding: 0;
  font-family: "Open Sans", sans-serif;
  font-weight: 800;
  color: #000000;
}

#banner h2 {
  font-size: 3em;
  margin: 0;
  padding: 0;
  font-family: "Open Sans", sans-serif;
  font-weight: 700;
}
#banner img {
  width: 70%;
  height: 70%;
}

.content {
  animation: fadeIn 4s ease-in;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.content h2 {
  font-size: 1rem;
  text-align: center;
}

#laptop {
  display: flex;
  justify-content: center;
}

.title {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.5;
  padding: 20px 10px;
  text-align: left;
  width: 100%;
}

.title h2 {
  font-size: 2rem;
  color: #034c47;
  font-family: "Poppins", sans-serif;
}

.main-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #f3e0d7;
}
.main-content p {
  padding: 10px;
  font-family: "Poppins", sans-serif;
}

.parent-container-about {
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.about-me {
  background: #f6e7e1;
  line-height: 1.5;
  font-family: Roboto, sans-serif;
}

.about-me h2 {
  padding: 5px;
  font-size: 1.2rem;
  color: #034c47;
  font-family: "Poppins", sans-serif;
}
.parent-container-skills {
  padding: 10px;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
  width: 100%;
}

.skills-button-grid {
  width: 100%;
  padding-block: 20px;
  display: grid;
  gap: 0.3rem;
  line-height: 1.5;
  background: #f5e6e1;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  place-items: center;
}

.devicon-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 20px;
  background: #eeeeee;
  transition: all 0.5s;
}

.devicon-container figcaption {
  font-size: 0.8rem;
  color: #333333;
  font-family: "Poppins", sans-serif;
  text-align: center;
}

.devicons {
  width: 40px;
  height: 40px;
}
.devicon-container:hover {
  transform: scale(1.1);
  /* background: black; */
}

.parent-container-portfolio {
  display: flex;
  flex-direction: column;
  justify-content: flex-end; /* Centers the child horizontally */
  align-items: flex-end;
  background: url(../images/blob-scene-haikei.png) repeat;
  background-size: 100vw 100vh;
  padding-inline: 20px;
  padding-block: 100px;
}

.portfolio {
  display: grid;
  grid-gap: 1rem;
  grid-template-columns: 1fr;
}
.portfolio-text {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  /* background: #333333; */
  background: #f6e8e1;
  height: 100px;
}

.card-text-container p {
  padding: 20px;
}

.project-stack {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  padding-block: 20px;
  border-top: white 1px solid;
  gap: 1rem;
}

.card {
  border: 2px solid white;
  height: 650px;
  border-radius: 20px;
  background-color: #333333;
  color: white;
}

.card p {
  color: white;
}

.card-button {
  display: flex;
  justify-content: center;
  align-items: center;
}

.card-button a:active {
  color: white;
  text-decoration: none;
  padding: 10px;
  border: 1px solid white;
  border-radius: 5px;
}
.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.5s;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}
.card-image-container:hover .card-overlay {
  opacity: 1;
}
.card-overlay a {
  color: white;
  text-decoration: none;
  padding: 10px;
}
.card-image-container {
  position: relative;
  display: flex;
  justify-content: center;
  border-radius: 20px;
}

.card-text-container {
  padding: 10px 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  height: auto;
  font-family: "Roboto", sans-serif;
}

img {
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  width: 100%;
  height: 300px;
  object-fit: cover;
  vertical-align: middle;
}
.contact-form-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  background: #f6e8e1;
}

.contact-form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  background: #f6e8e1;
  border-radius: 20px;
  width: 80%;
}

.contact-form input,
textarea {
  padding: 10px;
  margin: 10px;
  border-radius: 5px;
  border: 1px solid #333333;
}

.contact-form input:focus {
  outline: none;
  border: 1px solid #b7a3c5;
}

.contact-form textarea:focus {
  outline: none;
  border: 1px solid #b7a3c5;
}
.contact-form textarea {
  resize: none;
}

input {
  width: 100%;
}

textarea {
  width: 100%;
  height: 200px;
}

.contact-form button:hover {
  background: #b7a3c5;
  color: #333333;
}

.contact-form button {
  padding: 10px;
  margin: 10px;
  border-radius: 5px;
  border: 1px solid #333333;
  background: #333333;
  color: white;
}

/* The secret sauce that enables gradient rotation. NOTE: does not work in all browsers. https://caniuse.com/?search=%40property */
@property --border-angle-1 {
  syntax: "<angle>";
  inherits: true;
  initial-value: 0deg;
}

@property --border-angle-2 {
  syntax: "<angle>";
  inherits: true;
  initial-value: 90deg;
}

@property --border-angle-3 {
  syntax: "<angle>";
  inherits: true;
  initial-value: 180deg;
}

/* Display-P3 color, when supported. */
@supports (color: color(display-p3 1 1 1)) {
  :root {
    --bright-green: color(display-p3 1 1 1);
    --bright-white: color(display-p3 1.4 0 1);
    --bright-brown: color(display-p3 1 1 1);
  }
}

@keyframes rotateBackground {
  to {
    --border-angle-1: 360deg;
  }
}

@keyframes rotateBackground2 {
  to {
    --border-angle-2: -270deg;
  }
}

@keyframes rotateBackground3 {
  to {
    --border-angle-3: 540deg;
  }
}

button {
  --border-angle-1: 0deg;
  --border-angle-2: 90deg;
  --border-angle-3: 180deg;
  color: inherit;
  font-size: 12px;
  font-family: inherit;
  border: 0;
  padding: var(--border-size);
  display: flex;
  width: max-content;
  border-radius: var(--border-radius);
  background-color: transparent;
  background-image: conic-gradient(
      from var(--border-angle-1) at 10% 15%,
      transparent,
      var(--bright-white) 10%,
      transparent 30%,
      transparent
    ),
    conic-gradient(
      from var(--border-angle-2) at 70% 60%,
      transparent,
      var(--bright-green) 10%,
      transparent 60%,
      transparent
    ),
    conic-gradient(
      from var(--border-angle-3) at 50% 20%,
      transparent,
      var(--bright-brown) 10%,
      transparent 50%,
      transparent
    );
  animation: rotateBackground 3s linear infinite,
    rotateBackground2 8s linear infinite, rotateBackground3 13s linear infinite;
}

/* Change this background to transparent to see how the gradient works */
button div {
  background-color: #333333;
  padding: 1em 1.5em;
  border-radius: calc(var(--border-radius) - var(--border-size));
  color: var(--foreground);
  transition: all 0.5s;
}

button div:hover {
  background-color: #b7a3c5;
  color: #333333;
}

@font-face {
  font-family: "Aspekta";
  font-weight: normal;
  src: url("https://assets.codepen.io/240751/Aspekta-300.woff2") format("woff2");
}

footer {
  background-color: #333333;
  display: flex;
  flex-direction: column;
  color: white;
  align-items: center;
  justify-content: center;
  height: 100px;
  border-top: #b7a3c5 solid 1px;
  padding-inline: 20px;
  width: 100%;
}

footer ul {
  color: white;
  display: flex;
  justify-content: center;
  width: 100%;
}
.icons {
  display: flex;
  justify-content: space-evenly;
  width: 100%;
  padding: 10px;
}

.fa-brands,
.fa-solid {
  color: white;
  font-size: 2rem;
}

.fa-brands:visited,
.fa-solid:link {
  color: white;
}

.fa-brands:hover,
.fa-solid:hover {
  color: #b7a3c5;
  transform: scale(1.2);
}

.animate-hand {
  animation: hand 1s infinite;
  display: inline-block;
}

@keyframes hand {
  0% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(30deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

/* Media Queries */

@media screen and (min-width: 1080px) {
  #banner {
    color: white;
    text-align: center;
    display: flex;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    padding-block: 60px;
    align-items: center;
    line-height: 1.5;
    height: 100vh;
  }

  #banner button div {
    width: 200px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  #banner h1 {
    font-size: 4em;
    color: #000000;
    font-weight: 700;
  }
  #banner h2 {
    font-size: 4em;
    color: #034c47;
  }

  .content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    flex-wrap: wrap;
    animation: fadeIn 4s ease-in;
  }

  .about-me h2 {
    padding: 5px;
    font-size: 2rem;
    color: #034c47;
    font-family: "Poppins", sans-serif;
  }

  .my-skills {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    padding-inline: 60px;
    padding-bottom: 60px;
    background: #f3e0d7;
  }

  #laptop img {
    margin: 0;
    padding: 0;
  }

  #banner-image-container {
    position: relative;
    display: flex;
    justify-content: space-evenly;
    align-items: flex-start;
  }

  .main-content {
    display: flex;
    flex-direction: column;
    padding-inline: 50px;
    padding-block: 30px;
    align-items: flex-start;
    justify-content: space-evenly;
  }
  .title {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.5;
    /* border: 1px solid red; */
    padding: 20px 10px;
    text-align: left;
    width: 100%;
  }

  .title h2 {
    font-size: 3rem;
    color: #034c47;
    font-family: "Poppins", sans-serif;
  }

  .about-me {
    flex-direction: column;
    line-height: 1.8;
    padding-inline: 60px;
    padding-bottom: 60px;
  }

  .parent-container-portfolio {
    background-size: cover;
    flex-direction: row;
    justify-content: center;
    padding-block: 60px;
  }

  .portfolio {
    padding-inline: 60px;
    grid-gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  }

  .card p {
    color: white;
  }

  .card-button {
    padding: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid white;
  }

  /* skills buttons */
  .parent-container-skills {
    flex-direction: column;
    align-items: center;
    padding-inline: 10px;
  }

  .skills-button-grid {
    width: 100%;
    max-width: 100vw;
    display: grid;
    gap: 1rem;
    row-gap: 4rem;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    padding-inline: 60px;
    padding-block: 60px;
    /* background: #f6e7e1; */
  }
  /* place-items: center; */
  /* border: 1px solid red; */

  button .skills:hover {
    color: #333333;
    text-shadow: 1px 1px 2px black;
    background: rgba(5, 138, 129, 0.6);
  }

  input {
    width: 70%;
  }

  textarea {
    width: 70%;
    height: 200px;
  }

  footer {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    height: 100px;
  }

  footer ul {
    justify-content: space-evenly;
    width: 100%;
  }
}

/* animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
