:root {
  --primary: #2f6799;
  --primary-dark: #173f65;
  --accent: #ef5b0c;
  --teal: #6f9f9e;
  --ink: #172333;
  --muted: #647184;
  --soft: #f4f7fa;
  --white: #ffffff;
  --border: #dbe4ec;
  --shadow: 0 18px 50px rgba(18, 54, 84, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(219,228,236,.8);
}

.nav-wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  color: var(--primary-dark);
}
.brand img {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--border);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: .95rem;
  font-weight: 600;
}
.main-nav a:hover { color: var(--primary); }
.nav-cta {
  background: var(--primary);
  color: white !important;
  padding: 11px 17px;
  border-radius: 9px;
}
.nav-cta:hover { background: var(--primary-dark); }

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: var(--soft);
  border-radius: 9px;
  padding: 10px;
}
.menu-button span {
  display: block;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 86px;
  background: linear-gradient(145deg, #f8fbfd 0%, #eef5fa 70%, #fff 100%);
}
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 68px;
  align-items: center;
}
.eyebrow, .section-label {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 800;
}
.hero h1, .section h2, .cta-box h2, .legal-content h1 {
  font-family: "Manrope", sans-serif;
  line-height: 1.12;
  letter-spacing: -.035em;
}
.hero h1 {
  font-size: clamp(2.6rem, 5.2vw, 4.9rem);
  margin: 0 0 24px;
  max-width: 760px;
}
.hero-text {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 680px;
  margin-bottom: 30px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 21px;
  border-radius: 10px;
  font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 10px 25px rgba(47,103,153,.24);
}
.button-primary:hover { background: var(--primary-dark); }
.button-secondary {
  background: white;
  border: 1px solid var(--border);
}
.button-light {
  background: white;
  color: var(--primary-dark);
}
.trust-row {
  display: flex;
  gap: 28px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.trust-row div { display: grid; gap: 2px; }
.trust-row strong { color: var(--primary-dark); }
.trust-row span { color: var(--muted); font-size: .86rem; }

.hero-card {
  background: white;
  border-radius: 28px;
  padding: 22px;
  box-shadow: var(--shadow);
  transform: none;
}
.hero-card img {
  border-radius: 20px;
  width: 100%;
  background: white;
}
.hero-card-content {
  padding: 24px 8px 8px;
}
.hero-card-content span {
  color: var(--accent);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 800;
}
.hero-card-content h2 {
  font-family: "Manrope", sans-serif;
  margin: 8px 0;
  font-size: 1.8rem;
}
.hero-card-content p { color: var(--muted); margin-bottom: 0; }

.hero-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
  opacity: .12;
}
.hero-shape-one {
  width: 420px; height: 420px;
  background: var(--primary);
  right: -180px; top: -170px;
}
.hero-shape-two {
  width: 240px; height: 240px;
  background: var(--accent);
  left: -120px; bottom: -130px;
}

.section { padding: 90px 0; }
.section-soft { background: var(--soft); }
.split {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 80px;
  align-items: start;
}
.section h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  margin: 0;
}
.prose { font-size: 1.06rem; color: var(--muted); }
.prose p:first-child { margin-top: 0; }
.text-link { color: var(--primary); font-weight: 700; }
.text-link:hover { color: var(--accent); }

.section-heading {
  max-width: 760px;
  margin-bottom: 42px;
}
.section-heading h2 { margin-bottom: 16px; }
.section-heading > p:last-child { color: var(--muted); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.solution-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.solution-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}
.solution-card .icon {
  width: 50px; height: 50px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(47,103,153,.1);
  color: var(--primary);
  font-weight: 800;
}
.solution-card:nth-child(2n) .icon {
  background: rgba(239,91,12,.1);
  color: var(--accent);
}
.solution-card h3 {
  font-size: 1.15rem;
  margin: 20px 0 8px;
}
.solution-card p { color: var(--muted); margin: 0; font-size: .96rem; }

.service-list { border-top: 1px solid var(--border); }
.service-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}
.service-item > span {
  color: var(--accent);
  font-weight: 800;
}
.service-item h3 { margin: 0 0 8px; font-size: 1.2rem; }
.service-item p { margin: 0; color: var(--muted); }

.cta-section { padding: 0 0 90px; }
.cta-box {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: white;
  border-radius: 24px;
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.cta-box h2 { max-width: 720px; margin: 0; font-size: clamp(2rem, 4vw, 3rem); }
.section-label.light { color: #ffd2bd; }

.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 70px;
  align-items: start;
}
.contact-intro { color: var(--muted); max-width: 620px; }
.contact-cards {
  margin-top: 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.contact-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  display: grid;
  gap: 4px;
}
a.contact-card:hover { border-color: var(--primary); }
.contact-card span { color: var(--muted); font-size: .82rem; }
.contact-card strong { font-size: .96rem; overflow-wrap: anywhere; }

.contact-panel {
  background: var(--soft);
  border-radius: 20px;
  padding: 28px;
}
.contact-panel h3 { margin-top: 0; }
.contact-panel p { color: var(--muted); }
.contact-panel > a {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  color: var(--primary);
  font-weight: 700;
}
.domain-note {
  margin-top: 22px;
  background: white;
  border-radius: 12px;
  padding: 16px;
  display: grid;
}
.domain-note span { color: var(--muted); font-size: .82rem; }
.domain-note strong { color: var(--primary-dark); }

.site-footer {
  background: #10283f;
  color: #dce7f0;
  padding-top: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 50px;
}
.footer-brand { color: white; }
.footer-grid p { max-width: 420px; color: #aebfcd; }
.footer-grid h3 { color: white; margin-top: 0; }
.footer-grid > div:not(:first-child) { display: flex; flex-direction: column; gap: 10px; }
.footer-grid a:hover { color: white; }
.footer-bottom {
  margin-top: 50px;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,.1);
  color: #aebfcd;
  font-size: .9rem;
}

.legal-main {
  padding: 80px 0;
  background: var(--soft);
  min-height: 70vh;
}
.legal-content {
  max-width: 820px;
  background: white;
  padding: 48px;
  border-radius: 20px;
  box-shadow: var(--shadow);
}
.legal-content h1 { font-size: clamp(2.4rem, 5vw, 4rem); margin: 0; }
.legal-content h2 { margin-top: 32px; }
.legal-content p { color: var(--muted); }
.legal-content a { color: var(--primary); font-weight: 600; }
.updated { margin-top: 8px; }

@media (max-width: 900px) {
  .menu-button { display: block; }
  .main-nav {
    position: absolute;
    left: 20px; right: 20px; top: 70px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .privacy-nav {
    position: static;
    display: flex;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
  }
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 44px; }
  .hero-card { max-width: 560px; }
  .split { gap: 30px; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .cta-box { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 620px) {
  .container { width: min(100% - 28px, 1120px); }
  .hero { padding: 70px 0 60px; }
  .hero h1 { font-size: 2.55rem; }
  .section { padding: 68px 0; }
  .card-grid, .contact-cards, .footer-grid { grid-template-columns: 1fr; }
  .service-item { grid-template-columns: 48px 1fr; }
  .cta-box, .legal-content { padding: 28px; }
  .hero-actions .button { width: 100%; }
  .trust-row { gap: 18px; }
}


/* Featured application carousel */
.hero-showcase { min-width: 0; }
.showcase-frame {
  position: relative;
  background: white;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.showcase-frame > img {
  width: 100%;
  aspect-ratio: 14 / 9;
  object-fit: contain;
  background: #f7f9fb;
  border-radius: 16px;
  transition: opacity .25s ease;
}
.showcase-caption { padding: 18px 8px 8px; }
.showcase-caption span { color: var(--accent); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 800; }
.showcase-caption h2 { margin: 6px 0 0; font-family: "Manrope", sans-serif; font-size: 1.35rem; }
.showcase-arrow {
  position: absolute; top: 43%; transform: translateY(-50%);
  width: 42px; height: 42px; border: 0; border-radius: 50%;
  background: rgba(16,40,63,.86); color: white; font-size: 1.8rem; cursor: pointer;
}
.showcase-prev { left: 24px; }
.showcase-next { right: 24px; }
.showcase-dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.showcase-dot { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: #bdc9d4; cursor: pointer; }
.showcase-dot.active { background: var(--accent); }

/* Portfolio gallery */
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.portfolio-card { padding: 0; border: 1px solid var(--border); border-radius: 16px; background: white; overflow: hidden; text-align: left; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; }
.portfolio-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.portfolio-card img { width: 100%; aspect-ratio: 14/9; object-fit: contain; background: #f7f9fb; }
.portfolio-card span { display: block; padding: 15px 16px; font-weight: 700; color: var(--primary-dark); }
.portfolio-note { margin-top: 26px; padding: 18px; border-left: 4px solid var(--teal); background: white; color: var(--muted); }
.portfolio-note code { color: var(--primary-dark); }
.image-modal[hidden] { display: none; }
.image-modal { position: fixed; inset: 0; z-index: 2000; background: rgba(7,19,31,.9); display: grid; place-items: center; padding: 50px 22px 30px; }
.image-modal img { max-width: min(1200px, 94vw); max-height: 78vh; object-fit: contain; background: white; border-radius: 12px; }
.image-modal p { color: white; font-weight: 700; margin: 14px 0 0; text-align: center; }
.modal-close { position: fixed; top: 18px; right: 22px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: white; color: var(--ink); font-size: 1.8rem; cursor: pointer; }
@media (max-width: 900px) { .portfolio-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .portfolio-grid { grid-template-columns: 1fr; } .showcase-arrow { width: 38px; height: 38px; } }


/* Dynamic portfolio controls */
.portfolio-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.portfolio-toolbar label {
  font-weight: 700;
  color: var(--primary-dark);
}
.portfolio-toolbar select {
  min-width: 210px;
  padding: 11px 38px 11px 13px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: white;
  color: var(--ink);
}
#portfolioCount {
  margin-left: auto;
  color: var(--muted);
  font-weight: 600;
}

/* Demonstration videos */
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.video-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(18, 54, 84, 0.08);
}
.video-card iframe,
.video-card video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  background: #0b1723;
}
.video-card {
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.video-card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 22px;
}
.video-card h3 {
  margin: 0 0 10px;
  color: var(--primary-dark);
  font-family: "Manrope", sans-serif;
  font-size: 1.2rem;
  line-height: 1.35;
}
.video-card-content p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: .95rem;
}
.video-watch-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: auto;
  padding: 11px 15px;
  border-radius: 9px;
  background: var(--primary);
  color: white;
  font-weight: 700;
  transition: transform .2s ease, background .2s ease;
}
.video-watch-button:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}
.youtube-channel-cta {
  margin-top: 42px;
  padding: 38px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  background: linear-gradient(135deg, #10283f, var(--primary));
  color: white;
  box-shadow: var(--shadow);
}
.youtube-channel-copy { max-width: 700px; }
.youtube-badge {
  display: inline-block;
  margin-bottom: 12px;
  color: #ffd2bd;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.youtube-channel-cta h3 {
  margin: 0 0 12px;
  font-family: "Manrope", sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  line-height: 1.2;
}
.youtube-channel-cta p {
  margin: 0;
  color: #dce7f0;
}
.youtube-channel-button {
  flex: 0 0 auto;
  gap: 9px;
  background: white;
  color: var(--primary-dark);
  white-space: nowrap;
}
.youtube-channel-button:hover { background: #f4f7fa; }
.video-empty {
  padding: 24px;
  border: 1px dashed var(--teal);
  border-radius: 14px;
  background: var(--soft);
  color: var(--muted);
}
.video-empty[hidden] { display: none; }

@media (max-width: 700px) {
  .video-grid { grid-template-columns: 1fr; }
  #portfolioCount { width: 100%; margin-left: 0; }
  .youtube-channel-cta {
    padding: 28px;
    flex-direction: column;
    align-items: flex-start;
  }
  .youtube-channel-button { width: 100%; white-space: normal; }
}


/* Programming and ICT training */
.training-section {
  padding-top: 0;
}
.training-box {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 34px;
  align-items: stretch;
  padding: 46px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: linear-gradient(145deg, #f8fbfd 0%, #eef5fa 100%);
  box-shadow: 0 16px 45px rgba(18, 54, 84, 0.09);
}
.training-copy h2 {
  margin: 0 0 18px;
  font-family: "Manrope", sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.15;
  letter-spacing: -.035em;
}
.training-copy > p:last-of-type {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
}
.training-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.training-topics span {
  padding: 9px 13px;
  border: 1px solid rgba(47,103,153,.18);
  border-radius: 999px;
  background: white;
  color: var(--primary-dark);
  font-size: .88rem;
  font-weight: 700;
}
.training-contact-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px;
  border-radius: 19px;
  background: white;
  box-shadow: 0 12px 32px rgba(18, 54, 84, 0.1);
}
.training-contact-label {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.training-contact-card h3 {
  margin: 0 0 12px;
  color: var(--primary-dark);
  font-family: "Manrope", sans-serif;
  font-size: 1.55rem;
  line-height: 1.25;
}
.training-contact-card > p:not(.training-contact-label) {
  margin: 0;
  color: var(--muted);
}
.training-actions {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}
.training-whatsapp {
  background: var(--primary);
  color: white;
}
.training-whatsapp:hover { background: var(--primary-dark); }
.training-email {
  border: 1px solid var(--border);
  background: var(--soft);
  color: var(--primary-dark);
}
.training-email:hover { background: white; }

@media (max-width: 900px) {
  .training-box { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .training-box { padding: 28px; }
  .training-contact-card { padding: 24px; }
  .training-actions .button { width: 100%; }
}
