/* 
  =========================================
  CSS STYLING UNTUK BIO LINK - YANA
  =========================================
  Didesain dengan konsep Glassmorphism Modern,
  Vibrant Gradient Accent, & Animasi Halus.
  Fully Responsive (Mobile & Desktop).
*/

/* 1. CSS VARIABLES & SYSTEM RESET */
:root {
    /* Color Palette (Menggunakan HSL agar harmonis & mudah disesuaikan) */
    --bg-color: hsl(240, 16%, 6%);
    --text-primary: hsl(0, 0%, 100%);
    --text-secondary: hsl(240, 10%, 75%);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, hsl(270, 85%, 65%), hsl(330, 85%, 60%));
    --gradient-glow: linear-gradient(135deg, hsla(270, 85%, 65%, 0.15), hsla(330, 85%, 60%, 0.15));
    --gradient-text: linear-gradient(90deg, hsl(270, 85%, 70%), hsl(330, 85%, 65%));
    
    /* Glassmorphism Variables */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-hover-bg: rgba(255, 255, 255, 0.08);
    --glass-hover-border: rgba(255, 255, 255, 0.2);
    --card-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    
    /* Transitions & Border Radius */
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-round: 50%;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset Standar Browser */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
    padding: 2rem 1rem;
}

/* 2. AMBIENT BACKGROUND GLOW (Efek Cahaya Estetik) */
.bg-glow {
    position: absolute;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.6;
    animation: pulseGlow 12s infinite alternate ease-in-out;
}

.bg-glow-1 {
    top: 10%;
    left: -5%;
    background: radial-gradient(circle, hsl(270, 85%, 60%) 0%, transparent 70%);
}

.bg-glow-2 {
    bottom: 10%;
    right: -5%;
    background: radial-gradient(circle, hsl(330, 85%, 55%) 0%, transparent 70%);
    animation-delay: -6s;
}

/* Animasi untuk Cahaya Background */
@keyframes pulseGlow {
    0% {
        transform: translate(0, 0) scale(1);
    }
    100% {
        transform: translate(50px, 30px) scale(1.1);
    }
}

/* 3. CARD CONTAINER (Glassmorphism) */
.container {
    width: 100%;
    max-width: 480px;
    display: flex;
    justify-content: center;
    animation: fadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.profile-card {
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 3rem 2.25rem;
    box-shadow: var(--card-shadow);
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Efek hiasan garis di bagian atas card */
.profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

/* 4. PROFILE HEADER (Avatar, Name, Bio) */
.profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2.5rem;
}

/* Avatar Wrapper & Image */
.avatar-wrapper {
    position: relative;
    width: 110px;
    height: 110px;
    margin-bottom: 1.5rem;
}

.avatar-img {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-round);
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    transition: var(--transition-smooth);
}

.avatar-wrapper:hover .avatar-img {
    transform: scale(1.08) rotate(3deg);
    border-color: hsl(330, 85%, 60%);
    box-shadow: 0 10px 30px hsla(330, 85%, 60%, 0.3);
}

/* Status Badge (Online Indicator) */
.avatar-status-badge {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 18px;
    height: 18px;
    background-color: hsl(140, 80%, 50%);
    border: 3px solid hsl(240, 16%, 6%);
    border-radius: var(--radius-round);
    box-shadow: 0 0 12px hsl(140, 80%, 50%);
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* Typography */
.profile-name {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.profile-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: hsl(270, 85%, 75%);
    background: rgba(147, 51, 234, 0.1);
    padding: 0.35rem 0.9rem;
    border-radius: 50px;
    border: 1px solid rgba(147, 51, 234, 0.2);
    margin-bottom: 1.25rem;
    display: inline-block;
}

.profile-bio {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 360px;
}

/* 5. LINKS NAVIGATION (Tombol Utama) */
.links-nav {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    margin-bottom: 2.5rem;
}

/* Tombol Link */
.link-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1.1rem 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

/* Efek hover untuk tombol */
.link-btn:hover {
    background: var(--glass-hover-bg);
    border-color: var(--glass-hover-border);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2), 
                0 0 15px hsla(270, 85%, 65%, 0.1);
}

/* Icon & Text Alignment */
.btn-icon {
    width: 20px;
    height: 20px;
    color: hsl(270, 85%, 70%);
    transition: var(--transition-smooth);
}

.btn-text {
    flex-grow: 1;
    text-align: left;
    margin-left: 1.2rem;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.3px;
}

.btn-arrow {
    width: 16px;
    height: 16px;
    opacity: 0.4;
    transition: var(--transition-smooth);
}

/* Animasi Icon di tombol saat hover */
.link-btn:hover .btn-icon {
    color: hsl(330, 85%, 65%);
    transform: scale(1.15);
}

.link-btn:hover .btn-arrow {
    opacity: 1;
    transform: translate(2px, -2px);
    color: hsl(330, 85%, 65%);
}

/* Efek Gradient Glow Hover pada tombol pertama/utama */
.link-btn:first-child {
    background: var(--gradient-glow);
    border-color: rgba(147, 51, 234, 0.2);
}

.link-btn:first-child:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    box-shadow: 0 12px 30px hsla(270, 85%, 65%, 0.35);
}

.link-btn:first-child:hover .btn-icon,
.link-btn:first-child:hover .btn-arrow {
    color: var(--text-primary);
}

/* 6. FOOTER SECTION */
.profile-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
}

/* Social Icon Bar (Kecil di bawah) */
.social-icons {
    display: flex;
    gap: 1.25rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-round);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    transition: var(--transition-smooth);
    text-decoration: none;
}

.social-icons a i {
    width: 18px;
    height: 18px;
}

.social-icons a:hover {
    background: var(--gradient-primary);
    color: var(--text-primary);
    border-color: transparent;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px hsla(270, 85%, 65%, 0.25);
}

.copyright {
    font-size: 0.78rem;
    color: hsl(240, 8%, 55%);
    letter-spacing: 0.2px;
}

/* 7. ANIMATIONS */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 8. RESPONSIVE MEDIA QUERIES */
/* Penyesuaian untuk Smartphone Layar Kecil (Mobile) */
@media (max-width: 480px) {
    body {
        padding: 1rem 0.5rem;
    }
    
    .profile-card {
        padding: 2.5rem 1.5rem;
        border-radius: 20px;
    }
    
    .profile-name {
        font-size: 1.75rem;
    }
    
    .link-btn {
        padding: 1rem 1.25rem;
    }
    
    .btn-text {
        font-size: 0.9rem;
    }
}

/* Penyesuaian untuk Layar Sedang & Besar (Desktop) */
@media (min-width: 768px) {
    .profile-card {
        transition: var(--transition-smooth);
    }
    
    /* Efek hover lembut pada card container utama di desktop */
    .profile-card:hover {
        border-color: rgba(255, 255, 255, 0.12);
        box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    }
}
