/* ── Main Footer Section ── */
.main-footer {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(
      circle at top left,
      rgba(124, 58, 237, 0.22),
      transparent 35%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(59, 130, 246, 0.12),
      transparent 35%
    ),
    linear-gradient(135deg, #020617, #030b2c, #020617);
  border-radius: 34px 34px 0 0;
  padding: 60px 70px 30px;
  color: #ffffff;
  font-family: "Inter", sans-serif;
  z-index: 2;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.main-footer * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* texture */
.main-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.03) 1px,
    transparent 1px
  );
  background-size: 4px 4px;
  opacity: 0.45;
  pointer-events: none;
}

/* glow */
.main-footer::after {
  content: "";
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(124, 58, 237, 0.16),
    transparent 70%
  );
  left: -220px;
  top: -250px;
  pointer-events: none;
}

.main-footer .container {
  position: relative;
  z-index: 2;
  max-width: 1600px;
  margin: auto;
}

/* =========================
   GRID
========================= */
.main-footer .top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 70px;
  margin-bottom: 45px;
}

/* =========================
   BRAND
========================= */
.main-footer .logo {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.main-footer .footer-logo {
  height: 38px;
  width: auto;
  display: block;
  -o-object-fit: contain;
     object-fit: contain;
  filter: invert(30%) sepia(87%) saturate(5838%) hue-rotate(241deg) brightness(97%) contrast(85%);
}

.main-footer .logo h2 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -1px;
  color: #ffffff;
}

.main-footer .brand h3 {
  font-size: 18px;
  line-height: 1.5;
  font-weight: 500;
  color: #e4e4e7;
  margin-bottom: 12px;
}

.main-footer .brand p {
  color: #a1a1aa;
  font-size: 14px;
  line-height: 1.6;
  max-width: 520px;
  margin-bottom: 20px;
}

/* button */
.main-footer .contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 12px;
  background: linear-gradient(90deg, #4f46e5, #7c3aed, #9333ea);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  transition: all 0.4s ease;
  box-shadow: 0 10px 20px rgba(124, 58, 237, 0.25);
  margin-bottom: 24px;
}

.main-footer .contact-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 30px rgba(124, 58, 237, 0.35);
}

.main-footer .contact-btn svg {
  width: 18px;
  height: 18px;
  stroke: #ffffff;
}

/* MSME */
.main-footer .msme {
  display: flex;
  align-items: center;
  gap: 20px;
}

.main-footer .msme-logo {
  width: 120px;
  height: auto;
  -o-object-fit: contain;
     object-fit: contain;
}

.main-footer .msme-divider {
  width: 1px;
  height: 36px;
  background: rgba(255, 255, 255, 0.15);
}

.main-footer .msme-text h4 {
  color: #a855f7;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.main-footer .msme-text p {
  color: #d4d4d8;
  font-size: 13px;
  line-height: 1.6;
}

/* =========================
   COLUMNS
========================= */
.main-footer .column h3 {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 10px;
}

.main-footer .line {
  width: 32px;
  height: 3px;
  border-radius: 10px;
  background: linear-gradient(90deg, #7c3aed, #8b5cf6);
  margin-bottom: 20px;
}

/* links */
.main-footer .links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.main-footer .links a {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #d4d4d8;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.main-footer .links a:hover {
  color: #a855f7;
  transform: translateX(6px);
}

.main-footer .links svg {
  width: 18px;
  height: 18px;
  stroke: #8b5cf6;
}

/* =========================
   SOCIAL
========================= */
.main-footer .socials {
  display: flex;
  gap: 18px;
  margin-bottom: 25px;
}

.main-footer .social {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.4s ease;
}

.main-footer .social:hover {
  transform: translateY(-4px) scale(1.05);
  background: linear-gradient(135deg, #7c3aed, #8b5cf6);
  box-shadow: 0 10px 20px rgba(124, 58, 237, 0.25);
}

.main-footer .social svg {
  width: 18px;
  height: 18px;
  fill: #a855f7;
  transition: all 0.3s ease;
}

.main-footer .social:hover svg {
  fill: #ffffff;
}

/* divider */
.main-footer .social-divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: 20px;
}

/* contact */
.main-footer .contact {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.main-footer .contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #d4d4d8;
  font-size: 15px;
}

.main-footer .contact-item svg {
  width: 18px;
  height: 18px;
  stroke: #8b5cf6;
}

/* =========================
   BOTTOM
========================= */
.main-footer .bottom {
  border-radius: 28px;
  padding: 24px 30px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(168, 85, 247, 0.25);
  backdrop-filter: blur(24px);
}

.main-footer .bottom-links {
  display: flex;
  justify-content: center;
  gap: 46px;
  margin-bottom: 16px;
}

.main-footer .bottom-links a {
  color: #d4d4d8;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.main-footer .bottom-links a:hover {
  color: #a855f7;
}

.main-footer .bottom-line {
  width: 80%;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 0 auto 16px;
}

.main-footer .copy {
  text-align: center;
  color: #d4d4d8;
  font-size: 14px;
  line-height: 1.6;
}

.main-footer .copy span {
  color: #ef4444;
}

/* Tighten gap but keep 4 columns */
@media (max-width: 1400px) {
  .main-footer {
    padding: 50px 40px 28px;
  }
  .main-footer .top {
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    gap: 40px;
  }
}

/* At 1100px: Brand takes full row, then 3 link cols */
@media (max-width: 1100px) {
  .main-footer {
    padding: 44px 28px 24px;
  }
  .main-footer .top {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 32px;
  }
  /* Brand spans all 3 columns */
  .main-footer .top > .brand {
    grid-column: 1 / -1;
  }
}

/* =========================
   TABLET  (601px – 900px)
========================= */
@media (min-width: 601px) and (max-width: 900px) {
  .main-footer {
    padding: 48px 32px 28px;
    border-radius: 24px 24px 0 0;
  }

  .main-footer .top {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    margin-bottom: 36px;
  }

  /* Brand spans full width */
  .main-footer .top > .brand {
    grid-column: 1 / -1;
  }

  /* Connect spans full width */
  .main-footer .top > .column:last-child {
    grid-column: 1 / -1;
  }

  .main-footer .footer-logo {
    height: 34px;
  }

  .main-footer .logo {
    gap: 12px;
    margin-bottom: 16px;
  }

  .main-footer .logo h2 {
    font-size: 24px;
  }

  .main-footer .brand h3 {
    font-size: 17px;
    margin-bottom: 10px;
  }

  .main-footer .brand p {
    font-size: 14px;
    margin-bottom: 18px;
  }

  .main-footer .contact-btn {
    padding: 11px 22px;
    font-size: 15px;
    gap: 8px;
    margin-bottom: 20px;
  }

  .main-footer .column h3 {
    font-size: 18px;
    margin-bottom: 8px;
  }

  .main-footer .line {
    margin-bottom: 16px;
  }

  .main-footer .links {
    gap: 11px;
  }

  .main-footer .links a {
    font-size: 15px;
    gap: 10px;
  }

  .main-footer .links svg {
    width: 16px;
    height: 16px;
  }

  .main-footer .socials {
    gap: 14px;
    margin-bottom: 18px;
  }

  .main-footer .social {
    width: 40px;
    height: 40px;
  }

  .main-footer .social svg {
    width: 17px;
    height: 17px;
  }

  .main-footer .contact {
    gap: 12px;
  }

  .main-footer .contact-item {
    font-size: 14px;
    gap: 10px;
  }

  .main-footer .contact-item svg {
    width: 16px;
    height: 16px;
  }

  .main-footer .bottom {
    padding: 18px 22px;
    border-radius: 18px;
  }

  .main-footer .bottom-links {
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin-bottom: 12px;
  }

  .main-footer .bottom-links a {
    font-size: 14px;
  }

  .main-footer .copy {
    font-size: 13px;
  }

  .main-footer .msme {
    flex-direction: row;
    align-items: center;
    gap: 14px;
  }

  .main-footer .msme-divider {
    width: 1px;
    height: 32px;
  }

  .main-footer .msme-logo {
    width: 96px;
  }

  .main-footer .msme-text h4 {
    font-size: 15px;
    margin-bottom: 4px;
  }

  .main-footer .msme-text p {
    font-size: 13px;
  }
}

/* =========================
   MOBILE  (≤ 600px)
========================= */
@media (max-width: 600px) {
  .main-footer {
    padding: 36px 18px 20px;
    border-radius: 18px 18px 0 0;
  }

  .main-footer .top {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-bottom: 24px;
  }

  /* Brand spans full width */
  .main-footer .top > .brand {
    grid-column: 1 / -1;
  }

  /* Connect spans full width */
  .main-footer .top > .column:last-child {
    grid-column: 1 / -1;
  }

  .main-footer .footer-logo {
    height: 26px;
  }

  .main-footer .logo {
    gap: 10px;
    margin-bottom: 12px;
  }

  .main-footer .logo h2 {
    font-size: 20px;
  }

  .main-footer .brand h3 {
    font-size: 14px;
    margin-bottom: 8px;
  }

  .main-footer .brand p {
    font-size: 12px;
    margin-bottom: 14px;
  }

  .main-footer .contact-btn {
    padding: 9px 18px;
    font-size: 13px;
    gap: 7px;
    margin-bottom: 16px;
  }

  .main-footer .contact-btn svg {
    width: 15px;
    height: 15px;
  }

  .main-footer .column h3 {
    font-size: 15px;
    margin-bottom: 6px;
  }

  .main-footer .line {
    margin-bottom: 12px;
  }

  .main-footer .links {
    gap: 8px;
  }

  .main-footer .links a {
    font-size: 13px;
    gap: 8px;
  }

  .main-footer .links svg {
    width: 14px;
    height: 14px;
  }

  .main-footer .socials {
    gap: 12px;
    margin-bottom: 16px;
  }

  .main-footer .social {
    width: 36px;
    height: 36px;
  }

  .main-footer .social svg {
    width: 15px;
    height: 15px;
  }

  .main-footer .contact {
    gap: 10px;
  }

  .main-footer .contact-item {
    font-size: 13px;
    gap: 8px;
  }

  .main-footer .contact-item svg {
    width: 14px;
    height: 14px;
  }

  .main-footer .bottom {
    padding: 14px 16px;
    border-radius: 16px;
  }

  .main-footer .bottom-links {
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 10px;
  }

  .main-footer .bottom-links a {
    font-size: 12px;
  }

  .main-footer .bottom-line {
    margin-bottom: 10px;
  }

  .main-footer .copy {
    font-size: 11px;
  }

  .main-footer .msme {
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }

  .main-footer .msme-divider {
    width: 1px;
    height: 28px;
  }

  .main-footer .msme-logo {
    width: 80px;
  }

  .main-footer .msme-text h4 {
    font-size: 13px;
    margin-bottom: 3px;
  }

  .main-footer .msme-text p {
    font-size: 11px;
  }
}


