body {
    margin: 0;
    overflow: hidden;
    background-color: #f0f0f0;
    font-family: Arial, sans-serif;
}

/* Button Container Styles */
.button-container {
    position: fixed;
    left: 20px;
    top: 20px;
    bottom: 60px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 300px;
    z-index: 1000;
    overflow-y: auto;
    padding: 10px;
    padding-right: 15px;
    max-height: calc(100vh - 80px);
    scrollbar-width: thin;
}

/* Styling for scrollbar - button container */
.button-container::-webkit-scrollbar {
    width: 8px;
}

.button-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.button-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.button-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.button-card {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;

/* Modal content styles */
.modal-content {
    max-height: 90vh;
    overflow-y: auto;
    padding: 20px;
}

.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.feature-group {
    margin-bottom: 20px;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
}

.feature-group h4 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.feature-group ul {
    margin: 0;
    padding-left: 20px;
}

.feature-group li {
    margin-bottom: 8px;
}

.benefits-section {
    background: #e8f4fc;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
}

.tech-section {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
}

.tech-section ul ul {
    margin-top: 10px;
    margin-bottom: 15px;
}

/* Contact Form Styles */
.contact-form {
    padding: 0;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    margin-bottom: 10px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: normal;
    color: #333;
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 5px;
    border: 1px solid #ccc;
    font-size: 14px;
    background-color: #fff;
    color: #333;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.1);
    transform: translateY(-1px);
}

.form-group input:hover,
.form-group textarea:hover {
    border-color: #bdc3c7;
}

.form-group input[readonly] {
    background-color: #f8fafc;
    cursor: not-allowed;
    border-color: #e2e8f0;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.submit-button {
    background-color: #2196F3;
    color: white;
    border: none;
    padding: 8px 15px;
    cursor: pointer;
    font-size: 14px;
    width: auto;
    align-self: flex-end;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.submit-button:hover {
    background-color: #1976D2;
}

.submit-button i {
    font-size: 14px;
}

.contact-button {
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.2);
}

.contact-button:hover {
    background: linear-gradient(45deg, #2980b9, #2c3e50);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.3);
    color: white;
}

.contact-button:active {
    transform: translateY(0);
}

.contact-button i {
    margin-right: 8px;
    font-size: 16px;
}

/* Modal specific styles for contact form */
.modal .modal-content {
    max-width: 500px;
    margin: 40px auto;
    padding: 20px;
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.modal h2 {
    color: #333;
    margin: 0 0 20px 0;
    padding: 0 0 10px 0;
    font-size: 20px;
    border-bottom: 2px solid #eee;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal h2 i {
    font-size: 28px;
}

.modal .close-modal {
    color: #666;
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 20px;
    cursor: pointer;
    text-decoration: none;
}

.modal .close-modal:hover {
    color: #333;
}

/* Animation for form elements */
.form-group {
    animation: slideUp 0.4s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered animation delay for form groups */
.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.2s; }
.form-group:nth-child(3) { animation-delay: 0.3s; }
.form-group:nth-child(4) { animation-delay: 0.4s; }
.form-group:nth-child(5) { animation-delay: 0.5s; }
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-height: 320px;
    overflow-y: auto;
    scrollbar-width: thin;
}

.button-card::-webkit-scrollbar {
    width: 8px;
}
.button-card::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}
.button-card::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}
.button-card::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.button-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.button-card:nth-child(1) .card-icon {
    color: #3F51B5;
    background-color: #E8EAF6;
}

.button-card:nth-child(2) .card-icon {
    color: #F44336;
    background-color: #FFEBEE;
}

/* Card Container Styles */
.card-container {
    position: fixed;
    right: 20px;
    top: 20px;
    bottom: 60px; /* Increased to ensure space for footer */
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 300px;
    z-index: 100;
    overflow-y: auto;
    padding: 10px;
    padding-right: 15px; /* Extra padding for scrollbar */
    max-height: calc(100vh - 80px); /* Adjusted to ensure all content is visible */
    scrollbar-width: thin;
}

/* Styling for scrollbar */
.card-container::-webkit-scrollbar {
    width: 8px;
}

.card-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.card-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.card-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.card {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-height: 320px;
    overflow-y: auto;
    scrollbar-width: thin;
}

.card::-webkit-scrollbar {
    width: 8px;
}
.card::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}
.card::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}
.card::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.card-icon {
    font-size: 40px;
    margin-bottom: 15px;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.card:nth-child(1) .card-icon {
    color: #1565C0;
    background-color: #E3F2FD;
}

.card:nth-child(2) .card-icon {
    color: #2E7D32;
    background-color: #E8F5E9;
}

.card:nth-child(3) .card-icon {
    color: #0097A7;
    background-color: #E0F7FA;
}

.card h2, .button-card h2 {
    margin: 0 0 10px 0;
    font-size: 20px;
    color: #333;
}

.card p, .button-card p {
    margin: 0 0 20px 0;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

.card-button {
    background-color: transparent;
    color: #2196F3;
    border: 1px solid #2196F3;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s, color 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.card:nth-child(1) .card-button {
    color: #1565C0;
    border-color: #1565C0;
}

.card:nth-child(2) .card-button {
    color: #2E7D32;
    border-color: #2E7D32;
}

.card:nth-child(3) .card-button {
    color: #0097A7;
    border-color: #0097A7;
}

.button-card:nth-child(1) .card-button {
    color: #3F51B5;
    border-color: #3F51B5;
}

.button-card:nth-child(2) .card-button {
    color: #F44336;
    border-color: #F44336;
}

.card-button:hover {
    background-color: #2196F3;
    color: white;
}

.card:nth-child(1) .card-button:hover {
    background-color: #1565C0;
}

.card:nth-child(2) .card-button:hover {
    background-color: #2E7D32;
}

.card:nth-child(3) .card-button:hover {
    background-color: #0097A7;
}

.button-card:nth-child(1) .card-button:hover {
    background-color: #3F51B5;
}

.button-card:nth-child(2) .card-button:hover {
    background-color: #F44336;
}

#container {
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    text-align: center;
    padding: 10px 0;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s;
}

.modal-content {
    background-color: #f8f9fa;
    margin: 10% auto;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    width: 70%;
    max-width: 800px;
    animation: slideIn 0.4s;
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover {
    color: #333;
}

.service-section {
    margin-bottom: 25px;
    padding: 15px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.service-section h3 {
    color: #2c3e50;
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-section ul {
    padding-left: 20px;
}

.service-section li {
    margin-bottom: 8px;
}

.contact-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.contact-button:hover {
    background-color: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Barangay Inhabitants Modal Specific Styles */
.inhabitants-modal {
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
}

.inhabitants-modal h2 {
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.inhabitants-modal h3 {
    color: #2980b9;
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 1.4em;
}

.inhabitants-modal h4 {
    color: #16a085;
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1.2em;
}

.project-section, .features-section, .tech-section, .benefits-section, .conclusion {
    margin-bottom: 30px;
}

.feature-item {
    background-color: rgba(236, 240, 241, 0.5);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.inhabitants-modal ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.inhabitants-modal li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.inhabitants-modal strong {
    color: #34495e;
}

.inhabitants-modal .conclusion {
    background-color: #f1c40f;
    color: #34495e;
    padding: 15px;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
}

/* Custom scrollbar for the inhabitants modal */
.inhabitants-modal::-webkit-scrollbar {
    width: 8px;
}

.inhabitants-modal::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.inhabitants-modal::-webkit-scrollbar-thumb {
    background: #3498db;
    border-radius: 10px;
}

.inhabitants-modal::-webkit-scrollbar-thumb:hover {
    background: #2980b9;
}

/* Contact Modal Specific Styles */
.contact-form {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 30px;
    margin-top: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.contact-form form {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.form-group input[readonly] {
    background-color: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

.submit-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px auto 0;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.submit-button:active {
    transform: translateY(-1px);
}

/* Contact Modal Header Styling */
#contactModal .modal-content h2 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin: -20px -20px 20px -20px;
    padding: 20px;
    border-radius: 10px 10px 0 0;
    text-align: center;
    font-size: 24px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

#contactModal .modal-content {
    max-width: 500px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

/* Form Animation */
.form-group {
    animation: slideInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.2s; }
.form-group:nth-child(3) { animation-delay: 0.3s; }
.form-group:nth-child(4) { animation-delay: 0.4s; }
.form-group:nth-child(5) { animation-delay: 0.5s; }

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Input Icons */
.form-group::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 38px;
    width: 16px;
    height: 16px;
    background-size: contain;
    z-index: 1;
}

.form-group:nth-child(1)::before {
    content: '📧';
    font-size: 16px;
}

.form-group:nth-child(2)::before {
    content: '👤';
    font-size: 16px;
}

.form-group:nth-child(3)::before {
    content: '✉️';
    font-size: 16px;
}

.form-group:nth-child(4)::before {
    content: '📝';
    font-size: 16px;
}

.form-group:nth-child(5)::before {
    content: '💬';
    font-size: 16px;
}

.form-group input,
.form-group textarea {
    padding-left: 40px;
}

.submit-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.submit-button:disabled:hover {
    transform: none;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    max-width: 400px;
    min-width: 300px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    animation: slideInRight 0.3s ease-out;
    font-family: 'Arial', sans-serif;
}

.notification-content {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.notification-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.notification-message {
    flex: 1;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 500;
}

.notification-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.notification-close:hover {
    background-color: rgba(0,0,0,0.1);
}

/* Notification Types */
.notification-success {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
}

.notification-error {
    background: linear-gradient(135deg, #f44336, #d32f2f);
    color: white;
}

.notification-warning {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: white;
}

.notification-info {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: white;
}

/* Animation */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 480px) {
    .notification {
        left: 20px;
        right: 20px;
        max-width: none;
        min-width: auto;
    }
}

@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

@keyframes slideIn {
    from {transform: translateY(-50px); opacity: 0;}
    to {transform: translateY(0); opacity: 1;}
}