/* Footer Styles */
.footer {
  background-color: #E3F0AF;
  color: var(--color-gray-300);
  padding: var(--space-16) 0 var(--space-8);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}

/* Footer Logo and Tagline */
.footer-logo {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.footer-logo .logo-image {
  height: 50px;
  width: auto;
  /* filter: brightness(0) invert(1); */
}

.footer-tagline {
  color: #000000;
  line-height: 1.6;
  font-size: var(--font-size-sm);
  text-align:justify;
}

/* Social Media Icons */
.social-media-icons {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-4);
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #DE5B7B 0%, #E0F9B5 100%);
  color: #ffffff;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(222, 91, 123, 0.3);
  /* Ensure icons are visible */
  font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "Font Awesome 6 Brands", sans-serif;
  font-weight: 900;
}

.social-icon::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: left 0.5s;
}

.social-icon:hover::before {
  left: 100%;
}

.social-icon i {
  font-size: 18px;
  z-index: 1;
  position: relative;
  /* Ensure proper icon rendering */
  font-family: inherit;
  font-weight: inherit;
  line-height: 1;
  display: block;
}

/* Fallback for when Font Awesome fails to load */
.social-icon:not(:has(i))::before {
  content: '';
  width: 18px;
  height: 18px;
  background-color: currentColor;
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
}

.social-icon:nth-child(1):not(:has(i))::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 512'%3E%3Cpath d='M279.14 288l14.22-92.66h-88.91v-60.13c0-25.35 12.42-50.06 52.24-50.06h40.42V6.26S260.43 0 225.36 0c-73.22 0-121.08 44.38-121.08 124.72v70.62H22.89V288h81.39v224h100.17V288z'/%3E%3C/svg%3E");
}

.social-icon:nth-child(2):not(:has(i))::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M459.37 151.716c.325 4.548.325 9.097.325 13.645 0 138.72-105.583 298.558-298.558 298.558-59.452 0-114.68-17.219-161.137-47.106 8.447.974 16.568 1.299 25.34 1.299 49.055 0 94.213-16.568 130.274-44.832-46.132-.975-84.792-31.188-98.112-72.772 6.498.974 12.995 1.624 19.818 1.624 9.421 0 18.843-1.3 27.614-3.573-48.081-1.114-84.143-51.172-84.143-102.985v-1.299c13.969 7.797 30.214 12.67 47.431 13.319-28.264-18.843-46.781-51.005-46.781-87.391 0-19.492 5.197-37.36 14.294-52.954 51.655 63.675 129.3 105.258 216.365 109.807-1.624-7.797-2.599-15.918-2.599-24.04 0-57.828 46.782-104.934 104.934-104.934 30.213 0 57.502 12.67 76.67 33.137 23.715-4.548 46.456-13.32 66.599-25.34-7.798 23.393-24.366 42.6-46.132 54.877 23.508-1.624 46.527-8.077 67.82-16.178-15.756 26.995-36.163 48.578-61.508 61.99z'/%3E%3C/svg%3E");
}

.social-icon:nth-child(3):not(:has(i))::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M224.1 141c-63.6 0-114.9 51.3-114.9 114.9s51.3 114.9 114.9 114.9S339 319.5 339 255.9 287.7 141 224.1 141zm0 189.6c-41.1 0-74.7-33.5-74.7-74.7s33.5-74.7 74.7-74.7 74.7 33.5 74.7 74.7-33.6 74.7-74.7 74.7zm146.4-194.3c0 14.9-12 26.8-26.8 26.8-14.9 0-26.8-12-26.8-26.8s12-26.8 26.8-26.8 26.8 12 26.8 26.8zm76.1 27.2c-1.7-35.9-9.9-67.7-36.2-93.9-26.2-26.2-58-34.4-93.9-36.2-37-2.1-147.9-2.1-184.9 0-35.8 1.7-67.6 9.9-93.9 36.1s-34.4 58-36.2 93.9c-2.1 37-2.1 147.9 0 184.9 1.7 35.9 9.9 67.7 36.2 93.9s58 34.4 93.9 36.2c37 2.1 147.9 2.1 184.9 0 35.9-1.7 67.7-9.9 93.9-36.2 26.2-26.2 34.4-58 36.2-93.9 2.1-37 2.1-147.8 0-184.8zM398.8 388c-7.8 19.6-22.9 34.7-42.6 42.6-29.5 11.7-99.5 9-132.1 9s-102.7 2.6-132.1-9c-19.6-7.8-34.7-22.9-42.6-42.6-11.7-29.5-9-99.5-9-132.1s-2.6-102.7 9-132.1c7.8-19.6 22.9-34.7 42.6-42.6 29.5-11.7 99.5-9 132.1-9s102.7-2.6 132.1 9c19.6 7.8 34.7 22.9 42.6 42.6 11.7 29.5 9 99.5 9 132.1s2.6 102.7-9 132.1z'/%3E%3C/svg%3E");
}

.social-icon:nth-child(4):not(:has(i))::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M416 32H31.9C14.3 32 0 46.5 0 64.3v383.4C0 465.5 14.3 480 31.9 480H416c17.6 0 32-14.5 32-32.3V64.3c0-17.8-14.4-32.3-32-32.3zM135.4 416H69V202.2h66.5V416zm-33.2-243c-21.3 0-38.5-17.3-38.5-38.5S80.9 96 102.2 96c21.2 0 38.5 17.3 38.5 38.5 0 21.3-17.2 38.5-38.5 38.5zm282.1 243h-66.4V312c0-24.8-.5-56.7-34.5-56.7-34.6 0-39.9 27-39.9 56.7V416h-66.4V202.2h63.7v30.2h.9c8.9-16.8 22.2-25.4 46.8-25.4 50.3 0 59.5 33.1 59.5 77.7V416z'/%3E%3C/svg%3E");
}

.social-icon:nth-child(5):not(:has(i))::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 576 512'%3E%3Cpath d='M549.655 124.083c-6.281-23.65-24.787-42.276-48.284-48.597C458.781 64 288 64 288 64S117.22 64 74.629 75.486c-23.497 6.322-42.003 24.947-48.284 48.597-11.412 42.867-11.412 132.305-11.412 132.305s0 89.438 11.412 132.305c6.281 23.65 24.787 41.5 48.284 47.821C117.22 448 288 448 288 448s170.78 0 213.371-11.486c23.497-6.321 42.003-24.171 48.284-47.821 11.412-42.867 11.412-132.305 11.412-132.305s0-89.438-11.412-132.305zm-317.51 213.508V175.185l142.739 81.205-142.739 81.201z'/%3E%3C/svg%3E");
}

/* Unique hover effects for each social media icon */
.social-icon:nth-child(1):hover {
  transform: translateY(-5px) rotate(5deg);
  background: linear-gradient(135deg, #3b5998 0%, #4c70ba 100%);
  box-shadow: 0 8px 25px rgba(59, 89, 152, 0.4);
}

.social-icon:nth-child(2):hover {
  transform: translateY(-5px) rotate(-5deg);
  background: linear-gradient(135deg, #00aced 0%, #1da1f2 100%);
  box-shadow: 0 8px 25px rgba(29, 161, 242, 0.4);
}

.social-icon:nth-child(3):hover {
  transform: translateY(-5px) scale(1.1);
  background: linear-gradient(135deg, #e4405f 0%, #f56040 100%);
  box-shadow: 0 8px 25px rgba(228, 64, 95, 0.4);
}

.social-icon:nth-child(4):hover {
  transform: translateY(-5px) rotate(10deg);
  background: linear-gradient(135deg, #007bb6 0%, #00a0dc 100%);
  box-shadow: 0 8px 25px rgba(0, 123, 182, 0.4);
}

.social-icon:nth-child(5):hover {
  transform: translateY(-5px) rotate(-10deg);
  background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
  box-shadow: 0 8px 25px rgba(255, 0, 0, 0.4);
}

/* Active state */
.social-icon:active {
  transform: scale(0.95);
  transition: transform 0.1s;
}

/* Loading state for icons */
.social-icon.loading {
  position: relative;
}

.social-icon.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Ensure icons are always visible */
.social-icon i[class*="fa-"] {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Additional icon visibility improvements */
.social-icon i.fab,
.social-icon i.fas,
.social-icon i.far {
  display: inline-block !important;
  font-style: normal !important;
  font-variant: normal !important;
  text-rendering: auto !important;
  line-height: 1 !important;
}

/* Fallback for icon loading issues */
.social-icon:empty::before,
.social-icon:not(:has(i))::before {
  content: '●';
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

/* Footer Links */
.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.footer-column h3 {
  background: linear-gradient(90deg, rgba(222, 91, 123, 1) 0%, rgba(224, 249, 181, 1) 35%, rgba(222, 91, 123, 1) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  /* Optional: smooth font edges */
  text-shadow: 0 0 0 rgba(0, 0, 0, 0.1); 
  margin-bottom: var(--space-6);
  font-size: var(--font-size-lg);
  position: relative;
}

.footer-column h3:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: #DE5B7B;
}

.footer-column ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-column a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: #DE5B7B;
  transition: var(--transition-colors);
}

.footer-column a:hover {
  color: #000000;
}

.footer-column a i {
  color: #DE5B7B;
  font-size: var(--font-size-sm);
  width: 16px;
}

/* Footer Bottom */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-gray-800);
  color: var(--color-gray-500);
  font-size: var(--font-size-sm);
}

.legal-links a {
  color: var(--color-gray-400);
  transition: var(--transition-colors);
}

.legal-links a:hover {
  color: var(--color-primary-light);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  
  .footer-logo {
    margin-bottom: var(--space-6);
  }
  
  .footer-links {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .footer-logo .logo-image {
    height: 40px;
  }
  
  .social-media-icons {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .footer {
    padding: var(--space-12) 0 var(--space-6);
  }
  
  .footer-links {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6) var(--space-4);
  }

  .social-media-icons {
    gap: var(--space-2);
    justify-content: center;
  }
  
  .social-icon {
    width: 35px;
    height: 35px;
  }
  
  .social-icon i {
    font-size: 16px;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: var(--space-4);
    text-align: center;
  }
  
  .footer-logo .logo-image {
    height: 35px;
  }
}

@media (max-width: 576px) {
  .footer-links {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  
  .footer-logo .logo-image {
    height: 30px;
  }
  
  .social-media-icons {
    gap: var(--space-1);
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .social-icon {
    width: 32px;
    height: 32px;
    margin: 2px;
  }
  
  .social-icon i {
    font-size: 14px;
  }
}

/* Additional improvements for better icon display */
@media (max-width: 480px) {
  .social-media-icons {
    gap: var(--space-2);
    justify-content: center;
  }
  
  .social-icon {
    width: 36px;
    height: 36px;
    margin: 3px;
  }
  
  .social-icon i {
    font-size: 16px;
  }
}

/* High DPI display support */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .social-icon {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
}

/* Print styles */
@media print {
  .social-media-icons {
    display: none;
  }
}