/* ================================
   INFONIX TECH – FOUNDATION CSS
   Mobile First | Clean Tech
================================ */

/* ---------- CSS RESET ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ---------- ROOT VARIABLES ---------- */
:root {
  /* Colors */
  --color-primary: #22d3ee;     /* Cyan */
  --color-secondary: #2563eb;   /* Blue */
  --color-bg-dark: #020617;     /* Dark background */
  --color-bg-light: #ffffff;
  --color-text-light: #e5e7eb;
  --color-text-dark: #020617;
  --color-muted: #94a3b8;

  /* Fonts */
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --section-padding: 4rem;
  --container-width: 1200px;

  /* UI */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --transition: all 0.3s ease;
}

/* ---------- BASE STYLES ---------- */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg-dark);
  color: var(--color-text-light);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: #ffffff;
  line-height: 1.2;
}

p {
  color: var(--color-muted);
  font-size: 1rem;
}

/* ---------- CONTAINER SYSTEM ---------- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1rem;
}

/* ---------- SECTION SPACING ---------- */
section {
  padding: var(--section-padding) 0;
}

/* ---------- BUTTON BASE ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #020617;
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* ---------- UTILITIES ---------- */
.text-center {
  text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

/* ---------- DESKTOP ENHANCEMENTS ---------- */
@media (min-width: 768px) {
  :root {
    --section-padding: 6rem;
  }

  p {
    font-size: 1.05rem;
  }
}


/* ================= GLOBAL IMAGE STYLES ================= */

/* Default behavior for ALL images */
img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
}

/* Images inside content sections (ERP, services, blogs, etc.) */
section img {
  margin: 0 auto;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.55);
}

/* Optional: hover polish for large UI screenshots */
.img-hover {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.img-hover:hover {
  transform: scale(1.02);
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.7);
}

/* Optional: full-width showcase images */
.img-wide {
  width: 100%;
  max-width: 1100px;
}

/* Optional: small icons or logos (no shadow) */
.img-clean {
  box-shadow: none;
  border-radius: 0;
}


/* ================= IMAGE WITH CAPTION ================= */
.figure {
  text-align: center;
  margin: 2rem auto;
}

.figure img {
  margin-bottom: 0.8rem;
}

.figure-caption {
  font-size: 0.9rem;
  color: var(--color-muted);
  opacity: 0.85;
}


/* ================= LOGO ================= */
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
}

/* ===== LOGO SIZE REFINEMENT ===== */
.logo-img {
  height: 40px;        /* desktop default */
  width: auto;
}

/* Slightly bigger on large screens */
@media (min-width: 992px) {
  .logo-img {
    height: 54px;
  }
}

/* Slightly smaller on mobile */
@media (max-width: 480px) {
  .logo-img {
    height: 54px;
  }
}


.logo .tech {
  color: var(--color-primary);
}




/* ================= NAVBAR ================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(2, 6, 23, 0.9);
  backdrop-filter: blur(10px);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffffff;
}

.logo span {
  color: var(--color-primary);
}

.nav-menu {
  display: none;
  gap: 2rem;
}

.nav-menu a {
  color: var(--color-text-light);
  text-decoration: none;
  font-size: 0.95rem;
  transition: var(--transition);
}

.nav-menu a:hover {
  color: var(--color-primary);
}

.nav-cta {
  display: none;
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: #ffffff;
}


/* ================= MOBILE NAV MENU FIX ================= */

/* Default mobile state */
@media (max-width: 768px) {
  .nav-menu {
    position: absolute;
    top: 70px; /* height of navbar */
    left: 0;
    width: 100%;
    background: rgba(2, 6, 23, 0.98);
    backdrop-filter: blur(10px);

    flex-direction: column;
    align-items: center;
    gap: 1.2rem;

    padding: 1.5rem 0;

    display: none; /* hidden by default */
  }

  /* When hamburger is clicked */
  .nav-menu.active {
    display: flex;
  }

  .nav-menu a {
    font-size: 1.05rem;
  }
}

.hamburger {
  padding: 0.5rem;
}


/* ================= MOBILE NAV ENHANCEMENTS ================= */

@media (max-width: 768px) {

  /* Overlay */
  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 900;
  }

  .nav-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  /* Mobile menu container */
  .nav-menu {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: rgba(2, 6, 23, 0.98);
    backdrop-filter: blur(10px);

    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    padding: 1.8rem 0;

    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none;

    transition: all 0.35s ease;
    z-index: 1000;
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  /* Nav links */
  .nav-menu a {
    font-size: 1.05rem;
  }

  /* Hamburger animation */
  .hamburger {
    z-index: 1100;
  }

  .hamburger span {
    transition: all 0.3s ease;
  }

  /* X state */
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }
}



/* ================= HERO ================= */
.hero {
  background: radial-gradient(circle at top right, #0ea5e9, transparent 40%),
              radial-gradient(circle at bottom left, #6366f1, transparent 40%);
}

.hero-container {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  align-items: center;
  text-align: center;
}

.hero-content h1 {
  font-size: 2.2rem;
}

.hero-content h1 span {
  color: var(--color-primary);
}

.hero-content p {
  max-width: 600px;
  margin-top: 1rem;
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-outline {
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  background: transparent;
}

.btn-outline:hover {
  background: var(--color-primary);
  color: #020617;
}

/* Hero Visual */
.hero-visual {
  display: grid;
  gap: 1rem;
}

.tech-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 1.2rem 1.5rem;
  border-radius: var(--radius-md);
  backdrop-filter: blur(8px);
  font-weight: 500;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* ================= DESKTOP ================= */
@media (min-width: 768px) {

  .nav-menu {
    display: flex;
  }

  .nav-cta {
    display: inline-flex;
  }

  .hamburger {
    display: none;
  }

  .hero-container {
    flex-direction: row;
    text-align: left;
    justify-content: space-between;
  }

  .hero-content h1 {
    font-size: 3rem;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .hero-visual {
    grid-template-columns: repeat(1, 1fr);
  }
}


/* ================= TECH STACK ================= */
.tech-stack h3 {
  margin-bottom: 1.5rem;
}

/* Grid layout */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* mobile default */
  gap: 1.2rem;
  margin-top: 1.5rem;
}

/* Desktop: exactly 4 per row */
@media (min-width: 992px) {
  .tech-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Tech card */
.tech-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 1.2rem 1rem;
  border-radius: var(--radius-md);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: var(--transition);

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

.tech-item:hover {
  border-color: var(--color-primary);
  transform: translateY(-4px);
}



/* ================= SERVICES ================= */
.services {
  background-color: #020617;
}

.section-header h2 {
  font-size: 2rem;
}

.section-header p {
  max-width: 700px;
  margin: 1rem auto 0;
}

/* Grid */
.services-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

/* Card */
.service-card {
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.service-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.service-card p {
  font-size: 0.95rem;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-primary);
  background: rgba(255, 255, 255, 0.07);
}

/* ================= DESKTOP ================= */
@media (min-width: 768px) {

  .section-header h2 {
    font-size: 2.5rem;
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}


/* ================= ERP / PRODUCTS ================= */
.erp {
  background: linear-gradient(
    180deg,
    #020617 0%,
    #020617 60%,
    #020617 100%
  );
}

.erp-container {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.erp-content h2 {
  font-size: 2rem;
}

.erp-content p {
  margin-top: 1rem;
  max-width: 600px;
}

.erp-features {
  list-style: none;
  margin-top: 1.5rem;
}

.erp-features li {
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
  color: var(--color-text-light);
}

/* Visual */
.erp-visual {
  display: flex;
  justify-content: center;
}

.erp-mockup {
  width: 100%;
  max-width: 420px;
  height: 260px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  color: var(--color-muted);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

/* ================= DESKTOP ================= */
@media (min-width: 768px) {

  .erp-container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .erp-content h2 {
    font-size: 2.5rem;
  }

  .erp-visual {
    justify-content: flex-end;
  }
}


/* ================= AI / ML & IOT ================= */
.ai {
  background: radial-gradient(circle at center, #020617 0%, #020617 70%);
}

.ai-header h2 {
  font-size: 2rem;
}

.ai-header p {
  max-width: 700px;
  margin: 1rem auto 0;
}

/* Grid */
.ai-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

/* Card */
.ai-card {
  background: rgba(255, 255, 255, 0.04);
  padding: 2rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: var(--transition);
}

.ai-card h3 {
  margin-bottom: 0.5rem;
}

.ai-card:hover {
  border-color: var(--color-secondary);
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.07);
}

/* ================= DESKTOP ================= */
@media (min-width: 768px) {

  .ai-header h2 {
    font-size: 2.5rem;
  }

  .ai-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}


/* ================= MISSION & VISION ================= */
.mission {
  background-color: #020617;
}

.mission-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.mission-box {
  background: rgba(255, 255, 255, 0.04);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.mission-box h2 {
  margin-bottom: 0.5rem;
}

/* ================= WHY CHOOSE US ================= */
.why-us {
  background-color: #020617;
}

.why-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
}

.why-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 1.2rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.95rem;
  transition: var(--transition);
}

.why-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-4px);
}

/* ================= DESKTOP ================= */
@media (min-width: 768px) {

  .mission-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}


/* ================= CAREER / INTERNSHIP ================= */
.career {
  background: linear-gradient(
    180deg,
    #020617 0%,
    #020617 100%
  );
}

.career-container {
  max-width: 900px;
  text-align: center;
}

.career-content h2 {
  font-size: 2rem;
}

.career-content p {
  margin-top: 1rem;
}

.career-list {
  list-style: none;
  margin: 2rem 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
}

.career-list li {
  background: rgba(255, 255, 255, 0.05);
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
}

/* ================= DESKTOP ================= */
@media (min-width: 768px) {

  .career-content h2 {
    font-size: 2.5rem;
  }

  .career-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}



/* ================= CONTACT / CTA (DARK TECH STYLE) ================= */
.contact-cta {
  background:
    radial-gradient(circle at 50% 0%, rgba(0, 160, 255, 0.18), transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(0, 120, 255, 0.12), transparent 45%),
    #020617;
  text-align: center;
  border-top: 1px solid rgba(0, 160, 255, 0.15);
}

.contact-container {
  max-width: 800px;
}

.contact-cta h2 {
  font-size: 2.2rem;
  color: #ffffff;
}

.contact-cta p {
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.75);
}

/* Actions */
.contact-actions {
  margin-top: 2.2rem;
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Primary button enhancement */
.contact-cta .btn-primary {
  box-shadow: 0 10px 30px rgba(0, 160, 255, 0.35);
}

/* Outline button – dark tech style */
.contact-cta .btn-outline {
  border-color: rgba(0, 160, 255, 0.6);
  color: #ffffff;
}

.contact-cta .btn-outline:hover {
  background: rgba(0, 160, 255, 0.15);
  color: #ffffff;
}



/* ================= DESKTOP ================= */
@media (min-width: 768px) {

  .contact-cta h2 {
    font-size: 2.5rem;
  }
}


/* ================= FOOTER ================= */
.footer {
  background:
    radial-gradient(circle at top center, rgba(0, 160, 255, 0.12), transparent 45%),
    #020617;
  border-top: 1px solid rgba(0, 160, 255, 0.15);
}

/* Layout */
.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 3rem;
  padding: 4rem 0 2.5rem;
}

/* Brand */
.footer-brand h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  letter-spacing: 0.5px;
}

.footer-brand span {
  color: var(--color-primary);
}

.footer-tagline {
  margin-top: 0.8rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.75);
  max-width: 320px;
}

.footer-legal {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: var(--color-muted);
}

/* Section headings */
.footer-links h4,
.footer-contact h4 {
  margin-bottom: 1rem;
  font-size: 1rem;
  position: relative;
}

.footer-links h4::after,
.footer-contact h4::after {
  content: "";
  display: block;
  width: 32px;
  height: 2px;
  margin-top: 0.4rem;
  background: var(--color-primary);
  opacity: 0.6;
}

/* Links */
.footer-links a {
  display: block;
  text-decoration: none;
  color: var(--color-muted);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: #ffffff;
  transform: translateX(4px);
}

/* Contact */
.footer-contact p {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin-bottom: 0.5rem;
}

/* Bottom bar */
.footer-bottom {
  padding: 1.2rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}


/* ================= FOOTER SVG ICONS ================= */

.footer-icon-text {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--color-muted);
  margin-bottom: 0.6rem;
}

.footer-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.9;
  filter: brightness(0) saturate(100%) invert(55%) sepia(87%) saturate(430%)
    hue-rotate(170deg) brightness(95%) contrast(95%);
}





/* ================= DESKTOP ================= */
@media (min-width: 768px) {
  .footer-container {
    grid-template-columns: repeat(4, 1fr);
  }
}


/* ===== Active Nav Link ===== */
.nav-menu a.active {
  color: var(--color-primary);
  position: relative;
}

.nav-menu a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--color-primary);
}


/* ================= SERVICES HOVER CARDS ================= */

.service-hover {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  transition: var(--transition);
}

/* Image wrapper */
.service-image {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

/* Dark overlay */
.service-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.55);
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Content */
.service-content {
  padding: 1.2rem;
  text-align: left;
}

.service-content h3 {
  margin-bottom: 0.4rem;
}

/* Hidden description initially */
.service-content p {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transform: translateY(10px);
  transition: all 0.35s ease;
  color: var(--color-muted);
  font-size: 0.9rem;
}

/* Hover effects */
.service-hover:hover .service-image img {
  transform: scale(1.05);
}

.service-hover:hover .service-image::after {
  opacity: 1;
}

.service-hover:hover .service-content p {
  opacity: 1;
  max-height: 120px;
  transform: translateY(0);
}


@media (max-width: 768px) {
  .service-content p {
    opacity: 1;
    max-height: none;
    transform: none;
  }

  .service-image::after {
    opacity: 0.35;
  }
}


/* ================= HERO TECH STACK ================= */
.tech-stack {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  justify-content: center;
}

.tech-card {
  width: 180px;
  height: 230px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  padding: 1rem;
  text-align: center;
  transition: all 0.4s ease;
  cursor: pointer;
  position: relative;
}

/* Image */
.tech-card img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 0.8rem;
}

/* Text */
.tech-card span {
  font-size: 0.95rem;
  font-weight: 500;
  color: #e5f9ff;
}

/* Hover effect */
.tech-card:hover {
  transform: translateY(-14px) scale(1.04);
  box-shadow: 0 0 40px rgba(56, 189, 248, 0.35);
  border-color: rgba(56, 189, 248, 0.5);
}

/* Floating animation */
.floating {
  animation: float 6s ease-in-out infinite;
}

.delay-1 { animation-delay: 0s; }
.delay-2 { animation-delay: 1.5s; }
.delay-3 { animation-delay: 3s; }

@keyframes float {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-12px); }
  100% { transform: translateY(0); }
}

/* Mobile view */
@media (max-width: 768px) {
  .tech-stack {
    margin-top: 2rem;
    flex-direction: column;
  }

  .tech-card {
    width: 90%;
    height: auto;
  }
}


/* ================= MOBILE FOOTER COMPACT (CSS ONLY) ================= */
@media (max-width: 768px) {

  .footer {
    padding: 1.2rem 0 0;
    text-align: center;
  }

  .footer-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: start;
  }

  /* BRAND FULL WIDTH */
  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-brand h3 {
    font-size: 1.1rem;
  }

  .footer-brand p {
    font-size: 0.8rem;
    max-width: 260px;
    margin: 0.4rem auto;
  }

  /* QUICK LINKS (LEFT) */
  .footer-links {
    text-align: center;
  }

  /* SERVICES (RIGHT) */
  .footer-links:nth-of-type(2) {
    text-align: center;
  }

  .footer-links h4,
  .footer-contact h4 {
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
  }

  .footer-links a {
    font-size: 0.8rem;
    margin: 0.15rem 0;
  }

  /* CONTACT FULL WIDTH BELOW */
  .footer-contact {
    grid-column: 1 / -1;
  }

  .footer-contact p {
    font-size: 0.8rem;
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    margin: 0.25rem 0;
  }

  /* BOTTOM */
  .footer-bottom {
    font-size: 0.7rem;
    padding: 0.6rem 0;
  }
}


/* ================= FOOTER UNDERLINE FIX (MOBILE) ================= */
@media (max-width: 768px) {

  .footer-links h4,
  .footer-contact h4 {
    position: relative;
    display: inline-block;
    padding-bottom: 0.4rem;
  }

  .footer-links h4::after,
  .footer-contact h4::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 32px;
    height: 2px;
    background: var(--color-primary);
    border-radius: 2px;
  }
}


