@import url("https://fonts.googleapis.com/css2?family=Pixelify+Sans&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Lobster&family=Pixelify+Sans&display=swap");

body {
  font-family: "Pixelify Sans", cursive;
  margin: 0;
}

h1 {
  font-family: "Lobster", cursive;
  color: #e5c3a6;
  font-size: 40px;
}

header {
  display: inline;
}

nav {
  background-color: #2e4374;
  padding: 5px;
  display: flex;
  justify-content: space-between;
  position: sticky;
  top: 0;
  transition: box-shadow 0.3s ease;
}

nav.shadow {
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

nav ul {
  padding-inline: 4rem;
  display: flex;
  gap: 2rem;
}

nav li {
  list-style-type: none;
}

nav a {
  font-size: 18px;
  font-weight: 400;
  text-decoration: none;
  color: white;
}

nav a:hover {
  font-weight: bold;
  font-size: 20px;
  color: #7c81ad;
}

nav a.active {
  font-size: 22px;
  font-weight: bold;
  color: #7c81ad;
}

.jumbotron {
  font-size: 20px;
  background-image: url("../images/home-background.svg");
  background-repeat: no-repeat;
  background-size: cover;
  height: 80vh;
  color: #7c81ad;
  display: flex;
  justify-content: flex-start;
  padding-inline: 4rem;
  padding-bottom: 8%;
  gap: 5em;
}

.jumbotron div {
  align-self: center;
}

.jumbotron img {
  max-width: 60%;
  object-fit: cover;
  border-radius: 30%;
  align-self: center;
}

.jumbotron h1 {
  font-size: 60px;
}

.logo {
  font-family: "Lobster", cursive;
  font-size: 20px;
  font-weight: bold;
  text-decoration: none;
}

.bulge-nav {
  background-color: #e5c3a6;
  border-radius: 40px;
  color: #7c81ad;
  padding: 0.5em;
}

img {
  max-width: 100%;
  height: auto;
}

figcaption {
  font-size: 18px;
  margin-top: 10px;
}

footer {
  font-family: "Lobster", cursive;
  padding: 20px;
  color: #7c81ad;
  background-color: #2e4374;
}

main {
  flex-direction: column;
}

.skill-image {
  width: auto;
}

article section {
  display: flex;
  flex-direction: row;
  gap: 8em;
  align-items: center;
}

article section:nth-child(even) {
  flex-direction: row-reverse;
}

#skills {
  padding: 3%;
  background-image: url("../images/skills-background.svg");
  background-repeat: no-repeat;
  background-size: cover;
}

#skills img {
  height: 20vh;
}

#skills p {
  color: #7c81ad;
}

#portofolio {
  padding: 3%;
  background-image: url("../images/portofolio-background.svg");
  background-repeat: no-repeat;
  background-size: cover;
}

#portofolio img {
  width: 120px;
}

.portofolio-desc {
  display: flex;
  flex-direction: row;
  gap: 1rem;
}

#portofolio figure {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 4px 8px 0px rgba(0, 0, 0, 0.2);
  border-radius: 5px;
  padding: 40px;
  gap: 2em;
  background-color: #4b527e;
  transition: transform 0.3s ease;
}

#portofolio figure:hover {
  background-color: #e5c3a6;
  color: #2e4374;
}

#portofolio figcaption {
  color: #7c81ad;
  font-size: 14px;
}

.contactus-form {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
  color: #7c81ad;
}

input[type="text"],
textarea {
  width: 80%;
  display: block;
  padding: 10px;
  border: 1px solid #e5c3a6;
  border-radius: 5px;
  outline: none;
}

textarea {
  resize: vertical;
}

.btn {
  font-family: "Pixelify Sans", cursive;
  background-color: #7c81ad;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
}

.btn:hover {
  background-color: #e5c3a6;
}

aside {
  box-shadow: 0 4px 8px 0px rgba(0, 0, 0, 0.2);
  border-radius: 5px;
  padding: 20px;
  background-color: #2e4374;
  color: white;
}

aside h1 {
  margin: 20px;
}

aside img {
  width: 100%;
  height: 140%;
  object-fit: cover;
}

.profile-img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin-bottom: 20px;
  object-position: center top;
}

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

table {
  width: 100%;
  border-collapse: collapse;
}

th {
  color: #7c81ad;
  padding-right: 20px;
  font-size: 14px;
  text-align: left;
}

td {
  font-size: 16px;
  color: #7c81ad;
  padding-right: 20px;
}

.social-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 40px;
  gap: 20px;
}

.social-section h2 {
  color: #7c81ad;
  font-family: "Lobster", cursive;
  font-size: 28px;
  margin: 0;
}

.social-icons {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background-color: #7c81ad;
  color: white;
  border-radius: 50%;
  text-decoration: none;
  font-size: 24px;
  transition: all 0.3s ease;
}

.social-link:hover {
  background-color: #e5c3a6;
  color: #2e4374;
  transform: scale(1.1);
}

#contactus {
  padding: 5%;
  background-image: url("../images/contactus-background.svg");
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
}

.hamburger {
  cursor: pointer;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  background: none;
  border: none;
  position: absolute;
  top: 20px;
  right: 20px;
}

.bar {
  background-color: white;
  height: 3px;
  width: 100%;
  transition: transform 0.3s ease;
}

@media screen and (max-width: 838px) {
  .hamburger {
    display: flex;
  }

  nav {
    flex-wrap: wrap;
  }

  nav ul {
    flex-wrap: wrap;
  }

  #nav-items {
    display: none;
    transition: display 0.3s ease;
  }

  .jumbotron {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1em;
  }

  article section {
    flex-wrap: wrap;
    gap: 1em;
    margin-top: 5em;
    justify-content: center;
  }

  .portofolio-desc {
    flex-wrap: wrap;
  }

  .bulge-nav {
    background-color: transparent;
    border-radius: 0px;
    color: white;
    padding: 0em;
  }

  #contactus {
    flex-wrap: wrap;
    justify-content: center;
    gap: 2em;
  }

  aside header {
    height: 150px;
  }
}
