/* ============================================
   Main Footer - Theme Responsive
   ============================================ */
.main-footer {
    background: var(--bg-card); /* Dynamically changes with your theme toggle */
    padding: 4rem 0 2rem 0;
    margin-top: 4rem;
    border-top: 1px solid var(--border);
    transition: all 0.3s ease;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-intro {
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 350px;
    font-size: 0.95rem;
    margin-top: 1rem;
}

/* --- Inquiries & Policies --- */
.footer-label {
    color: var(--accent-cyan);
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
}

.footer-contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.footer-contact-link:hover {
    color: var(--accent-cyan);
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.policy-list {
    list-style: none;
    padding: 0;
}

.policy-list li {
    margin-bottom: 0.8rem;
}

.policy-list a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.policy-list a:hover {
    color: var(--text-primary);
}

/* --- Secure Badge --- */
.secure-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(56, 189, 248, 0.1);
    color: var(--accent-cyan);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid rgba(56, 189, 248, 0.2);
    margin-top: 0.5rem;
}

/* --- Footer Bottom --- */
.footer-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin-bottom: 2rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ============================================
   Modern Logo & Brackets
   ============================================ */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
}

.footer-logo h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.modern-logo-icon {
    position: relative;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-body);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.icon-core {
    width: 6px;
    height: 6px;
    /* Changed to variable so it switches between white and dark based on theme */
    background: var(--text-primary); 
    border-radius: 50%;
    z-index: 2;
    transition: all 0.3s ease;
    
    /* The active "pulse" animation */
    animation: corePulse 2s infinite;
}

/* Update the pulse color to match your accent so it's always visible */
@keyframes corePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.4); /* Cyan pulse */
    }
    70% {
        box-shadow: 0 0 0 6px rgba(56, 189, 248, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(56, 189, 248, 0);
    }
}

/* Optional: Make the core glow with your colorful gradient on hover */
.footer-logo:hover .icon-core {
    background: var(--name-gradient); 
    transform: scale(1.2);
}

.icon-bracket-left, .icon-bracket-right {
    font-family: 'monospace';
    font-size: 1.4rem;
    font-weight: 600;
    transition: all 0.4s ease;
}

.icon-bracket-left { color: var(--accent-cyan); margin-right: 2px; }
.icon-bracket-right { color: var(--accent-purple); margin-left: 2px; }

/* Logo Hover Effects */
.footer-logo:hover .modern-logo-icon {
    border-color: var(--accent-cyan);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(56, 189, 248, 0.1);
}

.footer-logo:hover .icon-bracket-left { transform: translateX(-3px); }
.footer-logo:hover .icon-bracket-right { transform: translateX(3px); }

/* Responsive adjustments */
@media (max-width: 768px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}


/* ============================================
   MODERN RESPONSIVE FOOTER (FULL SYSTEM)
============================================ */

.main-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: clamp(3rem, 5vw, 5rem) 0 2rem;
  margin-top: 4rem;
  transition: all 0.3s ease;
}

/* =========================
   TOP GRID
========================= */

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: clamp(2rem, 3vw, 3rem);
  margin-bottom: 3rem;
}

/* TEXT BLOCK */
.footer-intro {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.95rem;
  max-width: 420px;
  margin-top: 1rem;
}

/* =========================
   LABELS + LINKS
========================= */

.footer-label {
  color: var(--accent-cyan);
  font-size: 0.75rem;
  letter-spacing: 1.4px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.footer-contact-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  font-size: 0.9rem;
  text-decoration: none;
  margin-bottom: 0.6rem;
  transition: 0.3s ease;
}

.footer-contact-link:hover {
  color: var(--accent-cyan);
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* POLICY */
.policy-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.policy-list a {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-decoration: none;
  transition: 0.3s ease;
}

.policy-list a:hover {
  color: var(--text-primary);
}

/* =========================
   SECURE BADGE
========================= */

.secure-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  font-size: 0.75rem;
  border-radius: 8px;
  font-weight: 700;

  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
}

/* =========================
   BOTTOM SECTION
========================= */

.footer-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin-bottom: 1.8rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.copyright {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* =========================
   MODERN LOGO
========================= */

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.footer-logo h2 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 700;
  color: var(--text-primary);
}

.modern-logo-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-body);
  transition: 0.3s ease;
}

.icon-core {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-primary);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(56, 189, 248, 0); }
  100% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0); }
}

.icon-bracket-left,
.icon-bracket-right {
  font-size: 1.3rem;
  font-family: monospace;
}

.icon-bracket-left { color: var(--accent-cyan); }
.icon-bracket-right { color: var(--accent-purple); }

/* =========================
   HOVER EFFECTS
========================= */

.footer-logo:hover .modern-logo-icon {
  transform: translateY(-3px);
  border-color: var(--accent-cyan);
}

/* =========================
   RESPONSIVE SYSTEM
========================= */

/* TABLET */
@media (max-width: 1024px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

/* MOBILE */
@media (max-width: 768px) {

  .footer-top {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-intro {
    margin: 0 auto;
  }

  .footer-contact-link {
    justify-content: center;
  }

  .policy-list {
    align-items: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* SMALL MOBILE */
@media (max-width: 480px) {

  .main-footer {
    padding: 3rem 0 1.5rem;
  }

  .footer-intro {
    font-size: 0.88rem;
  }

  .footer-contact-link {
    font-size: 0.85rem;
  }

  .policy-list a {
    font-size: 0.85rem;
  }
}

@media (max-width: 768px) {

  .footer-top {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-intro {
    margin: 0 auto;
  }

  .footer-contact-link {
    justify-content: center;
  }

  .policy-list {
    align-items: center;
  }

  /* ✅ KEY FIX: CENTER LOGO + NAME */
  .footer-bottom {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 1rem;
  }

  .footer-logo {
    justify-content: center;
  }
}