/**
 * Animation styles for Lackadaisical Security website
 * These enhance the UX when JavaScript is available
 */

/* Basic fade-in animation */
.animate-fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Delayed animations for card grids */
.animate-delay-1 {
    transition-delay: 0.1s;
}

.animate-delay-2 {
    transition-delay: 0.2s;
}

.animate-delay-3 {
    transition-delay: 0.3s;
}

.animate-delay-4 {
    transition-delay: 0.4s;
}

/* Fade animations for section transitions */
.section-fade {
    opacity: 0;
    transition: opacity 0.8s ease;
}

.section-fade.visible {
    opacity: 1;
}

/* Card hover effects */
.feature-card, 
.solution-card, 
.tech-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover, 
.solution-card:hover,
.tech-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* Image hover effects */
.hover-zoom {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-zoom:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Animated underlines for links */
.animated-underline {
    position: relative;
}

.animated-underline::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.animated-underline:hover::after {
    width: 100%;
}

/* Progress bar for form steps */
.progress-bar {
    height: 4px;
    background-color: #e0e0e0;
    border-radius: 2px;
    margin-bottom: 30px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: var(--gradient-accent);
    width: 0;
    transition: width 0.6s ease;
}

/* Search result highlighting */
.highlight {
    background-color: rgba(243, 156, 18, 0.2);
    padding: 0 3px;
    border-radius: 2px;
}

/* Tab transition effects */
[role="tabpanel"] {
    transition: opacity 0.3s ease;
}

[role="tabpanel"][hidden] {
    display: none;
    opacity: 0;
}

/* Form validation animations */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
}

.invalid {
    animation: shake 0.4s linear;
}

.validation-message {
    transform: translateY(-10px);
    opacity: 0;
    animation: slideDown 0.3s forwards;
}

@keyframes slideDown {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Success message animation */
.success-message {
    animation: fadeScale 0.5s ease;
}

@keyframes fadeScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Spinner animation */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.spinner {
    animation: spin 1s linear infinite;
}
