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

body {
    font-family: 'Segoe UI', Tahoma, sans-serif;
    background: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

/* Spacer agar konten tidak tertutup navbar */
.nav-spacer { height: 70px; }

header {
    background: linear-gradient(135deg, #2e7d32, #66bb6a);
    color: white;
    text-align: center;
    padding: 80px 20px;
}

#header {
    position: relative;
    overflow: hidden;
    cursor: none; /* optional: sembunyikan kursor biasa */
}

#egg-trail {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 5;
}

.egg {
    position: absolute;
    font-size: 30px;
    pointer-events: none;
    user-select: none;
    animation: eggFall 1.3s forwards;
    transform: translate(-50%, -50%);
}

@keyframes eggFall {
    0%   { opacity: 1; transform: translate(-50%, -50%) rotate(0deg) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -50%) translateY(60px) rotate(360deg) scale(0.5); }
}

header h1 { font-size: 3.2rem; margin-bottom: 10px; }
header p { font-size: 1.4rem; }

nav {
    background: #1b5e20;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

nav a {
    float: left;
    color: rgb(0, 0, 0);
    text-decoration: none;
    padding: 18px 30px;
    font-weight: bold;
    transition: 0.3s;
}

nav a:hover { background: #4caf50; }

.container { max-width: 1200px; margin: 0 auto; padding: 20px; }

.section {
    background: white;
    padding: 50px;
    margin: 30px 0;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.section h2 {
    color: #2e7d32;
    font-size: 2.5rem;
    margin-bottom: 25px;
    border-bottom: 5px solid #4caf50;
    display: inline-block;
    padding-bottom: 10px;
}

.products {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.product {
    width: 320px;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: 0.4s;
}

.product:hover { transform: translateY(-15px); }

.product img { width: 100%; height: 220px; object-fit: cover; }

.product h3 { padding: 20px 20px 10px; color: #2e7d32; text-align: center; }
.product p { text-align: center; font-size: 1.2rem; padding: 0 20px 20px; }

.product button {
    margin: 0 20px 25px;
    padding: 14px;
    width: calc(100% - 40px);
    background: #4caf50;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    cursor: pointer;
}

.product button:hover { background: #388e3c; }

form { max-width: 650px; margin: 0 auto; }
form label { display: block; margin: 20px 0 8px; font-weight: bold; }
form input, form textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 1rem;
}
form button {
    margin-top: 25px;
    padding: 16px;
    width: 100%;
    background: #2e7d32;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.3rem;
    cursor: pointer;
}
form button:hover { background: #1b5e20; }

footer {
    background: #1b5e20;
    color: white;
    text-align: center;
    padding: 30px;
    margin-top: 50px;
}

/* Responsive */
@media (max-width: 768px) {
    nav a { float: none; display: block; text-align: center; }
    .product { width: 100%; }
    header h1 { font-size: 2.4rem; }
    .section { padding: 30px; }
}