@font-face {
    font-family: 'Neue Machina';
    src: url('https://fonts.cdnfonts.com/css/neue-machina') format('woff2');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Neue Machina', sans-serif;
    background-color: #000;
    color: #fff;
    min-height: 100vh;
    overflow-x: hidden;
    perspective: 1000px;
}

.quantum-waves {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    opacity: 0.3;
    background:
        radial-gradient(circle at 20% 30%,
            rgba(255, 255, 255, 0.1) 0%,
            transparent 50%),
        radial-gradient(circle at 80% 70%,
            rgba(255, 255, 255, 0.1) 0%,
            transparent 50%);
    animation: wave-pulse 15s infinite alternate;
}

@keyframes wave-pulse {
    0% {
        transform: scale(1);
        opacity: 0.2;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.4;
    }

    100% {
        transform: scale(1);
        opacity: 0.2;
    }
}

.binary-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.05;
    background-image:
        linear-gradient(transparent 95%, rgba(255, 255, 255, 0.1) 100%);
    background-size: 100% 1.5em;
    line-height: 1.5em;
    font-size: 1.2em;
    color: white;
    white-space: pre;
    overflow: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.hologram-card {
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(15px);
    border-radius: 2px;
    padding: 3rem;
    width: 100%;
    max-width: 600px;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.1),
        0 0 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    animation: hologram-float 8s ease-in-out infinite;
}

@keyframes hologram-float {

    0%,
    100% {
        transform: translateY(0) rotateX(0deg) rotateY(0deg);
    }

    50% {
        transform: translateY(-15px) rotateX(2deg) rotateY(2deg);
    }
}

.hologram-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.8),
            transparent);
    animation: scanline 4s linear infinite;
}

@keyframes scanline {
    0% {
        top: 0;
        opacity: 0;
    }

    5% {
        opacity: 1;
    }

    95% {
        opacity: 1;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

.hologram-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle,
            rgba(255, 255, 255, 0.05) 0%,
            transparent 70%);
    animation: rotate 20s linear infinite;
    z-index: -1;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.profile-img-container {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto 2rem;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.profile-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow:
        0 0 20px rgba(255, 255, 255, 0.1),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    transform: translateZ(30px);
    filter: grayscale(100%) contrast(120%);
}

.profile-img:hover {
    transform: translateZ(50px) rotateY(10deg);
    box-shadow:
        0 0 30px rgba(255, 255, 255, 0.3),
        inset 0 0 30px rgba(255, 255, 255, 0.2);
}

.profile-img-container::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: pulse 3s ease-in-out infinite alternate;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.3;
    }

    100% {
        transform: scale(1.05);
        opacity: 0.1;
    }
}

h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}

h1::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s ease;
}

h1:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.title {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
    font-weight: 300;
    letter-spacing: 1px;
}

.bio {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
}

/* Music Player Styles */
.music-container {
    margin-top: 2rem;
}

.music-player {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.music-header {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.album-art {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    object-fit: cover;
    margin-right: 16px;
    flex-shrink: 0;
}

.music-info {
    flex-grow: 1;
    min-width: 0;
    text-align: left;
}

.song-title {
    font-weight: 600;
    font-size: 1rem;
    color: #fff;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.artist {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lyrics {
    font-size: 0.9rem;
    font-weight: 500;
    color: #4a86e8;
    line-height: 1.4;
    white-space: normal; /* Memastikan lirik tidak terpotong */
}

.controls-and-progress {
    display: flex;
    align-items: center;
    gap: 16px;
}

.play-pause {
    background-color: #4a86e8;
    border: none;
    cursor: pointer;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
    flex-shrink: 0;
    transition: background-color 0.2s;
}

.play-pause:hover {
    background-color: #3178c6;
}

.progress-section {
    flex-grow: 1;
}

.progress-container {
    width: 100%;
    height: 5px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    cursor: pointer;
}

.progress-bar {
    height: 100%;
    background-color: #4a86e8;
    width: 0%;
    border-radius: 10px;
}

.time-display {
    width: 100%;
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

.time-display .time-separator {
    display: none;
    margin: 0 5px; /* Opsional: untuk memberikan sedikit jarak jika dibutuhkan */
}

/* End of Music Player Styles */

.space-element {
    position: fixed;
    z-index: 1;
    pointer-events: none;
    transform-style: preserve-3d;
}

.tesseract {
    width: 120px;
    height: 120px;
    top: 20%;
    left: 15%;
    animation: tesseract-spin 20s linear infinite;
    opacity: 0.1;
}

@keyframes tesseract-spin {
    0% {
        transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg);
    }

    100% {
        transform: rotateX(360deg) rotateY(720deg) rotateZ(360deg);
    }
}

.wireframe-sphere {
    width: 200px;
    height: 200px;
    bottom: 10%;
    right: 10%;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: sphere-rotate 30s linear infinite;
}

@keyframes sphere-rotate {
    0% {
        transform: rotateX(0deg) rotateY(0deg);
    }

    100% {
        transform: rotateX(360deg) rotateY(360deg);
    }
}

.skills-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.skill {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80px;
    padding: 1rem 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-style: preserve-3d;
}

.skill i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.skill span {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
}

.skill:hover {
    transform: translateZ(20px) scale(1.1);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.skill::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: scale(0);
    border-radius: 50%;
    transition: transform 0.5s ease;
    z-index: -1;
}

.skill:hover::before {
    transform: scale(1);
}

.skill.HTML:hover i {
    color: #e34f26;
}

.skill.CSS:hover i {
    color: #2965f1;
}

.skill.JavaScript:hover i {
    color: #f7df1e;
}

.skill.TypeScript:hover i {
    color: #3178c6;
}

@media (max-width: 768px) {
    .hologram-card {
        padding: 2rem 1.5rem;
    }

    h1 {
        font-size: 2rem;
    }

    .title {
        font-size: 1rem;
    }

    .profile-img-container {
        width: 140px;
        height: 140px;
    }

    .tesseract,
    .wireframe-sphere {
        display: none;
    }
}
