:root {
  --primary-color: #B5A79E;
  --text-color: #0D0D0C;
  --extra-color-1: #EEE3DF;
  --extra-color-2: #D3C9C6;
  --extra-color-3: #2C2521;
  --extra-color-4: hsl(23, 54%, 15%);
  --extra-color-5: hsl(23, 94%, 15%);

  --main-background-color: var(--extra-color-1);
  --secondary-background-color: var(--extra-color-2);

  --business-card-front: #88afe6;
  --business-card-back:  #96beb8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
    /* font-family: "Actor", sans-serif; */
}

p {
    font-size: large;
    word-spacing: 3px;
}

li {
    font-size: large;
}

html {
    background-color: var(--main-background-color);
}

img, video {
    border-radius: 1em;
}

#hero {
    background-image: url(images/jason-dent-SnXIF8_2oPw-unsplash.jpg);
    background-size: cover;
    background-repeat: no-repeat; 
    background-position: center;
}

.hero-container {
    background-color: rgba(183, 197, 162, .6);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 2em;
    padding-bottom: 2em;
}

.hero-container-content {
    display: flex;
    justify-content: center;
    width: 80%;
    margin-top: 2em;
}

.hero-image {
    display: flex;
    justify-content: center;
    width: 50%;
}

.hero-image img {
    width: 50%;
}

.hero-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 50%;
}

.hero-list {
    list-style: none;
}

.hero-list li {
    font-size: xx-large;
}

.about-container {
    display: flex;
    justify-content: center;
    padding-top: 2em;
    padding-bottom: 2em;
    width: 80%;
    margin: 0 auto;
    gap: 2em;
}

.about-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 50%;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50%;
}

.about-image img {
    width: 50%;
}

.business-card-container {
    margin: 0 auto;
    width: 50vw;
    height: 31vw;
    margin-bottom: 2em;
    perspective: 100vw;
}

.business-card {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 1em;
    box-shadow: 5px 4px 6px;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.flipped {
    transform: rotateY(180deg);
    box-shadow: -5px 3px 6px;
}

.business-card-front, .business-card-back {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
}

.business-card-front img, .business-card-back img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.business-card-back {
    transform: rotateY(180deg);
}

.business-card:hover {
    cursor: pointer;
    box-shadow: 7px 5px 6px;
}

.flipped:hover {
    box-shadow: -7px 5px 6px;
}

.service-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 2em;
    padding-bottom: 2em;
    margin: 0 auto;
}

.service-items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 1em;
    width: 80%;
    gap: 1em;
}

.service-card-container {
    display: grid;
    grid-template-columns: subgrid;
    height: 40vh;
    grid-template-rows: 10% 20% auto 10%;
    border-radius: 1em;
    justify-items: center;
    border: 1px solid;
    gap: 1em;
    padding-top: 1em;
    padding-bottom: 1em;
    box-shadow: 1px 1px 5px;
}

.service-card-list {
    list-style-image: url(images/icons/check_24dp_000_FILL0_wght400_GRAD0_opsz24.png);
}

.service-button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 70%;
    border: 1px solid black;
    border-radius: 1em;
    padding: 0.5em 1em;
    background-color: black;
    color: white;
    cursor: pointer;
    transition-duration: 200ms;
}

.service-button:hover {
    background-color: white;
    color: black;
}

.service-card-container:first-child {
    background-color: vaR(--business-card-front);
}

.service-card-container:nth-child(2) {
    background-color: vaR(--business-card-back);
}

.service-card-container:last-child {
    background-color: vaR(--business-card-back);
}

#links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1em;
}

.link-container {
    display: flex;
    gap: 3em;
    width: 100vw;
    justify-content: center;
    padding: 20px;
    height: minmax(10vh, 20vh);
}

.link-container div {
    width: 75px;
    display: grid;
    align-items: center;
}

.link-container div img {
    width: 100%;
    object-fit: cover;
    transition-duration: 100ms;
}

.link-container div img:hover {
    transform: scale(1.1);
    cursor: pointer;
}

#gallery {
    background-color: rgba(183, 197, 162, .6);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1em;
    padding-top: 2em;
    padding-bottom: 2em;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 80vw;
    gap: 2em;
}

.gallery-item {
    display: grid;
    justify-content: center;
    align-items: center;
}

.gallery-item img, video {
    max-width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    transition-duration: 100ms;
}

.gallery-item img:hover, video:hover {
    cursor: pointer;
    transform: scale(1.05);
}

.gallery-selected-item {
    border: 1px solid;
    width: 400px;
    height: 400px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    display: none;
}

@media (max-width: 1000px) {
    .service-card-list li {
        font-size: small;
    }

    .service-card-container {
        height: 30vh;
    }
}

@media (max-width: 815px) {
    .hero-container-content {
        display: flex;
        justify-content: center;
        width: 100%;
        margin-top: 2em;
    }

    .hero-list li {
        font-size: x-large;
    }

    .about-container {
        flex-direction: column;
        align-items: center;
    }

    .about-text, .about-image {
        width: 80%;
    }

    .business-card-container {
        width: 80vw;
        height: 50vw;
    }

    .service-items {
        grid-template-columns: 80%;
        grid-template-rows: repeat(3, auto);
        justify-content: center;
    }

    .service-card-list li {
        font-size: large;
    }

    .link-container {
        gap: 1em;
    }

    .link-container div {
        width: 50px;
    }
}

@keyframes slideInFromSide {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromTop {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromBottom {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}