/* --- RESET --- */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body { 
    background-color: #1a1a1a; 
    min-height: 100vh; 
    font-family: sans-serif; 
    color: white; 
}

.services-section { 
    padding: 60px 20px; 
    max-width: 1100px; 
    margin: auto; 
    width: 100%; 
}

/* --- HEADER --- */
.header-container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    gap: 50px; 
    margin-bottom: 60px; 
    border-bottom: 1px solid #333; 
    padding-bottom: 40px; 
}

.right { flex: 2; }

.right h2 { 
    margin-bottom: 25px; 
    font-size: 28px; 
    background-color: #333; 
    padding: 10px 20px; 
    border-radius: 8px; 
    display: inline-block; 
}

.left { flex: 0 0 auto; text-align: right; }

.arrows { display: flex; gap: 15px; }

.arrows button { 
    background: transparent; 
    border: 1px solid #555; 
    color: white; 
    padding: 12px 20px; 
    cursor: pointer; 
    transition: 0.3s; 
}

.arrows button:hover { 
    background: white; 
    color: #1a1a1a; 
}

/* --- GRID GALLERY --- */
.gallery { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 20px; 
}

.item { 
    aspect-ratio: 1 / 1; 
    border: 1px solid #333; 
    display: flex; 
    flex-direction: column; 
    justify-content: flex-end; 
    align-items: center; 
    padding-bottom: 30px; 
    background-size: cover; 
    background-position: center; 
    position: relative; 
    border-radius: 12px; 
    overflow: hidden; 
    transition: all 0.3s ease;
}

.item::before {
    content: ""; 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    width: 100%; 
    height: 70%;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%); 
    z-index: 1;
}

.item:hover { 
    transform: translateY(-4px); 
    border-color: #777; 
    box-shadow: 0 10px 20px rgba(0,0,0,0.4); 
}

/* --- TEXT & DOWNLOAD BUTTON --- */
.item h5 { 
    position: relative; 
    z-index: 2; 
    font-size: 1rem; 
    margin-bottom: 10px; 
}

.btn-download { 
    padding: 8px 16px; 
    border: 1px solid rgba(255, 255, 255, 0.3); 
    color: white; 
    text-decoration: none; 
    border-radius: 50px; 
    font-size: 0.7rem; 
    position: relative; 
    z-index: 2; 
    background: rgba(255, 255, 255, 0.1); 
    backdrop-filter: blur(4px); 
    transition: 0.3s;
    margin-bottom: 5px;
}

.btn-download:hover { 
    background: white; 
    color: #1a1a1a; 
    border-color: white; 
}

/* Tombol berubah warna saat siap diunduh */
.ready-to-download {
    background-color: #28a745 !important;
    border-color: #28a745 !important;
    transform: scale(1.05);
    transition: all 0.3s ease;
}

.page { display: none; } 
.page.active { display: block; }

/* --- STATUS DOWNLOAD --- */
.status-preparing {
    color: white !important;
    font-size: 0.8rem !important;
    margin-top: 10px !important;
    display: block;
    text-align: center;
    font-weight: normal;
    position: relative !important; 
    z-index: 3 !important; 
    opacity: 1 !important;
}

/* --- RUNNING TEXT --- */
.running-text-container { 
    width: 100%; 
    overflow: hidden; 
    background-color: #333; 
    padding: 10px 0; 
    margin-top: 20px; 
}

.running-text { 
    display: inline-flex; 
    white-space: nowrap; 
    color: #fff; 
    font-weight: bold; 
    animation: scroll-left 14s linear infinite; 
    min-width: 100%; 
}

.running-text span { 
    display: inline-block; 
    padding-right: 50px; 
}

@keyframes scroll-left { 
    from { transform: translateX(0); } 
    to { transform: translateX(-50%); } 
}

/* --- FOOTER --- */
.site-footer { 
    border-top: 1px solid #333; 
    padding: 40px 20px; 
    margin-top: 0; 
    color: #888; 
    text-align: center; 
}

.footer-content { 
    max-width: 1100px; 
    margin: auto; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    font-size: 0.9rem; 
}

.footer-links a { 
    color: #888; 
    text-decoration: none; 
    margin-left: 20px; 
}

/* --- RESPONSIF --- */
@media (max-width: 768px) {
    .header-container { flex-direction: column; text-align: left; gap: 20px; }
    .left { order: 2; width: 100%; display: flex; justify-content: flex-start; margin-top: 25px; }
    .gallery { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .item { padding-bottom: 20px; }
    .item h5 { font-size: 0.9rem; }
    .btn-download { font-size: 0.65rem; padding: 6px 14px; }
    .footer-content { flex-direction: column; gap: 15px; }
}

/* --- TIKTOK WARNING COMPONENT (Isolated) --- */
.tiktok-warning {
    width: 90%;             /* Fleksibel mengikuti lebar layar */
    max-width: 600px;       /* Tidak akan terlalu lebar di desktop */
    margin: 20px auto;      /* Center secara horizontal */
    padding: 20px;
    background-color: #2d2d2d; /* Warna gelap agar senada dengan web Anda */
    border: 2px solid #ff4757; /* Border merah sebagai penanda */
    border-radius: 12px;
    text-align: center;
    color: #ffffff;
    font-family: sans-serif;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.tiktok-warning p {
    margin-bottom: 10px;
    font-size: 0.95rem;
    line-height: 1.4;
}

.tiktok-warning b {
    color: #ff4757;         /* Warna aksen agar pesan penting terlihat */
}

.copy-link-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background: #ff4757;    /* Warna merah yang kontras */
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    font-size: 0.9rem;
    transition: 0.3s;
    cursor: pointer;
}

.copy-link-btn:hover {
    background: #ff6b78;
    transform: scale(1.05);
}

/* Penyesuaian khusus mobile agar tidak terlalu rapat */
@media (max-width: 480px) {
    .tiktok-warning {
        padding: 15px;
        font-size: 0.85rem;
    }
}