@import url("https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;600;700&display=swap");

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* border: solid red 1px; */
}

/* Animasi Kemunculan Container */
@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-100px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(100px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}


/* background sebelumnya  */
body {
    font-family: "Rajdhani", sans-serif;
    background: #000;
    min-height: 100vh;
    display: flex;
    flex-wrap: wrap;
    /* justify-content: space-between; */
    align-items: center;
    /* position: relative; */
    overflow: hidden;
    padding: 2rem;
}


.menu-container {
    flex: 1 1 auto;
    min-width: 300px;
    max-width: 800px;
    /* padding: 4rem; */
    position: relative;
    background: transparent;
    z-index: 100;
    margin-left: 2rem;
}


.menu-content {
    position: relative;
    z-index: 100;
    text-align: left;
    max-height: 500px;
}

.menu-content h1 {
    color: #fff;
    font-size: 1.5rem;
    text-align: left;
    margin-bottom: 2rem;
    letter-spacing: 4px;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5), 0 0 20px rgba(0, 255, 255, 0.3);
    position: relative;
    animation: slideInLeft 0.8s ease-out;

}

.menu-content h1::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg,
            rgba(0, 255, 255, 0.5),
            transparent);
}

.menu-nav ul {
    list-style: none;
    text-align: left;
    animation: slideInLeft 0.8s ease-out;

}

.menu-item {
    display: inline-block;
    color: #fff;
    text-decoration: none;
    font-size: 0.7rem;
    padding: 1rem;
    margin: 0.5rem auto;
    transition: all 0.3s ease;
    position: relative;
    letter-spacing: 2px;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.3);
}

.menu-item:before {
    content: "";
    position: absolute;
    left: 1rem;
    bottom: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, #00ffff, #00ffff, transparent);
    transition: width 0.3s ease;
}

.menu-item:hover {
    transform: scale(1.05);
    color: #00ffff;
}

.menu-item:hover:before {
    width: calc(100% - 2rem);
}

.menu-item:after {
    content: attr(data-text);
    position: absolute;
    left: 50%;
    top: 0;
    padding: 1rem;
    color: #00ffff;
    clip-path: inset(0 100% 0 0);
    transition: clip-path 0.3s ease;
    transform: translateX(-50%);
    width: max-content;
}

.menu-item:hover:after {
    clip-path: inset(0 0 0 0);
}




/* video background yang baru saya tambahkan  */

.background-video-container {
    pointer-events: none;
    z-index: 1;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

.background-video-container video {
    /* background-image: url('*** Poster image goes here ***'); */
    background-size: cover;
    height: 100%;
    width: 100%;
    object-fit: cover;
    display: block;
}

/* Creator Section */

.creator-container {
    position: fixed;
    top: 15%;
    right: 8rem;
    z-index: 200;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    animation: slideInRight 0.8s ease-out;
    height: 70%;
    color: white;
}

.creator {
    text-align: center;

}

.creator p {
    font-family: "Rajdhani", sans-serif;
    color: white;
    font-size: 0.5rem;
    letter-spacing: 2px;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.3);
    margin-bottom: 0.2rem;
}

.creator h1 {
    font-family: "Rajdhani", sans-serif;
    color: white;
    font-size: 1.5rem;
    letter-spacing: 2px;
    font-weight: 500;
}

.creator-container h2 {
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
}


footer {
    position: fixed;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-family: "Rajdhani", sans-serif;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.3);
    z-index: 9999;
}

/* Media Queries - Layar Sedang-Kecil */
@media (max-width: 1200px) {
    .menu-content h1 {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }

    .menu-item {
        font-size: 1.2rem;
        padding: 0.8rem;
        margin: 0.4rem auto;
    }

    .menu-container {
        padding: 2.5rem;
        margin-left: 1rem;
    }

    .creator h1 {
        font-size: 1.5rem;
    }

    .creator p {
        font-size: 0.9rem;
    }

    .creator-container {
        height: 600px;
        top: 6rem;
        right: 6rem;
    }
}

@media (max-width: 768px) {
    .menu-content h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .menu-item {
        font-size: 1rem;
        padding: 0.6rem;
        margin: 0.3rem auto;
    }

    .menu-container {
        padding: 1.5rem;
        max-width: 100%;
        margin-left: 0;
        flex: 1 1 100%;
    }

    .creator h1 {
        font-size: 1.2rem;
    }

    .creator p {
        font-size: 0.8rem;
    }

    .creator-container {
        height: auto;
        width: 200px;
        top: 50%;
        right: auto;
        left: 1rem;
        transform: translateY(-50%);
        position: absolute;
    }

    footer {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .menu-content h1 {
        font-size: 1.5rem;
        margin-bottom: 0.8rem;
    }

    .menu-item {
        font-size: 0.85rem;
        padding: 0.4rem;
        margin: 0.2rem auto;
    }

    .menu-container {
        padding: 1rem;
    }

    .creator h1 {
        font-size: 1rem;
    }

    .creator p {
        font-size: 0.7rem;
    }

    .creator-container {
        width: 160px;
        top: 2rem;
    }

    body {
        padding: 1rem;
    }

    footer {
        font-size: 0.6rem;
    }
}