/* ==========================================
   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(255, 68, 88, 0.15) 0%, rgba(9, 9, 11, 0.85) 75%);
    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(255, 255, 255, 0.06);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 28px;
    padding: 36px 24px;
    text-align: center;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 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;
}

/* Shimmer Light Animation */
.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.05) 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 ANIMASI ELEGANK
   ========================================== */
.avatar-container {
    position: relative;
    width: 135px;
    height: 135px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Cincin Putar Bergradasi (Rotating Rainbow Ring) */
.avatar-container::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg, 
        #ff4458, 
        #ff8e53, 
        #ec4899, 
        #a855f7, 
        #ff4458
    );
    animation: spinRing 5s linear infinite;
    z-index: 0;
}

@keyframes spinRing {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Glow Aura (Pendaran Cahaya Berdenyut) */
.avatar-container::after {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff4458, #a855f7);
    z-index: -1;
    opacity: 0.65;
    filter: blur(14px);
    animation: glowPulse 2.5s ease-in-out infinite alternate;
}

@keyframes glowPulse {
    0% { opacity: 0.45; filter: blur(10px) scale(0.96); }
    100% { opacity: 0.85; filter: blur(18px) scale(1.05); }
}

/* Foto Profil dengan Transisi Halus */
.hero-photo {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #121217;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    
    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 #121217;
    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 4px rgba(0, 149, 246, 0.4));
}

.user-subtext {
    font-size: 13.5px;
    color: #a1a1aa;
    font-weight: 400;
}

.online-time {
    color: #22c55e;
    font-weight: 600;
}

/* ==========================================
   6. TYPOGRAPHY
   ========================================== */
h1 {
    font-size: 23px;
    font-weight: 700;
    margin-top: 22px;
    line-height: 1.3;
    background: linear-gradient(135deg, #ffffff 0%, #f4f4f5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

p#subtitle {
    color: #d4d4d8;
    font-size: 13.5px;
    margin-top: 8px;
    line-height: 1.55;
    font-weight: 300;
}

/* ==========================================
   7. BUTTONS (HOVER & GLOW EFFECTS)
   ========================================== */
.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.25);
}

.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);
}

/* Gradient Colors per Platform */
.whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border: 1px solid rgba(37, 211, 102, 0.4);
}
.whatsapp:hover {
    box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45);
}

.telegram {
    background: linear-gradient(135deg, #2AABEE 0%, #229ED9 100%);
    border: 1px solid rgba(42, 171, 238, 0.4);
}
.telegram:hover {
    box-shadow: 0 10px 28px rgba(42, 171, 238, 0.45);
}

.tinder {
    background: linear-gradient(135deg, #FF4458 0%, #FF6B6B 50%, #FF8E53 100%);
    border: 1px solid rgba(255, 68, 88, 0.4);
}
.tinder:hover {
    box-shadow: 0 10px 28px rgba(255, 68, 88, 0.45);
}

/* ==========================================
   8. FOOTER
   ========================================== */
footer {
    text-align: center;
    padding: 0;
    margin: 0;
}

/* ==========================================
   9. 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;
    }

    h1 {
        font-size: 21px;
    }

    p#subtitle {
        font-size: 12.5px;
    }

    .btn {
        padding: 14px;
        font-size: 14px;
    }
}