/* FinPluss Footer Styles - Enhanced Orange Gradient with Animation */

/* Footer Main Container */
.footer-main {
    position: relative;
    background: linear-gradient(135deg, 
        #000000 0%, 
        #0d1929 15%,
        #1a1a2e 25%,
        #16213e 35%,
        #3d1a00 45%,  /* Very dark orange */
        #0f1e3d 55%,
        #2d1000 65%,  /* Subtle dark orange */
        #1a2847 75%,
        #000000 85%,
        #16213e 95%,
        #000000 100%);
    background-size: 300% 300%;
    animation: gradientWave 45s ease infinite;  /* Slower animation */
    color: #ffffff;
    padding: 60px 0 0;
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    overflow: hidden;
}

/* Simple gradient overlay without reflective effect */
.footer-gradient-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at top right, rgba(243, 109, 33, 0.05) 0%, transparent 40%),
        radial-gradient(ellipse at bottom left, rgba(36, 62, 147, 0.08) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
}

/* Animated floating particles - more subtle */
.footer-main::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle, rgba(243, 109, 33, 0.03) 1px, transparent 1px),
        radial-gradient(circle, rgba(36, 62, 147, 0.04) 1px, transparent 1px),
        radial-gradient(circle, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 200px 200px, 350px 350px, 250px 250px;
    background-position: 0 0, 40px 60px, 130px 270px;
    animation: floatParticles 60s linear infinite;  /* Much slower */
    z-index: 0;
}

/* Slower, smoother gradient wave animation */
@keyframes gradientWave {
    0% {
        background-position: 0% 50%;
    }
    25% {
        background-position: 50% 30%;
    }
    50% {
        background-position: 100% 50%;
    }
    75% {
        background-position: 50% 70%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Slower floating particles animation */
@keyframes floatParticles {
    from {
        transform: translateY(0) translateX(0);
    }
    to {
        transform: translateY(-100px) translateX(30px);
    }
}

.footer-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* Footer Grid Layout */
.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1.5fr 1.5fr 1fr;
    gap: 35px;
    padding-bottom: 40px;
}

/* Footer Column Styles */
.footer-column {
    display: flex;
    flex-direction: column;
    /* Removed fade-in related styles */
}

/* Brand Column */
.footer-brand-column {
    padding-right: 20px;
}

.footer-logo-wrapper {
    margin-bottom: 15px;
}

.footer-logo {
    max-width: 180px;
    height: auto;
    display: block;
    filter: brightness(0) invert(1);
}

.footer-tagline {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 25px;
    font-style: italic;
}

/* Social Media Icons */
.footer-social {
    display: flex;
    gap: 12px;
    margin-bottom: 45px;
}

.footer-social-link {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    font-size: 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-social-link:hover {
    background: #F36D21;
    color: #ffffff;
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 6px 20px rgba(243, 109, 33, 0.4);
    border-color: #F36D21;
}

/* Contact Section */
.footer-contact {
    margin-top: 10px;
}

.footer-section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 17px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.5;
}

.footer-contact-item i {
    color: #ffffff;
    font-size: 14px;
    margin-top: 3px;
    flex-shrink: 0;
    width: 16px;
}

.footer-contact-item a {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding: 2px 4px;
    border-radius: 4px;
}

.footer-contact-item a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Headings - Now Main Headings */
.footer-heading {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid transparent;
    background: linear-gradient(90deg, #F36D21 35%, transparent 80%) bottom;
    background-size: 100% 2px;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-heading i {
    font-size: 16px;
}

/* Footer Lists */
.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-list li {
    margin-bottom: 8px;
}

.footer-list a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    position: relative;
    padding: 3px 6px;
    border-radius: 4px;
}

/* Icons in footer links */
.footer-list a i {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    opacity: 0.9;
    transition: all 0.3s ease;
    flex-shrink: 0;
    width: 14px;
    text-align: center;
}

/* Orange hover effect for links */
.footer-list a:hover {
    color: #ffffff;
    background: rgba(243, 109, 33, 0.3);
    padding-left: 10px;
    box-shadow: inset 3px 0 0 #F36D21;
}

.footer-list a:hover i {
    color: #F36D21;
    opacity: 1;
    transform: scale(1.1);
}

/* Quick Links & Legal Links Special Styling */
.footer-quick-links a,
.footer-legal-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 6px;
    font-size: 13px;
}

.footer-quick-links a i,
.footer-legal-links a i {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.9);
    opacity: 0.9;
    transition: all 0.3s ease;
}

.footer-quick-links a:hover i,
.footer-legal-links a:hover i {
    transform: translateX(3px);
    opacity: 1;
    color: #F36D21;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 18px 0;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    width: 100%;
    margin: 0;
}

.footer-bottom-content {
    max-width: calc(100% - 60px);
    padding: 0 30px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    box-sizing: border-box;
}

.footer-copyright {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
}

.footer-developer {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.footer-developer a {
    text-decoration: none;
}

/* Nexilra Credit Styling - Rainbow Gradient */
.footer-credit {
    background: linear-gradient(90deg, #FF6B35 0%, #138808 33%, #0066CC 66%, #19AAED 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
    display: inline-block;
    animation: gradientShift 10s ease infinite;
    background-size: 300% 300%;
}

/* Gradient Animation */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ========== BACK TO TOP BUTTON STYLES ========== */

.back-to-top {
    position: fixed;
    bottom: 3.5rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: #F36D21;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none; /* Hidden by default, shown via JavaScript */
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(243, 109, 33, 0.3);
    z-index: 1000;
    transition: background-color 0.3s ease, transform 0.3s ease;
    will-change: transform;
    text-decoration: none;
    outline: none;
}

.back-to-top.show {
    display: flex; /* Simply show/hide without fade */
}

.back-to-top:hover {
    background: #e55a00;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(243, 109, 33, 0.4);
}

.back-to-top:active {
    transform: scale(0.95);
}

.back-to-top:focus {
    background: #F36D21;
    box-shadow: 0 0 0 3px rgba(243, 109, 33, 0.3);
}

.back-to-top i {
    font-size: 1.2rem;
    transition: transform 0.2s ease;
}

.back-to-top:hover i {
    transform: scale(1.1);
}

/* Responsive Design - Tablet */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .footer-brand-column {
        grid-column: span 2;
        padding-right: 0;
    }
    
    .footer-social {
        justify-content: center;
        margin-bottom: 35px;
    }
    
    .footer-logo-wrapper {
        text-align: center;
    }
    
    .footer-logo {
        margin: 0 auto;
    }
    
    .footer-tagline {
        text-align: center;
    }
    
    .footer-contact {
        max-width: 420px;
        margin: 0 auto;
    }
}

/* Responsive Design - Mobile */
@media (max-width: 768px) {
    .footer-main {
        padding: 40px 0 0;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .footer-brand-column {
        grid-column: 1;
        text-align: center;
        padding-bottom: 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .footer-social {
        margin-bottom: 30px;
    }
    
    .footer-heading {
        font-size: 16px;
        margin-bottom: 14px;
        padding-bottom: 8px;
    }
    
    .footer-list a {
        font-size: 12px;
    }
    
    .footer-list a i {
        font-size: 10px;
    }
    
    .footer-quick-links a,
    .footer-legal-links a {
        font-size: 12px;
    }
    
    .footer-contact-item {
        font-size: 13px;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 8px;
        padding: 0 15px;
    }
    
    .back-to-top {
        bottom: 2.5rem;
        right: 1.5rem;
        width: 45px;
        height: 45px;
    }
    
    .back-to-top i {
        font-size: 1.1rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .footer-container {
        padding: 0 15px;
    }
    
    .footer-logo {
        max-width: 150px;
    }
    
    .footer-social {
        gap: 10px;
        margin-bottom: 25px;
    }
    
    .footer-social-link {
        width: 35px;
        height: 35px;
        font-size: 15px;
    }
    
    .footer-heading {
        font-size: 15px;
    }
    
    .footer-list a {
        font-size: 11px;
        padding: 2px 4px;
    }
    
    .footer-list a i {
        font-size: 9px;
        width: 12px;
    }
    
    .footer-quick-links a,
    .footer-legal-links a {
        font-size: 11px;
    }
    
    .footer-contact-item {
        font-size: 12px;
        gap: 8px;
    }
    
    .footer-copyright {
        font-size: 12px;
    }
    
    .footer-developer {
        font-size: 11px;
    }
    
    .footer-bottom-content {
        padding: 0 10px;
    }
    
    .back-to-top {
        bottom: 2rem;
        right: 1rem;
        width: 40px;
        height: 40px;
    }
    
    .back-to-top i {
        font-size: 1rem;
    }
}

/* Extra Small Devices */
@media (max-width: 360px) {
    .footer-main {
        padding: 35px 0 0;
    }
    
    .footer-grid {
        gap: 20px;
    }
    
    .footer-logo {
        max-width: 130px;
    }
    
    .footer-tagline {
        font-size: 13px;
    }
    
    .footer-list li {
        margin-bottom: 4px;
    }
    
    .footer-list a {
        font-size: 10px;
    }
    
    .footer-list a i {
        font-size: 8px;
    }
    
    .footer-bottom-content {
        padding: 0 8px;
    }
}

/* Print Styles */
@media print {
    .footer-main {
        background: white !important;
        color: black !important;
    }
    
    .footer-list a,
    .footer-contact-item,
    .footer-copyright,
    .footer-developer {
        color: black !important;
    }
    
    .back-to-top {
        display: none !important;
    }
}