/* ═══════════════════════════════════════════════════════════════════════
   Stop The Democrat Income Tax — Custom Styles
   ═══════════════════════════════════════════════════════════════════════ */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #111827;
}
::-webkit-scrollbar-thumb {
    background: #374151;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #4b5563;
}

/* Hero background animation */
@keyframes pulse-slow {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.35; }
}

/* Counter animation */
@keyframes count-up {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Timeline entry fade-in */
.timeline-entry {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.timeline-entry.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Calculator result reveal */
#calc-results {
    animation: fadeIn 0.4s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Vote table row hover */
#vote-table tbody tr {
    transition: background-color 0.15s ease;
}

/* Form input autofill styling */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
    -webkit-text-fill-color: inherit;
    -webkit-box-shadow: 0 0 0px 1000px transparent inset;
    transition: background-color 5000s ease-in-out 0s;
}

/* Print styles */
@media print {
    nav, footer, .no-print, #petition {
        display: none !important;
    }
    section {
        break-inside: avoid;
    }
}
