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

:root {
    --primary: #2c3e50;
    --accent: #e74c3c;
    --gold: #f1c40f;
    --light: #ecf0f1;
    --dark: #1a1a2e;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--dark);
    overflow-x: hidden;
}

/* Viewer Counter - Top Right */
.viewer-counter-top {
    position: fixed;
    top: 80px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.8rem 1.2rem;
    border-radius: 50px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    z-index: 1001;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: bold;
    border: 2px solid var(--gold);
    animation: slideInRight 0.5s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.viewer-eye {
    font-size: 1.3rem;
}

.viewer-number {
    color: var(--accent);
    font-size: 1.3rem;
    font-weight: bold;
}

.viewer-label {
    color: var(--primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Welcome Screen */
.welcome-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    transition: opacity 0.8s ease-out, visibility 0.8s;
}

.welcome-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.welcome-text {
    font-size: 3rem;
    font-weight: bold;
    text-shadow: 3px 3px 0 var(--accent);
    animation: welcomeBounce 1s ease-out;
}

.welcome-sub {
    font-size: 1.5rem;
    color: var(--gold);
    margin-top: 1rem;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.continue-btn {
    margin-top: 2.5rem;
    padding: 1rem 3rem;
    font-size: 1.3rem;
    font-weight: bold;
    border: none;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--gold), #f39c12);
    color: var(--dark);
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 10px 30px rgba(241, 196, 15, 0.4);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transform: none;
}

.continue-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(241, 196, 15, 0.6);
}

.continue-btn:active {
    transform: translateY(0) scale(0.98);
}

.coded-by {
    margin-top: 1.2rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 1px;
}

.coded-by a {
    color: var(--gold);
    text-decoration: none;
}

.coded-by a u {
    color: var(--gold);
    text-decoration-color: var(--gold);
    text-underline-offset: 3px;
    font-weight: 600;
}

.coded-by a:hover u {
    text-decoration-color: white;
}

.coded-by {
    margin-top: 1.2rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 1px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    opacity: 0;
    transform: translateY(20px);
    animation: codedByFadeIn 0.6s ease-out 0.5s forwards;
}

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

/* Hero Section - FULL SCREEN */
.hero {
    position: relative;
    width: 100vw;
    height: 100vh;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text y="50" font-size="80">👑</text></svg>');
    background-size: 200px;
    animation: bgScroll 20s linear infinite;
    z-index: 1;
}

@keyframes bgScroll {
    0% { background-position: 0 0; }
    100% { background-position: 200px 200px; }
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    color: white;
    text-shadow: 3px 3px 0 var(--accent), 6px 6px 0 rgba(0,0,0,0.3);
    margin-bottom: 1rem;
    animation: bounceIn 1s ease-out;
}

.hero .subtitle {
    font-size: 1.5rem;
    color: var(--gold);
    font-weight: bold;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.hero-badge {
    background: var(--gold);
    color: var(--dark);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transform: rotate(-3deg);
    animation: pulse 2s infinite;
    display: inline-block;
}

@keyframes pulse {
    0%, 100% { transform: rotate(-3deg) scale(1); }
    50% { transform: rotate(-3deg) scale(1.05); }
}

@keyframes bounceIn {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); opacity: 1; }
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    padding: 1rem;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

nav a {
    text-decoration: none;
    color: var(--primary);
    font-weight: bold;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s;
}

nav a:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-2px);
}

/* Sections */
section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gold);
    border-radius: 2px;
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--accent), var(--gold));
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.card p, .card li {
    color: #555;
    line-height: 1.6;
}

.card ul {
    list-style: none;
    padding-left: 0;
}

.card li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.card li::before {
    content: '✨';
    position: absolute;
    left: 0;
}

/* Photo Gallery */
.gallery {
    background: rgba(255,255,255,0.1);
    border-radius: 30px;
    padding: 3rem;
    margin: 3rem auto;
}

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

.photo-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: transform 0.3s;
    background: white;
    padding: 10px;
}

.photo-card:hover {
    transform: scale(1.05) rotate(2deg);
}

.photo-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

.photo-caption {
    padding: 1rem;
    text-align: center;
    font-weight: bold;
    color: var(--primary);
}

/* Stats Counter */
.stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin: 3rem auto;
    max-width: 1200px;
    padding: 0 2rem;
}

.stat-item {
    text-align: center;
    color: white;
    background: rgba(255,255,255,0.1);
    padding: 1.5rem;
    border-radius: 15px;
    min-width: 150px;
    backdrop-filter: blur(10px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--gold);
    display: block;
}

.accurate-stat {
    border: 2px solid #2ecc71;
}

/* Vote Section - Counters beside button */
.vote-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin: 2rem auto;
    flex-wrap: wrap;
}

.vote-counter {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    min-width: 120px;
    transition: transform 0.3s;
}

.vote-counter:hover {
    transform: translateY(-5px);
}

.vote-icon {
    font-size: 2rem;
    margin-bottom: 0.3rem;
}

.vote-number {
    font-size: 1.8rem;
    font-weight: bold;
}

.not-accurate-counter .vote-number {
    color: #e74c3c;
}

.accurate-counter .vote-number {
    color: #2ecc71;
}

.vote-label {
    font-size: 0.85rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.2rem;
}

/* Interactive Button */
.fun-fact-btn {
    background: var(--gold);
    color: var(--dark);
    border: none;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    white-space: nowrap;
}

.fun-fact-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.fun-fact-display {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    font-size: 1.3rem;
    color: var(--primary);
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: opacity 0.2s;
}

/* Timeline */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: var(--gold);
    border-radius: 2px;
}

.timeline-item {
    display: flex;
    justify-content: flex-end;
    padding-right: 2rem;
    position: relative;
    margin: 2rem 0;
    width: 50%;
}

.timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-left: 2rem;
    padding-right: 0;
    margin-left: 50%;
}

.timeline-content {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    max-width: 300px;
    position: relative;
    transition: transform 0.3s;
}

.timeline-content:hover {
    transform: scale(1.05);
}

.timeline-item::after {
    content: '📌';
    position: absolute;
    right: -1.2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
}

.timeline-item:nth-child(even)::after {
    right: auto;
    left: -1.2rem;
}

/* Quote Box */
.quote-box {
    background: linear-gradient(135deg, var(--accent), #c0392b);
    color: white;
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    font-size: 15px;
    font-style: italic;
    margin: 3rem auto;
    max-width: 800px;
    position: relative;
    box-shadow: 0 15px 40px rgba(231, 76, 60, 0.4);
}

.quote-box::before {
    content: '"';
    font-size: 4rem;
    position: absolute;
    top: -10px;
    left: 20px;
    opacity: 0.3;
}

.conclusion-box {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.big-text {
    font-size: 23px;
}

/* Modal / Popup */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal {
    background: white;
    border-radius: 25px;
    padding: 2.5rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 25px 80px rgba(0,0,0,0.4);
    animation: modalPop 0.4s ease-out;
    transform: scale(0.9);
    transition: transform 0.3s;
}

.modal-overlay.active .modal {
    transform: scale(1);
}

@keyframes modalPop {
    0% { transform: scale(0.5); opacity: 0; }
    60% { transform: scale(1.05); }
    100% { transform: scale(1); opacity: 1; }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.modal-close:hover {
    background: #f0f0f0;
    color: var(--accent);
}

.modal-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.modal-title {
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.modal-fact {
    color: #555;
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 15px;
    font-style: italic;
}

.modal-question {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 1rem;
}

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

.vote-btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.vote-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.thumbs-up {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
}

.thumbs-up:hover {
    background: linear-gradient(135deg, #27ae60, #219a52);
}

.thumbs-down {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

.thumbs-down:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
}

/* Footer */
footer {
    background: var(--dark);
    color: white;
    text-align: center;
    padding: 3rem 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.disclaimer {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Scroll Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s, transform 0.6s;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   CONFETTI - FIXED AND WORKING
   ============================================ */
.confetti {
    position: fixed;
    top: -20px;
    z-index: 9999;
    pointer-events: none;
    will-change: transform, opacity;
}

.confetti-square {
    border-radius: 2px;
}

.confetti-circle {
    border-radius: 50%;
}

.confetti-triangle {
    width: 0;
    height: 0;
    background: transparent !important;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 12px solid;
}

@keyframes confettiFall {
    0% {
        transform: translateY(0) rotate(0deg) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(105vh) rotate(720deg) scale(0.3);
        opacity: 0;
    }
}

@keyframes welcomeBounce {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

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

/* ============================================
   PASSWORD PROTECTION - LOCK SCREEN
   ============================================ */

.lock-screen {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 25px;
    padding: 4rem 2rem;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    border: 2px solid var(--gold);
    animation: fadeInUp 0.6s ease-out;
}

.lock-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
    animation: lockShake 2s ease-in-out infinite;
}

@keyframes lockShake {
    0%, 100% { transform: rotate(0deg); }
    5% { transform: rotate(-10deg); }
    10% { transform: rotate(10deg); }
    15% { transform: rotate(-10deg); }
    20% { transform: rotate(10deg); }
    25% { transform: rotate(0deg); }
}

.lock-screen h3 {
    color: var(--gold);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.lock-screen p {
    color: #aaa;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.password-input-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 400px;
    margin: 0 auto;
}

.password-input-group input {
    flex: 1;
    min-width: 200px;
    padding: 1rem 1.5rem;
    border: 2px solid var(--gold);
    border-radius: 50px;
    background: rgba(255,255,255,0.1);
    color: white;
    font-size: 1.1rem;
    outline: none;
    transition: all 0.3s;
}

.password-input-group input::placeholder {
    color: #888;
}

.password-input-group input:focus {
    background: rgba(255,255,255,0.15);
    box-shadow: 0 0 20px rgba(241, 196, 15, 0.3);
}

.unlock-btn {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--gold), #f39c12);
    color: var(--dark);
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.unlock-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(241, 196, 15, 0.4);
}

.password-hint {
    color: #e74c3c;
    font-size: 0.95rem;
    margin-top: 1rem;
    min-height: 1.5rem;
    font-weight: bold;
}

/* Unlocked content */
.conclusion-box.hidden {
    display: none;
}

.lock-screen.hidden {
    display: none;
}

/* Unlock success animation */
.unlock-success {
    animation: unlockPop 0.5s ease-out;
}

@keyframes unlockPop {
    0% { transform: scale(0.8); opacity: 0; }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); opacity: 1; }
}

/* Wrong password shake */
.wrong-password {
    animation: wrongShake 0.5s ease-in-out;
}

@keyframes wrongShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-15px); }
    40% { transform: translateX(15px); }
    60% { transform: translateX(-10px); }
    80% { transform: translateX(10px); }
}

/* Responsive */
@media (max-width: 768px) {
    .viewer-counter-top {
        top: 70px;
        right: 10px;
        padding: 0.5rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .hero {
        height: 100vh;
    }
    
    .timeline::before {
        left: 20px;
    }
    .timeline-item, .timeline-item:nth-child(even) {
        width: 100%;
        margin-left: 0;
        padding-left: 3rem;
        padding-right: 0;
        justify-content: flex-start;
    }
    .timeline-item::after, .timeline-item:nth-child(even)::after {
        left: 10px;
        right: auto;
    }
    .stats {
        gap: 1rem;
    }
    .stat-item {
        min-width: 120px;
        padding: 1rem;
    }
    .stat-number {
        font-size: 2rem;
    }
    nav {
        gap: 0.5rem;
        padding: 0.5rem;
    }
    nav a {
        padding: 0.3rem 0.8rem;
        font-size: 0.9rem;
    }
    .vote-section {
        flex-direction: column;
        gap: 1rem;
    }
    .vote-counter {
        flex-direction: row;
        gap: 0.5rem;
        padding: 0.8rem 1rem;
    }
    .vote-icon {
        font-size: 1.5rem;
        margin-bottom: 0;
    }
    .vote-number {
        font-size: 1.3rem;
    }
    .vote-label {
        font-size: 0.75rem;
    }
    .modal-buttons {
        flex-direction: column;
    }
    .vote-btn {
        width: 100%;
        justify-content: center;
    }
}