/**
 * CSS Animations for Cynarivolthae.com
 * No JavaScript animations except for Cookie popup
 */

/* Fade In Animation */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease-in forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Slide Up Animation */
.slide-up {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.8s ease-out forwards;
    animation-delay: 0.3s;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered animations for service cards */
.service-card:nth-child(1) {
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
    animation-delay: 0.2s;
}

.service-card:nth-child(2) {
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
    animation-delay: 0.4s;
}

.service-card:nth-child(3) {
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
    animation-delay: 0.6s;
}

/* Scale animation for advantages */
.advantage-item {
    opacity: 0;
    transform: scale(0.95);
    animation: scaleIn 0.8s ease-out forwards;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.advantage-item:nth-child(1) { animation-delay: 0.1s; }
.advantage-item:nth-child(2) { animation-delay: 0.25s; }
.advantage-item:nth-child(3) { animation-delay: 0.4s; }
.advantage-item:nth-child(4) { animation-delay: 0.55s; }

/* Process step animation */
.process-step {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.process-step:nth-child(1) { animation-delay: 0.2s; }
.process-step:nth-child(2) { animation-delay: 0.4s; }
.process-step:nth-child(3) { animation-delay: 0.6s; }
.process-step:nth-child(4) { animation-delay: 0.8s; }

/* Testimonial cards animation */
.testimonial-card {
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
}

.testimonial-card:nth-child(1) { animation-delay: 0.3s; }
.testimonial-card:nth-child(2) { animation-delay: 0.5s; }
.testimonial-card:nth-child(3) { animation-delay: 0.7s; }

/* Hover animations */
.service-card, .advantage-item, .testimonial-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(29, 233, 182, 0.2);
}

.advantage-item:hover .advantage-icon {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(93, 95, 239, 0.15);
}

/* Glow effect for buttons and links */
.cta-button, .submit-button, #accept-cookies {
    position: relative;
    overflow: hidden;
}

.cta-button:after, .submit-button:after, #accept-cookies:after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 70%);
    transform: rotate(0deg);
    transition: transform 1s linear;
    opacity: 0;
}

.cta-button:hover:after, .submit-button:hover:after, #accept-cookies:hover:after {
    opacity: 1;
    transform: rotate(360deg);
}

/* Form input focus animation */
.form-group input:focus,
.form-group select:focus {
    box-shadow: 0 0 0 3px rgba(29, 233, 182, 0.2);
    transition: box-shadow 0.3s ease;
}

/* Logo hover effect */
.logo a {
    position: relative;
    display: inline-block;
}

.logo a:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--color-accent), var(--color-secondary));
    transition: width 0.3s ease;
}

.logo a:hover:after {
    width: 100%;
}

/* Map section hover effect */
.map-container {
    transition: transform 0.5s ease;
}

.map-container:hover {
    transform: scale(1.01);
}

/* Animation for all images */
img {
    transition: transform 0.3s ease;
}

.about-image img:hover {
    transform: scale(1.03);
}

/* Animation for section transitions */
section {
    opacity: 0;
    animation: sectionFadeIn 1s ease-out forwards;
}

@keyframes sectionFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered section animations */
section:nth-of-type(1) { animation-delay: 0.1s; }
section:nth-of-type(2) { animation-delay: 0.2s; }
section:nth-of-type(3) { animation-delay: 0.3s; }
section:nth-of-type(4) { animation-delay: 0.4s; }
section:nth-of-type(5) { animation-delay: 0.5s; }
section:nth-of-type(6) { animation-delay: 0.6s; }
section:nth-of-type(7) { animation-delay: 0.7s; }
section:nth-of-type(8) { animation-delay: 0.8s; }
section:nth-of-type(9) { animation-delay: 0.9s; }
