/* ===== LOGO STYLES - EXTRACTED FROM STYLE.CSS ===== */

/* Mobile Logo Styling */
@media (max-width: 768px) {
    .logo-main {
        font-size: 2rem;
        font-weight: 800;
        margin-bottom: 0.5rem;
        color: white;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
        letter-spacing: -0.02em;
    }

    .logo-main .blood {
        color: #C62828 !important;
        text-shadow: 0 2px 8px rgba(198, 40, 40, 0.5);
    }

    .logo-main {
        font-size: clamp(1.2rem, 4.5vw, 1.6rem) !important;
        gap: clamp(0.3rem, 1.2vw, 0.6rem) !important;
        margin-bottom: clamp(0.2rem, 0.8vh, 0.6rem) !important;
    }

    .heart-logo {
        width: clamp(65px, 12vh, 80px) !important;
        height: clamp(65px, 12vh, 80px) !important;
        margin: clamp(0.3rem, 1.5vh, 0.8rem) auto clamp(0.3rem, 1.2vh, 0.6rem) !important;
    }

    .heart-icon {
        font-size: clamp(1.1rem, 4vh, 1.6rem) !important;
    }
}

/* ===== ANIMATED LOGO STYLES ===== */
/* Extracted from style.css for better organization */
/* Contains: animated heart logo, blood drops, logo title text, tagline text, and theme toggle switch */

/* ===== BLOOD DROP ANIMATIONS ===== */
/* Realistic blood drops falling from heart logo */
.blood-drops-container {
    position: absolute;
    top: clamp(70px, 10vh, 90px);
    left: 50%;
    width: 200px;
    height: 100vh;
    pointer-events: none;
    z-index: 100000;
    overflow: visible;
    transform: translateX(-50%);
}

.blood-drop-falling {
    position: absolute;
    font-size: clamp(0.7rem, 1.5vh, 0.9rem);
    color: var(--blood-drop-color);
    opacity: 0;
    filter: var(--blood-drop-shadow);
    text-shadow: var(--blood-drop-text-shadow);
    left: 50%;
    top: 0;
    transform: translateX(-50%);
}

.blood-drop-falling.drop-center {
    animation: realisticBloodFall 30s ease-in infinite;
    animation-delay: 0s;
}

.blood-drop-falling.drop-left {
    animation: realisticBloodFallLeft 30s ease-in infinite;
    animation-delay: 10s;
}

.blood-drop-falling.drop-right {
    animation: realisticBloodFallRight 30s ease-in infinite;
    animation-delay: 20s;
}

/* Blood Drop Keyframe Animations - 30s cycle for sequential drops */
@keyframes realisticBloodFall {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(0) scale(0.3);
    }
    1% {
        opacity: 0.8;
        transform: translateX(-50%) translateY(0) scale(0.6);
    }
    3% {
        opacity: 1;
        transform: translateX(-60%) translateY(3vh) scale(1);
    }
    10% {
        transform: translateX(-40%) translateY(15vh) scale(1);
    }
    18% {
        transform: translateX(-65%) translateY(30vh) scale(1);
    }
    26% {
        transform: translateX(-35%) translateY(45vh) scale(1);
    }
    30% {
        opacity: 0.5;
        transform: translateX(-50%) translateY(50vh) scale(0.9);
    }
    33% {
        opacity: 0;
        transform: translateX(-50%) translateY(53vh) scale(0.8);
    }
    33.1%, 100% {
        opacity: 0;
        transform: translateX(-50%) translateY(0) scale(0.3);
    }
}

@keyframes realisticBloodFallLeft {
    0%, 33.2% {
        opacity: 0;
        transform: translateX(-50%) translateY(0) scale(0.3);
    }
    33.3% {
        opacity: 0;
        transform: translateX(-50%) translateY(0) scale(0.3);
    }
    34.3% {
        opacity: 0.8;
        transform: translateX(-50%) translateY(0) scale(0.6);
    }
    36.3% {
        opacity: 1;
        transform: translateX(-30%) translateY(3vh) scale(1);
    }
    43.3% {
        transform: translateX(-70%) translateY(15vh) scale(1);
    }
    51.3% {
        transform: translateX(-25%) translateY(30vh) scale(1);
    }
    59.3% {
        transform: translateX(-75%) translateY(45vh) scale(1);
    }
    63.3% {
        opacity: 0.5;
        transform: translateX(-49%) translateY(50vh) scale(0.9);
    }
    66.3% {
        opacity: 0;
        transform: translateX(-50%) translateY(53vh) scale(0.8);
    }
    66.4%, 100% {
        opacity: 0;
        transform: translateX(-50%) translateY(0) scale(0.3);
    }
}

@keyframes realisticBloodFallRight {
    0%, 66.5% {
        opacity: 0;
        transform: translateX(-50%) translateY(0) scale(0.3);
    }
    66.6% {
        opacity: 0;
        transform: translateX(-50%) translateY(0) scale(0.3);
    }
    67.6% {
        opacity: 0.8;
        transform: translateX(-50%) translateY(0) scale(0.6);
    }
    69.6% {
        opacity: 1;
        transform: translateX(-20%) translateY(3vh) scale(1);
    }
    76.6% {
        transform: translateX(-80%) translateY(15vh) scale(1);
    }
    84.6% {
        transform: translateX(-15%) translateY(30vh) scale(1);
    }
    92.6% {
        transform: translateX(-85%) translateY(45vh) scale(1);
    }
    96.6% {
        opacity: 0.5;
        transform: translateX(-51%) translateY(50vh) scale(0.9);
    }
    99.6% {
        opacity: 0;
        transform: translateX(-50%) translateY(53vh) scale(0.8);
    }
    99.7%, 100% {
        opacity: 0;
        transform: translateX(-50%) translateY(0) scale(0.3);
    }
}

/* Blood Drop Mobile Optimizations */
@media (max-width: 768px) {
    .blood-drop-falling {
        font-size: clamp(0.5rem, 1.2vh, 0.7rem);
        filter: var(--blood-drop-shadow-mobile);
        text-shadow: var(--blood-drop-text-shadow-mobile);
    }
}

/* Blood drop disappears on reduced motion */
@media (prefers-reduced-motion: reduce) {
    .blood-drop-falling {
        animation: none;
        opacity: 0;
    }
}

/* Additional mobile optimizations */
@media (max-width: 480px) {
    .blood-drop-falling {
        font-size: clamp(0.4rem, 1vh, 0.6rem);
    }
}

/* ===== LOGO CONTAINER AND LAYOUT ===== */
.logo-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.logo-container {
    text-align: center;
    position: relative;
    max-width: clamp(320px, 90vw, 800px);
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: logoContainerEntrance 2s ease-out;
}

.logo-brand-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    max-width: clamp(400px, 90vw, 600px);
    margin: 0 auto;
}

/* ===== MAIN LOGO TITLE ===== */
.logo-main {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    justify-items: center;
    gap: clamp(0.3rem, 1vw, 0.8rem);
    margin-bottom: clamp(0.2rem, 0.8vh, 0.5rem);
    line-height: 1;
    animation: ultraModernLogoSlideIn 3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: clamp(400px, 90vw, 600px);
    margin-left: auto;
    margin-right: auto;
}

/* Logo word styling */
.donate {
    background: var(--blue-dark);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    letter-spacing: 0.01em;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    filter: drop-shadow(0 2px 6px rgba(30, 64, 175, 0.3));
    justify-self: end;
    text-align: right;
}

.donate:hover {
    background: var(--donate-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    transform: scale(1.05) translateY(-1px);
    letter-spacing: 0.08em;
    filter: drop-shadow(0 4px 12px rgba(30, 64, 175, 0.5))
            drop-shadow(0 0 20px rgba(30, 64, 175, 0.3));
}

.blood {
    color: #C62828 !important; /* Strong solid red - professional and impactful */
    font-weight: 800;
    font-size: clamp(2.2rem, 6vw, 3.5rem);
    letter-spacing: -0.02em;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    filter: drop-shadow(0 4px 12px rgba(198, 40, 40, 0.4));
    margin: 0;
    justify-self: center;
    text-align: center;
    width: 100%;
    text-shadow: 0 2px 4px rgba(198, 40, 40, 0.3);
}

.blood:hover {
    color: #B71C1C !important; /* Darker, more intense red on hover */
    transform: scale(1.05) translateY(-3px);
    filter: drop-shadow(0 6px 20px rgba(183, 28, 28, 0.6))
            drop-shadow(0 0 30px rgba(183, 28, 28, 0.4));
    text-shadow: 0 3px 6px rgba(183, 28, 28, 0.5);
    animation: heroBloodPulse 2s ease-in-out infinite;
}

.now {
    display: flex;
    align-items: center;
    gap: clamp(0.2rem, 0.4vw, 0.4rem);
    background: var(--green-teal-dark);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    letter-spacing: 0.08em;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    filter: drop-shadow(0 2px 6px rgba(5, 150, 105, 0.3));
    justify-self: start;
    text-align: left;
}

/* Preserve emoji natural colors */
.now .emoji {
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
    color: initial !important;
    background: transparent !important;
    font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif !important;
    display: inline !important;
    margin-left: -0.2em !important;
    padding: 0 !important;
    transform: scaleX(-1) scale(1.1) translateY(-0.1em) !important;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2)) !important;
}

.now:hover {
    background: var(--green-teal-darker);
    -webkit-background-clip: text;
    background-clip: text;
    transform: scale(1.05) translateY(-1px);
    letter-spacing: 0.08em;
    filter: drop-shadow(0 4px 12px rgba(5, 150, 105, 0.5))
            drop-shadow(0 0 20px rgba(5, 150, 105, 0.3));
}

/* Ensure emoji stays natural even on hover */
.now:hover .emoji {
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
    color: initial !important;
    background: transparent !important;
}

/* ===== ANIMATED HEART LOGO ===== */
.heart-logo {
    width: clamp(70px, 10vh, 90px);
    height: clamp(70px, 10vh, 90px);
    margin: clamp(0.5rem, 1.5vh, 1rem) auto clamp(0.8rem, 2vh, 1.2rem);
    background:
        radial-gradient(circle at 25% 25%,
            rgba(220, 38, 38, 0.4) 0%,
            transparent 45%),
        radial-gradient(circle at 75% 35%,
            rgba(34, 197, 94, 0.35) 0%,
            transparent 45%),
        radial-gradient(circle at 50% 75%,
            rgba(59, 130, 246, 0.3) 0%,
            transparent 45%),
        radial-gradient(circle at 20% 80%,
            rgba(251, 191, 36, 0.25) 0%,
            transparent 45%),
        linear-gradient(135deg,
            rgba(220, 38, 38, 0.15) 0%,
            rgba(34, 197, 94, 0.12) 33%,
            rgba(59, 130, 246, 0.12) 66%,
            rgba(251, 191, 36, 0.1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow:
        0 20px 60px rgba(220, 38, 38, 0.3),
        0 15px 40px rgba(34, 197, 94, 0.2),
        0 10px 25px rgba(59, 130, 246, 0.15),
        0 5px 15px rgba(251, 191, 36, 0.1);
    border: 3px solid transparent;
    background-clip: padding-box;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    animation: vibrantHeartGlow 10s ease-in-out infinite;
    flex-shrink: 0;
}

.heart-logo::before {
    content: '';
    position: absolute;
    top: -35px;
    left: -35px;
    right: -35px;
    bottom: -35px;
    background: conic-gradient(from 0deg,
        rgba(220, 38, 38, 0.7) 0%,
        rgba(251, 191, 36, 0.5) 25%,
        rgba(34, 197, 94, 0.6) 50%,
        rgba(59, 130, 246, 0.5) 75%,
        rgba(220, 38, 38, 0.7) 100%);
    border-radius: 50%;
    z-index: -1;
    animation: vibrantRotation 12s linear infinite,
               colorfulPulsation 8s ease-in-out infinite;
    opacity: 0.8;
    filter: blur(3px);
}

.heart-logo::after {
    content: '';
    position: absolute;
    top: -35px;
    left: -35px;
    right: -35px;
    bottom: -35px;
    background: radial-gradient(circle,
        rgba(229, 57, 53, 0.1),
        transparent 70%);
    border-radius: 50%;
    z-index: -2;
    animation: outerAura 8s ease-in-out infinite;
    opacity: 0.3;
}

.heart-logo:hover {
    box-shadow: 0 25px 70px rgba(229, 57, 53, 0.2);
}

.heart-logo:hover::before {
    opacity: 0.2;
    animation: logoGlow 1.5s ease-in-out infinite, borderGlow 4s ease infinite;
}

.heart-icon {
    filter: drop-shadow(0 4px 8px rgba(220, 38, 38, 0.4))
            drop-shadow(0 2px 4px rgba(251, 191, 36, 0.2))
            drop-shadow(0 1px 2px rgba(34, 197, 94, 0.2));
    position: relative;
    z-index: 100;
    font-size: clamp(1.5rem, 4vh, 2.2rem);
    font-family: 'Segoe UI Emoji', 'Noto Color Emoji', 'Apple Color Emoji', sans-serif;
    font-weight: 400;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: subpixel-antialiased;
    font-feature-settings: "liga" 1, "clig" 1;
    transform-origin: center;
    animation: heartBeat 1.2s ease-in-out infinite;
}

.heart-logo:hover .heart-icon {
    transform: scale(1.2);
    filter: drop-shadow(0 6px 12px rgba(220, 38, 38, 0.5));
}

/* ===== WAVE CONTAINER AND ANIMATIONS ===== */
.heart-logo .wave-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: visible;
    border-radius: 50%;
    z-index: 10;
}

.heart-logo .wave-circle {
    position: absolute;
    background-color: transparent;
    border-radius: 50%;
    border: 3px solid rgba(239, 68, 68, 0.8);
    box-shadow:
        inset 3px 3px 8px rgba(55, 84, 170, 0.2),
        3px 3px 8px rgba(55, 84, 170, 0.2),
        inset -3px -3px 8px rgba(255, 255, 255, 0.1),
        -3px -3px 8px rgba(255, 255, 255, 0.1);
    filter: blur(1px);
    animation: heartWaveExpand 3s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    z-index: 15;
}

.heart-logo .wave-circle:nth-child(1) {
    animation-delay: 0s;
}

.heart-logo .wave-circle:nth-child(2) {
    animation-delay: -1s;
}

.heart-logo .wave-circle:nth-child(3) {
    animation-delay: -2s;
}

/* ===== TAGLINE STYLES ===== */
.tagline {
    font-family: 'Georgia', 'Times New Roman', 'Playfair Display', 'Crimson Text', serif;
    font-weight: 400;
    font-style: italic;
    font-size: clamp(0.9rem, 2vmin, 1.2rem);
    color: var(--primary-dark);
    position: relative;
    margin: clamp(0.1rem, 0.3vmin, 0.2rem) 0 0;
    text-transform: none;
    letter-spacing: clamp(0.02em, 0.15vw, 0.05em);
    line-height: 1.4;
    text-align: center;
    text-shadow: 0 1px 3px rgba(220, 38, 38, 0.3),
                 0 0 8px rgba(220, 38, 38, 0.2);
    filter: drop-shadow(0 1px 4px rgba(220, 38, 38, 0.3));
    animation: taglineGlow 4s ease-in-out infinite;
}

.tagline:hover {
    animation: lifePulseGradient 3s ease-in-out infinite,
               taglineGlow 2s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(220, 38, 38, 0.3)) brightness(1.1);
    transform: translateY(-1px);
}

.tagline-container {
    position: relative;
    display: block;
    text-align: center;
    margin-top: 0.2rem;
    margin-bottom: clamp(1rem, 3vh, 2rem);
    width: 100%;
}

/* Wave word animations with red glow reveal - PERMANENT and STRONG */
body .wave-word-1,
.tagline .wave-word-1 {
    animation: wordWave 6s ease-in-out infinite 0s, taglineColorPulse 8s ease-in-out infinite 0s !important;
    display: inline-block !important;
    margin-right: 0.25em !important;
}

body .wave-word-2,
.tagline .wave-word-2 {
    animation: wordWave 6s ease-in-out infinite 1.2s, taglineColorPulse 8s ease-in-out infinite 1s !important;
    display: inline-block !important;
    margin-right: 0.25em !important;
}

body .wave-word-3,
.tagline .wave-word-3 {
    animation: wordWave 6s ease-in-out infinite 2.4s, taglineColorPulse 8s ease-in-out infinite 2s !important;
    display: inline-block !important;
    margin-right: 0.25em !important;
}

body .wave-word-4,
.tagline .wave-word-4 {
    animation: wordWave 6s ease-in-out infinite 3.6s, taglineColorPulse 8s ease-in-out infinite 3s !important;
    display: inline-block !important;
    margin-right: 0.25em !important;
}

.wave-word {
    display: inline-block !important;
    margin-right: 0.25em !important;
}

/* ===== THEME TOGGLE STYLES ===== */
.creative-toggle-container {
    margin: 1rem auto 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    text-align: center;
    position: relative;
}

.theme-line-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    position: relative;
    padding: 6px;
    background: rgba(255, 255, 255, 0.02);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: subtleShimmer 8s ease-in-out infinite;
    margin: 0 auto;
    width: fit-content;
}

/* Enhanced border visibility for desktop */
@media (min-width: 769px) {
    .theme-line-toggle {
        border: 1px solid rgba(255, 255, 255, 0.12);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15),
                    inset 0 1px 0 rgba(255, 255, 255, 0.15),
                    0 0 0 1px rgba(255, 255, 255, 0.05);
    }
}

.theme-endpoint {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 3;
    -webkit-user-select: none;
    user-select: none;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid transparent;
}

.theme-endpoint:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.theme-endpoint:active {
    transform: scale(0.95);
}

.theme-endpoint:focus {
    outline: none;
}

.theme-endpoint:focus-visible {
    border-color: rgba(66, 165, 245, 0.6);
    box-shadow: 0 0 0 3px rgba(66, 165, 245, 0.3);
}

.theme-endpoint.moon {
    border-color: rgba(96, 165, 250, 0.3);
}

.theme-endpoint.moon.active {
    background: rgba(96, 165, 250, 0.25);
    border-color: rgba(96, 165, 250, 0.7);
    box-shadow: 0 0 25px rgba(96, 165, 250, 0.6), 0 0 15px rgba(96, 165, 250, 0.4) inset;
    transform: scale(1.08);
    animation: moonGlow 2s ease-in-out infinite;
}

.theme-endpoint.sun {
    border-color: rgba(251, 191, 36, 0.3);
}

.theme-endpoint.sun.active {
    background: rgba(251, 191, 36, 0.25);
    border-color: rgba(251, 191, 36, 0.7);
    box-shadow: 0 0 25px rgba(251, 191, 36, 0.6), 0 0 15px rgba(251, 191, 36, 0.4) inset;
    transform: scale(1.08);
    animation: sunGlow 2s ease-in-out infinite;
}

.theme-transition-line {
    width: 50px;
    height: 3px;
    position: relative;
    margin: 0 4px;
    border-radius: 2px;
    overflow: hidden;
}

.line-background {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(96, 165, 250, 0.2) 0%, rgba(255, 255, 255, 0.1) 50%, rgba(251, 191, 36, 0.2) 100%);
    border-radius: 2px;
    animation: lineShimmer 4s ease-in-out infinite;
}

.line-fill {
    position: absolute;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, rgba(96, 165, 250, 0.6), rgba(96, 165, 250, 0.3));
    border-radius: 2px;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    left: 0;
}

.line-fill.dark-theme {
    background: linear-gradient(90deg, rgba(251, 191, 36, 0.3), rgba(251, 191, 36, 0.6));
    left: 50%;
}

.traveling-orb {
    position: absolute;
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, rgba(255, 255, 255, 1) 0%, rgba(66, 165, 245, 0.7) 50%, rgba(66, 165, 245, 0.3) 100%);
    border-radius: 50%;
    top: 50%;
    left: 1px;
    transform: translateY(-50%);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(66, 165, 245, 0.5);
    z-index: 2;
    animation: orbPulse 2s ease-in-out infinite;
}

.traveling-orb.dark-theme {
    background: radial-gradient(circle, rgba(255, 255, 255, 1) 0%, rgba(251, 191, 36, 0.7) 50%, rgba(251, 191, 36, 0.3) 100%);
    left: calc(100% - 7px);
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===== ANIMATIONS ===== */

/* Logo container entrance */
@keyframes logoContainerEntrance {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    50% {
        opacity: 0.7;
        transform: translateY(10px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Logo slide in animation */
@keyframes ultraModernLogoSlideIn {
    0% {
        opacity: 0;
        transform: translateY(-80px) scale(0.8);
        filter: blur(10px);
    }
    30% {
        opacity: 0.3;
        transform: translateY(-40px) scale(0.9);
        filter: blur(5px);
    }
    60% {
        opacity: 0.7;
        transform: translateY(-10px) scale(1.05);
        filter: blur(2px);
    }
    80% {
        opacity: 0.9;
        transform: translateY(5px) scale(0.98);
        filter: blur(1px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

/* Heart logo animations */
@keyframes vibrantHeartGlow {
    0% {
        box-shadow:
            0 20px 60px rgba(220, 38, 38, 0.3),
            0 15px 40px rgba(34, 197, 94, 0.2),
            0 10px 25px rgba(59, 130, 246, 0.15),
            0 5px 15px rgba(251, 191, 36, 0.1);
    }
    25% {
        box-shadow:
            0 25px 70px rgba(220, 38, 38, 0.4),
            0 20px 50px rgba(34, 197, 94, 0.25),
            0 15px 35px rgba(59, 130, 246, 0.2),
            0 10px 20px rgba(251, 191, 36, 0.15);
    }
    50% {
        box-shadow:
            0 30px 80px rgba(220, 38, 38, 0.35),
            0 25px 60px rgba(34, 197, 94, 0.3),
            0 20px 45px rgba(59, 130, 246, 0.25),
            0 15px 30px rgba(251, 191, 36, 0.2);
    }
    75% {
        box-shadow:
            0 25px 70px rgba(220, 38, 38, 0.4),
            0 20px 50px rgba(34, 197, 94, 0.25),
            0 15px 35px rgba(59, 130, 246, 0.2),
            0 10px 20px rgba(251, 191, 36, 0.15);
    }
    100% {
        box-shadow:
            0 20px 60px rgba(220, 38, 38, 0.3),
            0 15px 40px rgba(34, 197, 94, 0.2),
            0 10px 25px rgba(59, 130, 246, 0.15),
            0 5px 15px rgba(251, 191, 36, 0.1);
    }
}

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

@keyframes colorfulPulsation {
    0%, 100% {
        opacity: 0.8;
        transform: scale(1);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.05);
    }
}

@keyframes outerAura {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
        filter: blur(2px);
    }
    50% {
        opacity: 0.1;
        transform: scale(1.1);
        filter: blur(4px);
    }
}

@keyframes logoGlow {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.05); }
}

@keyframes borderGlow {
    0%, 100% { background-position: 0% 50%; }
    25% { background-position: 25% 50%; }
    50% { background-position: 100% 50%; }
    75% { background-position: 75% 50%; }
}

/* Wave expanding animation - inspired by wave.html */
@keyframes heartWaveExpand {
    0% {
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        opacity: 1;
        border: 3px solid rgba(239, 68, 68, 0.8);
    }
    100% {
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
        border: 1px solid rgba(239, 68, 68, 0.1);
    }
}

/* Realistic heartbeat animation */
@keyframes heartBeat {
    0% {
        transform: scale(1);
        color: var(--primary-dark);
        filter: drop-shadow(0 4px 8px rgba(220, 38, 38, 0.4))
                drop-shadow(0 2px 4px rgba(251, 191, 36, 0.2))
                drop-shadow(0 1px 2px rgba(34, 197, 94, 0.2));
    }
    8% {
        transform: scale(1.15);
        color: var(--primary-light);
        filter: drop-shadow(0 6px 12px rgba(220, 38, 38, 0.6))
                drop-shadow(0 3px 6px rgba(251, 191, 36, 0.3))
                drop-shadow(0 2px 4px rgba(34, 197, 94, 0.3));
    }
    16% {
        transform: scale(1);
        color: var(--primary-dark);
        filter: drop-shadow(0 4px 8px rgba(220, 38, 38, 0.4))
                drop-shadow(0 2px 4px rgba(251, 191, 36, 0.2))
                drop-shadow(0 1px 2px rgba(34, 197, 94, 0.2));
    }
    24% {
        transform: scale(1.1);
        color: var(--red-text);
        filter: drop-shadow(0 5px 10px rgba(220, 38, 38, 0.5))
                drop-shadow(0 2px 5px rgba(251, 191, 36, 0.25))
                drop-shadow(0 1px 3px rgba(34, 197, 94, 0.25));
    }
    32% {
        transform: scale(1);
        color: var(--primary-dark);
        filter: drop-shadow(0 4px 8px rgba(220, 38, 38, 0.4))
                drop-shadow(0 2px 4px rgba(251, 191, 36, 0.2))
                drop-shadow(0 1px 2px rgba(34, 197, 94, 0.2));
    }
    100% {
        transform: scale(1);
        color: var(--primary-dark);
        filter: drop-shadow(0 4px 8px rgba(220, 38, 38, 0.4))
                drop-shadow(0 2px 4px rgba(251, 191, 36, 0.2))
                drop-shadow(0 1px 2px rgba(34, 197, 94, 0.2));
    }
}

/* Tagline animations */
@keyframes taglineColorPulse {
    0%, 100% {
        color: var(--primary-dark);
        transform: scale(1);
        text-shadow: 0 2px 4px rgba(220, 38, 38, 0.6),
                     0 1px 2px rgba(0, 0, 0, 0.3);
    }
    25% {
        color: var(--primary-light);
        transform: scale(1.02);
        text-shadow: 0 2px 6px rgba(239, 68, 68, 0.8),
                     0 1px 3px rgba(0, 0, 0, 0.4);
    }
    50% {
        color: var(--green-success-dark);
        transform: scale(1.05);
        text-shadow: 0 2px 6px rgba(5, 150, 105, 0.8),
                     0 1px 3px rgba(0, 0, 0, 0.4);
    }
    75% {
        color: var(--now-gradient);
        transform: scale(1.02);
        text-shadow: 0 2px 6px rgba(16, 185, 129, 0.8),
                     0 1px 3px rgba(0, 0, 0, 0.4);
    }
}

@keyframes taglineGlow {
    0%, 100% {
        filter: drop-shadow(0 1px 2px rgba(220, 38, 38, 0.2)) brightness(1);
    }
    50% {
        filter: drop-shadow(0 2px 4px rgba(220, 38, 38, 0.4)) brightness(1.15);
    }
}

@keyframes wordWave {
    0%, 100% {
        transform: translateY(0px);
        opacity: 0.9;
        text-shadow: 0 1px 4px rgba(0, 137, 123, 0.2);
    }
    50% {
        transform: translateY(-2px);
        opacity: 1;
        text-shadow: 0 2px 6px rgba(0, 137, 123, 0.28);
    }
}


@keyframes heroBloodPulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 4px 12px rgba(185, 28, 28, 0.3));
    }
    25% {
        transform: scale(1.02);
        filter: drop-shadow(0 6px 16px rgba(185, 28, 28, 0.4))
                drop-shadow(0 0 20px rgba(185, 28, 28, 0.2));
    }
    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 8px 20px rgba(185, 28, 28, 0.5))
                drop-shadow(0 0 30px rgba(185, 28, 28, 0.3));
    }
    75% {
        transform: scale(1.02);
        filter: drop-shadow(0 6px 16px rgba(185, 28, 28, 0.4))
                drop-shadow(0 0 20px rgba(185, 28, 28, 0.2));
    }
}

@keyframes lifePulseGradient {
    0%, 100% {
        background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 50%, var(--red-text) 100%);
        -webkit-background-clip: text;
        background-clip: text;
    }
    33% {
        background: var(--now-gradient);
        -webkit-background-clip: text;
        background-clip: text;
    }
    66% {
        background: var(--donate-gradient);
        -webkit-background-clip: text;
        background-clip: text;
    }
}

/* Theme toggle animations */
@keyframes subtleShimmer {
    0%, 100% {
        background: rgba(255, 255, 255, 0.02);
        border-color: rgba(255, 255, 255, 0.05);
    }
    50% {
        background: rgba(255, 255, 255, 0.04);
        border-color: rgba(255, 255, 255, 0.1);
    }
}

@keyframes lineShimmer {
    0%, 100% {
        opacity: 0.6;
        transform: scaleX(1);
    }
    50% {
        opacity: 0.8;
        transform: scaleX(1.05);
    }
}

@keyframes orbPulse {
    0%, 100% {
        transform: translateY(-50%) scale(1);
        opacity: 0.9;
    }
    50% {
        transform: translateY(-50%) scale(1.2);
        opacity: 1;
    }
}

@keyframes moonGlow {
    0%, 100% {
        box-shadow: 0 0 25px rgba(96, 165, 250, 0.6), 0 0 15px rgba(96, 165, 250, 0.4) inset;
    }
    50% {
        box-shadow: 0 0 35px rgba(96, 165, 250, 0.8), 0 0 20px rgba(96, 165, 250, 0.6) inset;
    }
}

@keyframes sunGlow {
    0%, 100% {
        box-shadow: 0 0 25px rgba(251, 191, 36, 0.6), 0 0 15px rgba(251, 191, 36, 0.4) inset;
    }
    50% {
        box-shadow: 0 0 35px rgba(251, 191, 36, 0.8), 0 0 20px rgba(251, 191, 36, 0.6) inset;
    }
}

/* ===== DARK MODE STYLES ===== */
body.dark-mode .heart-logo {
    box-shadow: 0 20px 60px rgba(220, 38, 38, 0.25);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .tagline {
    color: var(--primary-light);
    filter: drop-shadow(0 3px 8px rgba(239, 68, 68, 0.6));
    text-shadow: 0 2px 6px rgba(239, 68, 68, 0.8),
                 0 1px 3px rgba(255, 255, 255, 0.1);
    animation: taglineColorPulseDark 8s ease-in-out infinite;
}

@keyframes taglineColorPulseDark {
    0%, 100% {
        color: var(--primary-light);
        transform: scale(1);
        text-shadow: 0 2px 6px rgba(239, 68, 68, 0.8),
                     0 1px 3px rgba(255, 255, 255, 0.1);
    }
    25% {
        color: var(--red-text);
        transform: scale(1.02);
        text-shadow: 0 2px 8px rgba(248, 113, 113, 0.9),
                     0 1px 4px rgba(255, 255, 255, 0.15);
    }
    50% {
        color: var(--now-gradient);
        transform: scale(1.05);
        text-shadow: 0 2px 8px rgba(52, 211, 153, 0.9),
                     0 1px 4px rgba(255, 255, 255, 0.15);
    }
    75% {
        color: var(--success-light);
        transform: scale(1.02);
        text-shadow: 0 2px 8px rgba(96, 239, 190, 0.9),
                     0 1px 4px rgba(255, 255, 255, 0.15);
    }
}

body.dark-mode .theme-line-toggle {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .theme-endpoint {
    background: rgba(0, 0, 0, 0.2);
    color: var(--tagline-dark-color);
}

body.dark-mode .theme-endpoint:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .donate, .now {
        font-size: clamp(1.4rem, 4.5vw, 2rem);
    }


    .blood {
        font-size: clamp(1.8rem, 5.5vw, 2.8rem);
    }

    .logo-main {
        gap: clamp(0.3rem, 1.2vw, 0.6rem);
        margin-bottom: clamp(0.1rem, 0.4vh, 0.3rem);
    }

    .tagline {
        font-size: clamp(0.65rem, 2.2vw, 0.85rem);
        margin: clamp(0.05rem, 0.2vh, 0.15rem) 0 0;
    }

    .tagline-container {
        margin-bottom: clamp(0.8rem, 2.5vh, 1.5rem);
    }

    /* Mobile Theme Toggle - Better touch targets */
    .theme-endpoint {
        width: 44px !important; /* Minimum touch target size */
        height: 44px !important;
        font-size: 18px !important; /* Larger icons for mobile */
    }

    .theme-transition-line {
        width: 60px !important; /* Wider line for mobile */
        height: 4px !important; /* Thicker line for mobile */
    }

    .heart-logo {
        width: clamp(65px, 12vh, 80px);
        height: clamp(65px, 12vh, 80px);
        margin: clamp(0.3rem, 1.5vh, 0.8rem) auto clamp(0.3rem, 1.2vh, 0.6rem);
    }

    .heart-icon {
        font-size: clamp(1.1rem, 4vh, 1.6rem);
    }
}

@media (max-width: 480px) {
    .donate, .now {
        font-size: clamp(1.2rem, 4vw, 1.6rem);

    }

    .blood {
        font-size: clamp(1.6rem, 5vw, 2.2rem);
    }

    .logo-main {
        gap: clamp(0.2rem, 1vw, 0.5rem);
    }

    .tagline {
        font-size: clamp(0.6rem, 2vw, 0.8rem);
    }

    .heart-logo {
        width: clamp(60px, 10vh, 75px);
        height: clamp(60px, 10vh, 75px);
    }

    .heart-icon {
        font-size: clamp(1rem, 3.5vh, 1.5rem);
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    .tagline {
        animation: none;
        background: var(--tagline-reduced-bg);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .tagline::before,
    .tagline::after,
    .tagline-container::before,
    .tagline-container::after {
        animation: none;
        opacity: 0.5;
    }

    .heart-logo {
        animation: none;
    }

    .heart-icon {
        animation: none;
    }

    .logo-main {
        animation: none;
    }
}