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

/* Remove all default focus outlines and ensure consistent behavior */
*:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Ensure buttons and links have consistent styling */
button, a, input, select, textarea {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    outline: none !important;
    border: none;
}

/* Remove any browser-specific focus rings */
a:focus, button:focus, input:focus, select:focus, textarea:focus {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8fafc;
}

.container {
    max-width: 100%;
    margin: 0;
    padding: 0 40px;
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 100%;
    margin: 0;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 85px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-logo img {
    height: 70px;
    width: auto;
}

.nav-logo h2 {
    color: #1e40af;
    font-weight: 700;
    font-size: 1.8rem;
    margin: 0;
}

.logo-large {
    height: 120px;
    width: auto;
}

.logo-medium {
    height: 80px;
    width: auto;
}

.logo-small {
    height: 45px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1rem;
}

.nav-item {
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: #64748b;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 12px;
    border-radius: 6px;
    outline: none !important;
    border: none !important;
    background: transparent;
    box-shadow: none !important;
}

.nav-link:hover,
.nav-link.active {
    color: #1e40af;
    background: rgba(30, 64, 175, 0.05);
}

.nav-link:focus {
    outline: none !important;
    box-shadow: none !important;
    background: rgba(30, 64, 175, 0.05);
}

.nav-link:active {
    outline: none !important;
    box-shadow: none !important;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: #1e40af;
    border-radius: 1px;
}

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

.bar {
    width: 25px;
    height: 3px;
    background: #1e40af;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.hero-compact {
    height: auto;
    min-height: 500px;
    padding-top: 140px;
    padding-bottom: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #06b6d4 100%);
    z-index: -2;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        /* Animated India map outline */
        radial-gradient(ellipse 250px 350px at 30% 40%, rgba(255, 255, 255, 0.12) 0%, transparent 70%),
        radial-gradient(ellipse 180px 250px at 35% 45%, rgba(255, 255, 255, 0.08) 0%, transparent 70%),
        
        /* Grid pattern for data analytics feel */
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 50px,
            rgba(255, 255, 255, 0.03) 50px,
            rgba(255, 255, 255, 0.03) 51px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 50px,
            rgba(255, 255, 255, 0.03) 50px,
            rgba(255, 255, 255, 0.03) 51px
        ),
        
        /* Diagonal data streams */
        linear-gradient(45deg, transparent 48%, rgba(255, 255, 255, 0.04) 49%, rgba(255, 255, 255, 0.04) 51%, transparent 52%),
        linear-gradient(-45deg, transparent 48%, rgba(255, 255, 255, 0.04) 49%, rgba(255, 255, 255, 0.04) 51%, transparent 52%),
        
        /* Chart bars pattern - animated */
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 60px,
            rgba(255, 255, 255, 0.05) 60px,
            rgba(255, 255, 255, 0.05) 62px,
            transparent 62px,
            transparent 70px,
            rgba(255, 255, 255, 0.08) 70px,
            rgba(255, 255, 255, 0.08) 72px
        ),
        
        /* Voting booth/ballot pattern with glow */
        radial-gradient(circle at 75% 25%, rgba(255, 255, 255, 0.1) 0%, transparent 35%),
        radial-gradient(circle at 85% 75%, rgba(255, 255, 255, 0.08) 0%, transparent 30%),
        radial-gradient(circle at 15% 80%, rgba(255, 255, 255, 0.06) 0%, transparent 25%),
        
        /* Statistical dots pattern - larger and more visible */
        radial-gradient(circle 3px at 20px 30px, rgba(255, 255, 255, 0.15), transparent),
        radial-gradient(circle 2px at 60px 80px, rgba(255, 255, 255, 0.12), transparent),
        radial-gradient(circle 2px at 110px 50px, rgba(255, 255, 255, 0.1), transparent),
        radial-gradient(circle 3px at 150px 100px, rgba(255, 255, 255, 0.13), transparent),
        radial-gradient(circle 2px at 200px 40px, rgba(255, 255, 255, 0.11), transparent);
    background-size: 
        500px 600px,
        350px 450px,
        50px 50px,
        50px 50px,
        150px 150px,
        150px 150px,
        250px 250px,
        400px 400px,
        350px 350px,
        300px 300px,
        150px 150px,
        180px 180px,
        140px 140px,
        200px 200px,
        160px 160px;
    background-position:
        30% 40%,
        35% 45%,
        0 0,
        0 0,
        0 0,
        0 0,
        0 0,
        75% 25%,
        85% 75%,
        15% 80%,
        0 0,
        30% 30%,
        60% 60%,
        80% 40%,
        40% 80%;
    animation: backgroundShift 25s ease-in-out infinite, dataFlow 15s linear infinite;
    z-index: -1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

/* Background animations */
@keyframes backgroundShift {
    0%, 100% {
        transform: translateX(0) translateY(0) scale(1);
    }
    25% {
        transform: translateX(-15px) translateY(-8px) scale(1.02);
    }
    50% {
        transform: translateX(8px) translateY(-15px) scale(1);
    }
    75% {
        transform: translateX(-8px) translateY(8px) scale(1.01);
    }
}

@keyframes dataFlow {
    0% {
        background-position:
            30% 40%,
            35% 45%,
            0 0,
            0 0,
            0 0,
            0 0,
            0 0,
            75% 25%,
            85% 75%,
            15% 80%,
            0 0,
            30% 30%,
            60% 60%,
            80% 40%,
            40% 80%;
    }
    100% {
        background-position:
            30% 40%,
            35% 45%,
            50px 50px,
            -50px -50px,
            0 0,
            0 0,
            0 0,
            75% 25%,
            85% 75%,
            15% 80%,
            150px 150px,
            180px 180px,
            140px 140px,
            200px 200px,
            160px 160px;
    }
}

.hero-content {
    max-width: 800px;
    padding: 0 40px;
    z-index: 1;
}

.hero-logo-container {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    border-radius: 24px;
    padding: 25px;
    margin-bottom: 2rem;
    display: inline-block;
    border: 2px solid rgba(255, 255, 255, 0.25);
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    animation: logoGlow 4s ease-in-out infinite;
}

@keyframes logoGlow {
    0%, 100% {
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 0 20px rgba(255, 255, 255, 0.1);
    }
    50% {
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 0 40px rgba(255, 255, 255, 0.2);
    }
}

/* Additional decorative elements for democracy theme */
.hero::after {
    content: '';
    position: absolute;
    top: 10%;
    right: 10%;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.15);
    animation: float 6s ease-in-out infinite, pulse 3s ease-in-out infinite;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

.hero::before {
    content: '';
    position: absolute;
    bottom: 15%;
    left: 8%;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.12);
    animation: float 8s ease-in-out infinite reverse, pulse 4s ease-in-out infinite;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.08);
}

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

@keyframes pulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

/* Hero decorative elements */
.hero-decorations {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.decoration-element {
    position: absolute;
    opacity: 0.15;
}

.chart-bars {
    display: none;
}

.chart-bars .bar {
    display: none;
}

.chart-bars .bar:nth-child(1) {
    display: none;
}

.chart-bars .bar:nth-child(2) {
    display: none;
}

.chart-bars .bar:nth-child(3) {
    display: none;
}

.chart-bars .bar:nth-child(4) {
    display: none;
}

.voting-box {
    bottom: 25%;
    left: 12%;
    width: 60px;
    height: 45px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    animation: pulse 5s ease-in-out infinite, float 7s ease-in-out infinite;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.ballot-slot {
    width: 40px;
    height: 4px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.2) 100%);
    margin: 12px auto;
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.data-points {
    top: 60%;
    right: 25%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    animation: twinkle 6s ease-in-out infinite;
}

.data-points .point {
    width: 10px;
    height: 10px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.3) 100%);
    border-radius: 50%;
    animation: pointPulse 2s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

.data-points .point:nth-child(1) {
    animation-delay: 0s;
}

.data-points .point:nth-child(2) {
    animation-delay: 0.3s;
}

.data-points .point:nth-child(3) {
    animation-delay: 0.6s;
}

.data-points .point:nth-child(4) {
    animation-delay: 0.9s;
}

.data-points .point:nth-child(5) {
    animation-delay: 1.2s;
}

@keyframes barGrow {
    0%, 100% {
        transform: scaleY(0.7);
        opacity: 0.6;
    }
    50% {
        transform: scaleY(1.3);
        opacity: 1;
    }
}

@keyframes fadeInOut {
    0%, 100% {
        opacity: 0.15;
        transform: translateY(0);
    }
    50% {
        opacity: 0.4;
        transform: translateY(-5px);
    }
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.15;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.1);
    }
}

@keyframes pointPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
    }
    50% {
        transform: scale(1.4);
        opacity: 1;
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
    }
}

.footer-logo-container {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-tagline {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: #f1f5f9;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #e2e8f0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: #ff6b35;
    color: white;
    border-color: #ff6b35;
}

.btn-primary:hover {
    background: #e55a2b;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-secondary:hover {
    background: white;
    color: #1e40af;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: #1e40af;
    border-color: #1e40af;
}

.btn-outline:hover {
    background: #1e40af;
    color: white;
}

/* Stats Section */
.stats {
    padding: 80px 0;
    background: white;
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

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

.stat-card {
    text-align: center;
    padding: 2rem;
    border-radius: 12px;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

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

.stat-card i {
    font-size: 2.5rem;
    color: #1e40af;
    margin-bottom: 1rem;
}

.stat-card h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 0.5rem;
}

.stat-card p {
    color: #64748b;
    font-weight: 500;
}

/* Featured States */
.featured-states {
    padding: 40px 0 20px;
    background: #f8fafc;
}

.section-title {
    text-align: center;
    font-size: 1.6rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}

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

.state-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.state-card:hover {
    transform: translateY(-5px);
}

.state-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.state-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
}

.state-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.state-status.active {
    background: #dcfce7;
    color: #166534;
}

.state-status.completed {
    background: #dbeafe;
    color: #1d4ed8;
}

.state-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.stat {
    text-align: center;
}

.stat .label {
    display: block;
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 0.25rem;
}

.stat .value {
    display: block;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e40af;
}

/* Footer */
.footer {
    background: #1e293b;
    color: white;
    padding: 60px 0 20px;
}

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

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: #f1f5f9;
}

.footer-section p {
    color: #94a3b8;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.footer-section p i {
    margin-right: 0.5rem;
    width: 16px;
    text-align: center;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #f1f5f9;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: #334155;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: background 0.3s ease;
}

.social-links a:hover {
    background: #1e40af;
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 2rem;
    text-align: center;
    color: #94a3b8;
}

.disclaimer {
    font-size: 0.9rem;
    margin-top: 0.5rem;
    font-style: italic;
}

/* Global Container Padding System - Applies to ALL pages */
.container {
    padding: 0 40px !important;
}

.nav-container {
    padding: 0 40px !important;
}

.hero-content {
    padding: 0 40px !important;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px !important;
    }
    
    .nav-container {
        padding: 0 30px !important;
    }
    
    .hero-content {
        padding: 0 30px !important;
    }
    
    .hero-compact {
        min-height: 480px;
        padding-top: 130px;
        padding-bottom: 50px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px !important;
    }
    
    .nav-container {
        padding: 0 20px !important;
    }
    
    .hero-content {
        padding: 0 20px !important;
    }
    
    .hero-compact {
        min-height: 450px;
        padding-top: 120px;
        padding-bottom: 50px;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 85px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-tagline {
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .states-grid {
        grid-template-columns: 1fr;
    }
    
    .state-stats {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Logo responsive styles */
@media (max-width: 768px) {
    .nav-logo img {
        height: 55px;
    }
    
    .nav-logo h2 {
        font-size: 1.4rem;
    }
    
    .logo-large {
        height: 90px;
    }
    
    .logo-medium {
        height: 60px;
    }
    
    .hero-logo-container {
        padding: 15px;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px !important;
    }
    
    .nav-container {
        padding: 0 15px !important;
    }
    
    .hero-content {
        padding: 0 15px !important;
    }
    
    .hero-compact {
        min-height: 420px;
        padding-top: 110px;
        padding-bottom: 40px;
    }
    
    .nav-logo {
        gap: 0.5rem;
    }
    
    .nav-logo img {
        height: 45px;
    }
    
    .nav-logo h2 {
        font-size: 1.2rem;
    }
    
    .logo-large {
        height: 70px;
    }
    
    .logo-medium {
        height: 50px;
    }
    
    .hero-logo-container {
        padding: 12px;
        margin-bottom: 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-tagline {
        font-size: 1rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
    }
}

/* Extra small screens */
@media (max-width: 360px) {
    .container {
        padding: 0 10px !important;
    }
    
    .nav-container {
        padding: 0 10px !important;
    }
    
    .hero-content {
        padding: 0 10px !important;
    }
    
    .hero-compact {
        min-height: 400px;
        padding-top: 100px;
        padding-bottom: 40px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-tagline {
        font-size: 0.95rem;
    }
    
    .hero-description {
        font-size: 0.85rem;
    }
    
    .footer-logo-container {
        padding: 8px;
    }
    
    /* Hide decorative elements on small screens */
    .hero-decorations {
        display: none;
    }
}
* Additional Navigation Consistency Rules */
.nav-link,
.nav-link:hover,
.nav-link:focus,
.nav-link:active,
.nav-link:visited {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
    text-decoration: none !important;
}

/* Ensure no browser-specific selection styles */
.nav-link::selection {
    background: transparent;
}

.nav-link::-moz-selection {
    background: transparent;
}

/* Remove any potential button-like styling */
.nav-link {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-clip: padding-box;
}

/* Force consistent behavior across all browsers */
.navbar .nav-link {
    display: inline-block;
    position: relative;
    overflow: visible;
}