@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap');

/* RESET */

*,
*::after,
*::before {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
button,
textarea {
    font: inherit;
}

/* VARIABLES */

:root {
  /* FONTS */

  --FF: "Source Sans 3", sans-serif;
  --FS: 1rem;

  /* COLORS */

  --BGCOLOR: #FFF;
  --SECTION-BGCOLOR: #DDD;
  --LINK-COLOR: #FFF;
  --LINK-BGCOLOR: #555;
  --LINK-HOVER-BGCOLOR: #777;
  --BORDER-COLOR: #555;
  --SUB-COLOR: #555;

  /* BORDER */

  --BORDER-RADIUS: 10px;

  /* PADDING */

  --BODY-PADDING: 0.5rem;
  --SECTION-PADDING: 1rem;

  /* MARGIN */

  --MARGIN: 0.5rem;

  /* JAVASCRIPT */

  --CARD-GRADIENT-OPACITY: 0;

}

/* UTILITY */

.nowrap {
  white-space: nowrap;
}

/* STYLES */

html {
  font-size: var(--FS);
  font-family: var(--FF);
}

.about-body {
  min-height: 100vh;
  padding: var(--BODY-PADDING);
  padding-top: 0;
  background-color: var(--BGCOLOR);
  display: grid;
  grid-template-rows: auto auto 1fr;
}

.resume-top article, .resume-body {
  display: flex;
  padding: var(--SECTION-PADDING);
  margin: var(--MARGIN);
  background-color: var(--SECTION-BGCOLOR);
  border-radius: var(--BORDER-RADIUS);
}

/* HEADER */

.header {
  background-color: var(--SECTION-BGCOLOR);
  margin: 0.5rem;
  margin-top: 0;
  padding: 0.5rem;
  border-radius: 0 0 var(--BORDER-RADIUS) var(--BORDER-RADIUS);
  position: sticky;
  z-index: 1;
  top: 0;
  display: flex;
  flex-flow: row nowrap;
  justify-content: center;
}

.header__nav {
  width: min(100%, 600px);
  display: flex;
  flex-flow: row nowrap;
  justify-content: center;
}

.header__nav a:any-link {
  display: block;
  padding: 0.5rem 1rem;
  margin: 0 0.25rem;
  white-space: nowrap;
  text-decoration: none;
  text-align: center;
  border-radius: var(--BORDER-RADIUS);
  background-color: var(--LINK-BGCOLOR);
  color: var(--LINK-COLOR);
  flex-basis: 0;
  flex-grow: 1;
  transition: background-color 0.1s;
}

.header__nav a:any-link:hover {
  background-color: var(--LINK-HOVER-BGCOLOR);
}

/* RESUME TOP */

.resume-top {
  display: grid;
  grid-template-rows: auto auto;
  grid-template-columns: 3fr 1fr;
}

.resume-top__profile {
  grid-row: 1 / 2;
  grid-column: 1 / 2;

  flex-direction: row;
  align-items: center;
}

.resume-top__profile img {
  max-height: 100px;
  width: auto;
  margin-right: 1.5rem;
  border-radius: 50%;
}

.resume-top__profile h1 {
  font-size: 2rem;
}

.resume-top__description {
  grid-row: 2 / 3;
  grid-column: 1 / 2;
}

.resume-top__links {
  grid-row: 1 / 3;
  grid-column: 2 / 3;

  flex-flow: column nowrap;
  min-width: 17rem;
}

.resume-top__links a:any-link {
  display: grid;
  place-content: center;
  white-space: nowrap;
  margin: 0.25rem 0 0.25rem 0;

  background-color: var(--LINK-BGCOLOR);
  color: var(--LINK-COLOR);
  text-decoration: none;
  border-radius: var(--BORDER-RADIUS);

  text-align: center;
  flex-grow: 1;

  transition: background-color 0.1s;
}

.resume-top__links a:any-link:hover {
  background-color: var(--LINK-HOVER-BGCOLOR);
}

/* RESUME BODY */

.resume-body {
  display: flex;
  flex-flow: row nowrap;
  padding: 2rem;
}

.resume-body__sub {
  text-indent: 1rem;
  color: var(--SUB-COLOR);
}

.resume-body__hr {
  background-color: var(--BORDER-COLOR);
  margin: 1rem 0 1rem 0;
  height: 2px;
  border-radius: 1px;
  width: 100%;
}

.resume-body__ls, .resume-body__rs {
  flex-basis: 0;
  flex-grow: 1;
}

.resume-body__vl {
  width: 2px;
  margin: 0 2rem;
  background-color: var(--BORDER-COLOR);
}

.resume-body ul {
  column-count: 2;
  column-gap: 50px;
  margin-left: 1rem;
  margin-top: 0.5rem;
}

.resume-body__hb-for-phone {
  display: none;
}

.resume-body a {
  color: var(--SUB-COLOR);
}

/* IMAGE GALLARY */

.images-body {
  min-height: 100vh;
  padding: var(--BODY-PADDING);
  padding-top: 0;
  background-color: var(--BGCOLOR);
  display: grid;
  grid-template-rows: auto 1fr;
}

.image-container {
  border-radius: var(--BORDER-RADIUS);
  margin: var(--MARGIN);
  padding: 1rem;
  background-color: var(--SECTION-BGCOLOR);
  max-height: 100%;
  display: grid;
  grid-template-rows: auto auto 1fr;
}

.image-container__header {
  text-align: center;
}

.image-container hr {
  border: transparent;
  height: 2px;
  margin: var(--MARGIN);
  background-color: var(--BORDER-COLOR);
}

.image-container__card-holder {
  /*background-color: rgba(255, 0, 255, 0.3);*/
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  justify-items: center;
  align-content: center;
  align-items: center;
}

.image-container__card {
  transform: scale(1);
  width: 150px;
  height: 225px;
  margin: 1rem;
  transition: transform 0.2s ease-in-out;
}

.image-container__card__back {
  background-color: var(--LINK-BGCOLOR);
  border-radius: var(--BORDER-RADIUS);
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.image-container__card__back-effect {
  position: absolute;
  border-radius: 10px;
  top: 0px;
  right: 0px;
  width: 100%;
  height: 100%;
}

.image-container__card__shine {
  background-image: radial-gradient(circle at top, rgba(255, 255, 255, var(--CARD-GRADIENT-OPACITY)), transparent);
}

.image-container__card__img {
  object-fit: cover;
  pointer-events: none;
  min-height: 100%;
  min-width: 100%;
}

.image-container__card__title {
  position: absolute;
  pointer-events: none;
  bottom: -35%;
  color: #fff;
  padding: 0.5rem;
  display: grid;
  place-content: center;
  background-color: rgba(0,0,0,0.5);
  width: 100%;
  height: 35%;
  transition: bottom 0.5s ease-in-out;
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.image-container__card__title p {
  display: inline;
  text-align: center;
}

.image-container__card__title__hover {
  bottom: 0%;
}

.image-container__card__description {
  display: none;
}

.image-overlay {
  position: fixed;
  display: none;
  z-index: 2;
  top: 0;
  left: 0;
  padding: 2rem;
  background-color: rgba(0,0,0,0.8);
  opacity: 0;
  width: 100vw;
  height: 100vh;
  transition: opacity 1s ease-in-out;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

.image-overlay__show {
  display: flex;
  animation: changeOpacity 0.2s;
}

@keyframes changeOpacity {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.image-overlay__figure-area {
  position: static;
  border-radius: var(--BORDER-RADIUS);
  width: max(50%, 300px);
  max-height: 80%;
}

.image-overlay__figure-area figure {
  display: grid;
  padding: 1rem;
  grid-template-rows: 1fr auto auto;
}

.image-overlay__figure-area hr {
  margin: 1rem 0;
  height: 2px;
  border: none;
  background-color: #fff;
  border-radius: 1px;
}

.image-overlay__figure-area .img-area {
  display: flex;
  justify-content: center;
  max-height: 350px;
}

.image-overlay__figure-area figcaption {
  color: #fff;
}

.image-overlay__figure-area figcaption h3 {
  margin: 0 0 0.5rem 0;
}

.image-overlay__image {
  max-width: 100%;
  max-height: 100%;
  height: auto;
  width: auto;
  
  border-radius: var(--BORDER-RADIUS);
}

/* MEDIA QUERIES */

@media screen and (max-width: 1000px) {
  .resume-body ul {
    column-count: 1;
  }
}

@media screen and (max-width: 700px) {
  .resume-top {
    grid-template-rows: auto auto auto;
    grid-template-columns: 1fr;
  }

  .resume-top__links {
    flex-direction: column;
    justify-content: space-evenly;
    grid-row: 3 / 4;
    grid-column: 1 / 2;
  }

  .resume-top__links a:any-link {
    padding: 0.5rem 0;
  }

  .resume-top__profile {
    flex-direction: column;
  }

  .resume-top__profile img {
    max-height: 300px;
    max-width: 80%;
    height: auto;
    margin: 0rem 2rem 1rem 2rem;
  }

  .resume-top__description, .resume-top__profile {
    text-align: center;
    justify-content: center;
  }

  .resume-body {
    flex-direction: column;
  }

  .resume-body__vl {
    display: none;
  }

  .resume-body__hb-for-phone {
    display: initial;
  }
}