/* Reset default margins and padding */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: url('image/herb-fruit-background.jpg') no-repeat center center fixed;
    background-size: cover;
    color: #2f4f2f;
    position: relative;
}

/* Overlay for readability */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(240, 247, 232, 0.8);
    z-index: -1;
}

/* Hamburger Menu Styles */
.menu {
    background-color: #4a704a;
    padding: 15px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.menu-toggle {
    display: none;
    font-size: 24px;
    color: white;
    padding: 10px;
    cursor: pointer;
}

.menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    background-color: #4a704a;
}

.menu-list li {
    margin: 0 15px;
}

.menu-list a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    display: block;
    padding: 10px;
}

.menu-list a:hover, .menu-list a:focus {
    color: #d4e4d4;
}

/* Header Styles */
.header {
    text-align: center;
    padding: 50px 20px;
    background-color: #8ab58a;
    margin-top: 70px;
    animation: fadeBounce 1.5s ease-out forwards;
}

.header h1 {
    font-size: 48px;
    margin: 0;
}

.header p {
    font-size: 20px;
    font-style: italic;
}

/* Herbs, Fruits, and Blog Sections */
.herbs, .fruits, .blog-posts {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px;
}

.herbs h2, .fruits h2 {
    width: 100%;
    text-align: center;
    font-size: 32px;
    margin-bottom: 20px;
}

.herbs h2 {
    color: #4a704a;
}

.fruits h2 {
    color: #e67e22;
}

/* Herb Cards */
.herb-card {
    background-color: white;
    width: 300px;
    margin: 15px;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s;
    border: 2px solid #8ab58a;
    animation: popWiggle 1s ease-out forwards;
}

.herb-card:hover {
    transform: scale(1.05);
}

.herb-card h3 {
    color: #4a704a;
}

.herb-card h4 {
    font-size: 16px;
    color: #555;
    margin: 10px 0 5px;
}

.herb-card img {
    width: 100%;
    border-radius: 5px;
    height: 200px;
    object-fit: cover;
}

.herb-card button {
    background-color: #4a704a;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 5px;
}

.herb-card button:hover {
    background-color: #2f4f2f;
}

/* Fruit Cards */
.fruit-card {
    background-color: #fff5e6;
    width: 300px;
    margin: 15px;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s;
    border: 2px solid #e67e22;
    animation: popWiggle 1s ease-out forwards;
}

.fruit-card:hover {
    transform: scale(1.05);
}

.fruit-card h3 {
    color: #e67e22;
}

.fruit-card h4 {
    font-size: 16px;
    color: #555;
    margin: 10px 0 5px;
}

.fruit-card img {
    width: 100%;
    border-radius: 5px;
    height: 200px;
    object-fit: cover;
}

.fruit-card button {
    background-color: #e67e22;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 5px;
}

.fruit-card button:hover {
    background-color: #d35400;
}

/* Price Styling */
.price {
    font-size: 18px;
    font-weight: bold;
    color: #2f4f2f;
    margin: 10px 0;
}

.herb-card .price {
    color: #4a704a;
}

.fruit-card .price {
    color: #e67e22;
}

/* Blog Posts */
.blog-posts {
    max-width: 800px;
    margin: 20px auto;
}

.blog-post {
    background-color: white;
    width: 300px;
    margin: 15px;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s;
    animation: popWiggle 1s ease-out forwards;
}

.blog-post:hover {
    transform: scale(1.05);
}

.blog-post h2 {
    color: #4a704a;
    font-size: 24px;
    margin-bottom: 10px;
}

.blog-post h3 {
    font-size: 18px;
    color: #555;
    margin: 10px 0 5px;
}

.blog-post p {
    font-size: 16px;
    margin-bottom: 10px;
}

.blog-post button {
    background-color: #4a704a;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 5px;
}

.blog-post button:hover {
    background-color: #2f4f2f;
}

/* About Content */
.about-content {
    max-width: 800px;
    margin: 20px auto;
    padding: 0 20px;
}

.about-section {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    padding: 15px;
    animation: popWiggle 1s ease-out forwards;
}

.about-section h2 {
    color: #4a704a;
    font-size: 24px;
    margin-bottom: 10px;
}

.about-section p {
    font-size: 16px;
}

/* Contact Content */
.contact-content {
    max-width: 800px;
    margin: 20px auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.contact-info, .contact-form {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 15px;
    width: 100%;
    max-width: 380px;
    margin-bottom: 20px;
    animation: popWiggle 1s ease-out forwards;
}

.contact-info h2, .contact-form h2 {
    color: #4a704a;
    font-size: 24px;
    margin-bottom: 10px;
}

.contact-info p {
    font-size: 16px;
    margin-bottom: 10px;
}

.contact-info a {
    color: #4a704a;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

.contact-info button {
    background-color: #4a704a;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 5px;
}

.contact-info button:hover {
    background-color: #2f4f2f;
}

.contact-form label {
    display: block;
    font-size: 16px;
    margin-bottom: 5px;
}

.contact-form input, .contact-form textarea {
    width: 80%;
    padding: 8px;
    margin: 5px 0;
    border: 1px solid #4a704a;
    border-radius: 5px;
}

.contact-form textarea {
    height: 100px;
    resize: vertical;
}

.contact-form button {
    background-color: #4a704a;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 5px;
}

.contact-form button:hover {
    background-color: #2f4f2f;
}

/* Footer */
.footer {
    text-align: center;
    padding: 20px;
    background-color: #4a704a;
    color: white;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 1000;
    animation: slideUp 1s ease-out forwards;
}

.footer a {
    color: #d4e4d4;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* Spacer */
.spacer {
    height: 80px;
}

/* Chatbot Styling */
.chatbot-container {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: #4a704a;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 1001;
    transition: all 0.3s ease;
}

.chatbot-container.active {
    width: 80%;
    max-width: 300px;
    height: auto;
    border-radius: 10px;
}

.chatbot-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    animation: pulse 2s infinite ease-in-out;
}

.chatbot-content {
    display: none;
    background-color: white;
    border-radius: 10px;
}

.chatbot-container.active .chatbot-content {
    display: block;
}

.chatbot-header {
    background-color: #4a704a;
    color: white;
    padding: 10px;
    text-align: center;
    font-size: 16px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.chatbot-messages {
    padding: 10px;
    background-color: #f9f9f9;
    min-height: 100px;
    max-height: 50vh;
    overflow-y: auto;
    font-size: 14px;
}

.chatbot-user-message {
    text-align: right;
    color: #2f4f2f;
    margin: 5px 0;
}

.chatbot-bot-message {
    text-align: left;
    color: #4a704a;
    margin: 5px 0;
}

.chatbot-bot-message a {
    color: #4a704a;
    text-decoration: underline;
}

.chatbot-input {
    padding: 10px;
    background-color: white;
    border-top: 1px solid #8ab58a;
    display: flex;
}

.chatbot-input input {
    flex-grow: 1;
    padding: 8px;
    border: 1px solid #4a704a;
    border-radius: 4px;
    margin-right: 10px;
    font-size: 16px;
}

.chatbot-input button {
    background-color: #4a704a;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.chatbot-input button:hover {
    background-color: #2f4f2f;
}

/* WhatsApp Styling */
.whatsapp-button {
    display: inline-flex;
    align-items: center;
    background-color: #25D366;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    margin-top: 10px;
    font-weight: bold;
}

.whatsapp-button i {
    margin-right: 8px;
    font-size: 20px;
}

.whatsapp-button:hover {
    background-color: #20BD57;
}

.whatsapp-widget {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1001;
}

.whatsapp-link {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.5s ease;
}

.whatsapp-link:hover {
    background-color: #20BD57;
    transform: rotate(360deg);
}

.whatsapp-link i {
    font-size: 30px;
}

/* Instagram Styling */
.instagram-widget {
    position: fixed;
    bottom: 90px;
    left: 20px;
    z-index: 1001;
}

.instagram-link {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e1306c;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.instagram-link:hover {
    background-color: #c13584;
}

.instagram-link i {
    font-size: 30px;
}

/* Falling Leaves Animation */
.leaf-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.leaf-background::before {
    content: '🍃';
    position: absolute;
    font-size: 20px;
    opacity: 0.2;
    animation: fall 8s linear infinite;
}

.leaf-background::after {
    content: '🍃';
    position: absolute;
    font-size: 20px;
    opacity: 0.2;
    left: 70%;
    animation: fall 10s linear infinite;
}

/* Animations */
@keyframes fall {
    0% { transform: translateY(-100vh) rotate(0deg); }
    100% { transform: translateY(100vh) rotate(360deg); }
}

@keyframes fadeBounce {
    0% { opacity: 0; transform: translateY(-20px); }
    60% { opacity: 1; transform: translateY(5px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes popWiggle {
    0% { transform: scale(0.8); opacity: 0; }
    70% { transform: scale(1.05); opacity: 1; }
    85% { transform: scale(1) rotate(2deg); }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes slideUp {
    0% { transform: translateY(20px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

/* Fact Popup */
.fact-popup {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(76, 175, 80, 0.9);
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1002;
    max-width: 90%;
    text-align: center;
    font-size: 16px;
    opacity: 0;
    pointer-events: none;
}

.fact-popup.show {
    animation: slideInFade 6s ease-out forwards;
}

@keyframes slideInFade {
    0% { opacity: 0; top: -100px; }
    15% { opacity: 1; top: 20px; }
    85% { opacity: 1; top: 20px; }
    100% { opacity: 0; top: -100px; }
}

/* Accessibility */
button:focus, a:focus {
    outline: 2px solid #d4e4d4;
}

/* Responsive Design Adjustments */
@media (max-width: 1024px) {
    .header h1 { font-size: 40px; }
    .header p { font-size: 18px; }
    .herb-card, .fruit-card, .blog-post { width: 45%; }
    .chatbot-container { bottom: 100px; }
    .whatsapp-widget { bottom: 20px; left: 20px; }
    .instagram-widget { bottom: 90px; left: 20px; }
    .spacer { height: 100px; }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    .menu-list {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #4a704a;
        padding: 10px 0;
    }
    .menu-list.active {
        display: flex;
    }
    .menu-list li {
        margin: 5px 0;
        text-align: center;
    }
    .menu-list a {
        font-size: 14px;
    }
    .header { padding: 40px 15px; }
    .header h1 { font-size: 36px; }
    .header p { font-size: 16px; }
    .iosi { width: 80%; }
    .chatbot-container { 
        bottom: 80px; 
        right: 15px; 
        width: 40px; 
        height: 40px; 
    }
    .chatbot-icon { font-size: 20px; }
    .chatbot-container.active { 
        width: 90%; 
        max-width: 280px; 
        bottom: 60px; 
    }
    .whatsapp-widget { bottom: 20px; left: 15px; }
    .whatsapp-link { width: 50px; height: 50px; }
    .whatsapp-link i { font-size: 24px; }
    .instagram-widget { bottom: 80px; left: 15px; }
    .instagram-link { width: 50px; height: 50px; }
    .instagram-link i { font-size: 24px; }
    .footer { padding: 15px; }
    .spacer { height: 120px; }
}

@media (max-width: 480px) {
    .header { padding: 30px 10px; margin-top: 60px; }
    .header h1 { font-size: 28px; }
    .header p { font-size: 14px; }
    .herb-card, .fruit-card, .blog-post { 
        width: 90%; 
        margin: 10px auto; 
        padding: 15px; 
    }
    .herb-card button, .fruit-card button, .blog-post button, .whatsapp-button { 
        padding: 8px; 
        font-size: 14px; 
    }
    .whatsapp-button i { font-size: 16px; }
    .chatbot-container { 
        bottom: 70px; 
        right: 10px; 
        width: 35px; 
        height: 35px; 
    }
    .chatbot-icon { font-size: 18px; }
    .chatbot-container.active { 
        width: 95%; 
        max-width: 260px; 
        bottom: 50px; 
        right: 5px; 
    }
    .chatbot-header { font-size: 14px; }
    .chatbot-messages { font-size: 12px; }
    .chatbot-input input { font-size: 12px; padding: 6px; }
    .chatbot-input button { font-size: 12px; padding: 6px 10px; }
    .whatsapp-widget { bottom: 20px; left: 10px; }
    .whatsapp-link { width: 40px; height: 40px; }
    .whatsapp-link i { font-size: 20px; }
    .instagram-widget { bottom: 70px; left: 10px; }
    .instagram-link { width: 40px; height: 40px; }
    .instagram-link i { font-size: 20px; }
    .footer { padding: 10px; font-size: 12px; }
    .spacer { height: 100px; }
}