/* ==========================================================================
   PREMIUM FOOTER & BACK TO TOP SECTION STYLING (GLASSMORPHISM)
   ========================================================================== */

.portfolio_footer {
  position: relative;
  background-color: #08080f; /* Dark background matching portfolio style */
  color: #eaeaf0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 80px 8% 40px 8%;
  overflow: hidden;
  z-index: 10;
}

.footer_grid_container {
  max-width: 1250px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.footer_grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 60px;
}

/* ==========================================================================
   COLUMN 1: BRAND DETAILS
   ========================================================================== */
.footer_col {
  display: flex;
  flex-direction: column;
}

.footer_logo_wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer_logo_svg {
  width: 32px;
  height: 32px;
  transform-origin: center;
}

.footer_logo_svg path {
  stroke: #3b82f6; /* Blue accent stroke */
}

.footer_brand_title {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 2px;
  background: linear-gradient(135deg, #ffffff 0%, #a5b4fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer_brand_sub {
  font-size: 13px;
  font-weight: 700;
  color: #3b82f6;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
}

.footer_brand_desc {
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(234, 234, 240, 0.6);
  max-width: 350px;
}

/* ==========================================================================
   COLUMN 2: QUICK LINKS
   ========================================================================== */
.footer_col_title {
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #ffffff;
  margin-bottom: 25px;
  position: relative;
}

.footer_links_list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer_links_list li a {
  text-decoration: none;
  font-size: 14.5px;
  color: rgba(234, 234, 240, 0.65);
  font-weight: 500;
  display: inline-block;
  position: relative;
  transition: color 0.3s ease, transform 0.3s ease;
}

.footer_links_list li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1.5px;
  background-color: #3b82f6;
  transition: width 0.3s ease;
}

.footer_links_list li a:hover {
  color: #ffffff;
  transform: translateX(4px);
}

.footer_links_list li a:hover::after {
  width: 100%;
}

/* ==========================================================================
   COLUMN 3: SOCIAL LINKS
   ========================================================================== */
.footer_socials {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer_social_btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-decoration: none;
  font-size: 16px;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.footer_social_btn:hover {
  transform: translateY(-4px) scale(1.08) rotate(5deg);
  border-color: #3b82f6;
  color: #0e0e1a;
  background: #3b82f6;
  box-shadow: 0 6px 15px rgba(59, 130, 246, 0.3);
}

/* ==========================================================================
   BOTTOM BAR
   ========================================================================== */
.footer_bottom_bar {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
  width: 100%;
}

.footer_bottom_content {
  max-width: 1250px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.copyright_text {
  font-size: 13.5px;
  color: rgba(234, 234, 240, 0.55);
}

.built_text {
  font-size: 13.5px;
  color: rgba(234, 234, 240, 0.45);
}

/* ==========================================================================
   BACK TO TOP BUTTON (CIRCULAR GLASSMORPHISM)
   ========================================================================== */
.back_to_top_btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 8, 15, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  z-index: 100;
  outline: none;
}

.back_to_top_btn.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back_to_top_btn:hover {
  background: #3b82f6;
  border-color: #3b82f6;
  color: #0e0e1a;
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.35);
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 991px) {
  .footer_grid {
    grid-template-columns: 1.2fr 1fr; /* 2 columns on Tablet */
    gap: 40px;
  }
  .socials_col {
    grid-column: span 2; /* Stretch social icons to span below on Tablet */
  }
  .footer_socials {
    justify-content: flex-start;
  }
}

@media (max-width: 767px) {
  .portfolio_footer {
    padding: 60px 6% 30px 6%;
    text-align: center;
  }
  .footer_grid {
    grid-template-columns: 1fr; /* Single column on Mobile */
    gap: 35px;
  }
  .socials_col {
    grid-column: span 1;
  }
  .footer_logo_wrap {
    justify-content: center;
  }
  .footer_brand_desc {
    margin: 0 auto;
  }
  .footer_links_list li a:hover {
    transform: none; /* Disable horizontal slide hover on mobile centering */
  }
  .footer_socials {
    justify-content: center;
  }
  .footer_bottom_content {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  .back_to_top_btn {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }
}
