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

:root {
    --primary-color: #c41e3a;
    --secondary-color: #0c4da2;
    --accent-color: #fcd116;
    --dark-bg: #1a1a2e;
    --light-bg: #f5f5f5;
    --text-dark: #2d3436;
    --text-light: #ffffff;
    --border-color: #dfe6e9;
    --success-color: #00b894;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--light-bg);
}

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

header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #a01828 100%);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.logo:hover {
    opacity: 0.9;
}

.logo-img {
    height: 120px;
    width: auto;
    max-width: 600px;
}

.logo h1 {
    color: var(--text-light);
    font-size: 1.8rem;
    font-weight: 700;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-left: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
}

.nav-menu a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.nav-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.lang-switcher {
    display: inline-flex;
    gap: 0.3rem;
}

.lang-btn {
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    border: none;
    padding: 0.4rem 0.75rem;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 4px;
}

.lang-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.12);
}

.lang-btn.active {
    color: white;
    background: rgba(255, 255, 255, 0.25);
    font-weight: 600;
}

.hero {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #084a8a 100%);
    color: var(--text-light);
    padding: 6rem 0;
    text-align: center;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

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

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

.btn {
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: #a01828;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn-secondary:hover {
    background-color: var(--light-bg);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.info-section {
    padding: 4rem 0;
    background-color: var(--text-light);
}

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

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

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

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

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

.card p {
    color: var(--text-dark);
    opacity: 0.8;
}

.results-section {
    padding: 4rem 0;
    background-color: var(--light-bg);
}

.results-section h2 {
    text-align: center;
    color: var(--text-dark);
    font-size: 2rem;
    margin-bottom: 2rem;
}

.results-container {
    background: var(--text-light);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 1rem;
}

.result-item:last-child {
    border-bottom: none;
}

.party-info h4 {
    color: var(--text-dark);
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

.party-info p {
    color: var(--text-dark);
    opacity: 0.7;
    font-size: 0.9rem;
}

.result-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 300px;
}

.percentage {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    min-width: 80px;
    text-align: right;
}

.progress-bar {
    flex: 1;
    height: 20px;
    background-color: var(--border-color);
    border-radius: 10px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.5s ease;
}

.stats-section {
    padding: 4rem 0;
    background-color: var(--text-light);
}

.stats-section h2 {
    text-align: center;
    color: var(--text-dark);
    font-size: 2rem;
    margin-bottom: 2rem;
}

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

.stat-box {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    color: var(--text-light);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-5px);
}

.stat-box h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

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

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.about-section {
    padding: 4rem 0;
    background-color: var(--light-bg);
}

.about-section h2 {
    text-align: center;
    color: var(--text-dark);
    font-size: 2rem;
    margin-bottom: 2rem;
}

.about-content {
    background: var(--text-light);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.about-content > p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.8;
    text-align: center;
}

.election-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.election-type {
    padding: 1.5rem;
    background: var(--light-bg);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.election-type h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.election-type p {
    color: var(--text-dark);
    opacity: 0.8;
}

footer {
    background-color: var(--dark-bg);
    color: var(--text-light);
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
}

@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
        gap: 0.5rem;
    }
    .hero-content h2 {
        font-size: 1.8rem;
    }
    .hero-content p {
        font-size: 1.1rem;
    }
    .result-stats {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
    }
    .percentage {
        text-align: left;
    }
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }
}
