/* Global Design System */
:root {
    --primary: #1b5e20;
    --primary-dark: #0d3b12;
    --secondary: #f9a825;
    --light-bg: #f8fafc;
    --white: #ffffff;
    --text-main: #334155;
    --text-muted: #64748b;
    --glass: rgba(255, 255, 255, 0.85);
}

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

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    background-color: var(--light-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--glass);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    transition: color 0.3s;
}

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

.login-btn {
    background: var(--primary);
    color: white !important;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
}

/* Hero Section - Split Panel Layout */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: stretch;
    color: white;
    overflow: hidden;
}

.hero-left {
    flex: 0 0 55%;
    background: linear-gradient(160deg, #0a2e0f 0%, #1b5e20 100%);
    display: flex;
    align-items: center;
    padding: 0 8%;
    position: relative;
    z-index: 3;
}

.hero-left::after {
    content: '';
    position: absolute;
    top: 0;
    right: -40px;
    width: 80px;
    height: 100%;
    background: linear-gradient(160deg, #0a2e0f 0%, #1b5e20 100%);
    clip-path: polygon(0 0, 0% 100%, 100% 100%);
    z-index: 2;
}

.hero-right {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.hero-video-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.5s ease-in-out, visibility 1.5s;
}

.hero-video-item.active {
    opacity: 1;
    visibility: visible;
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(10,46,15,0.3) 0%, rgba(0,0,0,0.05) 100%);
    z-index: 2;
}

.hero-content {
    max-width: 550px;
    animation: fade-up 1s ease-out;
    z-index: 3;
    position: relative;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 35px;
    opacity: 0.9;
}

.cta-btn {
    padding: 18px 40px;
    font-size: 1.1rem;
    background: var(--secondary);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 10px 20px rgba(249, 168, 37, 0.3);
}

.cta-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(249, 168, 37, 0.4);
}

/* Animal Cards */
section {
    padding: 100px 10%;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.card {
    background: white;
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.05);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}

.card-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

/* Animations */
@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Pricing Table */
.pricing-wrapper {
    overflow-x: auto;
    margin-top: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    min-width: 800px;
}

.pricing-table th {
    background: var(--primary-dark);
    color: var(--secondary);
    padding: 20px;
    font-size: 1.1rem;
    text-transform: uppercase;
    border: 1px solid rgba(255,255,255,0.2);
}

.pricing-table td {
    padding: 15px 20px;
    text-align: center;
    border: 1px solid #e2e8f0;
    font-weight: 500;
}

.pricing-table tbody tr:nth-child(even) {
    background: #f8fafc;
}

.pricing-table tbody tr:hover {
    background: #f1f5f9;
}

.weight-col {
    background: var(--primary);
    color: white;
    font-weight: 700 !important;
}

/* Kemitraan Section */
.mitra-card {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: white;
    border-radius: 24px;
    padding: 60px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 40px;
    box-shadow: 0 20px 40px rgba(13, 59, 18, 0.2);
}

.mitra-card::before {
    content: '🤝';
    position: absolute;
    font-size: 200px;
    opacity: 0.05;
    right: -20px;
    bottom: -50px;
}

.mitra-title {
    color: var(--secondary);
    font-size: 2.5rem;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.mitra-content {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 40px;
    position: relative;
    z-index: 2;
    opacity: 0.9;
}

.mitra-btn {
    background: var(--secondary);
    color: var(--primary-dark);
    padding: 15px 40px;
    font-size: 1.2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    z-index: 2;
}

.mitra-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

/* Testimonials */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.avatar {
    width: 50px;
    height: 50px;
    background: var(--accent-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* FAQ */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    margin-bottom: 15px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
}

.faq-question {
    padding: 20px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fbfcfd;
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: white;
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 200px;
}

.faq-item.active .faq-question {
    color: var(--primary);
}

/* Animations - Reveal on Scroll */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Footer Grid */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: left;
    margin-bottom: 60px;
}

.footer-col h4 {
    margin-bottom: 25px;
    color: var(--secondary);
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 700;
}

/* Mobile Toggle Styles */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 10001;
}

.mobile-toggle span {
    width: 100%;
    height: 3px;
    background: var(--primary);
    border-radius: 10px;
    transition: all 0.3s linear;
}

@media (max-width: 992px) {
    .logo-text { font-size: 1.1rem; }
}

@media (max-width: 768px) {
    nav {
        padding: 15px 5%;
    }

    .mobile-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 20px;
        transition: right 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        z-index: 10000;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li a {
        color: var(--primary-dark);
        font-size: 1.3rem;
    }

    .hero {
        flex-direction: column;
        height: auto;
        overflow: visible; /* Ensure nothing is clipped on mobile */
    }
    .hero-left {
        flex: none;
        width: 100%;
        padding: 100px 8% 60px;
        text-align: center;
    }
    .hero-content h1 { font-size: 2.2rem; }
    .hero-left::after { display: none; }
    .hero-right {
        width: 100%;
        height: 60vh;
        min-height: 400px; /* Force minimum height */
        background-color: #0a2e0f; /* Fallback brand color */
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    /* Tables */
    .pricing-wrapper {
        margin: 20px -5%; /* Pull to edges */
        padding: 0 5%;
        border-radius: 0;
    }
    
    .pricing-table {
        font-size: 0.85rem;
    }

    section {
        padding: 60px 5%;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }
}

/* Floating WhatsApp & Back to Top */
.floating-wa {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 9999;
    transition: transform 0.3s;
    animation: wa-pulse 2s infinite;
}

.floating-wa svg {
    width: 35px;
    height: 35px;
}

.floating-wa:hover {
    transform: scale(1.1);
}

@keyframes wa-pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.back-to-top {
    position: fixed;
    bottom: 110px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: var(--primary);
    border: none;
    border-radius: 50%;
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 9998;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: opacity 0.3s;
}

.back-to-top svg {
    width: 25px;
}

@media (max-width: 768px) {
    .floating-wa { width: 50px; height: 50px; bottom: 20px; right: 20px; }
    .floating-wa svg { width: 30px; }
    .back-to-top { width: 40px; height: 40px; bottom: 90px; right: 25px; }
}
