﻿/* NORTHGRID site chrome — premium footer + back-to-top (shared all pages) */

html {
  scroll-behavior: auto;
}

/* ==========================================================================
   NORTHGRID LOGO — shared image branding (navbar, footer, loader)
   ========================================================================== */

.navbar-brand,
.site-logo,
.logo,
.header-logo,
.navbar-brand-custom {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
}

.site-logo img,
.navbar-brand img,
img.logo,
.logo img,
.header-logo img {
  height: 52px;
  width: auto !important;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

.logo--loader {
  margin: 0 auto 15px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
}

.footer-logo img.logo {
  height: 48px;
  width: auto !important;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

.navbar-brand-custom:hover img.logo {
  filter: drop-shadow(0 0 12px rgba(89, 201, 255, 0.28));
}

.footer-logo:hover img.logo {
  filter: drop-shadow(0 0 12px rgba(89, 201, 255, 0.28));
}

/* Tablet */
@media (max-width: 991.98px) {
  .site-logo img,
  .navbar-brand img,
  img.logo,
  .logo img,
  .header-logo img {
    height: 46px;
  }

  .footer-logo img.logo {
    height: 42px;
  }
}

/* Mobile */
@media (max-width: 767.98px) {
  .site-logo img,
  .navbar-brand img,
  img.logo,
  .logo img,
  .header-logo img {
    height: 38px;
  }

  .footer-logo img.logo {
    height: 36px;
  }
}

/* ==========================================================================
   STICKY NAVIGATION — production contrast fix (all pages)
   ========================================================================== */

.navbar-custom {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1100 !important;
    padding: 1.15rem 0 !important;
    background: rgba(8, 17, 32, 0.28) !important;
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    box-shadow: none;
    transition:
        padding 0.28s cubic-bezier(0.16, 1, 0.3, 1),
        background 0.28s cubic-bezier(0.16, 1, 0.3, 1),
        border-color 0.28s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1),
        backdrop-filter 0.28s ease !important;
}

.navbar-custom.scrolled {
    padding: 0.7rem 0 !important;
    background: rgba(8, 17, 32, 0.94) !important;
    backdrop-filter: blur(22px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(22px) saturate(180%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28) !important;
}

.navbar-custom .navbar-brand-custom,
.navbar-custom.scrolled .navbar-brand-custom {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    line-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin-right: 1rem;
}

.navbar-custom .nav-link-custom,
.navbar-custom.scrolled .nav-link-custom {
    color: rgba(241, 245, 249, 0.88) !important;
    font-weight: 600;
}

.navbar-custom .nav-link-custom:hover,
.navbar-custom .nav-link-custom.active,
.navbar-custom.scrolled .nav-link-custom:hover,
.navbar-custom.scrolled .nav-link-custom.active {
    color: #FFFFFF !important;
}

.navbar-custom .nav-link-custom.active::after,
.navbar-custom .nav-link-custom:hover::after {
    background: linear-gradient(90deg, #06B6D4, #7C3AED) !important;
    opacity: 1;
}

.navbar-custom .btn-premium-primary {
    color: #FFFFFF !important;
    box-shadow: 0 8px 22px rgba(37, 99, 235, 0.35);
}

.navbar-custom .navbar-toggler {
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    padding: 0.4rem 0.55rem;
}

.navbar-custom .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.95%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

@media (max-width: 991.98px) {
    .navbar-custom .navbar-collapse {
        margin-top: 0.75rem;
        padding: 1rem;
        border-radius: 16px;
        background: rgba(8, 17, 32, 0.96);
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    }

    .navbar-custom .dropdown-menu-mega {
        position: static !important;
        transform: none !important;
        width: 100% !important;
        opacity: 1;
        visibility: visible;
        display: none;
        margin-top: 0.5rem;
        box-shadow: none !important;
    }

    .navbar-custom .nav-item-dropdown:hover .dropdown-menu-mega,
    .navbar-custom .nav-item-dropdown.show-mega .dropdown-menu-mega {
        display: block;
    }
}

/* ==========================================================================
   SERVICES MEGA MENU — balanced 2-column grid
   ========================================================================== */

.dropdown-menu-mega .mega-menu-row {
    --mega-gap: 0.5rem;
    align-items: stretch;
    min-height: 100%;
}

.dropdown-menu-mega .mega-menu-col {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.dropdown-menu-mega .mega-menu-col--core {
    padding-right: 1.25rem;
}

.dropdown-menu-mega .mega-menu-title {
    flex-shrink: 0;
    margin-bottom: 1rem;
}

.dropdown-menu-mega .mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--mega-gap);
    flex: 1;
    align-content: stretch;
}

.dropdown-menu-mega .mega-menu-grid--core {
    grid-template-rows: repeat(2, minmax(0, 1fr));
}

.dropdown-menu-mega .mega-menu-grid--enterprise {
    grid-template-rows: repeat(3, minmax(0, 1fr));
}

.dropdown-menu-mega .mega-menu-grid .mega-menu-link {
    height: 100%;
    min-height: 4.75rem;
    margin: 0;
    align-items: flex-start;
    border: 1px solid transparent;
    border-radius: var(--border-radius-md, 12px);
    transition:
        background 0.28s cubic-bezier(0.16, 1, 0.3, 1),
        border-color 0.28s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.dropdown-menu-mega .mega-menu-grid .mega-menu-link:hover {
    transform: translateY(-2px);
    border-color: rgba(37, 99, 235, 0.18);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.dropdown-menu-mega .mega-menu-link--active {
    background: rgba(47, 107, 255, 0.08);
    border-color: rgba(47, 107, 255, 0.22);
}

.dropdown-menu-mega .mega-menu-link--active h5 {
    color: var(--st-primary, #2f6bff);
}

.dropdown-menu-mega .mega-menu-link-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-width: 0;
}

.dropdown-menu-mega .mega-menu-link-content h5 {
    line-height: 1.3;
    margin-bottom: 0.3rem;
}

.dropdown-menu-mega .mega-menu-link-content p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    line-height: 1.4;
    min-height: calc(1.4em * 2);
}

.dropdown-menu-mega .mega-menu-link-icon {
    margin-top: 0.1rem;
}

@media (max-width: 991px) {
    .dropdown-menu-mega .mega-menu-grid {
        grid-template-columns: 1fr;
        grid-template-rows: none;
    }

    .dropdown-menu-mega .mega-menu-grid .mega-menu-link {
        min-height: auto;
    }

    .dropdown-menu-mega .mega-menu-col--core {
        border-right: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding-bottom: 1rem;
        margin-bottom: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dropdown-menu-mega .mega-menu-grid .mega-menu-link:hover {
        transform: none;
    }
}

#site-footer.footer-custom {
    margin-top: -1px;
    background: var(--bg-dark-deep, #132238) !important;
    padding-top: 0 !important;
    border-top: none !important;
}

body:not(.is-home) #site-footer .footer-transition {
    margin-top: 0;
}

.scroll-to-top {
    display: none !important;
}

/* ==========================================================================
   14. FOOTER — Premium enterprise closing experience
   ========================================================================== */

.footer-custom {
    --footer-nav-gap: 1.15rem;
    --footer-text: rgba(255, 255, 255, 0.82);
    --footer-text-secondary: rgba(255, 255, 255, 0.68);
    --footer-text-muted: rgba(255, 255, 255, 0.55);
    position: relative;
    background: var(--bg-dark-deep, #132238) !important;
    color: var(--footer-text);
    padding: 0 0 3.25rem;
    overflow: hidden;
    isolation: isolate;
    box-shadow: 0 -24px 48px rgba(4, 9, 16, 0.18);
}

/* Careers ? Footer transition */
.footer-transition {
    position: relative;
    z-index: 3;
    margin-top: -1px;
    pointer-events: none;
}

.footer-transition-glow {
    position: absolute;
    left: 50%;
    top: -40px;
    width: min(900px, 90vw);
    height: 120px;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at center, rgba(37, 99, 235, 0.28) 0%, rgba(124, 58, 237, 0.12) 45%, transparent 70%);
    filter: blur(24px);
    animation: footer-glow-breathe 8s ease-in-out infinite alternate;
}

.footer-curve {
    display: block;
    width: 100%;
    height: 72px;
}

.footer-curve-fill {
    fill: var(--bg-dark-deep, #132238);
}

@keyframes footer-glow-breathe {
    from { opacity: 0.55; transform: translateX(-50%) scale(0.96); }
    to { opacity: 1; transform: translateX(-50%) scale(1.04); }
}

/* Animated background layers */
.footer-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.footer-mesh {
    position: absolute;
    inset: -15%;
    background:
        radial-gradient(ellipse 45% 35% at 15% 20%, rgba(37, 99, 235, 0.22), transparent 60%),
        radial-gradient(ellipse 40% 40% at 85% 30%, rgba(124, 58, 237, 0.18), transparent 55%),
        radial-gradient(ellipse 35% 30% at 50% 90%, rgba(6, 182, 212, 0.12), transparent 55%);
    animation: footer-mesh-drift 22s ease-in-out infinite alternate;
    will-change: transform;
}

.footer-aurora {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    will-change: transform;
}

.footer-aurora-1 {
    width: 55%;
    height: 50%;
    top: -20%;
    right: -10%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.2) 0%, transparent 70%);
    animation: footer-aurora-spin 30s linear infinite;
}

.footer-aurora-2 {
    width: 45%;
    height: 45%;
    bottom: -15%;
    left: -8%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.16) 0%, transparent 70%);
    animation: footer-aurora-spin 38s linear infinite reverse;
}

.footer-glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
}

.footer-glow-1 {
    width: 180px;
    height: 180px;
    top: 25%;
    left: 40%;
    background: rgba(37, 99, 235, 0.15);
    animation: footer-orb-float 12s ease-in-out infinite alternate;
}

.footer-glow-2 {
    width: 140px;
    height: 140px;
    bottom: 20%;
    right: 18%;
    background: rgba(236, 72, 153, 0.1);
    animation: footer-orb-float 14s ease-in-out infinite alternate-reverse;
}

.footer-tech-grid {
    position: absolute;
    inset: 0;
    opacity: 0.14;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

.footer-neural {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.4;
}

.footer-neural-path {
    stroke-dasharray: 10 16;
    animation: footer-neural-dash 20s linear infinite;
}

.footer-particle {
    position: absolute;
    border-radius: 50%;
    will-change: transform, opacity;
}

.fp-1 { width: 8px; height: 8px; background: rgba(6, 182, 212, 0.4); box-shadow: 0 0 12px rgba(6, 182, 212, 0.5); top: 22%; left: 12%; animation: footer-particle 9s ease-in-out infinite alternate; }
.fp-2 { width: 6px; height: 6px; background: rgba(124, 58, 237, 0.4); box-shadow: 0 0 12px rgba(124, 58, 237, 0.45); top: 48%; right: 16%; animation: footer-particle 11s ease-in-out infinite alternate-reverse; }
.fp-3 { width: 10px; height: 10px; background: rgba(37, 99, 235, 0.3); box-shadow: 0 0 14px rgba(37, 99, 235, 0.4); bottom: 28%; left: 28%; animation: footer-particle 13s ease-in-out infinite alternate; }
.fp-4 { width: 5px; height: 5px; background: rgba(236, 72, 153, 0.35); top: 35%; right: 32%; animation: footer-particle 10s ease-in-out infinite alternate-reverse; }

.footer-mouse-glow {
    position: absolute;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.14) 0%, transparent 70%);
    filter: blur(50px);
    opacity: 0;
    transform: translate3d(-50%, -50%, 0);
    will-change: transform, opacity;
    pointer-events: none;
}

@keyframes footer-mesh-drift {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(-2%, 1.5%, 0) scale(1.05); }
}
@keyframes footer-aurora-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
@keyframes footer-orb-float {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(30px, -24px, 0); }
}
@keyframes footer-neural-dash {
    to { stroke-dashoffset: -420; }
}
@keyframes footer-particle {
    from { transform: translate3d(var(--rx, 0px), var(--ry, 0px), 0); opacity: 0.45; }
    to { transform: translate3d(calc(var(--rx, 0px) + 18px), calc(var(--ry, 0px) - 28px), 0); opacity: 0.9; }
}

.footer-inner {
    position: relative;
    z-index: 2;
    padding-top: 2.75rem;
}

.footer-custom h3,
.footer-custom h4,
.footer-custom h5 {
    color: #FFFFFF !important;
    font-family: var(--font-headings, 'Manrope', sans-serif);
}

.footer-custom h4 {
    font-size: 1.08rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Logo */
.footer-logo {
    display: inline-flex;
    align-items: center;
    margin-bottom: 1.4rem;
    line-height: 0;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
}

.footer-logo:hover {
    filter: drop-shadow(0 0 16px rgba(37, 99, 235, 0.35));
}

.footer-brand-copy {
    max-width: 420px;
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.82) !important;
    margin-bottom: 2rem;
}

/* Newsletter */
.footer-newsletter-wrap {
    margin-top: 0.25rem;
}

.footer-newsletter-wrap h5 {
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem !important;
    color: #FFFFFF !important;
}

.footer-newsletter-form {
    max-width: 420px;
}

.footer-newsletter-field {
    display: flex;
    align-items: stretch;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.footer-newsletter-field:focus-within {
    border-color: rgba(96, 165, 250, 0.75);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.16), 0 14px 36px rgba(37, 99, 235, 0.22);
}

.footer-newsletter-input {
    flex: 1;
    min-width: 0;
    background: transparent !important;
    border: none !important;
    color: #FFFFFF !important;
    padding: 0.95rem 1.15rem !important;
    font-size: 0.98rem;
    box-shadow: none !important;
    outline: none !important;
}

.footer-newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.55);
    transition: opacity 0.25s ease, transform 0.25s ease, color 0.25s ease;
}

.footer-newsletter-input:focus::placeholder {
    opacity: 0.4;
    transform: translateX(4px);
    color: rgba(255, 255, 255, 0.4);
}

.footer-newsletter-btn {
    position: relative;
    overflow: hidden;
    border: none !important;
    background: var(--gradient-primary) !important;
    color: #fff !important;
    padding: 0 1.25rem !important;
    min-width: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: filter 0.3s ease, transform 0.3s ease;
}

.footer-newsletter-field:focus-within .footer-newsletter-btn {
    filter: brightness(1.12) saturate(1.1);
    box-shadow: 0 0 24px rgba(124, 58, 237, 0.35);
}

.footer-newsletter-btn i {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-newsletter-btn:hover i {
    transform: translateX(3px) translateY(-2px) rotate(-12deg);
}

.footer-btn-ripple {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.35) 0%, transparent 60%);
    opacity: 0;
    transform: scale(0.4);
    pointer-events: none;
}

.footer-newsletter-btn:active .footer-btn-ripple {
    animation: footer-ripple 0.45s ease-out;
}

@keyframes footer-ripple {
    from { opacity: 0.7; transform: scale(0.3); }
    to { opacity: 0; transform: scale(1.8); }
}

/* Links */
.footer-link-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-link-list li {
    margin-bottom: var(--footer-nav-gap);
}

.footer-link-list a {
    position: relative;
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.98rem;
    font-weight: 500;
    line-height: 1.55;
    padding: 2px 0;
    transition: color 0.3s ease;
    transform: none !important;
}

.footer-link-list a span {
    position: relative;
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease;
}

.footer-link-list a span::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1.5px;
    background: linear-gradient(90deg, #22D3EE, #A78BFA);
    border-radius: 2px;
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-link-list a i {
    font-size: 0.7rem;
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    color: #22D3EE;
}

.footer-link-list a:hover {
    color: #FFFFFF;
}

.footer-link-list a:hover span {
    transform: translateX(4px);
    color: #FFFFFF;
}

.footer-link-list a:hover span::after {
    width: 100%;
}

.footer-link-list a:hover i {
    opacity: 1;
    transform: translateX(0);
}

/* Office glass card */
.footer-office-card {
    position: relative;
    padding: 1.75rem 1.55rem !important;
    border-radius: 20px !important;
    background: rgba(255, 255, 255, 0.06) !important;
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border: 1px solid transparent !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28) !important;
    transition: box-shadow 0.4s ease, backdrop-filter 0.4s ease;
    isolation: isolate;
    will-change: transform;
    transform-style: preserve-3d;
    margin-bottom: 0.25rem;
}

.footer-office-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(145deg, rgba(6, 182, 212, 0.55), rgba(124, 58, 237, 0.35), rgba(255, 255, 255, 0.08));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.75;
    transition: opacity 0.35s ease, filter 0.35s ease;
}

.footer-office-card:hover {
    box-shadow: 0 24px 48px rgba(6, 182, 212, 0.14), 0 16px 36px rgba(0, 0, 0, 0.35) !important;
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
}

.footer-office-card:hover::before {
    opacity: 1;
    filter: drop-shadow(0 0 12px rgba(6, 182, 212, 0.35));
}

.footer-office-card h4 {
    font-size: 1.08rem !important;
    text-transform: none;
    letter-spacing: -0.01em;
    color: #FFFFFF !important;
}

.footer-office-card p,
.footer-office-address,
.footer-office-phone,
.footer-office-email {
    font-size: 0.92rem !important;
    line-height: 1.65 !important;
    color: rgba(255, 255, 255, 0.82) !important;
    margin-bottom: 0.75rem;
}

.footer-office-card .text-accent {
    color: #22D3EE !important;
}

/* Social icons */
.footer-custom .social-circle-btn,
.footer-socials .social-circle-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.footer-custom .social-circle-btn:hover {
    transform: translate3d(0, -4px, 0) scale(1.08) rotate(6deg);
    color: #FFFFFF !important;
}

.footer-custom .social-linkedin:hover {
    background: rgba(10, 102, 194, 0.35);
    border-color: rgba(10, 102, 194, 0.6);
    box-shadow: 0 0 22px rgba(10, 102, 194, 0.45);
}

.footer-custom .social-github:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 0 22px rgba(255, 255, 255, 0.25);
}

.footer-custom .social-x:hover {
    background: rgba(148, 163, 184, 0.2);
    border-color: rgba(148, 163, 184, 0.45);
    box-shadow: 0 0 22px rgba(148, 163, 184, 0.3);
}

.footer-socials {
    margin-top: 1.5rem !important;
}

.footer-bottom-line {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom-line p {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.55) !important;
    letter-spacing: 0.01em;
}

/* Back to top */
.back-to-top-btn {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 52px;
    height: 52px;
    border: none;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1100;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translate3d(0, 16px, 0) scale(0.9);
    transition: opacity 0.35s ease, visibility 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
    box-shadow: 0 10px 28px rgba(37, 99, 235, 0.35);
}

.back-to-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translate3d(0, 0, 0) scale(1);
    animation: backtop-float 3s ease-in-out infinite;
}

.back-to-top-btn:hover {
    transform: translate3d(0, -4px, 0) scale(1.06) rotate(-8deg);
    box-shadow: 0 14px 36px rgba(124, 58, 237, 0.45), 0 0 24px rgba(6, 182, 212, 0.25);
    animation: none;
}

.back-to-top-pulse {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(124, 58, 237, 0.45);
    animation: backtop-pulse 2.4s ease-out infinite;
    pointer-events: none;
}

@keyframes backtop-float {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(0, -6px, 0); }
}

@keyframes backtop-pulse {
    0% { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(1.45); opacity: 0; }
}

@media (max-width: 991px) {
    .footer-inner {
        padding-top: 0.5rem;
    }

    .footer-custom h4 {
        margin-top: 0.5rem;
    }

    .footer-newsletter-form {
        max-width: 100%;
    }

    .footer-curve {
        height: 48px;
    }
}

@media (max-width: 575px) {
    .footer-custom .social-circle-btn {
        width: 48px;
        height: 48px;
    }

    .back-to-top-btn {
        bottom: 20px;
        right: 18px;
        width: 48px;
        height: 48px;
    }

    .footer-link-list a {
        min-height: 44px;
        align-items: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .footer-mesh,
    .footer-aurora,
    .footer-glow-orb,
    .footer-particle,
    .footer-neural-path,
    .footer-transition-glow,
    .back-to-top-btn.show,
    .back-to-top-pulse {
        animation: none !important;
    }
}



#site-footer.footer-custom {
    margin-top: -1px;
    background: var(--bg-dark-deep, #132238) !important;
    padding-top: 0 !important;
}

#site-footer .footer-transition {
    margin-top: -48px;
}

#site-footer .back-to-top-btn,
.back-to-top-btn {
    overflow: visible;
}

.back-to-top-btn.is-rippling::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.45) 0%, transparent 65%);
    animation: footer-ripple 0.5s ease-out;
    pointer-events: none;
}

#process-sec .process-ring-defs {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    pointer-events: none;
}

/* ==========================================================================
   PRE-FOOTER LIGHT CTA — visual separation before dark footer
   ========================================================================== */

.pre-footer-cta {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 18% 30%, rgba(47, 107, 255, 0.2), transparent 50%),
        radial-gradient(ellipse at 82% 70%, rgba(110, 66, 255, 0.1), transparent 45%),
        linear-gradient(135deg, #0b1630 0%, #0f1f3d 50%, #13284d 100%);
    padding: clamp(5rem, 7vw, 6rem) 0 clamp(5.5rem, 8vw, 7rem);
    color: #ffffff;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.pre-footer-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        radial-gradient(ellipse 50% 45% at 12% 20%, rgba(47, 107, 255, 0.12), transparent 60%);
    background-size: 32px 32px, auto;
    pointer-events: none;
    z-index: 0;
}

.pre-footer-cta::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 90px;
    background: linear-gradient(180deg, transparent 0%, rgba(4, 9, 16, 0.06) 100%);
    pointer-events: none;
    z-index: 1;
}

.pre-footer-cta-inner {
    position: relative;
    z-index: 2;
}

.pre-footer-cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.9rem;
    margin-bottom: 1.15rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #7dd3fc;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.pre-footer-cta-title {
    font-family: var(--font-headings, 'Manrope', sans-serif);
    font-size: clamp(2rem, 4.2vw, 3.1rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.12;
    color: #ffffff;
    margin-bottom: 1rem;
    max-width: 16ch;
}

.pre-footer-cta-title span {
    background: linear-gradient(135deg, #7dd3fc, #a78bfa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pre-footer-cta-desc {
    color: rgba(255, 255, 255, 0.72);
    font-size: 1.05rem;
    line-height: 1.65;
    max-width: 42ch;
    margin-bottom: 1.5rem;
}

.pre-footer-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.pre-footer-cta-visual {
    position: relative;
}

.pre-footer-cta-visual-frame {
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.12);
    background: #fff;
}

.pre-footer-cta-visual-frame img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.pre-footer-cta-visual-glow {
    position: absolute;
    inset: 8% -8% -12% 12%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.22), transparent 70%);
    filter: blur(36px);
    z-index: -1;
    pointer-events: none;
}

/* Footer emerges from light CTA */
.pre-footer-cta + #site-footer .footer-transition,
body:has(.pre-footer-cta) #site-footer .footer-transition {
    margin-top: -56px;
}

.pre-footer-cta + #site-footer .footer-transition-glow {
    top: -20px;
    opacity: 0.85;
}

.footer-newsletter-wrap h5 {
    color: #FFFFFF !important;
}

/* Kill low-contrast muted leftovers inside footer */
.footer-custom .text-muted,
#site-footer .text-muted {
    color: rgba(255, 255, 255, 0.68) !important;
}

.footer-custom p {
    color: rgba(255, 255, 255, 0.82);
}


@media (max-width: 991px) {
    .pre-footer-cta-title {
        max-width: none;
    }

    .pre-footer-cta-visual {
        margin-top: 2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pre-footer-cta * {
        animation: none !important;
    }
}
