@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Baloo+Bhaina+2:wght@700&display=swap");

:root {
  --nav-height: 3rem;
  --footer-height: 3.5rem;
  --transition-speed-primary: 150ms;
  --transition-speed-secondary: 0.5s;

  --clr-primary-blue: rgb(4, 9, 30);
  --clr-primary-green: rgb(191, 215, 181);
  --clr-primary-pink: rgb(248, 201, 205);

  --clr-neutral-white: hsl(0, 0%, 98%);
  --clr-neutral-dark-green: rgb(118, 169, 96);

  --linear-gradient: linear-gradient(rgba(4, 9, 30, 0.6), rgba(4, 9, 30, 0.6));

  --ff-primary: "Poppins", sans-serif;
  --ff-secondary: "Baloo Bhaina 2", cursive;

  --ff-body: var(--ff-primary);
  --ff-heading: var(--ff-secondary);

  --fw-regular: 400;
  --fw-semi-bold: 500;
  --fw-bold: 700;

  --fs-300: 0.8125rem;
  --fs-400: 1rem;
  --fs-500: 1.25rem;
  --fs-600: 1.75rem;
  --fs-700: 2.5rem;
  --fs-800: 5rem;
  --fs-900: 160px;

  --fs-primary-title: var(--fs-900);
}

@media (max-width: 50em) {
  :root {
    --fs-primary-title: 60px;
    --nav-height: 4rem;
  }
}

/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Remove default margin */
* {
  margin: 0;
  padding: 0;
  font: inherit;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role="list"],
ol[role="list"] {
  list-style: none;
}

/* Set core root defaults */
html:focus-within {
  scroll-behavior: smooth;
}

html,
body {
  height: 100%;
  scroll-behavior: smooth;
}

/* Set core body defaults */
body {
  text-rendering: optimizeSpeed;
  line-height: 1.5;
}

/* Remove verticle scroll bar */

body::-webkit-scrollbar {
  display: none;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
}

/* Make images easier to work with */
img,
picture,
svg {
  max-width: 100%;
  display: block;
}

/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* general styling */
body {
  font-family: var(--ff-body);
  background-color: var(--clr-neutral-white);
  color: var(--clr-primary-blue);
}

.wrapper {
  width: 80%;
  height: 100%;
  margin: auto;
  padding-top: 100px;
  padding-bottom: 50px;
  text-align: center;
}

.row {
  margin-top: 5%;
  display: flex;
  justify-content: space-between;
}

.section-title {
  font-size: var(--fs-700);
  font-weight: var(--fw-semi-bold);
  font-family: var(--ff-heading);
}

a {
  text-decoration: none;
  color: var(--clr-primary-blue);
  font-weight: var(--fw-semi-bold);
}

a.underline::after {
  content: "";
  width: 0;
  height: 0.15rem;
  background: #000;
  display: block;
  margin: auto;
  transition: var(--transition-speed-primary);
}

a.underline:hover::after,
a[role="active"]::after {
  width: 100%;
}

/* ----- navigation ----- */

.primary-header {
  height: var(--nav-height);
  background-color: var(--clr-neutral-white);
  width: 100%;
  z-index: 1;
}

.nav-wrapper {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8%;
}

.nav-list {
  display: flex;
  justify-content: space-around;
  gap: 4rem;
}

.nav-list a::after {
  content: "";
  background: var(--clr-primary-pink);
}

.logo a {
  text-decoration: none;
}

.logo p {
  display: inline-block;
  color: var(--clr-primary-blue);
}

.logo .name {
  font-weight: var(--fw-bold);
  margin-right: 20px;
}
.logo .specialty {
  font-weight: var(--fw-semi-bold);
}

.nav-instagram {
  display: none;
}

.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: 0;
}

.mobile-nav-toggle .line {
  transition: y var(--transition-speed) ease-in var(--transition-speed),
    rotate var(--transition-speed) ease-in;
  transform-origin: center;

  -webkit-transition: y var(--transition-speed) ease-in var(--transition-speed),
    rotate var(--transition-speed) ease-in;
}

.mobile-nav-toggle[aria-expanded="true"] .line {
  transition: y var(--transition-speed) ease-in,
    rotate var(--transition-speed) ease-in var(--transition-speed);

  -webkit-transition: y var(--transition-speed) ease-in,
    rotate var(--transition-speed) ease-in var(--transition-speed);
}

.mobile-nav-toggle[aria-expanded="true"] :is(.top-ham, .bottom-ham) {
  y: 45;
}

.mobile-nav-toggle[aria-expanded="true"] .top-ham {
  rotate: 45deg;
}

.mobile-nav-toggle[aria-expanded="true"] .bottom-ham {
  rotate: -45deg;
}

@media (max-width: 50em) {
  .primary-navigation {
    display: none;

    position: fixed;
    max-height: calc(100vh);
    left: 0;
    top: var(--nav-height);
    padding: var(--nav-height);
    width: 100%;
    height: 95%;
    background: var(--clr-neutral-white);
    z-index: 100;
  }

  .primary-navigation[data-visible] {
    display: block;
  }

  .nav-list {
    display: grid;
    gap: 3rem;
    text-align: center;
    font-weight: var(--fw-bold);
    font-size: var(--fs-700);
    text-transform: uppercase;
  }

  .nav-instagram {
    display: block;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: calc(1.8 * var(--nav-height));
  }

  .nav-instagram svg {
    transform: scale(1.8);
  }

  .mobile-nav-toggle {
    display: block;
  }
}

@media (max-height: 40em) {
  .nav-list {
    gap: 1rem;
  }
}

/* ----- landing ----- */

.landing {
  height: calc(100vh - var(--nav-height));
  background-image: url(images/sofia-coverphoto.jpg);
  background-position: top;
  background-size: cover;
}

.text-box {
  height: 100%;
  width: 100%;
  position: relative;
}

.text-box h1 {
  color: var(--clr-neutral-white);
  font-size: var(--fs-primary-title);
  font-family: var(--ff-heading);
  text-shadow: 3px 3px 10px rgba(248, 201, 205, 0.6);
  text-align: right;
  position: absolute;
  bottom: 8%;
  right: 0;
}

/* ----- about ----- */

.about-col {
  position: relative;
  overflow: hidden;
  flex-basis: 45%;
  border-radius: 10px;
  height: 600px;
  text-align: left;
}

.about-col img {
  width: 100%;
  display: block;
}

.about-text {
  height: 100%;
  text-align: left;
}

.about-col p,
.about-col a {
  font-size: var(--fs-600);
  text-align: left;
}

.about-col p {
  display: block;
  line-height: 3rem;
}

.about-col a {
  display: inline-block;
  margin-top: 5%;
  text-decoration: none;
  color: var(--clr-primary-green);
  font-weight: var(--fw-bold);
}

.about-col a::after {
  height: 0.25rem;
  background-color: var(--clr-primary-green);
}

@media (max-width: 80em) {
  .about-col img {
    border-radius: 100vh;
    height: 150px;
    width: 150px;
    object-fit: cover;
    object-position: top;
    margin-bottom: 30%;
  }

  .about .row {
    flex-direction: column;
    align-items: center;
  }

  .about-col p {
    line-height: normal;
    font-size: var(--fs-500);
  }
}

/* ----- latest production ----- */

.latest-production .row {
  justify-content: space-around;
}

.latest-col {
  position: relative;
  flex-basis: 45%;
  border-radius: 10px;
  width: 400px;
  display: flex;
  justify-content: center;
}

.latest-col a {
  height: 100%;
  overflow: visible;
}

.latest-col img {
  height: 100%;
  border-radius: 10px;
  box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.5);
}

.latest-col img:hover {
  transform: scale(1.01);
}

.latest-production a {
  display: inline-block;
  margin-top: 5%;
  text-decoration: none;
  color: var(--clr-primary-green);
  font-weight: var(--fw-bold);
  font-size: var(--fs-600);
}

.latest-production a::after {
  height: 0.25rem;
  background-color: var(--clr-primary-green);
}

@media (max-width: 50em) {
  .latest-col {
    height: 200px;
  }
}

/* ----- footer ----- */

footer {
  height: var(--footer-height);
  background-color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.credit {
  padding: 10px;
  color: #fff;
  text-align: center;
}

/* -------------------------
----- ABOUT ME PAGE -----
------------------------- */

.aboutme-landing {
  height: calc(50vh - var(--nav-height));
  background-image: var(--linear-gradient), url(images/bedroom-shot.jpg);
  background-position: 50% 20%;
  background-size: cover;
}

.aboutme-landing .text-box h1 {
  text-align: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: var(--fs-800);
}

.aboutme p {
  text-align: left;
  font-size: var(--fs-600);
  text-indent: 50px;
  padding: 2rem;
}

.wrap {
  float: left;
  margin-right: 5rem;
  margin-bottom: 3rem;
  width: 300px;
  border-radius: 10px;
}

@media (max-width: 50em) {
  .wrap {
    float: none;
    margin: auto;
  }

  .aboutme-landing .text-box h1 {
    font-size: var(--fs-700);
  }

  .aboutme p {
    font-size: var(--fs-500);
    text-indent: 10px;
  }

  .aboutme img {
    border-radius: 100vh;
    height: 150px;
    width: 150px;
    object-fit: cover;
    object-position: top;
    margin-bottom: 25px;
  }

  .aboutme p {
    line-height: normal;
    font-size: var(--fs-400);
  }
}

/* -------------------
----- WORKS PAGE -----
------------------- */

.works-landing {
  height: calc(50vh - var(--nav-height));
  background-image: var(--linear-gradient), url(images/love-shot.jpg);
  background-position: 100% 30%;
  background-size: cover;
}

.works-landing .text-box h1 {
  text-align: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: var(--fs-800);
}

@media (max-width: 50em) {
  .works-landing .text-box h1 {
    font-size: var(--fs-700);
  }
}

.card-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}

a.card {
  box-shadow: 0 0 10px 2px rgba(0, 0, 0, 0.1);
}

.card {
  border: 1px solid rgba(0, 0, 0, 0.1);

  border-radius: 20px;
  margin-bottom: 75px;
  margin-right: 25px;
  margin-left: 25px;
  display: flex;
  width: 500px;
  height: 400px;
  position: relative;
}

a.card:hover {
  box-shadow: 0 0 20px 2px rgba(0, 0, 0, 0.2);
}

.card img {
  width: 50%;
  object-fit: cover;
  object-position: center;
  border-radius: 20px;
}

.card img.img-left {
  object-position: left;
}

.image-scale {
  width: 50%;
  border-radius: 20px;
  background-color: #fff;
  display: flex;
  align-items: center;
}

.image-scale img {
  width: 100%;
  border-radius: 5px;
}

.card-content {
  width: 50%;
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-content p {
  padding: 5px;
  font-size: var(--fs-500);
}

.card-content .title {
  font-weight: var(--fw-bold);
}

.card-content .character {
  padding-top: 35px;
  font-style: italic;
}

.layer {
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  transition: var(--transition-speed-secondary);
}

.layer:hover {
  cursor: pointer;
}

.layer h3 {
  width: 90%;
  padding: 10px 15px;
  font-weight: var(--fw-bold);
  color: var(--clr-primary-blue);
  background-color: var(--clr-neutral-white);
  font-size: var(--fs-400);
  box-shadow: 0 0 50px 3px rgba(191, 166, 23, 0.3);
  border-radius: 10px;
  border: 1px solid rgba(191, 166, 23, 0.3);

  bottom: 80%;
  left: 50%;
  transform: translateX(-50%);
  position: absolute;
  opacity: 0;
  transition: 0.5s;
}

.layer:hover h3 {
  bottom: 105%;
  opacity: 1;
}

@media (max-width: 50em) {
  .card {
    flex-direction: column;
    height: fit-content;
  }

  .card img {
    width: 100%;
  }

  .card-content {
    width: 100%;
  }

  .image-scale {
    width: 100%;
    overflow: hidden;
  }
}

/* --------------------
----- GALLERY PAGE-----
-------------------- */

.gallery-landing {
  height: calc(50vh - var(--nav-height));
  background-image: var(--linear-gradient), url(images/mafia.jpg);
  background-position: 100% 30%;
  background-size: cover;
}

.gallery-landing .text-box h1 {
  text-align: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: var(--fs-800);
}

.gallery-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin: 40px 20px 0px 20px;
}

.gallery-row {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.gallery-col {
  display: flex;
  flex-direction: column;
  width: 50%;
}

.gallery-col img {
  width: 100%;
  padding: 10px;
  border-radius: 15px;
}

@media (max-width: 50em) {
  .gallery-landing .text-box h1 {
    font-size: var(--fs-700);
  }

  .gallery-row {
    flex-direction: column;
  }

  .gallery-col {
    width: 100%;
  }
}

/* ---------------------
----- CONTACT PAGE -----
--------------------- */

.contact-landing {
  height: calc(50vh - var(--nav-height));
  background-image: var(--linear-gradient), url(images/little_witches_cast.jpg);
  background-position: 50% 40%;
  background-size: cover;
}

.contact-landing .text-box h1 {
  text-align: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: var(--fs-800);
}

.contact-col {
  flex-basis: 48%;
  margin-bottom: 30px;

  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-tag {
  margin-bottom: 4rem;
}

.contact-col div p {
  font-size: var(--fs-500);
  padding: 0;
}

.contact-col div h5 {
  font-size: var(--fs-600);
  margin-bottom: 1rem;
  color: var(--clr-primary-blue);
  font-weight: var(--fw-semi-bold);
}

/*form*/

.contact-col input,
.contact-col textarea {
  width: 100%;
  padding: 15px;
  margin-bottom: 17px;
  outline: none;
  border: 1px solid #ccc;
  box-sizing: border-box;
}

.hero-btn {
  text-decoration: none;
  color: black;
  border: 1px solid black;
  padding: 12px 34px;
  font-size: 13px;
  background: transparent;
  position: relative;
  cursor: pointer;
}

.hero-btn:hover {
  border: 1px solid var(--clr-neutral-green);
  background-color: var(--clr-neutral-dark-green);
  transition: var(--transition-speed);
}

@media (max-width: 50em) {
  .contact-landing .text-box h1 {
    font-size: var(--fs-700);
  }

  .contact .row {
    display: block;
  }
}
