@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Open Sans', sans-serif;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: black;
}

::-webkit-scrollbar-thumb {
    background: rgb(36, 36, 36);
}

.container-quote {
    min-height: 100vh;
    background: #000;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

blockquote {
    font-size: 3rem;
}

cite {
    display: block;
    text-align: right;
    font-family: Verdana, Arial, sans-serif;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #aaa;
    font-style: normal;
}

blockquote q {
    font-family: Georgia, serif;
    font-style: italic;
    letter-spacing: 0.1rem;
}

blockquote q span {
    will-change: opacity, filter;
    opacity: 0;
    filter: blur(0px);
}

q {
    quotes: "“" "”" "‘" "’";
}

q:before {
    content: open-quote;
    margin-right: 0.8rem;
}

q:after {
    content: close-quote;
}

q:before,
q:after {
    color: #ccc;
    font-size: 4rem;
}


.container-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: black;
    overflow: hidden;
}

.title-card {
    background: white;
    color: black;
    font-size: 2em;
    font-weight: 700;
    padding: 5px 10px;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    margin-top: -50px;
    margin-bottom: 50px;
}

.box-card {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
    grid-gap: 20px;
    width: 800px;
    height: 400px;
    background: black;
    transition: 0.25s;
}

.box-card .card {
    position: relative;
    background: var(--img);
    background-position: center;
    background-size: cover;
    transition: 0.25s;
    display: flex;
    justify-content: center;
    align-items: center;
    filter: grayscale(0) brightness(1);
}

.box-card:hover .card {
    filter: grayscale(1);
}

.box-card .card:hover {
    filter: grayscale(0) brightness(1.25);
}

.box-card:has(.one:hover) {
    grid-template-columns: 2fr 0.5fr 0.5fr 0.5fr 0.5fr 0.5fr 0.5fr;
}

.box-card:has(.two:hover) {
    grid-template-columns: 0.5fr 2fr 0.5fr 0.5fr 0.5fr 0.5fr 0.5fr;
}

.box-card:has(.three:hover) {
    grid-template-columns: 0.5fr 0.5fr 2fr 0.5fr 0.5fr 0.5fr 0.5fr;
}

.box-card:has(.four:hover) {
    grid-template-columns: 0.5fr 0.5fr 0.5fr 2fr 0.5fr 0.5fr 0.5fr;
}

.box-card:has(.five:hover) {
    grid-template-columns: 0.5fr 0.5fr 0.5fr 0.5fr 2fr 0.5fr 0.5fr;
}

.box-card:has(.six:hover) {
    grid-template-columns: 0.5fr 0.5fr 0.5fr 0.5fr 0.5fr 2fr 0.5fr;
}

.box-card:has(.seven:hover) {
    grid-template-columns: 0.5fr 0.5fr 0.5fr 0.5fr 0.5fr 0.5fr 2fr;
}

.box-card .card::before {
    content: "";
    position: absolute;
    top: -1px;
    width: 100%;
    height: calc(100% + 2px);
    background: linear-gradient(black, transparent, transparent, transparent, black);
}

.box-card .card:nth-child(even) {
    transform: translateY(15px);
}

.box-card .card:nth-child(odd) {
    transform: translateY(-15px);
}

.box-card .card::after {
    content: attr(data-text);
    position: absolute;
    bottom: -100px;
    background: white;
    color: black;
    font-size: 1em;
    font-weight: 600;
    padding: 5px 10px;
    white-space: nowrap;
    transition: 0.5s;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    opacity: 0;
    transition-delay: 0s;
    -webkit-box-reflect: below 2px linear-gradient(transparent, #0003);
}

.box-card .card:hover::after {
    opacity: 1;
    bottom: -50px;
    transition-delay: 0.15s;
}

/* Tambahkan gaya baru di CSS Anda */
footer {
    background-color: #333;
    color: #fff;
    padding: 20px;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    /* Mengatur susunan kontennya menjadi kolom */
    align-items: center;
    /* Menengahkan elemen-elemen secara horizontal */
}

.footer-logo {
    width: 80px;
    /* Sesuaikan ukuran logo */
}

.footer-hr {
    margin: 10px 0;
    /* Menambah margin di atas dan bawah garis pemisah */
    width: 10%;
    border: 1.5px solid #fff;
}

.footer-copyright {
    font-size: 1em;
    font-weight: 500;
    color: white;
    margin: 10px 0;

}

.scroll-down-arrow {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 25px solid white;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
    animation: bounce 1s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

@media only screen and (max-width: 600px) {
    .container-quote {
        padding: 0 2rem;
    }

    .box-card {
        overflow-x: scroll;
        overflow-y: hidden;
        display: flex;
        flex-wrap: nowrap;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .box-card::-webkit-scrollbar {
        display: none;
    }

    .box-card .card {
        flex: 0 0 auto;
        width: 100%;
        filter: none;
    }

    .box-card:hover .card {
        filter: none;
    }

    .box-card .card::before {
        content: "";
        position: absolute;
        top: -1px;
        width: 100%;
        height: calc(100% + 2px);
    }

    .box-card .card::after {
        content: attr(data-text);
        position: absolute;
        bottom: 45px;
        background: white;
        color: black;
        font-size: 1em;
        font-weight: 600;
        padding: 5px 10px;
        white-space: nowrap;
        text-transform: uppercase;
        letter-spacing: 0.4em;
        opacity: 1;
    }

    .box-card .card:hover::after {
        bottom: 45px;
    }
}