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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: #e0e0e0;
    padding: 0;
    margin: 0;
}

.menubar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 100%);
    border-bottom: 1px solid #333;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.menubar .logo {
    background: linear-gradient(135deg, #d4af37 0%, #f4e4bc 50%, #d4af37 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2em;
    font-weight: bold;
    letter-spacing: 2px;
}

.menubar .nav-links {
    display: flex;
    gap: 30px;
}

.menubar .nav-link {
    background: transparent;
    border: 1px solid #333;
    color: #e0e0e0;
    padding: 10px 25px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 100%);
}

.menubar .nav-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    border-color: #d4af37;
}

.menubar .nav-link.active {
    background: linear-gradient(135deg, #d4af37 0%, #f4e4bc 50%, #d4af37 100%);
    color: #0a0a0a;
    border-color: #d4af37;
}

.main-content {
    flex: 1;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 40px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section {
    display: none;
}

.section.active {
    display: block;
    padding-top: 70px;
}

.banner-section {
    position: relative;
    width: 100%;
    margin-bottom: 30px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.banner-section img {
    width: 100%;
    height: auto;
    display: block;
}

.slogan-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.6) 100%);
    padding: 20px 40px;
    border-radius: 15px;
    border: 2px solid #d4af37;
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.3);
}

.slogan-overlay h2 {
    background: linear-gradient(135deg, #d4af37 0%, #f4e4bc 50%, #d4af37 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2em;
    font-weight: bold;
    margin: 0;
    letter-spacing: 2px;
}

.slogan-overlay p {
    color: #e0e0e0;
    font-size: 1.1em;
    margin: 5px 0 0 0;
    font-weight: 300;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    width: 100%;
}

.showcase-card {
    background: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 100%);
    border: 1px solid #333;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.showcase-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    border-color: #d4af37;
}

.showcase-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.showcase-content {
    padding: 20px;
    text-align: center;
}

.showcase-caption {
    color: #e0e0e0;
    font-size: 0.95em;
    margin-bottom: 15px;
    font-style: italic;
    line-height: 1.4;
}

.container {
    background: rgba(13, 13, 13, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(212, 175, 55, 0.1);
    padding: 40px;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
    animation: containerPulse 0.8s ease-out;
}

h1 {
    background: linear-gradient(135deg, #d4af37 0%, #f4e4bc 50%, #d4af37 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    font-size: 2em;
    font-weight: bold;
    letter-spacing: 2px;
}

.subtitle {
    color: #888;
    margin-bottom: 30px;
    font-size: 1em;
    font-weight: 300;
    letter-spacing: 1px;
}

.image-container {
    width: 100%;
    aspect-ratio: 4/5;
    background: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 100%);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.5);
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.image-container img.loaded {
    opacity: 1;
}

.image-container.loading {
    background: repeating-linear-gradient(
        45deg,
        #0d0d0d,
        #0d0d0d 10px,
        #1a1a1a 10px,
        #1a1a1a 20px
    );
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.buttons {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-bottom: 25px;
}

.btn {
    flex: 1;
    padding: 18px 35px;
    font-size: 1.2em;
    font-weight: bold;
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 14px;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: transparent;
    color: #e0e0e0;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6), 0 0 20px rgba(212, 175, 55, 0.3);
    border-color: #d4af37;
}

.btn:active {
    transform: translateY(-1px) scale(0.98);
}

.btn-yes {
    background: linear-gradient(135deg, #d4af37 0%, #f4e4bc 50%, #d4af37 100%);
    color: #0a0a0a;
    border: none;
}

.btn-yes:hover {
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.4);
}

.btn-no {
    background: linear-gradient(135deg, #2a2a2a 0%, #3a3a3a 100%);
    color: #e0e0e0;
    border: 1px solid #444;
}

.btn-no:hover {
    border-color: #666;
    background: linear-gradient(135deg, #3a3a3a 0%, #4a4a4a 100%);
}

.feedback {
    padding: 15px;
    border-radius: 10px;
    font-weight: bold;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #333;
    background: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 100%);
    color: #e0e0e0;
}

.feedback.success {
    border-color: #d4af37;
    color: #d4af37;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.feedback.error {
    border-color: #ff4444;
    color: #ff4444;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(26, 26, 26, 0.5);
    border-top: 5px solid transparent;
    border-right: 5px solid transparent;
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
    margin: 0 auto 30px;
    position: relative;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.loading-spinner::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 5px solid rgba(26, 26, 26, 0.5);
    border-bottom: 5px solid transparent;
    border-left: 5px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite reverse;
    opacity: 0.7;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes containerPulse {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.footer {
    margin-top: 20px;
    color: #666;
    font-size: 0.9em;
}

.footer span {
    background: linear-gradient(135deg, #d4af37 0%, #f4e4bc 50%, #d4af37 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
}

.how-it-works-section {
    width: 100%;
    margin: 30px auto;
    padding: 40px 30px;
    background: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 100%);
    border: 1px solid #333;
    border-radius: 20px;
}

.how-it-works-section h2 {
    text-align: center;
    background: linear-gradient(135deg, #d4af37 0%, #f4e4bc 50%, #d4af37 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 40px;
    letter-spacing: 2px;
}

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

.step-card {
    background: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 100%);
    border: 1px solid #333;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    border-color: #d4af37;
}

.step-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #d4af37 0%, #f4e4bc 50%, #d4af37 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5em;
}

.step-card h3 {
    color: #e0e0e0;
    font-size: 1.3em;
    margin-bottom: 15px;
    font-weight: bold;
}

.step-card p {
    color: #888;
    font-size: 0.95em;
    line-height: 1.5;
}

.upload-section {
    width: 100%;
    margin: 30px auto;
    padding: 40px 30px;
    background: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 100%);
    border: 1px solid #333;
    border-radius: 20px;
}

.upload-section h2 {
    text-align: center;
    background: linear-gradient(135deg, #d4af37 0%, #f4e4bc 50%, #d4af37 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 30px;
    letter-spacing: 2px;
}

.upload-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    text-align: left;
}

.form-group label {
    display: block;
    color: #e0e0e0;
    font-size: 1em;
    margin-bottom: 10px;
    font-weight: bold;
}

.form-group input[type="text"] {
    width: 100%;
    padding: 15px;
    font-size: 1em;
    border: 1px solid #333;
    border-radius: 12px;
    background: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 100%);
    color: #e0e0e0;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.form-group input[type="text"]:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.file-input-wrapper {
    text-align: left;
}

.file-input-wrapper label {
    display: block;
    color: #e0e0e0;
    font-size: 1em;
    margin-bottom: 10px;
    font-weight: bold;
}

.file-input-wrapper input[type="file"] {
    width: 100%;
    padding: 15px;
    font-size: 1em;
    border: 1px solid #333;
    border-radius: 12px;
    background: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 100%);
    color: #e0e0e0;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.file-input-wrapper input[type="file"]:hover {
    border-color: #d4af37;
}

.file-input-wrapper input[type="file"]::-webkit-file-upload-button {
    background: linear-gradient(135deg, #d4af37 0%, #f4e4bc 50%, #d4af37 100%);
    color: #0a0a0a;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    margin-right: 10px;
}

.upload-btn {
    width: 100%;
    padding: 18px;
    font-size: 1.2em;
    font-weight: bold;
    border: 1px solid #333;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #d4af37 0%, #f4e4bc 50%, #d4af37 100%);
    color: #0a0a0a;
}

.upload-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.4);
}

.upload-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.upload-btn.loading {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    color: #888;
    border-color: #333;
}

.leaders-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    width: 100%;
}

.leader-card {
    background: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 100%);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px;
    gap: 20px;
    max-width: 100%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    margin-bottom: 8px;
    margin-top: 8px;
}

.leader-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
    border-color: #d4af37;
}

.leader-card img {
    width: 400px;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    flex-shrink: 0;
}

.leader-info {
    flex: 1;
    text-align: left;
}

.leader-caption {
    color: #e0e0e0;
    font-size: 1em;
    margin-bottom: 8px;
    font-weight: 500;
    line-height: 1.3;
}

.vote-count {
    color: #d4af37;
    font-size: 1.3em;
    font-weight: bold;
    letter-spacing: 1px;
}

.loading-leaders,
.error-leaders {
    text-align: center;
    padding: 50px 20px;
    color: #888;
    font-size: 1.2em;
    background: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 100%);
    border: 1px solid #333;
    border-radius: 15px;
    width: 100%;
}

.error-leaders {
    color: #ff4444;
}

@media (max-width: 768px) {
    .menubar {
        flex-direction: column;
        gap: 15px;
        padding: 15px 20px;
    }

    .menubar .nav-links {
        gap: 10px;
    }

    .menubar .nav-link {
        padding: 8px 15px;
        font-size: 0.9em;
    }

    .main-content {
        padding: 15px;
        padding-top: 70px;
    }

    .banner-section {
        margin-bottom: 20px;
    }

    .slogan-overlay {
        padding: 15px 25px;
        border: 2px solid #d4af37;
    }

    .slogan-overlay h2 {
        font-size: 1.5em;
        letter-spacing: 1px;
    }

    .slogan-overlay p {
        font-size: 0.9em;
    }

    .leaders-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .leader-card {
        flex-direction: column;
        align-items: center;
        padding: 15px;
        gap: 15px;
    }

    .leader-card img {
        width: 220px;
        height: 220px;
    }

    .leader-info {
        text-align: center;
    }

    .leader-caption {
        font-size: 0.9em;
        margin-bottom: 8px;
    }

    .vote-count {
        font-size: 1.2em;
    }

    .loading-leaders,
    .error-leaders {
        text-align: center;
        padding: 50px 20px;
        color: #888;
        font-size: 1.2em;
        background: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 100%);
        border: 1px solid #333;
        border-radius: 15px;
        width: 100%;
    }

    .error-leaders {
        color: #ff4444;
    }
}
