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

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    background-image: url('../images/panda-bg.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    color: #333;
    line-height: 1.6;
}

/* Header */
header {
    text-align: center;
    padding: 30px 10px;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
header h1 { font-size: 2rem; margin-bottom: 10px; }
header p { font-size: 1rem; color: #666; }

/* Cards */
.cards-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 20px;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    flex: 1 1 calc(25% - 20px);
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.card:hover { transform: translateY(-5px); }
.card img { width: 100%; height: auto; display: block; }
.card h3 { padding: 15px; font-size: 1.1rem; color: #333; }

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    margin-top: 30px;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
}

/* Gemini/Google AI Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 300px;
    max-height: 400px;
    background-color: rgba(255,255,255,0.95);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    font-family: Arial, sans-serif;
    z-index: 1000;
}
.chat-header {
    padding: 10px;
    background-color: #4CAF50;
    color: white;
    font-weight: bold;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}
.chat-body { flex: 1; padding: 10px; overflow-y: auto; font-size: 0.9rem; }
.chat-footer { display: flex; padding: 5px; }
#user-input { flex: 1; padding: 5px; border: 1px solid #ccc; border-radius: 4px; }
#send-btn { margin-left: 5px; padding: 5px 10px; background-color: #4CAF50; border: none; color: white; border-radius: 4px; cursor: pointer; }
#send-btn:hover { background-color: #45a049; }

/* Responsive */
@media (max-width: 992px) { .card { flex: 1 1 calc(50% - 20px); } }
@media (max-width: 576px) { 
    .card { flex: 1 1 100%; } 
    body { background-attachment: scroll; }
}
