:root {
    --green-primary: #1f7a4c;
    --green-dark: #145237;
    --green-soft: #e9f7ef;
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    scroll-behavior: smooth;
}

.navbar {
    background: rgba(20, 82, 55, 0.95);
    transition: background-color 0.25s ease, box-shadow 0.25s ease, padding 0.25s ease;
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
}

.navbar.navbar-scrolled {
    background: rgba(15, 63, 43, 0.98);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
}

.navbar-brand img {
    width: auto;
    max-width: 190px;
}

.hero {
    background: linear-gradient(rgba(20, 82, 55, 0.78), rgba(20, 82, 55, 0.78)),
        url("https://diverzify.com/wp-content/uploads/raised-access-flooring-7.jpg") center/cover no-repeat;
    min-height: 100vh;
    color: #fff;
}

.section-title {
    color: var(--green-dark);
    font-weight: 700;
}

.card-soft {
    border: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-soft:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
}

.bg-soft {
    background-color: var(--green-soft);
}

.btn-green {
    background-color: var(--green-primary);
    border-color: var(--green-primary);
    color: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.btn-green:hover {
    background-color: var(--green-dark);
    border-color: var(--green-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(20, 82, 55, 0.35);
}

.wa-floating {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 999;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25d366;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wa-floating:hover {
    transform: scale(1.06);
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.32);
}

/* Hero: animasi saat halaman dimuat (jelas terlihat) */
.hero-motion .hero-entrance {
    opacity: 0;
    transform: translateY(44px);
    animation: heroFadeUp 0.95s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-motion .hero-entrance:nth-child(1) {
    animation-delay: 0.06s;
}

.hero-motion .hero-entrance:nth-child(2) {
    animation-delay: 0.2s;
}

.hero-motion .hero-entrance:nth-child(3) {
    animation-delay: 0.36s;
}

@keyframes heroFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(52px) scale(0.985);
    filter: blur(2px);
    transition:
        opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.85s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.65s ease-out;
    will-change: opacity, transform, filter;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

@media (prefers-reduced-motion: reduce) {
    .hero-motion .hero-entrance {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

    .reveal,
    .reveal.is-visible {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        transition: none !important;
    }
}

footer {
    background: #0f3f2b;
}
