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

html, body {
    height: 100%;
    overflow: hidden;
}

/* Graveyard Popup */
.graveyard-popup {
    position: fixed;
    right: 350px;
    top: 75%;
    transform: translateY(-50%);
    display: none;
    z-index: 1001;
    flex-direction: row-reverse;
    align-items: center;
    animation: popupFadeIn 0.3s ease-out;
}

.graveyard-sleepy {
    margin-left: 20px;
}

.popup-sleepy-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.graveyard-speech-bubble {
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    border: 3px solid #333;
    border-radius: 20px;
    padding: 15px 20px;
    max-width: 250px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.graveyard-speech-bubble p {
    margin: 0;
    color: #333;
    font-size: 1rem;
    line-height: 1.4;
    font-weight: 500;
}

.graveyard-speech-bubble .speaker {
    font-weight: bold;
    color: #8B0000;
    margin-bottom: 5px;
}

.graveyard-arrow {
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-right: 15px solid #333;
}

.graveyard-speech-bubble::before {
    content: '';
    position: absolute;
    left: -11px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 13px solid transparent;
    border-bottom: 13px solid transparent;
    border-right: 13px solid #ffffff;
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

/* Responsive Design */

body {
    font-family: 'Arial', sans-serif;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

/* Video Background */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    object-fit: cover;
}

/* Overlay for better text readability */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

/* Main Content Container */
.container {
    position: relative;
    z-index: 2;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 0 20px;
}

/* Header Navigation */
.header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 3;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #00ff88;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

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

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #00ff88;
    text-shadow: 0 0 5px rgba(0, 255, 136, 0.3);
}

/* Main Title */
.main-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    line-height: 1.1;
}

.zombie-text {
    color: #00ff88;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.8);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 0 20px rgba(0, 255, 136, 0.8); }
    to { text-shadow: 0 0 30px rgba(0, 255, 136, 1), 0 0 40px rgba(0, 255, 136, 0.5); }
}

/* Subtitle */
.subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 600px;
    line-height: 1.4;
}

/* Call to Action Buttons */
.cta-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 60px;
}

.cta-button {
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    min-width: 160px;
}

.primary-btn {
    background: linear-gradient(45deg, #00ff88, #00cc6a);
    color: #000;
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.3);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 255, 136, 0.5);
}

.secondary-btn {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.secondary-btn:hover {
    background: white;
    color: #000;
    transform: translateY(-2px);
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 30px;
    justify-content: center;
}

.social-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.social-icon:hover {
    border-color: #00ff88;
    color: #00ff88;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 255, 136, 0.3);
}

/* Bottom Navigation */
.bottom-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
}

.bottom-nav a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.bottom-nav a:hover {
    color: #00ff88;
}

/* Right Sidebar Images */
.right-sidebar {
    position: fixed;
    right: 80px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.sidebar-image {
    width: 240px;
    height: 240px;
    object-fit: cover;
    transition: all 0.3s ease;
    cursor: pointer;
}

.sidebar-button {
    cursor: pointer;
    display: inline-block;
}

.sidebar-image.discord {
    margin-top: 20px;
}

.sidebar-image.assets {
    margin-top: -5px;
}

.sidebar-image.members {
    margin-top: -5px;
}

.sidebar-image.graveyard {
    margin-top: -5px;
}

.sidebar-image:hover {
    transform: scale(1.1);
}

/* Bottom Left Images */
.bottom-left-images {
    position: fixed;
    bottom: 70px;
    left: 80px;
    z-index: 1001;
    display: flex;
    gap: 10px;
}

.bottom-image {
    width: 120px;
    height: 120px;
    object-fit: cover;
    transition: all 0.3s ease;
    cursor: pointer;
}

.bottom-image:hover {
    transform: scale(1.1);
}

/* Mobile Performance Optimizations */
@media (max-width: 768px) {
    * {
        -webkit-transform: translateZ(0);
        -moz-transform: translateZ(0);
        transform: translateZ(0);
    }

    .sidebar-image {
        width: 160px;
        height: 160px;
        -webkit-transform: translateZ(0);
        -moz-transform: translateZ(0);
        transform: translateZ(0);
        will-change: transform;
    }

    .bottom-image {
        width: 80px;
        height: 80px;
        -webkit-transform: translateZ(0);
        -moz-transform: translateZ(0);
        transform: translateZ(0);
        will-change: transform;
    }

    .video-background {
        -webkit-transform: translateZ(0);
        -moz-transform: translateZ(0);
        transform: translateZ(0);
        min-height: 100vh;
        min-width: 100vw;
    }

    /* Reduce motion for better performance */
    .sidebar-image:hover {
        transform: scale(1.05) translateZ(0);
        transition: transform 0.2s ease;
    }

    .bottom-image:hover {
        transform: scale(1.05) translateZ(0);
        transition: transform 0.2s ease;
    }

    /* Optimize graveyard popup */
    .graveyard-popup {
        right: 200px;
        top: 60%;
        transform: translateY(-50%) translateZ(0);
        will-change: transform, opacity;
    }

    .graveyard-sleepy {
        margin-left: 10px;
    }

    .popup-sleepy-image {
        width: 60px;
        height: 60px;
    }

    .graveyard-speech-bubble {
        padding: 10px 14px;
        max-width: 160px;
        border-radius: 10px;
        font-size: 0.85rem;
    }

    /* Ensure popup is visible on mobile */
    .graveyard-popup {
        z-index: 10;
        pointer-events: none;
        max-width: calc(100vw - 200px);
    }

    .graveyard-popup > * {
        pointer-events: auto;
    }

    /* Adjust button positioning for mobile */
    .bottom-left-images {
        bottom: 120px;
        left: 50px;
    }

    .right-sidebar {
        right: 40px;
        top: 35%;
    }

    /* Adjust popup position for very small screens */
    @media (max-width: 480px) {
        .graveyard-popup {
            right: 150px !important;
            top: 50% !important;
        }

        .graveyard-speech-bubble {
            max-width: 140px;
            padding: 8px 10px;
        }

        .popup-sleepy-image {
            width: 50px;
            height: 50px;
        }
    }

    /* Ensure footer is visible on mobile */
    footer {
        display: block !important;
        visibility: visible !important;
        z-index: 1001 !important;
    }

}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .subtitle {
        font-size: 1rem;
    }

    .cta-button {
        padding: 12px 25px;
        font-size: 1rem;
    }
}

/* Zombie Password Modal */
.password-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: modalFadeIn 0.3s ease-out;
}

.modal-content {
    background: linear-gradient(135deg, #1a0a0a 0%, #2d1b1b 50%, #1a0a0a 100%);
    border: 3px solid #8b0000;
    border-radius: 15px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 0 30px rgba(139, 0, 0, 0.5);
    animation: modalSlideIn 0.4s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .modal-content {
        padding: 30px 20px;
        margin: 20px;
    }

    .modal-title {
        font-size: 2rem;
    }

    .modal-subtitle {
        font-size: 1rem;
    }

    .password-input {
        font-size: 1rem;
        padding: 12px;
    }

    .modal-buttons {
        flex-direction: column;
    }

    .modal-btn {
        width: 100%;
        margin: 5px 0;
    }
}

.loading.hidden {
    opacity: 0;
    pointer-events: none;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(0, 255, 136, 0.3);
    border-top: 3px solid #00ff88;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Modal Animations */
@keyframes modalFadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes modalSlideIn {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Blood Drip Animation */
.blood-drip {
    position: absolute;
    width: 2px;
    height: 20px;
    background: linear-gradient(to bottom, #8b0000, #ff0000);
    border-radius: 1px;
    animation: drip 2s infinite ease-in-out;
}

.blood-drip:nth-child(1) { top: 10%; left: 20%; animation-delay: 0s; }
.blood-drip:nth-child(2) { top: 15%; right: 25%; animation-delay: 0.5s; }
.blood-drip:nth-child(3) { top: 20%; left: 70%; animation-delay: 1s; }
.blood-drip:nth-child(4) { top: 25%; right: 15%; animation-delay: 1.5s; }

@keyframes drip {
    0%, 100% {
        opacity: 0;
        transform: translateY(-10px);
    }
    50% {
        opacity: 1;
        transform: translateY(10px);
    }
}