/* =========================================================
   PURESOFT AUTOMATION — CUSTOM STYLES
   ========================================================= */

:root {
  --navy: #0a1330;
  --navy-2: #0e1a3f;
  --red: #e31e2b;
  --red-dark: #c01722;
  --gray-light: #f7f8fa;
  --text-muted: #6b7280;
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: #333;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
}

.text-accent { color: var(--red); }

a { text-decoration: none; }

/* =========================================================
   TOP BAR
   ========================================================= */
.topbar {
  background: var(--navy);
  color: #fff;
  font-size: 0.85rem;
  padding: 8px 0;
}
.topbar a {
  color: #fff;
  margin-right: 22px;
  opacity: 0.9;
  transition: opacity 0.2s;
}
.topbar a:last-child { margin-right: 0; }
.topbar a:hover { opacity: 1; color: var(--red); }
.topbar-social a {
  margin-left: 14px;
  margin-right: 0;
  display: inline-block;
}

/* =========================================================
   NAVBAR
   ========================================================= */
.main-navbar {
  padding: 14px 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.brand-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.5px;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand-icon {
  background: var(--red);
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.main-navbar .nav-link {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy);
  margin: 0 10px;
  position: relative;
  padding-bottom: 6px;
}
.main-navbar .nav-link.active,
.main-navbar .nav-link:hover {
  color: var(--red);
}
.main-navbar .nav-link.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  height: 2px;
  background: var(--red);
}
.btn-accent {
  background: var(--red);
  border: 1px solid var(--red);
  color: #fff !important;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 4px;
  transition: all 0.25s ease;
}
.btn-accent:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  color: #fff !important;
}

/* =========================================================
   HERO
   ========================================================= */
.hero-section {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 55%, #142352 100%);
  color: #fff;
  padding: 90px 0 60px;
  position: relative;
  overflow: hidden;
}
.hero-title {
  font-weight: 800;
  font-size: 2.75rem;
  line-height: 1.2;
  margin-bottom: 22px;
}
.hero-text {
  color: rgba(255,255,255,0.8);
  font-size: 1.05rem;
  max-width: 520px;
  margin-bottom: 30px;
}
.hero-buttons .btn {
  margin-right: 14px;
  margin-bottom: 10px;
}
.btn-outline-light {
  border: 1px solid rgba(255,255,255,0.5);
  color: #fff;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 4px;
}
.btn-outline-light:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}
.hero-features {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 26px;
}
.hero-features > div {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  margin-bottom: 14px;
}
.hero-features i {
  color: var(--red);
  font-size: 1.2rem;
}
.hero-graphic {
  position: relative;
}
.hero-photo {
  width: 100%;
  aspect-ratio: 5/4;
  object-fit: cover;
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}
.hero-node {
  position: absolute;
  background: rgba(10, 19, 48, 0.85);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  backdrop-filter: blur(4px);
}
.hero-node i { color: var(--red); font-size: 1rem; }
.node-1 { top: 5%;  left: 55%; }
.node-2 { top: 30%; left: 5%; }
.node-3 { top: 42%; left: 60%; }
.node-4 { top: 62%; left: 8%; }
.node-5 { top: 78%; left: 55%; }

/* =========================================================
   SECTION HEADINGS
   ========================================================= */
.section-heading h2 {
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: 0.5px;
  color: var(--navy);
  margin-bottom: 10px;
}
.heading-underline {
  display: block;
  width: 60px;
  height: 3px;
  background: var(--red);
  margin: 0 auto;
}
.heading-underline-left { margin: 0; }

/* =========================================================
   SOLUTIONS
   ========================================================= */
.solutions-section {
  padding: 80px 0;
  background: #fff;
}
.solution-card {
  background: var(--gray-light);
  border: 1px solid #eef0f3;
  border-radius: 10px;
  padding: 36px 26px;
  height: 100%;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.solution-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(10,19,48,0.1);
  background: #fff;
}
.solution-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  border-radius: 50%;
  border: 2px solid var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  color: var(--red);
}
.solution-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.3px;
  margin-bottom: 12px;
}
.solution-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.learn-more {
  color: var(--red);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.learn-more i { transition: transform 0.2s ease; }
.learn-more:hover i { transform: translateX(4px); }
.learn-more:hover { color: var(--red-dark); }

/* =========================================================
   STATS BAR
   ========================================================= */
.stats-bar {
  background: linear-gradient(90deg, var(--navy) 0%, #1c0f14 100%);
  background: linear-gradient(90deg, var(--navy) 0%, #2a0d12 100%);
  color: #fff;
  padding: 40px 0;
}
.stat-item i {
  font-size: 1.8rem;
  color: var(--red);
  margin-bottom: 10px;
  display: block;
}
.stat-item h3 {
  font-weight: 800;
  font-size: 1.8rem;
  margin-bottom: 4px;
}
.stat-item p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* =========================================================
   ABOUT
   ========================================================= */
.about-section {
  padding: 80px 0;
  background: var(--gray-light);
}
.about-section p {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.7;
}
.btn-outline-accent {
  border: 1px solid var(--red);
  color: var(--red);
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 4px;
  display: inline-block;
}
.btn-outline-accent:hover {
  background: var(--red);
  color: #fff;
}
.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
}
.about-gallery .col-6:first-child .gallery-img,
.about-gallery .col-6:nth-child(2) .gallery-img {
  aspect-ratio: 5/3;
}

/* =========================================================
   TRUSTED / PARTNERS
   ========================================================= */
.trusted-section {
  padding: 70px 0;
  background: #fff;
}
.client-logo {
  border: 1px solid #eef0f3;
  border-radius: 8px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
  filter: grayscale(20%);
  transition: filter 0.25s ease, transform 0.25s ease;
}
.client-logo:hover {
  filter: grayscale(0%);
  transform: translateY(-3px);
}
.client-logo img { max-height: 55px; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.8);
  padding: 70px 0 0;
  font-size: 0.92rem;
}
.footer-brand {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.footer-tagline {
  color: rgba(255,255,255,0.6);
  margin-bottom: 20px;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  color: #fff;
  margin-right: 10px;
  transition: background 0.2s ease;
}
.footer-social a:hover { background: var(--red); border-color: var(--red); }
.site-footer h5 {
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 20px;
}
.footer-links, .footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li { margin-bottom: 12px; }
.footer-links a {
  color: rgba(255,255,255,0.7);
  transition: color 0.2s ease, padding-left 0.2s ease;
}
.footer-links a:hover { color: var(--red); padding-left: 4px; }
.footer-links li i { color: var(--red); margin-right: 8px; }
.footer-contact li {
  margin-bottom: 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(255,255,255,0.7);
}
.footer-contact i { color: var(--red); margin-top: 3px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 50px;
  padding: 20px 0;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}
.footer-bottom-links a {
  color: rgba(255,255,255,0.6);
}
.footer-bottom-links a:hover { color: var(--red); }
.footer-bottom-links .divider { margin: 0 8px; opacity: 0.4; }

/* =========================================================
   BACK TO TOP
   ========================================================= */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 46px;
  height: 46px;
  background: var(--red);
  color: #fff;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 999;
}
.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover { background: var(--red-dark); color: #fff; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 991.98px) {
  .hero-title { font-size: 2.1rem; }
  .hero-section { padding: 60px 0 40px; text-align: left; }
  .main-navbar .nav-link { margin: 6px 0; }
}

@media (max-width: 575.98px) {
  .hero-title { font-size: 1.7rem; }
  .section-heading h2 { font-size: 1.3rem; }
}
