/* Walk Me Home - Custom Animations */

/* Floating Phone Animation */
@keyframes floatingPhone {
    0% {
        transform: translateY(0) rotate(0deg);
        box-shadow: 0 5px 15px rgba(255, 107, 0, 0.2);
    }
    50% {
        transform: translateY(-15px) rotate(2deg);
        box-shadow: 0 15px 25px rgba(255, 107, 0, 0.3);
    }
    100% {
        transform: translateY(0) rotate(0deg);
        box-shadow: 0 5px 15px rgba(255, 107, 0, 0.2);
    }
}

.floating-phone {
    animation: floatingPhone 6s ease-in-out infinite;
}

/* Circuit Animation */
@keyframes circuitPulse {
    0% {
        opacity: 0.1;
        background-position: 0% 0%;
    }
    50% {
        opacity: 0.2;
        background-position: 100% 100%;
    }
    100% {
        opacity: 0.1;
        background-position: 0% 0%;
    }
}

.circuit-pattern {
    animation: circuitPulse 15s linear infinite;
}

/* Shield Pulse Animation */
@keyframes shieldPulse {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 5px rgba(255, 107, 0, 0.3));
    }
    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 15px rgba(255, 107, 0, 0.5));
    }
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 5px rgba(255, 107, 0, 0.3));
    }
}

.shield-pulse {
    animation: shieldPulse 3s ease-in-out infinite;
}

/* Text Highlight Animation */
@keyframes textHighlight {
    0% {
        background-position: -100% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.text-highlight {
    background: linear-gradient(90deg, 
        rgba(0, 0, 0, 0), 
        rgba(255, 107, 0, 0.2), 
        rgba(0, 0, 0, 0));
    background-size: 200% 100%;
    animation: textHighlight 3s linear infinite;
    padding: 0 5px;
}

/* Stat Counter Animation */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-animate {
    opacity: 0;
}

.stat-animate.visible {
    animation: countUp 1s forwards;
}

/* Navigation Highlight */
@keyframes navHighlight {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.nav-links a.active {
    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: navHighlight 3s ease infinite;
    padding: 5px 10px;
    border-radius: 3px;
}

/* Scroll Indicator Animation */
@keyframes scrollIndicator {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    50% {
        opacity: 0.5;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 50px;
    border: 2px solid var(--color-white);
    border-radius: 15px;
    display: flex;
    justify-content: center;
    z-index: 10;
}

.scroll-indicator::before {
    content: '';
    width: 6px;
    height: 10px;
    background-color: var(--color-white);
    border-radius: 3px;
    margin-top: 8px;
    animation: scrollIndicator 2s infinite;
}

/* Feature Icon Animations */
.feature-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 107, 0, 0.3) 0%, rgba(255, 107, 0, 0) 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-icon:hover::before {
    opacity: 1;
}

/* Button Hover Animation */
.btn-primary:hover {
    animation: pulse 1s infinite;
}

/* Logo Glow Animation */
@keyframes logoGlow {
    0% {
        filter: drop-shadow(0 0 5px rgba(255, 107, 0, 0.3));
    }
    50% {
        filter: drop-shadow(0 0 15px rgba(255, 107, 0, 0.5));
    }
    100% {
        filter: drop-shadow(0 0 5px rgba(255, 107, 0, 0.3));
    }
}

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

/* Parallax Scrolling Effect */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Mobile Menu Animation */
@keyframes menuSlide {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-links.active {
    animation: menuSlide 0.3s forwards;
}
