/* Global Animations and Effects for All Pages */

/* Smooth fade-in animation for page content */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

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

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* Text Animation Classes */
.animate-text {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.animate-text-delay-1 {
    animation: fadeInUp 0.8s ease 0.1s forwards;
    opacity: 0;
}

.animate-text-delay-2 {
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.animate-text-delay-3 {
    animation: fadeInUp 0.8s ease 0.3s forwards;
    opacity: 0;
}

/* Image Hover Effects */
.animate-image {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
}

.animate-image img {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-image:hover img {
    transform: scale(1.1) rotate(1deg);
}

.animate-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 140, 0, 0.2);
}

/* Button Animations */
.animate-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.animate-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.animate-btn:hover::before {
    width: 300px;
    height: 300px;
}

.animate-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 140, 0, 0.4);
}

.animate-btn:active {
    transform: translateY(-1px) scale(1.02);
}

.animate-btn span,
.animate-btn i {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.animate-btn:hover i {
    transform: translateX(5px);
}

/* Icon Animations */
.animate-icon {
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: inline-block;
}

.animate-icon:hover {
    transform: rotate(360deg) scale(1.2);
    color: #FF8C00;
}

/* Card/Box Animations */
.animate-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.animate-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(255, 140, 0, 0.15);
}

.animate-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 140, 0, 0.1), transparent);
    transition: left 0.6s ease;
}

.animate-card:hover::before {
    left: 100%;
}

/* Staggered Animation Delays */
.animate-stagger-1 {
    animation-delay: 0.1s;
}

.animate-stagger-2 {
    animation-delay: 0.2s;
}

.animate-stagger-3 {
    animation-delay: 0.3s;
}

.animate-stagger-4 {
    animation-delay: 0.4s;
}

.animate-stagger-5 {
    animation-delay: 0.5s;
}

.animate-stagger-6 {
    animation-delay: 0.6s;
}

/* Section Title Animations */
.section-title {
    animation: fadeInUp 0.8s ease forwards;
}

.section-title span {
    display: inline-block;
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.section-title h2 {
    animation: fadeInUp 0.8s ease 0.3s forwards;
    opacity: 0;
}

/* Page Banner Animations */
.page-banner-content h2 {
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.page-banner-content ul {
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

/* Service Item Animations */
.single-services-item,
.single-projects-box,
.single-blog-item {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.single-services-item::before,
.single-projects-box::before,
.single-blog-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 140, 0, 0.08), transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

.single-services-item:hover::before,
.single-projects-box:hover::before,
.single-blog-item:hover::before {
    left: 100%;
}

.single-services-item:hover,
.single-projects-box:hover,
.single-blog-item:hover {
    /* Transform and shadow handled by main style.css for services */
}

.single-services-item img,
.single-projects-box img,
.single-blog-item img {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.single-services-item:hover img,
.single-projects-box:hover img,
.single-blog-item:hover img {
    transform: scale(1.1);
}

/* Button Enhancements */
.default-btn,
.learn-btn,
.read-more-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.default-btn::after,
.learn-btn::after,
.read-more-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.default-btn:hover::after,
.learn-btn:hover::after,
.read-more-btn:hover::after {
    width: 300px;
    height: 300px;
}

.default-btn:hover,
.learn-btn:hover,
.read-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 140, 0, 0.4);
}

.default-btn i,
.learn-btn i,
.read-more-btn i {
    transition: transform 0.3s ease;
    display: inline-block;
}

.default-btn:hover i,
.learn-btn:hover i,
.read-more-btn:hover i {
    transform: translateX(5px);
}

/* Form Input Animations */
.form-control,
.form-group input,
.form-group textarea {
    transition: all 0.3s ease;
}

.form-control:focus,
.form-group input:focus,
.form-group textarea:focus {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 140, 0, 0.15);
    border-color: #FF8C00;
}

/* Team Member Cards */
.team-member,
.single-team-box {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.team-member:hover,
.single-team-box:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(255, 140, 0, 0.2);
}

.team-member img,
.single-team-box img {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.team-member:hover img,
.single-team-box:hover img {
    transform: scale(1.15);
}

/* Testimonial Cards */
.testimonial-item,
.single-testimonial-box {
    transition: all 0.4s ease;
}

.testimonial-item:hover,
.single-testimonial-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 140, 0, 0.1);
}

/* Banking/Content Area Animations */
.banking-content h3,
.banking-content p {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.banking-content h3 {
    animation-delay: 0.1s;
}

.banking-content p:nth-of-type(1) {
    animation-delay: 0.2s;
}

.banking-content p:nth-of-type(2) {
    animation-delay: 0.3s;
}

.banking-content p:nth-of-type(3) {
    animation-delay: 0.4s;
}

.banking-image img {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    animation: fadeIn 1s ease 0.3s forwards;
    opacity: 0;
}

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

/* Social Media Icons */
.social li a {
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: inline-block;
}

.social li a:hover {
    transform: translateY(-5px) rotate(360deg) scale(1.2);
}

/* Footer Animations */
.footer-logo img {
    transition: transform 0.4s ease;
}

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

.footer-logo h2 a {
    transition: color 0.3s ease;
}

.footer-logo:hover h2 a {
    color: #FF8C00;
}

/* Scroll Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

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

/* Loading Animation */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.loading {
    animation: spin 1s linear infinite;
}

/* Shimmer Effect for Text */
.shimmer-text {
    background: linear-gradient(90deg, #1a1a1a 0%, #FF8C00 50%, #1a1a1a 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
}

/* Pulse Animation for Icons */
.pulse-icon {
    animation: pulse 2s ease-in-out infinite;
}

.pulse-icon:hover {
    animation: none;
    transform: scale(1.2);
}

/* Smooth Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .animate-card,
    .single-services-item,
    .single-projects-box {
        animation-duration: 0.5s;
    }
    
    .animate-btn:hover {
        transform: translateY(-2px) scale(1.02);
    }
}

/* Intersection Observer for Scroll Animations */
.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}


