/* Reset dasar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Background animasi gradasi */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #6a11cb, #2575fc);
    background-size: 400% 400%;
    animation: gradientMove 15s ease infinite;
    z-index: -1;
    filter: blur(5px);
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

/* Kotak utama profil */
.main {
    background-color: rgba(255, 255, 255, 0.95);
    width: 100%;
    max-width: 450px;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    text-align: center;
    position: relative;
    overflow: hidden;
    transform: translateY(0);
    transition: transform 0.5s ease;
}

.main:hover {
    transform: translateY(-5px);
}

/* Container foto profil */
.img-container {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 25px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid #f0f0f0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.img {
    width: 100%;
    height: 100%;
    background: url('img.jpg') center/cover no-repeat; /* Pastikan img.jpg ada */
    transition: transform 0.5s ease;
}

.img-container:hover .img {
    transform: scale(1.1);
}

/* Overlay pada foto */
.img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(37, 117, 252, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.img-overlay i {
    font-size: 30px;
    color: white;
}

.img-container:hover .img-overlay {
    opacity: 1;
}

/* Nama profil */
.profile-name {
    font-size: 2.2rem;
    color: #2575fc;
    margin-bottom: 10px;
    position: relative;
    animation: fadeDown 0.8s ease forwards;
    opacity: 0;
    transform: translateY(-20px);
}

@keyframes fadeDown {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Teks lokasi */
.text {
    font-size: 1rem;
    color: #666;
    margin-bottom: 20px;
    animation: fadeIn 1s ease 0.3s forwards;
    opacity: 0;
}

/* Garis pemisah */
.divider {
    width: 80px;
    height: 3px;
    background-color: #6a11cb;
    margin: 0 auto 25px;
    border-radius: 3px;
    animation: growWidth 1s ease 0.5s forwards;
    width: 0;
}

@keyframes growWidth {
    to {
        width: 80px;
    }
}

/* Deskripsi profil */
.profile-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 30px;
    padding: 0 10px;
    animation: fadeIn 1s ease 0.7s forwards;
    opacity: 0;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Label media sosial */
.social-label {
    font-size: 1rem;
    color: #444;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.social-label i {
    color: #2575fc;
}

/* Daftar media sosial */
.social-links {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 35px;
}

.social-links li a {
    display: inline-block;
    position: relative;
    transition: transform 0.3s ease;
}

.social-links li a:hover {
    transform: translateY(-5px) scale(1.1);
}

/* Tooltip untuk media sosial */
.social-tooltip {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    font-size: 0.75rem;
    padding: 5px 10px;
    border-radius: 5px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.social-links li a:hover .social-tooltip {
    opacity: 1;
}

/* Tombol hubungi */
.btn-contact {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(45deg, #6a11cb, #2575fc);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(106, 17, 203, 0.3);
}

.btn-contact:hover {
    background: linear-gradient(45deg, #2575fc, #6a11cb);
    box-shadow: 0 8px 20px rgba(106, 17, 203, 0.4);
    transform: translateY(-2px);
}

.btn-contact i {
    margin-right: 8px;
}

/* Footer halaman */
.page-footer {
    margin-top: 30px;
    color: white;
    font-size: 0.85rem;
    text-align: center;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

/* Responsif untuk hp kecil */
@media (max-width: 400px) {
    .main {
        padding: 30px 20px;
    }

    .profile-name {
        font-size: 1.8rem;
    }

    .social-links {
        gap: 15px;
    }
}
