* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

html {
    scroll-behavior: smooth;
    overflow-x: none;
}

body {
    background: radial-gradient(circle at top left, #000428, #004e92);
    color: #fff;
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    opacity: 0;
    animation: fadeInOut 1.5s ease-out forwards;
}

.container {
    animation: fadeInOut 2.5s ease-out forwards;
}

@keyframes fadeInOut {
    from {
        opacity: 0;
        transform: translateY(10);
    }
    to {
        opacity: 1;
    }
}

/* Animasi keluar modal */
@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.fade-out {
    animation: fadeOut 2s ease forwards;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 10%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 999;
}

header h1 {
    font-size: 24px;
    color: #00f0ff;
}

nav {
    display: flex;
    gap: 30px;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

nav a:hover {
    color: #00f0ff;
}

.burger {
    display: none;
    font-size: 26px;
    color: #00f0ff;
    cursor: pointer;
}

/* Responsive Navigation */
@media (max-width: 768px) {
    nav {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: #000;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 20px 0;
        display: none;
    }

    nav.active {
        display: flex;
        animation: fadeDown 0.3s ease;
        color: #00f;
    }

    .burger {
        display: block;
    }
}

.item {
    width: 250px;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.live {
    color: #0ff;
    text-decoration: none;
    padding: 5px;
    border-radius: 5px;
    font-weight: 600;
}

@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 150px 10% 100px;
    min-height: 100vh;
    flex-wrap: wrap;
}

.hero-text {
    max-width: 50%;
}

.hero-text h2 {
    font-size: 38px;
    margin-bottom: 10px;
}

.font {
    font-size: 22px;
    color: #00f0ff;
    margin-bottom: 20px;
}

.hero-text p {
    margin-bottom: 20px;
    color: #ccc;
}

.socials {
    margin-top: 20px;
}

.socials i {
    font-size: 20px;
    color: #0ff;
    margin-right: 10px;
}

.hero-img img {
    width: 280px;
    border-radius: 50%;
    border: 8px solid #222;
    animation:
        naikTurun 2s ease-in-out infinite alternate,
        flash 1s ease-in-out infinite alternate;
}

@keyframes flash {
    0% {
        box-shadow:
            0 0 5px #000,
            0 0 10px #000,
            0 0 15px #333;
    }
    100% {
        box-shadow:
            0 0 10px #000,
            0 0 20px #000,
            0 0 30px #333;
    }
}

@keyframes naikTurun {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-20px); /* atau +20px kalo mau turun dulu */
    }
}

.section {
    padding: 80px 10%;
    text-align: center;
}

.section h2 {
    font-size: 32px;
    margin-bottom: 40px;
    color: #00f0ff;
}

.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.card {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 15px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
}

.contact-form {
    max-width: 500px;
    margin: auto;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: none;
    outline: none;
}

.contact-form button {
    width: 100%;
    padding: 12px;
    border: none;
    background: #00f0ff;
    color: #000;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

.contact-form button:hover {
    transform: scale(1.05);
}

footer {
    text-align: center;
    padding: 30px 0;
    background: #000;
    color: #aaa;
}
