/* Animations and hover effects for home page */

/* Fade-in animation for sections */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 1s ease forwards;
}

/* Slide-Up and Fade-In animation for hero title and subtitle */
@keyframes slideUpFadeIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-up-fade-in {
    animation: slideUpFadeIn 1s ease forwards;
}

.slide-up-fade-in-delay {
    animation: slideUpFadeIn 1s ease 0.5s forwards;
}

.logo-hero {
    mix-blend-mode: screen;
}

/* Hover scale and shadow for service cards */
.service-card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card-hover:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(30, 60, 114, 0.4);
}

/* Hover effect for buttons */
.button-hover {
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.button-hover:hover {
    background-color: #2a5298; /* secondary blue */
    color: white;
    transform: scale(1.05);
}

/* Smooth transition for hero image */
.hero-image {
    position: relative;
    transition: transform 0.5s ease;
}
.hero-image:hover {
    transform: scale(1.05) rotate(1deg);
}

/* Slideshow animation for hero images */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    animation: slideshow 40s infinite;
}

.slide:nth-child(1) {
    animation-delay: 0s;
}

.slide:nth-child(2) {
    animation-delay: 4s;
}

.slide:nth-child(3) {
    animation-delay: 8s;
}

.slide:nth-child(4) {
    animation-delay: 12s;
}

.slide:nth-child(5) {
    animation-delay: 16s;
}

.slide:nth-child(6) {
    animation-delay: 20s;
}

.slide:nth-child(7) {
    animation-delay: 24s;
}

.slide:nth-child(8) {
    animation-delay: 28s;
}

.slide:nth-child(9) {
    animation-delay: 32s;
}

.slide:nth-child(10) {
    animation-delay: 36s;
}

@keyframes slideshow {
    0%, 10% {
        opacity: 1;
    }
    10.01%, 100% {
        opacity: 0;
    }
}

/* Navbar link hover animations */
.navbar-link {
    position: relative;
    display: inline-block;
    transition: color 0.3s ease, transform 0.3s ease;
}

.navbar-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #1E3C72; /* primary blue */
    transition: width 0.3s ease;
}

.navbar-link:hover {
    color: #2A5298; /* secondary blue */
    transform: scale(1.1);
    text-shadow: 0 0 8px rgba(42, 82, 152, 0.7);
}

.navbar-link:hover::after {
    width: 100%;
}

/* Pop and Fade-In animation for benefit icons */
@keyframes popFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.pop-fade-in {
    animation: popFadeIn 1s ease forwards;
}

/* Fade-in and Slide-Up animation for benefit images */
.fade-in-slide-up {
    animation: fadeInUp 1s ease forwards;
}
