/* Keyframe Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

@keyframes rotateIn {
    from {
        transform: rotate(-20deg) scale(0.8);
        opacity: 0;
    }
    to {
        transform: rotate(0deg) scale(1);
        opacity: 1;
    }
}

/* Apply Animations */
.fade-in {
    animation: fadeIn 1s ease-out forwards;
}

.slide-in-up {
    animation: slideInUp 0.8s ease-out forwards;
}

.pulse-animation {
    animation: pulse 2s infinite ease-in-out;
}

.rotate-in {
    animation: rotateIn 1s ease-out forwards;
}

/* Hero Section Animations */
.hero h2 {
    animation: slideInUp 1s ease-out forwards;
    opacity: 0; /* Start hidden */
    animation-delay: 0.2s;
}

.hero p {
    animation: slideInUp 1s ease-out forwards;
    opacity: 0;
    animation-delay: 0.4s;
}

.hero .btn {
    animation: slideInUp 1s ease-out forwards;
    opacity: 0;
    animation-delay: 0.6s;
}

/* Feature Card Hover Effect */
.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Button Hover Effect */
.btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.35);
}

/* Navigation Link Hover Effect */
nav ul li a:hover {
    color: #3498db;
    transform: translateY(-2px);
}

/* Section Title Animation (on scroll - typically handled by JS) */
section h2 {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

section h2.animate {
    opacity: 1;
    transform: translateY(0);
}

/* General element animation on scroll */
.animated-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Specific animations for different elements */
.feature-card.animated-element {
    transition-delay: 0.1s; /* Stagger effect */
}
.feature-card:nth-child(2).animated-element {
    transition-delay: 0.2s;
}
.feature-card:nth-child(3).animated-element {
    transition-delay: 0.3s;
}

.conference-card.animated-element {
    transition-delay: 0.1s;
}
.conference-card:nth-child(2).animated-element {
    transition-delay: 0.2s;
}
.conference-card:nth-child(3).animated-element {
    transition-delay: 0.3s;
}

.info-block.animated-element {
    transition-delay: 0.1s;
}
.info-block:nth-child(2).animated-element {
    transition-delay: 0.2s;
}

.contact-item.animated-element {
    transition-delay: 0.1s;
}
.contact-item:nth-child(2).animated-element {
    transition-delay: 0.2s;
}
.contact-item:nth-child(3).animated-element {
    transition-delay: 0.3s;
}