:root {
    --hijau: #1e7d1e;
    --hijau-muda: #3da93d;
    --coklat: #7a5c4d;
    --krem: #f8f5e9;
    --orange: #ff8c00;
    --kuning: #ffcc00;
    --biru: #1e88e5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f9f9f9;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
    gap: 10px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--orange) 0%, #ff6b00 100%);
    color: white;
    box-shadow: 0 5px 15px rgba(255, 140, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 140, 0, 0.4);
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #1da851 100%);
    color: white;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--hijau);
    color: var(--hijau);
}

.btn-outline:hover {
    background: var(--hijau);
    color: white;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--hijau);
    display: inline-block;
    position: relative;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--orange);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 15px auto 0;
}

.section-subtitle-kuning {
    text-align: center;
    color: var(--kuning);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 15px auto 0;
}

/* ===== HEADER ===== */
header {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

header.scrolled {
    padding: 5px 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 50px;
    width: auto;
}

.logo-text h1 {
    font-size: 1.8rem;
    color: var(--hijau);
    margin-bottom: 2px;
}

.logo-text p {
    font-size: 0.85rem;
    color: #666;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #444;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s;
    position: relative;
}

.nav-links a:hover {
    color: var(--hijau);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--hijau);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--hijau);
    cursor: pointer;
}

/* ===== HERO SECTION ===== */
.hero {
    padding-top: 150px;
    padding-bottom: 100px;
    background: linear-gradient(rgba(30, 125, 30, 0.9), rgba(30, 125, 30, 0.8)), url('https://images.unsplash.com/photo-1500382017468-9049fed747ef?ixlib=rb-4.0.3&auto=format&fit=crop&w=1600&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    position: relative;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 3.2rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.95;
    max-width: 600px;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 140, 0, 0.9);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 1rem;
    backdrop-filter: blur(10px);
}

.hero-btns {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.hero-image {
    flex: 1;
    position: relative;
}

.hero-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* ===== ABOUT SECTION ===== */
.about {
    background: white;
}

.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    align-items: center;
}

.about-image {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.about-image img {
    width: 100%;
    height: auto;
    transition: transform 0.5s;
}

.about-image:hover img {
    transform: scale(1.05);
}

.about-text h3 {
    font-size: 2rem;
    color: var(--hijau);
    margin-bottom: 20px;
}

.about-features {
    margin-top: 30px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.feature-icon {
    background: var(--krem);
    color: var(--hijau);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
    font-size: 1.2rem;
}

/* ===== PRODUCTS SECTION ===== */
.products {
    background: var(--krem);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.product-img {
    height: 200px;
    width: 100%;
    overflow: hidden;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card:hover .product-img img {
    transform: scale(1.1);
}

.product-content {
    padding: 25px;
}

.product-content h3 {
    color: var(--hijau);
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.product-price {
    font-size: 1.5rem;
    color: var(--orange);
    font-weight: 700;
    margin: 15px 0;
}

/* ===== BENEFITS SECTION ===== */
.benefits-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 30px;
    background: #eee;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-btn.active {
    background: var(--hijau);
    color: white;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.benefit-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    border-left: 5px solid var(--hijau);
}

.benefit-card h4 {
    color: var(--hijau);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ===== SPECS SECTION ===== */
.specs {
    background: linear-gradient(135deg, var(--hijau) 0%, #155c15 100%);
    color: white;
}

.specs .section-title h2 {
    color: white;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.spec-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.spec-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--kuning);
    margin: 10px 0;
}

/* ===== APPLICATION SECTION ===== */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--hijau);
    transform: translateX(-50%);
}

.timeline-item {
    margin-bottom: 50px;
    position: relative;
    width: calc(50% - 40px);
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
    padding-right: 70px;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 70px;
}

.timeline-content {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--orange);
    border-radius: 50%;
    top: 30px;
}

.timeline-item:nth-child(odd) .timeline-content::before {
    right: -60px;
}

.timeline-item:nth-child(even) .timeline-content::before {
    left: -60px;
}

.timeline-day {
    font-weight: 700;
    color: var(--hijau);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

/* ===== GALLERY SECTION ===== */
.gallery {
    background: var(--krem);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    height: 250px;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

/* ===== VIDEO SECTION ===== */
.video-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    background: #111;
}

.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #222;
    cursor: pointer;
}

.play-btn {
    width: 80px;
    height: 80px;
    background: var(--orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: white;
    transition: all 0.3s;
}

.video-placeholder:hover .play-btn {
    transform: scale(1.1);
    background: #ff6b00;
}

/* ===== TESTIMONIALS ===== */
.testimonials-slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.testimonial-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    margin: 20px;
}

.testimonial-header {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.testimonial-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 20px;
    border: 3px solid var(--hijau);
}

/* ===== CTA SECTION ===== */
.cta {
    background: linear-gradient(135deg, var(--hijau) 0%, #155c15 100%);
    color: white;
    text-align: center;
    padding: 100px 0;
}

.cta h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.cta p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 40px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* ===== FOOTER ===== */
footer {
    background: #222;
    color: #ccc;
    padding: 70px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-logo-img {
    height: 50px;
    width: auto;
}

.footer-logo-text {
    font-size: 1.8rem;
    color: white;
    font-weight: 700;
}

.footer-logo-text span {
    color: var(--kuning);
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: #444;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.social-icon:hover {
    background: var(--hijau);
    transform: translateY(-3px);
}

.footer-section h3 {
    color: white;
    margin-bottom: 25px;
    font-size: 1.3rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--orange);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--orange);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #444;
    color: #888;
    font-size: 0.9rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        width: 100%;
        left: 0 !important;
        padding-left: 70px !important;
        padding-right: 0 !important;
        text-align: left !important;
    }
    
    .timeline-item:nth-child(odd) .timeline-content::before,
    .timeline-item:nth-child(even) .timeline-content::before {
        left: -40px !important;
        right: auto !important;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero {
        padding-top: 130px;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .cta h2 {
        font-size: 2rem;
    }
    
    .hero-btns {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-btns .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    section {
        padding: 60px 0;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .benefits-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .tab-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* SAWIT APPLICATION STYLES */
    .sawit-application {
        background: #f8f9fa;
        padding: 80px 0;
    }

    .sawit-strategy {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
        margin-bottom: 50px;
    }

    .strategy-card {
        background: white;
        padding: 25px;
        border-radius: 12px;
        text-align: center;
        box-shadow: 0 5px 15px rgba(0,0,0,0.05);
        border-top: 4px solid var(--hijau);
    }

    .strategy-card h3 {
        font-size: 1.1rem;
        margin-bottom: 10px;
        color: #333;
    }

    .pupuk-methods {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 30px;
    }

    .method-card {
        background: white;
        padding: 30px;
        border-radius: 15px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    }

    .method-card h3 {
        color: var(--hijau);
        margin-bottom: 15px;
        font-size: 1.3rem;
    }

    .method-table {
        margin-top: 20px;
        overflow-x: auto;
    }

    .method-table table {
        width: 100%;
        border-collapse: collapse;
        margin-bottom: 20px;
    }

    .method-table th {
        background: var(--hijau-muda);
        color: white;
        padding: 12px;
        text-align: left;
    }

    .method-table td {
        padding: 10px 12px;
        border-bottom: 1px solid #eee;
    }

    .method-table tr:nth-child(even) {
        background: #f9f9f9;
    }

    @media (max-width: 768px) {
        .sawit-strategy {
            grid-template-columns: 1fr;
        }
        
        .pupuk-methods {
            grid-template-columns: 1fr;
        }
    }


/* SIMPLE ELEGANT BACK TO TOP */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--orange) 0%, #ff6b00 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 9999;
    box-shadow: 0 8px 25px rgba(255, 140, 0, 0.25);
    border: none;
    outline: none;
    animation: pulse 2s infinite;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.back-to-top:hover {
    background: linear-gradient(135deg, #ff6b00 0%, #ff5500 100%);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 30px rgba(255, 140, 0, 0.35);
}

.back-to-top:active {
    transform: translateY(0) scale(0.95);
}

@keyframes pulse {
    0% { box-shadow: 0 8px 25px rgba(255, 140, 0, 0.25); }
    50% { box-shadow: 0 8px 25px rgba(255, 140, 0, 0.4); }
    100% { box-shadow: 0 8px 25px rgba(255, 140, 0, 0.25); }
}

/* Responsive */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

/* ===== MOBILE MENU STYLES ===== */

/* Mobile menu button - DIPERBAIKI */
.mobile-menu-btn {
    display: none; /* Default hidden di desktop */
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--hijau);
    cursor: pointer;
    z-index: 1001;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #f5f5f5;
    transition: all 0.3s;
    position: relative;
    padding: 0;
}

/* Hover state */
.mobile-menu-btn:hover {
    background: var(--hijau-muda);
    color: white;
}

/* Style untuk icon di dalam button */
.mobile-menu-btn .hamburger-icon,
.mobile-menu-btn .close-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* HAMBURGER ICON TAMPIL saat menu tertutup */
.mobile-menu-btn:not(.active) .hamburger-icon {
    display: flex;
    opacity: 1;
}

.mobile-menu-btn:not(.active) .close-icon {
    display: none;
    opacity: 0;
}

/* CLOSE ICON TAMPIL saat menu terbuka */
.mobile-menu-btn.active .hamburger-icon {
    display: none;
    opacity: 0;
}

.mobile-menu-btn.active .close-icon {
    display: flex;
    opacity: 1;
}

/* HAPUS SEMUA STYLE LAMA untuk mobile-menu-close */
.mobile-menu-close {
    display: none !important;
}

/* Menu overlay */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Navigation links for mobile - DIPERBAIKI */
.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

/* Mobile responsive - TAMPILKAN button */
@media (max-width: 992px) {
    .mobile-menu-btn {
        display: flex !important; /* FORCE DISPLAY */
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: white;
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 30px 30px;
        box-shadow: 5px 0 20px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        transition: left 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        overflow-y: auto;
        gap: 0;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links a {
        width: 100%;
        padding: 15px 0;
        font-size: 1.1rem;
        border-bottom: 1px solid #f0f0f0;
        display: block;
        color: #333;
        text-decoration: none;

        font-size: 1.3rem;
        padding: 18px 0;
        border: none;
    }
    
    /* WhatsApp button inside mobile menu */
    .nav-links .btn-whatsapp.mobile-only {
        display: inline-flex !important;
        margin-top: 20px;
        width: 100%;
        justify-content: center;
    }
    
    /* Hide desktop WhatsApp button */
    .desktop-only {
        display: none !important;
    }
}

/* ===== FIX LAYOUT ISSUES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    max-width: 100%; /* Tambahkan ini */
}

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
}

/* Fix untuk container dan elemen yang mungkin overflow */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    overflow: visible; /* Pastikan overflow visible */
}

/* Fix untuk header dan elemen dengan box-shadow yang bisa cause overflow */
header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

/* Fix untuk gambar agar tidak overflow */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Fix untuk hero section */
.hero {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* ===== WHATSAPP BUTTON STYLES ===== */
.whatsapp-btn {
    display: inline-flex !important; /* Force display */
    margin-left: 10px;
}

/* Desktop: Tampil di navbar */
@media (min-width: 993px) {
    .whatsapp-btn {
        display: inline-flex !important;
    }
    
    .nav-links {
        display: flex;
        align-items: center;
        gap: 25px;
    }
}

/* Mobile: WhatsApp button di dalam menu */
@media (max-width: 992px) {
    .whatsapp-btn {
        display: inline-flex !important;
        margin-top: 20px;
        width: 100%;
        justify-content: center;
        order: 100; /* Pastikan di bawah */
    }
    
    .nav-links {
        /* ... styles existing ... */
    }
}

/* ===== FIX MOBILE MENU BUGS ===== */
@media (max-width: 992px) {
    /* Force hide nav-links default */
    .nav-links:not(.active) {
        display: none;
    }
    
    .nav-links.active {
        display: flex;
        left: 0;
        transform: translateX(0);
    }
    
    /* Pastikan logo tidak terlalu besar di mobile */
    .logo-img {
        height: 40px;
        max-width: 120px;
    }
    
    /* Fix header container untuk mobile */
    .header-container {
        padding: 10px 0;
        flex-wrap: nowrap;
    }
    
    /* Pastikan mobile menu button selalu visible */
    .mobile-menu-btn {
        display: flex !important;
        position: relative;
        z-index: 1001;
        flex-shrink: 0; /* Tidak mengecil */
    }
}

/* ===== FIX SCROLL HORIZONTAL ===== */
/* Cari elemen yang mungkin menyebabkan overflow */
.hero-badge, .btn, .product-card, .benefit-card,
.gallery-item, .spec-card, .timeline-content,
.method-card, .strategy-card {
    max-width: 100%;
}

/* Fix untuk tabel yang mungkin overflow */
.method-table {
    overflow-x: auto;
    max-width: 100%;
    display: block;
}

.method-table table {
    min-width: 300px; /* Minimum width */
}


/* Fix untuk products grid */
.products-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

/* default */
.mobile-menu-btn .close-icon {
    display: none;
}

/* saat menu aktif */
.mobile-menu-btn.active .hamburger-icon {
    display: none;
}

.mobile-menu-btn.active .close-icon {
    display: inline-block;
}
.mobile-menu-btn i {
    line-height: 1;
    display: block;
    padding-top: 20%;
}
.mobile-menu-btn .hamburger-icon,
.mobile-menu-btn .close-icon {
    transform: translate(-50%, -50%);
}
