/* Hamro Awaz - Nepal Theme */
/* Inspired by Nepal's flag colors and Himalayan mountains */

:root {
    /* Nepal Theme Colors */
    --primary-color: #8b0000; /* Dark Crimson */
    --secondary-color: #003893; /* Nepal Blue */
    --accent-color: #ffffff; /* Nepal White */
    --background-dark: #0a0a0a;
    --background-darker: #050505;
    --surface-dark: #1a1a1a;
    --surface-darker: #111111;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-muted: #888888;
    --border-color: #333333;
    --gradient-primary: #dc143c;
    --gradient-secondary: #003893;
    --gradient-accent: #ffffff;
    --shadow-glow: 0 0 20px rgba(26, 26, 26, 0.3);
    --shadow-strong: 0 0 40px rgba(17, 17, 17, 0.5);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--background-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at center, rgba(26, 26, 26, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}

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

.nav-brand {
    display: flex;
    align-items: center;
}

.brand-logo {
    height: 28px;
    width: auto;
    margin-right: 10px;
    border-radius: 6px;
    object-fit: contain;
}

.brand-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 400;
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.brand-icon {
    font-size: 1.5rem;
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.brand-text {
    color: var(--primary-color);
}

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

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
    border-radius: 1px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: 0.3s;
}

/* Language Toggle Styles */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.language-toggle {
    display: flex;
    align-items: center;
}

.language-btn {
    background: var(--surface-dark);
    border: 1px solid var(--border-color);
    border-radius: 25px;
    padding: 0.5rem 1rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.language-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 20, 60, 0.3);
}

.language-text {
    font-family: 'Inter', sans-serif;
}

.language-icon {
    font-size: 1rem;
}

/* Poll Lifecycle Management Styles */
.poll-status-indicator {
    margin-top: 0.5rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-active {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-paused {
    background: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.status-ended {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.status-icon {
    font-size: 0.7rem;
}

.poll-countdown {
    margin-top: 0.5rem;
}

.countdown-timer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 10px;
    font-size: 0.8rem;
}

.countdown-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.countdown-time {
    color: #3b82f6;
    font-weight: 700;
    font-family: 'Inter', monospace;
}

/* Disabled poll styles */
.poll-card .submit-poll-btn:disabled {
    background: var(--surface-dark) !important;
    color: var(--text-secondary) !important;
    cursor: not-allowed !important;
    border: 1px solid var(--border-color) !important;
}

.poll-card .submit-poll-btn:disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: var(--background-dark);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.cosmic-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        /* Subtle dark background effects */
        radial-gradient(circle at 20% 50%, rgba(26, 26, 26, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(17, 17, 17, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(10, 10, 10, 0.05) 0%, transparent 50%);
    animation: cosmicFloat 20s ease-in-out infinite;
}

.energy-waves {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(26, 26, 26, 0.05) 50%, transparent 70%);
    animation: energyWave 15s linear infinite;
}

@keyframes cosmicFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

@keyframes energyWave {
    0% { transform: translateX(-100%) translateY(0px); }
    100% { transform: translateX(100%) translateY(-100px); }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 2rem;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
    text-align: center;
}

.title-line {
    display: block;
    animation: titleSlideUp 1s ease-out forwards;
    opacity: 0;
    transform: translateY(50px);
}

.title-line:nth-child(2) {
    animation-delay: 0.2s;
}

.highlight {
    color: var(--primary-color);
    position: relative;
}

.hero-title .highlight {
    background: linear-gradient(135deg, #dc2626, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    font-size: 0.7em;
    white-space: nowrap;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
    animation: highlightGlow 2s ease-in-out infinite alternate;
}

@keyframes titleSlideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes highlightGlow {
    from { box-shadow: 0 0 10px rgba(0, 255, 136, 0.5); }
    to { box-shadow: 0 0 20px rgba(0, 255, 136, 0.8); }
}

.hero-subtitle {
    font-size: clamp(1.25rem, 3vw, 2rem);
    font-weight: 400;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.subtitle-line {
    display: block;
    animation: subtitleSlideUp 1s ease-out 0.5s forwards;
    opacity: 0;
    transform: translateY(30px);
}

.subtitle-line:nth-child(2) {
    animation-delay: 0.7s;
}

@keyframes subtitleSlideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease-out 1s forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-cta {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 1.2s forwards;
    opacity: 0;
    transform: translateY(20px);
}

.cta-link {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.125rem;
    font-weight: 400;
    transition: all 0.3s ease;
    position: relative;
}

.cta-link:hover {
    color: #20b2aa;
    text-decoration: underline;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 400;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-button.primary {
    background: var(--primary-color);
    color: var(--background-dark);
    box-shadow: var(--shadow-glow);
}

.cta-button.primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-strong);
}

.cta-button.secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--primary-color);
}

.cta-button.secondary:hover {
    background: var(--primary-color);
    color: var(--background-dark);
    transform: translateY(-2px);
}

.cta-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.cta-button:hover .cta-icon {
    transform: translateX(4px);
}

/* World Map Section */
.world-map-section {
    padding: 6rem 0;
    background: var(--background-darker);
}

.map-header {
    text-align: center;
    margin-bottom: 4rem;
}

.map-title {
    font-size: 3rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.map-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.live-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--primary-color);
}

.live-dot {
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: livePulse 2s infinite;
}

.live-text {
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@keyframes livePulse {
    0% { 
        opacity: 1; 
        transform: scale(1);
    }
    50% { 
        opacity: 0.5; 
        transform: scale(1.2);
    }
    100% { 
        opacity: 1; 
        transform: scale(1);
    }
}

/* User Location Map */
.user-location-map {
    margin-top: 3rem;
    padding: 0;
    background: var(--surface-dark);
    border-radius: 15px;
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(26, 26, 26, 0.2);
    overflow: hidden;
}

.user-location-map .map-container {
    width: 100%;
    height: 400px;
    border-radius: 13px;
    overflow: hidden;
}

.user-location-map .leaflet-map {
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

/* Custom Leaflet map styling for user location */
.user-location-map .leaflet-container {
    background: var(--surface-dark) !important;
    border-radius: 8px !important;
}

.user-location-map .leaflet-tile-pane {
    filter: brightness(0.8) contrast(1.2) saturate(0.8);
}

.user-location-map .leaflet-popup-content-wrapper {
    background: var(--surface-dark) !important;
    color: var(--text-primary) !important;
    border-radius: 10px !important;
    border: 1px solid var(--border-color) !important;
}

.user-location-map .leaflet-popup-tip {
    background: var(--surface-dark) !important;
    border: 1px solid var(--border-color) !important;
}

.user-location-map .leaflet-popup-content {
    color: var(--text-primary) !important;
    font-family: 'Inter', sans-serif !important;
}

.user-location-map .leaflet-control-zoom a {
    background: var(--surface-dark) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-color) !important;
}

.user-location-map .leaflet-control-zoom a:hover {
    background: var(--primary-color) !important;
    color: var(--background-dark) !important;
}

/* Custom marker styles */
.custom-marker {
    background: var(--primary-color);
    border: 3px solid var(--background-dark);
    border-radius: 50%;
    animation: markerPulse 2s infinite;
}

.current-location-marker {
    background: #ff0000;
    border: 3px solid #ffffff;
    border-radius: 50%;
    animation: currentLocationPulse 1.5s infinite;
}

@keyframes markerPulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes currentLocationPulse {
    0% { 
        transform: scale(1); 
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7);
    }
    70% { 
        transform: scale(1.1); 
        box-shadow: 0 0 0 10px rgba(255, 0, 0, 0);
    }
    100% { 
        transform: scale(1); 
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0);
    }
}

/* Custom marker styles */
.custom-marker {
    background: var(--primary-color);
    border: 3px solid var(--background-dark);
    border-radius: 50%;
    width: 20px !important;
    height: 20px !important;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.5);
    animation: pulse 2s infinite;
}

/* Current location marker */
.current-location-marker {
    background: #ff0000 !important;
    border: 3px solid #ffffff !important;
    border-radius: 50% !important;
    width: 12px !important;
    height: 12px !important;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.8) !important;
    animation: currentLocationPulse 1.5s infinite !important;
}

@keyframes currentLocationPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.8);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(255, 0, 0, 0.4);
        transform: scale(1.1);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0);
        transform: scale(1);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 255, 136, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 255, 136, 0);
    }
}

.map-stats {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: var(--surface-dark);
    border-radius: 15px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-weight: 500;
}

/* Polling Section */
.polls-section {
    padding: 6rem 0;
    background: var(--background-dark);
}

.polls-header {
    text-align: center;
    margin-bottom: 4rem;
}

.polls-title {
    font-size: 3rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.polls-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.polls-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    max-width: 800px;
    margin: 0 auto;
}

.poll-card {
    background: var(--surface-dark);
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

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

.poll-header {
    margin-bottom: 2rem;
}

.poll-question {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.poll-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.poll-category {
    background: var(--surface-dark);
    color: var(--text-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 400;
    border: 1px solid var(--border-color);
}

.poll-responses {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.poll-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.poll-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--surface-darker);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.poll-option:hover {
    background: var(--surface-dark);
    border-color: var(--primary-color);
}

.poll-option input[type="radio"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.poll-option input[type="radio"]:checked {
    border-color: var(--primary-color);
    background: var(--primary-color);
}

.poll-option input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: var(--background-dark);
    border-radius: 50%;
}

.option-text {
    flex: 1;
    color: var(--text-primary);
    font-weight: 500;
}

.option-bar {
    position: relative;
    width: 100px;
    height: 8px;
    background: var(--surface-dark);
    border-radius: 4px;
    overflow: hidden;
}

.option-fill {
    height: 100%;
    background: var(--text-primary);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.option-percentage {
    position: absolute;
    right: -40px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 400;
}

.submit-poll-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: var(--surface-dark);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-weight: 400;
    font-size: 1.125rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-poll-btn:hover {
    background: #20b2aa;
    color: var(--text-primary);
    border-color: #20b2aa;
    transform: translateY(-2px);
    box-shadow: var(--shadow-strong);
}

.submit-poll-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

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

.gallery-header {
    text-align: center;
    margin-bottom: 4rem;
}

.gallery-title {
    font-size: 3rem;
    font-weight: 400;
    margin-bottom: 2rem;
    background: var(--primary-color);
    color: var(--primary-color);
}

.gallery-filters {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background: transparent;
    color: var(--text-secondary);
    border: 2px solid var(--border-color);
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--surface-dark);
    color: var(--text-primary);
    border-color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

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

.gallery-item {
    opacity: 1;
    transform: scale(1);
    transition: all 0.3s ease;
}

.gallery-item.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

.item-card {
    background: var(--surface-dark);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
}

.item-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-strong);
    border-color: var(--primary-color);
}

.item-image {
    position: relative;
    height: 250px;
    background: var(--surface-darker);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.image-icon {
    font-size: 4rem;
    filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.5));
}

.item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.item-card:hover .item-overlay {
    opacity: 1;
}

.view-btn {
    padding: 0.75rem 1.5rem;
    background: var(--surface-dark);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-btn:hover {
    background: #20b2aa;
    color: var(--text-primary);
    border-color: #20b2aa;
    transform: scale(1.05);
    box-shadow: var(--shadow-glow);
}

.item-content {
    padding: 1.5rem;
}

.item-title {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.item-description {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* About Section */
.about {
    padding: 6rem 0;
    background: var(--background-dark);
}

.about-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.about-title {
    font-size: 3rem;
    font-weight: 400;
    margin-bottom: 2rem;
    background: var(--secondary-color);
    color: var(--primary-color);
}

.about-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.8;
}

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

.feature-item {
    text-align: center;
    padding: 2rem;
    background: var(--surface-dark);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-item h3 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

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

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: var(--background-darker);
}

.contact-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-title {
    font-size: 3rem;
    font-weight: 400;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.contact-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.8;
}

.contact-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: var(--surface-dark);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 50px;
    border: 2px solid var(--border-color);
    font-weight: 400;
    transition: all 0.3s ease;
}

.contact-link:hover {
    background: var(--primary-color);
    color: var(--background-dark);
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.contact-icon {
    font-size: 1.25rem;
}

/* Footer */
.footer {
    padding: 3rem 0;
    background: var(--background-dark);
    border-top: 1px solid var(--border-color);
}

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

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 400;
    font-size: 1.25rem;
}

.footer-icon {
    font-size: 1.5rem;
    color: var(--text-primary);
}

.footer-text {
    color: var(--text-primary);
}

.footer-copyright p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--background-darker);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: left 0.3s ease;
        z-index: 1000;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu .nav-link {
        margin: 1rem 0;
        font-size: 1.2rem;
        padding: 1rem 2rem;
        border-radius: 10px;
        background: var(--surface-dark);
        width: 80%;
        text-align: center;
        transition: all 0.3s ease;
    }
    
    .nav-menu .nav-link:hover {
        background: var(--primary-color);
        transform: translateY(-2px);
    }
    
    .nav-actions {
        gap: 0.5rem;
    }
    
    .language-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .cta-button {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .map-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        min-height: auto;
    }
    
    .map-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .user-location-map {
        margin-top: 2rem;
        padding: 0;
    }
    
    .user-location-map .map-container {
        height: 300px;
    }
    
    .stat-item {
        flex: 1;
        margin: 0 0.5rem;
        padding: 1.5rem 1rem;
    }
    
    .poll-card {
        padding: 1.5rem;
        margin: 1rem 0;
    }
    
    .poll-question {
        font-size: 1.25rem;
        line-height: 1.4;
        margin-bottom: 1rem;
    }
    
    .poll-option {
        padding: 1rem;
        margin: 0.75rem 0;
        border-radius: 12px;
        background: var(--surface-darker);
        transition: all 0.3s ease;
    }
    
    .poll-option:hover {
        background: var(--surface-dark);
        transform: translateY(-1px);
    }
    
    .option-text {
        font-size: 1rem;
        line-height: 1.4;
        margin-bottom: 0.5rem;
        display: block;
    }
    
    .option-bar {
        width: 100%;
        height: 8px;
        margin-top: 0.5rem;
    }
    
    .option-percentage {
        position: static;
        display: block;
        text-align: right;
        margin-top: 0.25rem;
        font-size: 0.9rem;
        font-weight: 600;
    }
    
    .submit-poll-btn {
        padding: 1.25rem 2rem;
        font-size: 1.1rem;
        margin-top: 1.5rem;
        min-height: 50px;
    }
    
    .leaflet-map {
        height: 300px;
    }
    
    .contact-links {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-link {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    .hero-content {
        padding: 0 1rem;
    }
    
    .gallery-title,
    .about-title,
    .contact-title {
        font-size: 2rem;
    }
    
    .gallery-filters {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    /* Enhanced mobile touch targets */
    .poll-option {
        padding: 1.25rem;
        margin: 1rem 0;
        min-height: 60px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .poll-option input[type="radio"] {
        width: 20px;
        height: 20px;
        margin-right: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .option-text {
        font-size: 1.1rem;
        line-height: 1.3;
        margin-bottom: 0.75rem;
    }
    
    .poll-question {
        font-size: 1.1rem;
        line-height: 1.3;
    }
    
    .submit-poll-btn {
        padding: 1.5rem 2rem;
        font-size: 1.2rem;
        min-height: 60px;
        border-radius: 15px;
    }
    
    .nav-menu .nav-link {
        padding: 1.5rem 2rem;
        font-size: 1.3rem;
        min-height: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .nav-toggle {
        padding: 1rem;
        min-height: 50px;
        min-width: 50px;
    }
    
    .nav-toggle span {
        width: 30px;
        height: 4px;
    }
    
    /* Additional mobile optimizations */
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-title .highlight {
        font-size: 0.65em;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        line-height: 1.4;
    }
    
    .polls-title {
        font-size: 2.2rem;
    }
    
    .polls-description {
        font-size: 1rem;
        line-height: 1.5;
    }
    
    .poll-category {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
    
    .poll-responses {
        font-size: 0.9rem;
    }
    
    .stat-item {
        padding: 1.25rem 0.75rem;
        margin: 0.5rem 0;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
}

/* Extra small screens (320px and below) */
@media (max-width: 320px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-title .highlight {
        font-size: 0.6em;
    }
    
    .polls-title {
        font-size: 1.8rem;
    }
    
    .poll-question {
        font-size: 1rem;
    }
    
    .option-text {
        font-size: 1rem;
    }
    
    .submit-poll-btn {
        font-size: 1.1rem;
        padding: 1.25rem 1.5rem;
    }
}

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

/* Location Modal Styles */
.location-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.location-modal .modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.location-modal .modal-content {
    position: relative;
    background: var(--surface-dark);
    border-radius: 20px;
    max-width: 400px;
    width: 100%;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease;
}

.location-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

.location-modal .modal-header h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 400;
    margin: 0;
}

.location-modal .modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.location-modal .modal-close:hover {
    color: var(--primary-color);
}

.location-modal .modal-body {
    padding: 2rem;
}

.location-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 2rem;
}

.location-stats .stat {
    text-align: center;
}

.location-stats .stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 400;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.location-stats .stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.location-modal .modal-body p {
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 2rem;
}

.location-modal .modal-actions {
    text-align: center;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background-darker);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}
