/* 
 * Footer Component Styles
 * Contains all styles related to the site footer
 */

/* Main footer styles */
footer {
  background-color: #fff;
  padding: 2rem 0 1rem;
}

.main-container{
  padding: 1rem 5rem !important;
}

/* Footer certification logos */
.footer-certifications-container {
  margin-bottom: 0.5em;
}

.footer-certifications {
  width: 100%;
  max-width: 85%;
  border-radius: 0px 0px 50px 50px;
  background-color: #F1F1F1;
  padding: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  gap: 1.5rem;
}

.footer-certifications img {
  max-width: 125px;
  height: auto;
  transition: transform 0.3s ease;
}

/*.footer-certifications:hover img {*/
/*  transform: scale(1.1);*/
/*}*/

.duns-certificate:hover iframe {
  transform: scale(1.3);
}
/* Footer links styling */
.alltake-footer-links {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1.5rem;
}

.alltake-footer-links li {
  text-align: left;
  margin-bottom: 8px;
  display: inline-block;
  font-weight: 400;
  margin-right: 15px;
}

.alltake-footer-links a {
  color: #333;
  text-decoration: none;
  transition: color 0.2s ease;
  display: inline-block;
  padding: 0.25rem 0;
}

.alltake-footer-links a:hover {
  color: #0056b3;
  text-decoration: underline;
}

/* Footer copyright text */
.footer-cp-text {
  font-size: 0.85rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  overflow-wrap: break-word;
  word-wrap: break-word;
  margin-bottom: 1rem;
}

.footer-cp-text small {
  margin-top: 0.25rem;
}

/* Footer copyright section */
.footer-copyright-section {
  border-top: 1px solid #eee;
  padding-top: 15px;
  margin-top: 20px;
}

/* Sticky Footer Bottom Section */
.footer-sticky-bottom {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: #fff;
  border-top: 1px solid #e9ecef;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  padding: 0.5rem 0;
}

.footer-sticky-bottom .container-fluid {
  padding-top: 5px;
  padding-bottom: 5px;
}

.footer-sticky-bottom .footer-cp-text {
  font-size: 0.9rem;
  margin-bottom: 0;
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.footer-sticky-bottom img {
  max-height: 40px;
  width: auto;
}

/* Request Proposal Button Styles */
.footer-sticky-bottom .btn {
  margin-bottom: 0 !important;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  animation: pulse-light 2s infinite;
}

.footer-sticky-bottom .btn:hover {
  transform: translateY(-3px) scale(1.05);
  animation: none;
  background-color: #045cb5;
  box-shadow: 0 5px 15px rgba(0, 86, 179, 0.4);
}

.footer-sticky-bottom .btn:active {
  transform: translateY(1px) scale(0.98);
}

.footer-sticky-bottom .btn[data-bs-toggle="modal"] {
  position: relative;
  background: linear-gradient(-45deg, #023e8a, #0077b6, #0096c7, #023e8a);
  background-size: 400% 400%;
  border: 2px solid transparent;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  font-weight: bold;
  letter-spacing: 0.5px;
  font-size: 1.05rem;
  text-transform: uppercase;
  border-image: linear-gradient(45deg, #48cae4, #ffffff, #48cae4) 1;
  animation: button-combo 3s infinite;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Combined animation without glow */
@keyframes button-combo {
  0% {
    transform: translateY(0) scale(1);
    border-image: linear-gradient(45deg, #48cae4, #ffffff, #48cae4) 1;
    background-position: 0% 50%;
  }
  20% {
    transform: translateY(-3px) scale(1.03);
  }
  40% {
    transform: translateY(-5px) scale(1.05);
    border-image: linear-gradient(45deg, #ffffff, #48cae4, #ffffff) 1;
    background-position: 50% 50%;
  }
  60% {
    transform: translateY(-3px) scale(1.03);
  }
  80% {
    transform: translateY(0) scale(1);
    border-image: linear-gradient(45deg, #48cae4, #ffffff, #48cae4) 1;
    background-position: 100% 50%;
  }
  100% {
    transform: translateY(0) scale(1);
    border-image: linear-gradient(45deg, #48cae4, #ffffff, #48cae4) 1;
    background-position: 0% 50%;
  }
}

@keyframes border-pulse {
  0%, 100% {
    border-image: linear-gradient(45deg, #48cae4, #ffffff, #48cae4) 1;
  }
  50% {
    border-image: linear-gradient(45deg, #ffffff, #48cae4, #ffffff) 1;
  }
}

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

.footer-sticky-bottom .btn[data-bs-toggle="modal"]:hover {
  animation: shimmer-effect 1.5s infinite;
  background: linear-gradient(-45deg, #0077b6, #023e8a, #0096c7, #0077b6);
  background-size: 400% 400%;
  transform: translateY(-5px) scale(1.12);
  border: 2px solid #fff;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

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

.footer-sticky-bottom .btn[data-bs-toggle="modal"]:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.5s;
}

.footer-sticky-bottom .btn[data-bs-toggle="modal"]:hover:before {
  left: 100%;
  animation: shine-effect 1.5s;
}

@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 0 0 rgba(2, 62, 138, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(2, 62, 138, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(2, 62, 138, 0);
  }
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-5px);
  }
  100% {
    transform: translateY(0px);
  }
}

@keyframes shine-effect {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* Additional proposal button styles */
.proposal-btn {
  padding: 10px 20px;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  position: relative;
  min-width: 180px;
  text-align: center;
  border-radius: 4px;
}

/* Add a highlight effect on click */
.proposal-btn:active {
  animation: click-effect 0.5s ease;
}

@keyframes click-effect {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(0.95);
  }
  100% {
    transform: scale(1);
  }
}

/* Special animation for button hover via JavaScript */
.animated-hover {
  animation: jello-horizontal 0.9s both;
}

@keyframes jello-horizontal {
  0% {
    transform: scale3d(1, 1, 1);
  }
  30% {
    transform: scale3d(1.25, 0.75, 1);
  }
  40% {
    transform: scale3d(0.75, 1.25, 1);
  }
  50% {
    transform: scale3d(1.15, 0.85, 1);
  }
  65% {
    transform: scale3d(0.95, 1.05, 1);
  }
  75% {
    transform: scale3d(1.05, 0.95, 1);
  }
  100% {
    transform: scale3d(1, 1, 1);
  }
}

.footer-sticky-bottom .btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%);
  transform-origin: 50% 50%;
}

.footer-sticky-bottom .btn:hover::after {
  animation: ripple 1s ease-out;
}

@keyframes ripple {
  0% {
    transform: scale(0, 0);
    opacity: 0.5;
  }
  20% {
    transform: scale(25, 25);
    opacity: 0.3;
  }
  100% {
    opacity: 0;
    transform: scale(40, 40);
  }
}

@keyframes pulse-light {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.4);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(0, 123, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 123, 255, 0);
  }
}

.footer-sticky-bottom .fab,
.footer-sticky-bottom .fa-brands {
  font-size: 1.2rem;
}

/* Add padding to body to prevent content from being hidden behind the sticky footer */
body {
  padding-bottom: 70px; /* Adjust based on the height of your sticky footer */
}

/* Social media icons */
.footer-social-icons {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 0.5rem;
}

.footer-social-icons a {
  color: #333;
  transition: transform 0.3s ease, color 0.3s ease;
}

.footer-social-icons a:hover {
  transform: translateY(-3px);
}

.footer-social-icons .fa-linkedin,
.footer-social-icons .fa-facebook-square {
  color: #0077b6;
}

.footer-social-icons .fa-youtube,
.footer-social-icons .fa-instagram {
  color: #dc3545;
}

/* Footer headings container */
.footer-links-container {
  margin-bottom: 1rem;
  width: 64%;
}

/* RESPONSIVE STYLES */

/* Large devices (desktops, less than 1200px) */
@media (max-width: 1199.98px) {
  .footer-certifications {
    gap: 1rem;
    width: 100%;
    max-width: 100%;
  }
  
  .footer-certifications img {
    max-width: 120px;
  }
  
  .proposal-btn {
    min-width: 160px;
    font-size: 0.95rem;
  }
}

/* Medium devices (tablets, less than 992px) */
@media (max-width: 991.98px) {
  .footer-certifications {
    width: 90%;
    max-width: 90%;
    gap: 0.75rem;
  }
  
  .footer-certifications img {
    max-width: 70px;
  }
  
  .footer-cp-text {
    font-size: 0.8rem;
  }
  
  .proposal-btn {
    min-width: 200px;
    padding: 8px 15px;
    font-size: 0.9rem;
  }
  
  .footer-sticky-bottom .btn[data-bs-toggle="modal"] {
    font-size: 0.9rem;
  }
}

/* Small devices (landscape phones, less than 768px) */
@media (max-width: 767.98px) {
  footer {
    padding: 1.5rem 0 0.5rem;
  }
  
  .footer-certifications-container {
    margin-bottom: 1.5rem;
  }
  
  .footer-certifications {
    width: 100%;
    padding: 1rem;
    border-radius: 0 0 30px 30px;
  }
  
  .alltake-footer-links {
    margin-bottom: 0.75rem;
    display: flex;
    flex-wrap: wrap;
  }
  
  .alltake-footer-links li {
    display: inline-block;
    margin: 0 10px 8px 0;
  }
  
  .footer-links-container {
    margin-bottom: 1rem;
  }
  
  .footer-cp-text {
    align-items: center;
    text-align: center;
    margin-top: 1rem;
  }
  
  .footer-sticky-bottom {
    padding: 0.4rem 0;
  }
  
  .footer-sticky-bottom .footer-cp-text {
    font-size: 0.8rem;
    text-align: center;
    align-items: center;
  }
  
  .footer-sticky-bottom img {
    max-height: 35px;
  }
  
  .footer-sticky-bottom .btn {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
  }
  
  .footer-sticky-bottom .fab,
  .footer-sticky-bottom .fa-brands {
    font-size: 1rem;
  }
  
  .proposal-btn {
    min-width: 130px;
    padding: 6px 12px;
    font-size: 0.8rem;
  }
  
  .footer-social-icons {
    justify-content: center;
    margin-top: 1rem;
  }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  .footer-certifications {
    padding: 0.75rem;
    border-radius: 0 0 20px 20px;
    width:100%;
    max-width: 100%;
  }
  
  .footer-certifications img {
    max-width: 60px;
  }
  
  .alltake-footer-links {
    margin-bottom: 0.5rem;
    justify-content: space-between;
    flex-wrap: wrap;
    flex-direction: column;
  }
  
  .alltake-footer-links li {
    font-size: 0.85rem;
    margin: 0 5px 6px 0;
  }
  
  .footer-links-container {
    margin-bottom: 0.75rem;
  }
  
  .footer-sticky-bottom .row > div {
    margin-bottom: 0.5rem;
  }
  
  .footer-sticky-bottom .footer-cp-text small {
    font-size: 0.7rem;
    display: inline-block;
    width: 100%;
    text-align: center;
  }
  
  .proposal-btn {
    min-width: 120px;
    padding: 5px 10px;
    font-size: 0.75rem;
  }
  .footer-links-container{
    width: 100%;
  }
  body {
    padding-bottom: 50px;
  }
  .footer-links-row{
    display: flex;
    justify-content: space-between;
  }  
  h5.fw-semibold {
    text-align: start;
    margin-bottom: 0.75rem;
    font-size: 1rem;
  }
  .duns-certificate iframe {
  transform: scale(0.7);
}
.duns-certificate:hover iframe {
  transform: scale(1);
}
.alltake-footer-links li{
  font-size: 0.75rem;
  margin: 0 5px 6px 0;
  display: block;
}
.footer-cp-text{
text-align: start;
align-items: start;
}
.footer-sticky-bottom-mobile .btn[data-bs-toggle="modal"] {
  position: relative;
  background: linear-gradient(-45deg, #023e8a, #0077b6, #0096c7, #023e8a);
  background-size: 400% 400%;
  border: 2px solid transparent !important;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  font-weight: bold;
  letter-spacing: 0.5px;
  font-size: 0.65rem;
  text-transform: uppercase;
  border-image: linear-gradient(45deg, #48cae4, #ffffff, #48cae4) 1 !important;
  animation: button-combo 3s infinite;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
}