/* ------------------------------ GLOBAL STYLE ------------------------------ */
:root {
    --ocean-blue: #1e3a8a; /* Biru laut dalam */
    --land-green: #16a34a; /* Hijau daratan */
    --ice-white: #f8fafc; /* Putih es */
    --accent-orange: #f97316; /* Oranye aksen */
    --text-dark: #1e293b; /* Abu gelap */
    --bg-gradient: linear-gradient(135deg, #0f172a, #1e293b); /* Gradien malam */
    --card-bg: rgba(255, 255, 255, 0.9); /* Putih transparan */
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.2); /* Bayangan dramatis */
}

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: var(--bg-gradient);
    color: var(--text-dark);
    overflow-x: hidden;
    position: relative;
}

/* Background pola peta dunia dengan daratan dan laut */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><defs><pattern id="world-map" x="0" y="0" width="50" height="50" patternUnits="userSpaceOnUse"><rect width="50" height="50" fill="%231e3a8a"/><path d="M10 10 L40 10 L40 40 L10 40 Z" fill="%2316a34a"/><circle cx="25" cy="25" r="5" fill="%23f8fafc"/></pattern></defs><rect width="200" height="200" fill="url(%23world-map)"/></svg>');
    opacity: 0.1;
    z-index: -1;
}

* {
    scroll-behavior: smooth;
}

/* ------------------------------ ANIMASI ------------------------------ */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.fade-in {
    animation: fadeIn 1.5s ease forwards;
}

/* ------------------------------ HEADER ------------------------------ */
.header {
    height: 100vh;
    background: var(--bg-gradient);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 30px;
    color: white;
    position: relative;
    overflow: hidden;
}

.globe-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="45" fill="none" stroke="%23f8fafc" stroke-width="2" opacity="0.2"/><path d="M50 5 A45 45 0 0 1 50 95 A45 45 0 0 1 50 5" fill="none" stroke="%2316a34a" stroke-width="1"/><path d="M5 50 A45 45 0 0 1 95 50 A45 45 0 0 1 5 50" fill="none" stroke="%2316a34a" stroke-width="1"/></svg>');
    opacity: 0.3;
    animation: float 10s ease-in-out infinite;
}

.floating-markers {
    position: absolute;
    width: 100%;
    height: 100%;
}

.marker {
    position: absolute;
    font-size: 2rem;
    animation: float 8s ease-in-out infinite;
    opacity: 0.7;
}

.marker1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.marker2 {
    top: 60%;
    right: 15%;
    animation-delay: 3s;
}

.marker3 {
    bottom: 20%;
    left: 70%;
    animation-delay: 6s;
}

.header h1 {
    font-size: 4rem;
    margin: 0;
    letter-spacing: 2px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.header p {
    font-size: 1.5rem;
    opacity: 0.9;
    z-index: 1;
}

/* BUTTON */
.btn-start {
    margin-top: 40px;
    padding: 16px 40px;
    background: var(--accent-orange);
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 50px;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
    z-index: 1;
    position: relative;
    overflow: hidden;
}

.btn-start::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.btn-start:hover::before {
    left: 100%;
}

.btn-start:hover {
    transform: translateY(-6px) scale(1.05);
    box-shadow: 0 12px 40px rgba(249, 115, 22, 0.4);
}

/* ------------------------------ SECTION KELOMPOK ------------------------------ */
#kelompok {
    width: 100%;
    padding: 80px 0;
    background: linear-gradient(to bottom, rgba(30, 58, 138, 0.1), rgba(22, 163, 74, 0.1));
    position: relative;
}

#kelompok::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M0 50 Q25 25 50 50 T100 50 L100 100 L0 100 Z" fill="%2316a34a" opacity="0.05"/></svg>');
}

.kelompok-card {
    width: 90%;
    margin: auto;
    background: var(--card-bg);
    backdrop-filter: blur(15px);
    padding: 40px;
    border-radius: 25px;
    box-shadow: var(--shadow);
    text-align: center;
    border: 3px solid var(--land-green);
    position: relative;
    z-index: 1;
}

.kelompok-card h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    font-weight: 800;
    color: var(--ocean-blue);
}

.anggota-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.anggota-item {
    background: linear-gradient(135deg, var(--ice-white), rgba(248, 250, 252, 0.8));
    padding: 16px 24px;
    border-radius: 18px;
    font-size: 1.1rem;
    color: var(--text-dark);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    font-weight: 600;
    border-left: 4px solid var(--accent-orange);
}

.anggota-item:hover {
    transform: translateY(-8px) rotate(1deg);
    background: linear-gradient(135deg, var(--accent-orange), var(--land-green));
    color: white;
    box-shadow: 0 8px 32px rgba(249, 115, 22, 0.3);
}

/* ------------------------------ MAP CARD ------------------------------ */
.card-map {
    width: 90%;
    margin: 80px auto;
    background: var(--card-bg);
    backdrop-filter: blur(15px);
    padding: 30px;
    border-radius: 25px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    border: 3px solid var(--ocean-blue);
}

.card-map::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(30, 58, 138, 0.1) 0%, transparent 70%);
    animation: float 15s ease-in-out infinite;
}

.card-map h2 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--ocean-blue);
    font-size: 2.2rem;
    font-weight: 800;
    position: relative;
    z-index: 1;
}

#map {
    height: 550px;
    width: 100%;
    border-radius: 18px;
    outline: 5px solid var(--land-green);
    position: relative;
    z-index: 1;
}

/* ------------------------------ GALLERY ------------------------------ */
/* #gallery {
    padding: 80px 0;
    background: linear-gradient(to top, rgba(30, 58, 138, 0.1), rgba(248, 250, 252, 0.1));
    position: relative;
}

#gallery::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><polygon points="0,0 50,100 100,0" fill="%23f8fafc" opacity="0.05"/></svg>');
}

#gallery h2 {
    text-align: center;
    margin-top: 0;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--ocean-blue);
    position: relative;
    z-index: 1;
}

.gallery */
/* ------------------------------ GALLERY ------------------------------ */
#gallery {
    padding: 80px 0;
    background: linear-gradient(to top, rgba(30, 58, 138, 0.1), rgba(248, 250, 252, 0.1));
    position: relative;
}

#gallery::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><polygon points="0,0 50,100 100,0" fill="%23f8fafc" opacity="0.05"/></svg>');
}

#gallery h2 {
    text-align: center;
    margin-top: 0;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--ocean-blue);
    position: relative;
    z-index: 1;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    width: 90%;
    margin: 40px auto 80px;
    position: relative;
    z-index: 1;
}

.gallery-card {
    background: var(--card-bg);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    box-shadow: var(--shadow);
    text-align: center;
    overflow: hidden;
    transition: all 0.5s ease;
    border: 2px solid var(--ice-white);
    position: relative;
}

.gallery-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.1), rgba(22, 163, 74, 0.1));
    opacity: 0;
    transition: opacity 0.5s ease;
}

.gallery-card:hover::before {
    opacity: 1;
}

.gallery-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-card:hover img {
    transform: scale(1.1);
}

.gallery-card h3 {
    padding: 20px;
    font-size: 1.3rem;
    color: var(--text-dark);
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.gallery-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    border-color: var(--accent-orange);
}

.gallery-card:hover h3 {
    color: var(--ocean-blue);
}

/* ------------------------------ MODAL ------------------------------ */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 10000;
}

.modal.show {
    visibility: visible;
    opacity: 1;
}

.modal-content {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    width: 90%;
    max-width: 700px;
    padding: 30px;
    border-radius: 25px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 3px solid var(--land-green);
    animation: fadeIn 0.6s ease;
}

.modal-content img {
    width: 100%;
    border-radius: 15px;
    margin-top: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.close {
    float: right;
    font-size: 32px;
    cursor: pointer;
    font-weight: bold;
    color: var(--ocean-blue);
    transition: color 0.3s ease;
}

.close:hover {
    color: var(--accent-orange);
}

/* ------------------------------ BACK TO TOP BUTTON ------------------------------ */
#toTop {
    position: fixed;
    bottom: 40px;
    right: 40px;
    background: var(--accent-orange);
    border: none;
    color: white;
    padding: 18px 20px;
    font-size: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
    z-index: 1000;
}

#toTop:hover {
    transform: translateY(-8px) scale(1.1);
    background: var(--ocean-blue);
    box-shadow: 0 10px 40px rgba(249, 115, 22, 0.4);
}

/* ------------------------------ RESPONSIVE DESIGN ------------------------------ */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2.5rem;
    }

    .header p {
        font-size: 1.2rem;
    }

    .btn-start {
        padding: 12px 30px;
        font-size: 1rem;
    }

    .kelompok-card h2 {
        font-size: 2rem;
    }

    .anggota-grid {
        grid-template-columns: 1fr;
    }

    .card-map h2 {
        font-size: 1.8rem;
    }

    #map {
        height: 400px;
    }

    .gallery-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .gallery-card img {
        height: 180px;
    }

    .modal-content {
        width: 95%;
        padding: 20px;
    }
}
