/**
* Project Name: AETHERGRID TECHNOLOGIES - FZCO
* Website: https://aethergrid-technologies.com
* Location: Dubai Digital Park, Dubai Silicon Oasis, United Arab Emirates
* Business Scope: Advertising Research & Consultancies, Information Technology Consulting
* Focus: IT Consulting, Digital Market Analysis, Strategic Advisory, IT Marketing Intelligence
*/

/* Fonts */
:root {
  --default-font: "Roboto",  system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --heading-font: "Raleway",  sans-serif;
  --nav-font: "Nunito",  sans-serif;
}

/* Global Colors — Aethergrid design DNA (navy + cyan + violet) */
:root {
  --brand-primary: #33D1FF;
  --brand-secondary: #7C5CFF;
  --brand-dark: #0B1020;
  --brand-dark-secondary: #121A2F;
  --brand-light: #F6F8FC;
  --text-main: #0F172A;
  --text-muted: #5B6475;
  --background-color: var(--brand-dark);
  --default-color: #A7B4C8;
  --heading-color: #E8EEF6;
  --accent-color: var(--brand-primary);
  --surface-color: var(--brand-dark-secondary);
  --surface-elevated: #1a2744;
  --contrast-color: #ffffff;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --glow-accent: color-mix(in srgb, var(--brand-primary), transparent 65%);
  --link-color: color-mix(in srgb, var(--heading-color) 88%, var(--brand-primary) 12%);
  --link-hover-color: var(--brand-primary);
}

/* Nav Menu Colors */
:root {
  --nav-color: color-mix(in srgb, var(--default-color), transparent 12%);
  --nav-hover-color: var(--brand-primary);
  --nav-mobile-background-color: var(--surface-color);
  --nav-dropdown-background-color: var(--surface-color);
  --nav-dropdown-color: var(--default-color);
  --nav-dropdown-hover-color: var(--brand-primary);
}

/* Color Presets - These classes override global colors when applied to any section or element, providing reuse of the sam color scheme. */

.light-background {
  --background-color: var(--brand-light);
  --surface-color: #ffffff;
  --surface-elevated: #eef2f8;
  --heading-color: var(--text-main);
  --default-color: var(--text-muted);
  --accent-color: var(--brand-primary);
  --border-subtle: rgba(15, 23, 42, 0.08);
  --link-color: var(--text-main);
  --link-hover-color: var(--brand-primary);
}

.dark-background {
  --background-color: var(--brand-dark);
  --default-color: color-mix(in srgb, var(--heading-color), transparent 18%);
  --heading-color: #eef3fa;
  --surface-color: var(--brand-dark-secondary);
  --surface-elevated: #1a2744;
  --contrast-color: #ffffff;
  --link-color: color-mix(in srgb, #eef3fa 88%, var(--brand-primary) 12%);
  --link-hover-color: var(--brand-primary);
}

.accent-background {
  --background-color: var(--brand-dark-secondary);
  --default-color: color-mix(in srgb, var(--heading-color), transparent 22%);
  --heading-color: #f3f6fb;
  --accent-color: var(--brand-primary);
  --surface-color: #1a2744;
  --contrast-color: #ffffff;
  --link-color: color-mix(in srgb, #f3f6fb 88%, var(--brand-primary) 12%);
  --link-hover-color: var(--brand-primary);
}

/* Smooth scroll */
:root {
  scroll-behavior: smooth;
}

/*--------------------------------------------------------------
# General Styling & Shared Classes
--------------------------------------------------------------*/
body {
  color: var(--default-color);
  background-color: var(--background-color);
  background-image: radial-gradient(900px 520px at 12% -8%, color-mix(in srgb, var(--brand-primary), transparent 92%), transparent),
    radial-gradient(700px 480px at 92% 0%, color-mix(in srgb, var(--brand-secondary), transparent 90%), transparent);
  background-attachment: fixed;
  font-family: var(--default-font);
}

a {
  color: var(--link-color);
  text-decoration: none;
  transition: color 0.25s ease, text-decoration-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

a:hover {
  color: var(--link-hover-color);
  text-decoration: none;
}

/* Rich-text links only: animated underline (nav, buttons, cards excluded) */
main p a:not([class]):not([href^="mailto:"]):not(.stretched-link):not(.btn):not(.nav-link):not(:where(.dropdown a)),
.prose a:not([href^="mailto:"]):not(.stretched-link):not(.btn):not(.nav-link):not(:where(.dropdown a)) {
  color: var(--link-color);
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  padding-bottom: 0.06em;
  transition: color 0.25s ease, background-size 0.35s ease;
}

main p a:not([class]):not([href^="mailto:"]):not(.stretched-link):not(.btn):not(.nav-link):not(:where(.dropdown a)):hover,
.prose a:not([href^="mailto:"]):not(.stretched-link):not(.btn):not(.nav-link):not(:where(.dropdown a)):hover {
  color: var(--link-hover-color);
  background-size: 100% 1px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--heading-color);
  font-family: var(--heading-font);
}

/* PHP Email Form Messages
------------------------------*/
.php-email-form .error-message {
  display: none;
  background: #df1529;
  color: #ffffff;
  text-align: left;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
}

.php-email-form .sent-message {
  display: none;
  color: #ffffff;
  background: #059652;
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
}

.php-email-form .loading {
  display: none;
  background: var(--surface-color);
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
}

.php-email-form .loading:before {
  content: "";
  display: inline-block;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  margin: 0 10px -6px 0;
  border: 3px solid var(--accent-color);
  border-top-color: var(--surface-color);
  animation: php-email-form-loading 1s linear infinite;
}

@keyframes php-email-form-loading {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/*--------------------------------------------------------------
# Global Header
--------------------------------------------------------------*/
.header {
  color: var(--default-color);
  background-color: color-mix(in srgb, var(--surface-color) 88%, transparent);
  backdrop-filter: blur(12px);
  padding: 10px 0;
  transition: all 0.5s;
  z-index: 997;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid var(--border-subtle);
}

/* backdrop-filter creates a containing block: fixed nav would be trapped inside the short header.
   While mobile menu is open, disable it so .navmenu can cover the full viewport. */
body.mobile-nav-active .header {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  overflow: visible !important;
  z-index: 10050 !important;
}

body.mobile-nav-active .header .container {
  overflow: visible !important;
}

.header .logo {
  line-height: 1;
}

.header .logo img {
  height: 48px;
  width: auto;
  max-height: none;
  margin-right: 8px;
  object-fit: contain;
  display: block;
}

@media (max-width: 768px) {
  .header .logo img {
    height: 42px;
    width: auto;
  }
}

/* Footer brand logo (slightly smaller than header) */
.ag-footer-logo {
  height: 38px;
  width: auto;
  object-fit: contain;
  display: block;
}

.header .logo h1 {
  font-size: 26px;
  margin: 0;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--heading-color);
}

.header .logo span {
  color: var(--accent-color);
  font-size: 26px;
  font-weight: 700;
}

.header .header-social-links {
  padding: 0 0 0 15px;
}

.header .header-social-links a {
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  padding-left: 10px;
  display: inline-block;
  transition: 0.3s;
  font-size: 16px;
}

.header .header-social-links a:hover {
  color: var(--accent-color);
}

.header .header-social-links a i {
  line-height: 0px;
}

@media (max-width: 1200px) {
  .header .logo {
    order: 1;
  }

  .header .logo h1 {
    font-size: 24px;
  }

  .header .header-social-links {
    order: 2;
    padding: 0 15px 0 0;
  }

  .header .navmenu {
    order: 3;
  }
}

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
/* Navmenu - Desktop */
@media (min-width: 1200px) {
  .navmenu {
    padding: 0;
  }

  .navmenu ul {
    margin: 0;
    padding: 0;
    display: flex;
    list-style: none;
    align-items: center;
  }

  .navmenu li {
    position: relative;
  }

  .navmenu a,
  .navmenu a:focus {
    color: var(--nav-color);
    padding: 18px 15px;
    font-size: 13px;
    font-family: var(--nav-font);
    text-transform: uppercase;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    transition: 0.3s;
  }

  .navmenu a i,
  .navmenu a:focus i {
    font-size: 12px;
    line-height: 0;
    margin-left: 5px;
    transition: 0.3s;
  }

  .navmenu li:last-child a {
    padding-right: 0;
  }

  .navmenu li:hover>a,
  .navmenu .active,
  .navmenu .active:focus {
    color: var(--nav-hover-color);
  }

  .navmenu .dropdown ul {
    margin: 0;
    padding: 10px 0;
    background: var(--nav-dropdown-background-color);
    display: block;
    position: absolute;
    visibility: hidden;
    left: 14px;
    top: 130%;
    opacity: 0;
    transition: 0.3s;
    border-radius: 4px;
    z-index: 99;
    box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.1);
  }

  .navmenu .dropdown ul li {
    min-width: 200px;
  }

  .navmenu .dropdown ul a {
    padding: 10px 20px;
    font-size: 15px;
    text-transform: none;
    color: var(--nav-dropdown-color);
  }

  .navmenu .dropdown ul a i {
    font-size: 12px;
  }

  .navmenu .dropdown ul a:hover,
  .navmenu .dropdown ul .active:hover,
  .navmenu .dropdown ul li:hover>a {
    color: var(--nav-dropdown-hover-color);
  }

  .navmenu .dropdown:hover>ul {
    opacity: 1;
    top: 100%;
    visibility: visible;
  }

  .navmenu .dropdown .dropdown ul {
    top: 0;
    left: -90%;
    visibility: hidden;
  }

  .navmenu .dropdown .dropdown:hover>ul {
    opacity: 1;
    top: 0;
    left: -100%;
    visibility: visible;
  }
}

/* Navmenu - Mobile */
@media (max-width: 1199px) {
  .mobile-nav-toggle {
    color: var(--nav-color);
    font-size: 28px;
    line-height: 0;
    margin-right: 10px;
    cursor: pointer;
    transition: color 0.3s;
  }

  .navmenu {
    padding: 0;
    z-index: 9997;
  }

  .navmenu ul {
    display: none;
    list-style: none;
    position: absolute;
    inset: 60px 20px 20px 20px;
    padding: 10px 0;
    margin: 0;
    border-radius: 12px;
    background: linear-gradient(180deg, #1a2744 0%, #121a2f 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    overflow-y: auto;
    transition: 0.3s;
    z-index: 9998;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  }

  .navmenu a,
  .navmenu a:focus {
    color: rgba(232, 238, 246, 0.94);
    padding: 10px 20px;
    font-family: var(--nav-font);
    font-size: 17px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    transition: 0.3s;
  }

  .navmenu a i,
  .navmenu a:focus i {
    font-size: 12px;
    line-height: 0;
    margin-left: 5px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
    background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
  }

  .navmenu a i:hover,
  .navmenu a:focus i:hover {
    background-color: var(--accent-color);
    color: var(--contrast-color);
  }

  .navmenu a:hover,
  .navmenu .active,
  .navmenu .active:focus {
    color: var(--nav-dropdown-hover-color);
  }

  .navmenu .active i,
  .navmenu .active:focus i {
    background-color: var(--accent-color);
    color: var(--contrast-color);
    transform: rotate(180deg);
  }

  .navmenu .dropdown ul {
    position: static;
    display: none;
    z-index: 99;
    padding: 10px 0;
    margin: 10px 16px;
    background-color: rgba(11, 16, 32, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: all 0.5s ease-in-out;
  }

  .navmenu .dropdown ul ul {
    background-color: rgba(5, 8, 14, 0.55);
  }

  .navmenu .dropdown ul a {
    color: rgba(232, 238, 246, 0.9);
  }

  .navmenu .dropdown>.dropdown-active {
    display: block !important;
    background-color: rgba(255, 255, 255, 0.03);
  }

  .navmenu li.dropdown > ul.dropdown-active {
    display: block !important;
  }

  .mobile-nav-active {
    overflow: hidden;
  }

  .mobile-nav-active .mobile-nav-toggle {
    color: #e8fbff !important;
    text-shadow: 0 0 16px rgba(51, 209, 255, 0.5);
    position: fixed;
    font-size: 32px;
    top: 18px;
    right: 18px;
    margin-right: 0;
    z-index: 10080;
    line-height: 1;
  }

  /* Mobile menu: light scrim + floating panel (not full-screen sheet) */
  .mobile-nav-active .navmenu {
    position: fixed;
    inset: 0;
    width: 100vw;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 4.75rem 1.1rem 1.5rem;
    overflow-x: hidden;
    overflow-y: auto;
    background: rgba(5, 8, 14, 0.26);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background 0.3s ease, backdrop-filter 0.3s ease;
    z-index: 10060;
  }

  .mobile-nav-active .navmenu > ul {
    display: block !important;
    position: relative;
    inset: auto;
    width: 100%;
    max-width: 22rem;
    margin: 0 auto;
    max-height: min(calc(100dvh - 5.75rem), 34rem);
    overflow-y: auto;
    padding: 0.65rem 0;
    border-radius: 18px;
    background: rgba(18, 26, 47, 0.52) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow:
      0 24px 56px rgba(0, 0, 0, 0.38),
      0 0 0 1px rgba(51, 209, 255, 0.06) inset;
  }

  .mobile-nav-active .navmenu > ul > li > a,
  .mobile-nav-active .navmenu > ul > li > a:focus {
    color: rgba(232, 238, 246, 0.96);
    min-height: 48px;
    padding: 14px 20px;
    align-items: center;
  }

  .mobile-nav-active .navmenu .dropdown ul a {
    min-height: 44px;
    padding: 12px 18px;
    align-items: center;
  }
}

/* Brand motion, cards, service sidebar */
.service-card,
.process-card,
.why-card,
.hero-visual > div,
.services-list a,
.service-card .stretched-link {
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    border-color 0.28s ease;
}

.service-card:hover,
.process-card:hover,
.why-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 28px 64px rgba(0, 0, 0, 0.36),
    0 0 0 1px rgba(51, 209, 255, 0.14),
    0 20px 48px rgba(51, 209, 255, 0.07);
  border-color: rgba(51, 209, 255, 0.16) !important;
}

.service-card:hover i[class*="bi-"],
.process-card:hover i[class*="bi-"],
.why-card:hover i[class*="bi-"] {
  transform: scale(1.045);
}

.service-card i[class*="bi-"],
.process-card i[class*="bi-"],
.why-card i[class*="bi-"] {
  display: inline-block;
  transition: transform 0.28s ease;
  transform-origin: center;
}

/* Homepage Core Services: section depth + elevated cards */
#services.services.section.ag-section-alt {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

#services.services.section.ag-section-alt.ag-compact-y {
  padding-top: 3.75rem !important;
  padding-bottom: 3.75rem !important;
}

#services .service-card.ag-card-surface {
  box-shadow:
    0 22px 56px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.05);
}

#services .service-card.ag-card-surface:hover {
  box-shadow:
    0 30px 72px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(51, 209, 255, 0.16),
    0 18px 46px rgba(51, 209, 255, 0.08);
}

.light-background .service-card.ag-card-surface:hover,
.light-background .process-card.ag-card-surface:hover {
  box-shadow:
    0 24px 52px rgba(15, 23, 42, 0.11),
    0 0 0 1px rgba(51, 209, 255, 0.14);
  border-color: rgba(51, 209, 255, 0.18) !important;
}

.service-card .stretched-link:hover {
  color: var(--brand-primary);
}

.service-card:focus-within,
.process-card:focus-within,
.why-card:focus-within {
  outline: 2px solid color-mix(in srgb, var(--brand-primary), transparent 50%);
  outline-offset: 4px;
}

/* Unified marketing cards (surface + border + shadow) */
.service-card.ag-card-surface,
.process-card.ag-card-surface {
  border-radius: 24px !important;
  border: 1px solid var(--border-subtle) !important;
  background: var(--surface-color) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.32);
}

.light-background .service-card.ag-card-surface,
.light-background .process-card.ag-card-surface {
  background: #ffffff !important;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

.why-card {
  border-radius: 24px;
  border: 1px solid var(--border-subtle) !important;
  background: color-mix(in srgb, #ffffff 7%, transparent) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
}

.services-list a:hover {
  transform: translateX(4px);
  color: var(--brand-primary);
}

.btn-get-started,
.btn-primary,
button.btn-primary,
input[type="submit"].btn-primary,
.contact .php-email-form button[type="submit"],
.pricing .cta-btn {
  background: linear-gradient(90deg, var(--brand-primary) 0%, var(--brand-secondary) 100%) !important;
  color: #ffffff !important;
  border-color: transparent !important;
  box-shadow: 0 10px 34px color-mix(in srgb, var(--brand-primary), transparent 58%);
}

.btn-get-started {
  border: none;
}

.page-title.accent-background {
  background: linear-gradient(100deg, var(--brand-dark) 0%, var(--brand-dark-secondary) 55%, color-mix(in srgb, var(--brand-dark-secondary) 88%, var(--brand-dark) 12%) 100%);
  border-bottom: 1px solid var(--border-subtle);
}

.service-feature-media {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  margin-bottom: 1.75rem;
}

.service-feature-media img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.service-details .services-list {
  background-color: var(--surface-elevated);
  border-color: var(--border-subtle);
}

.ag-hero-band {
  background: radial-gradient(900px 500px at 18% 0%, color-mix(in srgb, var(--brand-primary), transparent 88%), transparent),
    linear-gradient(160deg, var(--brand-dark) 0%, color-mix(in srgb, var(--brand-dark-secondary) 70%, var(--brand-dark) 30%) 55%, var(--brand-dark) 100%);
}

/* Hero visual: subtle cinematic overlay (no markup changes) */
.hero.ag-hero-band .position-relative.overflow-hidden {
  isolation: isolate;
}

.hero.ag-hero-band .position-relative.overflow-hidden::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(11, 16, 32, 0.24) 0%, transparent 40%, rgba(11, 16, 32, 0.68) 100%);
}

.hero.ag-hero-band .position-relative.overflow-hidden > img {
  position: relative;
  z-index: 0;
}

.hero.ag-hero-band .position-relative.overflow-hidden > .position-absolute {
  z-index: 2;
}

.hero.ag-hero-band .hero-content .ag-muted {
  text-shadow: 0 2px 20px rgba(11, 16, 32, 0.58);
}

.ag-section {
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand-dark-secondary) 58%, var(--brand-dark) 42%) 0%, color-mix(in srgb, var(--brand-dark) 92%, #000 8%) 100%);
}

.ag-section-alt {
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand-dark-secondary) 68%, var(--brand-dark) 32%) 0%, color-mix(in srgb, var(--brand-dark) 94%, #000 6%) 100%);
}

section.light-background.ag-section-alt,
.section.light-background.ag-section-alt {
  background: var(--brand-light) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

/* Mid / deep alternation between section bands */
.ag-section-mid {
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand-dark-secondary) 52%, #070b14 48%) 0%, color-mix(in srgb, var(--brand-dark) 95%, #000 5%) 100%);
}

.ag-section-deep {
  background: linear-gradient(145deg, color-mix(in srgb, var(--brand-dark) 88%, #000 12%) 0%, var(--brand-dark-secondary) 52%, color-mix(in srgb, var(--brand-dark-secondary) 85%, #000 15%) 100%);
}

/* About — partnership benefit steps (hover lift + glow) */
.ag-benefits-track {
  position: relative;
}

.ag-benefit-card {
  position: relative;
  z-index: 1;
  padding: 1.45rem 1.25rem 1.35rem;
  border-radius: 22px;
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  transition: transform 0.32s cubic-bezier(0.2, 0.9, 0.2, 1), box-shadow 0.32s ease, border-color 0.32s ease;
}

.ag-benefit-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.32s ease;
  background: radial-gradient(100% 90% at 20% 0%, color-mix(in srgb, var(--brand-primary), transparent 82%), transparent 58%),
    radial-gradient(80% 70% at 100% 100%, color-mix(in srgb, var(--brand-secondary), transparent 88%), transparent 55%);
  pointer-events: none;
  z-index: 0;
}

.ag-benefit-card > * {
  position: relative;
  z-index: 1;
}

.ag-benefit-card:hover {
  transform: translateY(-8px);
  border-color: color-mix(in srgb, var(--brand-primary), transparent 52%);
  box-shadow:
    0 26px 64px rgba(0, 0, 0, 0.48),
    0 0 0 1px color-mix(in srgb, var(--brand-primary), transparent 78%),
    0 0 42px color-mix(in srgb, var(--brand-primary), transparent 82%);
}

.ag-benefit-card:hover::before {
  opacity: 1;
}

.ag-benefit-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  padding: 0.35rem 0.65rem;
  margin-bottom: 0.85rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--contrast-color);
  background: linear-gradient(120deg, color-mix(in srgb, var(--brand-primary) 85%, #fff 15%), color-mix(in srgb, var(--brand-secondary) 78%, var(--brand-dark) 22%));
  box-shadow: 0 6px 20px color-mix(in srgb, var(--brand-primary), transparent 65%);
}

.ag-benefit-icon {
  width: 3rem;
  height: 3rem;
  margin-bottom: 0.85rem;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: var(--brand-primary);
  background: color-mix(in srgb, var(--brand-primary), transparent 90%);
  border: 1px solid color-mix(in srgb, var(--brand-primary), transparent 78%);
  transition: transform 0.32s cubic-bezier(0.2, 0.9, 0.2, 1), box-shadow 0.32s ease, border-color 0.32s ease, color 0.32s ease;
}

.ag-benefit-card:hover .ag-benefit-icon {
  transform: scale(1.08);
  color: color-mix(in srgb, var(--brand-primary) 90%, #fff 10%);
  border-color: color-mix(in srgb, var(--brand-primary), transparent 45%);
  box-shadow: 0 0 28px color-mix(in srgb, var(--brand-primary), transparent 55%);
}

.ag-benefit-card:focus-within {
  outline: 2px solid color-mix(in srgb, var(--brand-primary), transparent 45%);
  outline-offset: 3px;
}

/* Legal / inner pages */
.ag-legal-page {
  padding: 48px 0 64px;
}

.ag-legal-page h1,
.ag-legal-page h2 {
  color: var(--heading-color);
}

.ag-legal-page p,
.ag-legal-page li {
  color: var(--default-color);
  line-height: 1.75;
}

.ag-legal-page .lead {
  color: color-mix(in srgb, var(--default-color), var(--heading-color) 12%);
}

/* Pills / chips: centered label — full pill rounding */
.ag-chip-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  line-height: 1.2;
  padding: 0.5rem 1rem;
  box-sizing: border-box;
  border-radius: 999px;
}

.ag-chip.ag-chip-inline {
  border-radius: 999px;
}

/* Tighter vertical rhythm on marketing sections */
.ag-compact-y {
  padding-top: 56px !important;
  padding-bottom: 56px !important;
}

.ag-compact-heading {
  margin-bottom: 1.25rem !important;
}

/* Buttons & pill CTAs: centered label */
button:not(:disabled),
.btn,
.btn-get-started,
.btn-primary,
input[type="submit"],
a.btn-get-started,
a.ag-btn-ghost,
a.btn-outline-light,
.btn-outline-light,
#cookie-banner button,
.cookie-btn-primary,
.cookie-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

a.ag-btn-ghost,
a.btn-get-started,
a.btn-outline-light,
.btn-get-started,
button.btn-get-started {
  line-height: 1.2;
  min-height: 2.75rem;
}

.contact .php-email-form button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Contact form — rounded fields */
.contact .php-email-form .form-control,
.contact .php-email-form textarea.form-control,
.contact.ag-contact-form .form-control,
.contact.ag-contact-form textarea.form-control {
  border-radius: 22px;
  border: 1px solid var(--border-subtle);
  background: var(--surface-elevated);
  color: var(--heading-color);
}

.contact.ag-contact-form .form-control::placeholder,
.contact.ag-contact-form textarea.form-control::placeholder {
  color: color-mix(in srgb, var(--default-color), transparent 12%);
  opacity: 1;
}

.contact .ag-form-label {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: color-mix(in srgb, var(--heading-color), var(--default-color) 35%);
  margin-bottom: 0.35rem;
}

.contact .php-email-form .form-control:focus,
.contact .php-email-form textarea.form-control:focus,
.contact.ag-contact-form .form-control:focus,
.contact.ag-contact-form textarea.form-control:focus {
  border-color: color-mix(in srgb, var(--brand-primary), transparent 35%);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-primary), transparent 88%);
}

/* Contact map — same width as form column (see contact.html grid) */
.contact .info.ag-contact-info-card {
  border-radius: 22px;
  overflow: hidden;
}

.ag-map-contact {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
  background: var(--surface-elevated);
}

.ag-map-contact iframe {
  display: block;
  width: 100%;
  min-height: 440px;
  border: 0;
  vertical-align: bottom;
}

.ag-card-surface {
  background: var(--surface-color);
  border: 1px solid var(--border-subtle);
}

.ag-chip {
  background: color-mix(in srgb, var(--brand-primary), transparent 90%);
  color: var(--brand-primary);
}

.ag-muted {
  color: color-mix(in srgb, var(--default-color), transparent 8%);
}

.light-background .ag-muted {
  color: var(--text-muted);
}

/* Technological hover for primary controls */
button:not(:disabled),
.btn,
.btn-get-started,
.btn-primary,
input[type="submit"],
.scroll-top,
#cookie-banner button,
.pricing .cta-btn,
.portfolio-details .portfolio-info .btn-visit,
.contact .php-email-form button[type="submit"],
.footer .footer-newsletter .newsletter-form input[type="submit"] {
  transition: transform 0.28s cubic-bezier(.2, .9, .2, 1), box-shadow 0.28s ease, border-color 0.28s ease, background 0.28s ease, filter 0.28s ease, color 0.28s ease;
}

button:not(:disabled):hover,
.btn:hover,
.btn-get-started:hover,
.btn-primary:hover,
input[type="submit"]:hover,
.scroll-top:hover,
#cookie-banner button:hover,
.pricing .cta-btn:hover,
.portfolio-details .portfolio-info .btn-visit:hover,
.contact .php-email-form button[type="submit"]:hover,
.footer .footer-newsletter .newsletter-form input[type="submit"]:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.45), 0 0 0 1px color-mix(in srgb, var(--brand-primary), transparent 62%), 0 0 28px var(--glow-accent);
}

button:not(:disabled):active,
.btn:active,
.btn-get-started:active,
.btn-primary:active,
input[type="submit"]:active,
.scroll-top:active,
#cookie-banner button:active,
.pricing .cta-btn:active,
.contact .php-email-form button[type="submit"]:active {
  transform: translateY(0);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.38);
}

/* Primary CTAs: cyan lift + glow (does not target ghost / outline) */
.btn-get-started:hover,
a.btn-get-started:hover,
button.btn-get-started:hover:not(.cookie-btn-secondary),
.btn-primary:hover:not(.btn-outline-light):not(.btn-secondary),
#cookie-banner .cookie-btn-primary:hover,
.contact .php-email-form button[type="submit"]:hover,
.pricing .cta-btn:hover {
  box-shadow:
    0 10px 25px rgba(51, 209, 255, 0.25),
    0 14px 38px rgba(0, 0, 0, 0.45),
    0 0 0 1px color-mix(in srgb, var(--brand-primary), transparent 52%),
    0 0 40px color-mix(in srgb, var(--brand-primary), transparent 72%);
}

#cookie-banner .cookie-btn-secondary:hover {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.38), 0 0 0 1px rgba(255, 255, 255, 0.12);
  filter: brightness(1.04);
}

/*--------------------------------------------------------------
# Global Footer
--------------------------------------------------------------*/
.footer {
  color: var(--default-color);
  background-color: var(--background-color);
  font-size: 14px;
  position: relative;
}

.footer.dark-background {
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand-dark-secondary) 100%);
}

.footer .footer-top {
  padding-top: 50px;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.footer .footer-about .logo {
  line-height: 1;
  margin-bottom: 25px;
}

.footer .footer-about .logo img {
  max-height: 40px;
  margin-right: 6px;
}

.footer .footer-about .logo span {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 1px;
  font-family: var(--heading-font);
  color: var(--heading-color);
}

.footer .footer-about p {
  font-size: 14px;
  font-family: var(--heading-font);
}

.footer .social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 50%);
  font-size: 16px;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  margin-right: 10px;
  transition: 0.3s;
}

.footer .social-links a:hover {
  color: var(--accent-color);
  border-color: var(--accent-color);
}

.footer h4 {
  font-size: 16px;
  font-weight: bold;
  position: relative;
  padding-bottom: 12px;
}

.footer .footer-links {
  margin-bottom: 30px;
}

.footer .footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer .footer-links ul i {
  padding-right: 2px;
  font-size: 12px;
  line-height: 0;
}

.footer .footer-links ul li {
  padding: 10px 0;
  display: flex;
  align-items: center;
}

/* Dark footer: tighter link spacing aligned with body line-height (~1.7) */
.footer.dark-background .footer-links ul li {
  padding: 0.2em 0 !important;
  margin-bottom: 0 !important;
}

.footer.dark-background .footer-links ul li:first-child {
  padding-top: 0 !important;
}

.footer.dark-background .footer-links ul li:last-child {
  padding-bottom: 0 !important;
}

.footer.dark-background .footer-links ul a {
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.72) !important;
}

.footer .footer-links ul li:first-child {
  padding-top: 0;
}

.footer .footer-links ul a {
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  display: inline-block;
  line-height: 1;
}

.footer .footer-links ul a:hover {
  color: var(--accent-color);
}

/* Footer column links + Cookie Preferences — strong accent hover (overrides inline colors) */
.footer.dark-background .footer-links ul a:hover {
  color: var(--brand-primary) !important;
  text-decoration: none !important;
  text-shadow: 0 0 22px color-mix(in srgb, var(--brand-primary), transparent 45%);
  filter: brightness(1.08);
}

/* Cookie Preferences: text-link appearance in footer column (no box outline) */
.footer.dark-background .footer-links #openCookiePreferences {
  display: inline-block;
  width: auto;
  max-width: 100%;
  font: inherit;
  font-size: inherit;
  line-height: 1.7;
  text-align: left;
  padding: 0 !important;
  margin: 0;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.72) !important;
  transition: color 0.2s ease, filter 0.2s ease, text-shadow 0.2s ease;
}

.footer.dark-background .footer-links #openCookiePreferences::-moz-focus-inner {
  border: 0;
  padding: 0;
}

.footer.dark-background .footer-links #openCookiePreferences:hover,
.footer.dark-background .footer-links #openCookiePreferences:focus-visible {
  color: var(--brand-primary) !important;
  text-decoration: none !important;
  text-shadow: 0 0 22px color-mix(in srgb, var(--brand-primary), transparent 45%);
  filter: brightness(1.08);
}

.footer.dark-background .footer-links #openCookiePreferences:active {
  outline: none !important;
  box-shadow: none !important;
}

.footer.dark-background .footer-links #openCookiePreferences:focus,
.footer.dark-background .footer-links #openCookiePreferences:focus:not(:focus-visible) {
  outline: none !important;
}

.footer.dark-background .footer-links #openCookiePreferences:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

/* mailto: links — accent gradient text (exclude pill buttons like “Email us”) */
a[href^="mailto:"]:not(.btn) {
  background-image: linear-gradient(
    100deg,
    color-mix(in srgb, var(--brand-primary) 82%, #ffffff 18%) 0%,
    var(--brand-primary) 28%,
    color-mix(in srgb, var(--brand-secondary) 75%, var(--brand-primary) 25%) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  text-decoration: none;
  transition: filter 0.2s ease, text-shadow 0.2s ease;
}

a[href^="mailto:"]:not(.btn):hover {
  filter: brightness(1.12);
  text-shadow: 0 0 18px color-mix(in srgb, var(--brand-primary), transparent 50%);
}

/* Footer column titles + company wordmark — accent gradient (beats .dark-background * / h4 / .logo span) */
.footer.dark-background .footer-links h4,
.footer.dark-background .footer-about a.logo .sitename,
.footer.dark-background .copyright strong.sitename {
  background-image: linear-gradient(
    100deg,
    color-mix(in srgb, var(--brand-primary) 82%, #ffffff 18%) 0%,
    var(--brand-primary) 22%,
    color-mix(in srgb, var(--brand-secondary) 72%, var(--brand-primary) 28%) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
}

.footer .footer-contact p {
  margin-bottom: 5px;
}

.footer .footer-newsletter .newsletter-form {
  margin-top: 30px;
  margin-bottom: 15px;
  padding: 6px 8px;
  position: relative;
  border-radius: 4px;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 80%);
  display: flex;
  background-color: var(--surface-color);
  transition: 0.3s;
}

.footer .footer-newsletter .newsletter-form:focus-within {
  border-color: var(--accent-color);
}

.footer .footer-newsletter .newsletter-form input[type=email] {
  border: 0;
  padding: 4px;
  width: 100%;
  background-color: var(--surface-color);
  color: var(--default-color);
}

.footer .footer-newsletter .newsletter-form input[type=email]:focus-visible {
  outline: none;
}

.footer .footer-newsletter .newsletter-form input[type=submit] {
  border: 0;
  font-size: 16px;
  padding: 0 20px;
  margin: -7px -8px -7px 0;
  background: var(--accent-color);
  color: var(--contrast-color);
  transition: 0.3s;
  border-radius: 0 4px 4px 0;
}

.footer .footer-newsletter .newsletter-form input[type=submit]:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 20%);
}

.footer .copyright {
  padding: 25px 0;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.footer .copyright p {
  margin-bottom: 0;
}

.footer .credits {
  margin-top: 6px;
  font-size: 13px;
}

/*--------------------------------------------------------------
# Scroll Top Button
--------------------------------------------------------------*/
.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 99999;
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
  width: 40px;
  height: 40px;
  border-radius: 4px;
  transition: transform 0.28s ease, box-shadow 0.28s ease, background 0.28s ease, opacity 0.4s ease, visibility 0.4s ease;
}

.scroll-top i {
  font-size: 24px;
  color: #ffffff;
  line-height: 0;
  transition: transform 0.28s ease;
}

.scroll-top:hover {
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand-primary) 88%, #ffffff 12%) 0%, color-mix(in srgb, var(--brand-secondary) 88%, #ffffff 12%) 100%);
  color: #ffffff;
  box-shadow:
    0 10px 25px rgba(51, 209, 255, 0.3),
    0 0 36px color-mix(in srgb, var(--brand-primary), transparent 65%);
}

.scroll-top:hover i {
  transform: scale(1.06);
}

.scroll-top.active {
  visibility: visible;
  opacity: 1;
}

/*--------------------------------------------------------------
# Disable aos animation delay on mobile devices
--------------------------------------------------------------*/
@media screen and (max-width: 768px) {
  [data-aos-delay] {
    transition-delay: 0 !important;
  }
}

/*--------------------------------------------------------------
# Global Page Titles & Breadcrumbs
--------------------------------------------------------------*/
.page-title {
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 25px 0;
  position: relative;
}

.page-title h1 {
  font-size: 24px;
  font-weight: 700;
}

.page-title .breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
  font-weight: 400;
}

.page-title .breadcrumbs ol li+li {
  padding-left: 10px;
}

.page-title .breadcrumbs ol li+li::before {
  content: "/";
  display: inline-block;
  padding-right: 10px;
  color: color-mix(in srgb, var(--default-color), transparent 70%);
}

/* Mobile: stripe page title — vertically centered block like desktop polish */
@media (max-width: 991.98px) {
  .page-title.accent-background {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  .page-title.accent-background > .container {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    min-height: 4.25rem;
    padding-top: 1.125rem;
    padding-bottom: 1.125rem;
  }

  .page-title.accent-background h1 {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }
}

/*--------------------------------------------------------------
# Global Sections
--------------------------------------------------------------*/
section,
.section {
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 60px 0;
  scroll-margin-top: 100px;
  overflow: clip;
}

@media (max-width: 1199px) {

  section,
  .section {
    scroll-margin-top: 66px;
  }
}

/*--------------------------------------------------------------
# Global Section Titles
--------------------------------------------------------------*/
.section-title {
  text-align: center;
  padding-bottom: 60px;
  position: relative;
}

.section-title h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
  padding-bottom: 20px;
  position: relative;
}

.section-title h2:after {
  content: "";
  position: absolute;
  display: block;
  width: 50px;
  height: 3px;
  background: var(--accent-color);
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
}

.section-title p {
  margin-bottom: 0;
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero {
  padding: 0;
}

.hero .carousel {
  width: 100%;
  min-height: calc(100vh - 75px);
  padding: 0;
  margin: 0;
  position: relative;
}

@media (max-height: 500px),
(max-width: 1200px) {
  .hero .carousel {
    min-height: calc(100vh - 48px);
  }
}

.hero img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero .carousel-item {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.hero .container {
  position: relative;
  text-align: center;
  padding-top: 30px;
  padding-bottom: 30px;
  margin-bottom: 50px;
  border-top: 4px solid var(--accent-color);
  z-index: 3;
}

@media (max-width: 1200px) {
  .hero .container {
    margin-left: 50px;
    margin-right: 50px;
  }

  /* Homepage marketing hero: legacy margins break mobile width (horizontal overflow) */
  .hero.ag-hero-band .container {
    margin-left: auto !important;
    margin-right: auto !important;
    margin-bottom: 0 !important;
    border-top: none !important;
    background: transparent !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    text-align: inherit;
  }
}

.hero h2 {
  margin-bottom: 20px;
  font-size: 36px;
  font-weight: 700;
}

@media (max-width: 768px) {
  .hero h2 {
    font-size: 30px;
  }
}

.hero .btn-get-started {
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 1px;
  display: inline-block;
  padding: 8px 32px;
  transition: 0.5s;
  margin: 10px;
  border-radius: 4px;
  color: var(--contrast-color);
  border: 2px solid var(--accent-color);
}

.hero .btn-get-started:hover {
  background: var(--accent-color);
  color: var(--contrast-color);
}

/* Marketing hero (dark band): primary CTA matches brand gradient */
.hero.dark-background .btn-get-started {
  color: #ffffff !important;
  border: none !important;
  background: linear-gradient(90deg, var(--brand-primary) 0%, var(--brand-secondary) 100%) !important;
  box-shadow:
    0 14px 40px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 10px 34px color-mix(in srgb, var(--brand-primary), transparent 55%);
}

.hero.dark-background .btn-get-started:hover {
  color: #ffffff !important;
  background: linear-gradient(90deg, var(--brand-primary) 0%, var(--brand-secondary) 100%) !important;
  filter: brightness(1.06);
  box-shadow:
    0 10px 25px rgba(51, 209, 255, 0.28),
    0 18px 44px rgba(0, 0, 0, 0.45),
    0 0 0 1px color-mix(in srgb, var(--brand-primary), transparent 50%);
}

/* Homepage hero: primary CTA scaled to align with ghost "Contact" */
.hero.dark-background.ag-hero-band .btn-get-started.ag-hero-primary-cta,
.hero.dark-background.ag-hero-band a.ag-hero-secondary-cta {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin: 0 !important;
  border-radius: 999px !important;
  font-size: 0.9375rem !important;
  line-height: 1.2 !important;
  text-align: center;
}

.hero.dark-background.ag-hero-band .btn-get-started.ag-hero-primary-cta {
  padding: 11px 27px !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.36),
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 8px 26px color-mix(in srgb, var(--brand-primary), transparent 62%) !important;
}

.hero.dark-background.ag-hero-band a.ag-hero-secondary-cta {
  padding: 11px 27px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}

.hero.dark-background.ag-hero-band .btn-get-started.ag-hero-primary-cta:hover {
  filter: brightness(1.05);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.4),
    0 0 0 1px color-mix(in srgb, var(--brand-primary), transparent 55%),
    0 10px 30px color-mix(in srgb, var(--brand-primary), transparent 58%) !important;
}

@media (max-width: 991.98px) {
  /* Flex children must shrink so headings wrap inside the viewport */
  #hero.hero.ag-hero-band .row {
    --bs-gutter-x: 1rem;
  }

  #hero.hero.ag-hero-band .row > [class*="col-"] {
    min-width: 0;
  }

  #hero.hero.ag-hero-band {
    padding-top: 28px !important;
    padding-bottom: 22px !important;
    overflow-x: hidden;
  }

  #hero.hero.ag-hero-band .row > .col-lg-6:last-child {
    margin-top: 1.25rem;
  }

  #hero.hero.ag-hero-band .ag-hero-title {
    font-size: clamp(1.35rem, 4.2vw + 0.55rem, 1.95rem) !important;
    line-height: 1.18 !important;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
    max-width: 100%;
  }

  #hero.hero.ag-hero-band .hero-content .ag-muted {
    font-size: 0.95rem !important;
    line-height: 1.65 !important;
    margin-bottom: 14px !important;
    max-width: 100% !important;
  }

  #hero.hero.ag-hero-band .hero-content .ag-chip-inline.ag-chip.mb-3 {
    margin-bottom: 0.5rem !important;
    font-size: 11px !important;
  }

  #hero.hero.ag-hero-band .hero-content .d-flex.flex-column.flex-sm-row.gap-3 {
    margin-bottom: 0.65rem !important;
  }

  #hero.hero.ag-hero-band .ag-hero-chips {
    gap: 0.4rem !important;
  }

  #hero.hero.ag-hero-band .ag-hero-chips .ag-hero-chip {
    font-size: 12px;
    padding: 0.35rem 0.6rem;
  }

  /* Compact hero visual on small screens so block fits viewport better */
  #hero.hero.ag-hero-band .row > .col-lg-6:last-child .position-relative {
    max-height: min(38vh, 260px);
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
  }

  #hero.hero.ag-hero-band .ag-hero-visual-img {
    max-height: min(38vh, 260px);
    object-fit: cover;
  }

  .hero.ag-hero-band .row > .col-lg-6:first-child {
    text-align: center;
  }

  .hero.ag-hero-band .hero-content {
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
    padding-top: 6px;
  }

  .hero.ag-hero-band .hero-content .ag-muted {
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .hero.ag-hero-band .hero-content .d-flex.flex-column.flex-sm-row.gap-3 {
    align-items: center;
    justify-content: center;
  }

  .hero.ag-hero-band .ag-hero-chips {
    justify-content: center;
  }

  .hero.ag-hero-band .row > .col-lg-6:last-child {
    text-align: center;
  }
}

@media (min-width: 992px) {
  .hero.ag-hero-band .ag-hero-chips {
    justify-content: flex-start;
  }
}

/* Hero + About chips: even wrap, readable pills */
.hero.ag-hero-band .ag-hero-chips .ag-hero-chip,
#about .ag-about-chips .ag-about-chip {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  max-width: 100%;
  line-height: 1.25;
  white-space: normal;
  text-align: start;
  padding: 0.45rem 0.75rem;
}

.hero.ag-hero-band .ag-hero-chips .ag-hero-chip {
  font-size: 13px;
  font-weight: 600;
  min-height: 2.125rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.hero.ag-hero-band .ag-hero-chips .ag-hero-chip i {
  color: var(--brand-primary);
  flex-shrink: 0;
  font-size: 1rem;
  line-height: 1;
}

#about .ag-about-chips {
  justify-content: center;
}

@media (min-width: 992px) {
  #about .ag-about-chips {
    justify-content: flex-start;
  }
}

#about .ag-about-chips .ag-about-chip {
  font-size: 13px;
  font-weight: 600;
  min-height: 2.125rem;
  color: var(--heading-color);
  border-radius: 999px;
}

#about .ag-about-chips .ag-about-chip i {
  color: var(--brand-primary);
  flex-shrink: 0;
  font-size: 1rem;
  line-height: 1;
}

.hero .carousel-control-prev {
  justify-content: start;
}

@media (min-width: 640px) {
  .hero .carousel-control-prev {
    padding-left: 15px;
  }
}

.hero .carousel-control-next {
  justify-content: end;
}

@media (min-width: 640px) {
  .hero .carousel-control-next {
    padding-right: 15px;
  }
}

.hero .carousel-control-next-icon,
.hero .carousel-control-prev-icon {
  background: none;
  font-size: 26px;
  line-height: 0;
  background: color-mix(in srgb, var(--default-color), transparent 90%);
  border-radius: 50px;
  color: var(--contrast-color);
  transition: 0.3s;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero .carousel-control-prev,
.hero .carousel-control-next {
  transition: 0.3s;
  opacity: 0.5;
}

.hero .carousel-control-prev:focus,
.hero .carousel-control-next:focus {
  opacity: 0.5;
}

.hero .carousel-control-prev:hover,
.hero .carousel-control-next:hover {
  opacity: 0.9;
}

.hero .carousel-control-prev:hover .carousel-control-next-icon,
.hero .carousel-control-prev:hover .carousel-control-prev-icon,
.hero .carousel-control-next:hover .carousel-control-next-icon,
.hero .carousel-control-next:hover .carousel-control-prev-icon {
  background: var(--accent-color);
  color: var(--default-color);
}

.hero .carousel-indicators li {
  cursor: pointer;
  background: var(--default-color);
  overflow: hidden;
  border: 0;
  width: 12px;
  height: 12px;
  border-radius: 50px;
  opacity: 0.6;
  transition: 0.3s;
}

.hero .carousel-indicators li.active {
  opacity: 1;
  background: var(--accent-color);
}

/*--------------------------------------------------------------
# About Section
--------------------------------------------------------------*/
.about .inner-title {
  font-size: 2.75rem;
  font-weight: 700;
  margin: 30px 0;
}

@media (min-width: 991px) {
  .about .inner-title {
    max-width: 65%;
    margin: 0 0 80px 0;
  }
}

.about .our-story {
  padding: 40px;
  background-color: color-mix(in srgb, var(--default-color), transparent 96%);
}

@media (min-width: 991px) {
  .about .our-story {
    padding-right: 35%;
  }
}

.about .our-story h4 {
  text-transform: uppercase;
  font-size: 1.1rem;
  color: color-mix(in srgb, var(--default-color), transparent 50%);
}

.about .our-story h3 {
  font-size: 2.25rem;
  font-weight: 700;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
}

.about .our-story p:last-child {
  margin-bottom: 0;
}

.about ul {
  list-style: none;
  padding: 0;
  font-size: 15px;
}

.about ul li {
  padding: 5px 0;
  display: flex;
  align-items: center;
}

.about ul i {
  font-size: 1.25rem;
  margin-right: 0.5rem;
  line-height: 1.2;
  color: var(--accent-color);
}

.about .watch-video i {
  font-size: 2rem;
  transition: 0.3s;
  color: var(--accent-color);
}

.about .watch-video a {
  font-weight: 600;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  margin-left: 8px;
  transition: 0.3s;
}

.about .watch-video:hover a {
  color: var(--accent-color);
}

.about .about-img {
  min-height: 400px;
  position: relative;
}

@media (min-width: 992px) {
  .about .about-img {
    position: absolute;
    top: 0;
    right: 0;
    min-height: 600px;
  }
}

.about .about-img img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
}

/*--------------------------------------------------------------
# Services Section
--------------------------------------------------------------*/
.services .service-item {
  background-color: var(--surface-color);
  box-shadow: 0px 5px 90px 0px rgba(0, 0, 0, 0.1);
  height: 100%;
  padding: 60px 30px;
  text-align: center;
  transition: 0.3s;
  border-radius: 5px;
}

.services .service-item .icon {
  margin: 0 auto;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: ease-in-out 0.3s;
  position: relative;
}

.services .service-item .icon i {
  font-size: 36px;
  transition: 0.5s;
  position: relative;
}

.services .service-item .icon svg {
  position: absolute;
  top: 0;
  left: 0;
}

.services .service-item .icon svg path {
  transition: 0.5s;
  fill: color-mix(in srgb, var(--default-color), transparent 95%);
}

.services .service-item h3 {
  font-weight: 700;
  margin: 10px 0 15px 0;
  font-size: 22px;
}

.services .service-item p {
  line-height: 24px;
  font-size: 14px;
  margin-bottom: 0;
}

.services .service-item:hover {
  box-shadow: 0px 5px 35px 0px rgba(0, 0, 0, 0.1);
}

.services .service-item.item-cyan i {
  color: #0dcaf0;
}

.services .service-item.item-cyan:hover .icon i {
  color: #fff;
}

.services .service-item.item-cyan:hover .icon path {
  fill: #0dcaf0;
}

.services .service-item.item-orange i {
  color: #fd7e14;
}

.services .service-item.item-orange:hover .icon i {
  color: #fff;
}

.services .service-item.item-orange:hover .icon path {
  fill: #fd7e14;
}

.services .service-item.item-teal i {
  color: #20c997;
}

.services .service-item.item-teal:hover .icon i {
  color: #fff;
}

.services .service-item.item-teal:hover .icon path {
  fill: #20c997;
}

.services .service-item.item-red i {
  color: #df1529;
}

.services .service-item.item-red:hover .icon i {
  color: #fff;
}

.services .service-item.item-red:hover .icon path {
  fill: #df1529;
}

.services .service-item.item-indigo i {
  color: #6610f2;
}

.services .service-item.item-indigo:hover .icon i {
  color: #fff;
}

.services .service-item.item-indigo:hover .icon path {
  fill: #6610f2;
}

.services .service-item.item-pink i {
  color: #f3268c;
}

.services .service-item.item-pink:hover .icon i {
  color: #fff;
}

.services .service-item.item-pink:hover .icon path {
  fill: #f3268c;
}

/*--------------------------------------------------------------
# Portfolio Section
--------------------------------------------------------------*/
.portfolio .portfolio-filters {
  padding: 0;
  margin: 0 auto 20px auto;
  list-style: none;
  text-align: center;
}

.portfolio .portfolio-filters li {
  cursor: pointer;
  display: inline-block;
  padding: 8px 20px 10px 20px;
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  margin-bottom: 5px;
  border-radius: 4px;
  transition: all 0.3s ease-in-out;
  font-family: var(--heading-font);
}

.portfolio .portfolio-filters li:hover,
.portfolio .portfolio-filters li.filter-active {
  color: var(--contrast-color);
  background-color: var(--accent-color);
}

.portfolio .portfolio-filters li:first-child {
  margin-left: 0;
}

.portfolio .portfolio-filters li:last-child {
  margin-right: 0;
}

@media (max-width: 575px) {
  .portfolio .portfolio-filters li {
    font-size: 14px;
    margin: 0 0 10px 0;
  }
}

.portfolio .portfolio-item {
  position: relative;
  overflow: hidden;
}

.portfolio .portfolio-item .portfolio-info {
  opacity: 0;
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -100%;
  z-index: 3;
  transition: all ease-in-out 0.5s;
  background: color-mix(in srgb, var(--surface-color), transparent 10%);
  padding: 15px;
}

.portfolio .portfolio-item .portfolio-info h4 {
  font-size: 18px;
  font-weight: 600;
  padding-right: 50px;
}

.portfolio .portfolio-item .portfolio-info p {
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  font-size: 14px;
  margin-bottom: 0;
  padding-right: 50px;
}

.portfolio .portfolio-item .portfolio-info .preview-link,
.portfolio .portfolio-item .portfolio-info .details-link {
  position: absolute;
  right: 50px;
  font-size: 24px;
  top: calc(50% - 14px);
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  transition: 0.3s;
  line-height: 0;
}

.portfolio .portfolio-item .portfolio-info .preview-link:hover,
.portfolio .portfolio-item .portfolio-info .details-link:hover {
  color: var(--accent-color);
}

.portfolio .portfolio-item .portfolio-info .details-link {
  right: 14px;
  font-size: 28px;
}

.portfolio .portfolio-item:hover .portfolio-info {
  opacity: 1;
  bottom: 0;
}

/*--------------------------------------------------------------
# Clients Section
--------------------------------------------------------------*/
.clients .clients-wrap {
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
  border-left: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
}

.clients .client-logo {
  background-color: var(--surface-color);
  display: flex;
  justify-content: center;
  align-items: center;
  border-right: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
  border-bottom: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
  overflow: hidden;
}

.clients .client-logo img {
  padding: 50px;
  max-width: 80%;
  transition: 0.3s;
}

@media (max-width: 640px) {
  .clients .client-logo img {
    padding: 30px;
    max-width: 50%;
  }
}

.clients .client-logo:hover img {
  transform: scale(1.1);
}

/*--------------------------------------------------------------
# Skills Section
--------------------------------------------------------------*/
.skills .progress {
  height: 60px;
  display: block;
  background: none;
  border-radius: 0;
}

.skills .progress .skill {
  color: var(--heading-color);
  padding: 0;
  margin: 0 0 6px 0;
  text-transform: uppercase;
  display: block;
  font-weight: 600;
  font-family: var(--heading-font);
}

.skills .progress .skill .val {
  float: right;
  font-style: normal;
}

.skills .progress-bar-wrap {
  background: color-mix(in srgb, var(--default-color), transparent 90%);
  height: 10px;
}

.skills .progress-bar {
  width: 1px;
  height: 10px;
  transition: 0.9s;
  background-color: var(--accent-color);
}

/*--------------------------------------------------------------
# Team Section
--------------------------------------------------------------*/
.team .team-member {
  background-color: var(--surface-color);
  box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  border-radius: 5px;
}

.team .team-member .member-img {
  position: relative;
  overflow: hidden;
}

.team .team-member .social {
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  height: 40px;
  opacity: 0;
  transition: ease-in-out 0.3s;
  background: color-mix(in srgb, var(--background-color), transparent 20%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.team .team-member .social a {
  transition: color 0.3s;
  color: var(--heading-color);
  margin: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.team .team-member .social a i {
  line-height: 0;
}

.team .team-member .social a:hover {
  color: var(--accent-color);
}

.team .team-member .social i {
  font-size: 18px;
  margin: 0 2px;
}

.team .team-member .member-info {
  padding: 25px 15px;
  text-align: center;
}

.team .team-member .member-info h4 {
  font-weight: 700;
  margin-bottom: 5px;
  font-size: 18px;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
}

.team .team-member .member-info span {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
}

.team .team-member .member-info p {
  font-style: italic;
  font-size: 14px;
  line-height: 26px;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
}

.team .team-member:hover .social {
  opacity: 1;
}

/*--------------------------------------------------------------
# Testimonials Section
--------------------------------------------------------------*/
.testimonials .testimonial-item {
  background-color: var(--surface-color);
  box-shadow: 0px 2px 12px rgba(0, 0, 0, 0.1);
  padding: 30px;
  position: relative;
  height: 100%;
}

.testimonials .testimonial-item .testimonial-img {
  width: 90px;
  border-radius: 50px;
  border: 6px solid var(--background-color);
  float: left;
  margin: 0 10px 0 0;
}

.testimonials .testimonial-item h3 {
  font-size: 18px;
  font-weight: bold;
  margin: 10px 0 5px 0;
}

.testimonials .testimonial-item h4 {
  font-size: 14px;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  margin: 0;
}

.testimonials .testimonial-item .stars {
  margin: 10px 0;
}

.testimonials .testimonial-item .stars i {
  color: #ffc107;
  margin: 0 1px;
}

.testimonials .testimonial-item .quote-icon-left,
.testimonials .testimonial-item .quote-icon-right {
  color: color-mix(in srgb, var(--accent-color), transparent 50%);
  font-size: 26px;
  line-height: 0;
}

.testimonials .testimonial-item .quote-icon-left {
  display: inline-block;
  left: -5px;
  position: relative;
}

.testimonials .testimonial-item .quote-icon-right {
  display: inline-block;
  right: -5px;
  position: relative;
  top: 10px;
  transform: scale(-1, -1);
}

.testimonials .testimonial-item p {
  font-style: italic;
  margin: 15px 0 0 0;
  padding: 0;
}

/*--------------------------------------------------------------
# Features Section
--------------------------------------------------------------*/
.features .features-item {
  background-color: var(--surface-color);
  display: flex;
  align-items: center;
  padding: 20px;
  transition: 0.3s;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  position: relative;
}

.features .features-item i {
  font-size: 32px;
  padding-right: 10px;
  line-height: 0;
}

.features .features-item h3 {
  font-weight: 700;
  margin: 0;
  padding: 0;
  line-height: 1;
  font-size: 16px;
}

.features .features-item h3 a {
  color: var(--heading-color);
  transition: 0.3s;
}

.features .features-item:hover {
  border-color: var(--accent-color);
}

.features .features-item:hover h3 a {
  color: var(--accent-color);
}

/*--------------------------------------------------------------
# Service Details Section
--------------------------------------------------------------*/
.service-details .services-list {
  background-color: var(--surface-color);
  padding: 12px 14px 16px;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  margin-bottom: 20px;
  border-radius: 18px;
  overflow: hidden;
}

.service-details .services-list a {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  line-height: 1.35;
  padding: 12px 12px 12px 22px;
  margin: 6px 0;
  border-radius: 12px;
  border-left: 0;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  transition: color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}

.service-details .services-list a i {
  font-size: 1.1rem;
  color: color-mix(in srgb, var(--brand-primary), transparent 15%);
  flex-shrink: 0;
  transition: color 0.25s ease, transform 0.25s ease;
}

.service-details .services-list a::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  max-height: 2rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--default-color), transparent 70%);
  transition: background 0.25s ease, height 0.25s ease;
}

.service-details .services-list a.active {
  color: var(--heading-color);
  font-weight: 700;
  background: color-mix(in srgb, var(--brand-primary), transparent 94%);
}

.service-details .services-list a.active::before {
  background: var(--accent-color);
  height: 70%;
}

.service-details .services-list a.active i {
  color: var(--brand-primary);
}

.service-details .services-list a:hover {
  background: color-mix(in srgb, var(--brand-primary), transparent 92%);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand-primary), transparent 80%);
}

.service-details .services-list a:hover::before {
  background: var(--accent-color);
}

.service-details .services-list a:hover i {
  color: var(--brand-primary);
  transform: scale(1.06);
}

.service-details figure.service-feature-media figcaption {
  text-align: center;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

.service-details .ag-service-cta {
  align-items: center;
}

.service-details .col-lg-4 .ag-card-surface.mt-3 {
  border-radius: 18px !important;
}

@media (max-width: 767.98px) {
  .service-details .services-list a {
    justify-content: center;
    text-align: center;
    padding-left: 12px;
  }

  .service-details .services-list a::before {
    display: none;
  }

  .service-details .ag-service-cta {
    justify-content: center !important;
  }

  .service-details .ag-service-cta > a {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }
}

/* Footer desktop: four equal columns, even horizontal gutters across full row width */
@media (min-width: 992px) {
  .footer.dark-background .footer-top .row.ag-footer-cols {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 2.25rem;
    row-gap: 1.5rem;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    max-width: 100%;
    --bs-gutter-x: 0;
  }

  .footer.dark-background .footer-top .row.ag-footer-cols > [class*="col-"] {
    width: 100% !important;
    max-width: none !important;
    flex: none !important;
    min-width: 0;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  /* Let copy use the full column track so gutters read evenly between columns */
  .footer.dark-background .footer-top .row.ag-footer-cols .footer-about > p {
    max-width: none !important;
  }

  /* Match vertical rhythm: heading → body across all footer columns */
  .footer.dark-background .footer-top .row.ag-footer-cols .footer-links > h4,
  .footer.dark-background .footer-top .row.ag-footer-cols .footer-about > .logo {
    margin-bottom: 1rem !important;
  }

  .footer.dark-background .footer-top .row.ag-footer-cols .footer-links > ul > li + li {
    margin-top: 0.45rem;
  }
}

/* Footer mobile: even vertical spacing between stacked columns */
@media (max-width: 991.98px) {
  .footer .footer-top {
    padding-top: 2.75rem !important;
    padding-bottom: 2.25rem !important;
  }

  .footer .footer-top .row {
    --bs-gutter-y: 1.75rem;
  }

  .footer .footer-top .footer-about,
  .footer .footer-top .footer-links {
    margin-bottom: 0;
  }

  .footer.dark-background .footer-about .logo {
    margin-bottom: 1rem !important;
  }

  .footer.dark-background .footer-about > p {
    margin-bottom: 0.25rem;
    line-height: 1.72;
  }

  /* Footer columns 2–4: tighter gap between heading and first link or paragraph */
  .footer.dark-background .footer-top .footer-links > h4 {
    margin-bottom: 0.5rem !important;
    padding-bottom: 0.2rem !important;
    margin-top: 0.15rem;
  }
}

/* Homepage FAQ accordion (index) */
.ag-faq-section {
  padding-top: 4.5rem;
  padding-bottom: 5.25rem;
  background: linear-gradient(180deg, var(--brand-dark-secondary) 0%, var(--brand-dark) 100%);
  border-top: 1px solid var(--border-subtle);
}

.ag-faq-accordion.accordion {
  --bs-accordion-color: rgba(232, 238, 246, 0.9);
  --bs-accordion-bg: transparent;
  --bs-accordion-border-color: rgba(255, 255, 255, 0.1);
  --bs-accordion-border-radius: 1rem;
  --bs-accordion-inner-border-radius: calc(1rem - 1px);
  --bs-accordion-btn-padding-y: 1.05rem;
  --bs-accordion-btn-padding-x: 1.2rem;
  --bs-accordion-btn-color: var(--heading-color);
  --bs-accordion-btn-bg: rgba(255, 255, 255, 0.04);
  --bs-accordion-btn-focus-box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--brand-primary), transparent 78%);
  --bs-accordion-active-color: #ffffff;
  --bs-accordion-active-bg: color-mix(in srgb, var(--brand-primary), transparent 86%);
  --bs-accordion-body-padding-y: 1.05rem;
  --bs-accordion-body-padding-x: 1.25rem;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: color-mix(in srgb, var(--brand-dark-secondary) 72%, transparent);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.ag-faq-accordion .accordion-item {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.06);
}

.ag-faq-accordion .accordion-button {
  font-weight: 600;
  font-size: 1.02rem;
  gap: 0.85rem;
  box-shadow: none !important;
  align-items: center;
}

.ag-faq-accordion .accordion-button:not(.collapsed) {
  box-shadow: none !important;
}

.ag-faq-accordion .accordion-button::after {
  filter: brightness(0) invert(1);
  opacity: 0.5;
  transition: transform 0.4s cubic-bezier(0.33, 1, 0.68, 1), opacity 0.25s ease;
}

.ag-faq-accordion .accordion-button:not(.collapsed)::after {
  opacity: 0.95;
}

.ag-faq-accordion .ag-faq-btn-icon {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--brand-primary), transparent 86%);
  color: var(--brand-primary);
  font-size: 1.2rem;
  transition: transform 0.4s cubic-bezier(0.33, 1, 0.68, 1), background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.ag-faq-accordion .accordion-button:not(.collapsed) .ag-faq-btn-icon {
  background: color-mix(in srgb, var(--brand-primary), transparent 74%);
  color: #e8fbff;
  transform: scale(1.06);
  box-shadow: 0 0 20px color-mix(in srgb, var(--brand-primary), transparent 65%);
}

.ag-faq-accordion .ag-faq-btn-text {
  flex: 1 1 auto;
  text-align: start;
  min-width: 0;
  line-height: 1.35;
}

.ag-faq-accordion .accordion-body {
  color: rgba(167, 180, 200, 0.96);
  line-height: 1.78;
  font-size: 0.98rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.ag-faq-accordion .accordion-body a {
  text-decoration-thickness: 1px;
}

.ag-faq-accordion .collapsing {
  transition: height 0.45s cubic-bezier(0.33, 1, 0.68, 1);
}

/* Homepage About: compact insight cards */
#about .col-sm-6 > .ag-card-surface {
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    border-color 0.28s ease,
    background-color 0.28s ease;
}

#about .col-sm-6 > .ag-card-surface:hover {
  transform: translateY(-3px);
  border-color: rgba(51, 209, 255, 0.16) !important;
  box-shadow:
    0 22px 52px rgba(0, 0, 0, 0.32),
    0 0 0 1px rgba(51, 209, 255, 0.12);
  background-color: color-mix(in srgb, var(--surface-elevated) 92%, var(--brand-primary) 8%) !important;
}

#about .col-sm-6 > .ag-card-surface .mb-3 i[class*="bi-"] {
  display: inline-block;
  transition: transform 0.28s ease, color 0.28s ease;
  transform-origin: center;
}

#about .col-sm-6 > .ag-card-surface:hover .mb-3 i[class*="bi-"] {
  transform: scale(1.045);
}

/* FAQ: subtle item affordance (accordion behaviour unchanged) */
.ag-faq-accordion .accordion-item {
  transition:
    border-color 0.28s ease,
    box-shadow 0.28s ease,
    transform 0.28s ease,
    background-color 0.28s ease;
}

.ag-faq-accordion .accordion-item:hover {
  border-color: rgba(51, 209, 255, 0.16);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.28);
  background-color: rgba(255, 255, 255, 0.025);
}

.ag-faq-accordion .accordion-button.collapsed:hover {
  background: rgba(255, 255, 255, 0.075) !important;
}

.ag-faq-accordion .accordion-item:hover .ag-faq-btn-icon {
  color: color-mix(in srgb, var(--brand-primary) 90%, #ffffff 10%);
}

.service-details .services-img {
  margin-bottom: 20px;
}

.service-details h3 {
  font-size: 26px;
  font-weight: 700;
}

.service-details h4 {
  font-size: 20px;
  font-weight: 700;
}

.service-details p {
  font-size: 15px;
}

.service-details ul {
  list-style: none;
  padding: 0;
  font-size: 15px;
}

.service-details ul li {
  padding: 5px 0;
  display: flex;
  align-items: center;
}

.service-details ul i {
  font-size: 20px;
  margin-right: 8px;
  color: var(--accent-color);
}

/*--------------------------------------------------------------
# Portfolio Details Section
--------------------------------------------------------------*/
.portfolio-details .portfolio-details-slider img {
  width: 100%;
}

.portfolio-details .swiper-wrapper {
  height: auto;
}

.portfolio-details .swiper-button-prev,
.portfolio-details .swiper-button-next {
  width: 48px;
  height: 48px;
}

.portfolio-details .swiper-button-prev:after,
.portfolio-details .swiper-button-next:after {
  color: rgba(255, 255, 255, 0.8);
  background-color: rgba(0, 0, 0, 0.15);
  font-size: 24px;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}

.portfolio-details .swiper-button-prev:hover:after,
.portfolio-details .swiper-button-next:hover:after {
  background-color: rgba(0, 0, 0, 0.3);
}

@media (max-width: 575px) {

  .portfolio-details .swiper-button-prev,
  .portfolio-details .swiper-button-next {
    display: none;
  }
}

.portfolio-details .swiper-pagination {
  margin-top: 20px;
  position: relative;
}

.portfolio-details .swiper-pagination .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background-color: color-mix(in srgb, var(--default-color), transparent 85%);
  opacity: 1;
}

.portfolio-details .swiper-pagination .swiper-pagination-bullet-active {
  background-color: var(--accent-color);
}

.portfolio-details .portfolio-info h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 20px;
  position: relative;
}

.portfolio-details .portfolio-info h3:after {
  content: "";
  position: absolute;
  display: block;
  width: 50px;
  height: 3px;
  background: var(--accent-color);
  left: 0;
  bottom: 0;
}

.portfolio-details .portfolio-info ul {
  list-style: none;
  padding: 0;
  font-size: 15px;
}

.portfolio-details .portfolio-info ul li {
  display: flex;
  flex-direction: column;
  padding-bottom: 15px;
}

.portfolio-details .portfolio-info ul strong {
  text-transform: uppercase;
  font-weight: 400;
  color: color-mix(in srgb, var(--default-color), transparent 50%);
  font-size: 14px;
}

.portfolio-details .portfolio-info .btn-visit {
  padding: 8px 40px;
  background: var(--accent-color);
  color: var(--contrast-color);
  border-radius: 50px;
  transition: 0.3s;
}

.portfolio-details .portfolio-info .btn-visit:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 20%);
}

.portfolio-details .portfolio-description h2 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 20px;
}

.portfolio-details .portfolio-description p {
  padding: 0;
}

.portfolio-details .portfolio-description .testimonial-item {
  padding: 30px 30px 0 30px;
  position: relative;
  background: color-mix(in srgb, var(--default-color), transparent 97%);
  margin-bottom: 50px;
}

.portfolio-details .portfolio-description .testimonial-item .testimonial-img {
  width: 90px;
  border-radius: 50px;
  border: 6px solid var(--background-color);
  float: left;
  margin: 0 10px 0 0;
}

.portfolio-details .portfolio-description .testimonial-item h3 {
  font-size: 18px;
  font-weight: bold;
  margin: 15px 0 5px 0;
  padding-top: 20px;
}

.portfolio-details .portfolio-description .testimonial-item h4 {
  font-size: 14px;
  color: #6c757d;
  margin: 0;
}

.portfolio-details .portfolio-description .testimonial-item .quote-icon-left,
.portfolio-details .portfolio-description .testimonial-item .quote-icon-right {
  color: color-mix(in srgb, var(--accent-color), transparent 50%);
  font-size: 26px;
  line-height: 0;
}

.portfolio-details .portfolio-description .testimonial-item .quote-icon-left {
  display: inline-block;
  left: -5px;
  position: relative;
}

.portfolio-details .portfolio-description .testimonial-item .quote-icon-right {
  display: inline-block;
  right: -5px;
  position: relative;
  top: 10px;
  transform: scale(-1, -1);
}

.portfolio-details .portfolio-description .testimonial-item p {
  font-style: italic;
  margin: 0 0 15px 0 0 0;
  padding: 0;
}

/*--------------------------------------------------------------
# Pricing Section
--------------------------------------------------------------*/
.pricing .pricing-item {
  background-color: color-mix(in srgb, var(--accent-color), transparent 96%);
  padding: 40px 40px;
  height: 100%;
  border-radius: 15px;
}

.pricing h3 {
  font-weight: 600;
  margin-bottom: 15px;
  font-size: 20px;
}

.pricing h4 {
  color: var(--accent-color);
  font-size: 48px;
  font-weight: 700;
  font-family: var(--heading-font);
  margin-bottom: 0;
}

.pricing h4 sup {
  font-size: 28px;
}

.pricing h4 span {
  color: color-mix(in srgb, var(--default-color), transparent 50%);
  font-size: 18px;
  font-weight: 500;
}

.pricing .description {
  font-size: 14px;
}

.pricing .cta-btn {
  border: 1px solid var(--default-color);
  color: var(--default-color);
  display: block;
  text-align: center;
  padding: 10px 35px;
  border-radius: 5px;
  font-size: 16px;
  font-weight: 500;
  font-family: var(--heading-font);
  transition: 0.3s;
  margin-top: 20px;
  margin-bottom: 6px;
}

.pricing .cta-btn:hover {
  background: var(--accent-color);
  color: var(--contrast-color);
  border-color: var(--accent-color);
}

.pricing ul {
  padding: 0;
  list-style: none;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  text-align: left;
  line-height: 20px;
}

.pricing ul li {
  padding: 10px 0;
  display: flex;
  align-items: center;
}

.pricing ul li:last-child {
  padding-bottom: 0;
}

.pricing ul i {
  color: #059652;
  font-size: 24px;
  padding-right: 3px;
}

.pricing ul .na {
  color: color-mix(in srgb, var(--default-color), transparent 60%);
}

.pricing ul .na i {
  color: color-mix(in srgb, var(--default-color), transparent 60%);
}

.pricing ul .na span {
  text-decoration: line-through;
}

.pricing .featured {
  position: relative;
}

.pricing .featured .popular {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: var(--accent-color);
  color: var(--contrast-color);
  padding: 4px 15px 6px 15px;
  margin: 0;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 500;
}

.pricing .featured .cta-btn {
  background: var(--accent-color);
  color: var(--contrast-color);
  border-color: var(--accent-color);
}

@media (max-width: 992px) {
  .pricing .box {
    max-width: 60%;
    margin: 0 auto 30px auto;
  }
}

@media (max-width: 767px) {
  .pricing .box {
    max-width: 80%;
    margin: 0 auto 30px auto;
  }
}

@media (max-width: 420px) {
  .pricing .box {
    max-width: 100%;
    margin: 0 auto 30px auto;
  }
}

/*--------------------------------------------------------------
# Blog Posts Section
--------------------------------------------------------------*/
.blog-posts article {
  background-color: var(--surface-color);
  box-shadow: 0px 2px 20px rgba(0, 0, 0, 0.1);
  transition: 0.3s;
}

.blog-posts .post-img img {
  transition: 0.5s;
}

.blog-posts .post-date {
  background-color: var(--accent-color);
  color: var(--contrast-color);
  position: absolute;
  right: 0;
  bottom: 0;
  text-transform: uppercase;
  font-size: 13px;
  padding: 6px 12px;
  font-weight: 500;
}

.blog-posts .post-content {
  padding: 30px;
}

.blog-posts .post-title {
  font-size: 20px;
  color: var(--heading-color);
  font-weight: 700;
  transition: 0.3s;
  margin-bottom: 15px;
}

.blog-posts .meta i {
  font-size: 16px;
  color: var(--accent-color);
}

.blog-posts .meta span {
  font-size: 15px;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
}

.blog-posts p {
  margin-top: 20px;
}

.blog-posts hr {
  color: color-mix(in srgb, var(--default-color), transparent 60%);
  margin-bottom: 15px;
}

.blog-posts .readmore {
  display: flex;
  align-items: center;
  font-weight: 600;
  line-height: 1;
  transition: 0.3s;
  color: color-mix(in srgb, var(--heading-color), transparent 20%);
}

.blog-posts .readmore i {
  line-height: 0;
  margin-left: 6px;
  font-size: 16px;
}

.blog-posts article:hover .post-title,
.blog-posts article:hover .readmore {
  color: var(--accent-color);
}

.blog-posts article:hover .post-img img {
  transform: scale(1.1);
}

/*--------------------------------------------------------------
# Blog Pagination Section
--------------------------------------------------------------*/
.blog-pagination {
  padding-top: 0;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
}

.blog-pagination ul {
  display: flex;
  padding: 0;
  margin: 0;
  list-style: none;
}

.blog-pagination li {
  margin: 0 5px;
  transition: 0.3s;
}

.blog-pagination li a {
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  padding: 7px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-pagination li a.active,
.blog-pagination li a:hover {
  background: var(--accent-color);
  color: var(--contrast-color);
}

.blog-pagination li a.active a,
.blog-pagination li a:hover a {
  color: var(--contrast-color);
}

/*--------------------------------------------------------------
# Blog Details Section
--------------------------------------------------------------*/
.blog-details {
  padding-bottom: 30px;
}

.blog-details .article {
  background-color: var(--surface-color);
  padding: 30px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.blog-details .post-img {
  margin: -30px -30px 20px -30px;
  overflow: hidden;
}

.blog-details .title {
  color: var(--heading-color);
  font-size: 28px;
  font-weight: 700;
  padding: 0;
  margin: 30px 0;
}

.blog-details .content {
  margin-top: 20px;
}

.blog-details .content h3 {
  font-size: 22px;
  margin-top: 30px;
  font-weight: bold;
}

.blog-details .content blockquote {
  overflow: hidden;
  background-color: color-mix(in srgb, var(--default-color), transparent 95%);
  padding: 60px;
  position: relative;
  text-align: center;
  margin: 20px 0;
}

.blog-details .content blockquote p {
  color: var(--default-color);
  line-height: 1.6;
  margin-bottom: 0;
  font-style: italic;
  font-weight: 500;
  font-size: 22px;
}

.blog-details .content blockquote:after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background-color: var(--accent-color);
  margin-top: 20px;
  margin-bottom: 20px;
}

.blog-details .meta-top {
  margin-top: 20px;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
}

.blog-details .meta-top ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  align-items: center;
  padding: 0;
  margin: 0;
}

.blog-details .meta-top ul li+li {
  padding-left: 20px;
}

.blog-details .meta-top i {
  font-size: 16px;
  margin-right: 8px;
  line-height: 0;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
}

.blog-details .meta-top a {
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  font-size: 14px;
  display: inline-block;
  line-height: 1;
}

.blog-details .meta-bottom {
  padding-top: 10px;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.blog-details .meta-bottom i {
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  display: inline;
}

.blog-details .meta-bottom a {
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  transition: 0.3s;
}

.blog-details .meta-bottom a:hover {
  color: var(--accent-color);
}

.blog-details .meta-bottom .cats {
  list-style: none;
  display: inline;
  padding: 0 20px 0 0;
  font-size: 14px;
}

.blog-details .meta-bottom .cats li {
  display: inline-block;
}

.blog-details .meta-bottom .tags {
  list-style: none;
  display: inline;
  padding: 0;
  font-size: 14px;
}

.blog-details .meta-bottom .tags li {
  display: inline-block;
}

.blog-details .meta-bottom .tags li+li::before {
  padding-right: 6px;
  color: var(--default-color);
  content: ",";
}

.blog-details .meta-bottom .share {
  font-size: 16px;
}

.blog-details .meta-bottom .share i {
  padding-left: 5px;
}

/*--------------------------------------------------------------
# Blog Comments Section
--------------------------------------------------------------*/
.blog-comments {
  padding: 10px 0;
}

.blog-comments .comments-count {
  font-weight: bold;
}

.blog-comments .comment {
  margin-top: 30px;
  position: relative;
}

.blog-comments .comment .comment-img {
  margin-right: 14px;
}

.blog-comments .comment .comment-img img {
  width: 60px;
}

.blog-comments .comment h5 {
  font-size: 16px;
  margin-bottom: 2px;
}

.blog-comments .comment h5 a {
  font-weight: bold;
  color: var(--default-color);
  transition: 0.3s;
}

.blog-comments .comment h5 a:hover {
  color: var(--accent-color);
}

.blog-comments .comment h5 .reply {
  padding-left: 10px;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
}

.blog-comments .comment h5 .reply i {
  font-size: 20px;
}

.blog-comments .comment time {
  display: block;
  font-size: 14px;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  margin-bottom: 5px;
}

.blog-comments .comment.comment-reply {
  padding-left: 40px;
}

/*--------------------------------------------------------------
# Comment Form Section
--------------------------------------------------------------*/
.comment-form {
  padding-top: 10px;
}

.comment-form form {
  background-color: var(--surface-color);
  margin-top: 30px;
  padding: 30px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.comment-form form h4 {
  font-weight: bold;
  font-size: 22px;
}

.comment-form form p {
  font-size: 14px;
}

.comment-form form input {
  background-color: var(--surface-color);
  color: var(--default-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 70%);
  font-size: 14px;
  border-radius: 4px;
  padding: 10px 10px;
}

.comment-form form input:focus {
  color: var(--default-color);
  background-color: var(--surface-color);
  box-shadow: none;
  border-color: var(--accent-color);
}

.comment-form form input::placeholder {
  color: color-mix(in srgb, var(--default-color), transparent 50%);
}

.comment-form form textarea {
  background-color: var(--surface-color);
  color: var(--default-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 70%);
  border-radius: 4px;
  padding: 10px 10px;
  font-size: 14px;
  height: 120px;
}

.comment-form form textarea:focus {
  color: var(--default-color);
  box-shadow: none;
  border-color: var(--accent-color);
  background-color: var(--surface-color);
}

.comment-form form textarea::placeholder {
  color: color-mix(in srgb, var(--default-color), transparent 50%);
}

.comment-form form .form-group {
  margin-bottom: 25px;
}

.comment-form form .btn-primary {
  border-radius: 4px;
  padding: 10px 20px;
  border: 0;
  background: linear-gradient(90deg, var(--brand-primary) 0%, var(--brand-secondary) 100%) !important;
  color: #ffffff !important;
}

.comment-form form .btn-primary:hover {
  color: #ffffff !important;
  background: linear-gradient(90deg, color-mix(in srgb, var(--brand-primary) 92%, #ffffff 8%) 0%, color-mix(in srgb, var(--brand-secondary) 92%, #ffffff 8%) 100%) !important;
}

/*--------------------------------------------------------------
# Contact Section
--------------------------------------------------------------*/
.contact {
  padding-top: 0;
}

.contact .info {
  background-color: var(--surface-color);
  padding: 40px;
  box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.contact .info h3 {
  font-weight: 600;
  font-size: 24px;
}

.contact .info p {
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  margin-bottom: 30px;
  font-size: 15px;
}

.contact .info-item+.info-item {
  padding-top: 20px;
  margin-top: 20px;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.contact .info-item i {
  font-size: 24px;
  color: var(--accent-color);
  transition: all 0.3s ease-in-out;
  margin-right: 20px;
}

.contact .info-item h4 {
  padding: 0;
  font-size: 18px;
  line-height: 24px;
  font-weight: 600;
  margin-bottom: 5px;
}

.contact .info-item p {
  padding: 0;
  margin-bottom: 0;
  font-size: 14px;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
}

.contact .php-email-form {
  width: 100%;
}

.contact .php-email-form .form-group {
  padding-bottom: 8px;
}

.contact .php-email-form input[type=text],
.contact .php-email-form input[type=email],
.contact .php-email-form textarea {
  color: var(--default-color);
  background-color: var(--surface-color);
  border-radius: 0px;
  box-shadow: none;
  font-size: 14px;
  border-color: color-mix(in srgb, var(--default-color), transparent 80%);
}

.contact .php-email-form input[type=text]:focus,
.contact .php-email-form input[type=email]:focus,
.contact .php-email-form textarea:focus {
  border-color: var(--accent-color);
}

.contact .php-email-form input[type=text]::placeholder,
.contact .php-email-form input[type=email]::placeholder,
.contact .php-email-form textarea::placeholder {
  color: color-mix(in srgb, var(--default-color), transparent 70%);
}

.contact .php-email-form input[type=text],
.contact .php-email-form input[type=email] {
  height: 48px;
  padding: 10px 15px;
}

.contact .php-email-form textarea {
  padding: 10px 12px;
  height: 290px;
}

.contact .php-email-form button[type=submit] {
  background: linear-gradient(90deg, var(--brand-primary) 0%, var(--brand-secondary) 100%) !important;
  color: #ffffff !important;
  border: 0;
  padding: 13px 50px;
  transition: 0.4s;
  border-radius: 4px;
}

.contact .php-email-form button[type=submit]:hover {
  background: linear-gradient(90deg, color-mix(in srgb, var(--brand-primary) 92%, #ffffff 8%) 0%, color-mix(in srgb, var(--brand-secondary) 92%, #ffffff 8%) 100%) !important;
  color: #ffffff !important;
}

/*--------------------------------------------------------------
# Widgets
--------------------------------------------------------------*/
.widgets-container {
  background-color: var(--surface-color);
  padding: 30px;
  margin: 60px 0 30px 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.widget-title {
  color: var(--heading-color);
  font-size: 20px;
  font-weight: 700;
  padding: 0;
  margin: 0 0 20px 0;
}

.widget-item {
  margin-bottom: 40px;
}

.widget-item:last-child {
  margin-bottom: 0;
}

.blog-author-widget img {
  max-width: 160px;
}

.blog-author-widget h4 {
  font-weight: 600;
  font-size: 24px;
  margin: 15px 0 0 0;
  padding: 0;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
}

.blog-author-widget .social-links {
  margin: 5px 0;
}

.blog-author-widget .social-links a {
  color: color-mix(in srgb, var(--default-color), transparent 60%);
  margin: 0 3px;
  font-size: 18px;
}

.blog-author-widget .social-links a:hover {
  color: var(--accent-color);
}

.blog-author-widget p {
  font-style: italic;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  margin: 10px 0 0 0;
}

.search-widget form {
  background: var(--background-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 75%);
  padding: 3px 10px;
  position: relative;
  border-radius: 50px;
  transition: 0.3s;
}

.search-widget form input[type=text] {
  border: 0;
  padding: 4px 10px;
  border-radius: 4px;
  width: calc(100% - 40px);
  background-color: var(--background-color);
  color: var(--default-color);
}

.search-widget form input[type=text]:focus {
  outline: none;
}

.search-widget form button {
  background: none;
  color: var(--default-color);
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  border: 0;
  font-size: 16px;
  padding: 0 16px;
  transition: 0.3s;
  line-height: 0;
}

.search-widget form button i {
  line-height: 0;
}

.search-widget form button:hover {
  color: var(--accent-color);
}

.search-widget form:is(:focus-within) {
  border-color: var(--accent-color);
}

.recent-posts-widget .post-item {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.recent-posts-widget .post-item:last-child {
  margin-bottom: 0;
}

.recent-posts-widget .post-item h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 5px;
}

.recent-posts-widget .post-item h4 a {
  color: var(--default-color);
  transition: 0.3s;
}

.recent-posts-widget .post-item h4 a:hover {
  color: var(--accent-color);
}

.recent-posts-widget .post-item time {
  display: block;
  font-style: italic;
  font-size: 14px;
  color: color-mix(in srgb, var(--default-color), transparent 50%);
}

.tags-widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tags-widget ul li {
  display: inline-block;
}

.tags-widget ul a {
  background-color: color-mix(in srgb, var(--default-color), transparent 94%);
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  border-radius: 50px;
  font-size: 14px;
  padding: 5px 15px;
  margin: 0 6px 8px 0;
  display: inline-block;
  transition: 0.3s;
}

.tags-widget ul a:hover {
  background: var(--accent-color);
  color: var(--contrast-color);
}

.tags-widget ul a span {
  padding-left: 5px;
  color: color-mix(in srgb, var(--default-color), transparent 60%);
  font-size: 14px;
}

/* Secondary outline CTA on dark hero */
a.ag-btn-ghost,
.btn-outline-light {
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  background: rgba(255, 255, 255, 0.05) !important;
  color: #ffffff !important;
  transition: transform 0.28s cubic-bezier(.2, .9, .2, 1), box-shadow 0.28s ease, border-color 0.28s ease, background 0.28s ease, color 0.28s ease;
}

a.ag-btn-ghost:hover,
.btn-outline-light:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--brand-primary), transparent 45%) !important;
  background: color-mix(in srgb, var(--brand-primary), transparent 90%) !important;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.4), 0 0 0 1px color-mix(in srgb, var(--brand-primary), transparent 70%);
  color: #ffffff !important;
}

#cookie-banner .cookie-btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  background: rgba(255, 255, 255, 0.04) !important;
  color: #ffffff !important;
}

#cookie-banner .cookie-btn-primary {
  background: linear-gradient(90deg, var(--brand-primary) 0%, var(--brand-secondary) 100%) !important;
  color: #ffffff !important;
  border: none !important;
}

/* Cookie banner: fade + lift (display toggled in JS after transition) */
#cookie-banner {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.42s ease, transform 0.42s ease;
}

#cookie-banner.ag-cookie-banner-visible {
  opacity: 1;
  transform: translateY(0);
}

#cookie-banner > div:first-child {
  transition: box-shadow 0.35s ease;
}

#cookie-banner.ag-cookie-banner-visible > div:first-child {
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

/* Ensure readable text on dark / blue backgrounds (exclude footer: link colors scoped there) */
.dark-background:not(.footer),
.dark-background:not(.footer) * {
  color: rgba(255, 255, 255, 0.94) !important;
}

.dark-background h1,
.dark-background h2,
.dark-background h3,
.dark-background h4,
.dark-background h5,
.dark-background h6 {
  color: #ffffff !important;
}

/* Page title / accent background readability: keep dark-on-light style for accent blocks */
.page-title.accent-background,
.page-title.accent-background * {
  color: rgba(243,246,251,0.98) !important;
}

/* Breadcrumbs under page title: non-interactive styling */
.page-title .breadcrumbs ol li a {
  color: inherit !important;
  text-decoration: none !important;
  pointer-events: none;
  cursor: default;
}

/* Footer copyright center */
.footer .copyright {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding-top: 16px !important;
  padding-bottom: 32px !important;
}

/* ---------- Accent gradient titles (brand cyan → violet) ---------- */
.ag-heading-gradient {
  background-image: linear-gradient(
    100deg,
    color-mix(in srgb, var(--brand-primary) 82%, #ffffff 18%) 0%,
    var(--brand-primary) 18%,
    color-mix(in srgb, var(--brand-secondary) 65%, var(--brand-primary) 35%) 52%,
    color-mix(in srgb, var(--brand-secondary) 88%, #e8e4ff 12%) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  -webkit-text-fill-color: transparent;
}

/* Stripe titles: beat .page-title.accent-background * */
.page-title.accent-background h1 {
  background-image: linear-gradient(
    100deg,
    color-mix(in srgb, var(--brand-primary) 82%, #ffffff 18%) 0%,
    var(--brand-primary) 22%,
    color-mix(in srgb, var(--brand-secondary) 72%, var(--brand-primary) 28%) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  -webkit-text-fill-color: transparent;
}

/* Hero H1: beat .dark-background h1 */
.hero.dark-background h1.ag-heading-gradient,
.hero.dark-background h1.ag-hero-title {
  background-image: linear-gradient(
    102deg,
    color-mix(in srgb, var(--brand-primary) 78%, #ffffff 22%) 0%,
    var(--brand-primary) 24%,
    color-mix(in srgb, var(--brand-secondary) 70%, var(--brand-primary) 30%) 58%,
    color-mix(in srgb, var(--brand-secondary) 85%, #f0ecff 15%) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  -webkit-text-fill-color: transparent;
}

.section-title h2 {
  background-image: linear-gradient(
    100deg,
    color-mix(in srgb, var(--brand-primary) 80%, #ffffff 20%) 0%,
    var(--brand-primary) 30%,
    color-mix(in srgb, var(--brand-secondary) 75%, var(--brand-primary) 25%) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  -webkit-text-fill-color: transparent;
}

/* Hero visual — IT / marketing imagery */
.ag-hero-visual-img {
  max-height: min(440px, 54vh);
  min-height: 260px;
  width: 100%;
  object-fit: cover;
  display: block;
}

/* Contact success modal */
.ag-modal-success-wrap {
  max-width: 440px;
}

.ag-modal-success {
  position: relative;
  border-radius: 26px !important;
  overflow: hidden;
  background: linear-gradient(168deg, color-mix(in srgb, var(--brand-dark-secondary) 96%, transparent) 0%, color-mix(in srgb, var(--brand-dark) 98%, transparent) 45%, var(--brand-dark) 100%) !important;
  border: 1px solid color-mix(in srgb, var(--brand-primary), transparent 72%) !important;
  box-shadow:
    0 32px 90px rgba(0, 0, 0, 0.58),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 0 72px color-mix(in srgb, var(--brand-primary), transparent 82%);
}

.ag-modal-success .modal-body,
.ag-modal-success .modal-footer {
  background: transparent !important;
}

.ag-modal-success-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  opacity: 0.85;
}

.ag-modal-success-glow {
  position: absolute;
  inset: -40% -20% auto -20%;
  height: 70%;
  background: radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--brand-primary), transparent 58%), transparent 72%);
  pointer-events: none;
  z-index: 0;
}

.ag-modal-success .modal-body {
  position: relative;
  z-index: 1;
}

.ag-modal-success-icon {
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--contrast-color);
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand-primary) 90%, #fff 10%), color-mix(in srgb, var(--brand-secondary) 85%, var(--brand-dark) 15%));
  box-shadow: 0 12px 40px color-mix(in srgb, var(--brand-primary), transparent 55%), 0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}

@media (prefers-reduced-motion: reduce) {
  .service-card,
  .process-card,
  .why-card,
  .service-card i[class*="bi-"],
  .process-card i[class*="bi-"],
  .why-card i[class*="bi-"],
  #about .col-sm-6 > .ag-card-surface,
  #about .col-sm-6 > .ag-card-surface .mb-3 i[class*="bi-"],
  .ag-faq-accordion .accordion-item {
    transition: none !important;
  }

  .service-card:hover,
  .process-card:hover,
  .why-card:hover {
    transform: none;
  }

  .service-card:hover i[class*="bi-"],
  .process-card:hover i[class*="bi-"],
  .why-card:hover i[class*="bi-"] {
    transform: none;
  }

  #about .col-sm-6 > .ag-card-surface:hover {
    transform: none;
  }

  #about .col-sm-6 > .ag-card-surface:hover .mb-3 i[class*="bi-"] {
    transform: none;
  }

  .ag-faq-accordion .accordion-item:hover {
    transform: none;
    box-shadow: none;
    background-color: transparent;
  }

  main p a:not([class]):not([href^="mailto:"]):not(.stretched-link):not(.btn):not(.nav-link):not(:where(.dropdown a)),
  .prose a:not([href^="mailto:"]):not(.stretched-link):not(.btn):not(.nav-link):not(:where(.dropdown a)) {
    transition: color 0.2s ease;
    background-size: 100% 1px;
  }

  #cookie-banner {
    transition: none;
    transform: none;
  }

  #cookie-banner.ag-cookie-banner-visible {
    opacity: 1;
    transform: none;
  }
}
