/* ==========================================
   1. RESET & BASE STYLES
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #09090b;
    color: #fff;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ==========================================
   2. BACKGROUND & ANIMATED OVERLAY
   ========================================== */
.background {
    position: fixed;
    inset: -20px;
    background: url("assets/bg.webp") center center / cover no-repeat;
    filter: blur(15px) brightness(0.6);
    z-index: -3;
    animation: bgPulse 12s ease-in-out infinite alternate;
}

.overlay {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at center, rgba(37, 211, 102, 0.12) 0%, rgba(9, 9, 11, 0.92) 80%);
    z-index: -2;
}

@keyframes bgPulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.08); }
}

/* ==========================================
   3. HERO & GLASS CARD CONTAINER
   ========================================== */
.hero {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 16px;
}

.glass-card {
    width: 100%;
    max-width: 440px;
    background: rgba(20, 18, 26, 0.55);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    
    /* Border Elegan Menyatu dengan Tema GLASS */
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    border-bottom: 1px solid rgba(0, 136, 204, 0.2);
    
    border-radius: 28px;
    padding: 36px 24px;
    text-align: center;
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.7), 
        0 0 40px rgba(37, 211, 102, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    animation: cardAppear 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 45%,
        rgba(255, 255, 255, 0.08) 50%,
        transparent 55%
    );
    animation: shimmer 6s infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%); }
    100% { transform: translateX(100%) translateY(100%); }
}

@keyframes cardAppear {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ==========================================
   4. AVATAR & BINGKAI MEWAH (WA + TELE + TINDER)
   ========================================== */
.avatar-container {
    position: relative;
    width: 135px;
    height: 135px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Cincin Putar Paduan WhatsApp (Hijau), Telegram (Biru), Tinder (Merah) */
.avatar-container::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg, 
        #25d366, /* Hijau WhatsApp */
        #0088cc, /* Biru Telegram */
        #ff4458, /* Merah Tinder */
        #25d366  /* Kembali ke Hijau WhatsApp agar transisi putaran seimbang */
    );
    animation: spinRing 6s linear infinite;
    z-index: 0;
}

@keyframes spinRing {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Glow Aura Paduan 3 Warna yang Lembut & Menyatu */
.avatar-container::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25d366, #0088cc, #ff4458);
    z-index: -1;
    opacity: 0.55;
    filter: blur(16px);
    animation: glowPulse 2.5s ease-in-out infinite alternate;
}

@keyframes glowPulse {
    0% { opacity: 0.35; filter: blur(10px) scale(0.96); }
    100% { opacity: 0.75; filter: blur(18px) scale(1.04); }
}

/* Foto Profil dengan Inner Border Dark Glass */
.hero-photo {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3.5px solid rgba(18, 16, 23, 0.95);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-photo.loaded {
    opacity: 1;
    transform: scale(1);
}

.avatar-container:hover .hero-photo {
    transform: scale(1.04);
}

/* Status Badge Online */
.status-badge {
    position: absolute;
    bottom: 2px;
    right: 6px;
    width: 20px;
    height: 20px;
    background-color: #22c55e;
    border: 3px solid #14121a;
    border-radius: 50%;
    z-index: 4;
}

.status-badge::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background-color: #22c55e;
    animation: badgePulse 1.8s infinite;
    z-index: -1;
}

@keyframes badgePulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(2.4); opacity: 0; }
}

/* ==========================================
   5. USER PROFILE INFO
   ========================================== */
.user-profile-info {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.verified-name {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.profile-name {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.3px;
}

.verify-badge {
    display: inline-block;
    filter: drop-shadow(0 2px 6px rgba(0, 149, 246, 0.5));
    animation: badgeShimmer 3s ease-in-out infinite;
}

@keyframes badgeShimmer {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 2px 6px rgba(0, 149, 246, 0.5));
    }
    50% {
        transform: scale(1.08);
        filter: drop-shadow(0 0 10px rgba(0, 149, 246, 0.9));
    }
}

.user-subtext {
    font-size: 13.5px;
    color: #a1a1aa;
    font-weight: 400;
}

.online-time {
    color: #22c55e;
    font-weight: 600;
}

/* ==========================================
   6. BUTTONS (ANIMASI & EFEK BORDER GLOW)
   ========================================== */
.buttons {
    margin-top: 26px;
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.btn {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: white;
    padding: 15px;
    border-radius: 16px;
    font-weight: 600;
    font-size: 14.5px;
    letter-spacing: 0.3px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.buttons .btn:nth-child(1) { animation: btnAppear 0.6s ease forwards 0.2s; opacity: 0; }
.buttons .btn:nth-child(2) { animation: btnAppear 0.6s ease forwards 0.35s; opacity: 0; }
.buttons .btn:nth-child(3) { animation: btnAppear 0.6s ease forwards 0.5s; opacity: 0; }

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

.btn img {
    width: 22px;
    height: 22px;
    transition: transform 0.3s ease;
}

.btn:hover {
    transform: translateY(-3px) scale(1.02);
}

.btn:hover img {
    transform: scale(1.15) rotate(-5deg);
}

.btn:active {
    transform: translateY(-1px) scale(0.99);
}

.whatsapp {
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.95) 0%, rgba(18, 140, 126, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-bottom: 1px solid rgba(37, 211, 102, 0.5);
}
.whatsapp:hover {
    box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45);
    border-color: rgba(255, 255, 255, 0.5);
}

.telegram {
    background: linear-gradient(135deg, rgba(42, 171, 238, 0.95) 0%, rgba(34, 158, 217, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-bottom: 1px solid rgba(42, 171, 238, 0.5);
}
.telegram:hover {
    box-shadow: 0 10px 28px rgba(42, 171, 238, 0.45);
    border-color: rgba(255, 255, 255, 0.5);
}

.tinder {
    background: linear-gradient(135deg, rgba(255, 68, 88, 0.95) 0%, rgba(255, 107, 107, 0.95) 50%, rgba(255, 142, 83, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-bottom: 1px solid rgba(255, 68, 88, 0.5);
}
.tinder:hover {
    box-shadow: 0 10px 28px rgba(255, 68, 88, 0.5);
    border-color: rgba(255, 255, 255, 0.6);
}

/* ==========================================
   7. FOOTER
   ========================================== */
footer {
    text-align: center;
    padding: 0;
    margin: 0;
}

/* ==========================================
   8. RESPONSIVE MOBILE OPTIMIZATION
   ========================================== */
@media(max-width: 480px) {
    .glass-card {
        padding: 28px 18px;
        border-radius: 24px;
    }

    .avatar-container {
        width: 120px;
        height: 120px;
    }

    .profile-name {
        font-size: 20px;
    }

    .btn {
        padding: 14px;
        font-size: 14px;
    }
}