:root {
    --primary-blue: #00468c;
    --light-blue: #00a0e3;
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.2);
    --text-color: #ffffff;
    --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #000;
}

/* Background Image with Overlay */
.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 70, 140, 0.6)), url('../images/bg.jpeg');
    background-size: cover;
    background-position: center;
    z-index: -1;
    animation: backgroundPulse 15s infinite alternate ease-in-out;
}

@keyframes backgroundPulse {
    0% { transform: scale(1); filter: brightness(1); }
    100% { transform: scale(1.05); filter: brightness(1.1); }
}

.container {
    width: 100%;
    max-width: 550px;
    padding: 15px;
    z-index: 1;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Glassmorphism Card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px 30px;
    width: 100%;
    max-height: 95vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: center;
    color: var(--text-color);
    box-shadow: var(--shadow);
    animation: fadeIn 1s ease-out;
    overflow-y: auto;
    scrollbar-width: none;
}

.glass-card::-webkit-scrollbar {
    display: none;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Logo Styles */
.logo {
    margin-top: 10px;
    margin-bottom: 25px;
}

.logo img {
    width: 70px;
    height: auto;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

.logo h1 {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 4px;
    margin-bottom: 2px;
}

.logo .tagline {
    font-size: 0.8rem;
    letter-spacing: 5px;
    color: var(--light-blue);
    font-weight: 600;
}

/* Content Styles */
.maintenance-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--light-blue);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

.content h2 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 5px;
}

.content h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.content p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 30px;
    opacity: 0.9;
    font-weight: 300;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.social-links a {
    color: var(--text-color);
    font-size: 1.6rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    color: var(--light-blue);
    transform: translateY(-5px);
}

/* Store Buttons */
.store-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
}

.store-btn img {
    height: 40px;
    width: auto;
    transition: transform 0.3s ease;
}

.store-btn:hover img {
    transform: scale(1.05);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 20, 40, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    max-width: 450px;
    position: relative;
    padding: 40px 30px;
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 24px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    animation: modalFadeIn 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.map-modal-content {
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
}

.map-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 10px;
}

.map-item {
    background: rgba(255, 255, 255, 0.08) !important;
    border-radius: 15px;
    padding: 15px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.city-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--light-blue);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.pt-name {
    margin-top: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0.9;
    color: white;
}

.close-btn {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2000;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.close-btn:hover {
    background: var(--light-blue);
    transform: rotate(90deg) scale(1.1);
}

.modal h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: white;
}

#email-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#email-form input, #email-form textarea {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 12px;
    color: white;
    font-size: 0.9rem;
}

#email-form input::placeholder, #email-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.submit-btn {
    background: var(--light-blue);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: var(--primary-blue);
}

/* Footer Styles */
.footer {
    border-top: 1px solid var(--glass-border);
    padding-top: 15px;
    font-size: 0.75rem;
    opacity: 0.7;
}

/* Ice Tubes Animation */
#ice-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.ice-tube {
    position: absolute;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(2px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 4px;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
    animation: fall linear infinite;
}

@keyframes fall {
    0% { transform: translateY(-100px) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(110vh) rotate(360deg); opacity: 0; }
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* Responsive Design */
@media (max-width: 480px) {
    body {
        padding: 5px;
        align-items: center;
    }

    .glass-card {
        padding: 20px 15px;
        max-height: 98vh;
        border-radius: 20px;
    }
    
    .logo {
        margin-top: 10px;
        margin-bottom: 10px;
    }

    .logo img {
        width: 45px;
        margin-bottom: 5px;
    }

    .logo h1 {
        font-size: 1.3rem;
        letter-spacing: 2px;
    }

    .logo .tagline {
        font-size: 0.6rem;
        letter-spacing: 2px;
    }

    .maintenance-icon {
        font-size: 2rem;
        margin-bottom: 8px;
    }
    
    .content h2 {
        font-size: 1rem;
    }
    
    .content h3 {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }

    .content p {
        font-size: 0.8rem;
        margin-bottom: 15px;
        line-height: 1.4;
        max-width: 100%;
    }

    .social-links {
        gap: 12px;
        margin-bottom: 15px;
    }

    .social-links a {
        font-size: 1.2rem;
    }

    .store-buttons {
        gap: 10px;
        margin-bottom: 15px;
    }

    .store-btn img {
        height: 32px;
    }

    .footer {
        padding-top: 12px;
        font-size: 0.6rem;
    }

    /* Full-Screen Modal Overlay for Mobile */
    .modal {
        padding: 0;
        background: rgba(0, 10, 20, 0.4) !important; /* Latar belakang overlay lebih transparan */
    }

    .modal-content {
        width: 100% !important;
        height: 100% !important;
        max-width: none !important;
        max-height: none !important;
        border-radius: 0 !important;
        padding: 100px 20px 60px !important; /* Kembali ke padding yang lebih wajar */
        overflow-y: auto !important;
        background: rgba(255, 255, 255, 0.1) !important;
        backdrop-filter: blur(25px) !important;
        -webkit-backdrop-filter: blur(25px) !important;
        border: none !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important; /* INI KUNCINYA: Jangan center di mobile */
        align-items: stretch !important;
    }

    .close-btn {
        position: fixed !important;
        top: 25px !important;
        right: 20px !important;
        width: 50px !important;
        height: 50px !important;
        background: var(--light-blue) !important;
        border: 2px solid rgba(255, 255, 255, 0.4) !important;
        box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5) !important;
        z-index: 9999 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 50% !important;
        color: white !important;
        font-size: 32px !important;
    }

    .modal h3 {
        font-size: 1.8rem !important;
        margin-top: 20px !important; /* Memberikan jarak dari atas */
        margin-bottom: 30px !important;
        color: white !important;
        text-align: center !important;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
        font-weight: 700 !important;
    }

    .map-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 30px !important;
        margin-top: 0 !important;
        padding-bottom: 40px !important;
    }

    .map-item {
        background: rgba(255, 255, 255, 0.08) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        border-radius: 20px !important;
        padding: 12px !important;
    }

    .map-item iframe {
        height: 180px !important;
        border-radius: 15px !important;
    }
}
