/* ==========================================================================
   ENHANCED FOOTER STYLING
   Modern, comprehensive footer with gradient background and rich content
   ========================================================================== */

/* Main Footer Styles */
footer {
  position: relative;
  padding: 80px 0 0 0;
  background: linear-gradient(135deg, var(--gradient-green) 0%, var(--gradient-blue) 100%);
  color: var(--white);
  overflow: hidden;
}

/* Decorative Background Elements */
footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 60%);
  animation: footerShimmer 25s ease-in-out infinite;
  z-index: 1;
}

footer::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  z-index: 2;
}

/* Container positioning */
footer .container {
  position: relative;
  z-index: 3;
}

/* Main Footer Content */
.footer-main {
  margin-bottom: 50px;
}

/* Footer Sections */
.footer-section {
  padding: 0 20px;
  margin-bottom: 40px;
}

/* Contact Section - Transparent Glass Effect */
.footer-section.contact-section {
  border-radius: 20px;
  backdrop-filter: blur(15px);
  transition: all 0.3s ease;
}

.footer-section h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
  color:  var(--text-dark) !important;
  position: relative;
}

.footer-divider {
  width: 50px;
  height: 3px;
  background: rgba(255, 255, 255, 0.8);
  margin-bottom: 25px;
  border-radius: 2px;
  position: relative;
}

.footer-divider::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 25px;
  height: 100%;
  background: rgba(255, 255, 255, 1);
  border-radius: 2px;
  animation: dividerGlow 3s ease-in-out infinite;
}

/* About Section */
.about-section p {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 25px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.footer-stats {
  display: flex;
  gap: 20px;
}

.stat-item {
  text-align: center;
  padding: 15px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  flex: 1;
  cursor: pointer;
}

.stat-item:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px);
}

.stat-number {
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.stat-label {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Skills Section */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-bottom: 25px;
}

.tech-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
}

.tech-item:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(5px);
}

.tech-item i {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
}

.tech-item span {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

.tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-badge {
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.tech-badge:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}

/* Social Section */
.social-section h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--white);
}

.social-icon {
  padding: 0;
  margin: 0;
  list-style: none;
  display: flex;
  gap: 20px;
  justify-content: center;
}

.social-icon li a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  text-decoration: none;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  backdrop-filter: blur(15px);
  position: relative;
  overflow: hidden;
}

.social-icon li a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.social-icon li a:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.social-icon li a:hover::before {
  left: 100%;
}

.social-icon li a i {
  font-size: 22px;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.social-icon li a span {
  display: none;
}

/* Platform-specific hover colors */
.social-icon li a[href*="linkedin"]:hover {
  background: rgba(0, 119, 181, 0.8);
  border-color: #0077b5;
}

.social-icon li a[href*="mailto"]:hover {
  background: rgba(77, 196, 125, 0.8);
  border-color: var(--gradient-green);
}

.social-icon li a:hover i {
  transform: scale(1.2) rotate(5deg);
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1%;
}

.footer-bottom::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
}

/* Ensure the bottom column spans and centers without extra padding */
.footer-bottom .col-md-8,
.footer-bottom .col-sm-12 {
  float: none;
  width: 100%;
}

/* Override legacy footer styles to remove padding and borders here */
footer .footer-bottom .copyright-text {
  padding: 0 !important;
  border-top: 0 !important;
  text-align: center;
}

.copyright-text p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.heartbeat {
  color: #ff6b6b;
  animation: heartBeat 1.5s ease-in-out infinite;
}

/* Decorative Elements */
.footer-decoration {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 1;
}

.decoration-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  animation: floatCircle 20s linear infinite;
}

.circle-1 {
  width: 100px;
  height: 100px;
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.circle-2 {
  width: 150px;
  height: 150px;
  top: 60%;
  right: 15%;
  animation-delay: -7s;
}

.circle-3 {
  width: 80px;
  height: 80px;
  bottom: 30%;
  left: 70%;
  animation-delay: -14s;
}

/* Animations */
@keyframes footerShimmer {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

@keyframes dividerGlow {
  0%, 100% {
    transform: translateX(0);
    opacity: 1;
  }
  50% {
    transform: translateX(25px);
    opacity: 0.7;
  }
}

@keyframes heartBeat {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

@keyframes floatCircle {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
  100% {
    transform: translateY(0px) rotate(360deg);
  }
}

/* Responsive Design */
@media (max-width: 992px) {
  .footer-main {
    margin-bottom: 40px;
  }
  
  .footer-section {
    margin-bottom: 35px;
  }
  
  .tech-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-stats {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  footer {
    padding: 60px 0 0 0;
  }
  
  .footer-section {
    padding: 0 15px;
    margin-bottom: 30px;
  }
  
  .footer-section h3 {
    font-size: 20px;
  }
  
  .social-icon {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .footer-bottom {
    text-align: center;
  }
  
  .copyright-text p {
    font-size: 12px;
  }
}

@media (max-width: 576px) {
  .footer-stats {
    flex-direction: column;
    gap: 15px;
  }
  
  .tech-badges {
    justify-content: center;
  }
  
  .social-icon li a span {
    display: none;
  }
  
  .social-icon {
    flex-direction: row;
    justify-content: center;
  }
}
