@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
    --bg-dark: #060b14;
    --bg-card: rgba(15, 23, 42, 0.72);
    --bg-glass: rgba(255, 255, 255, 0.04);
    --border-glass: rgba(56, 189, 248, 0.22);
    --primary-cyan: #00d2ff;
    --eco-green: #00d2ff;
    --gradient-eco: linear-gradient(135deg, #00d2ff 0%, #4a78cc 100%);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    background-image: 
        radial-gradient(circle at 15% 15%, rgba(0, 210, 255, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 85% 80%, rgba(16, 103, 185, 0.08) 0%, transparent 40%);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, .brand-font {
    font-family: 'Outfit', sans-serif;
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(6, 11, 20, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-glass);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-main);
}

.logo-badge {
    background: var(--gradient-eco);
    color: #041019;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 6px;
    letter-spacing: 2px;
    font-size: 1.2rem;
}

.nav-links {
    display: flex;
    gap: 1.6rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-cyan);
}

.btn-primary {
    background: var(--gradient-eco);
    color: #041019 !important;
    font-weight: 700;
    padding: 10px 22px;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    transition: transform 0.25s, box-shadow 0.25s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 210, 255, 0.35);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary-cyan);
    color: var(--primary-cyan);
    padding: 9px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
    cursor: pointer;
}

.btn-outline:hover {
    background: rgba(0, 210, 255, 0.12);
}

/* Eco Banner Top */
.eco-ticker {
    background: linear-gradient(90deg, rgba(0,210,255,0.15), rgba(16,185,129,0.15));
    border-bottom: 1px solid rgba(16, 145, 185, 0.25);
    text-align: center;
    padding: 7px 15px;
    font-size: 0.82rem;
    color: #a7e8f3;
    letter-spacing: 0.5px;
}

/* Carousel */
.hero-carousel {
    position: relative;
    height: 78vh;
    min-height: 500px;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
    padding: 0 8%;
    background-size: cover;
    background-position: center;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 2;
}

.carousel-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(6,11,20,0.92) 0%, rgba(6,11,20,0.55) 55%, rgba(6,11,20,0.2) 100%);
}

.carousel-content {
    position: relative;
    z-index: 3;
    max-width: 650px;
}

.tag-pill {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 50px;
    background: rgba(16, 185, 129, 0.18);
    border: 1px solid var(--eco-green);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.carousel-content h1 {
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.15;
    margin-bottom: 1rem;
}

.carousel-nav {
    position: absolute;
    bottom: 25px;
    right: 8%;
    z-index: 10;
    display: flex;
    gap: 10px;
}

.carousel-nav button {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-glass);
    background: rgba(6, 11, 20, 0.75);
    color: white;
    cursor: pointer;
    font-size: 1.1rem;
    transition: 0.3s;
}

.carousel-nav button:hover {
    background: var(--primary-cyan);
    color: #060b14;
}

/* Container & Grid */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 4.5rem 5%;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header span {
    color: var(--eco-green);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
}

.section-header h2 {
    font-size: 2.3rem;
    margin-top: 6px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2.5rem;
    align-items: center;
}

/* Glass Card */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(12px);
    transition: transform 0.3s, border-color 0.3s;
}

.glass-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary-cyan);
}

.card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: #0f172a;
}

.card-body {
    padding: 1.6rem;
}

.spec-mini {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    margin: 12px 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.spec-mini strong {
    display: block;
    color: var(--text-main);
    font-size: 0.95rem;
}

/* Sales Profile Card */
.sales-box {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.9), rgba(6, 78, 59, 0.25));
    border: 1px solid rgba(16, 123, 185, 0.35);
    border-radius: 24px;
    padding: 2.5rem;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 2.5rem;
    align-items: center;
}

.sales-photo {
    width: 260px;
    height: 300px;
    object-fit: cover;
    border-radius: 18px;
    border: 2px solid var(--eco-green);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

/* Forms */
.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid var(--border-glass);
    color: white;
    font-family: inherit;
    font-size: 0.95rem;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-cyan);
}

/* Color Swatch */
.swatch-group {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.swatch-item {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid rgba(255,255,255,0.3);
    transition: 0.2s;
}

.swatch-item.selected {
    transform: scale(1.2);
    border-color: var(--primary-cyan);
    box-shadow: 0 0 12px var(--primary-cyan);
}

/* Floating WhatsApp */
.wa-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    background: #25d366;
    color: #fff;
    padding: 14px 22px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: 0.3s;
}

.wa-float:hover {
    transform: scale(1.05);
}

/* Footer */
footer {
    background: #03060c;
    border-top: 1px solid var(--border-glass);
    padding: 3.5rem 5% 1.5rem;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Berita Home */
.berita-home-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.berita-home-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 16px;
}

.berita-home-thumb {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
}

.berita-home-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.berita-home-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.berita-home-date {
    color: var(--primary-cyan);
    font-size: 0.78rem;
    margin-bottom: 0.45rem;
    display: inline-block;
}

.berita-home-title {
    font-size: 1.05rem;
    line-height: 1.35;
    margin: 0 0 0.6rem 0;
    color: var(--text-main);
}

.berita-home-excerpt {
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--text-muted);
    margin: 0 0 1.1rem 0;
    flex: 1;
}

.berita-home-link {
    color: var(--eco-green);
    font-size: 0.86rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

@media (max-width: 900px) {
    .berita-home-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .berita-home-thumb {
        height: 170px;
    }
}

@media (max-width: 768px) {
    .sales-box { grid-template-columns: 1fr; text-align: center; }
    .sales-photo { margin: 0 auto; }
    .nav-links { display: none; }
    .grid-2 { grid-template-columns: 1fr; }
}

/* Sembunyikan tombol toggle secara default di layar komputer */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--text-main);
    cursor: pointer;
    z-index: 1001;
}

/* Pengaturan Responsif untuk Handphone (Layar <= 768px) */
@media (max-width: 768px) {
    .navbar {
        position: relative;
    }

    .menu-toggle {
        display: block; /* Munculkan ikon hamburger di HP */
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(6, 11, 20, 0.98);
        backdrop-filter: blur(16px);
        flex-direction: column;
        align-items: center;
        gap: 1.2rem;
        border-bottom: 1px solid var(--border-glass);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
        
        /* Pengaturan animasi buka-tutup yang aman */
        display: none; /* Sembunyikan total saat tertutup */
        padding: 0;
        opacity: 0;
        transition: opacity 0.3s ease-in-out;
    }

    /* Ketika kelas 'active' ditambahkan oleh JavaScript */
    .nav-links.active {
        display: flex !important; /* Paksa tampilkan sebagai flex */
        opacity: 1;
        padding: 2rem 0;
    }
}

@media (max-width: 768px) {
    .eco-ticker {
        font-size: 0.72rem;
        padding: 6px 10px;
        white-space: normal;
        text-align: center;
        line-height: 1.3;
    }

    .navbar {
        padding: 10px 14px;
        gap: 8px;
        flex-wrap: nowrap;
    }

    .logo-area {
        gap: 8px !important;
        min-width: 0;
        flex: 1;
    }

    .logo-area img {
        height: 44px !important;
        max-width: 110px !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        flex-shrink: 0;
    }

    .logo-area strong {
        font-size: 0.82rem !important;
        white-space: normal !important;
        line-height: 1.15;
    }

    .logo-area small {
        font-size: 0.68rem !important;
        display: block;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .menu-toggle {
        flex-shrink: 0;
        font-size: 1.3rem;
        padding: 4px 8px;
    }
}
@media (max-width: 768px) {
    .hero-content,
    .hero-slide,
    .container {
        max-width: 100% !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
        box-sizing: border-box;
    }

    .hero-content h1,
    .hero-content h2 {
        font-size: 1.65rem !important;
        line-height: 1.25;
        word-wrap: break-word;
    }
}