/* ======= General Style ======= */
:root {
    --primary-color: #045E54; /* Warna utama */
    --secondary-color: #004D40; /* Warna sekunder */
    --text-color: #FFFFFF; /* Warna teks */
    --button-hover: #00796B; /* Warna hover tombol */
    --card-background: rgba(255, 255, 255, 0.15); /* Transparansi kartu */
    --shadow-color: rgba(0, 0, 0, 0.2); /* Warna shadow */
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-color);
    text-align: center;
    /*height: 100vh;*/
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ======= Bio Container ======= */
.bio-container {
    max-width: 600px;
    width: 90%;
    margin: 20px auto;
    padding: 30px 20px;
    background: var(--card-background);
    border-radius: 15px;
    box-shadow: 0 4px 8px var(--shadow-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    
}

.profile-pic {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--text-color);
    margin: 0 auto 10px;
    animation: pulse 2s infinite;
}

.bio-title {
    font-size: 2.2rem;
    font-weight: bold;
    margin: 10px 0;
    color: var(--text-color);
}

.bio-desc {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--text-color);
}

/* ======= Social Media Icons ======= */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--text-color);
    border-radius: 50%;
    font-size: 1.2rem;
    transition: transform 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 2px 5px var(--shadow-color);
}

.social-icons a:hover {
    transform: scale(1.1);
    background-color: var(--button-hover);
}

/* ======= Links Scrollable with Images ======= */


.links a {
    display: flex;
    align-items: flex-start;
    text-decoration: none;
    color: var(--text-color);
    background-color: var(--primary-color);
    padding: 15px;
    margin: 8px 0;
    border-radius: 10px;
    box-shadow: 0 4px 6px var(--shadow-color);
    transition: all 0.3s ease;
}

.links a img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    margin-right: 15px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.links a span {
    flex: 1;
    text-align: left;
    font-size: 1rem;
    line-height: 1.5;
}

.links a:hover {
    background: linear-gradient(135deg, var(--button-hover), var(--secondary-color));
    transform: scale(1.02);
    box-shadow: 0 6px 12px var(--shadow-color);
}

/* ======= Footer ======= */
.footer {
    text-align: center;
    font-size: 1rem;
    color: var(--text-color);
    background-color: var(--secondary-color);
    padding: 1px 0;
    border-radius: 8px;
    margin-top: 10px;
    box-shadow: 0 -2px 5px var(--shadow-color);
}

/* ======= Animations ======= */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* ======= Scrollbar Styling ======= */
.links::-webkit-scrollbar {
    width: 8px;
}

.links::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 10px;
}

.links::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

/* ======= Responsiveness ======= */
@media (max-width: 768px) {
    .bio-container {
        padding: 20px;
        height: 95vh;
    }

    .bio-title {
        font-size: 1.8rem;
    }

    .links a {
        font-size: 0.9rem;
    }

    .links a img {
        width: 40px;
        height: 40px;
    }
}

/* ======= Sticky Navbar ======= */
.sticky-header {
    position: sticky;
    top: 0;
    background-color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    box-shadow: 0 4px 6px var(--shadow-color);
    z-index: 1000;
    transform: translateY(-300%);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sticky-header.active {
    transform: translateY(0);
    width:100%;
    margin-left:-20px;
}

.sticky-header .profile-pic {
    width: 50px; /* Mengecilkan gambar */
    height: 50px;
    margin: 0;
    border: 2px solid var(--text-color);
    
}

.sticky-header .bio-title {
    font-size: 1.5rem;
    margin: 0;
    color: var(--text-color);
}

/* Sticky Header saat di-scroll */
.bio-container {
    margin-top: 0; /* Sesuaikan agar sticky-header terlihat */
}

body {
            font-family: Arial, sans-serif;
            margin: 0;
            padding: 0;
            background: linear-gradient(135deg, #045E54, #004D40);
            color: #fff;
            text-align: center;
        }

        .container {
            max-width: 600px;
            margin: 20px auto;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 10px;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
            padding: 20px;
        }

        .profile-pic {
            width: 120px;
            height: 120px;
            border-radius: 50%;
            border: 4px solid #fff;
            object-fit: cover;
            margin: 10px auto;
        }

        h1 {
            margin: 10px 0;
            font-size: 2rem;
        }

        p {
            font-size: 1.1rem;
            margin-bottom: 20px;
        }

        /* Social Media Links */
        .social-icons {
            display: flex;
            justify-content: center;
            gap: 10px;
            margin-bottom: 20px;
        }

        .social-icons a {
            text-decoration: none;
            color: #fff;
            background: #00796B;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
            transition: all 0.3s ease;
        }

        .social-icons a:hover {
            background: #004D40;
            transform: scale(1.1);
        }

        /* Links */
        .links {
            text-align: left;
            margin-bottom: 20px;
        }

        .link-item {
            display: flex;
            align-items: flex-start;
            background: #00796B;
            margin: 10px 0;
            padding: 15px;
            border-radius: 10px;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
            text-decoration: none;
            color: #fff;
            transition: all 0.3s ease;
        }

        .link-item img {
            width: 60px;
            height: 60px;
            margin-right: 15px;
            border-radius: 10px;
            object-fit: cover;
        }

        .link-item:hover {
            background: #004D40;
            transform: scale(1.02);
        }

        .footer {
            margin-top: 20px;
            font-size: 1rem;
            color: #ddd;
        }