/* Footer CSS Variables */
:root {
  --footer-bg: #1a1a2e;
  --footer-text: #e9ecef;
  --footer-link: #adb5bd;
  --footer-accent: #4361ee;
  --footer-border: rgba(255, 255, 255, 0.1);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}


/* Footer Styles */
.site-footer-advanced {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 60px 0 0;
  position: relative;
  overflow: hidden;
}

.site-footer-advanced::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 80%, rgba(67, 97, 238, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-bottom: 40px;
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 30px;
  }
}

/* Brand Section */
.footer-brand {
  grid-column: 1 / -1;
}

@media (min-width: 768px) {
  .footer-brand {
    grid-column: span 2;
  }
}

@media (min-width: 992px) {
  .footer-brand {
    grid-column: span 1;
  }
}

.footer-logo {
  margin-bottom: 20px;
}

.footer-logo-img {
  height: 45px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  filter: drop-shadow(0 0 2px white) drop-shadow(0 0 4px rgba(255, 255, 255, 0.3));
  opacity: 0.9;
  transition: var(--transition-smooth);
}

.footer-logo-img:hover {
  opacity: 1;
  transform: scale(1.05);
}

.footer-tagline {
  color: var(--footer-link);
  line-height: 1.7;
  margin-bottom: 25px;
  font-size: 15px;
  max-width: 400px;
}

.footer-social {
  display: flex;
  gap: 15px;
  margin-top: 25px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  color: var(--footer-text);
  text-decoration: none;
  transition: var(--transition-smooth);
  border: 1px solid var(--footer-border);
}

.social-link:hover {
  background: var(--footer-accent);
  transform: translateY(-3px) rotate(5deg);
  box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
  border-color: var(--footer-accent);
}

.social-icon {
  font-size: 18px;
}

/* Links Sections */
.footer-links {
  margin-bottom: 20px;
}

.footer-heading {
  color: white;
  font-size: 18px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  position: relative;
  font-weight: 600;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--footer-accent), #7209b7);
  border-radius: 3px;
}

.footer-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav li {
  margin-bottom: 12px;
}

.footer-nav a {
  color: var(--footer-link);
  text-decoration: none;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
}

.footer-nav a:hover {
  color: white;
  transform: translateX(5px);
}

.footer-nav a::before {
  content: '→';
  opacity: 0;
  transform: translateX(-10px);
  transition: var(--transition-smooth);
}

.footer-nav a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

/* Contact Section */
.footer-contact {
  grid-column: 1 / -1;
}

@media (min-width: 768px) {
  .footer-contact {
    grid-column: span 2;
  }
}

@media (min-width: 992px) {
  .footer-contact {
    grid-column: span 1;
  }
}

.contact-info {
  margin-bottom: 30px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 15px;
  color: var(--footer-link);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.contact-item:hover {
  color: white;
  transform: translateX(5px);
}

.contact-icon {
  font-size: 18px;
  color: var(--footer-accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-text {
  flex: 1;
  line-height: 1.5;
  font-size: 15px;
}

/* Newsletter */
.newsletter {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--footer-border);
  border-radius: 12px;
  padding: 25px;
  margin-top: 25px;
}

.newsletter h5 {
  color: white;
  font-size: 16px;
  margin-bottom: 8px;
  font-weight: 600;
}

.newsletter-desc {
  color: var(--footer-link);
  font-size: 14px;
  margin-bottom: 20px;
}

.newsletter-form {
  margin-top: 15px;
}

.input-group {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.newsletter-input {
  flex: 1;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--footer-border);
  border-radius: 8px;
  color: white;
  font-size: 14px;
  transition: var(--transition-smooth);
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--footer-accent);
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

.newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.newsletter-btn {
  padding: 12px 20px;
  background: linear-gradient(135deg, var(--footer-accent), #7209b7);
  border: none;
  border-radius: 8px;
  color: white;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 50px;
}

.newsletter-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
}

.btn-icon {
  font-size: 18px;
}

.newsletter-note {
  color: rgba(255, 255, 255, 0.4);
  font-size: 12px;
  margin-top: 10px;
  line-height: 1.5;
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid var(--footer-border);
  padding: 25px 0;
  background: rgba(0, 0, 0, 0.2);
}

.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
}

@media (min-width: 768px) {
  .footer-bottom-inner {
    flex-direction: row;
  }
}

.copyright {
  color: var(--footer-link);
  font-size: 14px;
  text-align: center;
}

.footer-legal {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-legal a {
  color: var(--footer-link);
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition-smooth);
}

.footer-legal a:hover {
  color: white;
  text-decoration: underline;
}

/* Responsive Adjustments */
@media (max-width: 767px) {
  .site-footer-advanced {
    padding: 40px 0 0;
  }
  
  .footer-grid {
    gap: 30px;
  }
  
  .newsletter {
    padding: 20px;
  }
  
  .footer-legal {
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .footer-social {
    gap: 10px;
  }
  
  .social-link {
    width: 38px;
    height: 38px;
  }
  
  .footer-bottom-inner {
    gap: 15px;
  }
}

/* Footer Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.site-footer-advanced {
  animation: fadeInUp 0.8s ease-out;
}

.footer-links,
.footer-contact {
  animation: fadeInUp 0.8s ease-out forwards;
  animation-delay: calc(var(--animation-order, 0) * 0.1s);
  opacity: 0;
}

/* Loading States */
.newsletter-form.loading .newsletter-btn {
  opacity: 0.7;
  cursor: not-allowed;
}

.newsletter-form.success .newsletter-input {
  border-color: var(--success);
}

.newsletter-form.error .newsletter-input {
  border-color: var(--danger);
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 100px;
  right: 30px;
  padding: 15px 20px;
  background: white;
  color: var(--dark);
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 300px;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.toast.success {
  border-left: 4px solid var(--success);
}

.toast.error {
  border-left: 4px solid var(--danger);
}

.toast-icon {
  font-size: 20px;
}
.newsletter-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
