/* Valeria Labs - Main Styles */
@import url("./variables.css");

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    /* background: var(--bg-gradient-primary); */
    background: url("flowerbg.png") no-repeat center center fixed;
    background-size: cover;
    min-height: 100%;
}

body {
    font-family: var(--font-family-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    /*
    background: var(--bg-gradient-primary);

    background: url("/assets/flowerbg.png") no-repeat center center fixed;
    background-size: cover; */
}

/* Animated Background */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-gradient-primary);
    z-index: var(--z-background);
}

.background::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(
            circle at 20% 30%,
            rgba(76, 201, 240, 0.3) 0%,
            transparent 50%
        ),
        radial-gradient(
            circle at 80% 70%,
            rgba(247, 37, 133, 0.2) 0%,
            transparent 50%
        ),
        radial-gradient(
            circle at 40% 80%,
            rgba(58, 12, 163, 0.3) 0%,
            transparent 50%
        );
    animation: float 60s ease-in-out infinite;
}

@keyframes float {
    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(30px, -30px) rotate(120deg);
    }
    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
}

/* Glass Morphism Base Classes */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--glass-shadow);
    position: relative;
    z-index: var(--z-content);
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-md);
    box-shadow: var(--glass-shadow);
    padding: var(--spacing-xl);
    transition: all var(--transition-smooth);
}

.glass-card-nopadding {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-md);
    box-shadow: var(--glass-shadow);
    padding-top: var(--spacing-xl);
    transition: all var(--transition-smooth);
}

.glass-card:hover {
    transform: var(--hover-lift);
    box-shadow: var(--hover-glow), var(--glass-shadow);
}
.glass-card-nopadding:hover {
    transform: var(--hover-lift);
    box-shadow: var(--hover-glow), var(--glass-shadow);
}

/* Container and Layout */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section {
    padding: var(--section-padding) 0;
    position: relative;
    z-index: var(--z-content);
}

/* Typography */
.hero-subtitle {
    background: linear-gradient(
        135deg,
        var(--accent-coral),
        var(--accent-herosubtitle)
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-title {
    font-size: var(--font-size-hero);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    text-align: center;
    background: linear-gradient(
        135deg,
        var(--primary-deep-indigo),
        var(--primary-teal)
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title {
    font-size: var(--font-size-h1);
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
    text-align: center;
    color: white;
}

.subsection-title {
    font-size: var(--font-size-h2);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

.subtitle {
    font-size: var(--font-size-body);
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: var(--spacing-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: var(--border-radius-lg);
    text-decoration: none;
    font-weight: 600;
    font-size: var(--font-size-body);
    transition: all var(--transition-smooth);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(
        135deg,
        var(--accent-coral),
        var(--accent-magenta)
    );
    color: var(--text-on-accent);
    box-shadow: 0 4px 15px rgba(247, 37, 133, 0.3);
}

.btn-primary:hover {
    transform: var(--hover-lift);
    box-shadow: var(--hover-glow);
}

.btn-primary:active {
    transform: var(--active-scale);
}

.btn-secondary {
    background: var(--glass-bg);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: var(--hover-lift);
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: var(--spacing-md) 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    z-index: var(--z-navigation);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

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

.logo {
    font-size: var(--font-size-h3);
    font-weight: 700;
    color: var(--primary-deep-indigo);
    text-decoration: none;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--primary-deep-indigo);
    font-size: 1.5rem;
    cursor: pointer;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.nav-link:hover {
    color: var(--primary-deep-indigo);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding-top: 80px; /* Account for fixed navigation */
    box-sizing: border-box;
}

.hero-content {
    max-width: var(--container-max-width);
    width: 100%;
    padding: var(--spacing-2xl) var(--spacing-xl);
    margin: 0 auto;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 80%;
    object-fit: cover;
    opacity: 0.3;
    z-index: -1;
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
}

/* Feature Cards */
.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--spacing-md);
    background: linear-gradient(
        135deg,
        var(--primary-teal),
        var(--primary-deep-indigo)
    );
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.feature-title {
    font-size: var(--font-size-h3);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    text-align: center;
}

.feature-description {
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.5;
}

/* Timeline/Steps */
.timeline {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
    max-width: 600px;
    margin: 0 auto;
}

.timeline-item {
    display: flex;
    gap: var(--spacing-lg);
    align-items: flex-start;
}

.timeline-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(
        135deg,
        var(--accent-coral),
        var(--accent-magenta)
    );
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-on-accent);
    font-weight: 600;
    flex-shrink: 0;
}

.timeline-content h3 {
    margin-bottom: var(--spacing-xs);
}

/* Testimonials */
.testimonial-slider {
    position: relative;
    overflow: hidden;
}

.testimonial-item {
    text-align: center;
    padding: var(--spacing-xl);
}

.testimonial-quote {
    font-size: var(--font-size-h3);
    font-style: italic;
    margin-bottom: var(--spacing-lg);
    color: var(--text-primary);
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-info h4 {
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.testimonial-info p {
    color: var(--text-secondary);
    font-size: var(--font-size-small);
}

/* Form Styles */
.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: var(--spacing-md);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(58, 12, 163, 0.2);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all var(--transition-fast);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-tertiary);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-teal);
    box-shadow: 0 0 0 2px rgba(76, 201, 240, 0.2);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .section {
        padding: var(--spacing-2xl) 0;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .nav {
        padding: var(--spacing-sm) 0;
    }

    .nav-container {
        padding: 0 var(--spacing-md);
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(var(--glass-blur));
        -webkit-backdrop-filter: blur(var(--glass-blur));
        padding: var(--spacing-lg);
        transform: translateY(-100%);
        transition: transform var(--transition-smooth);
        border-top: 1px solid rgba(58, 12, 163, 0.2);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
        opacity: 0;
        visibility: hidden;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-menu li {
        margin: var(--spacing-sm) 0;
    }

    .nav-link {
        color: var(--primary-deep-indigo);
        font-weight: 600;
        padding: var(--spacing-sm) 0;
        display: block;
        text-align: center;
        border-bottom: 1px solid rgba(58, 12, 163, 0.1);
    }

    .nav-link:hover {
        color: var(--accent-coral);
        background: rgba(76, 201, 240, 0.1);
    }

    .nav-toggle {
        display: block;
        padding: var(--spacing-xs);
    }

    .timeline {
        padding: 0 var(--spacing-md);
    }

    .timeline-item {
        flex-direction: column;
        text-align: center;
    }
}

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

    .glass-card,
    .glass-card-nopadding {
        padding: var(--spacing-lg);
    }

    .hero-content {
        padding: var(--spacing-xl) var(--spacing-md);
        max-width: 100%;
    }

    .hero {
        padding-top: 70px; /* Smaller padding for mobile nav */
    }

    .btn {
        padding: var(--spacing-sm) var(--spacing-lg);
        width: 100%;
        max-width: 280px;
    }

    .nav-menu {
        top: 60px;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}
.text-left {
    text-align: left;
}
.text-right {
    text-align: right;
}

.mb-sm {
    margin-bottom: var(--spacing-sm);
}
.mb-md {
    margin-bottom: var(--spacing-md);
}
.mb-lg {
    margin-bottom: var(--spacing-lg);
}
.mb-xl {
    margin-bottom: var(--spacing-xl);
}

.mt-sm {
    margin-top: var(--spacing-sm);
}
.mt-md {
    margin-top: var(--spacing-md);
}
.mt-lg {
    margin-top: var(--spacing-lg);
}
.mt-xl {
    margin-top: var(--spacing-xl);
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all var(--transition-slow);
}

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

/* Carousel Styles */
.carousel-wrapper {
    width: 100%;
}

.carousel-container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    width: 100%;
}

.carousel-images {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 400px;
    overflow: visible;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 var(--spacing-lg);
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: var(--border-radius-md);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all var(--transition-fast);
    color: var(--primary-deep-indigo);
    font-size: 2rem;
    font-weight: 300;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.carousel-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-btn-prev {
    left: 16px;
}

.carousel-btn-next {
    right: 16px;
}

.carousel-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.8);
    background: transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
    padding: 0;
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
}

.carousel-dot.active {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.2);
}

.carousel-text {
    width: 100%;
    position: relative;
    min-height: 120px;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.carousel-text-content {
    opacity: 0;
    position: absolute;
    top: var(--spacing-md);
    left: 0;
    right: 0;
    transition: opacity 0.5s ease-in-out;
    width: 100%;
}

.carousel-text-content.active {
    opacity: 1;
    position: relative;
    top: 0;
}

.carousel-title {
    font-size: var(--font-size-h2);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    background: linear-gradient(
        135deg,
        var(--primary-deep-indigo),
        var(--primary-teal)
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.carousel-description {
    font-size: var(--font-size-body);
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Mobile Responsive Carousel */
@media (max-width: 768px) {
    .carousel-images {
        height: 30vh;
        max-height: 30vh;
        min-height: 300px;
    }

    .carousel-slide {
        padding: var(--spacing-md);
    }

    .carousel-text {
        min-height: 180px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .carousel-btn-prev {
        left: 12px;
    }

    .carousel-btn-next {
        right: 12px;
    }

    .carousel-dots {
        bottom: 12px;
    }

    .carousel-dot {
        width: 10px;
        height: 10px;
    }

    .carousel-title {
        font-size: var(--font-size-h3);
    }

    .carousel-description {
        font-size: var(--font-size-small);
    }
}

/* Flying Mosquito Animation */
.mosquito {
    position: fixed;
    top: 0;
    left: 0;
    width: 30px;
    height: 30px;
    z-index: 1000;
    pointer-events: auto;
    cursor: pointer;
    opacity: 0.7;
    transition: transform 6s ease-in-out, left 6s ease-in-out, top 6s ease-in-out;
}

.mosquito:hover {
    opacity: 1;
    transform: scale(1.2);
}

.mosquito.splatted {
    animation: none;
    pointer-events: none;
    transform: none !important; /* Keep it in the position where it was killed */
}

.mosquito.splatted .mosquito-svg {
    opacity: 0;
    transition: opacity 0.1s ease-out;
}

.mosquito.splatted .splat-overlay {
    opacity: 1;
    transform: scale(1);
}

.mosquito svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.3));
    transition: opacity 0.1s ease-out;
}

.mosquito svg path:nth-child(3),
.mosquito svg path:nth-child(4) {
    animation: wingFlap 0.1s ease-in-out infinite;
    transform-origin: center;
}

/* Splat effect */
.splat-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    transition: transform 0.2s ease-out, opacity 0.1s ease-out;
    pointer-events: none;
}

.splat-svg {
    width: 80px;
    height: 80px;
    filter: drop-shadow(0 0 5px rgba(139, 0, 0, 0.7)) drop-shadow(0 0 10px rgba(139, 0, 0, 0.4));
}

.mosquito.splatted .splat-overlay {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

/* Blood drops */
.blood-drops {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.1s ease-out;
}

.mosquito.splatted .blood-drops {
    opacity: 1;
}

.blood-drop {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #8b0000;
    border-radius: 50% 40% 50% 40%;
    opacity: 0;
    box-shadow: 0 0 8px rgba(139, 0, 0, 0.9), 0 0 4px rgba(200, 0, 0, 0.6);
    transform: scale(0);
}

.mosquito.splatted .blood-drop-1 {
    animation: bloodOoze1 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

.mosquito.splatted .blood-drop-2 {
    animation: bloodOoze2 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.1s forwards;
}

.mosquito.splatted .blood-drop-3 {
    animation: bloodOoze3 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.2s forwards;
}

.mosquito.splatted .blood-drop-4 {
    animation: bloodOoze4 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.3s forwards;
}

.mosquito.splatted .blood-drop-5 {
    animation: bloodOoze5 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.4s forwards;
}

.mosquito.splatted .blood-drop-6 {
    animation: bloodOoze6 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.5s forwards;
}

.mosquito.splatted .blood-drop-7 {
    animation: bloodOoze7 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.15s forwards;
}

.mosquito.splatted .blood-drop-8 {
    animation: bloodOoze8 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.25s forwards;
}

.mosquito.splatted .blood-drop-9 {
    animation: bloodOoze9 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.35s forwards;
}

.mosquito.splatted .blood-drop-10 {
    animation: bloodOoze10 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.45s forwards;
}

@keyframes bloodOoze7 {
    0% {
        transform: translate(0, 0) scale(0) rotate(0deg);
        opacity: 0;
    }
    5% {
        opacity: 1;
        transform: translate(0, 0) scale(1.3) rotate(120deg);
    }
    100% {
        transform: translate(35px, 40px) scale(2.9) rotate(350deg);
        opacity: 0.9;
    }
}

@keyframes bloodOoze8 {
    0% {
        transform: translate(0, 0) scale(0) rotate(0deg);
        opacity: 0;
    }
    5% {
        opacity: 1;
        transform: translate(0, 0) scale(1.4) rotate(-120deg);
    }
    100% {
        transform: translate(-40px, 30px) scale(2.6) rotate(-300deg);
        opacity: 0.9;
    }
}

@keyframes bloodOoze9 {
    0% {
        transform: translate(0, 0) scale(0) rotate(0deg);
        opacity: 0;
    }
    5% {
        opacity: 1;
        transform: translate(0, 0) scale(1.6) rotate(150deg);
    }
    100% {
        transform: translate(45px, -25px) scale(3.1) rotate(400deg);
        opacity: 0.9;
    }
}

@keyframes bloodOoze10 {
    0% {
        transform: translate(0, 0) scale(0) rotate(0deg);
        opacity: 0;
    }
    5% {
        opacity: 1;
        transform: translate(0, 0) scale(1.1) rotate(-150deg);
    }
    100% {
        transform: translate(-50px, -35px) scale(2.5) rotate(-350deg);
        opacity: 0.9;
    }
}

@keyframes bloodOoze1 {
    0% {
        transform: translate(0, 0) scale(0) rotate(0deg);
        opacity: 0;
    }
    5% {
        opacity: 1;
        transform: translate(0, 0) scale(1.2) rotate(45deg);
    }
    100% {
        transform: translate(40px, 50px) scale(2.5) rotate(180deg);
        opacity: 0.9;
    }
}

@keyframes bloodOoze2 {
    0% {
        transform: translate(0, 0) scale(0) rotate(0deg);
        opacity: 0;
    }
    5% {
        opacity: 1;
        transform: translate(0, 0) scale(1.3) rotate(-30deg);
    }
    100% {
        transform: translate(-45px, 35px) scale(2.8) rotate(-200deg);
        opacity: 0.9;
    }
}

@keyframes bloodOoze3 {
    0% {
        transform: translate(0, 0) scale(0) rotate(0deg);
        opacity: 0;
    }
    5% {
        opacity: 1;
        transform: translate(0, 0) scale(1.1) rotate(60deg);
    }
    100% {
        transform: translate(50px, -30px) scale(2.6) rotate(250deg);
        opacity: 0.9;
    }
}

@keyframes bloodOoze4 {
    0% {
        transform: translate(0, 0) scale(0) rotate(0deg);
        opacity: 0;
    }
    5% {
        opacity: 1;
        transform: translate(0, 0) scale(1.4) rotate(-45deg);
    }
    100% {
        transform: translate(-35px, -45px) scale(2.4) rotate(-180deg);
        opacity: 0.9;
    }
}

@keyframes bloodOoze5 {
    0% {
        transform: translate(0, 0) scale(0) rotate(0deg);
        opacity: 0;
    }
    5% {
        opacity: 1;
        transform: translate(0, 0) scale(1.5) rotate(90deg);
    }
    100% {
        transform: translate(60px, 20px) scale(3.0) rotate(300deg);
        opacity: 0.9;
    }
}

@keyframes bloodOoze6 {
    0% {
        transform: translate(0, 0) scale(0) rotate(0deg);
        opacity: 0;
    }
    5% {
        opacity: 1;
        transform: translate(0, 0) scale(1.2) rotate(-60deg);
    }
    100% {
        transform: translate(-55px, 25px) scale(2.7) rotate(-250deg);
        opacity: 0.9;
    }
}

@keyframes flyAcross {
    0% {
        transform: translate(-50px, 20vh) rotate(0deg);
    }
    10% {
        transform: translate(15vw, 15vh) rotate(15deg);
    }
    20% {
        transform: translate(30vw, 25vh) rotate(-10deg);
    }
    30% {
        transform: translate(45vw, 20vh) rotate(10deg);
    }
    40% {
        transform: translate(60vw, 30vh) rotate(-15deg);
    }
    50% {
        transform: translate(75vw, 25vh) rotate(5deg);
    }
    60% {
        transform: translate(90vw, 20vh) rotate(-5deg);
    }
    70% {
        transform: translate(105vw, 15vh) rotate(10deg);
    }
    80% {
        transform: translate(120vw, 25vh) rotate(-10deg);
    }
    90% {
        transform: translate(135vw, 20vh) rotate(5deg);
    }
    100% {
        transform: translate(150vw, 15vh) rotate(0deg);
    }
}

@keyframes wingFlap {
    0%, 100% {
        transform: scaleY(1);
    }
    50% {
        transform: scaleY(0.3);
    }
}

/* Malaria Spreading Effect */
.malaria-spread-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
    display: none;
    overflow: hidden;
}

.malaria-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(139, 0, 0, 0) 0%, rgba(139, 0, 0, 0.1) 50%, rgba(139, 0, 0, 0.3) 100%);
    opacity: 0;
    animation: malariaOverlaySpread 15s ease-in forwards;
}

@keyframes malariaOverlaySpread {
    0% {
        opacity: 0;
        transform: scale(0.1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1);
    }
    100% {
        opacity: 0.8;
        transform: scale(1.2);
    }
}

.malaria-spot {
    position: absolute;
    background: radial-gradient(circle, #8b0000 0%, #5a0000 50%, transparent 100%);
    border-radius: 50%;
    opacity: 0;
    animation: malariaAppear 2s ease-out forwards, malariaPulse 2s ease-in-out infinite, malariaGrow 10s ease-out forwards;
    box-shadow: 0 0 10px rgba(139, 0, 0, 0.8), 0 0 20px rgba(139, 0, 0, 0.4);
    transition: width 2s ease-out, height 2s ease-out;
}

@keyframes malariaGrow {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(2.5);
    }
}

@keyframes malariaAppear {
    0% {
        opacity: 0;
        transform: scale(0) rotate(0deg);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.2) rotate(180deg);
    }
    100% {
        opacity: 0.9;
        transform: scale(1) rotate(360deg);
    }
}

@keyframes malariaPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.9;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }
}

.malaria-text {
    position: absolute;
    font-size: 3rem;
    font-weight: 900;
    color: #8b0000;
    text-shadow: 
        0 0 10px rgba(139, 0, 0, 1),
        0 0 20px rgba(139, 0, 0, 0.8),
        0 0 30px rgba(139, 0, 0, 0.6),
        2px 2px 4px rgba(0, 0, 0, 0.8);
    animation: malariaTextAppear 1s ease-out forwards, malariaTextShake 0.5s ease-in-out infinite;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    z-index: 1000;
    font-family: Arial, sans-serif;
    letter-spacing: 0.2em;
}

.malaria-text-2 {
    top: 35%;
    animation-delay: 0.5s;
    font-size: 2.5rem;
}

.malaria-text-3 {
    top: 50%;
    animation-delay: 1s;
    font-size: 2rem;
}

@keyframes malariaTextAppear {
    0% {
        opacity: 0;
        transform: translateX(-50%) scale(0.5) translateY(-50px);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) scale(1) translateY(0);
    }
}

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