/**
 * Professional Footer Styles
 * Modern, elegant footer design
 */

/* ============================================
   PROFESSIONAL FOOTER
   ============================================ */

.footer-professional {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #cbd5e1;
  padding: 60px 0 0;
  margin-top: 80px;
  position: relative;
  overflow: hidden;
  transition: background 0.4s ease, color 0.4s ease;
}

/* Light Mode Footer */
body:not(.dark-mode) .footer-professional {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  color: #1e293b;
}

.footer-professional::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #71c55d, #4CAF50, #45a049);
  background-size: 200% auto;
  animation: shimmer 3s linear infinite;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Light Mode Border */
body:not(.dark-mode) .footer-content {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

@media (max-width: 992px) {
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* Brand Section */
.footer-brand h3 {
  font-family: var(--heading-font);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: #f1f5f9;
}

/* Light Mode Brand */
body:not(.dark-mode) .footer-brand h3 {
  color: #0f172a;
}

.footer-brand h3 .accent {
  background: linear-gradient(135deg, #71c55d, #4CAF50);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-brand .tagline {
  font-size: 0.95rem;
  color: #71c55d;
  font-weight: 600;
  margin-bottom: 10px;
  font-family: var(--accent-font);
}

.footer-brand .bio {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #94a3b8;
  max-width: 400px;
}

/* Light Mode Bio */
body:not(.dark-mode) .footer-brand .bio {
  color: #475569;
}

/* Footer Links */
.footer-links h4,
.footer-contact h4,
.footer-social h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #f1f5f9;
  position: relative;
  padding-bottom: 10px;
}

/* Light Mode Headers */
body:not(.dark-mode) .footer-links h4,
body:not(.dark-mode) .footer-contact h4,
body:not(.dark-mode) .footer-social h4 {
  color: #0f172a;
}

.footer-links h4::after,
.footer-contact h4::after,
.footer-social h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, #71c55d, #4CAF50);
  border-radius: 2px;
}

@media (max-width: 576px) {
  .footer-links h4::after,
  .footer-contact h4::after,
  .footer-social h4::after {
    left: 50%;
    transform: translateX(-50%);
  }
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links ul li {
  margin-bottom: 12px;
}

.footer-links ul li a {
  color: #94a3b8;
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
}

/* Light Mode Links */
body:not(.dark-mode) .footer-links ul li a {
  color: #475569;
}

.footer-links ul li a i {
  font-size: 0.75rem;
  transition: transform 0.3s ease;
}

.footer-links ul li a:hover {
  color: #71c55d;
  padding-left: 8px;
}

.footer-links ul li a:hover i {
  transform: translateX(4px);
}

/* Contact Info */
.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
  color: #94a3b8;
  font-size: 0.95rem;
}

/* Light Mode Contact */
body:not(.dark-mode) .contact-item {
  color: #475569;
}

.contact-item i {
  font-size: 1.2rem;
  color: #71c55d;
  min-width: 20px;
}

.contact-item a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.3s ease;
}

/* Light Mode Contact Links */
body:not(.dark-mode) .contact-item a {
  color: #475569;
}

.contact-item a:hover {
  color: #71c55d;
}

/* Social Icons */
.social-icons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 576px) {
  .social-icons {
    justify-content: center;
  }
}

.social-icon {
  width: 45px;
  height: 45px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
}

/* Light Mode Social Icons */
body:not(.dark-mode) .social-icon {
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #1e293b;
}

.social-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.social-icon:hover::before {
  opacity: 1;
}

.social-icon:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(113, 197, 93, 0.3);
}

.social-icon.github:hover {
  background: #333;
  border-color: #333;
  color: #fff;
}

.social-icon.linkedin:hover {
  background: #0077b5;
  border-color: #0077b5;
  color: #fff;
}

.social-icon.instagram:hover {
  background: linear-gradient(45deg, #405de6, #833ab4, #e1306c);
  border-color: #e1306c;
  color: #fff;
}

.social-icon.youtube:hover {
  background: #ff0000;
  border-color: #ff0000;
  color: #fff;
}

/* Footer Bottom */
.footer-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px 0;
  margin-top: 40px;
}

@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
}

.footer-bottom .copyright {
  width: 100%;
  text-align: center;
}

.footer-bottom .copyright p {
  margin: 0;
  font-size: 0.95rem;
  color: #94a3b8;
}

/* Light Mode Copyright */
body:not(.dark-mode) .footer-bottom .copyright p {
  color: #475569;
}

.footer-bottom .copyright strong {
  color: #71c55d;
  font-weight: 700;
}

/* Scroll to Top Integration */
.footer-professional + .scroll-top {
  bottom: 30px;
}

/* Dark Mode Adjustments - Explicit */
body.dark-mode .footer-professional {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #cbd5e1;
}

body.dark-mode .footer-brand h3,
body.dark-mode .footer-links h4,
body.dark-mode .footer-contact h4,
body.dark-mode .footer-social h4 {
  color: #f1f5f9;
}

body.dark-mode .footer-brand .bio {
  color: #94a3b8;
}

body.dark-mode .footer-links ul li a {
  color: #94a3b8;
}

body.dark-mode .contact-item,
body.dark-mode .contact-item a {
  color: #94a3b8;
}

body.dark-mode .footer-bottom .copyright p {
  color: #94a3b8;
}

body.dark-mode .social-icon {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
}

/* Animation on Scroll */
.footer-content > div {
  opacity: 0;
  transform: translateY(20px);
  animation: footerFadeIn 0.6s ease-out forwards;
}

.footer-content > div:nth-child(1) { animation-delay: 0.1s; }
.footer-content > div:nth-child(2) { animation-delay: 0.2s; }
.footer-content > div:nth-child(3) { animation-delay: 0.3s; }
.footer-content > div:nth-child(4) { animation-delay: 0.4s; }

@keyframes footerFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Typography */
@media (max-width: 576px) {
  .footer-brand h3 {
    font-size: 1.5rem;
  }
  
  .footer-brand .bio {
    max-width: 100%;
  }
  
  .footer-links ul li a,
  .contact-item {
    justify-content: center;
  }
}
