* {
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* --- BACKGROUND DEEP SPACE BLUE --- */
body {
    margin: 0;
    padding: 0;
    background-color: #020612;
    /* Lampu sorot biru dari ujung kiri dan kanan */
    background-image: 
        radial-gradient(circle at 0% 20%, rgba(0, 242, 254, 0.2), transparent 50%),
        radial-gradient(circle at 100% 80%, rgba(0, 100, 255, 0.15), transparent 50%),
        url('wallpaper-web.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-blend-mode: overlay;
    color: #ffffff;
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 100%; 
    min-height: 100vh;
    background: rgba(3, 7, 18, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding-bottom: 80px;
}

.content-wrapper {
    max-width: 500px; 
    margin: 0 auto;
    padding: 20px; 
}

/* --- INSPIRED TEXT --- */
.inspired-text {
    text-align: center;
    background: rgba(0, 242, 254, 0.1);
    border: 1px solid rgba(0, 242, 254, 0.3);
    border-radius: 20px;
    padding: 6px 15px;
    font-size: 10px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    margin: 10px auto 20px auto;
    display: table;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.inspired-link {
    color: #00f2fe; 
    font-weight: 800;
    text-decoration: none;
    transition: 0.3s;
}
.inspired-link:hover { color: #fff; text-shadow: 0 0 10px #00f2fe; }

/* --- HEADER & PROFILE --- */
.header {
    display: flex;
    justify-content: center; 
    align-items: center;
    padding: 10px;
    margin-bottom: 25px;
}

.profile-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 242, 254, 0.15);
    border-radius: 30px;
    padding: 25px 40px;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.avatar {
    width: 90px;
    height: 90px;
    border-radius: 25px;
    object-fit: cover;
    border: 2px solid #00f2fe;
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.4);
}

.username {
    font-size: 22px;
    font-weight: 800;
    margin: 0;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* --- KATEGORI --- */
.section-title {
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    margin: 35px 0 15px 0;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-title i { color: #00f2fe; margin-right: 5px; font-size: 14px;}

/* --- GRID KOTAK 2 KOLOM --- */
.link-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 15px;
    padding: 0;
}

/* --- WIDGET CARD KOTAK DEFAULT --- */
.link-card {
    display: flex;
    flex-direction: column; 
    align-items: center;
    justify-content: center;
    background: rgba(15, 20, 35, 0.6); 
    border: 1px solid rgba(0, 242, 254, 0.1);
    backdrop-filter: blur(10px); 
    border-radius: 28px; 
    padding: 20px 10px;
    aspect-ratio: 1 / 1; /* Default bentuk kotak */
    text-decoration: none;
    color: white;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    position: relative;
    text-align: center;
}

.link-card:hover {
    background: rgba(0, 242, 254, 0.1);
    border-color: #00f2fe;
    box-shadow: 0 10px 25px rgba(0, 242, 254, 0.2);
    transform: scale(1.05);
}

/* IKON DI TENGAH GEDE */
.link-icon {
    font-size: 42px; 
    margin-bottom: 12px;
    color: #00f2fe;
    transition: 0.3s;
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.5));
}

/* Warna spesifik icon nyala pas di-hover */
.link-card:hover .fa-youtube { color: #ff0000; filter: drop-shadow(0 0 10px rgba(255,0,0,0.5)); }
.link-card:hover .fa-instagram { color: #e1306c; filter: drop-shadow(0 0 10px rgba(225,48,108,0.5)); }
.link-card:hover .fa-tiktok { color: #ffffff; filter: drop-shadow(0 0 10px rgba(255,255,255,0.5)); }
.link-card:hover .fa-discord { color: #5865F2; filter: drop-shadow(0 0 10px rgba(88,101,242,0.5)); }
.link-card:hover .fa-whatsapp { color: #25d366; filter: drop-shadow(0 0 10px rgba(37,211,102,0.5)); }

.link-text {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    line-height: 1.2;
    padding: 0 5px;
}

/* --- FOTO TEMAN (DALAM KOTAK) --- */
.friend-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(0, 242, 254, 0.3);
    margin-bottom: 10px;
    transition: 0.3s;
}

.link-card:hover .friend-avatar {
    border-color: #00f2fe;
    transform: scale(1.1);
}

.friend-text {
    font-size: 13px;
    font-weight: 700;
}

/* --- TOMBOL SHARE --- */
.share-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #aaa;
    transition: 0.3s;
}
.link-card:hover .share-btn {
    background: #00f2fe;
    color: #000;
}

/* --- KELAS KHUSUS KARTU MEMANJANG (BUAT ABOUT & REKOMENDASI) --- */
.card-panjang {
    grid-column: 1 / -1; /* Mengisi penuh dari kiri ke kanan */
    aspect-ratio: auto; /* Mematikan mode kotak */
    flex-direction: row; /* Ikon dan teks nyamping */
    padding: 20px 25px;
    text-align: left;
    min-height: 100px;
}

.card-panjang .link-icon {
    margin-bottom: 0;
    margin-right: 20px;
    font-size: 32px;
}

.card-panjang .share-btn {
    top: 50%;
    transform: translateY(-50%);
}

/* --- ANIMASI --- */
@keyframes popIn {
    0% { opacity: 0; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1); }
}

.inspired-text, .header, .section-title, .link-card {
    opacity: 0; 
    animation: popIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    animation-delay: var(--d); 
}

/* --- POPUP MELAYANG --- */
.floating-popup {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: rgba(10, 15, 30, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid #00f2fe;
    border-radius: 20px;
    padding: 18px;
    width: 290px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    gap: 15px;
    z-index: 100;
    
    opacity: 0;
    animation: slideUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    animation-delay: 2.1s; 
    transition: 0.3s; 
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.popup-icon {
    font-size: 26px;
    color: #00f2fe;
    display: flex;
    align-items: center;
}

.popup-content h4 {
    margin: 0 0 5px 0;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

.popup-content p {
    margin: 0 0 12px 0;
    font-size: 12px;
    color: #aaa;
    line-height: 1.4;
}

.popup-btn {
    background: #00f2fe;
    color: #020612;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    text-decoration: none;
    display: block;
    text-align: center;
}
.popup-btn:hover {
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.5);
    background: #fff;
}

.close-popup {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 16px;
    transition: 0.3s;
}
.close-popup:hover { color: #fff; }
