: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;
    font-weight: 400;
    font-style: normal; */
}

p {
    font-size: large;
    word-spacing: 3px;
}

li {
    font-size: large;
}

html {
    background-color: var(--main-background-color);
    overflow-x: hidden;
}

img, video {
    border-radius: 1em;
}

h1 {
    font-size: clamp(3vw, 5vw, 7vw);
}

a[href$=".pdf"]::after {
    content: url(images/icons/download.png);
    display: inline-block;
    vertical-align: middle;
}

#hero, .hero-container{
    min-height: 100vh;
}

#hero {
    background-image: url(images/jason-dent-SnXIF8_2oPw-unsplash.webp);
    background-size: cover;
    background-repeat: no-repeat; 
    background-position: left;
}

.hero-container {
    background-color: rgba(183, 197, 162, .8);
    display: grid;
    align-items: center;
    padding-top: 2em;
    padding-bottom: 2em;
}

.hero-container h1,
.hero-container .hero-container-content {
    margin: 0 auto;
}

.hero-container-content {
    display: grid;
    width: 90%;
    grid-template-columns: repeat(2, 1fr);
}

.hero-image {
    width: 50%;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-list {
    justify-self: end;
    align-self: center;
    list-style: none;
    text-align: end;
}

.hero-list li {
    font-size: clamp(2vw, 5vw, 8rem);
    font-family: "Limelight", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.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%;
    gap: 1rem;
}

.link-container2 {
    display: flex;
    gap: 1em;
}

.social-bubble {
    width: 50px;
    aspect-ratio: 1 / 1;
    background-color: black;
    border-radius: 50%;
    display: grid;
    justify-items: center;
    align-items: center;
    transition-duration: 300ms;
}

.social-bubble img {
    width: 70%;
    border-radius: 0;
}

.social-bubble:hover {
    background-color: rgba(183, 197, 162, .8);
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50%;
}

.about-image img {
    width: 50%;
}

.business-card-container {
    margin: 0 auto;
    width: 55vw;
    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: 90%;
    gap: 1em;
}

.service-card-container {
    display: grid;
    grid-template-columns: subgrid;
    min-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.webp);
}

.representation {
    list-style: inside;
}

.representation li {
    font-size: clamp(.2rem, .6rem, .8rem);
}

.representation li a{
    color: black;
}

.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,
.service-card-container:last-child {
    background-color: var(--business-card-back);
}

.service-card-container:nth-child(2) {
    background-color: var(--business-card-front);
}

.events-container {
    display: grid;
    justify-items: center;
    padding-top: 2em;
    padding-bottom: 2em;
    width: 90vw;
    margin: 0 auto;
    gap: 2em;
}

.event {
    display: grid;
    justify-items: center;
    width: 50%;
    gap: 1em;
}

.event-poster {
    max-width: 100%;
    max-height: 100vh;
    object-fit: contain;
    transition-duration: 100ms;
}

a .event-poster:hover {
    transform: scale(1.05);
}

#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: 1000px) and (orientation: landscape) {
    #hero, .hero-container{
        height: auto;
        gap: 2em;
    }

    .service-card-container {
        height: auto;
    }
}

@media (max-width: 815px) and (orientation: portrait) {
    h1 {
        font-size: clamp(5vw, 7vw, 10vw);
    }

    h3 {
        font-size: clamp(2vw, 3vw, 5vw);
    }

    .hero-container {
        display: grid;
        gap: 2em;
        align-content: center;
        justify-content: center;
    }

    .hero-container-content {
        width: 70vw;
        grid-template-columns: 100%;
        grid-template-rows: 40vh 30vh;
        justify-content: center;
        gap: 1em;
    }

    .hero-image {
        width: clamp(70%, 80%, 90%);
        height: 100%;
        justify-self: center;
    }

    .hero-image img {
        object-position: top;
    }

    .hero-list {
        text-align: center;
        justify-self: center;
    }

    .hero-list li {
        font-size: clamp(7vw, 9vw, 12vw);
    }

    .about-container {
        flex-direction: column;
        align-items: center;
    }

    .about-text, .about-image {
        width: 80%;
    }

    .business-card-container {
        width: 80vw;
        height: 45vw;
    }

    .service-items {
        grid-template-columns: 80%;
        grid-template-rows: repeat(3, auto);
        justify-content: center;
    }

    .service-card-list > li {
        font-size: medium;
    }

    .event {
        width: 80%;
    }

    .link-container {
        gap: 1em;
    }

    .link-container div {
        width: 50px;
    }
}

@media (max-width: 500px) {
    #hero {
        background-position: center;
    }
}

@keyframes slideInFromSide {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromTop {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromBottom {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}