/* Animation Classes */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Enhanced Service Card Animations */
.service-card {
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
    background: #fff;
    border-radius: 10px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 123, 255, 0.1), rgba(0, 123, 255, 0.05));
    transform: scale(0);
    transform-origin: center;
    transition: transform 0.5s ease;
    z-index: 1;
}

.service-card:hover::before {
    transform: scale(1);
}

.service-card i {
    font-size: 3rem;
    color: #007bff;
    margin-bottom: 20px;
    transition: all 0.5s ease;
    display: inline-block;
}

.service-card:hover i {
    transform: scale(1.2);
    color: #0056b3;
}

.service-card h3 {
    position: relative;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    z-index: 2;
}

.service-card:hover h3 {
    transform: translateY(-5px);
    color: #007bff;
}

.service-card p {
    position: relative;
    transition: all 0.3s ease;
    z-index: 2;
    opacity: 0.8;
}

.service-card:hover p {
    transform: translateY(-5px);
    opacity: 1;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #007bff;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s ease;
}

.service-card:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Service Grid Animation */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 20px;
}

/* Service Section Title Animation */
.services h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 50px;
    padding-bottom: 10px;
}

.services h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 50px;
    height: 3px;
    background: #007bff;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.services h2:hover::after {
    width: 100px;
}

/* Service Card Stagger Animation */
.service-card:nth-child(1) { transition-delay: 0.1s; }
.service-card:nth-child(2) { transition-delay: 0.2s; }
.service-card:nth-child(3) { transition-delay: 0.3s; }
.service-card:nth-child(4) { transition-delay: 0.4s; }
.service-card:nth-child(5) { transition-delay: 0.5s; }
.service-card:nth-child(6) { transition-delay: 0.6s; }
.service-card:nth-child(7) { transition-delay: 0.7s; }
.service-card:nth-child(8) { transition-delay: 0.8s; }

/* Additional Hover Effects */
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.service-card i::before {
    transition: all 0.3s ease;
}

.service-card:hover i::before {
    transform: scale(1.2);
}

.service-card h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #007bff;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.service-card:hover h3::after {
    width: 50px;
}

/* Hover Animations */
.cta-button {
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.cta-button:hover {
    transform: scale(1.05);
}

/* Navbar Animation */
.nav-links {
    transition: transform 0.3s ease;
}

.nav-links li {
    position: relative;
    overflow: hidden;
}

.nav-links li a {
    position: relative;
    display: block;
    padding: 10px 15px;
    transition: all 0.3s ease;
}

.nav-links li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s ease;
}

.nav-links li a:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s ease;
}

.nav-links li a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Mobile Menu Animation */
.mobile-menu {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.mobile-menu:hover {
    transform: scale(1.1);
}

.mobile-menu i {
    transition: transform 0.3s ease;
}

.mobile-menu:hover i {
    transform: rotate(90deg);
}

/* Logo Animation */
.logo h1 {
    position: relative;
    display: inline-block;
    transition: transform 0.3s ease;
}

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

.logo h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s ease;
}

.logo h1:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Active Navigation Item Animation */
.nav-links li a.active {
    color: #007bff;
    transform: translateY(-2px);
}

.nav-links li a.active::after {
    transform: scaleX(1);
    background: #007bff;
}

/* Navigation Dropdown Animation */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.9);
        transform: translateX(-100%);
        transition: transform 0.5s ease;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links li {
        opacity: 0;
        transform: translateX(-20px);
        transition: all 0.3s ease;
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Stats Counter Animation */
.stat-item h3 {
    transition: transform 0.3s ease;
}

.stat-item:hover h3 {
    transform: scale(1.1);
}

/* Form Input Animations */
.contact-form input,
.contact-form select,
.contact-form textarea {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

/* Social Media Icons Animation */
.social-links a {
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-5px);
}

/* Footer Animations */
.footer-content {
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
}

.footer-section {
    position: relative;
    transition: all 0.5s ease;
}

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

.footer-section h3 {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #fff;
    transition: width 0.3s ease;
}

.footer-section:hover h3::after {
    width: 100%;
}

.footer-section ul li {
    position: relative;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.footer-section ul li a {
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
}

.footer-section ul li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: #fff;
    transition: width 0.3s ease;
}

.footer-section ul li:hover a::before {
    width: 100%;
}

.footer-section ul li:hover {
    transform: translateX(10px);
}

/* Social Media Icons Animation */
.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a i {
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #007bff;
    transform: translateY(-5px);
}

.social-links a:hover i {
    transform: scale(1.2);
}

/* Footer Bottom Animation */
.footer-bottom {
    position: relative;
    padding-top: 20px;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.footer-bottom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.footer-bottom:hover::before {
    background: rgba(255, 255, 255, 0.3);
}

.footer-bottom p {
    transition: all 0.3s ease;
}

.footer-bottom:hover p {
    transform: scale(1.02);
}

/* Footer Section Stagger Animation */
.footer-section:nth-child(1) { transition-delay: 0.1s; }
.footer-section:nth-child(2) { transition-delay: 0.2s; }
.footer-section:nth-child(3) { transition-delay: 0.3s; }

/* Responsive Footer Animations */
@media (max-width: 768px) {
    .footer-section {
        margin-bottom: 30px;
    }
    
    .footer-section:hover {
        transform: translateY(-3px);
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Contact Section Animations */
.contact {
    position: relative;
    overflow: hidden;
    padding: 80px 0;
}

.contact h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 50px;
    transition: all 0.3s ease;
}

.contact h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 50px;
    height: 3px;
    background: #007bff;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.contact h2:hover::after {
    width: 100px;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    transition: all 0.5s ease;
}

/* Contact Form Animations */
.contact-form {
    position: relative;
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.5s ease;
}

.contact-form:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-size: 16px;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: #007bff;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.1);
    transform: translateY(-2px);
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

.submit-button {
    background: #007bff;
    color: #fff;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.submit-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.submit-button:hover {
    background: #0056b3;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.submit-button:hover::before {
    left: 100%;
}

/* Contact Info Animations */
.contact-info {
    position: relative;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.5s ease;
}

.contact-info:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.info-item:hover {
    transform: translateX(10px);
}

.info-item i {
    font-size: 24px;
    color: #007bff;
    margin-right: 20px;
    transition: all 0.3s ease;
}

.info-item:hover i {
    transform: scale(1.2);
    color: #0056b3;
}

.info-item p {
    margin: 0;
    transition: all 0.3s ease;
}

.info-item:hover p {
    color: #007bff;
}

/* Responsive Contact Animations */
@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .contact-form,
    .contact-info {
        padding: 30px;
    }
    
    .info-item {
        margin-bottom: 20px;
    }
}

/* Form Input Placeholder Animation */
.contact-form input::placeholder,
.contact-form textarea::placeholder {
    transition: all 0.3s ease;
}

.contact-form input:focus::placeholder,
.contact-form textarea:focus::placeholder {
    transform: translateY(-20px);
    opacity: 0;
}

/* Select Dropdown Animation */
.contact-form select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 15px;
    padding-right: 40px;
    transition: all 0.3s ease;
}

.contact-form select:hover {
    border-color: #007bff;
}

/* Finance Slideshow Styles */
.finance-slideshow {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.slideshow-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.slide.fade {
    opacity: 1;
}

.slide-content {
    max-width: 800px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    backdrop-filter: blur(5px);
    transform: translateY(20px);
    transition: transform 0.5s ease;
}

.slide.fade .slide-content {
    transform: translateY(0);
}

.slide h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.slide p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.slide-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.stat {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.stat:hover {
    transform: scale(1.05);
}

.stat h3 {
    font-size: 2rem;
    margin-bottom: 5px;
    color: #fff;
}

.stat p {
    font-size: 1rem;
    margin: 0;
    opacity: 0.8;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background: rgba(0, 0, 0, 0.3);
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.dots-container {
    text-align: center;
    position: absolute;
    bottom: 20px;
    width: 100%;
}

.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.dot.active {
    background-color: white;
}

/* Responsive Slideshow */
@media (max-width: 768px) {
    .finance-slideshow {
        height: 400px;
    }

    .slide h2 {
        font-size: 2rem;
    }

    .slide p {
        font-size: 1rem;
    }

    .stat h3 {
        font-size: 1.5rem;
    }

    .slide-stats {
        flex-direction: column;
        gap: 20px;
    }
} 