
/* ============================================
   FOOTER SECTION ENHANCEMENTS
   ============================================ */

/* Footer Container with Gradient Background */
.vg-footer {
  position: relative;
  padding: 80px 0 40px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  overflow: hidden;
}

/* Animated Background Pattern */
.vg-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 15% 25%, rgba(239, 55, 36, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 85% 75%, rgba(239, 55, 36, 0.08) 0%, transparent 50%),
    linear-gradient(45deg, transparent 48%, rgba(255, 255, 255, 0.015) 49%, rgba(255, 255, 255, 0.015) 51%, transparent 52%),
    linear-gradient(-45deg, transparent 48%, rgba(255, 255, 255, 0.015) 49%, rgba(255, 255, 255, 0.015) 51%, transparent 52%);
  background-size: 100% 100%, 100% 100%, 50px 50px, 50px 50px;
  animation: footerPatternMove 25s linear infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes footerPatternMove {
  0% {
    background-position: 0% 0%, 100% 100%, 0 0, 0 0;
  }
  100% {
    background-position: 100% 100%, 0% 0%, 50px 50px, -50px 50px;
  }
}

/* Wave SVG Top Border */
.vg-footer .footer-wave {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  transform: translateY(-99%);
}

.vg-footer .footer-wave svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 80px;
}

.vg-footer .footer-wave .shape-fill {
  fill: #1a1a2e;
}

/* Floating Orbs in Footer */
.vg-footer::after {
  content: '';
  position: absolute;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(239, 55, 36, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  bottom: -15%;
  left: -5%;
  animation: footerOrb 15s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes footerOrb {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.5;
  }
  50% {
    transform: translate(30px, -30px) scale(1.2);
    opacity: 0.8;
  }
}

/* Footer Content z-index */
.vg-footer .container {
  position: relative;
  z-index: 1;
}

/* ============================================
   FOOTER TITLE STYLING
   ============================================ */

.vg-footer h1 {
  position: relative;
  color: #fff;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 50px;
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
}

.vg-footer h1::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, transparent, #ef3724, transparent);
  border-radius: 3px;
}

/* ============================================
   FOOTER COLUMNS STYLING
   ============================================ */

.vg-footer .footer-info {
  position: relative;
  padding: 25px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.vg-footer .footer-info:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(239, 55, 36, 0.3);
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

/* Shimmer effect on hover */
.vg-footer .footer-info::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.08) 50%,
    transparent 100%
  );
  transform: skewX(-20deg);
  transition: left 0.6s ease;
  z-index: 1;
  pointer-events: none;
}

.vg-footer .footer-info:hover::before {
  left: 150%;
}

/* Footer column headings */
.vg-footer .row > div > p:first-child,
.vg-footer .float-lg-right > p:first-child,
.vg-footer .footer-info > p:first-child {
  font-size: 1.1rem;
  font-weight: 600;
  color: #ef3724;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

/* Footer divider enhancement */
.vg-footer .divider {
  border: none;
  height: 2px;
  background: linear-gradient(90deg, #ef3724, #ff6b5b, transparent);
  margin: 15px 0 20px;
  width: 60px;
  border-radius: 2px;
  opacity: 1;
}

/* Footer text styling */
.vg-footer p,
.vg-footer li {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
  font-size: 0.95rem;
}

.vg-footer .fs-large {
  font-size: 0.95rem;
  line-height: 1.9;
}

/* ============================================
   FOOTER LINKS WITH UNDERLINE ANIMATION
   ============================================ */

.vg-footer a {
  position: relative;
  text-decoration: none;
  transition: color 0.3s ease;
  padding-bottom: 2px;
}

.vg-footer a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #ef3724, #ff6b5b);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
}

.vg-footer a:hover {
  color: #fff;
}

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

/* ============================================
   SOCIAL ICONS WITH HOVER EFFECTS
   ============================================ */

.vg-footer .list-unstyled {
  padding: 0;
  margin: 0;
}

.vg-footer .list-unstyled li {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Footer social links container */
.vg-footer .footer-social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.vg-footer .footer-social-link {
  position: relative;
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
}

.vg-footer .footer-social-link::after {
  display: none;
}

.vg-footer .footer-social-link img,
.vg-footer .footer-social-link svg,
.vg-footer .footer-social-link i {
  width: 20px;
  height: 20px;
  transition: all 0.4s ease;
  color: rgba(255, 255, 255, 0.7);
}

/* Social icon hover burst effect */
.vg-footer .footer-social-link:hover {
  background: linear-gradient(135deg, #ef3724, #ff6b5b);
  border-color: transparent;
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 10px 25px rgba(239, 55, 36, 0.4);
}

.vg-footer .footer-social-link:hover img,
.vg-footer .footer-social-link:hover svg,
.vg-footer .footer-social-link:hover i {
  filter: brightness(0) invert(1);
  color: #fff;
  transform: scale(1.2);
}

/* Burst ring animation for social icons */
.vg-footer .footer-social-link::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  border: 2px solid rgba(239, 55, 36, 0.5);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(1);
  opacity: 0;
  transition: all 0.4s ease;
}

.vg-footer .footer-social-link:hover::before {
  animation: footerSocialBurst 0.6s ease-out forwards;
}

@keyframes footerSocialBurst {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.8);
    opacity: 0;
  }
}

/* Platform-specific hover colors */
.vg-footer .footer-social-link.instagram:hover {
  background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.vg-footer .footer-social-link.facebook:hover {
  background: linear-gradient(135deg, #1877f2, #3b5998);
}

.vg-footer .footer-social-link.twitter:hover {
  background: linear-gradient(135deg, #1da1f2, #0d8ecf);
}

.vg-footer .footer-social-link.youtube:hover {
  background: linear-gradient(135deg, #ff0000, #cc0000);
}

.vg-footer .footer-social-link.linkedin:hover {
  background: linear-gradient(135deg, #0077b5, #00a0dc);
}

.vg-footer .footer-social-link.github:hover {
  background: linear-gradient(135deg, #333, #24292e);
}

/* ============================================
   MINI SITE MAP WITH ICONS
   ============================================ */

.vg-footer .footer-sitemap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.vg-footer .footer-sitemap-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 8px 0;
}

.vg-footer .footer-sitemap-link::after {
  display: none;
}

.vg-footer .footer-sitemap-link i,
.vg-footer .footer-sitemap-link .sitemap-icon {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.vg-footer .footer-sitemap-link:hover {
  color: #fff;
  transform: translateX(5px);
}

.vg-footer .footer-sitemap-link:hover i,
.vg-footer .footer-sitemap-link:hover .sitemap-icon {
  background: linear-gradient(135deg, #ef3724, #ff6b5b);
  border-color: transparent;
  color: #fff;
}

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

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #ef3724, #ff6b5b);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 9998;
  box-shadow: 0 5px 20px rgba(239, 55, 36, 0.4);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(239, 55, 36, 0.5);
}

/* Back to top icon */
.back-to-top svg,
.back-to-top i {
  width: 24px;
  height: 24px;
  color: #fff;
  transition: transform 0.3s ease;
}

.back-to-top:hover svg,
.back-to-top:hover i {
  transform: translateY(-3px);
}

/* Bounce animation on visible */
.back-to-top.visible {
  animation: backToTopBounce 2s ease-in-out infinite;
}

@keyframes backToTopBounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* Pause bounce on hover */
.back-to-top:hover {
  animation-play-state: paused;
}

/* Progress ring around button */
.back-to-top .progress-ring {
  position: absolute;
  top: -3px;
  left: -3px;
  width: 56px;
  height: 56px;
  transform: rotate(-90deg);
}

.back-to-top .progress-ring circle {
  fill: none;
  stroke: rgba(255, 255, 255, 0.3);
  stroke-width: 2;
}

.back-to-top .progress-ring .progress-ring__circle {
  stroke: #fff;
  stroke-dasharray: 176;
  stroke-dashoffset: 176;
  transition: stroke-dashoffset 0.1s ease;
}

/* ============================================
   FOOTER BOTTOM / COPYRIGHT
   ============================================ */

.vg-footer .footer-bottom {
  position: relative;
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.vg-footer .footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  margin: 0;
}

.vg-footer .footer-bottom a {
  color: #ef3724;
}

.vg-footer .footer-bottom a:hover {
  color: #ff6b5b;
}

/* Heart animation for copyright */
.vg-footer .footer-heart {
  display: inline-block;
  color: #ef3724;
  animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
  0%, 100% {
    transform: scale(1);
  }
  14% {
    transform: scale(1.2);
  }
  28% {
    transform: scale(1);
  }
  42% {
    transform: scale(1.2);
  }
  56% {
    transform: scale(1);
  }
}

/* ============================================
   FOOTER SCROLL REVEAL ANIMATIONS
   ============================================ */

.vg-footer .row > div {
  opacity: 0;
  transform: translateY(30px);
}

.vg-footer .row > div.revealed {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Staggered reveal delays */
.vg-footer .row > div:nth-child(1) { transition-delay: 0.1s; }
.vg-footer .row > div:nth-child(2) { transition-delay: 0.2s; }
.vg-footer .row > div:nth-child(3) { transition-delay: 0.3s; }
.vg-footer .row > div:nth-child(4) { transition-delay: 0.4s; }

/* ============================================
   RESPONSIVE FOOTER
   ============================================ */

@media (max-width: 991.98px) {
  .vg-footer {
    padding: 60px 0 30px;
  }

  .vg-footer h1 {
    font-size: 2rem;
    margin-bottom: 40px;
  }

  .vg-footer .footer-info {
    padding: 20px;
    margin-bottom: 20px;
  }

  .vg-footer .float-lg-right {
    float: none !important;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    margin-bottom: 20px;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }

  .back-to-top svg,
  .back-to-top i {
    width: 20px;
    height: 20px;
  }

  .back-to-top .progress-ring {
    width: 51px;
    height: 51px;
  }
}

@media (max-width: 767.98px) {
  .vg-footer {
    padding: 50px 0 25px;
  }

  .vg-footer h1 {
    font-size: 1.75rem;
    margin-bottom: 30px;
  }

  .vg-footer .footer-info,
  .vg-footer .float-lg-right {
    padding: 18px;
    border-radius: 15px;
  }

  .vg-footer .footer-social-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
  }

  .vg-footer .footer-social-link {
    width: 42px;
    height: 42px;
  }

  .vg-footer .footer-bottom {
    margin-top: 30px;
    padding-top: 20px;
  }

  .vg-footer .footer-wave svg {
    height: 50px;
  }

  .vg-footer::after {
    display: none;
  }

  @keyframes backToTopBounce {
    0%, 20%, 50%, 80%, 100% {
      transform: translateY(0);
    }
    40% {
      transform: translateY(-6px);
    }
    60% {
      transform: translateY(-3px);
    }
  }
}

@media (max-width: 575.98px) {
  .vg-footer {
    padding: 40px 0 20px;
  }

  .vg-footer h1 {
    font-size: 1.5rem;
  }

  .vg-footer .row > div > p:first-child,
  .vg-footer .float-lg-right > p:first-child,
  .vg-footer .footer-info > p:first-child {
    font-size: 1rem;
    letter-spacing: 1px;
  }

  .back-to-top {
    bottom: 15px;
    right: 15px;
    width: 42px;
    height: 42px;
  }

  .back-to-top .progress-ring {
    display: none;
  }
}

/* Print styles for footer */
@media print {
  .vg-footer {
    background: #fff;
    padding: 30px 0;
  }

  .vg-footer h1,
  .vg-footer p,
  .vg-footer li,
  .vg-footer a {
    color: #333;
  }

  .vg-footer::before,
  .vg-footer::after {
    display: none;
  }

  .vg-footer .row > div {
    opacity: 1;
    transform: none;
  }

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