/* General Page Styling */
body {
    font-family: 'Poppins', sans-serif;
    text-align: center;
    background: linear-gradient(to right, #2E8B57, #66CDAA);
    color: white;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Header Section */
header {
    padding: 30px;
    background: rgba(0, 0, 0, 0.8);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    animation: slideInDown 1s ease-in-out;
}

h1 {
    font-size: 3em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
}

h2 {
    margin-top: 30px;
    font-size: 2.5em;
    font-weight: 600;
}

/* Features Section */
#features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    padding: 40px 20px;
    animation: fadeInUp 1s ease-in-out;
}

.feature {
    width: 28%;
    min-width: 300px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: zoomIn 0.8s ease-in-out;
}

.feature:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.feature img {
    width: 100%;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.feature:hover img {
    transform: scale(1.05);
}

/* Buttons */
button {
    background: linear-gradient(to right, #FFD700, #FFA500);
    border: none;
    padding: 15px 28px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 12px;
    margin-top: 20px;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

button:hover {
    background: linear-gradient(to right, #FFA500, #FF6347);
    transform: scale(1.07);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

/* Eco Dashboard */
#eco-dashboard {
    margin: 40px auto;
    padding: 30px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 12px;
    width: 80%;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
    animation: fadeInUp 1s ease-in-out;
}

.dashboard {
    font-size: 18px;
    padding: 10px;
    text-align: left;
}

.dashboard p {
    margin: 12px 0;
    font-size: 1.2em;
}

/* Live Simulation Section */
#demo {
    margin: 40px auto;
    padding: 30px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 12px;
    width: 80%;
    animation: fadeInUp 1s ease-in-out;
}

/* Chatbot Section */
#chat-container {
    margin: 40px auto;
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 12px;
    width: 80%;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-in-out;
}

#chatbox {
    text-align: left;
    max-height: 250px;
    overflow-y: auto;
    padding: 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.15);
}

#user-input {
    width: 80%;
    padding: 12px;
    margin-top: 12px;
    border-radius: 8px;
    border: none;
    background: rgba(255, 255, 255, 0.85);
}

/* Eco Challenge Section */
#eco-challenge {
    margin: 40px auto;
    padding: 30px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 12px;
    width: 80%;
    animation: fadeInUp 1s ease-in-out;
}

/* Animations */
@keyframes slideInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .feature {
        width: 90%;
    }

    h1 {
        font-size: 2.5em;
    }

    h2 {
        font-size: 2em;
    }

    button {
        font-size: 16px;
        padding: 14px 24px;
    }

    #eco-dashboard, #demo, #chat-container, #eco-challenge {
        width: 90%;
    }
}