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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-title {
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #ffd700;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.hero-content h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-card h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #ffd700;
}

.stat-card p {
    font-size: 1rem;
    opacity: 0.9;
}

/* Sections */
.section {
    padding: 80px 0;
}

.bg-light {
    background-color: #f8f9fa;
}

.section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #2c3e50;
}

/* Overview Section */
.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
}

.overview-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-left: 5px solid #3498db;
}

.overview-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.overview-card ul {
    list-style: none;
}

.overview-card li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 1.5rem;
}

.overview-card li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: bold;
}

/* Comparison Section */
.comparison-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(600px, 1fr));
    gap: 4rem;
    margin-bottom: 4rem;
}

.chart-container {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    height: 400px;
    overflow: hidden;
    word-wrap: break-word;
}

.simple-chart-container {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    height: 250px;
    margin-bottom: 1.5rem;
}

.chart-container h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.chart-container canvas {
    max-height: 400px;
}

/* City Selector */
.city-selector {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-top: 3rem;
    overflow: hidden;
}

.selector-controls {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
    align-items: center;
}

.selector-controls select {
    flex: 1;
    min-width: 220px;
    padding: 1rem;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    background-color: #f9f9f9;
    transition: border-color 0.3s ease;
}

.selector-controls select:focus {
    border-color: #3498db;
    outline: none;
}

#comparisonResults {
    margin-top: 2.5rem;
    padding: 2.5rem;
    border-radius: 12px;
    background-color: #f8f9fa;
    overflow: hidden;
    word-wrap: break-word;
    border: 2px solid #e9ecef;
}

.city-selector h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: #2c3e50;
}

.selector-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.selector-controls select {
    padding: 0.75rem 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    min-width: 200px;
}

.selector-controls select:focus {
    outline: none;
    border-color: #3498db;
}

/* Buttons */
.btn-primary, .btn-secondary {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2980b9, #1f5f8b);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.btn-secondary {
    background: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background: #7f8c8d;
    transform: translateY(-2px);
}

/* Comparison Results */
.comparison-result {
    margin-top: 2.5rem;
    padding: 3rem;
    background: #f8f9fa;
    border-radius: 15px;
    border-left: 6px solid #3498db;
    overflow: hidden;
    word-wrap: break-word;
    border: 2px solid #e9ecef;
}

.comparison-result h3 {
    margin-bottom: 2rem;
    color: #2c3e50;
    font-size: 1.5rem;
}

.comparison-result .city-stats {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    word-wrap: break-word;
}

.comparison-result .city-stats h4 {
    margin-bottom: 1rem;
    color: #2c3e50;
    font-size: 1.2rem;
}

.comparison-result .city-stats p {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Trends Section */
.trends-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(600px, 1fr));
    gap: 4rem;
}

.trend-card {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    word-wrap: break-word;
}

.trend-card h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: #2c3e50;
}

.trend-highlights {
    margin-top: 2rem;
}

.highlight {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 8px;
}

.highlight.positive {
    background: #d5f4e6;
    border-left: 4px solid #27ae60;
}

.highlight.negative {
    background: #ffeaa7;
    border-left: 4px solid #f39c12;
}

.highlight .icon {
    font-size: 1.5rem;
    font-weight: bold;
}

.highlight.positive .icon {
    color: #27ae60;
}

.highlight.negative .icon {
    color: #f39c12;
}

/* Strategies Section */
.strategies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.strategy-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.strategy-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.strategy-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.strategy-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin: 1rem 0;
    font-size: 0.9rem;
}

.strategy-stats span {
    padding: 0.3rem 0.6rem;
    border-radius: 5px;
    font-weight: 600;
}

.cost {
    background: #e8f4fd;
    color: #2980b9;
}

.effectiveness {
    background: #e8f5e8;
    color: #27ae60;
}

.reduction {
    background: #fff3cd;
    color: #f39c12;
}

.roi {
    background: #f8d7da;
    color: #e74c3c;
}

.strategy-card p {
    margin: 1rem 0;
    color: #666;
    line-height: 1.6;
}

/* Best Practices */
.best-practices {
    margin-top: 4rem;
}

.best-practices h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: #2c3e50;
}

.practices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.practice-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-top: 5px solid #3498db;
}

.practice-card h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.practice-card p {
    margin: 0.5rem 0;
    line-height: 1.6;
}

/* Calculator Section */
.calculator-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.calculator-inputs {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
}

.input-group input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}

.input-group input:focus {
    outline: none;
    border-color: #3498db;
}

.strategies-selection h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.strategy-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.checkbox-label:hover {
    background-color: #f8f9fa;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
}

.calculator-results {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.calculator-results h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: #2c3e50;
}

.result-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.result-card {
    text-align: center;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #3498db;
}

.result-card h4 {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.result-card span {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
}

.roi-display {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    border-radius: 10px;
}

.roi-display h4 {
    font-size: 1.2rem;
}

.roi-display span {
    font-size: 2rem;
    font-weight: bold;
}

/* Roadmap Section */
.roadmap-timeline {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 4rem;
}

.timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.timeline-phase {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.timeline-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid #3498db;
}

.timeline-card h4 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.timeline-details {
    padding: 0.5rem;
}

.timeline-phase:hover {
    transform: translateY(-3px);
}

.phase-header {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.phase-header h3 {
    font-size: 1.5rem;
}

.phase-budget {
    font-size: 1.2rem;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

.phase-content {
    padding: 2rem;
}

.phase-content h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.phase-content ul {
    list-style: none;
    margin-bottom: 1.5rem;
}

.phase-content li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.phase-content li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: #3498db;
    font-weight: bold;
}

.phase-metrics {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #27ae60;
}

.phase-metrics strong {
    color: #2c3e50;
}

.phase-metrics span {
    color: #27ae60;
    font-weight: 600;
}

/* Investment Summary */
.investment-summary {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.investment-summary h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: #2c3e50;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.summary-card {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 15px;
}

.summary-card h4 {
    margin-bottom: 1rem;
    opacity: 0.9;
}

.big-number {
    font-size: 2.5rem;
    font-weight: bold;
    display: block;
    margin-bottom: 0.5rem;
}

.summary-card p {
    opacity: 0.8;
}

/* Recommendations Section */
.recommendations-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.recommendation-priority {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.recommendation-priority h3 {
    color: #2c3e50;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid #3498db;
}

.priority-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.priority-item {
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 5px solid #3498db;
}

.priority-item h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.priority-item p {
    margin: 0.5rem 0;
    line-height: 1.6;
}

.priority-item p:first-of-type {
    font-weight: 600;
    color: #e74c3c;
}

/* Final Message */
.final-message {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-top: 3rem;
    text-align: center;
}

.final-message h3 {
    color: #2c3e50;
    margin-bottom: 2rem;
}

.final-message p {
    margin: 1.5rem 0;
    line-height: 1.8;
    color: #555;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: #3498db;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    padding: 0.5rem 0;
    opacity: 1;
}

.footer-section a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    opacity: 1;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #2980b9;
    text-decoration: underline;
}

.footer-section p {
    opacity: 0.8;
    line-height: 1.6;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
    opacity: 0.7;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 1rem;
    top: 1rem;
}

.close:hover {
    color: #000;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content h2 {
        font-size: 1.5rem;
    }
    
    .hero-stats {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .stat-card h3 {
        font-size: 2rem;
    }
    
    .comparison-container,
    .trends-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .chart-container,
    .trend-card,
    .city-selector {
        padding: 2rem;
    }
    
    .comparison-result {
        padding: 2rem;
    }
    
    .calculator-container {
        grid-template-columns: 1fr;
    }
    
    .selector-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .selector-controls select {
        min-width: auto;
    }
    
    .strategies-grid {
        grid-template-columns: 1fr;
    }
    
    .practices-grid {
        grid-template-columns: 1fr;
    }
    
    .summary-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
    }
    
    .result-cards {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        margin: 10% auto;
        padding: 1.5rem;
        width: 95%;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Utility classes */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.hidden {
    display: none;
}

.visible {
    display: block;
}