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

:root {
  --primary-color: #faebd7;
  --secondary-color: #1e5a5dbc;
  --skill-color: #0d2e30;
  --career-color: rgb(84, 83, 83);
}

/* header */

header {
  background-color: var(--secondary-color);
  padding: 20px;
  font-family: Georgia, "Times New Roman", Times, serif;
}

header h1 {
  font-size: 1.4rem;
}

header h3 {
  font-size: 0.8rem;
  color: rgb(84, 83, 83);
}

/* Main */

main {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: var(--primary-color);
}

/* Hero / home */
.hero {
  margin-top: 20vh;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10vw;
}

.self-portrait {
  display: inline-block;
}

.self-portrait img {
  height: 400px;
  border-radius: 100px;
  border: 3px solid black;
}

.hero-p {
  display: inline-block;
  text-align: center;
  font-family: Cambria, Cochin, Georgia, Times, "Times New Roman", serif;
  width: 500px;
  font-size: 1.8rem;
}

/* Interests */

#interests-heading {
  text-align: center;
  font-family: Cambria, Cochin, Georgia, Times, "Times New Roman", serif;
  margin-top: 35vh;
  font-size: 2rem;
  margin-bottom: 5vh;
}

.interests {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15vw;
}

.box {
  background-color: var(--secondary-color);
  padding: 40px;
  padding-bottom: 20px;
  border: 5px solid rgb(51, 51, 51);
  display: inline-block;
  text-align: center;
  position: relative;
  border-radius: 12px;
  font-size: 1rem;
}

.box h1 {
  font-family: "Roboto Condensed", sans-serif;
  color: antiquewhite;
}

.box p {
  font-family: "Roboto Condensed", sans-serif;
  color: antiquewhite;
}

.box-img {
  height: 400px;
  width: 400px;
  object-fit: cover;
  border-radius: 12px;
}

.flickr-logo {
  position: absolute;
  top: 5px;
  left: 5px;
  height: 40px;
}

.box a:visited {
  color: black;
}

.box a {
  color: black;
}

.youtube-logo {
  position: absolute;
  top: 5px;
  left: 5px;
  height: 30px;
}

/* Skills */

#skills {
  text-align: center;
  font-family: Cambria, Cochin, Georgia, Times, "Times New Roman", serif;
  margin-top: 10vh;
  font-size: 2rem;
  margin-bottom: 5vh;
}

.skills-container {
  overflow: hidden;
  max-width: 100vw;
}

.skills-carousel {
  display: flex;
  align-items: center;
  width: max-content;
  gap: 15px;
  animation: carousel infinite 30s linear;
}

.skills-carousel div {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  padding: 10px;
  margin: 5px;
  width: 12rem;
  height: 6rem;
  border: 4px solid var(--skill-color);
  border-radius: 50%;
  background-color: var(--primary-color);
  color: var(--skill-color);
  font-size: 1.2rem;
  text-align: center;
}

@keyframes carousel {
  from {
    transform: translateX(0%);
  }
  to {
    transform: translateX(-50%);
  }
}

.skills-carousel:hover {
  animation-play-state: paused;
}

/* Career */
.career {
  margin-top: 10vh;
  display: flex;
  justify-content: center;
  gap: 8vw;
  padding: 0 6vw 8vh;
  font-family: Cambria, Cochin, Georgia, Times, "Times New Roman", serif;
}

.career-block {
  max-width: 25vw;
}

.career-heading {
  font-size: 1.8rem;
  font-family: Cambria, Cochin, Georgia, Times, "Times New Roman", serif;
  color: var(--secondary-color);
  border-bottom: 2px solid var(--secondary-color);
  padding-bottom: 8px;
  margin-bottom: 16px;
}

.career-block p,
.career-block li {
  font-size: 1.05rem;
  line-height: 1.8;
}

.career-block ul {
  padding-left: 20px;
}

.resume-button {
  display: grid;
  place-items: center;
  width: fit-content;
  margin: auto;
  margin-bottom: 5vh;
  padding: 0.7em 1.7em;
  background: var(--primary-color);
  border-radius: 10px;
  box-shadow: 6px 6px 10px -1px rgba(0, 0, 0, 0.15),
    -6px -6px 10px -1px rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0);
  cursor: pointer;
  transition: 0.5s;
}

.resume-button:hover {
  box-shadow: inset 4px 4px 6px -1px rgba(0, 0, 0, 0.2),
    inset -4px -4px 6px -1px rgba(255, 255, 255, 0.7),
    -0.5px -0.5px 0px rgba(255, 255, 255, 1),
    0.5px 0.5px 0px rgba(0, 0, 0, 0.15), 0px 12px 10px -10px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.1);
  transform: translateY(0.1em);
}

.resume-button a {
  color: #1a1a1a;
  text-decoration: none;
  font-family: Cambria, Cochin, Georgia, Times, "Times New Roman", serif;
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.5s;
}

.resume-button:hover a {
  color: #444;
}

/* Footer */
footer {
  background-color: var(--secondary-color);
  padding: 15px;
  display: block;
  font-family: Cambria, Cochin, Georgia, Times, "Times New Roman", serif;
}

footer p {
  font-size: 1.1rem;
}

footer i {
  font-size: 0.8rem;
}

.right {
  text-align: right;
}

#socials {
  position: absolute;
  font-size: 1.4rem;
}

#socials img {
  height: 25px;
  vertical-align: middle;
}

#socials img:hover {
  transition: 0.4s;
  transform: scale(1.5);
}

/* Media Queries */

@media screen and (max-width: 1150px) {
  .hero {
    flex-direction: column;
    margin: auto;
    margin-top: 10vh;
  }

  .hero-p {
    width: 60vw;
    font-size: 1.8rem;
  }

  .self-portrait img {
    height: 35vh;
  }

  #interests-heading {
    margin-top: 20vh;
    font-size: 2rem;
  }

  .interests {
    flex-direction: column;
  }

  .box h1 {
    font-size: 1.8rem;
  }

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

  .flickr-logo {
    height: 3vh;
  }

  .youtube-logo {
    height: 2vh;
  }

  #skills {
    font-size: 2rem;
  }

  .career {
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 5vh;
  }

  .career-block {
    min-width: 80vw;
  }
}

@media screen and (max-width: 575px) {
  .hero {
    flex-direction: column;
    margin: auto;
    margin-top: 10vh;
  }

  .hero-p {
    width: 90vw;
    font-size: 1.2rem;
  }

  .self-portrait img {
    height: 25vh;
  }

  #interests-heading {
    margin-top: 20vh;
    font-size: 1.5rem;
  }

  .interests {
    flex-direction: column;
  }

  .box {
    border: 3px solid rgb(51, 51, 51);
  }

  .box-img {
    width: 50vw;
    height: 30vh;
  }

  .box h1 {
    font-size: 1rem;
  }

  .box p {
    font-size: 0.7rem;
  }

  .flickr-logo {
    height: 4vh;
  }

  .youtube-logo {
    height: 3vh;
  }

  #skills {
    font-size: 1.5rem;
  }

  .skills-carousel div {
    width: 6rem;
    height: 3rem;
    font-size: 0.7rem;
    border: 2px solid var(--skill-color);
  }

  .career {
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 5vh;
  }

  .career-block {
    min-width: 80vw;
  }

  footer p {
    font-size: 1rem;
  }

  .right {
    font-size: 0.9rem;
  }

  #socials img {
    height: 22px;
  }
}
