/* Footer - Light Theme */
.footer {
  background: radial-gradient(1200px 500px at 10% -10%, rgba(139, 92, 246, 0.10), transparent 60%),
              radial-gradient(1200px 500px at 90% 110%, rgba(108, 0, 176, 0.10), transparent 60%),
              #f8f9fa;
  color: #1a1a1a;
  padding: 48px 24px;
  padding-left: 50px;
  border-top: 1px solid rgba(138, 43, 226, 0.12);
  position: relative;
  overflow: hidden;
}

/* subtle sweep animation */
.footer::before {
  content: '';
  position: absolute;
  top: 0; left: -60%;
  width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent 0%, rgba(255,255,255,.5) 50%, transparent 100%);
  transform: skewX(-18deg);
  animation: footerShine 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes footerShine {
  0% { left: -60%; }
  100% { left: 160%; }
}

/* animated gradient blob that gently floats */
.footer::after {
  content: '';
  position: absolute;
  width: 360px; height: 360px;
  right: -120px; bottom: -120px;
  filter: blur(50px);
  animation: blobFloat 12s ease-in-out infinite;
  pointer-events: none;
}

@keyframes blobFloat {
  0%,100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(-30px,-20px) scale(1.06); }
}

.footer-links {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
}

.footer-links div {
  margin: 10px;
}

.footer-links h4 {
  font-size: 1rem;
  margin-bottom: 10px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: #1a1a1a;
}

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

.footer-links li {
  margin: 5px 0;
  color: #4a4a4a;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.footer-links li a,
.footer-links li p {
  color: #4a4a4a;
  text-decoration: none;
  transition: color 0.3s ease;
  font-family: 'Plus Jakarta Sans', sans-serif;
  position: relative;
  display: inline-block;
  padding-bottom: 4px;
  cursor: pointer;
}

.footer-links li a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #6C00B0, #8B5CF6);
  transition: width 0.3s ease;
}

.footer-links li a:hover {
  color: #6C00B0;
}

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

.footer-logo {
  text-align: center;
}

.footer-logo img {
  position: relative;
  top: 25px;
  right: 120px;
  width: 60px;
  margin-bottom: 10px;
  filter: drop-shadow(0 10px 24px rgba(108,0,176,.25));
  transition: transform .25s ease;
}

.footer-logo img:hover { transform: translateY(-3px) scale(1.03); }

.footer-logo h1 {
  position: relative;
  top: -45px;
  right: 10px;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.5;
  text-transform: uppercase;
  color: #1a1a1a;
}

.footer-logo h1 span {
  color: #4a4a4a;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding-top: 20px;
  position: relative;
  z-index: 1;
}

/* animated gradient border */
.footer-bottom::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, #ff6384, #36a2eb, #ffce56, #8B5CF6, #6C00B0);
  background-size: 300% 100%;
  animation: borderFlow 8s linear infinite;
  opacity: .8;
}

@keyframes borderFlow {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

.social-icons a {
  color: #1a1a1a;
  margin-right: 15px;
  font-size: 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(139,92,246,.18), rgba(108,0,176,.12));
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, color 0.3s ease;
}

.social-icons a::before {
  content: '';
  position: absolute;
  inset: 0;
  background: currentColor;
  opacity: 0.15;
  border-radius: 50%;
  transform: scale(0);
  transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.3, 1);
}

/* Brand colors and specific hover effects */
.social-icons a[href*="linkedin"] { color: #0077B5; }
.social-icons a[href*="instagram"] { 
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.social-icons a[href*="twitter"] { color: #1DA1F2; }
.social-icons a[href*="facebook"] { color: #4267B2; }

/* Hover effects */
.social-icons a:hover {
    transform: translateY(-4px);
}

.social-icons a:hover::before {
    transform: scale(1.5);
}

/* Individual hover animations */
.social-icons a[href*="linkedin"]:hover::before { background: #0077B5; }
.social-icons a[href*="instagram"]:hover::before { 
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}
.social-icons a[href*="twitter"]:hover::before { background: #1DA1F2; }
.social-icons a[href*="facebook"]:hover::before { background: #4267B2; }

/* Optional: Add pulsing animation on hover */
@keyframes socialPulse {
    0% { transform: scale(1); opacity: 0.2; }
    50% { transform: scale(1.5); opacity: 0.15; }
    100% { transform: scale(1); opacity: 0.2; }
}

.social-icons a:hover::before {
    animation: socialPulse 2s ease infinite;
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .social-icons a,
    .social-icons a::before {
        transition: none;
        animation: none;
    }
}

.footer-policies a {
  color: #4a4a4a;
  margin-right: 15px;
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-policies a:hover {
  color: #6C00B0;
}

.footer-copy {
  font-size: 0.95rem;
  color: #555;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Responsive Design */

/* Large tablets and small laptops (1024px and below) */
@media (max-width: 1024px) {
  .footer {
      padding-left: 30px;
  }
  
  .footer-logo img {
      right: 80px;
  }
  
  .footer-logo h1 {
      font-size: 2.2rem;
      right: 5px;
  }
}

/* Medium tablets (768px and below) */
@media (max-width: 768px) {
  .footer {
      padding: 30px 20px;
      background: #f8f9fa;
  }
  
  .footer-links {
      justify-content: center;
      gap: 20px;
  }
  
  .footer-links div {
      margin: 15px 10px;
      min-width: 150px;
      text-align: center;
  }
  
  .footer-logo img {
      position: static;
      right: 0;
      top: 0;
      margin-bottom: 15px;
  }
  
  .footer-logo h1 {
      position: static;
      top: 0;
      right: 0;
      font-size: 2rem;
      margin-top: 0;
  }
  
  .footer-bottom {
      flex-direction: column;
      gap: 15px;
      text-align: center;
  }
  
  .social-icons {
      order: 1;
  }
  
  .footer-policies {
      order: 2;
  }
  
  .footer-copy {
      order: 3;
      margin-top: 10px;
      position: static;
      right: 0;
  }
}

/* Small tablets and large phones (600px and below) */
@media (max-width: 600px) {
  .footer-links {
      flex-direction: column;
      align-items: center;
  }
  
  .footer-links div {
      margin: 10px 0;
      width: 100%;
      max-width: 250px;
  }
  
  .footer-logo h1 {
      font-size: 1.8rem;
  }
  
  .social-icons a {
      margin-right: 20px;
      font-size: 1.4rem;
  }
  
  .footer-policies a {
      display: block;
      margin: 5px 0;
      margin-right: 0;
  }
}

/* Mobile phones (480px and below) */
@media (max-width: 480px) {
  .footer {
      padding: 25px 15px;
  }
  
  .footer-links h4 {
      font-size: 1.1rem;
      margin-bottom: 15px;
  }
  
  .footer-links li {
      margin: 8px 0;
      font-size: 0.95rem;
  }
  
  .footer-logo img {
      width: 50px;
      margin-bottom: 10px;
  }
  
  .footer-logo h1 {
      font-size: 1.6rem;
  }
  
  .social-icons a {
      margin-right: 15px;
      font-size: 1.3rem;
  }
  
  .footer-policies a {
      font-size: 0.85rem;
  }
  
  .footer-copy {
      font-size: 0.85rem;
  }
}

/* Extra small devices (360px and below) */
@media (max-width: 360px) {
  .footer {
      padding: 20px 10px;
  }
  
  .footer-logo h1 {
      font-size: 1.4rem;
  }
  
  .footer-links h4 {
      font-size: 1rem;
  }
  
  .footer-links li {
      font-size: 0.9rem;
  }
  
  .social-icons a {
      margin-right: 12px;
      font-size: 1.2rem;
  }
  
  .footer-policies a {
      font-size: 0.8rem;
  }
  
  .footer-copy {
      font-size: 0.8rem;
  }
}