:root {
  --black: #030303;
  --white: #fffdfd;
  --primary-color: #ffc1da;
  --secondary-color: #471d7a;
  --secondary-color-light: #6f35b6;
  --tertiary-color: #adf366;
  --cream: #ffffe6;
}

*,
*::after,
*::before {
  margin: 0;
  padding: 0;
  box-sizing: inherit;
}

html {
  font-size: 62.5%;
}

body {
  box-sizing: border-box;
  font-family: 'Nunito', sans-serif;
  color: var(--black);
}

h1 {
  font-family: 'Delius Unicase', cursive;
  font-size: 3.8rem;
  text-align: center;
  font-weight: 800;
}

h2 {
  font-size: 3.2rem;
  text-align: center;
  margin-top: 1rem;
  margin-bottom: 2rem;
}

h3 {
  font-size: 2.4rem;
  text-align: center;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

p,
a {
  font-size: 1.8rem;
}

a a:visited,
a:link {
  text-decoration: none;
  color: var(--black);
}

a:hover {
  color: var(--secondary-color);
}

/* footer - all pages */
footer {
  background: var(--cream);
  margin-top: 10rem;
  padding: 10rem 3rem;
  color: var(--secondary-color);
}

.row-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  width: 12rem;
}

ion-icon {
  font-size: 4rem;
  cursor: pointer;
}

ion-icon:first-child {
  margin-right: 1rem;
}

/* Navigation - all pages*/
.navigation {
  display: flex;
  justify-content: space-between;
  padding: 4rem 3rem;
}

.navigation-logo {
  width: 5rem;
}

.navigation_list {
}

.navigation_item {
  display: inline-block;
  list-style: none;
  margin-right: 1rem;
}
.navigation_item:last-child {
  margin-right: 0;
}

.navigation_link,
.navigation_link:active,
.navigation_link:visited,
.navigation_link:link {
  text-decoration: none;
  color: var(--white);
  background: var(--secondary-color);
  padding: 10px 20px;
  border-radius: 50px;
}

.navigation_link:hover {
  background-color: var(--secondary-color-light);
}

/* Mobile navigation */
.mobile-hide {
  opacity: 0;
  visibility: hidden;
}

/* Laptop navigation */
.hide {
  display: none;
}

.navigation_nav_mobile_container {
  height: 50vh;
  position: fixed;
  width: 90%;
  transition: all ease-in 0.2s;
}

.bg-menu-mobile {
  background: var(--cream);
}

.navigation_mobile_list {
  height: 50vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.navigation_mobile_item {
  list-style: none;
}

.menu-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  cursor: pointer;
}

.navigation_mobile_item {
  margin-bottom: 0.5rem;
}

.navigation_mobile_link,
.navigation_mobile_link:visited,
.navigation_mobile_link:link,
.navigation_mobile_link:active {
  font-size: 2rem;
  cursor: pointer;
}

a.navigation_mobile_link:hover {
  border-bottom: 0.3rem solid var(--primary-color);
}

/* ******** Homepage ******** */
/* Header */
.home-header {
  background: var(--primary-color);
  height: 95vh;
}

/* Eyes */
.row-eyes {
  display: flex;
  justify-content: center;
  margin-top: 10rem;
}

.col-eye {
  max-width: 34rem;
}

.col-eye:first-child {
  margin-right: 3rem;
}

.img-eye {
  width: 100%;
}

/* Main */
main {
  padding: 8rem 3rem;
}

.main-text {
  text-align: center;
  font-size: 2rem;
}

/* illustration card */
.card-container {
  padding-left: 2.8rem;
  padding-right: 2.8rem;
}

.row-card {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: repeat(6, 1fr);
  height: 80rem;
}

.col-card {
  position: relative;
}

.card-side {
  height: 100%;
  width: 100%;
  perspective: 150rem;
  position: absolute;
  top: 0;
  left: 0;
  backface-visibility: hidden;
  transition: all ease-in 0.4s;
}

.card-back {
  background-image: linear-gradient(
    90deg,
    rgba(249, 255, 242, 1) 0%,
    rgba(173, 243, 102, 0.63) 50%,
    rgba(255, 237, 120, 0.52) 100%
  );
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 3rem;
}

.col-card:hover {
  .card-front {
    transform: rotateY(180deg);
  }
  .card-back {
    transform: rotateY(0);
  }
}

.img-card {
  width: 100%;
  height: 100%;
  object-fit: cover;
  box-shadow: 0 -4px 4px rgba(255, 193, 218, 0.4),
    0 6px 8px rgba(71, 29, 122, 0.2);
}

.col-card-1 {
  grid-column-start: 1;
  grid-column-end: 5;
  grid-row-start: 1;
  grid-row-end: 5;
}

.col-card-2 {
  grid-column-start: 5;
  grid-column-end: 7;
  grid-row-start: 1;
  grid-row-end: 3;
}

.col-card-3 {
  grid-column-start: 7;
  grid-column-end: 9;
  grid-row-start: 1;
  grid-row-end: 3;
}

.col-card-4 {
  grid-column-start: 1;
  grid-column-end: 3;
  grid-row-start: 5;
  grid-row-end: 7;
}

.col-card-5 {
  grid-column-start: 3;
  grid-column-end: 5;
  grid-row-start: 5;
  grid-row-end: 7;
}

.col-card-6 {
  grid-column-start: 5;
  grid-column-end: 9;
  grid-row-start: 3;
  grid-row-end: 7;
}

.card-title {
  text-transform: uppercase;
  color: var(--secondary-color);
}

/* ******** About & Contact (common css for flexbox) ******** */
/* Main */
.row-about-contact {
  display: flex;
  justify-content: center;
}

.col-about-contact {
  max-width: 50rem;
}

.about-contact-hero-img {
  width: 100%;
  box-shadow: 0 1rem 1rem rgba(71, 29, 122, 0.1);
}

.col-about-contact:first-child {
  margin-right: 2rem;
}

.about-list {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.about-item {
  font-size: 1.8rem;
  display: inline-block;
  list-style: none;
  border: 1px solid var(--primary-color);
  padding: 1rem 1.5rem;
  border-radius: 30px;
  margin-right: 1rem;
  margin-top: 0.5rem;
}

.about-item:last-child {
  margin-right: 0;
}

.about-link {
  display: block;
  text-decoration: none;
  background: var(--primary-color);
  padding: 1rem 1.5rem;
  color: var(--black);
  text-align: center;
  margin-top: 1rem;
  cursor: pointer;
  box-shadow: 0.3rem 0.5rem 0.8rem rgba(71, 29, 122, 0.2);
  transition: all 0.3s;
}

.about-link:hover {
  transform: translateY(-0.3rem);
}
.about-link:active {
  transform: translateY(0.3rem);
}

/* ******** Concact ******** */
/* Right side - text box */
.contact-wrapper {
  text-align: center;
  margin: 2rem auto;
}

ion-icon.contact-icon {
  font-size: 2rem;
  vertical-align: text-top;
}

.concact-social-icon-wrapper {
  display: flex;
  justify-content: center;
}

.concact-social-icon-wrapper ion-icon {
  color: var(--secondary-color);
}

/* ******** Work ******** */
/* main */
.row-work {
  max-width: 120rem;
  margin: 2rem auto;
}

/* photo gallery */
.row-gallery {
  display: flex;
  justify-content: center;
}

.col-gallery {
  flex-grow: 1;
}

/* ******** media query ******** */
/* 900px */
@media (max-width: 56.25em) {
  html {
    font-size: 56.25%;
  }

  main {
    padding: 6rem 3rem;
  }

  .footer-logo {
    width: 8rem;
  }

  /* Mobile navigation */
  .mobile-hide {
    opacity: 1;
    visibility: visible;
  }
  .navigation_nav_mobile_container {
    display: block;
  }
  .laptop_hide {
    display: none;
  }

  /* Home - Cards */
  .row-card {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(6, 1fr);
    height: 120rem;
  }

  .col-card-1 {
    grid-column-start: 1;
    grid-column-end: 3;
    grid-row-start: 1;
    grid-row-end: 3;
  }

  .col-card-2 {
    grid-column-start: 3;
    grid-column-end: 5;
    grid-row-start: 1;
    grid-row-end: 3;
  }

  .col-card-3 {
    grid-column-start: 1;
    grid-column-end: 3;
    grid-row-start: 3;
    grid-row-end: 5;
  }

  .col-card-4 {
    grid-column-start: 3;
    grid-column-end: 5;
    grid-row-start: 3;
    grid-row-end: 5;
  }

  .col-card-5 {
    grid-column-start: 1;
    grid-column-end: 3;
    grid-row-start: 5;
    grid-row-end: 7;
  }

  .col-card-6 {
    grid-column-start: 3;
    grid-column-end: 5;
    grid-row-start: 5;
    grid-row-end: 7;
  }

  /* About - Main */
  .row-about-contact {
    flex-direction: column;
    align-items: center;
  }

  .col-about-contact:first-child {
    margin-right: 0;
    margin-bottom: 4rem;
  }
}

/* 600px */
@media (max-width: 36.25em) {
  .footer-logo {
    width: 6rem;
  }

  .row-card {
    display: flex;
    flex-direction: column;
    height: 200rem;
  }

  .col-card {
    width: 100%;
    height: 200rem;
  }
}
