

:root {
    --d: 700ms;
    --e: cubic-bezier(0.19, 1, 0.22, 1);
}

.page-content {
    display: flex;
    flex-direction: row;
    min-width: 100%;
    min-height: 100%;
    margin: 0 auto;
}

@media screen and (max-width: 1000px) {
    .page-content {
        flex-direction: column;
    
    }
}

.card {
    position: relative;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    width: 100%;
    min-height: 100vh;
    text-align: center;
    color: whitesmoke;
    background-color: whitesmoke;
    box-shadow: 0 1px 1px rgba(0,0,0,0.1), 
        0 2px 2px rgba(0,0,0,0.1), 
        0 4px 4px rgba(0,0,0,0.1), 
        0 8px 8px rgba(0,0,0,0.1),
        0 16px 16px rgba(0,0,0,0.1);
    transition: transform var(--d) var(--e); /* Add this line */

    
}

.card:first-of-type {
    background-image: url(../Images/image13.webp);
    background-size: cover;
    height: 100%;
    width: 100%;
    background-position: center;

}

.card:nth-of-type(2) {
    background-image: url(../Images/q-studio.jpg);
    background-size: cover;
    height: 100%;
    width: 100%;
    background-position: center;

}

@media (min-width: 600px) {
    .card {
        height: 350px;
    }
}

.card:last-of-type {
    background-image: url(../Images/kenya.jpg);
    background-repeat: no-repeat;
    height: 100%;
    width: 100%;
}

.card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 110%;
    background-size: cover;
    background-position: 0 0;
    transition: transform calc(var(--d) * 1.5) var(--e);
    pointer-events: none;
}

.card:after {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 200%;
    pointer-events: none;
    background-image: linear-gradient(
        to bottom,
        hsla(0, 0%, 0%, 0) 0%,
        hsla(0, 0%, 0%, 0.009) 11.7%,
        hsla(0, 0%, 0%, 0.034) 22.1%,
        hsla(0, 0%, 0%, 0.072) 31.2%,
        hsla(0, 0%, 0%, 0.123) 39.4%,
        hsla(0, 0%, 0%, 0.182) 46.6%,
        hsla(0, 0%, 0%, 0.249) 53.1%,
        hsla(0, 0%, 0%, 0.320) 58.9%,
        hsla(0, 0%, 0%, 0.394) 64.3%,
        hsla(0, 0%, 0%, 0.60) 100%
    );
    transform: translateY(-50%);
    transition: transform calc(var(--d) * 2) var(--e);
}

.page-content h2, p {
    color: white;
}

.btn {
    width: 110px;
    height: 45px;
    background-color: rgba(183, 137, 112, 0.8);
    border-radius: 1px;
    text-align: center;
    color: rgba(252, 250, 235, 1);
    font-size: 15px;
    border: 0;
    text-decoration: none;
    cursor: pointer;
    transition-duration: 0.4s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 1rem;
    transition: transform var(--d) var(--e);
    z-index: 1;
    backdrop-filter: blur(20px);
}

@supports not ((-webkit-backdrop-filter: blur(20px)) or (backdrop-filter: blur(20px))) {
    .content {
        background-color: rgba(255, 255, 255, 0.5);
    }
}

.content > * + * {
    margin-top: 1rem;
}

.title {
    font-size: 1.5rem;
    line-height: 1.1;
    font-weight: bold;
    
}

.copy {
    font-size: 1.125rem;
    line-height: 1.4;
}

@media (hover: hover) and (min-width: 800px) {
    .card:after {
        transform: translateY(0);
    }
    
    .content {
        transform: translateY(calc(100% - 5rem));
    }
    
    .content > *:not(.title) {
        opacity: 0;
        transform: translateY(1rem);
        transition:
            transform var(--d) var(--e),
            opacity var(--d) var(--e);
    }
    
    .card:hover,
.card.hover,
.card:focus-within {
  align-items: center;
}

.card:hover:before,
.card.hover:before,
.card:focus-within:before {
  transform: translateY(-4%);
}

.card:hover:after,
.card.hover:after,
.card:focus-within:after {
  transform: translateY(-50%);
}

.card:hover .content,
.card.hover .content,
.card:focus-within .content {
  transform: translateY(0);
}

.card:hover .content > *:not(.title),
.card.hover .content > *:not(.title),
.card:focus-within .content > *:not(.title) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: calc(var(--d) / 8);
}

.card:focus-within:before,
.card:focus-within:after,
.card:focus-within .content,
.card:focus-within .content > *:not(.title) {
  transition-duration: 0s;
}
}

@media screen and (max-width: 600px) {
    .card {
        align-items: center;
    }
}

