/* Animations CSS */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Animated elements */
.animate-fade-in {
    animation: fadeIn 0.8s ease forwards;
}

.animate-slide-left {
    animation: slideInFromLeft 0.8s ease forwards;
}

.animate-slide-right {
    animation: slideInFromRight 0.8s ease forwards;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

/* Delayed animations */
.delay-100 {
    animation-delay: 100ms;
}

.delay-200 {
    animation-delay: 200ms;
}

.delay-300 {
    animation-delay: 300ms;
}

.delay-400 {
    animation-delay: 400ms;
}

.delay-500 {
    animation-delay: 500ms;
}

/* Reveal on scroll animation */
.reveal {
    opacity: 1; /* Alapértelmezetten látható */
    transition: all 0.8s ease;
}

.reveal.animate {
    opacity: 0;
    transform: translateY(30px);
}

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

/* Hover animations */
.hover-lift {
    transition: transform 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
}

/* Logo subtle animation */
.logo-img {
    transition: transform 0.5s ease;
}

.logo:hover .logo-img {
    transform: scale(1.05);
}

/* Button animation */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.btn-primary:hover::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}

/* Section title animation */
.section-title {
    position: relative;
}

.section-title::before {
    content: '';
    position: absolute;
    width: 0;
    height: 4px;
    bottom: -15px;
    left: 50%;
    background-color: var(--secondary-color);
    z-index: 1;
    transform: translateX(-50%);
    transition: width 0.5s ease;
}

.section-title.active::before {
    width: 100px;
}
