/* Footer Styles */

/* ===== Footer Variables ===== */
:root {
  --footer-bg-dark: #2c3e50;
  --footer-bg-darker: #1a252f;
  --footer-text: #ecf0f1;
  --footer-text-muted: #bdc3c7;
  --footer-link-color: #ecf0f1;
  --footer-link-hover: #3498db;
  --footer-border: #34495e;
  --social-hover: #3498db;
}

/* ===== Main Footer ===== */
.footer-main {
  background-color: var(--footer-bg-dark);
  color: var(--footer-text);
  margin-top: auto;
}

.footer-content {
  border-bottom: 1px solid var(--footer-border);
}

/* ===== Footer Sections ===== */
.footer-section {
  height: 100%;
}

.footer-title {
  color: var(--footer-text);
  font-weight: 600;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--primary-color);
}

.footer-description {
  color: var(--footer-text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* ===== Footer Links ===== */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--footer-link-color);
  text-decoration: none;
  transition: var(--transition-fast);
  position: relative;
  display: inline-block;
}

.footer-links a::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--footer-link-hover);
  transition: var(--transition-medium);
}

.footer-links a:hover {
  color: var(--footer-link-hover);
  transform: translateX(5px);
}

.footer-links a:hover::before {
  width: 100%;
}

/* ===== Social Links ===== */
.social-links {
  display: flex;
  gap: 0.5rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--footer-text);
  border-radius: 50%;
  text-decoration: none;
  transition: var(--transition-medium);
  font-size: 1.1rem;
}

.social-link:hover {
  background-color: var(--social-hover);
  color: white;
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

/* ===== Social Buttons ===== */
.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50% !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  background-color: rgba(255, 255, 255, 0.1) !important;
  color: var(--footer-text-muted) !important;
  font-size: 1rem;
  transition: var(--transition-medium);
  cursor: not-allowed;
}

.social-btn:disabled {
  opacity: 0.6;
  background-color: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: var(--footer-text-muted) !important;
}

.social-btn:disabled:hover {
  background-color: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: var(--footer-text-muted) !important;
  transform: none;
  box-shadow: none;
}

/* ===== Contact Information ===== */
.contact-info .contact-item {
  display: flex;
  align-items: center;
  color: var(--footer-text-muted);
  line-height: 1.6;
}

.contact-info .contact-item i {
  color: var(--primary-color);
  width: 20px;
  text-align: center;
  margin-right: 0.75rem;
}

.contact-info a {
  color: var(--footer-link-color);
  text-decoration: none;
  transition: var(--transition-fast);
}

.contact-info a:hover {
  color: var(--footer-link-hover);
}

/* ===== Contact Section (New) ===== */
.contact-section {
  color: var(--footer-text-muted);
}

.contact-actions .btn {
  transition: var(--transition-medium);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: var(--border-radius-md);
}

.contact-actions .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.contact-features {
  padding: 1rem;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius-md);
  border-left: 3px solid var(--primary-color);
}

.feature-item {
  display: flex;
  align-items: center;
  color: var(--footer-text-muted);
  font-size: 0.85rem;
}

.feature-item i {
  font-size: 0.9rem;
  width: 16px;
}

/* ===== Newsletter Signup ===== */
.newsletter-signup {
  margin-top: 1.5rem;
}

.newsletter-signup h6 {
  color: var(--footer-text);
  font-weight: 600;
  margin-bottom: 1rem;
}

.newsletter-form .input-group {
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-light);
}

.newsletter-form .form-control {
  border: none;
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--text-primary);
  font-size: 0.9rem;
}

.newsletter-form .form-control:focus {
  background-color: white;
  box-shadow: none;
}

.newsletter-form .form-control::placeholder {
  color: var(--text-muted);
}

.newsletter-form .btn {
  border: none;
  background-color: var(--primary-color);
  color: white;
  padding: 0.6rem 1rem;
  transition: var(--transition-fast);
}

.newsletter-form .btn:hover {
  background-color: #0056b3;
  transform: scale(1.05);
}

/* ===== Bottom Footer ===== */
.footer-bottom {
  background-color: var(--footer-bg-darker);
  color: var(--footer-text-muted);
  font-size: 0.9rem;
}

.copyright {
  font-size: 0.9rem;
}

.footer-bottom-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 1.5rem;
  justify-content: flex-end;
}

.footer-bottom-links li a {
  color: var(--footer-text-muted);
  text-decoration: none;
  transition: var(--transition-fast);
  font-size: 0.85rem;
}

.footer-bottom-links li a:hover {
  color: var(--footer-link-hover);
}

/* ===== Responsive Footer ===== */
@media (max-width: 768px) {
  .footer-content {
    text-align: center;
  }
  
  .footer-section {
    margin-bottom: 2.5rem;
  }
  
  .footer-section:last-child {
    margin-bottom: 0;
  }
  
  .social-links {
    justify-content: center;
    margin-top: 1.5rem;
  }
  
  .newsletter-signup {
    margin-top: 2rem;
  }
  
  .footer-bottom-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
  }
  
  .footer-bottom .row > div {
    text-align: center !important;
  }
  
  .contact-info .contact-item {
    justify-content: center;
    margin-bottom: 1rem;
  }
}

@media (max-width: 576px) {
  .footer-content {
    padding: 3rem 0 !important;
  }
  
  .footer-bottom {
    padding: 2rem 0 !important;
  }
  
  .footer-title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
  }
  
  .footer-description {
    font-size: 0.9rem;
  }
  
  .social-links {
    gap: 0.75rem;
  }
  
  .social-link {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
  
  .newsletter-form .input-group {
    flex-direction: column;
  }
  
  .newsletter-form .form-control {
    border-radius: var(--border-radius-md) var(--border-radius-md) 0 0;
    margin-bottom: -1px;
  }
  
  .newsletter-form .btn {
    border-radius: 0 0 var(--border-radius-md) var(--border-radius-md);
  }
  
  .footer-bottom-links {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* ===== Footer Animations ===== */
.footer-section {
  animation: fadeInUp 0.6s ease-out;
}

.footer-section:nth-child(1) { animation-delay: 0.1s; }
.footer-section:nth-child(2) { animation-delay: 0.2s; }
.footer-section:nth-child(3) { animation-delay: 0.3s; }
.footer-section:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Footer Hover Effects ===== */
.footer-section:hover .footer-title::after {
  width: 60px;
  transition: var(--transition-medium);
}

/* ===== Back to Top Button ===== */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-medium);
  z-index: 1020;
  box-shadow: var(--shadow-medium);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: #0056b3;
  transform: translateY(-3px);
  box-shadow: var(--shadow-heavy);
}

@media (max-width: 576px) {
  .back-to-top {
    bottom: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }
}

/* ===== Footer Utilities ===== */
.footer-divider {
  border-color: var(--footer-border);
  margin: 2rem 0;
}

.footer-highlight {
  color: var(--primary-color) !important;
  font-weight: 600;
}

.footer-muted {
  color: var(--footer-text-muted) !important;
}