/* CSS Variables for Theming */
:root {
    /* Light Mode (Beige / Krem) */
    --bg-color: #fcf9f2;
    --bg-alt: #f3ece1;
    --text-color: #3e2723;
    --text-muted: #5d4037;
    --primary-color: #8d6e63;
    --primary-hover: #795548;
    --secondary-color: #d7ccc8;
    --secondary-hover: #bcaaa4;
    --border-color: #e7e0d5;
    --card-bg: #ffffff;
    --navbar-bg: rgba(252, 249, 242, 0.95);

    /* Progress Bar */
    --progress-bg: #e0e0e0;
    --progress-fill: #8d6e63;

    --shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 10px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

[data-theme="dark"] {
    /* Dark Mode (Coklat Gelap) */
    --bg-color: #2e1e19;
    --bg-alt: #3e2723;
    --text-color: #efebe9;
    --text-muted: #d7ccc8;
    --primary-color: #a1887f;
    --primary-hover: #bcaaa4;
    --secondary-color: #4e342e;
    --secondary-hover: #5d4037;
    --border-color: #4e342e;
    --card-bg: #3e2723;
    --navbar-bg: rgba(46, 30, 25, 0.95);

    /* Progress Bar */
    --progress-bg: #4e342e;
    --progress-fill: #a1887f;

    --shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    --shadow-hover: 0 10px 15px rgba(0, 0, 0, 0.3);
}

/* Base Styles */
html {
    scroll-behavior: smooth;
    box-sizing: border-box;
}

*,
*::before,
*::after {
    box-sizing: inherit;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color var(--transition), color var(--transition);
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.bg-alt {
    background-color: var(--bg-alt);
}

h1,
h2,
h3 {
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-color);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--primary-hover);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--text-color);
}

.btn-secondary:hover {
    background-color: var(--secondary-hover);
    color: var(--text-color);
    transform: translateY(-2px);
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    width: 100%;
    background-color: var(--navbar-bg);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 15px 0;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.navbar--hidden {
    transform: translateY(-100%);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    font-family: 'Lobster', cursive;
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--primary-color);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-decoration: none;
    transition: opacity 0.2s ease;
}
 
.logo:hover {
    color: var(--primary-hover);
    opacity: 0.50;
}

.dropdown {
    position: relative;
}

.dropbtn {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    transition: var(--transition);
}

.dropbtn:hover {
    background-color: var(--secondary-color);
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--card-bg);
    min-width: 200px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    z-index: 1001;
    overflow: hidden;
    margin-top: 15px;
}

.dropdown-content.show {
    display: block;
    animation: fadeIn 0.2s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
}

.nav-links li {
    width: 100%;
    border-bottom: 1px solid var(--border-color);
}

.nav-links li:last-child {
    border-bottom: none;
}

.nav-links a {
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.95rem;
    display: block;
    padding: 15px 20px;
    transition: background-color var(--transition), color var(--transition);
}

.nav-links a:hover {
    color: var(--primary-color);
    background-color: var(--bg-alt);
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.theme-toggle:hover {
    background-color: var(--secondary-color);
}

/* Carousel */
.carousel {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: var(--shadow);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-item {
    min-width: 100%;
    padding: 60px 40px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* === Slide Content Glass Effect (Auto Theme) === */
.slide-content {
    max-width: 500px;
    min-height: 500px;
    padding: 20px 25px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    /* auto adapt dari theme */
    background: color-mix(in srgb, var(--card-bg) 75%, transparent);

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

/* fallback kalau browser ga support color-mix */
:root .slide-content {
    background: rgba(255, 255, 255, 0.75);
}

[data-theme="dark"] .slide-content {
    background: rgba(0, 0, 0, 0.6);
}

.slide-content h1,
.slide-content h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.slide-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--text-muted);
}

.slide-img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.slide-hero-images {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
}

.slide-hero-images img {
    height: 160px;
    width: auto;
    max-width: 48%;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.slide-hero-images img:hover {
    transform: scale(1.05);
}

.slide-note {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 10px;
    margin-bottom: 0;
    font-style: italic;
}

@media (max-width: 480px) {
    .slide-hero-images img {
        height: 110px;
    }
}
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.carousel-control:hover {
    background: rgba(0, 0, 0, 0.6);
}

.carousel-control.prev {
    left: 10px;
}

.carousel-control.next {
    right: 10px;
}

/* About Section */
.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.about-text {
    flex: 1;
}

.about-text h2 {
    text-align: left;
}

.about-text ul {
    list-style: none;
    margin-bottom: 1.5rem;
}

.about-text li {
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

.tagline-text {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-style: italic;
}

.about-images {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.about-images img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.about-images img:hover {
    transform: scale(1.05);
}

/* Milestones Section */
.milestone-desc {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.progress-container {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 40px;
    text-align: center;
}

.progress-text {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.highlight-text {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 15px;
}

.progress-bar-bg {
    width: 100%;
    height: 20px;
    background-color: var(--progress-bg);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    background-color: var(--progress-fill);
    border-radius: 10px;
    transition: width 1s ease-in-out;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.card {
    background-color: var(--card-bg);
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.card.active-card {
    border-color: var(--primary-color);
}

.card h3 {
    color: var(--text-muted);
    font-size: 1.2rem;
}

.card p {
    font-size: 1.1rem;
    margin-top: 10px;
}

.badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    white-space: nowrap;
}

/* Accordion */
.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: var(--transition);
}

.accordion-item summary {
    padding: 15px 20px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-item summary::-webkit-details-marker {
    display: none;
}

.accordion-item summary::after {
    content: '+';
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.accordion-item[open] summary::after {
    transform: rotate(45deg);
}

.accordion-content {
    padding: 0 20px 20px;
    color: var(--text-muted);
}

/* New Arrival */
.new-arrival-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.new-arrival-card {
    text-align: center;
}

.new-arrival-card a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.new-arrival-card a:hover {
    transform: translateY(-8px);
}

.new-arrival-card img {
    width: 220px;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.new-arrival-card a:hover img {
    box-shadow: var(--shadow-hover);
}

/* Marquee / Koleksi Section */
.marquee-container {
    width: 100%;
    overflow: hidden;
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 30px 0;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.marquee {
    display: flex;
    gap: 30px;
    will-change: transform;
    width: max-content;
}

.marquee:hover {
    animation-play-state: paused;
}



.product-card {
    flex-shrink: 0;
    width: 180px;
    text-align: center;
}

.product-card a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
}

.product-card a:hover {
    transform: translateY(-8px);
}

.product-card img {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.product-card a:hover img {
    box-shadow: var(--shadow-hover);
}

.product-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

.marquee-hint {
    text-align: center;
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-top: 0;
}
.footer {
    background-color: var(--navbar-bg);
    border-top: 1px solid var(--border-color);
    padding: 40px 0 20px;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-brand h3 {
    font-family: 'Lobster', cursive;
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.footer-links {
    display: flex;
    gap: 15px;
}

.footer-links a {
    font-weight: 600;
}

.copyright {
    font-size: 0.9rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    margin-top: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
    }

    .about-images {
        flex-direction: row;
        justify-content: center;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .about-images {
        flex-direction: column;
    }

    .carousel-item {
        padding: 40px 20px;
    }
}