/* Font Imports */
@font-face {
    font-family: 'PPEditorialNew';
    src: url('PPEditorialNew-Free_for_personal_use/PPEditorialNew-Free for personal use/PPEditorialNew-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'PPEditorialNew';
    src: url('PPEditorialNew-Free_for_personal_use/PPEditorialNew-Free for personal use/PPEditorialNew-Ultrabold.otf') format('opentype');
    font-weight: 800;
    font-style: normal;
}

@font-face {
    font-family: 'PPEditorialNew';
    src: url('PPEditorialNew-Free_for_personal_use/PPEditorialNew-Free for personal use/PPEditorialNew-Ultralight.otf') format('opentype');
    font-weight: 200;
    font-style: normal;
}

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

body {
    font-family: 'PPEditorialNew', sans-serif;
    background: linear-gradient(180deg, #000000 0%, #0a1a0a 50%, #000000 100%);
    color: #ffffff;
    overflow-x: hidden;
    line-height: 1.6;
    min-height: 100vh;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #4ade80;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #22c55e;
}

/* Loading Screen */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #0a0a0a;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#loading-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader {
    text-align: center;
}

.zombie-loader {
    width: 80px;
    height: 80px;
    border: 4px solid #1a1a1a;
    border-top: 4px solid #4ade80;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.loading-text {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 4px;
    color: #4ade80;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.container-full {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 40px;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-visual {
    position: relative;
    width: 100%;
    height: 80vh;
    min-height: 600px;
}

#zombie-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-image-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    pointer-events: none;
}

.hero-image-overlay img {
    width: 350px;
    height: auto;
    filter: drop-shadow(0 0 60px rgba(74, 222, 128, 0.4));
    animation: float 3s ease-in-out infinite;
    opacity: 0.9;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.hero-text h1 {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 20px;
    letter-spacing: -2px;
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    font-size: 1.5rem;
    font-weight: 200;
    letter-spacing: 2px;
    margin-bottom: 30px;
    color: #a3a3a3;
}

.description {
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.8;
    margin-bottom: 40px;
    color: #d4d4d4;
}

.button-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    padding: 18px 36px;
    font-family: 'PPEditorialNew', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0;
    text-transform: uppercase;
}

.btn-primary {
    background-color: #dc2626;
    color: #ffffff;
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.4);
}

.btn-primary:hover {
    background-color: #b91c1c;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.6);
}

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

.btn-secondary:hover {
    background-color: #dc2626;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.4);
}

/* Stages Section */
.stages-section {
    padding: 120px 0;
    background: linear-gradient(180deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
}

.section-title {
    font-size: 3.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 80px;
    letter-spacing: -1px;
}

.stages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.stage-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 50px 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.stage-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #4ade80, #22c55e);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.stage-card:hover::before {
    transform: scaleX(1);
}

.stage-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(74, 222, 128, 0.3);
    transform: translateY(-5px);
}

.stage-number {
    font-size: 4rem;
    font-weight: 800;
    color: rgba(74, 222, 128, 0.2);
    line-height: 1;
    margin-bottom: 20px;
}

.stage-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: #4ade80;
    letter-spacing: 1px;
}

.stage-description {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.7;
    color: #d4d4d4;
}

/* Footer */
.footer {
    padding: 60px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background-color: #0a0a0a;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: #4ade80;
}

.footer-left p {
    font-size: 0.875rem;
    font-weight: 200;
    color: #a3a3a3;
    letter-spacing: 1px;
}

/* Scroll to Top Button */
.scroll-top-btn {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 50px;
    height: 50px;
    background-color: #4ade80;
    color: #0a0a0a;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    background-color: #22c55e;
    transform: translateY(-3px);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    right: 0;
    padding: 30px;
    z-index: 1000;
}

.social-icons {
    display: flex;
    gap: 20px;
}

.social-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(220, 38, 38, 0.1);
    border: 2px solid #dc2626;
    border-radius: 50%;
    color: #dc2626;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    background: #dc2626;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(220, 38, 38, 0.4);
}


/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: linear-gradient(135deg, #0a0a0a 0%, #0a1a0a 100%);
    border: 3px solid #dc2626;
    padding: 60px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.4s ease;
    box-shadow: 0 0 50px rgba(220, 38, 38, 0.5);
}

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

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    background: none;
    border: none;
    color: #dc2626;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    transform: rotate(90deg);
    color: #ffffff;
}

.modal-step h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: #dc2626;
}

.modal-step > p {
    color: #999;
    margin-bottom: 30px;
}

.upload-area {
    border: 3px dashed #dc2626;
    padding: 60px 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(220, 38, 38, 0.05);
}

.upload-area:hover {
    background: rgba(220, 38, 38, 0.1);
    border-color: #b91c1c;
}

.upload-area svg {
    color: #dc2626;
    margin-bottom: 20px;
}

.upload-area p {
    color: #ffffff;
    margin: 10px 0;
}

.upload-hint {
    font-size: 0.9rem;
    color: #666;
}

.result-container {
    margin: 30px 0;
    display: flex;
    justify-content: center;
}

#zombie-canvas-result {
    max-width: 100%;
    max-height: 400px;
    height: auto;
    border: 3px solid #dc2626;
    box-shadow: 0 0 30px rgba(220, 38, 38, 0.4);
    object-fit: contain;
}

.result-actions {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.result-actions .btn {
    flex: 1;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-visual {
        height: 60vh;
        min-height: 500px;
    }

    .hero-image-overlay img {
        width: 300px;
    }

    .hero-text h1 {
        font-size: 4rem;
        text-align: center;
    }

    .tagline,
    .description {
        text-align: center;
    }

    .button-group {
        justify-content: center;
    }

    .stages-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .container,
    .container-full {
        padding: 0 20px;
    }

    .hero-visual {
        height: 50vh;
        min-height: 400px;
    }

    .hero-image-overlay img {
        width: 250px;
    }

    .hero-text h1 {
        font-size: 3rem;
    }

    .tagline {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .button-group {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .scroll-top-btn {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .stat-card {
        padding: 30px;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .modal-content {
        padding: 40px 30px;
    }

    .result-actions {
        flex-direction: column;
    }
}

/* Timer Section */
.timer-section {
    padding: 100px 0;
    background: rgba(10, 26, 10, 0.3);
    text-align: center;
}

.timer-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 40px 0;
}

.time-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(220, 38, 38, 0.1);
    border: 2px solid #dc2626;
    padding: 30px 40px;
    min-width: 140px;
    box-shadow: 0 0 30px rgba(220, 38, 38, 0.2);
}

.time-value {
    font-size: 4rem;
    font-weight: 800;
    color: #dc2626;
    font-family: 'PPEditorialNew', monospace;
    line-height: 1;
}

.time-label {
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 3px;
    color: #999;
    margin-top: 10px;
}

.time-separator {
    font-size: 4rem;
    color: #dc2626;
    font-weight: 800;
}

.timer-description {
    max-width: 800px;
    margin: 40px auto 0;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #ccc;
}

/* Contract Address Section */
.ca-section {
    padding: 80px 0;
    background: rgba(0, 0, 0, 0.5);
    text-align: center;
}

.ca-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.ca-address {
    background: rgba(220, 38, 38, 0.1);
    border: 2px solid #dc2626;
    padding: 20px 40px;
    font-size: 1.3rem;
    font-family: 'Courier New', monospace;
    color: #dc2626;
    letter-spacing: 2px;
    border-radius: 0;
}

.btn-copy {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #dc2626;
    color: #ffffff;
    border: none;
    padding: 20px 40px;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'PPEditorialNew', sans-serif;
}

.btn-copy:hover {
    background: #b91c1c;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.4);
}

.btn-copy svg {
    stroke: currentColor;
}

/* Footer Updates */
.footer-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-logo {
    width: 60px;
    height: 60px;
    background: #ffffff;
    border-radius: 50%;
    padding: 8px;
    border: 2px solid #000;
}

.footer-social {
    display: flex;
    gap: 15px;
}

/* Post Zombie Instructions */
.post-zombie-instructions {
    margin: 30px 0;
    padding: 20px;
    background: rgba(220, 38, 38, 0.1);
    border-left: 3px solid #dc2626;
}

.post-zombie-instructions p {
    color: #ffffff;
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
}
