/* =========================
   Footer Section Styles
   ========================= */

.footer {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.03)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.03)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.02)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.02)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.02)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  pointer-events: none;
}

.footer-content {
  position: relative;
  z-index: 1;
}

.footer-brand {
  margin-bottom: 1.5rem;
}

/* Footer Logo Styling */
.footer-logo {
  max-width: 120px;
  height: auto;
  transition: transform 0.3s ease;
}

.footer-logo:hover {
  transform: scale(1.05);
}

.footer-brand h5 {
  color: white;
  font-weight: 700;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-link:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.social-link.telegram:hover {
  background: #0088cc;
}

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

.social-link.instagram:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

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

.footer-links h6 {
  color: white;
  font-weight: 600;
  margin-bottom: 1.5rem;
  position: relative;
  font-size: 1.1rem;
}

.footer-links h6::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--primary-color);
  border-radius: 1px;
}

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

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  position: relative;
}

.footer-links a:hover {
  color: var(--primary-color);
  transform: translateX(5px);
}

.footer-links a i {
  margin-right: 0.5rem;
  width: 16px;
}

.footer-contact {
  margin-bottom: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.8);
}

.contact-item i {
  margin-right: 0.75rem;
  color: var(--primary-color);
  width: 16px;
}

.contact-item a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-item a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  margin-top: 2rem;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.footer-legal {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 1.5rem;
  justify-content: flex-end;
}

.footer-legal li {
  margin: 0;
}

.footer-bottom a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

.footer-bottom a:hover {
  color: var(--accent-color);
}

/* Footer Newsletter */
.footer-newsletter {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-newsletter h6 {
  color: white;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.footer-newsletter-input {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: white;
  width: 100%;
  margin-bottom: 1rem;
}

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

.footer-newsletter-input::placeholder {
  color: #bdc3c7;
}

.footer-newsletter-btn {
  background: var(--primary-color);
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  color: white;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.footer-newsletter-btn:hover {
  background: var(--accent-color);
  transform: translateY(-2px);
}

/* Footer Animations */
.footer-links a {
  animation: slideInLeft 0.6s ease forwards;
  opacity: 0;
  transform: translateX(-20px);
}

.footer-links li:nth-child(1) a { animation-delay: 0.1s; }
.footer-links li:nth-child(2) a { animation-delay: 0.2s; }
.footer-links li:nth-child(3) a { animation-delay: 0.3s; }
.footer-links li:nth-child(4) a { animation-delay: 0.4s; }
.footer-links li:nth-child(5) a { animation-delay: 0.5s; }

@keyframes slideInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Footer Responsive Design */
@media (max-width: 991.98px) {
  .footer-content {
    padding: 2rem 0 1.5rem;
  }
  
  .footer-brand {
    text-align: center;
    margin-bottom: 2rem;
  }
  
  .footer-social {
    justify-content: center;
  }
  
  .footer-links {
    margin-bottom: 2rem;
  }
  
  .footer-links h6 {
    text-align: center;
  }
  
  .footer-links h6::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .footer-links ul {
    text-align: center;
  }
  
  .contact-item {
    justify-content: center;
  }
  
  .footer-legal {
    justify-content: center;
    margin-top: 1rem;
  }
}

@media (max-width: 767.98px) {
  .footer {
    animation: footerFadeIn 0.7s ease;
  }
  .footer-content {
    padding: 1.2rem 0 0.7rem;
  }
  .footer-brand,
  .footer-links,
  .footer-contact {
    margin-bottom: 1rem;
  }
  .footer-bottom {
    margin-top: 1rem;
    padding-top: 1rem;
  }
  .footer-logo {
    max-width: 90px;
  }
  .footer-social {
    gap: 0.7rem;
  }
  .footer-brand h5 {
    font-size: 1.1rem;
  }
  .footer-brand p {
    font-size: 0.9rem;
  }
  .footer-links h6 {
    font-size: 1rem;
  }
  .footer-links a {
    font-size: 0.9rem;
  }
  .contact-item {
    font-size: 0.9rem;
  }
  .footer-bottom p {
    font-size: 0.85rem;
  }
  .footer-legal {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
  .footer-legal li {
    margin: 0;
  }
  .social-link {
    width: 35px;
    height: 35px;
  }
  .social-link svg {
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 575.98px) {
  .footer {
    padding: 0.7rem 0 0.5rem;
  }
  .footer-content {
    padding: 0.7rem 0 0.5rem;
  }
  .footer-brand,
  .footer-links,
  .footer-contact {
    margin-bottom: 0.7rem;
  }
  .footer-bottom {
    margin-top: 0.7rem;
    padding-top: 0.7rem;
  }
  .footer-logo {
    max-width: 70px;
  }
  .footer-social {
    gap: 0.5rem;
  }
  .footer-bottom .row {
    flex-direction: column;
    gap: 1rem;
  }
  .footer-bottom .col-md-6 {
    width: 100%;
  }
  .footer-bottom .text-md-end {
    text-align: center !important;
  }
}

/* Footer Back to Top */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

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

.back-to-top:hover {
  background: var(--accent-color);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 123, 255, 0.4);
  color: white;
}

/* Footer Decorative Elements */
.footer::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

/* Fade-in animation for footer */
@keyframes footerFadeIn {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
} 