/* --- CSS Reset & Variables --- */
:root {
    --primary-color: #304f49; /* Dark Green */
    --secondary-color: #889ba5; /* Soft Grey */
    --accent-color: #e6c891; /* Soft Pastel Gold */
    --text-main: #eeede8;
    --text-muted: #d0d7d9;
    --bg-dark: #1f332f; /* Base Dark Green */
    --bg-light: #eeede8; /* Soft off-white */
    --bg-light-text: #2c363f; /* Dark text for light mode */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

html, body {
    width: 100%;
    max-width: 100vw;
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* --- Layout Utilities --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center { text-align: center; }
.mb-5 { margin-bottom: 5rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }
.w-100 { width: 100%; }

/* --- Scroll Reveal Animations --- */
.fade-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s cubic-bezier(0.25, 0.8, 0.25, 1),
        transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.fade-on-scroll.visible {
    opacity: 1;
    transform: none;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    border-radius: 4px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--bg-dark);
    border: 1px solid var(--accent-color);
}

.btn-primary:hover {
    background: transparent;
    color: var(--accent-color);
}

.btn-large {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
}

.btn-glow {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.btn-glow:hover {
    background: var(--accent-color);
    color: var(--bg-dark);
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
}

.btn-outline:hover {
    background: var(--accent-color);
    color: var(--bg-dark);
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 9999;
    padding: 1.2rem 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(31, 51, 47, 0.95);
    padding: 0.8rem 0;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    margin: 0 1.2rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: var(--transition);
}

.nav-links a:hover { color: var(--accent-color); }

.burger-menu {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 10000;
    position: relative;
}

.burger-menu span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: #ffffff;
    transition: var(--transition);
}

.burger-menu.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger-menu.active span:nth-child(2) { opacity: 0; }
.burger-menu.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* --- Hero --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 120px 0 60px 0;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.7));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
}

.hero-sup {
    color: var(--accent-color);
    letter-spacing: 4px;
    margin-bottom: 1rem;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 8vw, 5.5rem);
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    line-height: 1.9;
    color: rgba(255,255,255,0.88);
    max-width: 720px;
    margin: 0 auto 2.5rem;
    font-weight: 300;
}

/* --- Stacked Carousel --- */
.stacked-carousel {
    flex: 1;
    position: relative;
    height: 450px;
    perspective: 1000px;
}

.stack-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

.stack-img.active { opacity: 1; transform: scale(1); z-index: 10; }
.stack-img.next-1 { opacity: 0.8; transform: scale(0.92) translate(50px, -30px); z-index: 5; filter: blur(2px); }
.stack-img.next-2 { opacity: 0.6; transform: scale(0.85) translate(100px, -60px); z-index: 2; filter: blur(4px); }
.stack-img.hidden { opacity: 0; transform: scale(0.8) translate(150px, -90px); }

.feature-block.reverse .stack-img.next-1 { transform: scale(0.92) translate(-50px, -30px); }
.feature-block.reverse .stack-img.next-2 { transform: scale(0.85) translate(-100px, -60px); }

/* --- Sections --- */
.section { padding: 6rem 0; }
.section-dark { background-color: var(--bg-dark); }
.section-light { background-color: var(--bg-light); color: var(--bg-light-text); }

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--accent-color);
}

.feature-block { display: flex; align-items: center; gap: 4rem; margin-bottom: 5rem; }
.feature-block.reverse { flex-direction: row-reverse; }
.feature-content { flex: 1; }

/* --- Cards --- */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 3rem; }
.pricing-card { background: rgba(255,255,255,0.03); border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,0.05); }
.pricing-img { height: 250px; background-size: cover; background-position: center; }
.pricing-body { padding: 2.5rem; }
.prices { display: flex; justify-content: space-between; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.5rem; }
.price-val { font-size: 1.3rem; font-weight: 600; color: var(--accent-color); }

.umkm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.umkm-card { background: #fff; padding: 2rem; border-radius: 8px; color: var(--bg-light-text); }
.umkm-img { height: 220px; background-size: cover; background-position: center; border-radius: 6px; margin-bottom: 1.5rem; }

/* --- Testimonials --- */
.testimonial-container { position: relative; max-width: 900px; margin: 0 auto; overflow: hidden; }
.testimonial-wrapper { display: flex; transition: transform 0.6s ease; }
.testimonial-slide { min-width: 100%; padding: 0 1.5rem; text-align: center; }
.testimonial-content { background: white; padding: 3rem; border-radius: 20px; border: 2px solid var(--primary-color); }
.testimonial-text { font-size: 1.15rem; font-style: italic; color: var(--bg-light-text); margin-bottom: 2rem; }
.testimonial-name { font-family: var(--font-heading); color: var(--accent-color); font-size: 1.3rem; }
.testimonial-dots { display: flex; justify-content: center; gap: 10px; margin-top: 20px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #ccc; cursor: pointer; }
.dot.active { background: var(--primary-color); transform: scale(1.3); }

/* --- Location --- */
.location-section { display: flex; height: 480px; }
.location-map { flex: 0 0 60%; position: relative; background: var(--primary-color); padding: 1rem; }
.location-info { flex: 0 0 40%; background: var(--primary-color); color: white; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 3rem; text-align: center; }
.location-label { font-size: 0.8rem; letter-spacing: 3px; text-transform: uppercase; color: var(--accent-color); margin-bottom: 1rem; }
.location-title { font-family: var(--font-heading); font-size: 2.5rem; margin-bottom: 1.5rem; }
.location-divider { width: 60px; height: 2px; background: var(--accent-color); margin: 1.5rem auto; }
.location-address { color: rgba(255,255,255,0.8); line-height: 1.8; margin-bottom: 2rem; }
.location-btn { display: inline-block; padding: 0.8rem 1.8rem; border: 1px solid var(--accent-color); color: var(--accent-color); text-decoration: none; border-radius: 4px; font-size: 0.9rem; letter-spacing: 1px; transition: var(--transition); }
.location-btn:hover { background: var(--accent-color); color: var(--bg-dark); }

/* --- Art Item (Kesenian di Beranda) --- */
.art-item { border-radius: 12px; padding: 1.5rem; margin-bottom: 1.5rem; transition: var(--transition); }
.art-item:hover { transform: translateY(-3px); }

/* --- Footer --- */
.footer { background: var(--primary-color); padding: 5rem 0 2rem; }
.footer-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 3rem; }
.footer-heading { color: white; margin-bottom: 1.5rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.8rem; }
.footer-links a { color: var(--text-muted); text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); text-align: center; padding-top: 2rem; margin-top: 4rem; font-size: 0.85rem; color: rgba(255,255,255,0.5); }

/* --- Mobile --- */
@media (max-width: 1024px) {
    .burger-menu { display: flex; }
    .nav-links { display: none; }
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: fixed;
        inset: 0;
        background: rgba(31, 51, 47, 0.98);
        justify-content: center;
        align-items: center;
        z-index: 9998;
        overflow-y: auto;
        padding: 2rem 0;
    }
    .nav-links.active a {
        font-size: 1.1rem;
        margin: 0.6rem 0;
        padding: 0.5rem 2rem;
        letter-spacing: 2px;
    }
    .nav-links.active a.nav-mobile-cta { display: none; }
    .pricing-grid, .umkm-grid { grid-template-columns: 1fr; }
    .feature-block { flex-direction: column; text-align: center; }
    .location-section { flex-direction: column; height: auto; }
    .location-map { height: 300px; flex: none; }
    .location-info { flex: none; padding: 2.5rem 1.5rem; }
    .art-item { flex-direction: column !important; }
    .art-item > div:first-child { flex: none !important; width: 100% !important; height: 200px !important; }
}