/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8fafc;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Emergency Banner */
.emergency-banner {
    background: linear-gradient(135deg, #dc2626, #ea580c);
    color: white;
    padding: 20px;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.emergency-banner.hidden {
    display: none;
}

.close-banner {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    opacity: 0.8;
}

.close-banner:hover {
    opacity: 1;
}

.emergency-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.emergency-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.emergency-content p {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.emergency-contacts {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.emergency-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.emergency-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.emergency-btn.primary {
    background: rgba(255, 255, 255, 0.9);
    color: #dc2626;
}

.emergency-label {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 500;
}

/* Main Header */
.main-header {
    text-align: center;
    padding: 60px 0 40px;
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    color: white;
    margin-bottom: 40px;
}

.main-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    font-weight: 300;
}

/* Section Styles */
section {
    margin-bottom: 60px;
    padding: 0 20px;
}

h2 {
    font-size: 2.2rem;
    color: #1f2937;
    margin-bottom: 15px;
    font-weight: 600;
    text-align: center;
}

/* Report Section */
.report-section {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    text-align: center;
    margin-bottom: 40px;
}

.report-section p {
    font-size: 1.1rem;
    color: #6b7280;
    margin-bottom: 25px;
}

.report-btn {
    background: linear-gradient(135deg, #059669, #10b981);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.report-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(5, 150, 105, 0.3);
}

/* Dashboard Section */
.dashboard-section {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
}

.dashboard-section p {
    text-align: center;
    color: #6b7280;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.map-container {
    position: relative;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.flood-map {
    flex: 1;
    height: 500px;
    border-radius: 8px;
    background: #e5e7eb;
    position: relative;
    overflow: hidden;
}

.flood-map::before {
    content: "Interactive Map Loading...";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #6b7280;
    font-size: 1.1rem;
}

.map-legend {
    background: #f9fafb;
    padding: 20px;
    border-radius: 8px;
    min-width: 200px;
    border: 1px solid #e5e7eb;
}

.map-legend h4 {
    margin-bottom: 15px;
    color: #374151;
    font-weight: 600;
}

.legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    margin-right: 8px;
}

.legend-color.flood-reports { background: #ef4444; }
.legend-color.road-closures { background: #f59e0b; }
.legend-color.stream-gauges { background: #3b82f6; }
.legend-color.storm-events { background: #8b5cf6; }

/* Data Usage Section */
.data-usage-section {
    margin-bottom: 60px;
}

.usage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.usage-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.usage-card:hover {
    transform: translateY(-2px);
}

.usage-card h3 {
    color: #1f2937;
    margin-bottom: 15px;
    font-size: 1.3rem;
    font-weight: 600;
}

.usage-card p {
    color: #6b7280;
    line-height: 1.6;
}

.important-notice {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
}

.important-notice h4 {
    color: #92400e;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.important-notice p {
    color: #78350f;
}

/* Photo Gallery Section */
.photo-gallery-section {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 60px;
}

.photo-carousel {
    position: relative;
    margin-bottom: 20px;
}

.photo-container {
    text-align: center;
    overflow: hidden;
    border-radius: 8px;
    height: 400px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-photo {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: background 0.3s ease;
}

.carousel-nav:hover {
    background: rgba(0, 0, 0, 0.7);
}

.carousel-nav.prev {
    left: 10px;
}

.carousel-nav.next {
    right: 10px;
}

.photo-dots {
    text-align: center;
    margin-top: 20px;
}

.dot {
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: #d1d5db;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active,
.dot:hover {
    background-color: #3b82f6;
}

/* About Section */
.about-section {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 60px;
}

.about-section p {
    color: #6b7280;
    margin-bottom: 20px;
    line-height: 1.7;
    font-size: 1.05rem;
}

.data-sources {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.source-item {
    background: #f8fafc;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
}

.source-item h4 {
    color: #1f2937;
    margin-bottom: 8px;
    font-weight: 600;
}

.source-item p {
    color: #6b7280;
    font-size: 0.95rem;
    margin: 0;
}

/* Services Section */
.services-section {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 60px;
    text-align: center;
}

.services-section h3 {
    color: #1f2937;
    margin-bottom: 25px;
    font-size: 1.5rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.service-link {
    display: block;
    padding: 15px 20px;
    background: #f8fafc;
    color: #4b5563;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.service-link:hover {
    background: #e5e7eb;
    transform: translateY(-1px);
}

.service-link.active {
    background: #3b82f6;
    color: white;
}

/* Footer */
.main-footer {
    background: #1f2937;
    color: white;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 40px;
}

.main-footer h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.main-footer p {
    margin-bottom: 20px;
    color: #d1d5db;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #60a5fa;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: block;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: slideIn 0.3s ease;
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #333;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #374151;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

form button {
    background: #3b82f6;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: background 0.3s ease;
}

form button:hover {
    background: #2563eb;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(-50px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-header h1 {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    section {
        padding: 0 15px;
    }
    
    .emergency-contacts {
        flex-direction: column;
        align-items: center;
    }
    
    .map-container {
        flex-direction: column;
    }
    
    .flood-map {
        height: 300px;
    }
    
    .usage-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .main-header {
        padding: 40px 0 30px;
    }
    
    .main-header h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .report-section,
    .dashboard-section,
    .photo-gallery-section,
    .about-section,
    .services-section {
        padding: 25px;
    }
    
    .photo-container {
        height: 250px;
    }
}
