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

:root {
    --primary: #2c3e50;
    --secondary: #3498db;
    --success: #27ae60;
    --warning: #f39c12;
    --danger: #e74c3c;
    --light: #ecf0f1;
    --dark: #2c3e50;
    --text: #333;
    --text-light: #666;
    --border: #bdc3c7;
    --shadow: 0 4px 6px rgba(0,0,0,0.1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
}

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

/* Header */
header {
    background: linear-gradient(135deg, var(--primary), #34495e);
    color: white;
    padding: 2rem 0;
    text-align: center;
    box-shadow: var(--shadow);
}

.logo {
    font-size: 3rem;
    margin-bottom: 1rem;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Navigation */
nav {
    background: var(--primary);
    padding: 1rem 0;
    box-shadow: var(--shadow);
}

nav .container {
    display: flex;
    gap: 2rem;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
}

nav a:hover, nav a.active {
    background: var(--secondary);
    transform: translateY(-2px);
}

/* Main Content */
main {
    padding: 3rem 0;
    min-height: 60vh;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 15px;
    margin-bottom: 3rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
    font-weight: 700;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    color: var(--text-light);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 160px;
}

.btn-primary {
    background: var(--secondary);
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(52, 152, 219, 0.3);
}

.btn-secondary {
    background: var(--light);
    color: var(--dark);
}

.btn-secondary:hover {
    background: #bdc3c7;
    transform: translateY(-3px);
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-success:hover {
    background: #219a52;
    transform: translateY(-3px);
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.9rem;
    min-width: auto;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Features Grid */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.feature-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 20px rgba(0,0,0,0.15);
}

.feature-card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

/* Stats */
.stats {
    text-align: center;
    margin-bottom: 4rem;
}

.stats h2 {
    color: var(--primary);
    margin-bottom: 2rem;
    font-size: 2rem;
}

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

.stat {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.number {
    display: block;
    font-size: 3rem;
    font-weight: bold;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.label {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Tech Stack */
.tech-stack {
    text-align: center;
    margin-top: 4rem;
}

.tech-stack h2 {
    color: var(--primary);
    margin-bottom: 2rem;
    font-size: 2rem;
}

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

.tech-item {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--secondary);
}

.tech-item strong {
    display: block;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.tech-item span {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Form Progress */
.form-progress {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
    gap: 1rem;
}

.progress-step {
    padding: 1rem 2rem;
    background: var(--light);
    border-radius: 25px;
    font-weight: 600;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.progress-step.active {
    background: var(--secondary);
    color: white;
}

/* Complaint Form */
.complaint-form {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    max-width: 800px;
    margin: 0 auto;
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Category Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.category-card {
    background: var(--light);
    padding: 2rem 1.5rem;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: var(--secondary);
}

.category-card.selected {
    background: var(--secondary);
    color: white;
    border-color: var(--secondary);
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.category-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.category-card p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Form Groups */
.form-group {
    margin-bottom: 2rem;
}

label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    font-size: 1.1rem;
}

input, select, textarea {
    width: 100%;
    padding: 14px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

/* AI Feedback */
.ai-feedback {
    margin-top: 0.75rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--secondary);
    font-size: 0.9rem;
}

.ai-tag {
    font-weight: bold;
    color: var(--secondary);
}

/* Location Group */
.location-group {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.location-group input {
    flex: 1;
}

/* Upload Area */
.upload-area {
    border: 2px dashed var(--border);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-area:hover {
    border-color: var(--secondary);
    background: #f8f9fa;
}

.file-list {
    margin-top: 1rem;
}

.file-item {
    display: flex;
    justify-content: between;
    align-items: center;
    padding: 0.75rem;
    background: var(--light);
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

/* Checkbox */
.checkbox {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: normal;
    cursor: pointer;
}

.checkbox input {
    width: auto;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-radius: 4px;
    position: relative;
}

.checkbox input:checked + .checkmark {
    background: var(--secondary);
    border-color: var(--secondary);
}

.checkbox input:checked + .checkmark::after {
    content: '✓';
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: bold;
}

/* Button Group */
.button-group {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 3rem;
}

/* Review Summary */
.review-summary {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border-left: 4px solid var(--secondary);
}

.review-summary h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.review-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.review-label {
    font-weight: bold;
    color: var(--primary);
    display: block;
    margin-bottom: 0.5rem;
}

.description-preview {
    color: var(--text-light);
    line-height: 1.5;
    margin-top: 0.5rem;
}

/* Submission Result */
.submission-result {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    max-width: 700px;
    margin: 0 auto;
}

.success-animation {
    font-size: 4rem;
    margin-bottom: 2rem;
    animation: bounce 1s ease;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-10px);}
    60% {transform: translateY(-5px);}
}

.case-number {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--success);
}

.next-steps {
    text-align: left;
    max-width: 500px;
    margin: 2rem auto 3rem;
}

.next-steps h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.timeline-preview {
    position: relative;
}

.timeline-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.timeline-badge {
    width: 40px;
    height: 40px;
    background: var(--secondary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.timeline-content {
    flex: 1;
}

.timeline-content strong {
    color: var(--primary);
    display: block;
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Status Search */
.status-search {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    text-align: center;
    margin-bottom: 3rem;
}

.status-search h2 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 2rem;
}

.status-search p {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.search-box {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto 2rem;
}

.search-box input {
    flex: 1;
    padding: 14px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
}

.demo-note {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
}

.demo-cases {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.demo-case {
    background: var(--secondary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.demo-case:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

/* Case Results */
.case-results {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    margin-bottom: 3rem;
}

.case-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--light);
}

.case-header h2 {
    color: var(--primary);
    margin: 0;
}

.case-status {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
}

.status-pending { background: #fff3cd; color: #856404; }
.status-in-progress { background: #cce7ff; color: #004085; }
.status-resolved { background: #d4edda; color: #155724; }
.status-emergency { background: #f8d7da; color: #721c24; }

.case-details {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.case-details p {
    margin-bottom: 1rem;
}

.case-details strong {
    color: var(--primary);
}

.case-timeline {
    position: relative;
    padding-left: 2rem;
}

.case-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--secondary);
}

.timeline-event {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 2rem;
}

.timeline-event::before {
    content: '';
    position: absolute;
    left: -9px;
    top: 0;
    width: 16px;
    height: 16px;
    background: var(--secondary);
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 2px var(--secondary);
}

.event-date {
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.event-content {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.event-content p {
    margin: 0;
    color: var(--text);
}

/* Portal Features */
.portal-features {
    text-align: center;
}

.portal-features h2 {
    color: var(--primary);
    margin-bottom: 3rem;
    font-size: 2rem;
}

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

.feature {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.feature h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.feature p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Footer */
footer {
    background: var(--primary);
    color: white;
    text-align: center;
    padding: 3rem 0;
    margin-top: 4rem;
}

footer p {
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    header h1 {
        font-size: 2rem;
    }

    nav .container {
        flex-direction: column;
        gap: 0.5rem;
    }

    .hero {
        padding: 2rem 1rem;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .form-progress {
        flex-direction: column;
        align-items: center;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .location-group {
        flex-direction: column;
    }

    .button-group {
        flex-direction: column;
    }

    .search-box {
        flex-direction: column;
    }

    .action-buttons {
        flex-direction: column;
    }

    .complaint-form {
        padding: 2rem 1.5rem;
    }

    .case-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .features, .stat-grid, .tech-grid, .features-grid {
        grid-template-columns: 1fr;
    }

    .complaint-form {
        padding: 1.5rem 1rem;
    }

    .submission-result {
        padding: 2rem 1rem;
    }
}