.footer,
.footer *,
.color-bar1 {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  -moz-backface-visibility: hidden;
  -ms-backface-visibility: hidden;
}

/* Hardware acceleration for navbar elements */
.footer,
.color-bar1,
.logo-container,
.logo-container img {
  transform: translate3d(0, 0, 0);
}

.footer .color-bar1 {
  height: 4px;
  background: linear-gradient(
    90deg,
    #15de79,
    #2785dd,
    #3aed6a,
    #3aed6a,
    #6ae9a9,
    #3aed6a,
    #15de79
  );
  background-size: 300% 100%;
  animation: Lineflow 4s ease-in-out infinite;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  opacity: 1;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, opacity;
  transform: translate3d(0, 0, 0);
  display: block;
}

.footer .color-bar1.hidden {
  opacity: 0;
  transform: translateY(-100%);
}

@keyframes Lineflow {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}


/* Footer Styles - Professional Yoho Technologies Design */
.footer {
    background: black;
    color: #ffffff;
    padding: 0;
    position: relative;
    overflow: hidden;
    border-top: 2px solid #948888;
}

/* Footer Color Bar - Alternative approach */
/* .footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(
        90deg,
        #15de79,
        #2785dd,
        #3aed6a,
        #3aed6a,
        #6ae9a9,
        #3aed6a,
        #15de79
    );
    background-size: 300% 100%;
    animation: Lineflow 4s ease-in-out infinite;
    z-index: 10;
    opacity: 1;
    transform: translate3d(0, 0, 0);
} */

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;charset=UTF-8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"%3E%3Cpath d="M0,0 L100,0 L100,100 L0,100 Z" fill="%23001833" opacity="0.1"/%3E%3C/svg%3E');
    pointer-events: none;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

/* Footer Top Section */
.footer-top {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    padding: 4rem 0 3rem;
    border-bottom: 0px solid rgba(255, 255, 255, 0.1);
    position: relative;
    margin-top: 4px; /* Space for the color bar */
        /* background: black; */
    opacity: 1000;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-logo img {
    height: 50px;
    width: auto;
    filter: brightness(1.2);
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
    max-width: 280px;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.contact-item i {
    color:  #ffffff;
    font-size: 0.85rem;
    width: 16px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
}

.footer-links-row {
    display: contents;
}

.footer-links-column h3 {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links-column h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background:  #45f475;
}

.footer-links-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links-column ul li {
    margin-bottom: 0.8rem;
}

.footer-links-column ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: block;
    padding: 0.25rem 0;
    position: relative;
}

.footer-links-column ul li a:hover {
    color:  #45f475;
    transform: translateX(5px);
}

.footer-links-column ul li a::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 1px;
    background:  #45f475;
    transition: width 0.3s ease;
}

.footer-links-column ul li a:hover::before {
    width: 10px;
}



.newsletter-content h3 {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.newsletter-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin: 0;
}

.newsletter-form {
    flex-shrink: 0;
}

.input-group {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.input-group input {
    background: transparent;
    border: none;
    padding: 0.75rem 1.5rem;
    color: #ffffff;
    font-size: 0.9rem;
    min-width: 280px;
    outline: none;
}

.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.input-group button {
    background:  #45f475;
    border: none;
    padding: 0.75rem 2rem;
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    white-space: nowrap;
}

.input-group button:hover {
    background:  #45f475;
}

/* Footer Middle Section */
.footer-middle {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex: 1;
}

.footer-bottom-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.footer-bottom-logo img {
    height: 40px;
    width: auto;
    filter: brightness(1.2);
}

.footer-bottom-logo .company-name {
    color: #45f475;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-bottom-logo .company-name::after {
    content: "Yoho Technologies";
    display: block;
    color: #45f475;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: fcenter;
    padding: 2.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-certifications h4,
.footer-global h4 {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cert-logos {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cert-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.cert-item:hover {
    background: rgba(0, 113, 206, 0.2);
    border-color:  #45f475;
}

.locations {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.location {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    padding: 0.25rem 0;
    position: relative;
}

.location:not(:last-child)::after {
    content: '•';
    position: absolute;
    right: -8px;
    color:  #45f475;
}

/* Footer Bottom Section */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: left;
    padding: 2rem 0;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-bottom-left {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.copyright {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    text-align: left;
}

.footer-bottom-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: #45f475;
}

.footer-bottom-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    text-decoration: none !important;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-links a:hover {
    transform: translateY(-3px);
    /* box-shadow: 0 5px 15px rgba(0, 113, 206, 0.3); */
}

.social-linkedin:hover { background:  #45f475; border-color: #45f475; }
.social-twitter:hover { background: #45f475; border-color: #45f475; }
.social-facebook:hover { background: #45f475; border-color: #45f475; }
.social-youtube:hover {  background: #45f475; border-color: #45f475;  }
.social-instagram:hover {  background: #45f475; border-color: #45f475;  }

.footer-language select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.85rem;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
}

.footer-language select:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color:  #45f475;
}

.footer-language select option {
    /* background: #001833; */
    color: #ffffff;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .footer-container {
        padding: 0 1.5rem;
    }
    
    /* .footer-links {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    } */
}

@media (max-width: 1024px) {
    .footer-tagline{
        text-align: left;
        margin-left: 65px;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 3.5rem 0 2.5rem;
    }
    
    .footer-brand {
        text-align: center;
        max-width: none;
    }
    
    .footer-tagline {
        max-width: 400px;
        margin: 0 auto;
    }
    
    /* .footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
        justify-items: center;
    } */
    
    .footer-links-column {
        text-align: center;
    }
    
    .footer-links-column h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        align-items: center;
        gap: 2rem;
    }
    
    .footer-bottom-left {
        order: 2;
        text-align: center;
        align-items: center;
    }
    
    .footer-bottom-right {
        order: 3;
    }
    
    .footer-logo {
        order: 1;
    }
}

/* Mobile styles moved to Footer-Mobile.css for better organization */

@media (max-width: 640px) {
    .footer-top {
        padding: 2.5rem 0 1.5rem;
        gap: 2rem;
    }
    
    .footer-links {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
    
    .footer-links-column h3 {
        font-size: 0.95rem;
    }
    
    .footer-links-column ul li a {
        font-size: 0.8rem;
    }
    
    .contact-item {
        flex-direction: column;
        gap: 0.3rem;
        font-size: 0.8rem;
    }
    
    .contact-item i {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .footer-container {
        padding: 0 0.8rem;
    }
    
    .footer-top {
        padding: 2rem 0 1.5rem;
        gap: 1.8rem;
    }
    
    .footer-brand {
        gap: 1rem;
    }
    
    .footer-tagline {
        font-size: 12px;
        line-height: 1.5;
    }
    
    .footer-contact {
        gap: 0.6rem;
    }
    
    .contact-item {
        font-size: 0.75rem;
        gap: 10px;
        display: flex;
        flex-direction: row;
        text-align: left;
        /* margin-left: 4%; */
    }
    
    .contact-item i {
        font-size: 0.75rem;
        /* width: 14px; */
        padding-left: 10px;
    }
    
    .footer-links {
         grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    text-align: left;
    }
    
    .footer-links-column {
        width: 100%;
    padding: 0;                /* remove the 1 rem vertical padding used as separators */
    border-bottom: none;
    }
    
    .footer-links-column:last-child {
        border-bottom: none;
    }
    
    .footer-links-column h3 {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .footer-links-column h3::after {
        width: 25px;
    }
    
    .footer-links-column ul li {
        margin-bottom: 0.6rem;
    }
    
    .footer-links-column ul li a {
        font-size: 0.75rem;
        padding: 0.15rem 0;
    }
    
    .footer-bottom {
        padding: 1.2rem 0;
        gap: 1.2rem;
    }
    
    .footer-logo img {
        height: 40px;
    }
    
    .copyright {
        font-size: 0.75rem;
        line-height: 1.4;
    }
    
    .footer-bottom-links {
        gap: 1rem;
        justify-content: center;
    }
    
    .footer-bottom-links a {
        font-size: 0.7rem;
    }
    
    .social-links {
        gap: 1rem;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .social-links a {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
}

@media (max-width: 360px) {
    .footer-container {
        padding: 0 0.6rem;
    }
    
    .footer-top {
        padding: 1.8rem 0 1.2rem;
        gap: 1.5rem;
    }
    
    .footer-tagline {
        font-size: 0.85rem;
        max-width: 280px;
    }
    
    .contact-item {
        font-size: 0.7rem;
    }
    
    .footer-links-column h3 {
        font-size: 0.85rem;
    }
    
    .footer-links-column ul li a {
        font-size: 0.7rem;
    }
    
    .footer-bottom {
        padding: 1rem 0;
        gap: 1rem;
    }
    
    .copyright {
        font-size: 0.7rem;
    }
    
    .footer-bottom-links a {
        font-size: 0.65rem;
    }
    
    .social-links a {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }
}

/* Keep 2x2 grid on mobile */
            /* .footer-links {
                grid-template-columns: repeat(2, 1fr);
                gap: 2rem;
                justify-items: start;
            } */
            
            .footer-links-column {
                text-align: left;
                width: 100%;
            }
            
            .footer-links-column h3,
            .footer-links-column h5 {
                font-size: 1rem;
                margin-bottom: 1.2rem;
            }
            
            .footer-links-column h3::after,
            .footer-links-column h5::after {
                left: 0;
                transform: none;
            }
            
            .footer-links-column ul li a {
                font-size: 0.85rem;
                padding: 0.2rem 0;
            }
