:root {
    --primary: #00ff00;
    --bg: #e377f1;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    background-color: rgb(17, 17, 17);
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 5%;
    background-color: rgba(1, 1, 1, 0.8);
    border-bottom: 1px solid #553d24;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
}

/* Logo */
header .logo-container {
    display: flex;
    justify-content: flex-start; /* Menjaga logo tetap di kiri */
    align-items: center;
}

header .logo-container .logo {
    width: 100%; /* Ukuran responsif */
    max-width: 250px; /* Maksimal lebar logo */
    height: auto; 
}

/* Tombol Back */
header .back-button {
    position: absolute;
    right: 2rem; /* Posisi sedikit ke tengah */
    display: none;
    cursor: pointer;
    color: rgb(255, 255, 255);
    font-size: 1.4rem;
}

header .back-button:hover {
    color: #00ff00;
}

header .back-button.visible {
    display: block;
}

/* Menu */
.menu {
    margin: 0 auto; /* Memusatkan menu di tengah */
}

.menu ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.menu ul li a {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-style: normal;
    text-decoration: none;
    color: rgb(250, 246, 246);
    font-size: 1.7rem;
    transition: color 0.2s;
}

.menu ul li a:hover {
    color: #00ff00; /* Hijau stabilo */
}

/* Halaman Utama (Slider Produk) */
.main-section {
    height: 100vh;
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    margin-top: 80px; /* Memberikan ruang untuk header tetap */
}

.main-section h2 { 
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-style: normal;
    font-size: 2rem;
    margin-bottom: 2.5rem; /* Jarak antara judul dan elemen di bawahnya */
    color: var(--bg)
}

.main-section h2 span {
    color: white;
}

.main-section h3 {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-style: italic;
    color: goldenrod;
    font-size: 2rem;
    margin-bottom: 1rem; /* Jarak antara judul dan elemen di bawahnya */
}

.main-section p {
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-style: normal;
    color: rgb(255, 246, 246);
    font-size: 1.7rem;
    margin-bottom: 1rem; /* Jarak antara judul dan elemen di bawahnya */
}

.slider {
    display: flex;
    overflow: hidden;
    width: 100%;
    max-width: 1080px;
    position: relative;
}

.slide {
    min-width: 100%;
    text-align: center;
}

.slide img {
    margin-bottom: 1rem;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.cta-btn {
    background-color: rgb(0, 0, 0);
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    cursor: pointer;
    transition: color 0.3s;
    margin-top: 1rem;
}

.cta-btn:hover {
    color: gold; /* Teks berubah menjadi emas */
}

/* Konten Tentang Kami (Konten Tersembunyi)*/
.hidden-page {
    display: none; /* Tersembunyi secara default */
    text-align: center;
    background-color: rgba(0, 0, 0, 0.7); /* Latar belakang transparan */
    padding: 8rem;
    border-radius: 10px;
    color: #f2f2f2;
}

.hidden-page h1 {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-style: italic;
    color: rgb(255, 255, 255);
    font-size: 2.7rem;
    margin-bottom: 1rem;
}

.hidden-page h1 span {
    color: var(--bg);
}

/* Judul */
.hidden-page h2 {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-style: normal;
    color: rgb(255, 255, 255);
    font-size: 2.1rem;
    margin-bottom: 1rem;
    padding: 0.4rem;
}

/* Paragraf */
.hidden-page p {
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-style: normal;
    color: rgb(255, 255, 255);
    font-size: 1.6rem;
    margin-bottom: 1rem;
    padding: 0.4rem;
    line-height: 1.3;
}

/* Footer */
.footer-section {
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-style: italic;
    text-align: center;
    padding: 1rem;
    background-color: rgba(0, 0, 0, 0.8); /* Warna latar belakang footer */
    color: #fff;
    font-size: 1.5rem;
    display: none; /* Tersembunyi secara default */
}

.footer-section .hidden-footer {
    display: block; /* Tampilkan hanya di halaman Tentang Kami */
}

.footer-section a {
    color: #ffbf00;
    text-decoration: none;
}

.footer-section a:hover {
    text-decoration: underline;
}

/* Floating CTA */
.floating-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4.7rem; /* Lebih rendah dari sebelumnya */
    background-color: rgb(54, 54, 54);
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    animation: pulse 3s infinite;
}

.floating-cta .cta-text {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-style: normal;
    color: rgb(197, 194, 0);
    background-color: rgb(3, 3, 3);
    padding: 0.7rem;
    font-size: 1.3rem;
    width: 50%;
    text-align: center;
    border-radius: 30px;
    position: relative;
}

.floating-cta .cta-text::before,
.floating-cta .cta-text::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border-radius: 30px;
    background: radial-gradient(circle, transparent, gold, rgb(8, 8, 8));
    opacity: 0.8;
    filter: blur(6px);
    z-index: -1;
}

@keyframes pulse {
    25%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Responsif */
@media (max-width: 1024px) {
    .menu ul {
        gap: 2rem;
    }

    .menu ul li a {
        font-size: 1.2rem;
    }

    header .logo-container .logo {
        width: 70%; /* Menyesuaikan ukuran logo pada layar besar */
    }

    .main-section {
        height: 98vh;
        display: flex;
        width: 100%;
        align-items: center;
        padding: 1rem;
        margin-top: 100px; /* Memberikan ruang untuk header tetap */
    }
    
    .main-section h2 { 
        font-family: "Poppins", sans-serif;
        font-size: 2.2rem;
        margin-bottom: 1rem; /* Jarak antara judul dan elemen di bawahnya */
    }
    
    .main-section h3 {
        font-size: 1.6rem;
        margin-bottom: 1rem; /* Jarak antara judul dan elemen di bawahnya */
    }
    
    .main-section p {
        font-size: 1.5rem;
        margin-bottom: 1rem; /* Jarak antara judul dan elemen di bawahnya */
    }
    
    .slider {
        display: flex;
        overflow: hidden;
        width: 100%;
        max-width: 1080px;
        position: center;
    }
    
    .slide {
        min-width: 100%;
        text-align: center;
    }
    
    .slide img {
        margin-bottom: 1rem;
        width: 100%;
        height: auto;
        object-fit: cover;
        position: center;
    }

    .product .price {
        font-size: 1.3rem;
    }

    .hidden-page {
        padding: 7rem;
    }
    
    .hidden-page h1 {
        font-size: 2.7rem;
        margin-bottom: 5px
    }
    
    /* Judul */
    .hidden-page h2 {
        font-size: 1.7rem;
        margin-bottom: 5px;
        padding: 5px;
    }
    
    /* Paragraf */
    .hidden-page p {
        font-size: 1.3rem;
        line-height: 1.3;
    }
    
    /* Footer */
    .footer-section {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: row; /* Tidak mengubah posisi menu dan logo */
        padding: 1rem;
    }

    header .logo-container .logo {
        width: 65%; /* Ukuran logo yang lebih kecil di tablet */
    }

    .menu ul {
        gap: 2rem;
    }

    .menu ul li a {
        font-size: 1.2rem;
    }

    .main-section {
        height: max-content;
        display: flex;
        width: 100%;
        align-items: center;
        padding: 1rem;
        margin-top: 100px; /* Memberikan ruang untuk header tetap */
    }
    
    .main-section h2 { 
        font-size: 2rem;
        margin-bottom: 1rem; /* Jarak antara judul dan elemen di bawahnya */
    }
    
    .main-section h3 {
        font-size: 1.7rem;
        margin-bottom: 1rem; /* Jarak antara judul dan elemen di bawahnya */
    }
    
    .main-section p {
        font-style: normal;
        color: rgb(255, 246, 246);
        font-size: 1.3rem;
        margin-bottom: 1rem; /* Jarak antara judul dan elemen di bawahnya */
    }

    .slider {
        max-width: 100%;
    }

    .floating-cta {
        height: 4rem;
    }

    .floating-cta .cta-text {
        font-size: 1.1rem;
    }

    .cta-btn {
        width: 100%; /* Tombol CTA penuh pada layar kecil */
    }

    .product img {
        max-width: 90%; /* Gambar produk menyesuaikan pada layar kecil */
    }

    .product h3 {
        font-size: 1.4rem;
    }

    .product .price {
        font-size: 1rem;
    }

    .hidden-page {
        padding: 7rem;
    }
    
    .hidden-page h1 {
        font-size: 2.4rem;
        margin-bottom: 5px;
    }
    
    /* Judul */
    .hidden-page h2 {
        font-size: 1.5rem;
    }
    
    /* Paragraf */
    .hidden-page p {
        font-size: 1.2rem;
        line-height: 1.3;
    }
    
    /* Footer */
    .footer-section {
        font-size: 1.1rem;
    }
    
}

@media (max-width: 480px) {
    header .logo-container .logo {
        width: 75%; /* Logo lebih kecil pada smartphone */
    }

    header .menu ul {
        gap: 2rem;
    }

    header .menu ul li a {
        font-size: 1rem;
    }

    .cta-btn {
        padding: 0.8rem 1.2rem;
    }

    .main-section {
        height: max-content;
        display: flex;
        width: 100%;
        align-items: center;
        padding: 1rem;
        margin-top: 80px; /* Memberikan ruang untuk header tetap */
    }
    
    .main-section h2 { 
        font-size: 1.8rem;
        margin-bottom: 1rem; /* Jarak antara judul dan elemen di bawahnya */
    }
    
    .main-section h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem; /* Jarak antara judul dan elemen di bawahnya */
    }
    
    .main-section p {
        font-size: 1.1rem;
        margin-bottom: 1rem; /* Jarak antara judul dan elemen di bawahnya */
    }

    .slider .slide img {
        object-fit: contain;
    }
    

    .floating-cta .cta-text {
        font-size: 1rem;
        width: 80%;
    }

    .product .cta-btn {
        padding: 0.7rem 1rem;
    }


    .hidden-page {
        padding: 6rem;
    }
    
    .hidden-page h1 {
        font-size: 2rem;
        margin-bottom: 3px;
    }
    
    /* Judul */
    .hidden-page h2 {
        font-size: 1.2rem;
    }
    
    /* Paragraf */
    .hidden-page p {
        font-size: 1rem;
        width: 100%;
        display: flex;
    }
    
    /* Footer */
    .footer-section {
        font-size: 1rem;
    }
}
