/* =========================================
   Footer Styles — Enhanced & Modern
   ========================================= */

footer {
  background: linear-gradient(135deg, #000000 0%, #121212 50%, #000000 100%);
  color: rgba(255, 255, 255, 0.85);
  padding: 80px 0 0;
  margin-top: 100px;
  position: relative;
  overflow: hidden;
  border-top: 3px solid var(--primary-color);
}

/* Animated gradient border shimmer */
footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg,
      transparent,
      var(--primary-color),
      var(--primary-light),
      var(--primary-color),
      transparent);
  background-size: 200% 100%;
  animation: footerShimmer 3s linear infinite;
}

@keyframes footerShimmer {
  0% {
    background-position: -200% center;
  }

  100% {
    background-position: 200% center;
  }
}

/* Decorative background shapes */
footer::after {
  content: '';
  position: absolute;
  top: -100px;
  right: -50px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(34, 181, 115, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* Footer Container */
.footer-container {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  padding: 60px 0;
  max-width: 1200px;
  margin: 0 auto;
  border-bottom: 1px solid rgba(34, 181, 115, 0.15);
  position: relative;
  z-index: 1;
}

/* Footer Line (Left side) */
.footer-line {
  padding-right: 20px;
}

.footer-line-header {
  display: flex;
  align-items: center;
  gap: 0px;
  margin-bottom: 30px;
  flex-wrap: nowrap;
}

.footer-line-header a {
  display: flex;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  line-height: 0;
}

.footer-line-header .Flogo {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  height: 90px;
  width: auto;
  object-fit: contain;
  display: block;
  margin: 0;
  padding: 0;
  filter: brightness(0) invert(1) brightness(0.9);
}

.footer-line-header .Flogo:hover {
  filter: brightness(0) invert(1) brightness(1.15);
  transform: scale(1.06) rotate(-2deg);
}

.footer-company-info {
  display: flex;
  flex-direction: column;
  gap: 0px;
  line-height: 1;
  margin: 0;
  padding: 0;
  margin-left: 4px;
}

.footer-company-name {
  font-size: 1.3rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: 0.5px;
  line-height: 1;
  margin: 0;
  padding: 0;
}

.footer-company-subtitle {
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 1;
  margin: 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.6);
}

.footer-line .Flogo {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 25px;
  filter: brightness(0) invert(1) brightness(0.9);
}

.footer-line .Flogo:hover {
  filter: brightness(0) invert(1) brightness(1.2);
  transform: scale(1.05);
}

.footer-line .text-i {
  font-size: 0.95rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.7);
  margin: 15px 0 25px;
  font-weight: 500;
}

.footer-line h5 {
  color: var(--primary-color) !important;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.3s ease;
}

.footer-line h5:hover {
  transform: translateX(3px);
}

.footer-line .address {
  font-size: 0.9rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 20px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer-line .address:hover {
  color: rgba(255, 255, 255, 0.9);
}

/* Footer Links Parent */
.footer-links-parent {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.footer-links-parent .footer-links {
  color: var(--primary-color);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 15px;
}

/* Quick Links heading */
h2.footer-links.links {
  color: var(--primary-color) !important;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

h2.footer-links.links::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
  border-radius: 2px;
}

/* Footer Links */
.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-bottom: 15px;
}

.links-rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.links-rows p {
  margin: 0;
  font-size: 0.95rem;
}

.links-rows h2 {
  color: var(--primary-color);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

/* Animated underline on heading */
.links-rows h2::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
  border-radius: 2px;
  transition: width 0.4s ease;
}

.links-rows h2:hover::after {
  width: 100%;
}

.links-rows .links,
footer .links-rows a.links,
footer a.links:not(.nav-link):not(.dropdown-item) {
  color: rgba(255, 255, 255, 0.7) !important;
  text-decoration: none !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  display: inline-block;
  font-weight: 500;
  padding-left: 0;
}

.links-rows .links:hover,
footer .links-rows a.links:hover,
footer a.links:not(.nav-link):not(.dropdown-item):hover {
  color: var(--primary-light) !important;
  transform: translateX(5px);
  padding-left: 18px;
  text-decoration: none !important;
}

/* Animated arrow on hover */
.links-rows .links::before {
  content: '→';
  position: absolute;
  left: -20px;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--primary-color);
}

.links-rows .links:hover::before {
  opacity: 1;
  left: 0;
}

/* Mail Head Styling */
.MailHead {
  color: var(--primary-color) !important;
  font-weight: 700;
  margin-bottom: 10px;
}

.mail {
  color: var(--primary-light) !important;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

.mail::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.4s ease;
}

.mail:hover {
  opacity: 0.85;
}

.mail:hover::after {
  width: 100%;
}

/* Social Icons — Enhanced */
.icons {
  display: flex;
  gap: 18px;
  margin-top: 15px;
  flex-wrap: wrap;
  align-items: center;
}

.icons .i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  color: #ffffff !important;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 1.5rem;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  position: relative;
  overflow: hidden;
  padding: 0 !important;
}

.icons .i::before {
  display: none !important;
}

.icons .i i,
.icons .i .fab,
.icons .i .fas {
  color: #ffffff !important;
  font-size: 1.4rem;
  position: relative;
  z-index: 1;
}

/* Pulse ring animation on hover */
.icons .i::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid var(--primary-color);
  opacity: 0;
  transform: scale(1);
  transition: all 0.4s ease;
}

.icons .i:hover {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: #000000 !important;
  transform: translateY(-5px) scale(1.1) !important;
  padding-left: 0 !important;
  box-shadow: 0 12px 30px rgba(34, 181, 115, 0.4);
  border-color: var(--primary-color);
}

.icons .i:hover i,
.icons .i:hover .fab,
.icons .i:hover .fas {
  color: #000000 !important;
}

.icons .i:hover::after {
  opacity: 0.4;
  transform: scale(1.6);
  border-color: var(--primary-light);
}

/* Terms Line */
.terms-line {
  margin-left: 15px;
}

/* Footer Logo Section */
.footer-logo {
  background: rgba(0, 0, 0, 0.95) !important;
  padding: 30px 0 0 0 !important;
  text-align: center;
  border-top: 1px solid rgba(34, 181, 115, 0.1);
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  filter: none !important;
}

.copyright-parent {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  background: rgba(0, 0, 0, 0.95) !important;
  border-radius: 8px;
  padding: 18px 20px 10px 20px !important;
  margin-top: 0 !important;
  box-shadow: none;
  border-top: 1px solid rgba(34, 181, 115, 0.1);
  border-bottom: none;
  opacity: 1 !important;
  visibility: visible !important;
}

.copyright-parent .terms {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.copyright-parent .terms p {
  margin: 0;
}

.copyright-parent .terms a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  font-weight: 500;
}

.copyright-parent .terms a:hover {
  color: var(--primary-light);
  text-decoration: underline;
}

.copyright {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
  font-weight: 500;
  text-align: center;
  flex: 1;
}

.footer-logo hr {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 181, 115, 0.25), transparent);
  margin-bottom: 30px;
  margin-top: 0;
  display: block !important;
  opacity: 1 !important;
}

#buttom_text {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
  margin-bottom: 20px !important;
  font-weight: 500;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Ensure copyright section is always visible on all screen sizes */
.footer-logo,
.copyright-parent,
#buttom_text,
.footer-logo hr {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  max-height: none !important;
  height: auto !important;
}

/* =========================================
   Responsive Design for Footer
   ========================================= */

@media (max-width: 992px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 50px;
    padding: 50px 0;
  }

  .footer-line {
    padding-right: 0;
  }

  .footer-line-header {
    gap: 0px;
    margin-bottom: 25px;
  }

  .footer-company-info {
    margin-left: 3px;
  }

  .footer-company-name {
    font-size: 1.1rem;
  }

  .footer-links {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  .footer-links-parent {
    gap: 25px;
  }
}

@media (max-width: 768px) {
  footer {
    padding-top: 60px;
    margin-top: 80px;
  }

  .footer-container {
    gap: 40px;
    padding: 40px 0;
  }

  .footer-line-header {
    gap: 0px;
    margin-bottom: 20px;
  }

  .footer-line-header a {
    flex-shrink: 0;
  }

  .footer-line-header .Flogo {
    height: 75px;
  }

  .footer-company-info {
    margin-left: 2px;
  }

  .footer-company-name {
    font-size: 1rem;
  }

  .footer-company-subtitle {
    font-size: 0.75rem;
  }

  .footer-line .text-i {
    font-size: 0.9rem;
    margin: 12px 0 18px;
  }

  .footer-line .address {
    font-size: 0.85rem;
    margin-bottom: 18px;
  }

  .footer-links-parent {
    gap: 20px;
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .links-rows {
    gap: 10px;
  }

  .links-rows h2 {
    font-size: 1rem;
    margin-bottom: 12px;
  }

  .links-rows .links {
    font-size: 0.9rem;
  }

  .copyright-parent {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .copyright-parent .terms {
    justify-content: center;
    gap: 20px;
  }

  .copyright-parent .terms p {
    font-size: 0.85rem;
  }

  .copyright {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  footer {
    padding-top: 50px;
    margin-top: 60px;
  }

  .footer-container {
    gap: 35px;
    padding: 30px 15px;
  }

  .footer-line .Flogo {
    margin-bottom: 15px;
  }

  .footer-line .text-i {
    font-size: 0.85rem;
    margin: 12px 0 18px;
    line-height: 1.6;
  }

  .footer-line h5 {
    font-size: 0.9rem;
    margin-bottom: 10px;
  }

  .footer-line .address {
    font-size: 0.8rem;
    line-height: 1.6;
    margin-bottom: 15px;
  }

  .footer-links-parent {
    gap: 20px;
  }

  .footer-links-parent .footer-links {
    font-size: 1rem;
    margin-bottom: 12px;
  }

  .footer-links {
    gap: 18px;
  }

  .links-rows h2 {
    font-size: 0.95rem;
    margin-bottom: 10px;
  }

  .links-rows .links {
    font-size: 0.85rem;
  }

  .icons .i {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .icons {
    gap: 12px;
  }

  .MailHead {
    font-size: 0.95rem;
    margin-bottom: 8px;
  }

  .mail {
    font-size: 0.9rem;
  }

  #buttom_text {
    font-size: 0.8rem;
    line-height: 1.6;
    margin-bottom: 15px;
    padding: 0 10px;
  }

  .copyright-parent {
    gap: 15px;
  }

  .copyright-parent .terms {
    flex-direction: column;
    gap: 15px;
  }

  .copyright-parent .terms a {
    font-size: 0.8rem;
  }

  .copyright {
    font-size: 0.8rem;
  }

  .footer-logo hr {
    margin-bottom: 18px;
  }
}