/* This file keeps the shared header and footer looking the same on every page. */
:root {
  --primary: #0b63f6;
  --primary-dark: #084dc2;
  --accent: #1e85ff;
  --ink: #020617;
  --slate: #475569;
  --slate-light: #94a3b8;
  --surface: #ffffff;
  --surface-subtle: #f8fafc;
  --border-thin: rgba(15, 23, 42, 0.08);
  --glass-bg: rgba(255, 255, 255, 0.85);
  --hero-bg: #020617;
}

/* This top strip gives visitors a quick way to see contact details. */
.top-strip {
  background: var(--hero-bg);
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.top-strip span {
  transition: color 0.2s ease;
}

.top-strip span:hover {
  color: #fff;
}

.top-strip .divider {
  width: 1px;
  height: 10px;
  background: rgba(255, 255, 255, 0.15);
  margin: 0 0.5rem;
}

/* This navigation styling matches the home page so the site feels connected. */
.main-nav {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-thin);
  padding: 0.6rem 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1030;
}

/* This keeps the shared logo clear while making the header less tall. */
.navbar-brand .brand-logo {
  height: 44px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.navbar-brand:hover .brand-logo {
  transform: scale(1.02);
}

/* This trims the nav link padding so the full header feels tighter. */
.nav-link {
  font-size: 0.96rem;
  color: var(--slate);
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 0.45rem 0.85rem !important;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.nav-link.active {
  font-weight: 600;
}

/* This keeps the contact button prominent without adding extra bulk. */
.btn-header-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.66rem 1rem !important;
  border-radius: 999px;
  background: var(--primary);
  color: #fff !important;
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(11, 99, 246, 0.16);
}

.btn-header-contact:hover {
  background: var(--primary-dark);
  color: #fff !important;
}

.nav-link i,
.nav-link svg {
  width: 14px;
  height: 14px;
  margin-left: 2px;
  vertical-align: middle;
  opacity: 0.6;
  transition: transform 0.2s ease;
}

.nav-link:hover i,
.nav-link:hover svg {
  opacity: 1;
}

.dropdown-toggle:hover i,
.dropdown-toggle:hover svg {
  transform: translateY(1px);
}

.dropdown-toggle::after {
  display: none !important;
}

/* This keeps dropdowns polished while reducing their overall footprint. */
.dropdown-menu {
  border: 1px solid var(--border-thin);
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(2, 6, 23, 0.08);
  padding: 0.7rem;
  min-width: 220px;
  margin-top: 10px !important;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.98);
  animation: sharedDropdownFade 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes sharedDropdownFade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-item {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--slate);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.2s ease;
}

.dropdown-item i,
.dropdown-item svg {
  width: 16px;
  height: 16px;
  color: var(--slate-light);
  transition: color 0.2s ease;
}

.dropdown-item:hover {
  background: var(--surface-subtle);
  color: var(--primary);
  transform: translateX(4px);
}

.dropdown-item:hover i,
.dropdown-item:hover svg {
  color: var(--primary);
}

/* This wide menu gives service links more room on desktop screens. */
.mega-menu {
  position: static !important;
}

/* This tightens the mega menu spacing so it matches the smaller page scale. */
.mega-dropdown-menu {
  width: 100%;
  left: 0;
  right: 0;
  top: 100%;
  border-radius: 0 0 24px 24px !important;
  border: 1px solid var(--border-thin) !important;
  border-top: none !important;
  padding: 2rem 0 !important;
  background: rgba(255, 255, 255, 0.99) !important;
  box-shadow: 0 40px 80px rgba(2, 6, 23, 0.12) !important;
  margin-top: 0 !important;
}

.mega-menu-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--slate-light);
  margin-bottom: 1.1rem;
}

.mega-menu-item {
  display: flex;
  gap: 1.25rem;
  padding: 0.85rem;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-bottom: 0.5rem;
}

.mega-menu-item:hover {
  background: var(--surface-subtle);
  transform: translateY(-2px);
}

/* This reduces the menu icon blocks so cards feel lighter on desktop. */
.mega-menu-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.mega-menu-icon i,
.mega-menu-icon svg {
  width: 20px;
  height: 20px;
}

.mega-menu-item:hover .mega-menu-icon {
  transform: scale(1.1) rotate(-5deg);
}

.mega-menu-content h5 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--ink);
}

.mega-menu-content p {
  font-size: 0.8rem;
  color: var(--slate);
  margin: 0;
  line-height: 1.5;
}

/* This featured panel stays strong visually, just with less internal padding. */
.mega-menu-featured {
  background: var(--surface-subtle);
  border-radius: 20px;
  padding: 1.6rem;
  height: 100%;
  color: var(--ink);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid var(--border-thin);
}

.mega-menu-featured::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(30, 133, 255, 0.05), transparent 60%);
}

/* This image gives the featured card a stronger visual anchor while staying responsive. */
.mega-menu-featured-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 1.2rem;
  position: relative;
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
}

.mega-menu-featured h4 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  position: relative;
}

.mega-menu-featured p {
  font-size: 0.85rem;
  color: var(--slate);
  margin-bottom: 1.5rem;
  position: relative;
}

.btn-mega-featured {
  background: var(--primary);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
  width: fit-content;
  position: relative;
  transition: all 0.3s ease;
}

.btn-mega-featured:hover {
  background: var(--primary-dark);
  color: #fff;
  box-shadow: 0 10px 20px rgba(11, 99, 246, 0.3);
}

.icon-yt {
  background: #eff6ff;
  color: #3b82f6;
}

.icon-sms {
  background: #fff1f2;
  color: #f43f5e;
}

.icon-ict {
  background: #f0fdf4;
  color: #22c55e;
}

.icon-sys {
  background: #f5f3ff;
  color: #8b5cf6;
}

.icon-srv {
  background: #fffbeb;
  color: #f59e0b;
}

.icon-davo {
  background: #fff7ed;
  color: #f97316;
}

/* This footer styling keeps the last section rich and easy to scan. */
.footer {
  position: relative;
  background: linear-gradient(180deg, #0b1220 0%, #020617 100%);
  color: rgba(255, 255, 255, 0.75);
  padding: 68px 0 28px;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(11, 99, 246, 0.14), transparent 36%),
    radial-gradient(circle at 85% 80%, rgba(30, 133, 255, 0.1), transparent 34%);
  pointer-events: none;
}

.footer::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
  background-size: 52px 52px;
  opacity: 0.12;
  mask-image: radial-gradient(circle at center, black 18%, transparent 75%);
  pointer-events: none;
}

.footer .container {
  position: relative;
  z-index: 1;
}

/* This trims footer branding so the final section feels more compact. */
.footer-brand .brand-logo {
  height: 46px;
  width: auto;
  object-fit: contain;
  margin-bottom: 1rem;
}

.footer-desc {
  font-size: 0.92rem;
  line-height: 1.7;
  max-width: 360px;
  color: rgba(226, 232, 240, 0.78);
}

.footer-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.95rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.7rem;
}

.footer-links a,
.footer-links span {
  color: rgba(226, 232, 240, 0.74);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #fff;
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  transition: all 0.25s ease;
}

.social-btn:hover {
  transform: translateY(-2px);
  background: rgba(11, 99, 246, 0.18);
  border-color: rgba(96, 165, 250, 0.35);
  color: #fff;
}

.social-btn i,
.social-btn svg {
  width: 18px;
  height: 18px;
}

.footer-newsletter h4 {
  font-size: 0.86rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.9rem;
}

.newsletter-form {
  display: flex;
  gap: 0.75rem;
}

.newsletter-input {
  flex: 1;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.55);
  color: #fff;
  padding: 0.8rem 1rem;
  min-width: 0;
}

.newsletter-input::placeholder {
  color: rgba(226, 232, 240, 0.45);
}

.newsletter-input:focus {
  outline: none;
  border-color: rgba(96, 165, 250, 0.55);
  box-shadow: 0 0 0 4px rgba(11, 99, 246, 0.16);
}

.btn-newsletter {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: none;
  background: var(--primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.btn-newsletter:hover {
  background: var(--primary-dark);
}

.footer-bottom {
  margin-top: 2.2rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.copyright {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(226, 232, 240, 0.6);
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-legal a {
  color: rgba(226, 232, 240, 0.64);
  font-size: 0.82rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-legal a:hover {
  color: #fff;
}

.text-accent {
  color: #93c5fd;
}

.back-to-top {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  text-decoration: none;
  transition: all 0.25s ease;
}

.back-to-top:hover {
  color: #fff;
  background: rgba(11, 99, 246, 0.18);
  border-color: rgba(96, 165, 250, 0.35);
  transform: translateY(-2px);
}

@media (max-width: 991px) {
  .mega-dropdown-menu {
    position: relative !important;
    border-radius: 12px !important;
    border: none !important;
    box-shadow: none !important;
    padding: 1rem !important;
    max-height: 70vh;
    overflow-y: auto;
    background: var(--surface-subtle) !important;
    margin-top: 0.5rem !important;
  }

  .mega-menu-featured {
    margin-top: 1.5rem;
    min-height: 200px;
  }

  .mega-menu-featured-image {
    height: 160px;
  }

  .navbar-collapse {
    max-height: 85vh;
    overflow-y: auto;
    padding-bottom: 2rem;
  }
}

@media (max-width: 767px) {
  .footer {
    padding: 58px 0 24px;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .btn-newsletter {
    width: 100%;
    border-radius: 999px;
  }

  .footer-bottom {
    align-items: flex-start;
  }

  .footer-legal {
    width: 100%;
    flex-wrap: wrap;
  }
}
