body,
h1 {
    font-family: Arial, Helvetica, sans-serif;
}

html {
    height: 100%;
}

body {
    margin: 0;
}

.retirement-hero {
    position: relative;
    min-height: 100vh;
    background-position: center;
    background-size: cover;
    background-color: #222;
}

.retirement-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.45) 0%,
        rgba(0, 0, 0, 0.5) 40%,
        rgba(0, 0, 0, 0.6) 100%
    );
    pointer-events: none;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% - 2rem);
    max-width: 920px;
    padding: 0 1rem;
    text-align: center;
    z-index: 1;
}

.site-signature {
    position: absolute;
    left: 0;
    bottom: 0;
    padding: 12px 24px;
    z-index: 1;
}

.text-on-dark {
    color: #fff;
    text-shadow:
        0 4px 10px rgba(0, 0, 0, 0.55),
        0 10px 24px rgba(0, 0, 0, 0.35);
}

.retirement-title {
    font-size: 64px;
    line-height: 1.1;
    margin: 0;
    display: inline-block;
}

.countdown-timer {
    font-size: 18px;
    display: block;
    width: 100%;
    margin: 1rem 0 0;
}

.text-centered {
    text-align: center;
}

.title-divider {
    border: 0;
    border-top: 1px solid currentColor;
    opacity: 0.7;
    margin: 0.9rem auto 1.2rem;
    width: 40%;
}

.hero-fade-in {
    animation: opac 0.8s ease-out;
}

.title-slide-in {
    position: relative;
    animation: animatetop 0.4s ease-out;
}

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

@keyframes animatetop {
    from {
        top: -30px;
        opacity: 0;
    }
    to {
        top: 0;
        opacity: 1;
    }
}

@keyframes wave-text {
    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }
    20% {
        transform: translateY(-3px) rotate(-0.35deg);
    }
    40% {
        transform: translateY(1px) rotate(0.25deg);
    }
    60% {
        transform: translateY(-2px) rotate(-0.2deg);
    }
    80% {
        transform: translateY(2px) rotate(0.3deg);
    }
}

@keyframes bob-text {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes pulse-text {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.04);
    }
}

@keyframes shimmer-text {
    0%,
    100% {
        text-shadow:
            0 4px 10px rgba(0, 0, 0, 0.55),
            0 10px 24px rgba(0, 0, 0, 0.35);
    }
    50% {
        text-shadow:
            0 0 8px rgba(255, 255, 255, 0.35),
            0 0 20px rgba(255, 255, 255, 0.2),
            0 10px 24px rgba(0, 0, 0, 0.35);
    }
}

@keyframes sway-text {
    0%,
    100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-1.2deg);
    }
    75% {
        transform: rotate(1.2deg);
    }
}

@keyframes glow-text {
    0%,
    100% {
        filter: drop-shadow(0 2px 8px rgba(255, 255, 255, 0.2));
    }
    50% {
        filter: drop-shadow(0 2px 16px rgba(255, 255, 255, 0.55));
    }
}

@keyframes breathe-text {
    0%,
    100% {
        transform: scale(1) translateY(0);
    }
    50% {
        transform: scale(1.03) translateY(-2px);
    }
}

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

@keyframes tilt-text {
    0%,
    100% {
        transform: perspective(600px) rotateX(0deg);
    }
    50% {
        transform: perspective(600px) rotateX(8deg);
    }
}

@keyframes flicker-text {
    0%,
    19%,
    21%,
    23%,
    25%,
    54%,
    56%,
    100% {
        opacity: 1;
    }
    20%,
    24%,
    55% {
        opacity: 0.86;
    }
}

#hero.text-effect-wave .retirement-title {
    animation: wave-text 4.8s ease-in-out infinite;
}

#hero.text-effect-wave .countdown-timer {
    animation: wave-text 5.6s ease-in-out infinite;
}

#hero.text-effect-bob .retirement-title {
    animation: bob-text 3.6s ease-in-out infinite;
}

#hero.text-effect-bob .countdown-timer {
    animation: bob-text 4.2s ease-in-out infinite;
}

#hero.text-effect-pulse .retirement-title {
    animation: pulse-text 2.8s ease-in-out infinite;
}

#hero.text-effect-pulse .countdown-timer {
    animation: pulse-text 3.2s ease-in-out infinite;
}

#hero.text-effect-shimmer .retirement-title {
    animation: shimmer-text 3s ease-in-out infinite;
}

#hero.text-effect-shimmer .countdown-timer {
    animation: shimmer-text 3.6s ease-in-out infinite;
}

#hero.text-effect-sway .retirement-title {
    animation: sway-text 4s ease-in-out infinite;
    transform-origin: center bottom;
}

#hero.text-effect-sway .countdown-timer {
    animation: sway-text 4.6s ease-in-out infinite;
    transform-origin: center bottom;
}

#hero.text-effect-glow .retirement-title {
    animation: glow-text 2.6s ease-in-out infinite;
}

#hero.text-effect-glow .countdown-timer {
    animation: glow-text 3.2s ease-in-out infinite;
}

#hero.text-effect-breathe .retirement-title {
    animation: breathe-text 4.6s ease-in-out infinite;
}

#hero.text-effect-breathe .countdown-timer {
    animation: breathe-text 5.2s ease-in-out infinite;
}

#hero.text-effect-drift .retirement-title {
    animation: drift-text 5.2s ease-in-out infinite;
}

#hero.text-effect-drift .countdown-timer {
    animation: drift-text 5.8s ease-in-out infinite;
}

#hero.text-effect-tilt .retirement-title {
    animation: tilt-text 3.8s ease-in-out infinite;
    transform-origin: center center;
}

#hero.text-effect-tilt .countdown-timer {
    animation: tilt-text 4.4s ease-in-out infinite;
    transform-origin: center center;
}

#hero.text-effect-flicker .retirement-title {
    animation: flicker-text 3.2s linear infinite;
}

#hero.text-effect-flicker .countdown-timer {
    animation: flicker-text 3.8s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
    .retirement-title,
    .countdown-timer {
        animation: none;
        filter: none;
    }
}

@media (max-width: 768px) {
    .retirement-title {
        font-size: 44px;
    }
}
