/* ==========================================================================
   SMARTLYCODES – Glassmorphism theme
   Loaded after mbr-additional.css on every page. Content/markup stays the same;
   this layer restyles surfaces, type, buttons, forms and motion.
   ========================================================================== */

:root {
  --g-bg: #07080d;
  --g-surface: rgba(255, 255, 255, 0.065);
  --g-surface-hi: rgba(255, 255, 255, 0.11);
  --g-border: rgba(255, 255, 255, 0.14);
  --g-border-hi: rgba(255, 255, 255, 0.3);
  --g-ink: #f4f5f9;
  --g-ink-dim: rgba(244, 245, 249, 0.74);
  --g-accent: #ff2b3a;
  --g-accent-deep: #c20f24;
  --g-glow: rgba(255, 43, 58, 0.38);
  --g-blur: 22px;
  --g-radius: 22px;
  --g-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Backdrop: deep ink with slow drifting colour pools ---------- */
html { background: var(--g-bg); }

body {
  background: transparent !important;
  color: var(--g-ink);
  position: relative;
  -webkit-font-smoothing: antialiased;
  animation: g-page-in 0.7s var(--g-ease) both;
}

body::before {
  content: "";
  position: fixed;
  inset: -25%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(38% 34% at 18% 22%, rgba(255, 43, 58, 0.34), transparent 70%),
    radial-gradient(34% 32% at 82% 18%, rgba(88, 76, 255, 0.26), transparent 70%),
    radial-gradient(40% 36% at 70% 82%, rgba(255, 43, 58, 0.2), transparent 70%),
    radial-gradient(32% 30% at 24% 84%, rgba(40, 150, 255, 0.16), transparent 70%);
  animation: g-drift 26s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes g-drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(3%, -2%, 0) scale(1.06); }
  100% { transform: translate3d(-3%, 3%, 0) scale(1.02); }
}
@keyframes g-page-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes g-drop {
  from { opacity: 0; transform: translateY(-14px); }
  to   { opacity: 1; transform: none; }
}
@keyframes g-rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

/* Let the backdrop show through the flat Mobirise section colours */
section { background-color: transparent !important; }
/* flat/gradient section fills go; photographic (parallax / hero) sections keep their image */
section[class*="cid-"]:not(.mbr-parallax-background):not(.header4) {
  background: transparent !important;
}

/* ---------- Type ---------- */
section h1, section h2, section h3, section h4, section h5,
.mbr-section-title, .plan-title, .card-title {
  color: var(--g-ink) !important;
  letter-spacing: 0.01em;
}
section h2.display-2, section h1.display-2 {
  font-weight: 500;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}
.mbr-text, .mbr-text p, .mbr-section-subtitle, .mbr-fonts-style { color: inherit; }
section .mbr-text, section .mbr-white { color: var(--g-ink-dim) !important; }
a { transition: color 0.25s ease; }

/* ---------- Navigation ---------- */
.cid-rvPT0YgEgq .navbar,
.cid-rvPT0YgEgq .navbar-dropdown.bg-color.transparent.opened {
  background: rgba(10, 11, 18, 0.5) !important;
  -webkit-backdrop-filter: blur(var(--g-blur)) saturate(170%);
  backdrop-filter: blur(var(--g-blur)) saturate(170%);
  border-bottom: 1px solid var(--g-border);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.28), inset 0 -1px 0 rgba(255, 255, 255, 0.04);
  animation: g-drop 0.8s var(--g-ease) both;
}

.cid-rvPT0YgEgq .nav-item .nav-link {
  position: relative;
  color: var(--g-ink) !important;
  font-weight: 400;
  letter-spacing: 0.14em;
  opacity: 0.86;
  padding: 0.7rem 0 !important;
  margin: 0 0.9rem !important;
  transition: opacity 0.25s ease;
}
.cid-rvPT0YgEgq .nav-item .nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.25rem;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--g-accent), #ff7a59);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--g-ease);
}
.cid-rvPT0YgEgq .nav-item .nav-link:hover { opacity: 1; }
.cid-rvPT0YgEgq .nav-item .nav-link:hover::after { transform: scaleX(1); }

.cid-rvPT0YgEgq .navbar-buttons .btn {
  background: var(--g-surface) !important;
  border: 1px solid var(--g-border-hi) !important;
  color: var(--g-ink) !important;
  border-radius: 999px;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: transform 0.3s var(--g-ease), background 0.3s ease, box-shadow 0.3s ease;
}
.cid-rvPT0YgEgq .navbar-buttons .btn:hover {
  background: var(--g-surface-hi) !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 26px var(--g-glow), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.cid-rvPT0YgEgq .navbar-buttons .btn .socicon { color: #3ee37a; }

@media (max-width: 991px) {
  .cid-rvPT0YgEgq .collapsed .navbar-collapse.show,
  .cid-rvPT0YgEgq .collapsed .navbar-collapse.collapsing { padding-bottom: 0.5rem; }
}

/* ---------- Buttons ---------- */
.btn { border-radius: 999px !important; letter-spacing: 0.08em; font-weight: 500; }

.btn-secondary, .btn-primary, .btn-form, .btn-success {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 60, 74, 0.95), rgba(190, 14, 34, 0.92)) !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  color: #fff !important;
  box-shadow: 0 10px 28px var(--g-glow), inset 0 1px 0 rgba(255, 255, 255, 0.38);
  transition: transform 0.35s var(--g-ease), box-shadow 0.35s ease, filter 0.3s ease;
}
.btn-secondary::after, .btn-primary::after, .btn-form::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: -60%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-20deg);
  transition: left 0.7s var(--g-ease);
  pointer-events: none;
}
.btn-secondary:hover, .btn-primary:hover, .btn-form:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(255, 43, 58, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  filter: saturate(1.1);
}
.btn-secondary:hover::after, .btn-primary:hover::after, .btn-form:hover::after { left: 130%; }
.btn-secondary:active, .btn-primary:active, .btn-form:active { transform: translateY(0); }

.btn-white-outline, .btn-black-outline, .btn-secondary-outline, .btn-primary-outline {
  background: var(--g-surface) !important;
  border: 1px solid var(--g-border-hi) !important;
  color: var(--g-ink) !important;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: transform 0.3s var(--g-ease), background 0.3s ease, box-shadow 0.3s ease;
}
.btn-white-outline:hover, .btn-black-outline:hover, .btn-secondary-outline:hover, .btn-primary-outline:hover {
  background: var(--g-surface-hi) !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

/* ---------- Glass surface helper (applied to many components below) ---------- */
.gp-card,
.mbr-testimonial .panel-item,
.form-container,
.header3 .container, .header11 .container,
.cid-uSvDmlKAPR .container, .cid-uSwYUz7oP6 .container,
.cid-uTQd8ZSy5k .container, .cid-uTQd8hwZvs .container,
.cid-uTQlNrk3ZK .img-item .img-caption {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.035)),
    var(--g-surface);
  border: 1px solid var(--g-border);
  border-radius: var(--g-radius);
  -webkit-backdrop-filter: blur(var(--g-blur)) saturate(160%);
  backdrop-filter: blur(var(--g-blur)) saturate(160%);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

/* Cursor-following highlight on glass cards (set by glass.js) */
.gp-card, .features8 .card, .mbr-testimonial .panel-item, .form-container { position: relative; }
.gp-card::before, .features8 .card::before, .mbr-testimonial .panel-item::before, .form-container::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, 0.14), transparent 60%);
  transition: opacity 0.4s ease;
  z-index: 0;
}
.gp-card:hover::before, .features8 .card:hover::before,
.mbr-testimonial .panel-item:hover::before, .form-container:hover::before { opacity: 1; }
.gp-card > *, .features8 .card > *, .mbr-testimonial .panel-item > *, .form-container > * { position: relative; z-index: 1; }

/* ---------- Services cards (features8) ---------- */
.features8 .card {
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.03) 55%),
    rgba(14, 16, 26, 0.34) !important;
  border: 1px solid var(--g-border) !important;
  border-radius: var(--g-radius);
  -webkit-backdrop-filter: blur(var(--g-blur)) saturate(160%);
  backdrop-filter: blur(var(--g-blur)) saturate(160%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  overflow: hidden;
  padding: 0 !important;
  margin: 0 0.85rem 1.7rem !important;
  flex: 0 0 calc(100% - 1.7rem) !important;
  max-width: calc(100% - 1.7rem) !important;
  transition: transform 0.5s var(--g-ease), box-shadow 0.5s ease, border-color 0.5s ease;
}
@media (min-width: 768px) {
  .features8 .card { flex-basis: calc(50% - 1.7rem) !important; max-width: calc(50% - 1.7rem) !important; }
}
@media (min-width: 992px) {
  .features8 .card { flex-basis: calc(33.3333% - 1.7rem) !important; max-width: calc(33.3333% - 1.7rem) !important; }
}
.features8 .media-container-row { align-items: stretch; }
.features8 .card:hover {
  transform: translateY(-8px);
  border-color: var(--g-border-hi) !important;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45), 0 0 50px -10px var(--g-glow), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.features8 .card-img,
.features8 .card-box {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.features8 .card-box { flex: 1; }
.features8 .card-img .mbr-iconfont {
  color: #fff !important;
  filter: drop-shadow(0 6px 18px rgba(255, 43, 58, 0.55));
  transition: transform 0.5s var(--g-ease);
}
.features8 .card:hover .card-img .mbr-iconfont { transform: translateY(-4px) scale(1.06); }
.features8 .card-title { font-weight: 500; letter-spacing: 0.12em; }
.features8 .card .mbr-text { color: rgba(244, 245, 249, 0.86) !important; }

/* Soften the photographic parallax behind glass so panels read clearly */
.mbr-parallax-background .mbr-overlay { background-color: #05060a !important; }
.features8.mbr-parallax-background .mbr-overlay { opacity: 0.62 !important; }

/* ---------- About us ---------- */
.testimonials5 .mbr-testimonial .panel-item {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.035)),
    var(--g-surface) !important;
  padding: 4.2rem 2.4rem 2.2rem;
  margin-top: 60px;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  overflow: visible;
}
.testimonials5 .mbr-testimonial .card-block { padding: 0; }
.testimonials5 .testimonial-photo {
  position: absolute;
  left: 50%;
  top: -60px;
  transform: translateX(-50%);
  z-index: 2;
}
.testimonials5 .testimonial-photo img {
  border: 3px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45), 0 0 0 8px rgba(255, 255, 255, 0.08), 0 0 50px -8px var(--g-glow);
}
.testimonials5 .mbr-testimonial .mbr-text {
  max-width: 62ch;
  margin-left: auto !important;
  margin-right: auto !important;
  font-size: 1.12rem;
  line-height: 1.75;
  text-align: center;
  color: var(--g-ink) !important;
}

/* ---------- Website packages (new glass pricing) ---------- */
.glass-pricing {
  padding: 120px 0 90px;
  position: relative;
}
.glass-pricing .gp-title {
  text-align: center;
  font-family: "Oswald", sans-serif;
  font-weight: 500;
  font-size: 3rem;
  margin: 0 0 3rem;
  line-height: 1.2;
}
.gp-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
  align-items: stretch;
}
.gp-card {
  display: flex;
  flex-direction: column;
  padding: 2.4rem 2rem 2rem;
  transition: transform 0.5s var(--g-ease), border-color 0.4s ease, box-shadow 0.5s ease;
}
.gp-card:hover {
  transform: translateY(-10px);
  border-color: var(--g-border-hi);
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.5), 0 0 60px -12px var(--g-glow), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.gp-head { text-align: center; padding-bottom: 1.5rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--g-border); }
.gp-name {
  font-family: "Rubik", sans-serif;
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  margin: 0 0 1rem;
  line-height: 1.2;
  color: var(--g-ink-dim) !important;
}
.gp-price { margin: 0; display: flex; align-items: flex-start; justify-content: center; line-height: 1; color: var(--g-ink); }
.gp-cur { font-size: 1.5rem; font-weight: 500; margin: 0.55rem 0.35rem 0 0; color: #ff6b76; }
.gp-amt {
  font-family: "Rubik", sans-serif;
  font-size: 4rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #fff 30%, rgba(255, 255, 255, 0.62));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.gp-list { list-style: none; margin: 0 0 2rem; padding: 0; flex: 1; }
.gp-list li {
  position: relative;
  padding: 0.62rem 0 0.62rem 2rem;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--g-ink);
}
.gp-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.78rem;
  width: 1.15rem; height: 1.15rem;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.2 8.4l2.4 2.4 5.2-5.4' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat,
    linear-gradient(135deg, rgba(255, 60, 74, 0.95), rgba(190, 14, 34, 0.9));
  box-shadow: 0 4px 12px var(--g-glow);
}
.gp-cta {
  display: block;
  text-align: center;
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: #fff !important;
  background: linear-gradient(135deg, rgba(255, 60, 74, 0.95), rgba(190, 14, 34, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 10px 28px var(--g-glow), inset 0 1px 0 rgba(255, 255, 255, 0.38);
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--g-ease), box-shadow 0.35s ease;
}
.gp-cta::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: -60%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-20deg);
  transition: left 0.7s var(--g-ease);
}
.gp-cta:hover { transform: translateY(-2px); box-shadow: 0 16px 38px rgba(255, 43, 58, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.5); text-decoration: none; }
.gp-cta:hover::after { left: 130%; }

/* On the home page the packages sit under their own heading */
.glass-pricing.gp-compact { padding: 30px 0 90px; }

@media (max-width: 991px) {
  .gp-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .glass-pricing { padding-top: 100px; }
  .glass-pricing .gp-title { font-size: 2.2rem; }
}

/* ---------- Contact form ---------- */
.form-container { padding: 1.6rem; }
.form-container .form-control {
  background: rgba(255, 255, 255, 0.07) !important;
  border: 1px solid var(--g-border) !important;
  color: var(--g-ink) !important;
  border-radius: 14px;
  padding-top: 0.8rem; padding-bottom: 0.8rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.form-container .form-control::placeholder { color: rgba(244, 245, 249, 0.55); }
.form-container .form-control:focus {
  background: rgba(255, 255, 255, 0.11) !important;
  border-color: rgba(255, 90, 100, 0.8) !important;
  box-shadow: 0 0 0 4px rgba(255, 43, 58, 0.18) !important;
}
.form-container .input-group-btn { display: block; text-align: right; }
.cid-uTQmhVg63q a.text-white, .cid-s22SnkvssK a.text-white { transition: opacity 0.25s ease; }
.cid-uTQmhVg63q a.text-white:hover, .cid-s22SnkvssK a.text-white:hover { opacity: 0.75; }

/* ---------- Portfolio ---------- */
/* "Happy client" red slabs become glass panels floating on the backdrop */
.header3, .header11 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
.header3 .container, .header11 .container, .cid-uSvDmlKAPR .container, .cid-uSwYUz7oP6 .container,
.cid-uTQd8ZSy5k .container, .cid-uTQd8hwZvs .container { padding: 2.6rem 2rem; }
.header3 .btn, .header11 .btn { background: var(--g-surface) !important; }

.mbr-gallery .mbr-gallery-item > div,
.mbr-gallery .mbr-gallery-item .item-wrapper,
.gallery5 .item-wrapper {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid var(--g-border) !important;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}
.mbr-gallery .mbr-gallery-item:hover > div { border-color: var(--g-border-hi) !important; box-shadow: 0 24px 56px rgba(0, 0, 0, 0.5), 0 0 40px -12px var(--g-glow); }
.mbr-gallery .mbr-gallery-item img { transition: transform 0.8s var(--g-ease); }
.mbr-gallery .mbr-gallery-item:hover img { transform: scale(1.04); }

.cid-uTbdbZj5i9 .img-item, .cid-uTbkbj6pF1 .img-item, .cid-uTblaYT7xR .img-item, .cid-uTbpqYpevd .img-item,
.cid-uTQlNrk3ZK .img-item, .cid-uTQlP0qIgj .img-item, .cid-uTQlPHLj4O .img-item { overflow: hidden; }
.img-item .img-caption {
  background: rgba(10, 11, 18, 0.55) !important;
  -webkit-backdrop-filter: blur(var(--g-blur));
  backdrop-filter: blur(var(--g-blur));
  border-top: 1px solid var(--g-border);
}
.img-item .img-caption p, .img-item .img-caption { color: var(--g-ink) !important; }

/* ---------- Client logo strips ---------- */
.clients .carousel-item img, .clients .item img { border-radius: 14px; }
.clients .carousel-controls .carousel-control,
.clients .carousel-control {
  background: var(--g-surface) !important;
  border: 1px solid var(--g-border-hi) !important;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--g-ink) !important;
  transition: transform 0.3s var(--g-ease), background 0.3s ease;
}
.clients .carousel-control:hover { background: var(--g-surface-hi) !important; transform: scale(1.08); }
.clients .carousel-control span { color: var(--g-ink) !important; }

/* ---------- Follow-us strip ---------- */
.cid-uTPV8P5zSd { padding: 2.5rem 0 !important; }
.cid-uTPV8P5zSd .container {
  max-width: 560px;
  padding: 1.6rem 2rem;
  border-radius: var(--g-radius);
  border: 1px solid var(--g-border);
  background: linear-gradient(145deg, rgba(255, 43, 58, 0.22), rgba(255, 255, 255, 0.04));
  -webkit-backdrop-filter: blur(var(--g-blur)) saturate(160%);
  backdrop-filter: blur(var(--g-blur)) saturate(160%);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.socicon { transition: transform 0.35s var(--g-ease), filter 0.3s ease; }
a:hover > .socicon, .socicon:hover { transform: translateY(-3px) scale(1.12); filter: drop-shadow(0 6px 14px var(--g-glow)); }

/* ---------- Floating widgets ---------- */
.whatsapp-float {
  background: rgba(37, 211, 102, 0.78) !important;
  border: 1px solid rgba(255, 255, 255, 0.4);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.scrollToTop, .mbr-arrow-up a {
  background: var(--g-surface) !important;
  border: 1px solid var(--g-border-hi);
  border-radius: 50%;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

/* Mobirise promo strip at the page foot: blend into the backdrop */
section.display-7[style*="height: 4rem"], section.display-7[style*="height:4rem"] { background: transparent !important; }

/* ---------- Scroll reveal (only active when glass.js has run) ---------- */
.js-glass [data-g-reveal] {
  opacity: 0;
  transform: translateY(26px) scale(0.985);
  transition: opacity 0.9s var(--g-ease), transform 0.9s var(--g-ease);
  transition-delay: var(--g-delay, 0ms);
}
.js-glass [data-g-reveal].is-in { opacity: 1; transform: none; }
/* Hover lift must still win once revealed */
.js-glass .gp-card[data-g-reveal].is-in:hover,
.js-glass .features8 .card[data-g-reveal].is-in:hover { transition-delay: 0ms; }

/* ---------- Fallbacks & accessibility ---------- */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .gp-card, .mbr-testimonial .panel-item, .form-container,
  .features8 .card-img, .features8 .card-box,
  .cid-rvPT0YgEgq .navbar { background: rgba(22, 24, 36, 0.92) !important; }
}

a:focus-visible, button:focus-visible, .btn:focus-visible, .gp-cta:focus-visible, .form-control:focus-visible {
  outline: 2px solid #ff8a93 !important;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .js-glass [data-g-reveal] { opacity: 1; transform: none; }
}

/* a little breathing room under the logo strips */
.clients { padding-bottom: 1.5rem !important; }

/* keep "FOLLOW US!" on one line */
.cid-uTPV8P5zSd .container { max-width: 640px; }
.cid-uTPV8P5zSd h2, .cid-uTPV8P5zSd .mbr-section-title { white-space: nowrap; }

/* ---------- Hero video background ---------- */
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 78px; }
.header4.cid-rvPT2jRnBu { position: relative; overflow: hidden; }
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
  filter: grayscale(1) contrast(1.05);
}
.header4.cid-rvPT2jRnBu .mbr-overlay {
  z-index: 1;
  background: linear-gradient(180deg, rgba(5, 6, 10, 0.84), rgba(5, 6, 10, 0.72) 55%, rgba(5, 6, 10, 0.94)) !important;
  opacity: 1 !important;
}
.header4.cid-rvPT2jRnBu .container { position: relative; z-index: 2; }

/* ---------- Services cards: black ---------- */
.features8 .card {
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0) 45%),
    rgba(4, 4, 6, 0.9) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}
.features8 .card .mbr-text { color: rgba(244, 245, 249, 0.8) !important; }
.header4.cid-rvPT2jRnBu {
  background: #07080d url("../video/hero-poster.jpg") center / cover no-repeat !important;
}

/* keep the hero video playing even if the OS asks for reduced motion (it is muted, decorative and slow) */
@media (prefers-reduced-motion: reduce) { .hero-video { display: block !important; animation: none !important; } }

/* ==========================================================================
   Header: red gradient, centred menu, animated logo
   ========================================================================== */
.cid-rvPT0YgEgq .navbar,
.cid-rvPT0YgEgq .navbar-dropdown.bg-color.transparent.opened {
  background:
    linear-gradient(90deg, rgba(60, 0, 8, 0.94) 0%, rgba(168, 8, 26, 0.82) 28%, rgba(255, 43, 58, 0.62) 50%, rgba(168, 8, 26, 0.82) 72%, rgba(60, 0, 8, 0.94) 100%) !important;
  background-size: 140% 100% !important;
  border-bottom: 1px solid rgba(255, 140, 150, 0.3);
  box-shadow: 0 12px 40px rgba(120, 0, 15, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  animation: g-drop 0.8s var(--g-ease) both, g-hdr-shift 16s ease-in-out infinite alternate;
}
@keyframes g-hdr-shift { from { background-position: 0% 0; } to { background-position: 100% 0; } }

@media (min-width: 992px) {
  .cid-rvPT0YgEgq .navbar-nav {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin: 0 !important;
    flex-direction: row;
  }
  .cid-rvPT0YgEgq .navbar-buttons { margin-left: auto !important; }
}

/* Logo: entrance, soft glow pulse, masked light sweep, hover pop */
.cid-rvPT0YgEgq .navbar-logo a { position: relative; display: inline-block; }
.cid-rvPT0YgEgq .navbar-logo img {
  transform-origin: 30% 60%;
  transition: transform 0.5s var(--g-ease);
  animation:
    g-logo-in 1s var(--g-ease) 0.2s both,
    g-logo-glow 3.8s ease-in-out 1.4s infinite;
}
.cid-rvPT0YgEgq .navbar-logo a::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.95) 50%, transparent 65%) -150% 0 / 250% 100% no-repeat;
  -webkit-mask: url("../images/smartly-codes-3logo-1254x621.png") center / 100% 100% no-repeat;
  mask: url("../images/smartly-codes-3logo-1254x621.png") center / 100% 100% no-repeat;
  animation: g-logo-sheen 5.5s ease-in-out 2s infinite;
}
.cid-rvPT0YgEgq .navbar-logo a:hover img { transform: scale(1.09) rotate(-2deg); }
@keyframes g-logo-in {
  from { opacity: 0; transform: translateX(-26px) scale(0.82) rotate(-5deg); filter: blur(6px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes g-logo-glow {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(255, 255, 255, 0)); }
  50%      { filter: drop-shadow(0 0 14px rgba(255, 255, 255, 0.5)); }
}
@keyframes g-logo-sheen {
  0%, 55% { background-position: -150% 0; }
  100%    { background-position: 150% 0; }
}

/* Nav links read better on the red bar */
.cid-rvPT0YgEgq .nav-item .nav-link { opacity: 0.95; text-shadow: 0 1px 8px rgba(60, 0, 8, 0.5); }
.cid-rvPT0YgEgq .nav-item .nav-link::after { background: #fff; }
.cid-rvPT0YgEgq .navbar-buttons .btn { background: rgba(255, 255, 255, 0.14) !important; }

/* ==========================================================================
   Flyer showcase
   ========================================================================== */
.flyer-showcase { padding: 1rem 0 4rem; }
.fl-grid { column-count: 4; column-gap: 1.25rem; }
@media (max-width: 1100px) { .fl-grid { column-count: 3; } }
@media (max-width: 768px)  { .fl-grid { column-count: 2; column-gap: 0.8rem; } }

.fl-card {
  display: block;
  break-inside: avoid;
  margin: 0 0 1.25rem;
  cursor: zoom-in;
  text-decoration: none !important;
  -webkit-tap-highlight-color: transparent;
}
.fl-tilt {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--g-border);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0px)) scale(var(--sc, 1));
  transition: transform 0.45s var(--g-ease), box-shadow 0.45s ease, border-color 0.45s ease;
  will-change: transform;
}
.fl-card:hover .fl-tilt {
  --ty: -8px; --sc: 1.025;
  border-color: rgba(255, 120, 130, 0.65);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6), 0 0 48px -8px var(--g-glow), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.fl-card img { display: block; width: 100%; height: auto; transition: transform 1s var(--g-ease), filter 0.6s ease; }
.fl-card:hover img { transform: scale(1.07); filter: saturate(1.12) contrast(1.04); }

/* light sweep */
.fl-tilt::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 38%, rgba(255, 255, 255, 0.38) 50%, transparent 62%) -160% 0 / 260% 100% no-repeat;
}
.fl-card:hover .fl-tilt::before { background-position: 160% 0; transition: background-position 1s var(--g-ease); }

/* caption that glides up */
.fl-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 2.4rem 1rem 0.9rem;
  background: linear-gradient(0deg, rgba(5, 6, 10, 0.88), rgba(5, 6, 10, 0));
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.5s var(--g-ease), opacity 0.4s ease;
}
.fl-card:hover .fl-cap, .fl-card:focus-visible .fl-cap { transform: none; opacity: 1; }
.fl-cap-title { font-size: 0.92rem; font-weight: 500; letter-spacing: 0.04em; color: #fff; line-height: 1.3; }
.fl-cap-icon {
  flex: none;
  width: 2.1rem; height: 2.1rem;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7'/%3E%3C/svg%3E") center / 50% no-repeat,
    linear-gradient(135deg, rgba(255, 60, 74, 0.95), rgba(190, 14, 34, 0.92));
  box-shadow: 0 6px 18px var(--g-glow);
}
@media (hover: none) { .fl-cap { transform: none; opacity: 1; padding-top: 1.6rem; } }

/* lightbox */
.fl-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 4.5rem;
  background: rgba(4, 5, 9, 0.78);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s;
}
.fl-lightbox.is-open { opacity: 1; visibility: visible; }
.fl-lb-stage { display: flex; flex-direction: column; align-items: center; max-width: 100%; max-height: 100%; }
.fl-lb-img {
  max-width: 100%;
  max-height: calc(100vh - 8rem);
  border-radius: 16px;
  border: 1px solid var(--g-border-hi);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7), 0 0 80px -20px var(--g-glow);
  transform: scale(0.92) translateY(14px);
  opacity: 0;
  transition: transform 0.55s var(--g-ease), opacity 0.4s ease;
}
.fl-lightbox.is-open .fl-lb-img { transform: none; opacity: 1; }
.fl-lb-img.is-swap { transform: scale(0.96); opacity: 0; transition-duration: 0.18s; }
.fl-lb-title { margin-top: 1rem; color: var(--g-ink); font-weight: 500; letter-spacing: 0.08em; text-align: center; }
.fl-lb-btn {
  position: absolute;
  width: 3rem; height: 3rem;
  border-radius: 50%;
  border: 1px solid var(--g-border-hi);
  background: var(--g-surface-hi);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.3s var(--g-ease), background 0.3s ease;
}
.fl-lb-btn:hover { background: rgba(255, 43, 58, 0.55); transform: scale(1.1); }
.fl-lb-prev { left: 1rem; top: 50%; margin-top: -1.5rem; }
.fl-lb-next { right: 1rem; top: 50%; margin-top: -1.5rem; }
.fl-lb-close { top: 1rem; right: 1rem; }
@media (max-width: 640px) { .fl-lightbox { padding: 3.5rem 0.75rem 1rem; } .fl-lb-prev, .fl-lb-next { top: auto; bottom: 1rem; margin: 0; } }

/* ==========================================================================
   Header v3: true glass, black -> soft red gradient, restrained colour
   ========================================================================== */
.cid-rvPT0YgEgq .navbar,
.cid-rvPT0YgEgq .navbar-dropdown.bg-color.transparent.opened {
  background:
    linear-gradient(100deg, rgba(5, 5, 8, 0.74) 0%, rgba(8, 6, 10, 0.55) 45%, rgba(150, 12, 28, 0.34) 100%) !important;
  background-size: 100% 100% !important;
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  animation: g-drop 0.8s var(--g-ease) both;
}
.cid-rvPT0YgEgq .nav-item .nav-link { text-shadow: none; opacity: 0.9; }
.cid-rvPT0YgEgq .nav-item .nav-link::after { background: linear-gradient(90deg, var(--g-accent), #ff7a59); }
.cid-rvPT0YgEgq .navbar-buttons .btn { background: rgba(255, 255, 255, 0.08) !important; }

/* Hero logo: plain, no effects */
.header4 .mbr-figure { width: 100%; display: flex; justify-content: center; }
.hero-logo { width: 65%; max-width: 820px; }
.hero-logo img { display: block; width: 100% !important; height: auto; animation: none; filter: none; }
@media (max-width: 767px) { .hero-logo { width: 90%; } }

/* Services: six cards wrap into rows of three */
.features8 .media-container-row { flex-wrap: wrap !important; justify-content: center; }

/* ==========================================================================
   Services hover: softer, warm red light
   ========================================================================== */
.features8 .card:hover {
  border-color: rgba(255, 120, 90, 0.38) !important;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.5), 0 0 34px -12px rgba(214, 52, 34, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.features8 .card::before {
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), rgba(214, 52, 34, 0.17), transparent 62%);
}
.features8 .card-img .mbr-iconfont { filter: drop-shadow(0 4px 12px rgba(214, 52, 34, 0.35)); }
.features8 .card:hover .card-img .mbr-iconfont { transform: translateY(-3px) scale(1.04); }

/* ==========================================================================
   Flyers: black & white on hover
   ========================================================================== */
.fl-card:hover img { filter: grayscale(1) contrast(1.06) brightness(1.02); }

/* ==========================================================================
   Flyers: straight, even grid - no motion (only black & white on hover)
   ========================================================================== */
.fl-grid { column-count: auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 1100px) { .fl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 768px)  { .fl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem; } }
.fl-card { margin: 0; break-inside: auto; }
.fl-tilt {
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: none !important;
  transition: border-color 0.3s ease;
  will-change: auto;
}
.fl-card:hover .fl-tilt {
  transform: none !important;
  border-color: var(--g-border-hi);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.fl-tilt::before, .fl-cap { display: none !important; }
.fl-card img { width: 100%; height: 100%; object-fit: contain; transition: filter 0.3s ease; }
.fl-card:hover img { transform: none; filter: grayscale(1) contrast(1.06); }

/* ---------- Contact form: service / package dropdown ---------- */
.form-container select.form-control {
  -webkit-appearance: none;
  appearance: none;
  height: auto;
  padding-right: 2.6rem !important;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 6l4.5 4.5L12.5 6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 1rem center !important;
  background-size: 1rem !important;
}
.form-container select.form-control:has(option[value=""]:checked) { color: rgba(244, 245, 249, 0.55) !important; }
.form-container select.form-control option,
.form-container select.form-control optgroup { background: #14151d; color: #f4f5f9; }
.form-container select.form-control optgroup { font-style: normal; font-weight: 600; color: #ff7a85; }


/* ==========================================================================
   Happy clients (laptop mockups)
   ========================================================================== */
.happy-clients { padding: 1rem 0 2rem; }
.happy-clients .container { display: flex; flex-direction: column; gap: 1.75rem; }
.hc-card {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 2rem;
  padding: 2.2rem 2.4rem;
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03)), var(--g-surface);
  border: 1px solid var(--g-border);
  border-radius: var(--g-radius);
  -webkit-backdrop-filter: blur(var(--g-blur)) saturate(160%);
  backdrop-filter: blur(var(--g-blur)) saturate(160%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: transform 0.6s var(--g-ease), border-color 0.5s ease, box-shadow 0.6s ease;
}
.hc-card:nth-child(even) { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); }
.hc-card:nth-child(even) .hc-text { order: 2; }
.hc-card:hover { transform: translateY(-4px); border-color: rgba(255, 130, 110, 0.35); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45), 0 0 40px -14px rgba(214, 52, 34, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2); }
.hc-title { margin: 0 0 0.75rem; font-size: 2.6rem; font-weight: 400; line-height: 1.15; }
.hc-desc { margin: 0 0 1.4rem; color: var(--g-ink-dim); font-size: 1.05rem; line-height: 1.6; }
.hc-link { word-break: break-all; }
.hc-img { display: block; }
.hc-img img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 22px 34px rgba(0, 0, 0, 0.55));
  transform: translate3d(0, var(--py, 0px), 0);
  transition: filter 0.6s ease;
  will-change: transform;
}
.hc-card:hover .hc-img img { filter: drop-shadow(0 26px 40px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 26px rgba(214, 52, 34, 0.25)); }
@media (max-width: 860px) {
  .hc-card, .hc-card:nth-child(even) { grid-template-columns: 1fr; padding: 1.6rem 1.3rem; text-align: center; gap: 1.2rem; }
  .hc-card:nth-child(even) .hc-text { order: 0; }
  .hc-title { font-size: 2rem; }
}

/* ==========================================================================
   Services: half-fading cards (solid at the top, melting into the photo)
   ========================================================================== */
.features8 .card {
  background: linear-gradient(180deg, rgba(5, 5, 8, 0.95) 0%, rgba(5, 5, 8, 0.9) 42%, rgba(5, 5, 8, 0) 100%) !important;
  border: 0 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
.features8 .card:hover {
  border: 0 !important;
  box-shadow: inset 0 1px 0 rgba(255, 140, 110, 0.3) !important;
  transform: translateY(-6px);
}
.features8 .card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(160, 28, 20, 0.26), rgba(160, 28, 20, 0.08) 55%, transparent 90%);
  opacity: 0;
  transition: opacity 0.6s ease;
  z-index: 0;
}
.features8 .card:hover::after { opacity: 1; }

/* ==========================================================================
   Smooth motion: scroll progress, softer reveals
   ========================================================================== */
.g-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 100002;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, #ff2b3a, #ff7a59);
  box-shadow: 0 0 12px rgba(255, 43, 58, 0.7);
  pointer-events: none;
}
.js-glass [data-g-reveal] { transition-duration: 1.1s; }

/* About portrait: black & white, circular crop */
.testimonials5 .testimonial-photo img {
  width: 132px !important;
  height: 132px !important;
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: 50%;
  filter: grayscale(1);
}

/* Text reveal: lines glide up and sharpen */
.js-glass [data-g-reveal="text"] {
  transform: translateY(26px);
  filter: blur(5px);
  transition: opacity 1s var(--g-ease), transform 1s var(--g-ease), filter 0.9s ease;
  transition-delay: var(--g-delay, 0ms);
}
.js-glass [data-g-reveal="text"].is-in { opacity: 1; transform: none; filter: blur(0); }
.js-glass [data-g-reveal=""] { transform: translateY(44px) scale(0.97); }
.js-glass [data-g-reveal=""].is-in { transform: none; }
