/* --- 1. RESET & BASE --- */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', sans-serif; }
:root { 
    --bg-color: #c2b4a3;
    --accent-color: #685644;
    --border-glow: #ffffff;
    --glow-color: #ffffff;
    --section-bg: #685644;
    --frame-bg: #b5a796;
}
body { background-color: var(--bg-color); color: var(--accent-color); min-height: 100vh; display: flex; flex-direction: column; }

/* --- 2. HOME PAGE LAYOUT --- */
.header-bg { position: absolute; top: 0; left: 0; width: 100%; height: 320px; background: linear-gradient(to bottom, rgba(194, 180, 163, 0) 50%, var(--bg-color) 100%), url('images/h1.webp') center top/cover no-repeat; z-index: 1; }
.container { width: 100%; max-width: 400px; margin: 180px auto 40px auto; padding: 0 20px; z-index: 2; position: relative; flex: 1; display: flex; flex-direction: column; }
.profile-section { width: 100%; text-align: center; }
.avatar-wrapper { width: 110px; height: 110px; margin: 0 auto 20px auto; border-radius: 50%; border: 3px solid #fff; overflow: hidden; animation: avatarPulse 2s infinite ease-in-out; }
.profile-avatar { width: 100%; height: 100%; object-fit: cover; }
.profile-name {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 8px;
    color: #33291e;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.profile-desc { font-size: 15px; font-style: italic; color: var(--accent-color); margin-bottom: 27px; }
.social-links-wrapper { display: flex; flex-direction: column; gap: 15px; width: 100%; margin-bottom: 5px; }

.btn-link {
    background-color: var(--accent-color);
    border: 1.6px solid var(--border-glow);
    padding: 16px;
    border-radius: 20px;
    text-decoration: none;
    color: #ffffff;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.4s ease;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.2), 0 4px 10px rgba(0,0,0,0.1);
    animation: framePulse 3s infinite ease-in-out;
}
.btn-link:hover {
    transform: translateY(-5px);
    background-color: #786450;
    border-color: #f8f8f8;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.35), 0 8px 20px rgba(0,0,0,0.2);
    animation: none;
}

/* --- 3. FOOTER --- */
.bio-footer { text-align: center; padding: 10px 0; font-size: 13px; color: var(--accent-color); margin-top: 25px; }
.bio-footer a { color: var(--accent-color); text-decoration: none; font-weight: bold; }
.bio-footer a:hover { text-decoration: underline; }

/* --- 4. GALLERY PAGE --- */
.galeri-page { width: 100%; max-width: 480px; margin: 20px auto; padding: 0 20px; }

.galeri-back { display: block; margin-bottom: 20px; color: var(--accent-color); font-weight: bold; text-decoration: none; font-size: 16px; }
.galeri-header {
    text-align: center;
    margin-bottom: 30px;
    margin-top: 0;
    position: relative;
    padding-top: 10px; /* sebelumnya 40px */
}

.avatar-wrapper {
    width: 120px;
    height: 120px;
    margin: -15px auto 20px auto;
    border-radius: 50%;
    border: 3px solid #fff;
    overflow: hidden;
    animation: avatarPulse 2s infinite ease-in-out;
}
.profile-avatar { width: 100%; height: 100%; object-fit: cover; }

.title-line-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 15px;
    margin-bottom: 5px;
}
.title-line {
    flex: 1;
    max-width: 100px;
    height: 1px;
    background: linear-gradient(to right, transparent, #887a68, transparent);
}
.galeri-header h1 { font-size: 24px; margin: 0; color: #33291e; font-family: 'Montserrat', sans-serif; font-weight: 700; }
.galeri-header h2 { font-size: 14px; font-weight: 400; color: var(--accent-color); opacity: 0.8; margin-top: 8px; }

/* ✅ WIDGET BERWARNA: Lokasi Merah, WA Hijau */
.header-widgets {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 18px;
    margin-bottom: -14px;
}
.widget-item {
    display: flex;
    align-items: center;
    gap: 8px;
}
.widget-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--accent-color); /* Latar bulatan tetap gelap */
    font-size: 16px;
    text-decoration: none;
    transition: 0.3s;
}
/* 🔴 Ikon Lokasi: Merah standar peta */
.widget-lokasi { color: #E53935; }
.widget-lokasi:hover { background: #574839; color: #ff6666; }
/* 🟢 Ikon WA: Hijau asli WhatsApp */
.widget-wa,
.widget-wa i {
    color: #25D366 !important;
}
.widget-wa:hover { background: #574839; color: #69f099; }

.widget-btn i{
    color:#ffffff;
}
.widget-text {
    font-size: 15px;
    color: var(--accent-color);
    white-space: nowrap;
}
.widget-divider {
    width: 1px;
    height: 18px;
    background-color: var(--accent-color);
    opacity: 0.6;
}

.galeri-section { 
    width: 100%; padding: 20px; 
    border: 2px solid var(--border-glow);
    border-radius: 20px; margin-bottom: 25px; 
    background: var(--section-bg);
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.2);
    animation: framePulse 3s infinite ease-in-out; 
}
.galeri-section h3 { font-size: 19px; color: #fff; margin-bottom: 15px; text-align: center; font-family: 'Montserrat', sans-serif; font-weight: 600; }
.album-desc { font-size: 14px; color: #fff; margin-bottom: 25px; font-style: italic; opacity: 0.9; text-align: center; }

.swipe-note {
    font-size: 13px;
    color: #fff;
    opacity: 0.6;
    margin-bottom: -5px;
    font-style: italic;
    text-align: center;
}

.galeri-scroll { display: flex; gap: 15px; overflow-x: auto; padding: 10px 0; scrollbar-width: none; }
.galeri-scroll::-webkit-scrollbar { display: none; }

.foto-item {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    gap: 10px;
    padding: 12px;
    border: 2px solid var(--border-glow);
    border-radius: 16px;
    background: var(--frame-bg);
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.2);
    animation: framePulse 3s infinite ease-in-out;
}
.galeri-scroll img { 
    border-radius: 12px; 
    object-fit: cover; 
    border: 1px solid rgba(255,255,255,0.3); 
    box-shadow: 0 4px 10px rgba(0,0,0,0.15); 
}
.portrait-img { width: 240px; height: 400px; }
.landscape-img { width: 220px; height: 150px; }

.foto-link-btn {
    text-align: center;
    padding: 9px 12px;
    background-color: var(--accent-color);
    border: 1.6px solid var(--border-glow);
    border-radius: 12px;
    color: #fff;
    font-size: 13px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.15);
}
.foto-link-btn:hover {
    background-color: #786450;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

/* --- ANIMATIONS --- */
@keyframes avatarPulse { 
    0%, 100% { box-shadow: 0 0 6px rgba(255, 255, 255, 0.25); } 
    50% { box-shadow: 0 0 16px rgba(255, 255, 255, 0.6); } 
}
@keyframes framePulse { 
    0%, 100% { 
        border-color: var(--border-glow); 
        box-shadow: 0 0 4px rgba(255, 255, 255, 0.2); 
    } 
    50% { 
        border-color: #f0f0f0; 
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.3); 
    } 
}
