:root {
  --bg: #0b1020;
  --bg-2: #0e1429;
  --txt: #e8ecf4;
  --muted: #93a1c7;
  --brand: #7c5cff;
  --stroke: #21305b;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  color: var(--txt);
  background: radial-gradient(
      1200px 800px at 80% -10%,
      rgba(124, 92, 255, 0.2),
      transparent 60%
    ),
    radial-gradient(
      800px 600px at 0% 10%,
      rgba(0, 217, 255, 0.14),
      transparent 60%
    ),
    linear-gradient(180deg, var(--bg), var(--bg-2) 60%);
  overflow-x: hidden;
}

a {
  color: var(--txt);
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  width: min(1140px, 92%);
  margin: 0 auto;
}

header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(6px);
  background: rgba(11, 16, 32, 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #081026, #0f1427);
}

.brand-title {
  font-weight: 800;
}

.nav-links {
  display: flex;
  gap: 16px;
  align-items: center;
}

.nav-links a {
  padding: 8px 12px;
  border-radius: 12px;
  color: var(--txt);
  font-weight: 600;
}

/* Mobile: hamburger + collapsed nav */
.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--stroke);
  color: var(--txt);
  padding: 8px;
  border-radius: 10px;
  cursor: pointer;
}

.menu-toggle .hamburger {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--txt);
  position: relative;
  transition: background 0.18s ease;
}

.menu-toggle .hamburger::before,
.menu-toggle .hamburger::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--txt);
  transition: transform 0.18s ease;
}

.menu-toggle .hamburger::before {
  top: -6px;
}

.menu-toggle .hamburger::after {
  top: 6px;
}

.menu-toggle[aria-expanded="true"] .hamburger {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] .hamburger::before {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .hamburger::after {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 640px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav {
    align-items: center;
  }

  .nav-links {
    display: none;
    position: absolute;
    right: 8px;
    left: 8px;
    top: 64px;
    background: rgba(11, 16, 32, 0.96);
    border-radius: 12px;
    flex-direction: column;
    padding: 12px;
    gap: 6px;
    border: 1px solid var(--stroke);
    z-index: 40;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 10px 12px;
    border-radius: 8px;
    display: block;
  }
}

.cta {
  display: none;
}

@media (min-width: 860px) {
  .cta {
    display: inline-flex;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: linear-gradient(
    180deg,
    rgba(124, 92, 255, 0.18),
    rgba(0, 0, 0, 0)
  );
  color: var(--txt);
  font-weight: 700;
  box-shadow: var(--shadow);
}

/* Hero */
.hero {
  padding: 86px 0 72px;
}

.hero .grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  font-size: 12px;
  background: rgba(124, 92, 255, 0.14);
  border-radius: 999px;
  border: 1px solid rgba(124, 92, 255, 0.35);
  color: #cbd5ff;
  font-weight: 700;
}

h1 {
  font-size: clamp(32px, 5.2vw, 52px);
  margin: 14px 0 12px;
  line-height: 1.06;
  font-weight: 900;
}

.gradient {
  background: linear-gradient(90deg, var(--txt), #c7e9ff 40%, #cdbbff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sub {
  color: var(--muted);
  font-size: 18px;
}

.hero-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 22px;
}

.card {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.03),
    rgba(255, 255, 255, 0.01)
  );
  border: 1px solid var(--stroke);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow);
}

.kpi {
  font-weight: 900;
  font-size: 22px;
}

.illus {
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--stroke);
  background: linear-gradient(135deg, #0f1638, #0b1230);
  display: grid;
  place-items: center;
}

@media (max-width: 980px) {
  .hero .grid {
    grid-template-columns: 1fr;
  }

  .hero-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .hero-cards {
    grid-template-columns: 1fr;
  }
}

/* Sections */
section {
  padding: 72px 0;
}

.section-h {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.section-h h2 {
  margin: 0;
  font-size: clamp(22px, 3vw, 28px);
}

.section-h p {
  margin: 0;
  color: var(--txt);
  text-align: center;
  width: 50%;
}

/* About & Services (updated to match edit.PNG) */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.lead {
  font-size: 18px;
  color: #dbe8ff;
}

.ghost {
  color: var(--muted);
}

/* About updated layout */
.about-wrap {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 28px;
  align-items: center;
}

.about-illus img {
  width: 100%;
  height: 100%;
  max-width: 420px;
  object-fit: cover;
  display: block;
  margin: auto;
}

.about-card {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.02),
    rgba(255, 255, 255, 0.01)
  );
  border: 1px solid var(--stroke);
  border-radius: 24px;
  padding: 5px 20px;
  box-shadow: var(--shadow);
}

.about-card .about-title {
  color: var(--brand);
  font-weight: 800;
  margin: 0 0 8px;
}

.about-list {
  margin-top: 12px;
  padding-left: 18px;
  color: var(--txt);
}

.services-feature .fp-inner.large {
  max-width: 820px;
  padding: 26px;
  gap: 22px;
}

.services-feature .fp-media {
  width: 260px;
  height: 160px;
  border-radius: 16px;
}

.services-feature .fp-body h3 {
  font-size: 20px;
  margin: 0 0 6px;
}

/* Service grid (fallback/legacy) */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 12px;
}

.service {
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: linear-gradient(
    180deg,
    rgba(124, 92, 255, 0.08),
    rgba(255, 255, 255, 0)
  );
  box-shadow: var(--shadow);
}

/* Teams adjustments */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  justify-items: center;
}

.team-card {
  width: 260px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.team-card .tc-media {
  height: 360px;
  overflow: hidden;
}

.team-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.team-card .overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.5));
  color: var(--txt);
}

.team-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

@media (max-width: 980px) {
  .two-col {
    grid-template-columns: 1fr;
  }

  .about-wrap {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-feature .fp-inner.large {
    padding: 20px;
  }
}

@media (max-width: 560px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}

/* Portfolio / Featured */
.fp-inner {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid var(--stroke);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.02),
    rgba(255, 255, 255, 0.01)
  );
}

.fp-media {
  width: 180px;
  height: 120px;
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
}

/* Teams */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.team-card {
  border: 1px solid var(--stroke);
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.02),
    rgba(255, 255, 255, 0.01)
  );
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}

.team-card:hover {
  transform: translateY(-8px);
}

.tc-media {
  height: 160px;
  overflow: hidden;
}

.tc-body {
  padding: 12px;
}

footer {
  padding: 48px 0 64px;
  color: var(--muted);
}

.footer-links {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

/* Decorative */
.bg-decor {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 1100px;
  max-width: 95%;
  top: 1100px;
  opacity: 0.12;
  filter: blur(12px);
  pointer-events: none;
}

@media (max-width: 980px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .team-grid {
    grid-template-columns: 1fr;
  }

  .section-h {
    flex-direction: column;
    align-items: center;
  }

  .footer-links {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Accessibility focus */
a:focus {
  outline: 3px solid rgba(124, 92, 255, 0.22);
  outline-offset: 3px;
}

.three-section {
  background-color: #0d1e36;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  box-shadow: 0px -1px 5px #fafafabb;
  padding-top: 0px;
}

.three-section #services .fp-media {
  width: 100%;
  max-width: 400px;
}

.three-section #services .services-feature {
  max-width: 600px;
  margin: auto;
  height: 520px;
  border-radius: 36px;
  background: radial-gradient(
      320px 320px at 55% 35%,
      #b7cde1 0%,
      #757e89 35%,
      rgba(138, 163, 191, 0.15) 60%,
      rgba(10, 24, 52, 0) 75%
    ),
    linear-gradient(180deg, #1a2b4f 0%, #0a1834 100%);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.12),
    inset 0 -2px 6px rgba(0, 0, 0, 0.35);

  padding: 40px;
}

.three-section #services .services-feature .countries {
  display: flex;
  justify-content: center;
}

.three-section #services .services-feature .countries > div {
  background-color: #fff;
  border-radius: 15px;
  padding: 10px;
  margin: 0 10px;
  position: relative;
}

.three-section #services .services-feature .countries > div .flag {
  width: 100%;
}

.three-section #services .services-feature .countries > div .tick {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -12px;
  margin: auto;
}

.three-section #services .services-feature .countries > div span {
  text-align: center;
  font-size: 12px;
  display: block;
  color: #07102a;
  margin: 10px 0;
}

.three-section #services .services-feature .countries .selected {
  border: 1px solid #1049c5;
}

.three-section #services .services-feature .countries .tick {
  display: none;
}

.three-section #services .services-feature .countries .selected .tick {
  display: block;
}

.three-section #services .country-info {
  display: flex;
  flex-direction: row;
  justify-content: center;
  background-color: #fff;
  border-radius: 15px;
  align-items: center;
  padding: 5px;

  margin-top: 50px;
}

.three-section #services .country-info .left img {
  width: 500px;
  display: block;
  align-self: center;
}

.three-section #services .country-info .right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-left: 10px;
}

.three-section #services .country-info .right h1 {
  font-size: 20px;
  color: #493acf;
  line-height: 0;
}

.three-section #services .country-info .right a {
  text-decoration: none;
  color: #5a5a5c;
}

.three-section #services .country-info .right div {
  color: #0f1427;
  font-size: 13px;
}

.three-section #services .country-info .right .hr {
  height: 2px;
  background-color: #eeeef0;
}

.three-section #services .country-info .right .hr {
  margin: 10px 0;
}

@media (max-width: 640px) {
  .three-section #services .country-info {
    flex-direction: column;
  }

  .three-section #services .country-info .left img {
    width: 200px;
  }
}

.contact-section {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
}

@media (max-width: 768px) {
  .contact-section {
    display: grid;
    grid-template-columns: 1fr;
  }
}

.footer-list {
  display: flex;
  list-style: none;
  justify-content: center;
  width: 100%;
}

.footer-list li {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: 100%;
}
