/* Reset Default Style */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto Mono', monospace; /* Font Gaya Tech */
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px; /* Jarak kecil di sisi layar */
}

/* BACKGROUND SIRKUIT ANIMASI */
.circuit-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, #121212, #1e1e1e);
    /* Efek Sirkuit Elektronik */
    background-image: 
        linear-gradient(rgba(30, 136, 229, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(30, 136, 229, 0.1) 1px, transparent 1px);
    background-size: 25px 25px;
    z-index: -1;
}

/* Animasi Garis Sirkuit */
.circuit-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right, 
        transparent 0%, 
        rgba(30, 136, 229, 0.2) 50%, 
        transparent 100%
    );
    animation: circuit-slide 10s linear infinite;
}

@keyframes circuit-slide {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ================= KONTAINER UTAMA ================= */
.main-container {
    width: 100%;
    max-width: 480px;
    text-align: center;
    padding: 40px 30px;
    background-color: rgba(18, 18, 18, 0.9);
    border-radius: 10px;
    border: 1px solid rgba(30, 136, 229, 0.3);
    box-shadow: 0 0 15px rgba(30, 136, 229, 0.2);
    position: relative;
    margin: 0 auto; /* Tambahin baris ini aja */
}

/* Animasi Kontainer Muncul Lambat */
.main-container {
    animation: fade-in 1.5s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fade-in {
    to { opacity: 1; transform: translateY(0); }
}

/* ================= PROFIL ANIMASI ================= */
.profile-frame {
    width: 180px;
    height: 180px;
    margin: 0 auto 20px auto;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #1e88e5;
    box-shadow: 0 0 10px #1e88e5, 0 0 20px rgba(30, 136, 229, 0.4);
    /* Animasi Profil Turun Dari Atas */
    animation: profile-drop 1.2s ease forwards;
    transform: translateY(-50px);
    opacity: 0;
}

@keyframes profile-drop {
    to { transform: translateY(0); opacity: 1; }
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
}

.profile-img:hover {
    transform: scale(1.05) rotate(2deg);
}

/* ================= TEKS NAMA ANIMASI KETIK ================= */
.name-text {
    font-size: 34px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 3px;
    margin-bottom: 8px;
    border-right: 3px solid #1e88e5;
    white-space: nowrap;
    overflow: hidden;
    text-shadow: 0 0 5px #1e88e5;
    /* Animasi Ketik + Kedip Karet */
    animation: typing 3s steps(20) forwards 1s, blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: #1e88e5; }
}

.tagline {
    font-size: 15px;
    color: #b0b0b0;
    letter-spacing: 4px;
    margin-bottom: 25px;
    text-transform: uppercase;
    /* Animasi Tagline Muncul Lambat */
    animation: tagline-fade 1.5s ease forwards 0.5s;
    opacity: 0;
}

@keyframes tagline-fade {
    to { opacity: 1; }
}

/* ================= GARIS PEMBATAS ANIMASI ================= */
.divider {
    width: 70%;
    height: 2px;
    margin: 0 auto 35px auto;
    background: #1e88e5;
    box-shadow: 0 0 8px #1e88e5;
    /* Animasi Garis Memanjang */
    animation: divider-expand 1.2s ease forwards 0.8s;
    width: 0;
    opacity: 0;
}

@keyframes divider-expand {
    to { width: 70%; opacity: 1; }
}

/* ================= TOMBOL ANIMASI GESER ================= */
.links-section {
    margin-bottom: 35px;
}

.link-button {
    display: block;
    color: #ffffff;
    text-decoration: none;
    padding: 16px;
    margin-bottom: 18px;
    border-radius: 6px;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    /* Animasi Tombol Geser Dari Kiri */
    animation: button-slide 1s ease forwards;
    transform: translateX(-30px);
    opacity: 0;
}

/* Delay Setiap Tombol */
.link-button:nth-child(1) { animation-delay: 1s; }
.link-button:nth-child(2) { animation-delay: 1.2s; }
.link-button:nth-child(3) { animation-delay: 1.4s; }
.link-button:nth-child(4) { animation-delay: 1.6s; }

@keyframes button-slide {
    to { transform: translateX(0); opacity: 1; }
}

/* Warna Tombol Kasual Tech */
.blue {
    background-color: rgba(30, 136, 229, 0.15);
    border-color: #1e88e5;
    box-shadow: 0 0 6px rgba(30, 136, 229, 0.3);
}
.blue:hover {
    background-color: rgba(30, 136, 229, 0.3);
    box-shadow: 0 0 10px #1e88e5, 0 0 15px rgba(30, 136, 229, 0.5);
    transform: translateY(-2px);
}

.purple {
    background-color: rgba(123, 31, 162, 0.15);
    border-color: #7b1fa2;
    box-shadow: 0 0 6px rgba(123, 31, 162, 0.3);
}
.purple:hover {
    background-color: rgba(123, 31, 162, 0.3);
    box-shadow: 0 0 10px #7b1fa2, 0 0 15px rgba(123, 31, 162, 0.5);
    transform: translateY(-2px);
}

.orange {
    background-color: rgba(255, 87, 34, 0.15);
    border-color: #ff5722;
    box-shadow: 0 0 6px rgba(255, 87, 34, 0.3);
}
.orange:hover {
    background-color: rgba(255, 87, 34, 0.3);
    box-shadow: 0 0 10px #ff5722, 0 0 15px rgba(255, 87, 34, 0.5);
    transform: translateY(-2px);
}

.green {
    background-color: rgba(46, 125, 50, 0.15);
    border-color: #2e7d32;
    box-shadow: 0 0 6px rgba(46, 125, 50, 0.3);
}
.green:hover {
    background-color: rgba(46, 125, 50, 0.3);
    box-shadow: 0 0 10px #2e7d32, 0 0 15px rgba(46, 125, 50, 0.5);
    transform: translateY(-2px);
}

/* ================= WIDGET SOSMED ANIMASI PUTAR ================= */
.sosmed-widgets {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 25px;
    /* Animasi Sosmed Muncul */
    animation: sosmed-fade 1s ease forwards 1.8s;
    opacity: 0;
}

@keyframes sosmed-fade {
    to { opacity: 1; }
}

.sosmed-icon {
    color: #b0b0b0;
    font-size: 22px;
    width: 50px;
    height: 50px;
    border-radius: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    background-color: rgba(40, 40, 40, 0.5);
    border: 1px solid rgba(30, 136, 229, 0.2);
    transition: all 0.4s ease;
}

.sosmed-icon:hover {
    color: #ffffff;
    border-color: #1e88e5;
    box-shadow: 0 0 8px #1e88e5;
    transform: rotate(10deg) scale(1.1);
}

/* ================= FOOTER ANIMASI KEDIP ================= */
.footer-text {
    font-size: 14px;
    color: #b0b0b0;
    letter-spacing: 2px;
    /* Animasi Kedip */
    animation: footer-blink 3s ease infinite alternate;
}

@keyframes footer-blink {
    0% { color: #b0b0b0; text-shadow: none; }
    100% { color: #ffffff; text-shadow: 0 0 5px #1e88e5; }
}

/* ================= RESPONSIF DESKTOP ================= */
@media screen and (min-width: 768px) {
    /* Kontainer utama jadi lebih lebar */
    .main-container {
        max-width: 600px;
        margin: 50px auto; /* Biar ada jarak atas-bawah dan rata tengah */
        padding: 50px 40px;
    }

    /* Ukuran teks nama lebih besar */
    .name-text {
        font-size: 42px;
        letter-spacing: 4px;
    }

    /* Tagline lebih jelas */
    .tagline {
        font-size: 18px;
        letter-spacing: 5px;
    }

    /* Frame profil lebih besar */
    .profile-frame {
        width: 220px;
        height: 220px;
        margin-bottom: 25px;
    }

    /* Tombol lebih lebar dan nyaman */
    .link-button {
        font-size: 18px;
        padding: 18px;
        margin-bottom: 20px;
    }

    /* Ikon sosmed lebih besar */
    .sosmed-icon {
        font-size: 26px;
        width: 55px;
        height: 55px;
    }

    /* Footer teks sedikit lebih besar */
    .footer-text {
        font-size: 15px;
    }
}
