* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: radial-gradient(ellipse at bottom, #0a0a0f, #000);
    overflow: hidden;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    position: relative;
}

.parallax {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url('assets/img/bg-pemanggilan-wisuda.png');
    background-size: cover;
    background-position: center;
    animation: floatBg 12s linear infinite alternate;
    opacity: 0.35;
    z-index: -2;
}

@keyframes floatBg {
    0% {
        transform: scale(1) translateY(0);
    }

    100% {
        transform: scale(1.05) translateY(-10px);
    }
}

.stars {
    width: 100%;
    height: 100%;
    position: absolute;
    background: transparent url('https://i.imgur.com/YKY28eT.png') repeat;
    animation: stars 80s linear infinite;
    opacity: 0.25;
    z-index: -1;
}

@keyframes stars {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 8000px 4000px;
    }
}

.container {
    width: 98%;
    max-width: 1650px;
    padding: 50px;
    border-radius: 30px;
    backdrop-filter: blur(15px);
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 0 50px rgba(0, 255, 255, 0.25);
    border: 1px solid rgba(0, 255, 255, 0.3);
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.card-header {
    text-align: center;
    font-family: 'Orbitron', sans-serif;
    font-size: 34px;
    letter-spacing: 2px;
    color: cyan;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(0, 255, 255, 0.4);
    text-shadow: 0 0 12px cyan;
}

.card-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 45px;
    gap: 35px;
    flex-wrap: nowrap;
    width: 100%;
    height: 600px;
}

.photo-card {
    flex: 0 0 30%;
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 22px;
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.15);
    text-align: center;
    height: 100%;
    perspective: 900px;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.photo-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 18px;
    overflow: hidden;
    transform-style: preserve-3d;
    display: flex;
    justify-content: center;
    align-items: center;
}

#wisudawan-foto {
    height: 100%;
    width: auto;
    object-fit: contain;
    object-position: center;
    border-radius: 18px;
    box-shadow: 0 0 35px rgba(0, 255, 255, 0.3);
    display: none;
    animation: holoIn 0.8s ease forwards, sway 6s ease-in-out infinite;
}

@keyframes sway {
    0% {
        transform: rotateY(2deg) translateX(0px);
    }

    50% {
        transform: rotateY(-2deg) translateX(-10px);
    }

    100% {
        transform: rotateY(2deg) translateX(0px);
    }
}

.shine {
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0) 0%, rgba(0, 255, 255, 0.25) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-20deg);
    animation: shineMove 5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes shineMove {
    0% {
        left: -75%;
        opacity: 0;
    }

    30% {
        opacity: 0.7;
    }

    50% {
        left: 125%;
        opacity: 0.5;
    }

    70% {
        opacity: 0;
    }

    100% {
        left: 125%;
        opacity: 0;
    }
}

.data-card {
    flex: 0 0 68%;
    background: rgba(255, 255, 255, 0.05);
    padding: 50px 60px;
    border-radius: 22px;
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.15);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.data-row {
    display: flex;
    align-items: center;
    margin-bottom: 28px;
    font-size: 24px;
}

.data-label {
    width: 400px;
    font-weight: bold;
    color: #00eaff;
    text-shadow: 0 0 5px cyan;
    font-size: 36px;
}

.data-value {
    flex: 1;
    color: #ffffff;
    text-shadow: 0 0 10px cyan;
    font-weight: 600;
    font-size: 36px;
}

.status-message {
    margin-top: 25px;
    color: #ff4b5c;
    font-weight: bold;
    text-shadow: 0 0 6px red;
    font-size: 20px;
}

@media (max-width: 992px) {
    .card-body {
        flex-wrap: wrap;
        justify-content: center;
        height: auto;
    }

    .photo-card,
    .data-card {
        flex: 0 0 100%;
        max-width: 750px;
    }

    .photo-card {
        margin-bottom: 35px;
    }
}

@keyframes holoIn {
    0% {
        opacity: 0;
        transform: scale(0.8) rotateX(45deg);
        filter: brightness(1.5) blur(3px);
    }

    60% {
        opacity: 1;
        transform: scale(1.05) rotateX(0);
        filter: brightness(1.1);
    }

    100% {
        transform: scale(1);
        filter: brightness(1);
    }
}

.scanner-beam {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 250px;
    height: 2px;
    background: cyan;
    box-shadow: 0 0 15px cyan;
    transform: translate(-50%, -50%);
    animation: scanline 2s ease-in-out infinite;
    opacity: 0.5;
    z-index: 1;
}

@keyframes scanline {

    0%,
    100% {
        transform: translate(-50%, -120%) rotate(0);
    }

    50% {
        transform: translate(-50%, 120%) rotate(0);
    }
}

.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: cyan;
    font-family: 'Orbitron', sans-serif;
    z-index: 9999;
    animation: fadeIn 0.4s ease forwards;
}

.spinner {
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top: 4px solid cyan;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 0.8s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

#scanner_input {
    position: absolute;
    left: -9999px;
}