/* Add this to your css/style.css file or create a new file called css/animations.css */

/* Banner Animation - Fade in and slight zoom */
#top-banner {
    width: 100%;
    overflow: hidden;
    margin: 0;
    padding: 0;
    animation: bannerFadeIn 1.2s ease-out;
}

#top-banner img {
    width: 100%;
    height: auto;
    display: block;
    animation: bannerZoom 1.5s ease-out;
}

@keyframes bannerFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes bannerZoom {
    from {
        transform: scale(1.1);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Team Items - Fade up animation */
.item {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.item:nth-child(1) { animation-delay: 0.1s; }
.item:nth-child(2) { animation-delay: 0.2s; }
.item:nth-child(3) { animation-delay: 0.3s; }
.item:nth-child(4) { animation-delay: 0.4s; }
.item:nth-child(5) { animation-delay: 0.5s; }
.item:nth-child(6) { animation-delay: 0.6s; }
.item:nth-child(7) { animation-delay: 0.7s; }
.item:nth-child(8) { animation-delay: 0.8s; }
.item:nth-child(9) { animation-delay: 0.9s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Team Item Card Hover */
.item-inner {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.item:hover .item-inner {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* Button Hover Animation */
.btn.mediaholder {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn.mediaholder::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn.mediaholder:hover::before {
    width: 300px;
    height: 300px;
}

.btn.mediaholder:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Team Name Animation */
.team-name h5 {
    transition: color 0.3s ease;
}

.item:hover .team-name h5 {
    color: #4a90e2;
}

/* Titlebar Animation */
#titlebar {
    animation: slideInDown 0.6s ease-out;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Breadcrumbs Animation */
#breadcrumbs {
    animation: fadeIn 1s ease-out 0.3s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Smooth Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Container Fade In */
.container {
    animation: fadeIn 0.8s ease-out;
}

/* Popup Animation Enhancement */
.popup-box {
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.popup-content {
    animation: popupSlideIn 0.4s ease-out;
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Footer Animation */
#footer {
    animation: fadeInUp 0.8s ease-out;
}

/* Loading State Animation */
.item-inner img {
    opacity: 0;
    animation: imageLoad 0.6s ease-out 0.2s forwards;
}

@keyframes imageLoad {
    from {
        opacity: 0;
        filter: blur(5px);
    }
    to {
        opacity: 1;
        filter: blur(0);
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .item {
        animation-delay: 0.1s !important;
    }
    
    #top-banner img {
        animation: bannerFadeIn 1s ease-out;
    }
}

/* Add subtle parallax effect to banner on scroll */
@media (min-width: 769px) {
    #top-banner {
        position: relative;
    }
}
