/* =========================================================
   Virexa — visual override stylesheet
   Loads AFTER main.css. Re-skins the BootstrapMade template
   to match the anti-clutter design system used across the app.
   ========================================================= */

:root {
  --vx-ink: #0b1220;
  --vx-muted: #5b6478;
  --vx-line: #e6e8ee;
  --vx-line-soft: #f1f3f7;
  --vx-accent: #2563eb;
  --vx-accent-soft: #eff5ff;
  --vx-bg: #fafbfc;
  --vx-white: #ffffff;
  --vx-radius: 14px;
}

/* ---------- Base ---------- */
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif !important;
  color: var(--vx-ink);
  background: var(--vx-white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--vx-ink);
}

/* =========================================================================
   BASE LAYOUT (replaces what Dewi's main.css used to provide)

   This block was added after main.css was dropped — virexa.css was an
   "override only" stylesheet, so without main.css the page collapsed to
   browser defaults (bulleted nav, no fixed header, etc.). Everything
   here is foundational structure; the cosmetic overrides further down
   this file then refine the look.
   ========================================================================= */

/* Account for the fixed header so page content isn't hidden under it */
body { padding-top: 78px; }

/* Generic link reset within Virexa surfaces */
a { color: inherit; text-decoration: none; }

/* --- Fixed header bar --- */
.header.fixed-top {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 997;
}
.header .container-fluid,
.header .container-xl {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.header .logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}
.header .logo h1.sitename { display: inline; }

/* --- Horizontal nav menu --- */
.navmenu { margin-left: auto; }
.navmenu > ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.navmenu > ul > li { position: relative; }
.navmenu a,
.navmenu a:focus {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}

/* Dropdown — absolute, hidden until parent is hovered/focused */
.navmenu .dropdown > ul {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 220px;
  list-style: none;
  margin: 0;
  padding: 0.5rem;
  background: var(--vx-white);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
  z-index: 1000;
}
.navmenu .dropdown:hover > ul,
.navmenu .dropdown:focus-within > ul {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.navmenu .dropdown > ul li { list-style: none; }
.navmenu .dropdown .toggle-dropdown { font-size: 0.7em; opacity: 0.7; }

/* Mobile nav toggle — hidden on desktop, used as a hamburger on small screens */
.mobile-nav-toggle {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--vx-ink);
  margin-left: 0.5rem;
}

/* --- Hero ---
   In the Dewi pattern the hero <img> sits behind the content. We
   position it absolutely + cover, then give .hero itself a rich
   gradient so the section never collapses to flat black when the
   image is missing (which it currently is — assets/img/ ships empty). */
.hero,
.hero.dark-background {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 0;
  color: var(--vx-white) !important;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(37,99,235,0.35), transparent 60%),
    radial-gradient(ellipse at 80% 80%, rgba(20,184,166,0.25), transparent 55%),
    linear-gradient(135deg, #0b1220 0%, #16213e 50%, #0f1e3d 100%) !important;
}
/* .hero > img — single source of truth lives further down in this file
   (search for "Hero background image — single source of truth"). The
   earlier duplicate block here was removed to eliminate a z-index
   collision with .hero::before. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,18,32,0.35), rgba(11,18,32,0.55));
  z-index: 1;
}
.hero > .container,
.hero > div { position: relative; z-index: 2; }
.hero h1, .hero h2 { color: var(--vx-white) !important; }
.hero p { color: rgba(255,255,255,0.85) !important; }

/* =========================================================================
   Broken-image fallback — assets/img/ doesn't exist yet, so every <img>
   on the page would otherwise show a browser broken-image glyph. This
   styles those broken <img> elements so the alt text becomes a tidy
   placeholder instead, with a subtle gradient surface behind it.
   Works in Chrome, Firefox, and Safari (which all render ::before/::after
   on broken <img> elements). When real images ship, this rule does
   nothing — pseudo-elements only paint on broken images.
   ========================================================================= */
/* Opt-in broken-image fallback. Add class="vx-img-fallback" on any
   <img> that should show a styled alt-text panel instead of the
   browser's broken-image glyph. Applied globally to <img> earlier,
   which was unsafe: pseudo-elements on replaced elements are
   undefined per CSS spec and render inconsistently across browsers,
   webviews, and email clients. The global position:relative +
   min-height also shifted layout for valid images. */
.vx-img-fallback {
  position: relative;
  min-height: 1em;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.85rem;
  color: #9aa0ad;
  text-align: center;
}
.vx-img-fallback::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--vx-line-soft, #f1f3f7), var(--vx-line, #e6e8ee));
  border-radius: inherit;
}
.vx-img-fallback::after {
  content: attr(alt);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  color: var(--vx-muted, #5b6478);
  font-weight: 500;
  border-radius: inherit;
}

/* --- Scroll-to-top button --- */
.scroll-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--vx-ink);
  color: var(--vx-white) !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  z-index: 996;
  opacity: 0.9;
  transition: opacity 0.15s, transform 0.15s;
}
.scroll-top:hover { opacity: 1; transform: translateY(-2px); }

/* --- Footer base --- */
.footer { padding: 3rem 0 1.5rem; }
.footer ul { list-style: none; padding: 0; margin: 0; }

/* --- Mobile breakpoint: stack nav into an overlay panel ---
   Safety: visibility:hidden + pointer-events:none on the closed
   state so a JS failure cannot leave an invisible, focus-trapping
   panel attached to the DOM. The mobile-nav-active class re-enables
   both alongside the slide-in transform.
   Sizing: 100dvh (dynamic viewport height) instead of inset:0 so
   the panel respects iOS Safari / Chrome Android URL-bar reflow.
   Without this the bottom of the menu sits behind the URL bar and
   becomes unreachable on first paint. */
@media (max-width: 1199px) {
  .mobile-nav-toggle { display: inline-flex; }
  .navmenu {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;             /* fallback for older browsers */
    height: 100dvh;            /* honours the current viewport, URL-bar aware */
    max-height: 100vh;
    background: rgba(11,18,32,0.96);
    color: var(--vx-white);
    padding: 5rem 1.5rem 2rem;
    transform: translateX(100%);
    transition: transform 0.25s ease, visibility 0s linear 0.25s;
    overflow-y: auto;
    overscroll-behavior: contain;
    z-index: 999;
    visibility: hidden;
    pointer-events: none;
  }
  .navmenu > ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
  }
  .navmenu .dropdown > ul {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    padding-left: 1rem;
    box-shadow: none;
    border: 0;
  }
  body.mobile-nav-active .navmenu {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
    transition: transform 0.25s ease, visibility 0s;
  }
  body.mobile-nav-active .navmenu a { color: rgba(255,255,255,0.9) !important; }
}

/* ---------- Header ---------- */
.header {
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--vx-line);
  padding: 0.85rem 0 !important;
  box-shadow: none !important;
}

.header .sitename {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--vx-ink) !important;
  margin: 0;
}

.navmenu ul li a {
  color: var(--vx-muted) !important;
  font-weight: 500 !important;
  font-size: 0.92rem !important;
  padding: 0.5rem 0.85rem !important;
}
.navmenu ul li a.active,
.navmenu ul li a:hover {
  color: var(--vx-ink) !important;
}
.navmenu .dropdown ul {
  border: 1px solid var(--vx-line);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(11, 18, 32, 0.08);
  padding: 0.5rem;
  background: var(--vx-white);
}
.navmenu .dropdown ul li a {
  border-radius: 8px;
  padding: 0.5rem 0.85rem !important;
}
.navmenu .dropdown ul li a:hover {
  background: var(--vx-bg);
}

.cta-btn {
  background: var(--vx-ink) !important;
  color: var(--vx-white) !important;
  border-radius: 8px !important;
  padding: 0.6rem 1.1rem !important;
  font-weight: 600 !important;
  font-size: 0.9rem !important;
  border: 0 !important;
  transition: background 0.15s;
}
.cta-btn:hover { background: #000 !important; }

/* ---------- Section base ----------
   Scoped to .index-page so we don't impose 6rem padding on every
   <section> in the codebase (third-party widgets, modal bodies,
   embedded form sections can all use <section> semantically).
   The body already carries class="index-page", so this scope works
   with zero markup changes. !important removed on all three rules —
   page-level scoping is enough specificity to win without an arms
   race. */
.index-page section {
  padding: 6rem 0;
  background: var(--vx-white);
}
.index-page section.light-background { background: var(--vx-bg); }
.index-page section.dark-background  { background: var(--vx-ink); color: var(--vx-white); }

/* "Section title" becomes: small uppercase eyebrow + big bold heading */
.section-title h2 {
  font-size: 0.78rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.12em !important;
  color: var(--vx-muted) !important;
  font-weight: 600 !important;
  margin-bottom: 0.75rem !important;
  padding: 0 !important;
  background: none !important;
  display: inline-block !important;
  border: 0 !important;
}
.section-title h2::before,
.section-title h2::after,
.section-title h2 span::after { display: none !important; }
.section-title p {
  font-size: 2rem !important;
  font-weight: 700 !important;
  color: var(--vx-ink) !important;
  letter-spacing: -0.02em !important;
  margin: 0 !important;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 0 !important;
  min-height: 88vh;
  display: flex !important;
  align-items: center !important;
  background: var(--vx-ink);
  overflow: hidden;
}
/* Hero background image — single source of truth.
   Stacking order inside .hero:
     0  .hero background gradient (painted on the element)
     0  .hero > img                  <-- this rule
     1  .hero::before overlay
     2  .hero::after overlay
     3  .hero .container content
   Was previously defined twice with conflicting z-index/opacity.
   z-index:0 here puts the image cleanly beneath both overlays. */
.hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  z-index: 0;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,18,32,0.35) 0%, rgba(11,18,32,0.78) 100%);
  z-index: 2;
}
.hero .container { position: relative; z-index: 3; text-align: center; }
.hero h2 {
  font-size: clamp(2.5rem, 6vw, 4.5rem) !important;
  font-weight: 700 !important;
  color: var(--vx-white) !important;
  letter-spacing: -0.03em !important;
  margin-bottom: 0.75rem !important;
}
.hero p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85) !important;
  max-width: 580px;
}
.btn-get-started {
  background: var(--vx-white) !important;
  color: var(--vx-ink) !important;
  border-radius: 8px !important;
  padding: 0.85rem 1.6rem !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  margin-right: 0.75rem !important;
  border: 0 !important;
}
.btn-get-started:hover { background: var(--vx-bg) !important; }
.btn-watch-video {
  color: var(--vx-white) !important;
  text-decoration: none;
}
.btn-watch-video i {
  color: var(--vx-white) !important;
  font-size: 1.5rem !important;
  margin-right: 0.4rem;
}

/* ---------- Hero search ---------- */
/* Restyles the .search-box pill against the dark hero.
   Targets Bootstrap defaults (.form-control, .btn-primary, w-50, me-2)
   without touching the HTML or the filter JS. */
.hero .search-box {
  width: 100%;
  max-width: 560px;
  margin: 1.5rem auto 0 !important;
  padding: 0 1rem;
}
.hero .search-box form {
  display: flex !important;
  background: #fff;
  border-radius: 999px;
  padding: 0.35rem;
  box-shadow: 0 12px 32px rgba(11, 18, 32, 0.22);
  align-items: center;
  width: 100%;
  justify-content: stretch !important;
}
.hero .search-box .form-control {
  flex: 1;
  width: auto !important;       /* override Bootstrap w-50 */
  margin: 0 !important;          /* override me-2 */
  border: 0 !important;
  background: transparent !important;
  padding: 0.6rem 1rem !important;
  color: var(--vx-ink) !important;
  font-size: 0.95rem;
  box-shadow: none !important;
}
.hero .search-box .form-control::placeholder {
  color: var(--vx-muted);
}
.hero .search-box .form-control:focus {
  outline: none !important;
  box-shadow: none !important;
}
.hero .search-box .btn,
.hero .search-box .btn-primary {
  background: var(--vx-ink) !important;
  color: var(--vx-white) !important;
  border: 0 !important;
  border-radius: 999px !important;
  padding: 0.55rem 1.25rem !important;
  font-weight: 600;
  font-size: 0.9rem;
  flex-shrink: 0;
  transition: background 0.15s;
}
.hero .search-box .btn:hover,
.hero .search-box .btn-primary:hover {
  background: #000 !important;
}

@media (max-width: 480px) {
  .hero .search-box .form-control {
    font-size: 0.88rem;
    padding: 0.5rem 0.7rem !important;
  }
  .hero .search-box .btn,
  .hero .search-box .btn-primary {
    padding: 0.45rem 0.9rem !important;
    font-size: 0.85rem;
  }
}

/* ---------- About ---------- */
.about h3 {
  font-size: 1.75rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
  margin-bottom: 1rem !important;
}
.about p {
  color: var(--vx-muted);
  line-height: 1.7;
}
.about ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}
.about ul li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 0.4rem 0;
  color: var(--vx-ink);
}
.about ul li i {
  color: var(--vx-accent);
  margin-top: 0.2rem;
}
.about img {
  border-radius: var(--vx-radius) !important;
}

/* ---------- Stats ---------- */
.stats-item {
  background: var(--vx-white);
  border: 1px solid var(--vx-line);
  border-radius: var(--vx-radius);
  padding: 1.5rem !important;
  gap: 1rem;
}
.stats-item i {
  font-size: 2rem !important;
  color: var(--vx-muted) !important;
  background: none !important;
  padding: 0 !important;
}
.stats-item span {
  font-size: 2rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
  color: var(--vx-ink) !important;
  display: block !important;
  line-height: 1.1 !important;
}
.stats-item p {
  color: var(--vx-muted) !important;
  margin: 0.25rem 0 0 !important;
  font-size: 0.9rem !important;
}

/* ---------- Services ---------- */
.services .service-item {
  background: var(--vx-white) !important;
  border: 1px solid var(--vx-line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: none !important;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.services .service-item:hover {
  transform: translateY(-3px);
  border-color: #c9d2e3;
  box-shadow: 0 8px 24px rgba(11,18,32,0.06) !important;
}
.services .service-item .img {
  margin: 0 !important;
  padding: 0 !important;
}
.services .service-item .img img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 0 !important;
}
.services .service-item .details {
  margin: 0 !important;
  padding: 1.5rem !important;
  background: var(--vx-white) !important;
  border-radius: 0 !important;
  text-align: left !important;
  box-shadow: none !important;
}
.services .service-item .icon {
  display: inline-flex !important;
  width: 46px;
  height: 46px;
  border-radius: 12px !important;
  background: var(--vx-accent-soft) !important;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem !important;
  top: auto !important;
  left: auto !important;
  position: relative !important;
  transform: none !important;
}
.services .service-item .icon i {
  font-size: 1.25rem !important;
  color: var(--vx-accent) !important;
  background: none !important;
  line-height: 1 !important;
}
.services .service-item h3 {
  font-size: 1.15rem !important;
  margin: 0 0 0.5rem !important;
  color: var(--vx-ink) !important;
}
.services .service-item p {
  color: var(--vx-muted) !important;
  font-size: 0.95rem !important;
  margin: 0 !important;
}

/* ---------- Clients ---------- */
.clients .client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.clients .client-logo img {
  filter: grayscale(1);
  opacity: 0.55;
  transition: opacity 0.15s, filter 0.15s;
  max-height: 40px;
}
.clients .client-logo img:hover {
  opacity: 1;
  filter: grayscale(0);
}

/* ---------- Features (tabs) ---------- */
.features .nav-tabs {
  border-bottom: 1px solid var(--vx-line) !important;
  margin-bottom: 2.5rem;
  background: none !important;
}
.features .nav-link {
  background: transparent !important;
  border: 0 !important;
  border-bottom: 2px solid transparent !important;
  color: var(--vx-muted) !important;
  padding: 1rem !important;
  text-align: center;
  border-radius: 0 !important;
}
.features .nav-link.active {
  color: var(--vx-ink) !important;
  border-bottom: 2px solid var(--vx-ink) !important;
  background: transparent !important;
}
.features .nav-link i {
  font-size: 1.3rem !important;
  display: block;
  margin: 0 auto 0.4rem;
  color: inherit !important;
  background: none !important;
}
.features .nav-link h4 {
  font-size: 0.95rem !important;
  margin: 0 !important;
  font-weight: 500 !important;
  color: inherit !important;
}
.features .tab-pane h3 {
  font-size: 1.5rem !important;
  margin-bottom: 1rem !important;
}
.features .tab-pane p {
  color: var(--vx-muted) !important;
  line-height: 1.7;
}
.features .tab-pane ul {
  list-style: none;
  padding: 0;
}
.features .tab-pane ul li {
  padding: 0.35rem 0;
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}
.features .tab-pane ul li i {
  color: var(--vx-accent) !important;
  margin-top: 0.2rem;
}
.features .tab-pane img {
  border-radius: var(--vx-radius);
}

/* ---------- Services 2 ---------- */
.services-2 .service-item {
  background: var(--vx-white) !important;
  border: 1px solid var(--vx-line);
  border-radius: var(--vx-radius);
  padding: 1.5rem !important;
  gap: 1rem;
  box-shadow: none !important;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.services-2 .service-item:hover {
  border-color: var(--vx-accent);
  box-shadow: 0 6px 20px rgba(11,18,32,0.05) !important;
}
.services-2 .service-item .icon {
  font-size: 1.6rem !important;
  color: var(--vx-accent) !important;
  background: var(--vx-accent-soft);
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.services-2 .service-item .title {
  margin: 0 0 0.4rem !important;
}
.services-2 .service-item .title a {
  color: var(--vx-ink) !important;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 600;
}
.services-2 .service-item .description {
  color: var(--vx-muted) !important;
  font-size: 0.92rem;
  margin: 0 !important;
  line-height: 1.6;
}

/* ---------- Testimonials ---------- */
.testimonials {
  position: relative;
}
.testimonials .testimonials-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  z-index: 1;
}
.testimonials::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(11, 18, 32, 0.78);
  z-index: 2;
}
.testimonials .container { position: relative; z-index: 3; }
.testimonials .testimonial-item {
  text-align: center;
  padding: 1.5rem;
  color: var(--vx-white) !important;
}
.testimonials .testimonial-img {
  width: 90px !important;
  height: 90px !important;
  border-radius: 50% !important;
  object-fit: cover;
  margin: 0 auto 1rem !important;
  border: 3px solid rgba(255,255,255,0.2) !important;
  display: block;
}
.testimonials h3 {
  color: var(--vx-white) !important;
  font-size: 1.1rem !important;
  margin: 0 !important;
}
.testimonials h4 {
  color: rgba(255,255,255,0.65) !important;
  font-size: 0.85rem !important;
  font-weight: 500 !important;
  background: none !important;
  padding: 0 !important;
}
.testimonials .stars {
  color: #fbbf24 !important;
  margin: 0.5rem 0 !important;
}
.testimonials p {
  color: rgba(255,255,255,0.92) !important;
  max-width: 700px;
  margin: 1rem auto !important;
  font-size: 1.05rem !important;
  line-height: 1.7 !important;
  font-style: italic;
}
.testimonials .quote-icon-left,
.testimonials .quote-icon-right {
  color: rgba(255,255,255,0.3) !important;
  font-size: 1.5rem !important;
}
.testimonials .swiper-pagination-bullet {
  background: rgba(255,255,255,0.4) !important;
  opacity: 1 !important;
}
.testimonials .swiper-pagination-bullet-active {
  background: var(--vx-white) !important;
}

/* ---------- Portfolio ---------- */
.portfolio .portfolio-filters {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  justify-content: center;
  margin: 0 0 2rem !important;
}
.portfolio .portfolio-filters li {
  padding: 0.45rem 1rem !important;
  border-radius: 999px !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  color: var(--vx-muted) !important;
  cursor: pointer;
  border: 1px solid var(--vx-line) !important;
  transition: all 0.15s;
  background: var(--vx-white);
}
.portfolio .portfolio-filters li:hover {
  border-color: var(--vx-ink) !important;
  color: var(--vx-ink) !important;
}
.portfolio .portfolio-filters li.filter-active {
  background: var(--vx-ink) !important;
  color: var(--vx-white) !important;
  border-color: var(--vx-ink) !important;
}
.portfolio .portfolio-content {
  background: var(--vx-white);
  border: 1px solid var(--vx-line);
  border-radius: var(--vx-radius);
  overflow: hidden;
  position: relative;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.portfolio .portfolio-content:hover {
  transform: translateY(-3px);
  border-color: #c9d2e3;
  box-shadow: 0 8px 24px rgba(11,18,32,0.06);
}
.portfolio .portfolio-content img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}
.portfolio .portfolio-info {
  padding: 1.2rem 1.4rem 1.4rem !important;
  background: var(--vx-white) !important;
  position: relative;
  opacity: 1 !important;
  transform: none !important;
  bottom: auto !important;
}
.portfolio .portfolio-info h4 {
  font-size: 1.05rem !important;
  margin: 0 0 0.3rem !important;
  color: var(--vx-ink) !important;
}
.portfolio .portfolio-info p {
  color: var(--vx-muted) !important;
  font-size: 0.9rem !important;
  margin: 0 0 0.7rem !important;
}
.portfolio .portfolio-info .preview-link,
.portfolio .portfolio-info .details-link {
  display: inline-flex !important;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 8px !important;
  background: var(--vx-bg) !important;
  color: var(--vx-ink) !important;
  margin-right: 0.4rem !important;
  font-size: 1rem !important;
  border: 1px solid var(--vx-line) !important;
  position: relative !important;
  top: auto !important;
  left: auto !important;
}
.portfolio .portfolio-info .preview-link:hover,
.portfolio .portfolio-info .details-link:hover {
  background: var(--vx-accent) !important;
  color: var(--vx-white) !important;
  border-color: var(--vx-accent) !important;
}

/* ---------- Team ---------- */
.team .member {
  background: var(--vx-white) !important;
  border: 1px solid var(--vx-line);
  border-radius: 16px;
  overflow: hidden;
  text-align: center;
  box-shadow: none !important;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.team .member:hover {
  transform: translateY(-3px);
  border-color: #c9d2e3;
  box-shadow: 0 8px 24px rgba(11,18,32,0.06) !important;
}
.team .member .pic {
  margin: 0;
  overflow: hidden;
}
.team .member .pic img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
  border-radius: 0 !important;
}
.team .member-info {
  padding: 1.25rem !important;
  background: var(--vx-white) !important;
  border-radius: 0 !important;
}
.team .member-info h4 {
  font-size: 1.1rem !important;
  margin: 0 0 0.2rem !important;
  color: var(--vx-ink) !important;
}
.team .member-info span {
  color: var(--vx-muted) !important;
  font-size: 0.9rem !important;
  display: block !important;
  margin-bottom: 0.75rem !important;
  background: none !important;
  padding: 0 !important;
}
.team .social a {
  display: inline-flex !important;
  width: 34px;
  height: 34px;
  border-radius: 50% !important;
  border: 1px solid var(--vx-line);
  align-items: center;
  justify-content: center;
  color: var(--vx-muted) !important;
  margin: 0 0.2rem !important;
  text-decoration: none;
  background: transparent !important;
  transition: all 0.15s;
}
.team .social a:hover {
  background: var(--vx-ink) !important;
  color: var(--vx-white) !important;
  border-color: var(--vx-ink);
}

/* ---------- Contact ---------- */
.contact .info-item {
  background: var(--vx-white) !important;
  border: 1px solid var(--vx-line);
  border-radius: var(--vx-radius);
  padding: 1.75rem !important;
  text-align: center;
  box-shadow: none !important;
}
.contact .info-item i {
  font-size: 1.4rem !important;
  color: var(--vx-accent) !important;
  background: var(--vx-accent-soft) !important;
  width: 52px;
  height: 52px;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem !important;
}
.contact .info-item h3 {
  font-size: 1.05rem !important;
  margin: 0 0 0.25rem !important;
  color: var(--vx-ink) !important;
}
.contact .info-item p {
  color: var(--vx-muted) !important;
  margin: 0 !important;
  font-size: 0.95rem !important;
}
.contact .php-email-form {
  background: var(--vx-white) !important;
  border: 1px solid var(--vx-line);
  border-radius: var(--vx-radius);
  padding: 1.75rem !important;
  box-shadow: none !important;
}
.contact .form-control {
  border: 1px solid var(--vx-line) !important;
  border-radius: 8px !important;
  padding: 0.65rem 0.85rem !important;
  box-shadow: none !important;
  background: var(--vx-white) !important;
}
.contact .form-control:focus {
  border-color: var(--vx-accent) !important;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.15) !important;
}
.contact .php-email-form button[type="submit"] {
  background: var(--vx-ink) !important;
  color: var(--vx-white) !important;
  border: 0 !important;
  border-radius: 8px !important;
  padding: 0.7rem 1.5rem !important;
  font-weight: 600;
  font-size: 0.95rem;
}
.contact .php-email-form button[type="submit"]:hover {
  background: #000 !important;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--vx-bg) !important;
  color: var(--vx-ink) !important;
  border-top: 1px solid var(--vx-line);
  padding: 4rem 0 1.5rem !important;
}
.footer .sitename {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--vx-ink) !important;
}
.footer h4 {
  font-size: 0.95rem !important;
  color: var(--vx-ink) !important;
  margin-bottom: 1rem !important;
  font-weight: 600;
}
.footer p, .footer li, .footer a, .footer span, .footer strong {
  color: var(--vx-muted) !important;
  font-size: 0.92rem;
}
.footer a:hover {
  color: var(--vx-ink) !important;
}
.footer-links ul {
  list-style: none;
  padding: 0;
}
.footer-links ul li {
  padding: 0.25rem 0;
}
.footer-links ul li i {
  color: var(--vx-muted) !important;
  font-size: 0.7rem;
  margin-right: 0.4rem;
}
.footer .social-links a {
  display: inline-flex !important;
  width: 36px;
  height: 36px;
  border-radius: 50% !important;
  border: 1px solid var(--vx-line) !important;
  align-items: center;
  justify-content: center;
  color: var(--vx-muted) !important;
  margin-right: 0.4rem !important;
  background: transparent !important;
}
.footer .social-links a:hover {
  background: var(--vx-ink) !important;
  color: var(--vx-white) !important;
  border-color: var(--vx-ink) !important;
}
.footer .newsletter-form {
  display: flex !important;
  gap: 0;
  border: 1px solid var(--vx-line);
  border-radius: 8px !important;
  overflow: hidden;
  background: var(--vx-white) !important;
  padding: 0 !important;
}
.footer .newsletter-form input[type="email"] {
  flex: 1;
  border: 0 !important;
  padding: 0.7rem 0.85rem !important;
  background: transparent !important;
  color: var(--vx-ink) !important;
  outline: none;
}
.footer .newsletter-form input[type="submit"] {
  border: 0 !important;
  background: var(--vx-ink) !important;
  color: var(--vx-white) !important;
  padding: 0.7rem 1.1rem !important;
  font-weight: 600;
  cursor: pointer;
}
.footer .copyright {
  border-top: 1px solid var(--vx-line);
  padding-top: 1.5rem !important;
  margin-top: 3rem !important;
  font-size: 0.85rem;
}
.footer .copyright .credits {
  margin-top: 0.4rem;
  font-size: 0.82rem;
}

/* ---------- Scroll Top ---------- */
.scroll-top {
  background: var(--vx-ink) !important;
  border-radius: 50% !important;
  width: 44px !important;
  height: 44px !important;
  box-shadow: 0 6px 18px rgba(11,18,32,0.18) !important;
}
.scroll-top i {
  color: var(--vx-white) !important;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Responsive tweaks ---------- */
@media (max-width: 768px) {
  section { padding: 4rem 0 !important; }
  .section-title p { font-size: 1.5rem !important; }
  .hero { min-height: 70vh; }
}
