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

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

:root {
    --primary-blue: #1e3a8a;
    --secondary-blue: #3b82f6;
    --accent-gold: #e7cb4c;
    --text-dark: #1f2937;
    --text-gray: #6b7280;
    --success-green: #10b981;

    --font-primary: "Poppins", sans-serif;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);

    --section-padding: 6rem 2rem;
    --container-max-width: 1200px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
    background: #000000;
    transition: opacity 0.3s ease;
    margin: 0;
    padding: 0;
}

body.loading {
    overflow: hidden;
}

body.loading::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero Section and Campaign Sign */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(
        135deg,
        var(--primary-blue) 0%,
        var(--secondary-blue) 100%
    );
    overflow: hidden;
    margin: 0;
    padding: 0;
    margin-bottom: -5px;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.campaign-sign {
    position: fixed;
    top: 50%;
    left: 50%;
    right: auto;
    transform: translate(-50%, -50%);
    width: 80vw;
    height: 80vh;
    background: transparent;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    transition: var(--transition-bounce);
    z-index: 1000;
    cursor: pointer;
}

.campaign-sign.minimized {
    top: 20px;
    right: 20px;
    left: auto;
    transform: none;
    width: 140px;
    height: 90px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.sign-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 2rem;
    text-align: center;
    transition: var(--transition-smooth);
}

.candidate-name {
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    transition: var(--transition-smooth);
}

.position {
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--secondary-blue);
    margin-bottom: 1rem;
    transition: var(--transition-smooth);
}

.tagline {
    font-size: 1.2rem;
    color: var(--text-gray);
    font-style: italic;
    transition: var(--transition-smooth);
}

.candidate-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: var(--transition-smooth);
}

.campaign-sign.minimized .candidate-name {
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
    letter-spacing: 1px;
}

.campaign-sign.minimized .position {
    font-size: 0.8rem;
    margin-bottom: 0.2rem;
}

.campaign-sign.minimized .tagline {
    font-size: 0.6rem;
}

.campaign-sign.minimized .candidate-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.7;
    animation: bounce 2s infinite;
    transition: var(--transition-smooth);
}

.scroll-indicator.hidden {
    opacity: 0;
}

.arrow-down {
    width: 2px;
    height: 30px;
    background: var(--white);
    position: relative;
    margin: 0 auto;
}

.arrow-down::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: -6px;
    width: 14px;
    height: 14px;
    border-bottom: 2px solid var(--white);
    border-right: 2px solid var(--white);
    transform: rotate(45deg);
}

@keyframes bounce {
    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Navigation */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #333333;
    z-index: 999;
    transform: translateY(-100%);
    transition: var(--transition-smooth);
}

.main-nav.visible {
    transform: translateY(0);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-gold);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #e7cb4c;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: var(--transition-smooth);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-gold);
    background: rgba(245, 158, 11, 0.1);
}

.nav-link:focus {
    outline: 2px solid var(--accent-gold);
    outline-offset: 2px;
}

.btn-donate {
    background: var(--accent-gold);
    color: var(--white);
    text-decoration: none;
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.btn-donate:hover {
    background: #d97706;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(245, 158, 11, 0.3);
}

.btn-donate:focus {
    outline: 2px solid var(--white);
    outline-offset: 2px;
}

/* Main Content */
.main-content {
    margin-top: 100vh;
    background: #000000;
    color: #ffffff;
    position: relative;
    margin-bottom: 0;
    top: -5px;
    z-index: 10;
}

.content-section {
    padding: var(--section-padding);
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: #000000;
    margin: 0;
    border: none;
    position: relative;
    border-top: none;
    border-bottom: none;
    margin-top: -1px;
    margin-bottom: -1px;
}

.content-section:nth-child(even) {
    background: #111111;
    margin: 0;
}

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

.section-header h2 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* About Section */
.pamphlet-statement {
    background: #1a1a1a;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-left: 5px solid var(--accent-gold);
}

.pamphlet-statement h3 {
    color: var(--accent-gold);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.pamphlet-statement p {
    margin-bottom: 1.5rem;
    color: #cccccc;
    line-height: 1.8;
}

.candidate-photo,
.issues-photo,
.support-photo {
    margin: 1 rem;
    width: 20dvw;
    height: 50vh;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.photo-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #333333, #444444);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cccccc;
    font-size: 1.2rem;
    font-weight: 500;
}

/* Endorsements Section */
.endorsements-table {
    margin: 2rem 0;
}

.endorsements-table table {
    width: 100%;
    border-collapse: collapse;
    background: #1a1a1a;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.endorsements-table th,
.endorsements-table td {
    padding: 1rem 1.5rem;
    text-align: left;
}

.endorsements-table th {
    background: var(--accent-gold);
    color: #000000;
    font-weight: 600;
}

.endorsements-table tbody tr:nth-child(even) {
    background: #222222;
}

.endorsements-table tbody tr:hover {
    background: rgba(245, 158, 11, 0.1);
}

.logo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.logo-placeholder {
    height: 120px;
    background: #1a1a1a;
    border: 2px dashed #444444;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cccccc;
    font-size: 0.9rem;
    text-align: center;
    transition: var(--transition-smooth);
}

.logo-placeholder:hover {
    border-color: var(--accent-gold);
    background: rgba(245, 158, 11, 0.1);
}

/* Issues Section */
.issues-list {
    space-y: 2rem;
}

.issue-item {
    background: #1a1a1a;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    margin-bottom: 2rem;
    border-left: 4px solid var(--accent-gold);
}

.issue-item h4 {
    color: var(--accent-gold);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.issue-item p {
    color: #cccccc;
    line-height: 1.7;
}

/* Support Section */
.support-list {
    list-style: none;
    margin: 2rem 0;
}

.support-list li {
    padding: 0.8rem 0;
    color: #cccccc;
    position: relative;
    padding-left: 2rem;
}

.support-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-green);
    font-weight: bold;
    font-size: 1.2rem;
}

.contact-info {
    background: #1a1a1a;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    margin-top: 2rem;
}

.contact-info p {
    margin-bottom: 1rem;
    color: #cccccc;
}

.contact-info strong {
    color: var(--accent-gold);
}

/* Footer */
.main-footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 4rem 0 2rem;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.return-to-top {
    background: var(--accent-gold);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-smooth);
}

.return-to-top:hover {
    background: #d97706;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3);
}

.return-to-top:focus {
    outline: 2px solid var(--white);
    outline-offset: 2px;
}

.arrow-up {
    width: 2px;
    height: 15px;
    background: var(--white);
    position: relative;
}

.arrow-up::before {
    content: "";
    position: absolute;
    top: 0;
    left: -4px;
    width: 10px;
    height: 10px;
    border-top: 2px solid var(--white);
    border-left: 2px solid var(--white);
    transform: rotate(45deg);
}

.disclaimer {
    font-size: 0.9rem;
    color: #9ca3af;
    font-style: italic;
    max-width: 600px;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .content-grid {
        gap: 3rem;
    }

    .section-header h2 {
        font-size: 3rem;
    }

    .endorsements-table tbody tr {
        color: #cccccc;
    }

    .text-content h3 {
        color: var(--accent-gold);
    }

    .text-content p {
        color: #cccccc;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 4rem 1rem;
    }

    .nav-container {
        padding: 0 1rem;
        height: 60px;
    }

    .nav-links {
        gap: 0.8rem;
    }

    .nav-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }

    .btn-donate {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .logo {
        font-size: 1.3rem;
    }

    .campaign-sign {
        width: 85vw;
        height: 350px;
    }

    .candidate-name {
        font-size: 3rem;
    }

    .position {
        font-size: 1.5rem;
    }

    .tagline {
        font-size: 1rem;
    }

    .campaign-sign.minimized {
        width: 120px;
        height: 75px;
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .section-header h2 {
        font-size: 2.5rem;
    }

    .pamphlet-statement {
        padding: 2rem;
    }

    .logo-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .campaign-sign {
        width: 90vw;
        height: 300px;
    }

    .candidate-name {
        font-size: 2.5rem;
    }

    .position {
        font-size: 1.3rem;
    }

    .tagline {
        font-size: 0.9rem;
    }

    .campaign-sign.minimized {
        width: 100px;
        height: 65px;
        top: 15px;
        right: 15px;
    }

    .campaign-sign.minimized .candidate-name {
        font-size: 1rem;
    }

    .campaign-sign.minimized .position {
        font-size: 0.7rem;
    }

    .campaign-sign.minimized .tagline {
        font-size: 0.5rem;
    }

    .nav-container {
        height: 55px;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .nav-links {
        order: 3;
        width: 100%;
        justify-content: center;
        gap: 0.5rem;
        padding-top: 0.5rem;
        border-top: 1px solid var(--border-gray);
    }

    .donate-btn {
        order: 2;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .pamphlet-statement {
        padding: 1.5rem;
    }

    .contact-info {
        padding: 1.5rem;
    }
}

/* Smooth scroll animations */
@media (prefers-reduced-motion: no-preference) {
    .content-section {
        opacity: 0;
        transform: translateY(50px);
        transition:
            opacity 0.8s ease,
            transform 0.8s ease;
    }

    .content-section.visible {
        opacity: 1;
        transform: translateY(0);
    }

    .logo-placeholder {
        transition:
            var(--transition-smooth),
            border-color 0.3s ease;
    }

    .issue-item {
        transition:
            transform 0.3s ease,
            box-shadow 0.3s ease;
    }

    .issue-item:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .campaign-sign,
    .main-nav,
    .content-section {
        transition: none !important;
    }

    @keyframes bounce {
        0%,
        100% {
            transform: translateX(-50%) translateY(0);
        }
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-blue: #000080;
        --secondary-blue: #0066cc;
        --text-dark: #000000;
        --border-gray: #666666;
    }

    .campaign-sign {
        border-width: 6px;
        border-color: var(--text-dark);
    }

    .nav-link:focus,
    .btn-donate:focus,
    .return-to-top:focus {
        outline-width: 3px;
    }
}
