/* Site.css - District Grievance Portal Custom Styles */

:root {
    /* Government Colors - Properly Scaled */
    --primary: #1e3a8a;
    --primary-dark: #1e40af;
    --secondary: #dc2626;
    --accent: #f59e0b;
    --success: #16a34a;
    --saffron: #ff9933;
    --white: #ffffff;
    --green: #138808;
    --gold: #ffd700;
    /* Neutral Colors */
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    --gradient-secondary: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    --gradient-tricolor: linear-gradient(135deg, #ff9933 0%, #ffffff 50%, #138808 100%);
    --gradient-gold: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    /* Shadows - Reduced */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    /* Fixed Sizing */
    --max-width: 1200px;
    --container-padding: 1rem;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.5;
    color: var(--gray-700);
    background: var(--white);
    overflow-x: hidden;
}

/* Enhanced Button Styles */
.btn {
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

    .btn:hover {
        transform: translateY(-1px);
    }

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    box-shadow: var(--shadow-sm);
}

    .btn-primary:hover {
        box-shadow: var(--shadow-md);
        background: var(--primary-dark);
    }

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--gray-300);
}

    .btn-outline-primary:hover {
        background: rgba(30, 58, 138, 0.05);
        border-color: var(--primary);
    }

/* Card Enhancements */
.card {
    border: none;
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

    .card:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }

/* Hero Section Styles */
.hero {
    background: var(--gradient-primary);
    padding: 4rem 0 5rem;
    position: relative;
    overflow: hidden;
}

    .hero::before {
        content: '';
        position: absolute;
        inset: 0;
        background: url('data:image/svg+xml,<svg xmlns="http://www.```org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="rgba(255,215,0,0.1)"/></svg>') repeat;
        opacity: 0.3;
    }

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 3rem;
    align-items: center;
    max-width: var(--max-width);
    margin: 0 auto;
}

.hero-text {
    color: var(--white);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 215, 0, 0.2);
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: var(--white);
    padding: 0.75rem 1.25rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.25rem;
    letter-spacing: -0.025em;
}

    .hero-title .gradient-text {
        background: var(--gradient-gold);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

.hero-description {
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.95;
    max-width: 28rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-hero {
    padding: 1rem 1.75rem;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    min-width: 10rem;
    justify-content: center;
}

.btn-hero-white {
    background: var(--white);
    color: var(--primary);
    box-shadow: var(--shadow-md);
}

    .btn-hero-white:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-lg);
        color: var(--primary);
    }

.btn-hero-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

    .btn-hero-outline:hover {
        background: rgba(255, 255, 255, 0.1);
        border-color: var(--white);
        color: var(--white);
    }

/* Hero Card */
.hero-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

    .hero-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: var(--gradient-tricolor);
        border-radius: 1rem 1rem 0 0;
    }

.card-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.card-subtitle {
    color: var(--gray-600);
    font-size: 0.875rem;
}

.card-tabs {
    display: flex;
    background: var(--gray-100);
    border-radius: 0.5rem;
    padding: 0.25rem;
    margin-bottom: 1.5rem;
}

.tab-button {
    flex: 1;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    border-radius: 0.375rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.3s ease;
}

    .tab-button.active {
        background: var(--white);
        color: var(--primary);
        box-shadow: var(--shadow-sm);
    }

.tab-content {
    display: none;
}

    .tab-content.active {
        display: block;
    }

/* Form Styles */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.form-control {
    width: 100%;
    padding: 0.875rem;
    border: 1px solid var(--gray-300);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    background: var(--white);
}

    .form-control:focus {
        outline: none;
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
    }

.btn-submit {
    width: 100%;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    padding: 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

    .btn-submit:hover {
        transform: translateY(-1px);
        box-shadow: var(--shadow-md);
    }

/* Stats Section */
.stats {
    padding: 4rem 0;
    background: var(--gray-50);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.stat-card {
    background: var(--white);
    padding: 1.5rem 1rem;
    border-radius: 0.75rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
    transition: all 0.3s ease;
}

    .stat-card:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }

.stat-icon {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 1rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--white);
}

.stat-card:nth-child(1) .stat-icon {
    background: var(--gradient-primary);
}

.stat-card:nth-child(2) .stat-icon {
    background: linear-gradient(135deg, var(--success) 0%, #22c55e 100%);
}

.stat-card:nth-child(3) .stat-icon {
    background: var(--gradient-gold);
}

.stat-card:nth-child(4) .stat-icon {
    background: var(--gradient-secondary);
}

.stat-number {
    font-size: 1.875rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
    display: block;
}

.stat-label {
    color: var(--gray-600);
    font-weight: 600;
    font-size: 0.875rem;
}

/* Section Styles */
.section {
    padding: 4rem 0;
    max-width: var(--max-width);
    margin: 0 auto;
}

    .section h2 {
        font-size: 2rem;
        font-weight: 700;
        color: var(--gray-900);
        margin-bottom: 2rem;
        text-align: center;
    }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
    transition: all 0.3s ease;
}

    .service-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-md);
    }

.service-icon {
    width: 3rem;
    height: 3rem;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

/* Utility Classes */
.cursor-pointer {
    cursor: pointer;
}

.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.shadow-sm {
    box-shadow: var(--shadow-sm) !important;
}

.border-radius-lg {
    border-radius: 0.5rem;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-up {
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.floating {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: var(--primary-dark);
    }

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-card {
        margin: 0 1rem;
        padding: 1.5rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .btn-hero {
        width: 100%;
        max-width: 16rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 2rem 0 3rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-card {
        margin: 0 0.5rem;
        padding: 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Alert Styles */
.alert {
    border-radius: 0.75rem;
    border: none;
    font-weight: 500;
}

.alert-success {
    background: rgba(22, 163, 74, 0.1);
    color: var(--success);
}

.alert-danger {
    background: rgba(220, 38, 38, 0.1);
    color: var(--secondary);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent);
}

.alert-info {
    background: rgba(30, 58, 138, 0.1);
    color: var(--primary);
}


/* Navbar Alignment Fixes */
.navbar .navbar-collapse {
    flex-grow: 1;
}

.navbar .navbar-nav.mx-auto {
    flex-grow: 0;
    margin: 0 auto !important;
}

.navbar .navbar-brand {
    flex-grow: 0;
    margin-right: 0;
}

/* Fix for mobile alignment */
@media (max-width: 991.98px) {
    .navbar .navbar-nav {
        text-align: center;
        margin-top: 1rem;
    }

    .navbar .d-flex {
        justify-content: center;
        margin-top: 1rem;
    }

    .navbar .nav-item {
        margin: 0.25rem 2rem;
    }
}

/* Ensure proper spacing */
.navbar .nav-link {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    white-space: nowrap;
}

    .navbar .nav-link i {
        font-size: 0.9rem;
    }

/* Brand text alignment */
.brand-text {
    line-height: 1.2;
}

    .brand-text .hindi-text,
    .brand-text h1,
    .brand-text .english-text {
        margin: 0;
        padding: 0;
    }




/* Progress Steps Styling */
.progress-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    position: relative;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
}

    .step:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 20px;
        left: 60%;
        width: 80%;
        height: 2px;
        background: #dee2e6;
        z-index: 1;
    }

    .step.active .step-number {
        background: var(--primary);
        color: white;
    }

    .step.completed .step-number {
        background: var(--success);
        color: white;
    }

    .step.completed:not(:last-child)::after {
        background: var(--success);
    }

    .step.active:not(:last-child)::after {
        background: var(--primary);
    }

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
}

.step-title {
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
}

@media (max-width: 768px) {
    .step-title {
        font-size: 0.8rem;
    }

    .step-number {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}
