:root {
    --color-dark-red: #8B0000;
    --color-black: #000000;
    --color-gold: #ffffffff;
    --color-link-bg: rgba(74, 74, 74, 0.2);
    --color-button-bg: #00ee47ff;
    --color-button-hover: #00ad34ff;
}

/* Memastikan latar belakang penuh halaman berwarna putih */
html {
    background-color: #fff; 
}

/* Membatasi lebar konten utama, menempatkannya di tengah, dan menerapkan gradien latar belakang */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(to bottom, #b73400, #874b00);
    color: #000;
    margin: 0 auto; /* Menengahkan konten secara horizontal */
    padding: 0;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 500px; /* Membatasi lebar maksimum seperti perangkat mobile */
}

/* Main Container */
.container {
    width: 100%;
    max-width: 900px;
    padding: 0 20px;
    box-sizing: border-box;
}

.section {
    padding: 40px 25px;
}

h1, h2, h3 {
    color: var(--color-gold);
    text-align: center;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    margin-top: 10px;
    margin-bottom: -10px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Header */
.header {
    width: 100%;
    background: #ff0000;
    padding: 15px 0px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid var(--color-gold);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.header .logo {
    flex-grow: 1; /* Memberi ruang untuk logo di tengah */
    text-align: center;
    font-size: 28px;
    font-weight: bold;
    color: #fff;
    text-shadow: 2px 2px var(--color-black);
    text-transform: uppercase;
}

.header .logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 15px;
    margin-left: 10px;
    border-radius: 5px;
}

.header .logo-icon {
    color: var(--color-gold);
}

.info-button {
    color: var(--color-gold);
    font-size: 24px;
    margin-right: 10px;
    cursor: pointer;
    transition: color 0.3s;
}

.info-button:hover {
    color: #fff;
}

/* Panel Deskripsi */
.description-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 400px;
    height: 100%;
    background: #a5a5a5;
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.5s ease-in-out;
    padding: 20px;
    box-sizing: border-box;
    box-shadow: -5px 0 15px rgba(0,0,0,0.5);
    overflow-y: auto;
}

.description-panel.active {
    transform: translateX(0);
}

.description-panel .close-button {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s;
}

.description-panel .close-button:hover {
    color: var(--color-gold);
}

.description-panel img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 20px;
}

.description-panel p {
    font-size: 1em;
    text-align: justify;
}

.description-panel .cuak-button {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: var(--color-gold);
    color: var(--color-black);
    font-weight: bold;
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
    margin-top: 20px;
    transition: transform 0.3s;
}

.description-panel .cuak-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

/* Hero Section with Karosel */
.hero {
    padding: 0;
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 200px; /* Tinggi karosel yang responsif */
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    width: 300%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    width: calc(100% / 3);
    flex-shrink: 0;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carousel-button {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.2); /* Transparan saat tidak disentuh */
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
    font-size: 18px;
    transition: background 0.3s, opacity 0.3s;
}

.carousel-button:hover {
    background: rgba(0, 0, 0, 0.8); /* Gelap saat disentuh */
}

.carousel-button.prev {
    left: 10px;
}

.carousel-button.next {
    right: 10px;
}

/* Information - Marquee */
.marquee-section {
    width: 100%;
    background-color: rgba(0,0,0,0.5);
    padding: 2px 0;
    border-top: 2px solid var(--color-gold);
    border-bottom: 2px solid var(--color-gold);
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
    box-sizing: border-box;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.marquee-icon {
    color: var(--color-gold);
    margin: 0 10px;
    font-size: 1.2em;
    flex-shrink: 0; /* Mencegah ikon ikut bergeser */
}

.marquee-text-container {
    flex-grow: 1;
    white-space: nowrap;
    overflow: hidden;
}

.marquee-text {
    display: inline-block;
    color: var(--color-gold);
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    padding-left: 100%;
    animation: marquee 25s linear infinite;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* Link Section */
.link-section h2 {
    margin-bottom: 20px;
}

.link-list {
    list-style: none;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.link-item {
    display: flex;
    align-items: center;
    background: linear-gradient(to right, rgb(17 17 17 / 59%), rgba(0, 0, 0, 0.2));
    border-radius: 10px;
    padding: 12px 20px; /* Menambahkan padding horizontal */
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    border-left: 3px solid var(--color-gold);
}

.link-item:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.latency-info {
    background-color: var(--color-gold);
    color: var(--color-black);
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.8em;
    margin-right: 15px;
    min-width: 60px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    flex-shrink: 0;
}

.link-url {
    flex-grow: 1;
    font-weight: bold;
    font-size: 1.1em;
    color: #fff;
    word-break: break-all;
    margin-right: 10px;
}

.click-button {
    padding: 8px 15px;
    background-color: var(--color-button-bg);
    color: #1f1f1fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: background-color 0.3s, transform 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    flex-shrink: 0;
}

.click-button:hover {
    background-color: var(--color-button-hover);
    transform: translateY(-2px);
}

.click-button .fa-arrow-up {
    transform: rotate(45deg);
}

/* Customer Service Button */
.cs-container {
    text-align: center;
    margin: 40px auto 10px;
}

.cs-button {
    display: inline-block;
    padding: 10px 15px;
    background-color: var(--color-button-bg);
    color: var(--color-black);
    border-radius: 12px;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
    animation: zoomInOut 2s ease-in-out infinite; /* Animasi Zoom */
}

.cs-button:hover {
    animation-play-state: paused; /* Berhenti saat di-hover */
}

@keyframes zoomInOut {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.cs-info-text {
    font-size: 14px;
    color: #fff;
    margin-top: 10px;
    font-style: italic;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}
/* Footer */
.footer {
    width: 100%;
    background-color: #0d022b5e;
    text-align: center;
    padding: 20px 0;
    border-top: 3px solid var(--color-gold);
    font-size: 14px;
    color: #ccc;
    margin-top: 20px;
}

.footer p {
    margin: 0;
}

/* Responsifitas */
@media (max-width: 768px) {
    .container {
        padding: 0 0px;
    }

    .header .logo {
        font-size: 20px;
    }

    .marquee-text {
        animation: marquee 20s linear infinite;
    }

    .carousel-container, .hero {
        height: 125px;
    }
}