html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { background: #eef2f8; }

/* ---------- Decorative background ---------- */
.site-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(20, 184, 166, 0.14), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(27, 68, 127, 0.16), transparent 60%),
    linear-gradient(180deg, #f4f7fc 0%, #e9eef7 60%, #eef2f8 100%);
}
.site-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(11, 30, 63, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(11, 30, 63, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, #000 35%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 35%, transparent 85%);
}

/* ---------- Navbar ---------- */
#navbar.scrolled nav {
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 30px -15px rgba(7, 22, 51, 0.25);
}
.nav-link {
  position: relative;
  padding: 8px 14px;
  border-radius: 10px;
  transition: color .2s ease, background .2s ease;
}
.nav-link:hover { background: rgba(11, 30, 63, 0.06); color: #071633; }
.nav-link::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 2px;
  background: #14b8a6;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
  border-radius: 2px;
}
.nav-link:hover::after { transform: scaleX(1); }

.mobile-link {
  display: block;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 600;
  color: #0b1e3f;
  border-bottom: 1px solid rgba(11,30,63,0.08);
}
.mobile-link:last-child { border-bottom: 0; }
.mobile-link:active { background: rgba(11,30,63,0.05); }

/* ---------- Service cards ---------- */
.service-card {
  position: relative;
  border-radius: 22px;
  padding: 26px 24px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 20px 50px -25px rgba(7, 22, 51, 0.25);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #14b8a6, transparent);
  opacity: .7;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 70px -25px rgba(7, 22, 51, 0.35);
  border-color: rgba(20, 184, 166, 0.4);
}
.service-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(145deg, #0b1e3f, #12305f);
  color: #5eead4;
  box-shadow: 0 10px 25px -10px rgba(7, 22, 51, 0.5), inset 0 1px 0 rgba(255,255,255,0.08);
  margin-bottom: 18px;
}
.service-title {
  font-size: 19px;
  font-weight: 700;
  color: #071633;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}
.service-desc {
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(11, 30, 63, 0.72);
  margin: 0 0 16px;
}
.service-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px dashed rgba(11, 30, 63, 0.15);
  padding-top: 14px;
}
.service-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #12305f;
}
.service-list svg { color: #14b8a6; flex: 0 0 auto; }

/* ---------- Value cards ---------- */
.value-card {
  text-align: center;
  padding: 32px 24px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform .3s ease;
}
.value-card:hover { transform: translateY(-4px); }
.value-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #5eead4, #14b8a6 60%, #0f766e);
  color: #071633;
  box-shadow: 0 15px 30px -12px rgba(20, 184, 166, 0.5);
}
.value-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
  color: #071633;
}
.value-card p {
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(11, 30, 63, 0.72);
  margin: 0;
}

/* ---------- Contact cards (dark section) ---------- */
.contact-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 22px 20px 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #fff;
  text-decoration: none;
  overflow: hidden;
  transition: transform .3s ease, background .3s ease, border-color .3s ease;
}
.contact-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(circle at 20% 0%, var(--accent, #14b8a6), transparent 60%);
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.contact-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
}
.contact-card:hover::before { opacity: 0.22; }

.contact-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--accent, #5eead4);
  margin-bottom: 14px;
}
.contact-label {
  position: relative;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.contact-sub {
  position: relative;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.65);
}
.contact-handle {
  position: relative;
  align-self: flex-start;
  max-width: 100%;
  margin-top: 12px;
  padding: 6px 11px;
  border-radius: 11px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  overflow-wrap: anywhere;
  transition: background .3s ease, border-color .3s ease;
}
.contact-card:hover .contact-handle {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
}
.contact-arrow {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 18px;
  height: 18px;
  color: rgba(255, 255, 255, 0.5);
  transition: transform .25s ease, color .25s ease;
}
.contact-card:hover .contact-arrow {
  transform: translate(3px, -3px);
  color: var(--accent, #5eead4);
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
