/* Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body, html {
    height: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: url('bg.jpg') no-repeat center center fixed;
    background-size: cover;
    color: #e0e0e0;
    overflow-y: scroll;
}

.overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0,0,0,0.65);
    z-index: -1;
}

header {
    text-align: center;
    padding: 2.5rem 1rem;
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: 5px;
    color: #00ff88;
    text-shadow: 0 0 10px #00ff88;
    user-select: none;
}

main {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
    flex-wrap: wrap;
    padding: 0 1rem;
}

.btn {
    background: linear-gradient(135deg, #00ff88, #009955);
    border: none;
    color: #111;
    font-weight: 700;
    font-size: 1.5rem;
    padding: 1.5rem 3.5rem;
    cursor: pointer;
    box-shadow: 0 6px 15px rgba(0, 255, 136, 0.5);
    transition: all 0.3s ease;
    min-width: 280px;
    min-height: 70px;
    text-align: center;
    user-select: none;

    display: inline-flex;
    align-items: center;
    gap: 1rem;

    border-radius: 12px;
}

.btn-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: drop-shadow(0 0 1px rgba(0,0,0,0.5));
    user-select: none;
}

.btn:hover,
.btn:focus {
    background: linear-gradient(135deg, #00cc6a, #007744);
    color: #e0ffe0;
    outline: none;
    box-shadow: 0 8px 20px rgba(0, 204, 106, 0.8);
}

.btn-primary {
    background: #00ff88;
    color: #111;
    box-shadow: 0 6px 15px rgba(0, 255, 136, 0.7);
    border-radius: 12px;
    padding: 1.2rem 3rem;
    font-size: 1.3rem;
}

.btn-primary:hover,
.btn-primary:focus {
    background: #00cc6a;
    color: #e0ffe0;
    box-shadow: 0 8px 20px rgba(0, 204, 106, 0.9);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    inset: 0;
    background-color: rgba(0,0,0,0.85);
    justify-content: center;
    align-items: center;
    padding: 1rem;
    overflow-y: auto;
}

.modal-content {
    background-color: #121212;
    border-radius: 15px;
    box-shadow: 0 0 30px #00ff88;
    max-width: 900px;
    width: 100%;
    color: #00ff88;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    overflow: hidden;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem 1rem 2rem;
    border-bottom: 2px solid #00ff88;
}

.modal-header h2 {
    font-weight: 900;
    font-size: 1.8rem;
    user-select: none;
}

.close-btn {
    background: transparent;
    border: none;
    font-size: 2.5rem;
    color: #00ff88;
    cursor: pointer;
    transition: color 0.3s ease;
    user-select: none;
}

.close-btn:hover,
.close-btn:focus {
    color: #00cc6a;
    outline: none;
}

.modal-body {
    padding: 1rem 2rem 2rem 2rem;
    overflow-y: auto;
    flex-grow: 1;
    user-select: text;
}

/* Gallery modal */
.gallery-modal-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#mainPhoto {
    max-width: 100%;
    max-height: 65vh;
    border-radius: 12px;
    box-shadow: 0 0 25px #00ff88;
    object-fit: contain;
}

.gallery-thumbs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 0.5rem;
}

.gallery-thumbs img {
    width: 90px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    box-shadow: 0 0 10px transparent;
    transition: all 0.25s ease;
}

.gallery-thumbs img:hover,
.gallery-thumbs img:focus {
    border-color: #00ff88;
    box-shadow: 0 0 15px #00ff88;
    outline: none;
}

/* Biodata modal */
.biodata-modal-content {
    max-width: 850px;
    overflow-y: auto;
}

.biodata-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.group-title {
    font-size: 1.6rem;
    font-weight: 900;
    border-bottom: 3px solid #00ff88;
    padding-bottom: 0.3rem;
    user-select: none;
}

.person {
    display: flex;
    align-items: center;
    gap: 1.8rem;
    background: rgba(0, 255, 136, 0.1);
    border-radius: 15px;
    padding: 1rem 1.5rem;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
    transition: background 0.3s ease;
}

.person:hover,
.person:focus-within {
    background: rgba(0, 255, 136, 0.2);
}

.person img {
    width: 130px;
    height: 130px;
    border-radius: 15px;
    object-fit: cover;
    border: 3px solid #00ff88;
    box-shadow: 0 0 20px #00ff88;
    user-select: none;
}

.person-info {
    flex: 1;
    color: #b0f7c1;
}

.person-info h4 {
    font-size: 1.4rem;
    font-weight: 900;
    margin-bottom: 0.3rem;
    color: #00ff88;
    user-select: text;
}

.person-info p {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
    user-select: text;
}

/* Responsive */
@media (max-width: 720px) {
    main {
        flex-direction: column;
        align-items: center;
    }
    .person {
        flex-direction: column;
        text-align: center;
    }
    .person img {
        width: 110px;
        height: 110px;
    }
    .person-info h4 {
        font-size: 1.2rem;
    }
    .person-info p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .btn {
        min-width: 220px;
        min-height: 60px;
        font-size: 1.3rem;
        padding: 1.2rem 2.5rem;
    }
    .btn-logo {
        width: 28px;
        height: 28px;
    }
}
