:root {
    --primary-color: #d4af37;
    --primary-hover: #e8c462;
    --background-color: #ffffff;
    --card-bg-color: #fcfcfc;
    --text-color: #555;
    --heading-color: #111;
    --border-color: #eaeaea;
    --shadow-color: rgba(0, 0, 0, 0.04);
    --font-heading: "roboto", serif;
    --font-body: "Inter", sans-serif;
}
body.dark-mode {
    --background-color: #0a0a0a;
    --card-bg-color: #141414;
    --text-color: #a0a0a0;
    --heading-color: #f5f5f5;
    --border-color: #2a2a2a;
    --shadow-color: rgba(0, 0, 0, 0.2);
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: var(--font-body);
    background-color: var(--background-color);
    color: var(--text-color);
    transition: background-color 0.4s ease, color 0.4s ease;
    cursor: none;
    overflow-x: hidden !important;
}
html,
body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
a,
button {
    cursor: none;
}
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: opacity 0.3s, transform 0.3s;
}
.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
}
.cursor-outline {
    width: 40px;
    height: 40px;
    background-color: rgba(212, 175, 55, 0.3);
    transition: width 0.4s, height 0.4s, background-color 0.4s;
}
body:hover .cursor-dot {
    opacity: 1;
}
.cursor-outline.hover {
    width: 60px;
    height: 60px;
    background-color: rgba(212, 175, 55, 0.5);
}
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background-color);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--card-bg-color);
}
::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}
header {
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.4s, border-color 0.4s;
}
body.dark-mode header {
    background-color: rgba(10, 10, 10, 0.5);
}
header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}
.logo {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--heading-color);
}
.header-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.menu-button,
.theme-button {
    display: block;
    background: 0 0;
    border: none;
    color: var(--heading-color);
    padding: 8px;
}
.nav-menu {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: calc(100vh - 70px);
    background-color: var(--background-color);
    flex-direction: column;
    align-items: center;
    padding-top: 2rem;
    list-style: none;
    display: flex;
    gap: 2rem;
    transition: right 0.4s ease-in-out;
    border-left: 1px solid var(--border-color);
}
.nav-menu.active {
    right: 0;
}
.nav-menu a {
    text-decoration: none;
    color: var(--heading-color);
    font-size: 1.2rem;
    font-weight: 500;
}
#hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    position: relative;
    padding: 20px;
    overflow: hidden;
}
#hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: auto;
    height: auto;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    z-index: -1;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 0;
}
.hero-content {
    max-width: 800px;
    z-index: 1;
}
#hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 8vw, 3.5rem);
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.2;
}
.hero-content p {
    font-size: 1rem;
    margin-bottom: 2rem;
    color: #ddd;
}
.cta-button {
    background-color: var(--primary-color);
    color: #111;
    padding: 14px 28px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
section {
    padding: clamp(60px, 12vw, 100px) 0;
}
.section-title {
    font-family: var(--font-heading);
    text-align: left;
    font-size: 1.5rem;
    margin-top: 1rem;
    margin-bottom: clamp(40px, 8vw, 60px);
    color: var(--heading-color);
}
.section-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    margin-top: 8px;
    border-radius: 2px;
}
.produk-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
.produk-card {
    background-color: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
}
.produk-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px var(--shadow-color);
}
.produk-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--primary-color);
    color: #111;
    padding: 5px 10px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 4px;
    z-index: 2;
}
.produk-image-container img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.produk-info {
    padding: 20px;
}
.produk-info h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--heading-color);
    margin-bottom: 5px;
}
.produk-info .harga {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 15px;
}
.wa-button {
    display: block;
    width: 100%;
    padding: 12px;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s, color 0.3s;
    background-color: transparent;
    font-family: var(--font-body);
    font-size: 1rem;
}
.wa-button:hover {
    background-color: var(--primary-color);
    color: #111;
}
.produk-info .deskripsi {
    margin-bottom: 15px;
    line-height: 1.6;
    max-height: 4.8em; /* Sekitar 3 baris teks */
    overflow: hidden;
    position: relative;
    transition: max-height 0.5s ease-out;
}

.produk-info .deskripsi.full {
    max-height: 500px; /* Nilai yang cukup besar untuk menampung semua teks */
    transition: max-height 0.5s ease-in;
}

.read-more-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    font-weight: bold;
    padding: 0;
    margin-top: 5px;
    display: inline-block;
}
#testimoni,
#kontak {
    background-color: var(--card-bg-color);
}
.testimoni-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
.testimoni-card {
    background-color: var(--background-color);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    text-align: center;
}
.testimoni-card p {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.2rem;
    line-height: 1.6;
    margin: 0 0 1.5rem 0;
    color: var(--heading-color);
}
.testimoni-card h4 {
    margin: 0;
    font-weight: 500;
    color: var(--text-color);
}
.about-grid {
    display: grid;
    gap: 3rem;
}
.about-item .about-image {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}
.about-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
}
.about-text h3 {
    font-family: var(--font-heading);
    color: var(--heading-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}
.about-text p {
    line-height: 1.7;
}
#kontak p {
    max-width: 600px;
    margin: 0 auto 2rem auto;
}
.kontak-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.kontak-button {
    padding: 15px 25px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s;
}
.kontak-button.whatsapp {
    background-color: #25d366;
    color: #fff;
}
.kontak-button.email {
    background-color: var(--primary-color);
    color: #111;
}

.kontak-button.github {
    background-color: #333333;
    color: #fff;
}

.kontak-button.youtube {
    background-color: #ff0000;
    color: #fff;
}

.kontak-button.instagram {
    background: linear-gradient(
        45deg,
        #f09433 0%,
        #e6683c 25%,
        #dc2743 50%,
        #cc2366 75%,
        #bc1888 100%
    );
    color: #fff;
}

.kontak-button.linkedin {
    background-color: #0077b5;
    color: #fff;
}

.kontak-button:hover {
    opacity: 0.9;
    transform: translateY(-3px);
}
footer {
    background-color: var(--heading-color);
    color: #a0a0a0;
    padding: 30px 0;
    text-align: center;
}
body.dark-mode footer {
    background-color: #111;
}
#scrollTopBtn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: #111;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
    z-index: 999;
}
#scrollTopBtn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    transition-delay: var(--delay, 0s);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
#produk-terlaris {
    padding-bottom: 0;
}
.kategori-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}
.filter-btn {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}
.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--heading-color);
    transform: translateY(-2px);
}

@media (max-width: 767px) {
    .kontak-links {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        width: 100%;
    }

    .kontak-button {
        padding: 10px 10px;
        font-size: 0.9rem;
        justify-content: center;
        width: 100%;
    }

    .kontak-button .material-symbols-outlined {
        font-size: 1.1rem;
    }
    
    .cta-button {
        padding: 12px 24px;
        font-size: 0.95rem;
    }
}

@media (min-width: 768px) {
    .menu-button {
        display: none;
    }
    .nav-menu {
        position: static;
        width: auto;
        height: auto;
        background-color: transparent;
        flex-direction: row;
        padding-top: 0;
        border: none;
    }
    .nav-menu a {
        font-size: 1rem;
    }
    .produk-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .testimoni-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .about-item {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
        align-items: center;
    }
    .about-item:nth-child(even) .about-image {
        order: 2;
    }
    .about-item .about-image {
        margin-bottom: 0;
    }
}
@media (min-width: 1024px) {
    .produk-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
