/* --- 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(2rem, 5vw, 4.5rem);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-wrap: balance;
}

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

/* --- 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 {
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pricing-card:hover {
    transform: translateY(-5px);
}

.section-dark .pricing-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--accent-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.section-light .pricing-card {
    background: #ffffff;
    border: 1px solid var(--accent-color);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
}

.pricing-img {
    height: 250px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.pricing-body {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.prices {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    margin-top: auto;
}

.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);
}

/* --- Splash Screen --- */
.splash-screen {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(31, 51, 47, 0.96);
    /* Hijau base color, sangat pekat */
    backdrop-filter: blur(12px);
    /* Semi blur */
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 1.5s ease-in-out, visibility 1.5s ease-in-out, filter 1.5s ease-in-out;
}

.splash-center {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2.5rem;
    /* Jarak antara logo dan tulisan powered by */
}

.splash-logo {
    width: 420px;
    /* Logo besar */
    max-width: 85vw;
    height: auto;
    object-fit: contain;
    animation: pulseLogo 2s infinite ease-in-out;
}

.splash-footer {
    text-align: center;
    animation: fadeIn 1.5s ease-in-out;
}

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

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

@keyframes pulseLogo {
    0% {
        transform: scale(1);
        opacity: 0.75;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
        filter: drop-shadow(0 0 40px rgba(230, 200, 145, 0.8)) drop-shadow(0 0 80px rgba(230, 200, 145, 0.35));
    }

    100% {
        transform: scale(1);
        opacity: 0.75;
    }
}

.splash-screen.fade-out {
    opacity: 0;
    visibility: hidden;
    filter: blur(20px);
    /* Efek menguap seperti embun */
}

/* --- Mobile --- */
@media (max-width: 1024px) {
    .burger-menu {
        display: flex;
    }

    .nav-contact {
        display: none;
    }

    .nav-links {
        display: none;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        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;
        gap: 2.5rem;
    }

    .pricing-card,
    .umkm-card {
        margin-bottom: 1.5rem;
    }

    .feature-block,
    .feature-block.reverse {
        flex-direction: column;
        text-align: center;
        gap: 2.5rem;
    }

    .stacked-carousel {
        flex: none;
        /* Prevent height collapse in column mode */
        height: 250px;
        /* Kotak seukuran handphone */
        margin-bottom: 2rem;
        width: 100%;
        max-width: 320px;
        margin-inline: auto;
    }

    .stack-img.next-1 {
        transform: scale(0.92) translate(20px, -20px) !important;
    }

    .stack-img.next-2 {
        transform: scale(0.85) translate(40px, -40px) !important;
    }

    .feature-block.reverse .stack-img.next-1 {
        transform: scale(0.92) translate(-20px, -20px) !important;
    }

    .feature-block.reverse .stack-img.next-2 {
        transform: scale(0.85) translate(-40px, -40px) !important;
    }

    .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;
        gap: 1.5rem !important;
    }

    .art-item>div:first-child {
        flex: none !important;
        width: 100% !important;
        height: 200px !important;
        margin-bottom: 1rem;
    }
}