* {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }
    
    body {
        font-family: 'Georgia', serif;
        background: linear-gradient(135deg, #8b7355 0%, #d4a574 50%, #8b7355 100%);
        min-height: 100vh;
        position: relative;
        overflow-x: hidden;
    }
    
    /* Efek tekstur kertas tua */
    body::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: 
            radial-gradient(circle at 20% 50%, rgba(218, 165, 32, 0.15) 0%, transparent 50%),
            radial-gradient(circle at 80% 80%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
            radial-gradient(circle at 40% 20%, rgba(184, 134, 11, 0.1) 0%, transparent 40%);
        pointer-events: none;
        animation: shimmer 8s ease-in-out infinite;
    }
    
    @keyframes shimmer {
        0%, 100% { opacity: 0.6; }
        50% { opacity: 1; }
    }
    
    /* Efek grain/noise untuk tekstur kertas */
    body::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="300" height="300"><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="4" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noise)" opacity="0.05"/></svg>');
        pointer-events: none;
        opacity: 0.4;
    }
    
    .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 40px 20px;
        position: relative;
        z-index: 1;
    }
    
    /* Navigation */
    .nav {
        display: flex;
        justify-content: center;
        gap: 10px;
        margin-bottom: 30px;
        flex-wrap: wrap;
        position: relative;
        z-index: 2;
    }
    
    .nav a {
        padding: 12px 30px;
        color: #5a4a2a;
        text-decoration: none;
        font-size: 1.1em;
        font-weight: 600;
        background: linear-gradient(135deg, rgba(245, 235, 220, 0.9), rgba(255, 248, 230, 0.9));
        border: 2px solid rgba(218, 165, 32, 0.4);
        border-radius: 50px;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
        position: relative;
        overflow: hidden;
    }
    
    .nav a::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.3), transparent);
        transition: left 0.5s ease;
    }
    
    .nav a:hover {
        background: linear-gradient(135deg, #d4a574, #c9a961);
        border-color: rgba(218, 165, 32, 0.8);
        transform: translateY(-2px);
        box-shadow: 
            0 6px 20px rgba(0, 0, 0, 0.25),
            0 0 20px rgba(218, 165, 32, 0.4);
        color: #3a2a1a;
    }
    
    .nav a:hover::before {
        left: 100%;
    }
    
    .nav a:active {
        transform: translateY(0);
    }
    
    /* Header Styling */
    .header {
        text-align: center;
        margin-bottom: 60px;
        padding: 40px 20px 0;
        background: linear-gradient(135deg, rgba(139, 115, 85, 0.3), rgba(212, 165, 116, 0.3));
        border-radius: 20px;
        border: 0px solid rgba(218, 165, 32, 0.3);
        box-shadow: 
            0 10px 40px rgba(0, 0, 0, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
        position: relative;
        overflow: hidden;
    }
    
    .header::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
        animation: rotateGold 20s linear infinite;
    }
    
    @keyframes rotateGold {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }
    
    .header h1 {
        font-size: 3em;
        color: #5a4a2a;
        text-shadow: 
            2px 2px 4px rgba(0, 0, 0, 0.3),
            0 0 20px rgba(218, 165, 32, 0.4);
        margin-bottom: 10px;
        letter-spacing: 3px;
        position: relative;
        z-index: 1;
    }
    
    .header p {
        font-size: 2.2em;
        color: #7a6a4a;
        font-style: normal;
        position: relative;
        z-index: 1;
        margin:28px auto 40px;
    }
    
    /* Leluhur Wrapper */
    .leluhur-wrapper {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 40px;
        margin-bottom: 30px;
        padding: 20px;
        justify-content: center;
        margin: 0 auto 60px auto;
        max-width: 80%;
    }
    
    /* Leluhur Box - Kartu untuk setiap leluhur */
    .leluhur-box {
        background: linear-gradient(135deg, rgba(245, 235, 220, 0.95), rgba(255, 248, 230, 0.95));
        border-radius: 20px;
        padding: 30px;
        text-align: center;
        box-shadow: 
            0 15px 35px rgba(0, 0, 0, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.5);
        border: 0px solid rgba(218, 165, 32, 0.4);
        position: relative;
        overflow: hidden;
        transition: all 0.4s ease;
    }
    
    .leluhur-box::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(255, 215, 0, 0.15) 0%, transparent 70%);
        transform: scale(0);
        transition: transform 0.6s ease;
    }
    
    .leluhur-box:hover {
        transform: translateY(-10px);
        box-shadow: 
            0 20px 50px rgba(0, 0, 0, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.7),
            0 0 30px rgba(218, 165, 32, 0.3);
        border-color: rgba(218, 165, 32, 0.7);
    }
    
    .leluhur-box:hover::before {
        transform: scale(1);
    }
    
    .leluhur-box img {
        width: 350px;
        height: 350px;
        border-radius: 50%;
        object-fit: cover;
        border: 5px solid rgba(218, 165, 32, 0.5);
        box-shadow: 
            0 8px 20px rgba(0, 0, 0, 0.3),
            0 0 30px rgba(218, 165, 32, 0.2);
        margin-bottom: 20px;
        position: relative;
        z-index: 1;
        transition: all 0.4s ease;
    }
    
    .leluhur-box:hover img {
        transform: scale(1.05);
        border-color: rgba(218, 165, 32, 0.8);
        box-shadow: 
            0 12px 30px rgba(0, 0, 0, 0.4),
            0 0 40px rgba(218, 165, 32, 0.4);
    }
    
    .leluhur-box h3 {
        font-size: 1.8em;
        color: #5a4a2a;
        margin-bottom: 10px;
        position: relative;
        z-index: 1;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    
    .leluhur-box p {
        font-size: 1.1em;
        color: #8b7355;
        font-style: italic;
        position: relative;
        z-index: 1;
    }
    
    /* Info Section */
    .leluhur-info {
        text-align: center;
        padding: 50px 30px;
        background: linear-gradient(135deg, rgba(139, 115, 85, 0.4), rgba(212, 165, 116, 0.4));
        border-radius: 20px;
        border: 0px solid rgba(218, 165, 32, 0.5);
        box-shadow: 
            0 15px 40px rgba(0, 0, 0, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
        margin-bottom: 40px;
        position: relative;
        overflow: hidden;
    }
    
    .leluhur-info::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: 
            linear-gradient(45deg, transparent 30%, rgba(255, 215, 0, 0.1) 50%, transparent 70%);
        animation: shine 3s ease-in-out infinite;
    }
    
    @keyframes shine {
        0%, 100% { transform: translateX(-100%); }
        50% { transform: translateX(100%); }
    }
    
    .leluhur-info h3 {
        font-size: 2em;
        color: #5a4a2a;
        margin-bottom: 25px;
        letter-spacing: 2px;
        text-shadow: 
            2px 2px 4px rgba(0, 0, 0, 0.2),
            0 0 15px rgba(218, 165, 32, 0.3);
        position: relative;
        z-index: 1;
    }
    
    .leluhur-info h5 {
        position: relative;
        z-index: 1;
    }
    
    .leluhur-info a {
        display: inline-block;
        padding: 15px 40px;
        background: linear-gradient(135deg, #d4a574, #c9a961);
        color: #3a2a1a;
        text-decoration: none;
        border-radius: 50px;
        font-size: 1.2em;
        font-weight: bold;
        letter-spacing: 2px;
        box-shadow: 
            0 8px 20px rgba(0, 0, 0, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.4);
        border: 2px solid rgba(218, 165, 32, 0.6);
        transition: all 0.3s ease;
    }
    
    .leluhur-info a:hover {
        background: linear-gradient(135deg, #e6b980, #dab86d);
        transform: translateY(-3px);
        box-shadow: 
            0 12px 30px rgba(0, 0, 0, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.6),
            0 0 25px rgba(218, 165, 32, 0.5);
        border-color: rgba(218, 165, 32, 0.9);
    }
    
    .leluhur-info a:active {
        transform: translateY(-1px);
    }
    
    /* Footer */
    .footer {
        text-align: center;
        padding: 30px;
        color: #fff;
        font-size: 1.15em;
        border-top: 2px solid rgba(218, 165, 32, 0.3);
        margin-top: 40px;
    }
    
    /* TREE CONTAINER */
.tree {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 40px;
    padding: 40px 20px;
    background: linear-gradient(135deg, rgba(255, 248, 230, 0.6), rgba(245, 235, 220, 0.6));
    border-radius: 20px;
    border: 0px solid rgba(218, 165, 32, 0.3);
    overflow-x: auto;
}

/* BARIS LELUHUR (Generasi Pertama) */
.leluhur-row {
    display: flex;
    justify-content: center;
    gap: 40px;
    position: relative;
    padding: 30px;
   /* background: linear-gradient(135deg, rgba(212, 165, 116, 0.2), rgba(201, 169, 97, 0.2)); */
    border-radius: 15px;
    border: 0px solid rgba(218, 165, 32, 0.4);
    /* box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3); */
}

.leluhur-row img {
    width: 240px;
    height: 240px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid rgba(218, 165, 32, 0.6);
    /* box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(218, 165, 32, 0.2); */
    transition: all 0.3s ease;
}

.leluhur-row img:hover {
    transform: scale(1.05);
    border-color: rgba(218, 165, 32, 0.9);
    box-shadow: 
        0 12px 30px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(218, 165, 32, 0.4);
}

.box-leluhur {
    background: linear-gradient(135deg, rgba(255, 248, 230, 0.95), rgba(245, 235, 220, 0.95));
    border: 2px solid rgba(218, 165, 32, 0.4);
    padding: 20px 25px;
    display: inline-block;
    font-weight: bold;
    position: relative;
    border-radius: 15px;
    min-width: 340px;
    max-width: 480px;
    text-align: center;
    /* box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.4); */
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.box-leluhur:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 12px 30px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        0 0 25px rgba(218, 165, 32, 0.3);
    border-color: rgba(218, 165, 32, 0.7);
}

.box-leluhur h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    color: #5a4a2a;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.box-leluhur span {
    font-size: 13px;
    color: #8b7355;
    font-style: italic;
    font-weight: normal;
}

/* GARIS VERTIKAL TURUN */
.line-vertical {
    width: 4px;
    height: 50px;
    background: linear-gradient(to bottom, #c9a961, #d4a574);
    margin: 1px auto;
    /* box-shadow: 
        0 2px 10px rgba(0, 0, 0, 0.2),
        0 0 15px rgba(218, 165, 32, 0.3); */
    border-radius: 2px;
}



/* BARIS Generasi */
.generasi-row {
    display: flex;
    justify-content: center;
    gap: 40px;
    position: relative;
    padding: 30px;
    /* background: linear-gradient(135deg, rgba(212, 165, 116, 0.2), rgba(201, 169, 97, 0.2)); */
    border-radius: 15px;
    border: 0px solid rgba(218, 165, 32, 0.4);
    /* box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3); */
}

.generasi-row img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid rgba(218, 165, 32, 0.6);
    /* box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(218, 165, 32, 0.2); */
    transition: all 0.3s ease;
}

.generasi-row img:hover {
    transform: scale(1.05);
    border-color: rgba(218, 165, 32, 0.9);
    /* box-shadow: 
        0 12px 30px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(218, 165, 32, 0.4); */
}

.generasi-row a {
    text-decoration: none;
    color: #333;
}

.generasi-row p {
    margin: 0 0 8px 0;
    font-size: 22px;
    color: #5a4a2a;
    /* text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); */
}

.generasi-row span {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: #5a4a2a;
    /* text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); */
}

.generasi-row::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 50px;
    right: 50px;
    height: 4px;
    background: linear-gradient(to right, #c9a961 0%, #d4a574 50%, #c9a961 100%);
    /* box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.3),
        0 0 15px rgba(218, 165, 32, 0.4); */
    border-radius: 2px;
    z-index: 1;
}

/* PERSON CARD */
.person {
    background: linear-gradient(135deg, rgba(255, 248, 230, 0.95), rgba(245, 235, 220, 0.95));
    border: 2px solid rgba(218, 165, 32, 0.4);
    padding: 20px 25px;
    display: inline-block;
    font-weight: bold;
    position: relative;
    border-radius: 15px;
    min-width: 140px;
    max-width: 180px;
    text-align: center;
    /* box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.4); */
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.person:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 12px 30px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        0 0 25px rgba(218, 165, 32, 0.3);
    border-color: rgba(218, 165, 32, 0.7);
}

.person h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    color: #5a4a2a;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.person span {
    font-size: 13px;
    color: #8b7355;
    font-style: italic;
    font-weight: normal;
}

/* GARIS KE TIAP ANAK */
.person.generasi::before {
    content: "";
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 35px;
    background: linear-gradient(to bottom, #c9a961, #d4a574);
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.2),
        0 0 10px rgba(218, 165, 32, 0.3);
    border-radius: 2px;
    z-index: 0;
    display: none;
}

/* PASANGAN - Love Icon */
.person.pasangan {
    position: relative;
}

.person.pasangan::before {
    content: "❤";
    position: absolute;
    top: -15px;
    right: -15px;
    font-size: 24px;
    color: #e53935;
    background: linear-gradient(135deg, rgba(255, 248, 230, 0.95), rgba(245, 235, 220, 0.95));
    border-radius: 50%;
    padding: 8px 10px;
    line-height: 1;
    border: 2px solid rgba(229, 57, 53, 0.3);
    box-shadow: 0 4px 15px rgba(229, 57, 53, 0.3);
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* GENDER COLORS */
.male {
    border-color: rgba(66, 133, 244, 0.4);
}

.male:hover {
    border-color: rgba(66, 133, 244, 0.7);
    box-shadow: 
        0 12px 30px rgba(0, 0, 0, 0.25),
        0 0 25px rgba(66, 133, 244, 0.3);
}

.female {
    border-color: rgba(234, 67, 124, 0.4);
}

.female:hover {
    border-color: rgba(234, 67, 124, 0.7);
    box-shadow: 
        0 12px 30px rgba(0, 0, 0, 0.25),
        0 0 25px rgba(234, 67, 124, 0.3);
}

/* AVATAR */
.avatar {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 15px;
    border: 4px solid rgba(218, 165, 32, 0.5);
    box-shadow: 
        0 6px 15px rgba(0, 0, 0, 0.25),
        0 0 20px rgba(218, 165, 32, 0.2);
    display: block;
}
    
    /* Responsive */
    @media (max-width: 768px) {
        .header h1 {
            font-size: 2em;
        }
        
        .nav {
            gap: 8px;
        }
        
        .nav a {
            padding: 10px 20px;
            font-size: 1em;
        }
        
        .leluhur-wrapper {
            grid-template-columns: 1fr;
            gap: 30px;
        }
        
        .leluhur-info h3 {
            font-size: 1.5em;
        }
    }
    
    /* Ornamen dekoratif di pojok */
    .corner-ornament {
        position: fixed;
        width: 150px;
        height: 150px;
        pointer-events: none;
        opacity: 0.15;
        z-index: 0;
    }
    
    .corner-ornament.top-left {
        top: 0;
        left: 0;
        background: radial-gradient(circle at 0% 0%, rgba(218, 165, 32, 0.6) 0%, transparent 70%);
    }
    
    .corner-ornament.top-right {
        top: 0;
        right: 0;
        background: radial-gradient(circle at 100% 0%, rgba(218, 165, 32, 0.6) 0%, transparent 70%);
    }
    
    .corner-ornament.bottom-left {
        bottom: 0;
        left: 0;
        background: radial-gradient(circle at 0% 100%, rgba(218, 165, 32, 0.6) 0%, transparent 70%);
    }
    
    .corner-ornament.bottom-right {
        bottom: 0;
        right: 0;
        background: radial-gradient(circle at 100% 100%, rgba(218, 165, 32, 0.6) 0%, transparent 70%);
    }