/**
 * VIT Bargarh - Footer Component
 * Version: 2.0.0
 *
 * Modern footer design with multiple sections
 */

/* ================================================
   MAIN FOOTER
   ================================================ */

.site-footer {
  background: var(--vit-dark);
  color: var(--vit-white);
  position: relative;
}

/* Footer Top (Optional decorative element) */
.footer-top-wave {
  position: absolute;
  top: -50px;
  left: 0;
  right: 0;
  height: 50px;
  background: var(--vit-dark);
  clip-path: ellipse(60% 100% at 50% 100%);
}

/* ================================================
   FOOTER MAIN CONTENT
   ================================================ */

.footer-main {
  padding: var(--space-12) 0 var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

@media (min-width: 576px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  }
}

/* ================================================
   FOOTER WIDGET
   ================================================ */

.footer-widget {
  margin-bottom: var(--space-6);
}

.footer-widget-title {
  font-family: var(--font-headings);
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  color: var(--vit-white);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-3);
  position: relative;
}

.footer-widget-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--vit-primary);
  border-radius: var(--radius-full);
}

/* ================================================
   FOOTER ABOUT WIDGET
   ================================================ */

.footer-about {
  max-width: 320px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  text-decoration: none;
}

.footer-logo img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.footer-logo-text {
  font-family: var(--font-headings);
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  color: var(--vit-white);
  line-height: 1.2;
}

.footer-about-text {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  margin-bottom: var(--space-5);
}

/* Social Links */
.footer-social {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}

.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--vit-white);
  font-size: var(--text-lg);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: all var(--duration-300) var(--ease-out);
}

.footer-social-link:hover {
  transform: translateY(-3px);
  color: var(--vit-white);
}

.footer-social-link.facebook:hover {
  background: #1877f2;
}

.footer-social-link.youtube:hover {
  background: #ff0000;
}

.footer-social-link.instagram:hover {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.footer-social-link.linkedin:hover {
  background: #0a66c2;
}

.footer-social-link.twitter:hover {
  background: #1da1f2;
}

/* Developers Credit */
.footer-developers {
  padding-top: var(--space-4);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-developers-title {
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  margin-bottom: var(--space-2);
}

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

.footer-developers-list li {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  margin-right: var(--space-3);
  margin-bottom: var(--space-1);
}

.footer-developers-list a {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color var(--duration-200) var(--ease-in-out);
}

.footer-developers-list a:hover {
  color: var(--vit-white);
}

.footer-developers-list i {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.4);
}

/* ================================================
   FOOTER LINKS WIDGET
   ================================================ */

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

.footer-links li {
  margin-bottom: var(--space-2);
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all var(--duration-200) var(--ease-in-out);
}

.footer-links a:hover {
  color: var(--vit-white);
  padding-left: var(--space-2);
}

.footer-links a i {
  font-size: var(--text-xs);
  color: var(--vit-primary-300);
  transition: transform var(--duration-200) var(--ease-in-out);
}

.footer-links a:hover i {
  transform: translateX(3px);
}

/* Submenu in Footer */
.footer-links .has-submenu {
  position: relative;
}

.footer-links .has-submenu > a {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-links .has-submenu > a .submenu-arrow {
  font-size: var(--text-xs);
  transition: transform var(--duration-200) var(--ease-in-out);
}

.footer-links .has-submenu:hover > a .submenu-arrow {
  transform: rotate(90deg);
}

.footer-submenu {
  display: none;
  list-style: none;
  padding: var(--space-2) 0 var(--space-2) var(--space-4);
  margin: var(--space-2) 0 0;
  border-left: 2px solid var(--vit-primary-400);
}

.footer-links .has-submenu:hover .footer-submenu {
  display: block;
}

.footer-submenu li {
  margin-bottom: var(--space-1);
}

.footer-submenu a {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.6);
}

.footer-submenu a:hover {
  color: var(--vit-white);
}

/* ================================================
   FOOTER CONTACT WIDGET
   ================================================ */

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

.footer-contact-item {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.footer-contact-item:last-child {
  margin-bottom: 0;
}

.footer-contact-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--vit-primary);
  color: var(--vit-white);
  font-size: var(--text-lg);
  border-radius: var(--radius-lg);
}

.footer-contact-content {
  flex: 1;
}

.footer-contact-label {
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  margin-bottom: var(--space-1);
}

.footer-contact-value {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.8);
}

.footer-contact-value a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration-200) var(--ease-in-out);
}

.footer-contact-value a:hover {
  color: var(--vit-white);
}

/* Google Map */
.footer-map {
  margin-top: var(--space-5);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.footer-map iframe {
  width: 100%;
  height: 150px;
  display: block;
}

/* ================================================
   FOOTER BOTTOM (COPYRIGHT)
   ================================================ */

.footer-bottom {
  padding: var(--space-5) 0;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-copyright {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
}

.footer-copyright a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color var(--duration-200) var(--ease-in-out);
}

.footer-copyright a:hover {
  color: var(--vit-white);
}

/* Footer Bottom Links */
.footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4);
}

@media (min-width: 768px) {
  .footer-bottom-links {
    justify-content: flex-end;
  }
}

.footer-bottom-links a {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color var(--duration-200) var(--ease-in-out);
}

.footer-bottom-links a:hover {
  color: var(--vit-white);
}

.footer-bottom-links span {
  color: rgba(255, 255, 255, 0.3);
}

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

.back-to-top {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--vit-primary);
  color: var(--vit-white);
  font-size: var(--text-xl);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--duration-300) var(--ease-out);
  z-index: var(--z-fixed);
}

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

.back-to-top:hover {
  background: var(--vit-primary-dark);
  transform: translateY(-4px);
}

/* ================================================
   NEWSLETTER WIDGET (OPTIONAL)
   ================================================ */

.footer-newsletter {
  margin-top: var(--space-6);
  padding: var(--space-5);
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-newsletter-title {
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  color: var(--vit-white);
  margin-bottom: var(--space-2);
}

.footer-newsletter-text {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: var(--space-4);
}

.footer-newsletter-form {
  display: flex;
  gap: var(--space-2);
}

.footer-newsletter-input {
  flex: 1;
  padding: var(--space-3);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  color: var(--vit-white);
  font-size: var(--text-sm);
}

.footer-newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.footer-newsletter-input:focus {
  outline: none;
  border-color: var(--vit-primary);
  background: rgba(255, 255, 255, 0.15);
}

.footer-newsletter-btn {
  padding: var(--space-3) var(--space-5);
  background: var(--vit-primary);
  color: var(--vit-white);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--duration-200) var(--ease-in-out);
}

.footer-newsletter-btn:hover {
  background: var(--vit-primary-dark);
}

/* ================================================
   RESPONSIVE ADJUSTMENTS
   ================================================ */

@media (max-width: 575px) {
  .footer-main {
    padding: var(--space-8) 0 var(--space-6);
  }

  .footer-widget-title {
    font-size: var(--text-base);
  }

  .footer-developers-list li {
    display: block;
    margin-right: 0;
  }

  .footer-newsletter-form {
    flex-direction: column;
  }
}

/* ================================================
   ANIMATIONS
   ================================================ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.footer-widget {
  animation: fadeInUp 0.6s ease-out;
}

.footer-widget:nth-child(1) { animation-delay: 0.1s; }
.footer-widget:nth-child(2) { animation-delay: 0.2s; }
.footer-widget:nth-child(3) { animation-delay: 0.3s; }
.footer-widget:nth-child(4) { animation-delay: 0.4s; }