
:root {
  --white: #EFECE2;
  --black: #191919;
  --light: #EFECE2;
  --light-trans-1: #EFECE280;
  --dark: #191919;
  --dark-trans-1: #19191980;
  --dark-trans-2: #191919BF;
  --pri: #968653;
  --window-shadow: 0 0 1.5rem #000000;
  --nav-height: 4rem;
}

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

  /* Firefox */
  scrollbar-color: var(--pri) var(--light);
}


/* Scroll Bar: Chrome, Edge, and Safari */
html::-webkit-scrollbar {
  width: 5px;
}

html::-webkit-scrollbar-track {
  background: var(--light);
}

html::-webkit-scrollbar-thumb {
  background-color: var(--pri);
  border-radius: 500px;
  border: none;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
} 

::-moz-selection {
  background-color: transparent;
}

::selection {
  background-color: transparent;
}

/* Anchors */
a {
  text-decoration: none;
  color: var(--dark);
}
a:hover {
  cursor: pointer;
}

/* Lists */
li {
  list-style: none;
}

/* Page Transitions */
.page-trans {
  position: fixed;
  inset: 0;
  opacity: 0;
  z-index: 1000;
  background-color: var(--light);
  pointer-events: all;
  transition: opacity 500ms ease-in-out;
}

.page-trans.active {
  opacity: 1;
}

/* Body */
body {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--light);
  color: var(--dark);
  overflow-x: hidden;
  font-family: "Valera Round", sans-serif;
  image-rendering: pixelated;
}

.background,
section {
  max-width: 2000px;
}
section:not(:first-of-type) {
  background-color: var(--light);
  z-index: 1;
}
.background {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: -2;
  background-image: url(./images/hero-light.jpeg);
  background-size: cover;
  background-position: 50% 40%;
}
.background.dark {
  background-image: url(./images/hero-dark.jpeg);
  background-size: cover;
  background-position: 50% 30%;
}

p,
h1,
h2 {
  cursor: default;
}
h2 {
  letter-spacing: 1px;
}

/* Dark Mode ===============================================================*/

body.dark {
  --dark: #EFECE2;
  --light: #191919;
  --light-trans-1: #19191980;
  --dark-trans-1:#EFECE280;
  --dark-trans-2: #EFECE2BF;
  --window-shadow: 0 0 1rem #EFECE280;
}

/* Nav Menu ================================================================*/

header {
  position: fixed;
  width: 100%;
  height: var(--nav-height);
  z-index: 2;
}
nav {
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 3rem;
  z-index: 10;
}
.nav-menu {
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}
.nav-link {
  color: var(--light);
  display: block;
  line-height: 3rem;
  padding: 0 1rem;
  transition: color 125ms ease;
  font-size: 1.25rem;
  background-color: var(--dark-trans-1);
  border-radius: 999px;
  transition: background-color 125ms ease;
}
.nav-link:hover {
  background-color: var(--dark-trans-2);
}


/* Theme & Animations Toggle */
.theme-switch {
  margin-right: 0.5rem;
}
.theme-switch,
.anim-switch {
  color: var(--light);
  display: inline-block;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  padding: 0.5rem;
  background-color: var(--dark-trans-1);
  cursor: pointer;
  transition: background-color 125ms ease;
}

.theme-switch:hover,
.anim-switch:hover {
  background-color: var(--dark-trans-2);
}

#theme-checkbox,
#anim-checkbox {
  position: absolute;
  width: 0;
  opacity: 0;
}

/* Hamburger */
.hamburger {
  display: none;
  cursor: pointer;
  justify-content: center;
  align-items: center;
  width: 3rem;
  height: 3rem;
  background-color: var(--dark-trans-1);
  border-radius: 50%;
}
.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  transition: all 0.25s ease-in-out;
  background-color: var(--light);
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
    padding: 0.5rem;
    z-index: 100;
  }
  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active .bar:nth-child(1) {
    transform: translate(-1px, 8px) rotate(45deg);
  }
  .hamburger.active .bar:nth-child(3) {
    transform: translate(-1px, -8px) rotate(-45deg);
  }
  nav {
    padding: 0 1rem;
    justify-content: space-between;
    background-color: transparent;
  }
  .nav-menu {
    position: fixed;
    top: -100vh;
    left: 0;
    width: 100%;
    height: 100%;
    gap: 0;
    opacity: 0;
    flex-direction: column;
    justify-content: center;
    font-size: 2rem;
    text-align: center;
    transition: opacity 500ms ease,
              transform 250ms ease;
    background-color: var(--light);
  }
  .nav-menu.active {
    transform: translate3d(0, 100vh, 0);
    opacity: 1;
  }
  .nav-item {
    margin: 0.5rem 0;
  }
  .theme-switch,
  .anim-switch {
    margin: 0;
  }

}

/* Home ====================================================================*/

#home {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
  min-height: 480px;
  height: 100vh;
  font-size: 1.25rem;
  color: var(--light);
  font-weight: bold;
}
.title,
.description,
.arrow {
  font-family: 'Playball', cursive;
  color: var(--white);
  -webkit-filter: drop-shadow(0 0 0.5rem black);
          filter: drop-shadow(0 0 0.5rem black);
}
.description {
  font-size: 1.35rem;
  margin-bottom: 1rem;
  padding: 0.2rem 0.5rem;
  letter-spacing: 2px;
}
.title {
  font-size: 6rem;
  line-height: 0.75em;
  letter-spacing: -5px;
}
.arrow {
  color: var(--white);
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1rem;
}


/* Portfolio ===============================================================*/

#portfolio {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-wrap: wrap;
  padding-bottom: 20rem;
}
.gallery-btn {
  position: absolute;
  bottom: 8rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2rem;
  background-color: transparent;
  box-shadow: 0 0 1rem var(--dark-trans-1);
  color: var(--dark);
  border-radius: 999px;
  padding: 1rem 3rem;
  transition: background-color 125ms ease;
}
.gallery-btn:hover {
  background-color: var(--pri);
}
.portfolio-window {
  margin: 5rem 1rem 0;
}
.portfolio-window:first-of-type {
  margin-top: 10rem;
}

.portrait-window > img.dark {
  content: url(./images/portrait-dark.jpeg);
}
.fashion-window > img.dark {
  content: url(./images/fashion-dark.jpeg);
}
.editorial-window > img.dark {
  content: url(./images/editorial-dark.jpeg);
}

.para-window {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  box-shadow: var(--window-shadow);
}



/* About ===================================================================*/

#about {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.about-top,
.about-bottom {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.about-top {
  margin-top: 10rem;
}
.about-desc {
  padding: 1rem;
  font-size: 1.25rem;
}
.about-desc h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}
.about-desc > p {
  max-width: 40rem;
  font-size: 1.5rem;
}
.about-bottom {
  flex-direction: column-reverse;
}
.about-half {
  width: 100%;
  min-height: 75vh;
}
.about-window > img.dark {
  content: url(./images/about-dark.jpeg);
}
.comp-card {
  font-size: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: auto;
  margin: 5rem 0;
}
.measurements > li {
  display: flex;
  justify-content: space-between;
}
.measurements li:first-of-type {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  letter-spacing: 1px;
}
.measurements-window {
  width: 50%;
  -o-object-position: top;
     object-position: top;
  -o-object-fit: cover;
     object-fit: cover;
  display: none;
}


/* Parallax Images */
.para-image {
  position: absolute;
  width: 100%;
  height: 100%;
  -o-object-position: top;
     object-position: top;
  -o-object-fit: cover;
     object-fit: cover;
}


/* Contact =================================================================*/

#contact {
  min-height: 100vh;
  padding-top: 20vh;
  width: 100%;
}
.contact-main {
  width: calc(100% - 2rem);
  min-height: calc(80vh - 2rem);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  margin: 1rem;
}
.contact-main > div,
.contact-input {
  width: calc(100% - 2rem);
  max-width: 40rem;
  max-height: 50rem;
}
.contact-left {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}
.contact-text {
  width: 100%;
  font-size: 1.5rem;
}
.contact-text > h2 {
  text-align: center;
  font-size: 1.75rem;
  margin-bottom: 1rem;
}
.social-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 4rem;
  margin: 1rem 0;
}
.social-container svg {
  width: 2.5rem;
  height: 2.5rem;
  margin: 0 1rem;
  cursor: pointer;
  color: var(--dark);
  opacity: 0.5;
  transition: opacity 250ms ease;
}
.social-container svg:hover {
  opacity: 1;
}
.contact-input {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.contact-input input,
textarea {
  resize: none;
  width: 100%;
  background-color: transparent;
  outline: 0;
  border: 0;
  border-bottom: 1px solid var(--dark);
  color: var(--dark);
  min-height: 3rem;
  margin-bottom: 1rem;
}
.half-col {
  width: 100%;
}
.contact-btn {
  width: 100%;
  height: 3rem;
  font-size: 1.25rem;
  background-color: transparent;
  border: 1px solid var(--dark);
  color: var(--dark);
  cursor: pointer;
  transition: all 125ms ease;
}
.contact-btn:hover {
  background-color: var(--dark);
  color: var(--light);
}


/* Footer ==================================================================*/
footer {
  background-color: var(--light);
  color: var(--dark);
  text-align: center;
  width: 100%;
  padding: 1rem;
}
footer > p {
  opacity: 0.5;
}


/* Responsive Design =======================================================*/
@media (min-width: 400px) {
  .description {
    font-size: 1.85rem;
  }
}
@media (min-width: 500px) {
  .description {
    font-size: 2rem;
  }
}
@media (min-width: 768px) {
  #home {
    min-height: 600px;
  }
  .title {
    font-size: 6rem;
  }
  .description {
    font-size: 3rem;
  }
  #about {
    padding: 1rem;
  }
  #about > div {
    display: flex;
    flex-direction: row;
  }
  .measurements-window {
    display: block;
  }
  .about-bottom {
    justify-content: space-between;
  }
  .about-half {
    width: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .measurements {
    padding: 4rem;
    border: 2px solid var(--dark);
  }
}

@media (min-width: 1000px) {
  .portfolio-window {
    width: 45%;
    margin: calc(10% / 4);
  }
  .fashion-window {
    position: relative;
    top: 40rem;
  }
}
@media (min-width: 1330px) {
  .half-col {
    display: flex;
    justify-content: space-between;
  }
  .half-col > input {
    width: 45%;
  }
}
