/* Walk Me Home - Animations Stylesheet */

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 1s ease-in-out;
}

/* Slide Up Animation */
@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.slide-up {
    animation: slideUp 0.8s ease-out;
}

/* Slide In Animation */
@keyframes slideIn {
    from {
        transform: translateX(-50px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.slide-in {
    animation: slideIn 0.8s ease-out;
}

/* Pulse Animation */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Glow Animation */
@keyframes glow {
    0% {
        box-shadow: 0 0 5px rgba(255, 107, 0, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(255, 107, 0, 0.8);
    }
    100% {
        box-shadow: 0 0 5px rgba(255, 107, 0, 0.5);
    }
}

.glow {
    animation: glow 2s infinite;
}

/* Typing Animation */
@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

.typing {
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid var(--color-orange);
    animation: 
        typing 3.5s steps(40, end),
        blink-caret 0.75s step-end infinite;
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--color-orange) }
}

/* Floating Animation */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

.float {
    animation: float 3s ease-in-out infinite;
}

/* Rotate Animation */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.rotate {
    animation: rotate 10s linear infinite;
}

/* Shimmer Animation */
@keyframes shimmer {
    0% {
        background-position: -100% 0;
    }
    100% {
        background-position: 100% 0;
    }
}

.shimmer {
    background: linear-gradient(90deg, 
        rgba(255, 107, 0, 0), 
        rgba(255, 107, 0, 0.2), 
        rgba(255, 107, 0, 0));
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

/* Logo Animation */
.logo {
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.1);
}

/* Navigation Animation */
.nav-links a {
    position: relative;
    transition: color 0.3s ease;
}

/* Feature Card Animation */
.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(255, 107, 0, 0.2);
}

/* Feature Icon Animation */
.feature-icon {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.feature-icon:hover {
    transform: rotate(10deg);
}

.feature-icon::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.7s ease;
}

.feature-icon:hover::after {
    left: 100%;
}

/* Statistics Animation */
.stat-number {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
}

.stat-number.animated {
    animation: slideUp 0.8s forwards;
}

/* Scroll Reveal Animation Classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered Animation Delays */
.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

.delay-4 {
    animation-delay: 0.8s;
}

.delay-5 {
    animation-delay: 1s;
}
