/* Modern Color Palette & Variables */
:root {
    --primary-color: #4361ee;
    --secondary-color: #3f37c9;
    --accent-color: #4895ef;
    --background-gradient: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: 1px solid rgba(255, 255, 255, 0.3);
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.1);
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --evm-blue: #0EA5E9;
}

body {
    background: var(--background-gradient);
    font-family: var(--font-main);
    color: #333;
    min-height: 100vh;
}

/* Navbar Styling */
/* Navbar Styling */
.navbar-custom {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    font-family: 'Righteous', cursive;
    color: var(--text-dark) !important;
    letter-spacing: -0.5px;
    background: none;
    -webkit-text-fill-color: initial;
    text-shadow: none;
}

.nav-link {
    color: #64748b !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem !important;
    transition: color 0.2s ease;
}

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

.navbar-toggler:focus {
    box-shadow: none;
}

/* Hero Section */
.hero-section {
    padding: 5rem 0;
    text-align: center;
    background: transparent;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    animation: fadeInDown 0.8s ease-out;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #666;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(67, 97, 238, 0.4);
}

.btn-outline-light {
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
}

/* Custom Buttons (Moved from Landing) */
.btn-primary-custom {
    background-color: var(--primary-color);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.1), 0 2px 4px -1px rgba(37, 99, 235, 0.06);
}

.btn-primary-custom:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.2);
    color: white;
}

.btn-outline-custom {
    background-color: transparent;
    color: var(--text-dark);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    border: 1px solid #e2e8f0;
    margin-left: 1rem;
    transition: all 0.3s ease;
}

.btn-outline-custom:hover {
    background-color: #f1f5f9;
    border-color: #cbd5e1;
    color: var(--text-dark);
}

/* Cards & Glassmorphism */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
    height: 100%;
}

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

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

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Footer */
.footer-card {
    background: #2b2d42;
    color: white;
    border-radius: 20px;
    border: none;
}

.footer-card .card-header {
    border-bottom: 1px solid rgba(255,255,255,0.1);
    background: transparent;
}

@media (max-width: 768px) {
    /* Global Mobile Fixes */
    html, body {
        overflow-x: hidden;
        width: 100%;
    }

    .navbar-brand {
        font-size: 1.3rem;
    }
    .navbar-brand img {
        width: 28px;
        height: 28px;
    }
    .navbar .btn {
        padding: 0.35rem 0.75rem;
        font-size: 0.8rem;
    }
    .navbar {
        padding: 0.5rem 0;
    }
    .navbar .container-fluid {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }
    
    /* Ensure text wraps globally on mobile */
    .text-break-mobile {
        word-break: break-word;
        white-space: normal !important;
    }

    /* EVM Mobile Font Adjustments */
    .header-label {
        font-size: 14px !important;
    }
    .candidate-name {
        font-size: 14px !important;
    }
    .candidate-number {
        font-size: 16px !important;
        width: 30px !important;
    }
    .evm-header {
        padding: 10px 15px !important;
    }
    .candidate-row {
        padding: 10px 15px !important;
    }

    /* Tab Switching Logic */
    .evm-column {
        display: none;
    }
    .evm-column.active {
        display: block;
    }

    /* Mobile Tab Buttons */
    .mobile-tab-btn {
        color: #64748b;
        font-weight: 600;
    }
    .mobile-tab-btn.active {
        background-color: var(--primary-color) !important;
        color: white !important;
    }
}
