/* ==========================================================
   Footer - Modern Professional Styling
   ========================================================== */

/* Footer Main Container */
.site-footer {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #ffffff;
    position: relative;
    overflow: hidden;
    padding: 2rem 0 1rem;
    margin-top: 1.5rem;
}

/* Footer Background Elements - Removed */

.footer-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(16, 185, 129, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

.footer-pills {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.02) 50%, transparent 70%);
    animation: shimmer 15s ease-in-out infinite;
}

/* Enhanced Footer Animations */
.footer-particles::before,
.footer-particles::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(16, 185, 129, 0.2) 100%);
    animation: floatParticle 8s ease-in-out infinite;
}

.footer-particles::before {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.footer-particles::after {
    bottom: 30%;
    right: 15%;
    animation-delay: 4s;
}

.footer-pills::before,
.footer-pills::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 30px;
    border-radius: 50px;
    background: linear-gradient(135deg, rgba(106, 200, 198, 0.3) 0%, rgba(27, 90, 122, 0.3) 100%);
    animation: floatPill 6s ease-in-out infinite;
}

.footer-pills::before {
    top: 40%;
    left: 20%;
    animation-delay: 2s;
}

.footer-pills::after {
    bottom: 20%;
    right: 25%;
    animation-delay: 6s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

@keyframes floatParticle {
    0%, 100% {
        transform: translateY(0px) translateX(0px) rotate(0deg);
        opacity: 0.7;
    }
    25% {
        transform: translateY(-30px) translateX(10px) rotate(90deg);
        opacity: 1;
    }
    50% {
        transform: translateY(-60px) translateX(-5px) rotate(180deg);
        opacity: 0.8;
    }
    75% {
        transform: translateY(-30px) translateX(-10px) rotate(270deg);
        opacity: 1;
    }
}

@keyframes floatPill {
    0%, 100% {
        transform: translateY(0px) translateX(0px) rotate(0deg);
        opacity: 0.6;
    }
    25% {
        transform: translateY(-20px) translateX(15px) rotate(45deg);
        opacity: 0.9;
    }
    50% {
        transform: translateY(-40px) translateX(-10px) rotate(90deg);
        opacity: 0.7;
    }
    75% {
        transform: translateY(-20px) translateX(-15px) rotate(135deg);
        opacity: 0.9;
    }
}

/* Dynamic Footer Elements */
.footer-particles .particle {
    position: absolute;
    border-radius: 50%;
    animation: floatParticle 8s ease-in-out infinite;
    pointer-events: none;
}

.footer-pills .pill {
    position: absolute;
    border-radius: 50px;
    animation: floatPill 6s ease-in-out infinite;
    pointer-events: none;
}

/* Footer Content */
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 48px;
    margin-bottom: 0px;
    position: relative;
    z-index: 3;
}

/* Company Info */
.footer-company {
    max-width: 400px;
}

.footer-logo {
    margin-bottom: 1.5rem;
}

.footer-logo .logo-img {
    height: 50px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-contact {
    margin-top: 0px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: #ffffff !important;
    transition: all 0.3s ease;
}

.contact-item:hover {
    color: #ffffff !important;
    transform: translateX(5px);
}

.contact-item svg {
    width: 16px;
    height: 16px;
    color: #3b82f6;
    flex-shrink: 0;
}

.contact-item span {
    font-size: 0.95rem;
    font-weight: 500;
    color: #ffffff !important;
}

/* Footer Links */
.footer-links h4 {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-links h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
    border-radius: 1px;
}

.footer-links ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #ffffff !important;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
    transition: width 0.3s ease;
}

.footer-links a:hover {
    color: #ffffff !important;
    transform: translateX(5px);
}

.footer-links a:hover::after {
    width: 100%;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icons a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.social-icons a:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
    border-color: transparent;
}

.social-icons a i {
    font-size: 1.1rem;
}



.footer-bottom-content {
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright p {
    color: #ffffff !important;
    font-size: 0.9rem;
    margin: 0;
}

.footer-badges {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.badge:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.badge svg {
    width: 16px;
    height: 16px;
    color: #10b981;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 45px;
    height: 45px;
    border-radius: 8px;
    background: linear-gradient(135deg, #1b5a7a 0%, #6ac8c6 100%);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(27, 90, 122, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(27, 90, 122, 0.5);
    background: linear-gradient(135deg, #6ac8c6 0%, #1b5a7a 100%);
}

.back-to-top i,
.back-to-top .fas,
.back-to-top .fa {
    font-size: 18px;
    color: #ffffff !important;
    line-height: 1;
    display: block;
    pointer-events: none;
}

.back-to-top svg {
    display: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .site-footer {
        padding: 1.5rem 0 1rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 2rem;
    }
    
    .footer-column {
        text-align: center;
    }
}

@media (max-width: 768px) {
    /* All text elements align left - OVERRIDE ALL CENTER ALIGNMENTS */
    * {
        text-align: left !important;
    }
    
    body, p, h1, h2, h3, h4, h5, h6, div, span, a, li, td, th, label, input, textarea, select, button, section, article, header, footer, nav, ul, ol {
        text-align: left !important;
    }
    
    /* Override all flex center alignments */
    [class*="center"], [class*="Center"], [class*="CENTER"] {
        text-align: left !important;
        justify-content: flex-start !important;
        align-items: flex-start !important;
    }
    
    .site-footer {
        padding: 1.5rem 0 0.75rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: left !important;
        justify-content: flex-start !important;
    }
    
    .footer-column {
        margin-bottom:0px;
        text-align: left !important;
    }
    
    .footer-logo {
        margin-bottom: 1rem;
        text-align: left !important;
    }
    
    .footer-social {
        justify-content: flex-start !important;
        text-align: left !important;
    }
    
    .footer-bottom {
        text-align: left !important;
    }
    
    .footer-logo .logo-img {
        height: 40px;
    }
    
    .footer-links h4 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .footer-links ul {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .footer-links li {
        margin-bottom: 0.5rem;
    }
    
    .footer-links a {
        font-size: 0.9rem;
    }
    
    .contact-item {
        margin-bottom: 0.75rem;
        justify-content: center;
    }
    
    .contact-item span {
        font-size: 0.9rem;
        color: #ffffff !important;
    }
    
    .contact-item {
        color: #ffffff !important;
    }
    
    .footer-links a {
        color: #ffffff !important;
    }
    
    .social-icons {
        justify-content: center;
        margin-top: 1rem;
    }
    
    .social-icons a {
        width: 40px;
        height: 40px;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-bottom p {
        font-size: 0.8rem;
        color: #ffffff !important;
    }
    
    .footer-badges {
        justify-content: center;
    }
    
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 576px) {
    .site-footer {
        padding: 1.5rem 0 0.75rem;
    }
    
    .footer-content {
        gap: 1.5rem;
    }
    
    .footer-column {
        margin-bottom: 0px;
    }
    
    .footer-logo .logo-img {
        height: 35px;
    }
    
    .footer-links h4 {
        font-size: 1.1rem;
    }
    
    .footer-links a {
        font-size: 0.85rem;
    }
    
    .contact-item span {
        font-size: 0.85rem;
        color: #ffffff !important;
    }
    
    .contact-item {
        color: #ffffff !important;
    }
    
    .footer-links a {
        color: #ffffff !important;
    }
    
    .copyright p {
        color: #ffffff !important;
    }
    
    .social-icons a {
        width: 35px;
        height: 35px;
    }
    
    .footer-bottom p {
        font-size: 0.75rem;
        color: #ffffff !important;
    }
    
    .badge {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }
    
    .back-to-top {
        width: 40px;
        height: 40px;
    }
    
    .back-to-top svg {
        width: 18px;
        height: 18px;
    }
}
