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

:root {
    --menstrual-red: #8B0000;
    --deep-red: #5C0000;
    --blood-red: #A52A2A;
    --dark-red: #3D0000;
    --baroque-gold: #D4AF37;
    --corduroy-brown: #6B4423;
    --zombie-green: #556B2F;
    --graveyard-gray: #2F2F2F;
    --dream-pink: #FF69B4;
    --void-black: #0A0A0A;
}

body {
    font-family: 'EB Garamond', 'Playfair Display', serif;
    background: #150000;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(139, 0, 0, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(92, 0, 0, 0.15) 0%, transparent 50%),
        linear-gradient(180deg, #0D0000 0%, #150000 50%, #0D0000 100%);
    color: #f5f5f5;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Bubble Container */
.bubble-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.bubble {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 105, 180, 0.3), rgba(139, 0, 0, 0.2));
    border: 2px solid rgba(212, 175, 55, 0.3);
    animation: bubbleFloat 15s infinite ease-in-out;
    opacity: 0.6;
}

@keyframes bubbleFloat {
    0% {
        transform: translateY(100vh) translateX(0) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100px) translateX(100px) scale(1);
        opacity: 0;
    }
}

/* Zombie Overlay */
.zombie-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(85, 107, 47, 0.03) 2px,
            rgba(85, 107, 47, 0.03) 4px
        );
    pointer-events: none;
    z-index: 2;
    opacity: 0.5;
    animation: zombieScan 8s linear infinite;
}

@keyframes zombieScan {
    0% { opacity: 0.3; }
    50% { opacity: 0.6; }
    100% { opacity: 0.3; }
}

/* Baroque Header */
.baroque-header {
    background: linear-gradient(180deg, var(--menstrual-red) 0%, var(--deep-red) 100%);
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    border-bottom: 4px solid var(--baroque-gold);
    box-shadow: 0 10px 40px rgba(139, 0, 0, 0.6);
    z-index: 10;
}

.header-image {
    position: absolute;
    width: 100px;
    height: 100px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
    transition: opacity 0.3s ease;
    z-index: 11;
}

.header-image:hover {
    opacity: 1;
}

.header-image-left {
    left: 5%;
    background-image: url('https://storage.googleapis.com/peredoz/images/pngtree-old-wheelchair-png-image_13321456.png');
}

.header-image-right {
    right: 5%;
    background-image: url('https://storage.googleapis.com/peredoz/images/uroboros.png');
}

.header-image-left.flip-horizontal {
    animation: flipHorizontal 0.5s ease;
}

.header-image-right.rotate {
    animation: rotate360 3s linear;
}

@keyframes flipHorizontal {
    0% {
        transform: translateY(-50%) scaleX(1);
    }
    50% {
        transform: translateY(-50%) scaleX(-1);
    }
    100% {
        transform: translateY(-50%) scaleX(-1);
    }
}

@keyframes rotate360 {
    0% {
        transform: translateY(-50%) rotate(0deg);
    }
    100% {
        transform: translateY(-50%) rotate(360deg);
    }
}

.main-title {
    font-family: 'Cinzel', serif;
    font-size: 4.5rem;
    font-weight: 900;
    letter-spacing: 0.3rem;
    text-transform: uppercase;
    color: var(--baroque-gold);
    text-shadow: 
        3px 3px 0px var(--void-black),
        0 0 20px rgba(212, 175, 55, 0.5),
        0 0 40px rgba(212, 175, 55, 0.3);
    margin-bottom: 1rem;
    animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% { text-shadow: 3px 3px 0px var(--void-black), 0 0 20px rgba(212, 175, 55, 0.5), 0 0 40px rgba(212, 175, 55, 0.3); }
    50% { text-shadow: 3px 3px 0px var(--void-black), 0 0 30px rgba(212, 175, 55, 0.8), 0 0 60px rgba(212, 175, 55, 0.5); }
}

.subtitle {
    font-size: 1.5rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.ornamental-divider {
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--baroque-gold), transparent);
    margin: 2rem auto;
    position: relative;
}

.ornamental-divider::before,
.ornamental-divider::after {
    content: '◆';
    position: absolute;
    top: -10px;
    color: var(--baroque-gold);
    font-size: 1.5rem;
}

.ornamental-divider::before {
    left: 0;
}

.ornamental-divider::after {
    right: 0;
}

/* Navigation */
.baroque-nav {
    background: var(--dark-red);
    padding: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    border-bottom: 2px solid var(--baroque-gold);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.baroque-nav a {
    color: var(--baroque-gold);
    text-decoration: none;
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    padding: 0.5rem 1.5rem;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.baroque-nav a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--baroque-gold);
    transition: width 0.3s ease;
}

.baroque-nav a:hover::before {
    width: 100%;
}

.baroque-nav a:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.8);
}

/* Hero Section */
.hero-section {
    padding: 5rem 2rem;
    text-align: center;
    position: relative;
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: 
        radial-gradient(circle at 20% 50%, rgba(139, 0, 0, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(92, 0, 0, 0.2) 0%, transparent 50%),
        linear-gradient(180deg, #0D0000 0%, #150000 100%);
    z-index: 5;
}

.quote-box {
    max-width: 800px;
    margin: 2rem auto;
    padding: 3rem;
    background: rgba(139, 0, 0, 0.3);
    border: 3px solid var(--baroque-gold);
    position: relative;
    animation: float 6s ease-in-out infinite;
}

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

.quote-box::before,
.quote-box::after {
    content: '"';
    position: absolute;
    font-size: 6rem;
    color: var(--baroque-gold);
    opacity: 0.3;
    font-family: 'Playfair Display', serif;
}

.quote-box::before {
    top: -20px;
    left: 20px;
}

.quote-box::after {
    bottom: -40px;
    right: 20px;
}

.large-quote {
    font-size: 1.8rem;
    font-style: italic;
    line-height: 1.6;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.quote-attribution {
    display: block;
    margin-top: 1.5rem;
    font-size: 1.1rem;
    color: var(--baroque-gold);
    font-style: normal;
}

.cta-container {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.baroque-button {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15rem;
    padding: 1.2rem 3rem;
    background: linear-gradient(135deg, var(--menstrual-red), var(--deep-red));
    color: var(--baroque-gold);
    border: 3px solid var(--baroque-gold);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.baroque-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.baroque-button:hover::before {
    width: 300px;
    height: 300px;
}

.baroque-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(212, 175, 55, 0.6);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.8);
}

.baroque-button:active {
    transform: scale(0.98);
}

.baroque-button.primary-cta,
.baroque-button.massive-cta {
    text-decoration: none;
    display: inline-block;
}

.primary-cta {
    background: linear-gradient(135deg, var(--baroque-gold), #B8941F);
    color: var(--void-black);
    border-color: var(--menstrual-red);
}

.secondary-cta {
    background: transparent;
    color: var(--baroque-gold);
}

.large-cta {
    font-size: 1.4rem;
    padding: 1.5rem 4rem;
}

.massive-cta {
    font-size: 1.6rem;
    padding: 1.8rem 5rem;
}

/* Graveyard Elements */
.graveyard-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
}

.tombstone {
    position: absolute;
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    color: #FFFFFF;
    text-shadow: 
        3px 3px 6px rgba(0, 0, 0, 1),
        0 0 10px rgba(212, 175, 55, 0.8),
        0 0 20px rgba(212, 175, 55, 0.5);
    padding: 1rem 2rem;
    background: rgba(0, 0, 0, 0.9);
    border: 3px solid var(--baroque-gold);
    transform: rotate(-5deg);
    animation: tombstoneFloat 8s ease-in-out infinite;
    font-weight: 700;
}

.tombstone-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.tombstone-2 {
    top: 60%;
    right: 15%;
    transform: rotate(5deg);
    animation-delay: 2s;
}

@keyframes tombstoneFloat {
    0%, 100% { transform: translateY(0px) rotate(-5deg); }
    50% { transform: translateY(-15px) rotate(-3deg); }
}

.tombstone-2 {
    animation-name: tombstoneFloat2;
}

@keyframes tombstoneFloat2 {
    0%, 100% { transform: translateY(0px) rotate(5deg); }
    50% { transform: translateY(-15px) rotate(7deg); }
}

/* Sections */
section {
    padding: 5rem 2rem;
    position: relative;
    z-index: 5;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-family: 'Cinzel', serif;
    font-size: 3.5rem;
    font-weight: 700;
    text-align: center;
    color: var(--baroque-gold);
    text-shadow: 
        2px 2px 0px var(--void-black),
        0 0 20px rgba(212, 175, 55, 0.5);
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.2rem;
}

.baroque-frame {
    background: rgba(139, 0, 0, 0.2);
    border: 3px solid var(--baroque-gold);
    padding: 2.5rem;
    position: relative;
    box-shadow: 
        inset 0 0 20px rgba(212, 175, 55, 0.1),
        0 4px 20px rgba(0, 0, 0, 0.5);
}

.baroque-frame::before,
.baroque-frame::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    border: 2px solid var(--baroque-gold);
}

.baroque-frame::before {
    top: 10px;
    left: 10px;
    border-right: none;
    border-bottom: none;
}

.baroque-frame::after {
    bottom: 10px;
    right: 10px;
    border-left: none;
    border-top: none;
}

/* Manifesto Section */
.manifesto-section {
    background: 
        linear-gradient(180deg, #150000 0%, #0D0000 50%, #150000 100%);
}

.manifesto-text {
    font-size: 1.3rem;
    line-height: 2;
    margin-bottom: 2rem;
    text-align: justify;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.text-content {
    margin: 3rem 0;
}

.quote-highlight {
    margin-top: 3rem;
    text-align: center;
    padding: 2rem;
}

.quote-highlight p {
    font-size: 1.8rem;
    font-style: italic;
    color: var(--baroque-gold);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* Rooms Section */
.rooms-section {
    background: 
        radial-gradient(circle at center, rgba(139, 0, 0, 0.2) 0%, #0D0000 100%);
}

.room-card {
    margin: 3rem 0;
    padding: 3rem;
}

.room-title {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    color: var(--baroque-gold);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.room-description {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.room-image-placeholder {
    width: 100%;
    min-height: 300px;
    background: 
        linear-gradient(135deg, rgba(139, 0, 0, 0.3), rgba(85, 107, 47, 0.2)),
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(212, 175, 55, 0.1) 10px,
            rgba(212, 175, 55, 0.1) 20px
        );
    border: 2px dashed var(--baroque-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
    padding: 1rem;
}

.room-image {
    max-width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
    border: 2px solid var(--baroque-gold);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.7);
    filter: brightness(0.9) contrast(1.1);
}

.room-image-placeholder::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle, rgba(255, 105, 180, 0.2) 0%, transparent 70%);
    animation: dreamPulse 4s ease-in-out infinite;
}

@keyframes dreamPulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
}

.image-label {
    position: relative;
    z-index: 1;
    color: var(--baroque-gold);
    font-size: 1.2rem;
    font-style: italic;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.featured-room {
    background: rgba(139, 0, 0, 0.4);
    border-width: 4px;
    box-shadow: 
        inset 0 0 30px rgba(212, 175, 55, 0.2),
        0 6px 30px rgba(212, 175, 55, 0.4);
}

/* Experience Section */
.experience-section {
    background: linear-gradient(180deg, #0D0000 0%, #150000 100%);
}

.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.experience-item {
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease;
}

.experience-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.3);
}

.experience-item h4 {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    color: var(--baroque-gold);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.experience-item p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

/* Philosophy Section */
.philosophy-section {
    background: 
        radial-gradient(ellipse at center, rgba(139, 0, 0, 0.25) 0%, #0D0000 100%);
}

.philosophy-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin: 3rem 0;
    align-items: center;
}

.philosophy-text {
    font-size: 1.2rem;
    line-height: 2;
    color: rgba(255, 255, 255, 0.9);
}

.philosophy-text p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.quote-box-large {
    padding: 3rem;
    text-align: center;
    background: rgba(139, 0, 0, 0.4);
}

.philosophy-quote {
    font-size: 2rem;
    font-style: italic;
    color: var(--baroque-gold);
    line-height: 1.6;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* Visit Section */
.visit-section {
    background: linear-gradient(180deg, #150000 0%, #0D0000 100%);
}

.visit-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.visit-info {
    padding: 2rem;
    text-align: center;
}

.visit-info h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    color: var(--baroque-gold);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.visit-info p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.final-cta-container {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 4rem;
}

/* Footer */
.baroque-footer {
    background: #0D0000;
    padding: 3rem 2rem;
    text-align: center;
    border-top: 3px solid var(--baroque-gold);
    position: relative;
    z-index: 10;
}

.footer-content p {
    font-size: 1.1rem;
    color: var(--baroque-gold);
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.footer-ornament {
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--baroque-gold), transparent);
    margin: 2rem auto;
    position: relative;
}

.footer-ornament::before,
.footer-ornament::after {
    content: '⚰';
    position: absolute;
    top: -15px;
    color: var(--baroque-gold);
    font-size: 1.5rem;
}

.footer-ornament::before {
    left: 0;
}

.footer-ornament::after {
    right: 0;
}

/* Dream-core Effects */
@keyframes dreamShift {
    0%, 100% { filter: hue-rotate(0deg) saturate(1); }
    50% { filter: hue-rotate(10deg) saturate(1.2); }
}

section {
    animation: dreamShift 20s ease-in-out infinite;
}

/* Corduroy Texture Effect */
.baroque-frame {
    background-image: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(107, 68, 35, 0.1) 2px,
            rgba(107, 68, 35, 0.1) 4px
        );
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .philosophy-content {
        grid-template-columns: 1fr;
    }
    
    .baroque-nav {
        gap: 1rem;
    }
    
    .baroque-nav a {
        font-size: 0.9rem;
        padding: 0.4rem 1rem;
    }
    
    .cta-container,
    .final-cta-container {
        flex-direction: column;
        align-items: center;
    }
    
    .baroque-button {
        width: 100%;
        max-width: 400px;
    }
    
    /* Header images - move to bottom on mobile */
    .header-image-left,
    .header-image-right {
        top: auto;
        bottom: 10px;
        transform: translateY(0);
    }
    
    /* RIP разум - move up 100px */
    .tombstone-1 {
        top: calc(20% - 100px);
    }
    
    /* Room titles smaller on mobile */
    .room-title {
        font-size: 1.5rem;
    }
    
    /* Hero section - ensure button is visible */
    .hero-section {
        z-index: 100;
    }
    
    .cta-container {
        z-index: 101;
        position: relative;
    }
    
    /* Manifesto section - ensure text is visible */
    .manifesto-section {
        z-index: 50;
        position: relative;
        animation: none !important;
        padding-top: calc(5rem + 100px);
        padding-left: 2rem;
        padding-right: 2rem;
    }
    
    .manifesto-text {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
    
    .text-content {
        z-index: 51;
        position: relative;
    }
    
    /* Fix header images animation on mobile - prevent jumping */
    .header-image-left.flip-horizontal {
        animation: flipHorizontalMobile 0.5s ease;
    }
    
    .header-image-right.rotate {
        animation: rotate360Mobile 3s linear;
    }
}

@keyframes flipHorizontalMobile {
    0% {
        transform: translateY(0) scaleX(1);
    }
    50% {
        transform: translateY(0) scaleX(-1);
    }
    100% {
        transform: translateY(0) scaleX(-1);
    }
}

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

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

section {
    animation: fadeInUp 1s ease-out;
}

/* Zombie Sections */
.zombie-section {
    padding: 0;
    margin: 0;
    height: 100vh;
    min-height: 600px;
    position: relative;
    overflow: hidden;
    background: 
        url('https://storage.googleapis.com/peredoz/images/haunted.png') center/cover no-repeat,
        radial-gradient(circle at center, rgba(139, 0, 0, 0.6) 0%, #1A0000 100%),
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 2px,
            rgba(92, 0, 0, 0.1) 2px,
            rgba(92, 0, 0, 0.1) 4px
        );
    background-blend-mode: overlay;
    z-index: 3;
}

.zombie-overlay-section {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zombie-container {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 2rem;
}

.zombie-image {
    width: 250px;
    height: 400px;
    object-fit: cover;
    border: 3px solid var(--zombie-green);
    box-shadow: 
        0 0 20px rgba(85, 107, 47, 0.6),
        inset 0 0 30px rgba(139, 0, 0, 0.4);
    filter: 
        grayscale(60%) 
        contrast(120%) 
        brightness(0.7)
        hue-rotate(10deg)
        saturate(150%);
    animation: zombieWalk 4s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

.zombie-1 {
    animation-delay: 0s;
    animation-name: zombieWalk1;
}

.zombie-2 {
    animation-delay: 0.5s;
    animation-name: zombieWalk2;
}

.zombie-3 {
    animation-delay: 1s;
    animation-name: zombieWalk3;
}

.zombie-4 {
    animation-delay: 0.3s;
    animation-name: zombieWalk1;
}

.zombie-5 {
    animation-delay: 0.8s;
    animation-name: zombieWalk2;
}

.zombie-6 {
    animation-delay: 0.2s;
    animation-name: zombieWalk3;
}

.zombie-7 {
    animation-delay: 0.7s;
    animation-name: zombieWalk1;
}

.zombie-8 {
    animation-delay: 1.2s;
    animation-name: zombieWalk2;
}

.zombie-9 {
    animation-delay: 0.4s;
    animation-name: zombieWalk3;
}

.zombie-10 {
    animation-delay: 0.9s;
    animation-name: zombieWalk1;
}

@keyframes zombieWalk1 {
    0%, 100% {
        transform: translateY(0) translateX(0) rotate(-2deg);
        filter: grayscale(60%) contrast(120%) brightness(0.7) hue-rotate(10deg) saturate(150%);
    }
    25% {
        transform: translateY(-20px) translateX(10px) rotate(2deg);
        filter: grayscale(70%) contrast(130%) brightness(0.6) hue-rotate(15deg) saturate(160%);
    }
    50% {
        transform: translateY(-10px) translateX(-10px) rotate(-1deg);
        filter: grayscale(65%) contrast(125%) brightness(0.65) hue-rotate(12deg) saturate(155%);
    }
    75% {
        transform: translateY(-15px) translateX(5px) rotate(1deg);
        filter: grayscale(70%) contrast(130%) brightness(0.6) hue-rotate(15deg) saturate(160%);
    }
}

@keyframes zombieWalk2 {
    0%, 100% {
        transform: translateY(0) translateX(0) rotate(2deg);
        filter: grayscale(65%) contrast(125%) brightness(0.65) hue-rotate(12deg) saturate(155%);
    }
    25% {
        transform: translateY(-15px) translateX(-10px) rotate(-2deg);
        filter: grayscale(70%) contrast(130%) brightness(0.6) hue-rotate(15deg) saturate(160%);
    }
    50% {
        transform: translateY(-25px) translateX(5px) rotate(1deg);
        filter: grayscale(60%) contrast(120%) brightness(0.7) hue-rotate(10deg) saturate(150%);
    }
    75% {
        transform: translateY(-10px) translateX(-5px) rotate(-1deg);
        filter: grayscale(70%) contrast(130%) brightness(0.6) hue-rotate(15deg) saturate(160%);
    }
}

@keyframes zombieWalk3 {
    0%, 100% {
        transform: translateY(0) translateX(0) rotate(0deg);
        filter: grayscale(70%) contrast(130%) brightness(0.6) hue-rotate(15deg) saturate(160%);
    }
    25% {
        transform: translateY(-10px) translateX(15px) rotate(3deg);
        filter: grayscale(60%) contrast(120%) brightness(0.7) hue-rotate(10deg) saturate(150%);
    }
    50% {
        transform: translateY(-20px) translateX(-15px) rotate(-3deg);
        filter: grayscale(65%) contrast(125%) brightness(0.65) hue-rotate(12deg) saturate(155%);
    }
    75% {
        transform: translateY(-5px) translateX(10px) rotate(2deg);
        filter: grayscale(70%) contrast(130%) brightness(0.6) hue-rotate(15deg) saturate(160%);
    }
}

/* Knife Container */
.knife-container {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 3rem;
    padding: 2rem;
    z-index: 2;
    pointer-events: none;
}

.knife {
    width: 120px;
    height: 120px;
    object-fit: contain;
    filter: 
        grayscale(40%) 
        contrast(150%) 
        brightness(0.8)
        drop-shadow(0 0 10px rgba(139, 0, 0, 0.8))
        drop-shadow(0 0 20px rgba(212, 175, 55, 0.4));
    animation: knifeFloat 3s ease-in-out infinite;
    opacity: 0.9;
}

.knife-1 {
    animation-delay: 0s;
    animation-name: knifeFloat1;
}

.knife-2 {
    animation-delay: 0.7s;
    animation-name: knifeFloat2;
}

.knife-3 {
    animation-delay: 1.4s;
    animation-name: knifeFloat3;
}

.knife-4 {
    animation-delay: 0.3s;
    animation-name: knifeFloat1;
}

.knife-5 {
    animation-delay: 1s;
    animation-name: knifeFloat2;
}

.knife-6 {
    animation-delay: 0.5s;
    animation-name: knifeFloat3;
}

.knife-7 {
    animation-delay: 1.2s;
    animation-name: knifeFloat1;
}

.knife-8 {
    animation-delay: 0.2s;
    animation-name: knifeFloat2;
}

.knife-9 {
    animation-delay: 0.9s;
    animation-name: knifeFloat3;
}

.knife-10 {
    animation-delay: 1.6s;
    animation-name: knifeFloat1;
}

@keyframes knifeFloat1 {
    0%, 100% {
        transform: translateY(0) translateX(0) rotate(0deg) scale(1);
        opacity: 0.9;
    }
    25% {
        transform: translateY(-30px) translateX(20px) rotate(90deg) scale(1.1);
        opacity: 1;
    }
    50% {
        transform: translateY(-50px) translateX(-20px) rotate(180deg) scale(0.95);
        opacity: 0.8;
    }
    75% {
        transform: translateY(-20px) translateX(15px) rotate(270deg) scale(1.05);
        opacity: 1;
    }
}

@keyframes knifeFloat2 {
    0%, 100% {
        transform: translateY(0) translateX(0) rotate(45deg) scale(1);
        opacity: 0.85;
    }
    25% {
        transform: translateY(-40px) translateX(-25px) rotate(135deg) scale(1.15);
        opacity: 1;
    }
    50% {
        transform: translateY(-60px) translateX(25px) rotate(225deg) scale(0.9);
        opacity: 0.75;
    }
    75% {
        transform: translateY(-25px) translateX(-15px) rotate(315deg) scale(1.1);
        opacity: 1;
    }
}

@keyframes knifeFloat3 {
    0%, 100% {
        transform: translateY(0) translateX(0) rotate(-45deg) scale(1);
        opacity: 0.9;
    }
    25% {
        transform: translateY(-35px) translateX(30px) rotate(45deg) scale(1.2);
        opacity: 1;
    }
    50% {
        transform: translateY(-55px) translateX(-30px) rotate(135deg) scale(0.85);
        opacity: 0.7;
    }
    75% {
        transform: translateY(-15px) translateX(20px) rotate(225deg) scale(1.15);
        opacity: 1;
    }
}

/* Additional zombie overlay effects */
.zombie-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(85, 107, 47, 0.05) 2px,
            rgba(85, 107, 47, 0.05) 4px
        );
    pointer-events: none;
    z-index: 1;
    animation: zombieScan 6s linear infinite;
}

@keyframes zombieScan {
    0% { opacity: 0.3; }
    50% { opacity: 0.6; }
    100% { opacity: 0.3; }
}

/* Guest Crawler - Human crawling around perimeter */
.guest-crawler {
    position: absolute;
    width: 80px;
    height: 80px;
    z-index: 10;
    pointer-events: none;
}

.guest-1,
.guest-2,
.guest-3,
.guest-4 {
    padding: 20px;
    box-sizing: border-box;
    width: 160px;
    height: 160px;
    max-width: calc(100vw - 40px);
    max-height: calc(100vh - 40px);
}

.guest-1 .guest-image,
.guest-2 .guest-image,
.guest-3 .guest-image,
.guest-4 .guest-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.guest-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.6));
    animation: guestCrawl 20s linear infinite, guestTwitch 0.5s ease-in-out infinite;
}

.guest-label {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    color: var(--baroque-gold);
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 1),
        0 0 10px rgba(212, 175, 55, 0.8);
    font-weight: 700;
    white-space: nowrap;
    background: rgba(0, 0, 0, 0.8);
    padding: 0.3rem 0.8rem;
    border: 1px solid var(--baroque-gold);
}

.guest-1 {
    animation: crawlPerimeter1 25s linear infinite;
}

.guest-2 {
    animation: crawlPerimeter2 30s linear infinite;
}

.guest-3 {
    animation: crawlPerimeter3 28s linear infinite;
}

.guest-4 {
    animation: crawlPerimeter4 32s linear infinite;
}

/* Guest Follower - follows the main guest */
.guest-follower {
    position: absolute;
    width: 70px;
    height: 70px;
    z-index: 9;
    pointer-events: none;
}

.guest-1-follower {
    animation: crawlPerimeter1Follower 25s linear infinite;
    animation-delay: 1s;
}

.guest-2-follower {
    animation: crawlPerimeter2Follower 30s linear infinite;
    animation-delay: 1.2s;
}

.guest-3-follower {
    animation: crawlPerimeter3Follower 28s linear infinite;
    animation-delay: 1s;
}

.guest-4-follower {
    animation: crawlPerimeter4Follower 32s linear infinite;
    animation-delay: 1.3s;
}

@keyframes crawlPerimeter1Follower {
    0% { top: 20px; left: 20px; }
    25% { top: 20px; left: calc(100% - 100px); }
    50% { top: calc(100% - 100px); left: calc(100% - 100px); }
    75% { top: calc(100% - 100px); left: 20px; }
    100% { top: 20px; left: 20px; }
}

@keyframes crawlPerimeter2Follower {
    0% { top: calc(100% - 100px); left: calc(100% - 100px); }
    25% { top: calc(100% - 100px); left: 20px; }
    50% { top: 20px; left: 20px; }
    75% { top: 20px; left: calc(100% - 100px); }
    100% { top: calc(100% - 100px); left: calc(100% - 100px); }
}

@keyframes crawlPerimeter3Follower {
    0% { top: 20px; left: calc(100% - 100px); }
    25% { top: calc(100% - 100px); left: calc(100% - 100px); }
    50% { top: calc(100% - 100px); left: 20px; }
    75% { top: 20px; left: 20px; }
    100% { top: 20px; left: calc(100% - 100px); }
}

@keyframes crawlPerimeter4Follower {
    0% { top: calc(100% - 100px); left: 20px; }
    25% { top: 20px; left: 20px; }
    50% { top: 20px; left: calc(100% - 100px); }
    75% { top: calc(100% - 100px); left: calc(100% - 100px); }
    100% { top: calc(100% - 100px); left: 20px; }
}

@keyframes crawlPerimeter1 {
    0% { top: 0; left: 0; }
    25% { top: 0; left: calc(100% - 160px); }
    50% { top: calc(100% - 160px); left: calc(100% - 160px); }
    75% { top: calc(100% - 160px); left: 0; }
    100% { top: 0; left: 0; }
}

@keyframes crawlPerimeter2 {
    0% { top: calc(100% - 160px); left: calc(100% - 160px); }
    25% { top: calc(100% - 160px); left: 0; }
    50% { top: 0; left: 0; }
    75% { top: 0; left: calc(100% - 160px); }
    100% { top: calc(100% - 160px); left: calc(100% - 160px); }
}

@keyframes crawlPerimeter3 {
    0% { top: 0; left: calc(100% - 160px); }
    25% { top: calc(100% - 160px); left: calc(100% - 160px); }
    50% { top: calc(100% - 160px); left: 0; }
    75% { top: 0; left: 0; }
    100% { top: 0; left: calc(100% - 160px); }
}

@keyframes crawlPerimeter4 {
    0% { top: calc(100% - 160px); left: 0; }
    25% { top: 0; left: 0; }
    50% { top: 0; left: calc(100% - 160px); }
    75% { top: calc(100% - 160px); left: calc(100% - 160px); }
    100% { top: calc(100% - 160px); left: 0; }
}

@keyframes guestCrawl {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(90deg) scale(1.1); }
    50% { transform: rotate(180deg) scale(1); }
    75% { transform: rotate(270deg) scale(1.1); }
}

@keyframes guestTwitch {
    0%, 100% { transform: translateX(0) translateY(0); }
    25% { transform: translateX(2px) translateY(-2px); }
    50% { transform: translateX(-2px) translateY(2px); }
    75% { transform: translateX(2px) translateY(2px); }
}

/* Hero Images */
.hero-images {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    z-index: 0;
    pointer-events: none;
    opacity: 0.5;
}

.hero-image {
    max-width: 250px;
    max-height: 200px;
    width: auto;
    height: auto;
    object-fit: contain;
    border: 2px solid var(--baroque-gold);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
    filter: brightness(0.8) contrast(1.2);
    animation: heroImageFloat 6s ease-in-out infinite;
}

.hero-image:nth-child(2) {
    animation-delay: 1.5s;
}

@keyframes heroImageFloat {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

/* Responsive for zombie sections */
@media (max-width: 768px) {
    .zombie-image {
        width: 150px;
        height: 250px;
    }
    
    .knife {
        width: 80px;
        height: 80px;
    }
    
    .zombie-container,
    .knife-container {
        gap: 1rem;
        padding: 1rem;
    }
    
    .guest-crawler {
        width: 60px;
        height: 60px;
    }
    
    .guest-crawler {
        width: 60px;
        height: 60px;
    }
    
    .guest-1,
    .guest-2,
    .guest-3,
    .guest-4 {
        width: 167px;
        height: 167px;
        padding: 20px;
    }
    
    .guest-label {
        font-size: 0.7rem;
        padding: 0.2rem 0.5rem;
    }
    
    /* Update animations for guest size on mobile (167px) */
    @keyframes crawlPerimeter1 {
        0% { top: 0; left: 0; }
        25% { top: 0; left: calc(100% - 167px); }
        50% { top: calc(100% - 167px); left: calc(100% - 167px); }
        75% { top: calc(100% - 167px); left: 0; }
        100% { top: 0; left: 0; }
    }
    
    @keyframes crawlPerimeter2 {
        0% { top: calc(100% - 167px); left: calc(100% - 167px); }
        25% { top: calc(100% - 167px); left: 0; }
        50% { top: 0; left: 0; }
        75% { top: 0; left: calc(100% - 167px); }
        100% { top: calc(100% - 167px); left: calc(100% - 167px); }
    }
    
    @keyframes crawlPerimeter3 {
        0% { top: 0; left: calc(100% - 167px); }
        25% { top: calc(100% - 167px); left: calc(100% - 167px); }
        50% { top: calc(100% - 167px); left: 0; }
        75% { top: 0; left: 0; }
        100% { top: 0; left: calc(100% - 167px); }
    }
    
    @keyframes crawlPerimeter4 {
        0% { top: calc(100% - 167px); left: 0; }
        25% { top: 0; left: 0; }
        50% { top: 0; left: calc(100% - 167px); }
        75% { top: calc(100% - 167px); left: calc(100% - 167px); }
        100% { top: calc(100% - 167px); left: 0; }
    }
    
    .hero-image {
        max-width: 250px;
        max-height: 200px;
    }
}

/* Transformer Modal */
.transformer-modal {
    position: fixed;
    bottom: -500px;
    right: -500px;
    width: 400px;
    height: 400px;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.transformer-modal.show {
    opacity: 1;
    pointer-events: all;
    animation: transformerFlipIn 2s ease-out forwards;
}

.transformer-modal.hide {
    animation: transformerFlipOut 1s ease-in forwards;
}

.transformer-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.8));
}

.download-link {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--menstrual-red), var(--deep-red));
    color: var(--baroque-gold);
    border: 3px solid var(--baroque-gold);
    text-decoration: none;
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
    opacity: 0;
    transform: scale(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 10001;
    cursor: pointer;
}

.download-link.visible {
    opacity: 1;
    transform: scale(1);
    animation: downloadLinkPulse 1s ease-in-out infinite;
}

.download-link:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(212, 175, 55, 0.9);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.8);
}

@keyframes transformerFlipIn {
    0% {
        bottom: -500px;
        right: -500px;
        transform: rotate(0deg) scale(0);
        opacity: 0;
    }
    50% {
        bottom: 50px;
        right: 50px;
        transform: rotate(180deg) scale(1.2);
        opacity: 1;
    }
    100% {
        bottom: 50px;
        right: 50px;
        transform: rotate(360deg) scale(1);
        opacity: 1;
    }
}

@keyframes transformerFlipOut {
    0% {
        bottom: 50px;
        right: 50px;
        transform: rotate(0deg) scale(1);
        opacity: 1;
    }
    100% {
        bottom: -500px;
        right: -500px;
        transform: rotate(-180deg) scale(0);
        opacity: 0;
    }
}

@keyframes downloadLinkPulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.8), 0 0 10px rgba(212, 175, 55, 0.5);
    }
    50% {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.8), 0 0 20px rgba(212, 175, 55, 0.9);
    }
}

/* Heart Animation Overlays */
.heart-animation-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.heart-animation-overlay.show {
    opacity: 1;
    pointer-events: all;
}

.heart-animation-overlay.hide {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.nuclear-bomb {
    z-index: 20001;
    background: rgba(0, 0, 0, 0.9);
}

.heart-image {
    z-index: 20000;
    background: rgba(0, 0, 0, 0.7);
}

.heart-animation-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-width: 100vw;
    max-height: 100vh;
}

@media (max-width: 768px) {
    .transformer-modal {
        width: 300px;
        height: 300px;
    }
    
    .download-link {
        font-size: 1rem;
        padding: 0.8rem 1.5rem;
    }
    
    @keyframes transformerFlipIn {
        0% {
            bottom: -400px;
            right: -400px;
            transform: rotate(0deg) scale(0);
            opacity: 0;
        }
        50% {
            bottom: 30px;
            right: 30px;
            transform: rotate(180deg) scale(1.2);
            opacity: 1;
        }
        100% {
            bottom: 30px;
            right: 30px;
            transform: rotate(360deg) scale(1);
            opacity: 1;
        }
    }
    
    @keyframes transformerFlipOut {
        0% {
            bottom: 30px;
            right: 30px;
            transform: rotate(0deg) scale(1);
            opacity: 1;
        }
        100% {
            bottom: -400px;
            right: -400px;
            transform: rotate(-180deg) scale(0);
            opacity: 0;
        }
    }
}
