/* ========================================
   MODERN PREMIUM FOOTER STYLING
   ======================================== */

:root {
  --footer-bg: #0f172a;
  --footer-bg-light: #1e293b;
  --footer-text: #cbd5e1;
  --footer-text-light: #94a3b8;
  --accent-blue: #2563eb;
  --accent-hover: #3b82f6;
  --border-footer: #334155;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.main-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  border-top: 1px solid var(--border-footer);
  padding-top: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  position: relative;
  overflow: hidden;
}

/* Decorative background elements */
.main-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.5), transparent);
  pointer-events: none;
}

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

.footer-main-content {
  padding: 80px 0 40px;
  background: linear-gradient(180deg, var(--footer-bg) 0%, rgba(15, 23, 42, 0.8) 100%);
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 2fr;
  gap: 4rem;
}

/* ========================================
   FOOTER BRAND COLUMN
   ======================================== */

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-brand-col {
  gap: 2rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-brand-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.footer-brand-link:hover {
  transform: translateX(-4px);
}

.footer-logo-container {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(59, 130, 246, 0.1));
  border: 1px solid rgba(37, 99, 235, 0.3);
  flex-shrink: 0;
}

.footer-logo-img {
  height: 35px;
  width: auto;
  filter: brightness(1.2);
}

.footer-brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.footer-brand-text h3 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.brand-tagline {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-blue);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.brand-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--footer-text-light);
  margin: 0;
}

/* ========================================
   SOCIAL MEDIA LINKS
   ======================================== */

.social-media-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.social-link {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-blue);
  text-decoration: none;
  transition: var(--transition-smooth);
  font-size: 1.1rem;
}

.social-link:hover {
  background: var(--accent-blue);
  color: #ffffff;
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(37, 99, 235, 0.3);
  border-color: var(--accent-blue);
}

/* ========================================
   FOOTER COLUMNS
   ======================================== */

.footer-col-title {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 1.25rem 0;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-blue), transparent);
  border-radius: 1px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-links li a {
  text-decoration: none;
  color: var(--footer-text-light);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
}

.footer-links li a::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-blue);
  transition: var(--transition-smooth);
}

.footer-links li a:hover {
  color: var(--accent-blue);
  transform: translateX(4px);
}

.footer-links li a:hover::before {
  width: 100%;
}

/* ========================================
   CONTACT INFORMATION
   ======================================== */

.footer-contact-col {
  gap: 2rem;
}

.contact-info-group {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: rgba(37, 99, 235, 0.05);
  border-radius: 10px;
  border: 1px solid rgba(37, 99, 235, 0.1);
  transition: var(--transition-smooth);
}

.contact-item:hover {
  background: rgba(37, 99, 235, 0.1);
  border-color: rgba(37, 99, 235, 0.3);
  transform: translateX(4px);
}

.contact-item i {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-blue);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-item div {
  flex: 1;
}

.contact-label {
  margin: 0 0 0.25rem 0;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--footer-text-light);
}

.contact-item p,
.contact-item a {
  margin: 0;
  font-size: 0.9rem;
  color: var(--footer-text);
  text-decoration: none;
  transition: var(--transition-smooth);
}

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

/* ========================================
   NEWSLETTER SIGNUP
   ======================================== */

.newsletter-signup {
  padding: 1.5rem;
  background: rgba(37, 99, 235, 0.1);
  border-radius: 12px;
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.newsletter-title {
  margin: 0 0 1rem 0;
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.newsletter-input {
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(37, 99, 235, 0.3);
  border-radius: 8px;
  color: var(--footer-text);
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.newsletter-input::placeholder {
  color: var(--footer-text-light);
}

.newsletter-input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-blue);
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.2);
}

.newsletter-btn {
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-hover));
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  font-size: 0.9rem;
}

.newsletter-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(37, 99, 235, 0.3);
}

/* ========================================
   FOOTER BOTTOM BAR
   ======================================== */

.footer-bottom-bar {
  background: linear-gradient(90deg, var(--footer-bg-light) 0%, var(--footer-bg) 50%, var(--footer-bg-light) 100%);
  border-top: 1px solid var(--border-footer);
  padding: 2rem 0;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.footer-bottom-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.footer-copyright {
  flex: 1;
}

.copyright-text {
  margin: 0;
  font-size: 0.85rem;
  color: var(--footer-text-light);
  line-height: 1.5;
}

.company-info {
  display: block;
  font-size: 0.8rem;
  margin-top: 0.5rem;
}

/* ========================================
   FOOTER BOTTOM LINKS
   ======================================== */

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-bottom-link {
  text-decoration: none;
  color: var(--footer-text-light);
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-smooth);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  background: rgba(37, 99, 235, 0.05);
  border: 1px solid rgba(37, 99, 235, 0.1);
}

.footer-bottom-link:hover {
  background: rgba(37, 99, 235, 0.15);
  color: var(--accent-blue);
  transform: translateY(-2px);
}

.footer-bottom-link i {
  font-size: 1rem;
}

/* ========================================
   VERSION BADGE
   ======================================== */

.footer-version {
  flex-shrink: 0;
}

.version-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(59, 130, 246, 0.1));
  color: var(--accent-blue);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid rgba(37, 99, 235, 0.3);
}

/* ========================================
   SCROLL TO TOP BUTTON
   ======================================== */

#scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-hover));
  border: none;
  border-radius: 50%;
  color: #ffffff;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: var(--transition-smooth);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
  z-index: 999;
}

#scroll-to-top.show {
  display: flex;
  animation: slideUp 0.3s ease-out;
}

#scroll-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.4);
}

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

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1200px) {
  .footer-container {
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
  }
}

@media (max-width: 1024px) {
  .footer-main-content {
    padding: 60px 0 30px;
  }

  .footer-container {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 2.5rem;
  }

  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .footer-bottom-links {
    justify-content: center;
  }

  .footer-copyright {
    order: 2;
  }

  .footer-version {
    order: 3;
  }

  #scroll-to-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 768px) {
  .footer-main-content {
    padding: 40px 0 20px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 1.5rem;
  }

  .footer-col-title::after {
    width: 40px;
  }

  .footer-bottom-bar {
    padding: 1.5rem 0;
  }

  .footer-bottom-content {
    padding: 0 1.5rem;
  }

  .footer-bottom-links {
    gap: 0.75rem;
  }

  .footer-bottom-link {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }

  .version-badge {
    padding: 0.4rem 0.8rem;
    font-size: 0.7rem;
  }

  #scroll-to-top {
    bottom: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .footer-main-content {
    padding: 30px 0 15px;
  }

  .footer-container {
    padding: 0 1rem;
    gap: 1.5rem;
  }

  .footer-col {
    gap: 1rem;
  }

  .footer-brand-col {
    gap: 1.5rem;
  }

  .footer-col-title {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
  }

  .footer-links {
    gap: 0.75rem;
  }

  .footer-links li a {
    font-size: 0.85rem;
  }

  .contact-item {
    padding: 0.75rem;
  }

  .contact-item i {
    width: 28px;
    height: 28px;
    font-size: 1rem;
  }

  .newsletter-signup {
    padding: 1rem;
  }

  .newsletter-title {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
  }

  .footer-bottom-content {
    padding: 0 1rem;
    flex-direction: column;
    gap: 1rem;
  }

  .footer-bottom-links {
    flex-direction: column;
    width: 100%;
  }

  .footer-bottom-link {
    width: 100%;
    justify-content: center;
  }

  .copyright-text {
    font-size: 0.8rem;
  }

  .social-media-links {
    gap: 0.5rem;
  }

  .social-link {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus states for keyboard navigation */
.footer-links li a:focus,
.footer-bottom-link:focus,
.newsletter-input:focus,
.newsletter-btn:focus,
.social-link:focus {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
}