/* ==========================================
   1. MAIN FOOTER WRAPPER
   ========================================== */
.main-footer {
  background-color: #0C80C0;
  /* Main brand blue */
  color: #ffffff;
  padding: 60px 5% 30px;
  margin-top: 50px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Grid layout for wide monitors */
.footer-container {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.8fr 1fr;
  /* Custom-proportioned columns */
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 40px;
}

/* Base Headings styling */
.footer-address h3,
.footer-nav h3,
.footer-contact h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #ffffff;
}

/* Address adjustments */
.footer-address p {
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.85;
  margin-bottom: 8px;
}

/* ==========================================
   2. BRAND & APK DOWNLOAD STYLES
   ========================================== */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.f-logo {
  width: 140px;
  height: auto;
  display: block;
}

/* Premium APK Download Button */
.apk-download-container {
  margin-top: 10px;
}

.apk-btn {
  display: inline-flex;
  align-items: center;
  background-color: #111827;
  /* Deep, sleek charcoal backplate */
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  width: max-content;
}

.apk-btn:hover {
  background-color: #1f2937;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.apk-icon {
  font-size: 1.8rem;
  color: #3DDC84;
  /* Official Android Green */
  margin-right: 12px;
}

.apk-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.apk-sub {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  opacity: 0.75;
}

.apk-main {
  font-size: 0.95rem;
  font-weight: 700;
}

/* ==========================================
   3. NAVIGATION LINKS & SOCIALS
   ========================================== */
.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav li {
  margin-bottom: 12px;
}

.footer-nav a {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.95rem;
  opacity: 0.85;
  transition: opacity 0.2s ease, padding-left 0.2s ease;
  display: inline-block;
}

.footer-nav a:hover {
  opacity: 1;
  padding-left: 4px;
  /* Tiny responsive push-right on hover */
}

/* Social Icon Blocks */
.f-socials {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.f-socials a {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.1);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: background-color 0.2s ease, transform 0.2s ease;
  text-decoration: none;
}

.f-socials a:hover {
  background-color: #ffffff;
  color: #0C80C0;
  transform: translateY(-3px);
}

.contact-detail {
  font-size: 0.95rem;
  opacity: 0.85;
  margin-bottom: 10px;
}

/* ==========================================
   4. BOTTOM BAR
   ========================================== */
.footer-bottom {
  text-align: center;
  padding-top: 30px;
  font-size: 0.85rem;
  opacity: 0.75;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dev-by {
  font-size: 0.8rem;
}

/* ==========================================
   5. WHATSAPP FLOATING BUTTON (Keep your specs)
   ========================================== */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  color: white;
  padding: 12px 20px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  transition: transform 0.3s ease, background-color 0.3s ease;
  animation: pulse-wa 2s infinite;
}

.whatsapp-float i {
  font-size: 24px;
}

.whatsapp-float:hover {
  background-color: #128c7e;
  transform: scale(1.05);
}

@keyframes pulse-wa {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* ==========================================
   6. RESPONSIVE BREAKPOINTS
   ========================================== */

/* Medium Devices (Tablets under 1024px) */
@media (max-width: 1024px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
    /* Switch to a stable 2x2 column layout */
    gap: 30px;
  }
}

/* Small Devices (Mobile Phones under 600px) */
@media (max-width: 600px) {
  .main-footer {
    padding: 50px 20px 110px;
    /* Increased bottom padding so sticky bottom menus do not block footer details */
  }

  .footer-container {
    grid-template-columns: 1fr;
    /* Single column stack */
    gap: 35px;
    text-align: center;
    /* Center-aligned for optimal scanning */
  }

  .footer-brand {
    align-items: center;
    /* Centers logo & download button */
  }

  .f-socials {
    justify-content: center;
    /* Centers social circles */
  }

  .footer-nav a:hover {
    padding-left: 0;
    /* Clear left padding translation on touch screens */
  }

  .whatsapp-float {
    padding: 15px;
    bottom: 90px !important;
    /* Displaces floating WA above sticky footer navigators safely */
    right: 20px;
  }

  .whatsapp-float span {
    display: none;
    /* Keeps float small and minimalist */
  }
}