/* ==========================================================================
   header-footer.css
   Styles for the SHARED header (includes/header.php), footer + scroll-to-top
   button (includes/footer.php). Moved here from main.css.
   Load it in <head> AFTER main.css and BEFORE the page's own css file.
   ========================================================================== */

.header {
    color: var(--default-color);
    background: #021948;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 10px 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    border-bottom: none;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.header.scrolled {
    padding: 15px 0;
    background: #021948;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 179, 0, 0.2);
}

.header .logo {
    line-height: 1;
    position: relative;
    transition: all 0.3s ease;
    margin-left: 2px;
}

.header .logo::before {
    content: '';
    position: absolute;
    inset: -8px;
    background: radial-gradient(circle at center, rgba(255, 179, 0, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.header .container-fluid {
    padding-left: 20px;
    padding-right: 20px;
    max-width: 100% !important;
}

.header .logo:hover::before {
    opacity: 1;
    animation: logoGlow 1.5s ease-in-out infinite;
}

@keyframes logoGlow {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.6;
    }
}

.header .logo img {
    max-height: 38px;
    margin-right: 8px;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 0 transparent);
}

.header .logo:hover img {
    filter: drop-shadow(0 0 12px rgba(255, 179, 0, 0.6));
    transform: scale(1.05);
}

.logo-tagline {
    margin-left: 12px;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 179, 0, 0.9);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.header .logo:hover .logo-tagline {
    opacity: 1;
    letter-spacing: 2px;
    color: #ffb300;
}

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

.header .btn-getstarted {
    background: #13419e;
    color: #ffffff;
    font-size: 13.5px;
    padding: 9px 18px;
    margin: 0 0 0 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: none;
    border: none;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    white-space: nowrap;
}

.header .btn-getstarted::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.header .btn-getstarted:hover::before {
    left: 100%;
}

.header .btn-getstarted:hover .btn-icon {
    transform: translateX(5px);
}

.header .btn-getstarted:hover,
.header .btn-getstarted:focus:hover {
    color: #ffffff;
    background: #13419e;
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 10px 26px rgba(17, 99, 251, 0.5);
    border: none;
}

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

.header .btn-getstarted {
        order: 2;
        color: var(--default-color) !important;
        margin: 0 15px 0 0;
        padding: 6px 15px;
        font-size: 13px;
    }

.logo-tagline {
        display: none;
    }

.header-accent-line {
        height: 2px;
    }

.header .navmenu {
        order: 3;
    }
}

.index-page .header {
    --background-color: rgb(0, 0, 0);
}

.index-page.scrolled .header {
    --background-color: #000000;
}

/* ===== NAVBAR MENU: minimal functional CSS only (design removed) ===== */

.navmenu a {
    text-decoration: none;
    color: #fff;
}

@media (min-width: 1200px) {
.navmenu ul {
        margin: 0;
        padding: 0;
        display: flex;
        list-style: none;
        align-items: center;
    }

.navmenu li {
        position: relative;
    }

.navmenu a {
        display: flex;
        align-items: center;
        padding: 10px 11px;
        white-space: nowrap;
    }

.navmenu .dropdown ul {
        position: absolute;
        display: block;
        visibility: hidden;
        opacity: 0;
        top: calc(100% + 10px);
        left: 0;
        margin: 0;
        padding: 10px;
        background: #e8f1ff;
        border: 1px solid #cfe0ff;
        border-radius: 14px;
        box-shadow: 0 20px 40px rgba(2, 25, 72, 0.35);
        transform: translateY(8px);
        transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
        z-index: 99;
    }

.navmenu .dropdown ul::before {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        top: -24px;
        height: 24px;
    }

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

.navmenu .dropdown ul a {
        padding: 10px 14px;
        border-radius: 8px;
        font-size: 15px;
        font-weight: 600;
        color: #16204a;
        transition: background 0.2s, box-shadow 0.2s;
    }

.navmenu .dropdown ul a {
    position: relative;
    width: fit-content;          /* so the underline is only as wide as the text */
}

.navmenu .dropdown ul a::after {
    content: '';
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 5px;
    height: 2px;
    border-radius: 2px;
    background: #1163FB;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.35s cubic-bezier(0.65, 0.05, 0.36, 1);
}

.navmenu .dropdown ul a:hover,
.navmenu .dropdown ul a.selected {
    background: none;
    box-shadow: none;
}

.navmenu .dropdown ul a:hover::after,
.navmenu .dropdown ul a.selected::after {
    transform: scaleX(1);
}

.navmenu .dropdown.open>ul {
        opacity: 1;
        visibility: visible;
        transform: none;
    }
}

@media (max-width: 1199px) {
.mobile-nav-toggle {
        color: #fff;
        font-size: 28px;
        line-height: 0;
        cursor: pointer;
    }

.navmenu ul {
        display: none;
        list-style: none;
        margin: 0;
        padding: 0;
    }

.navmenu a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 20px;
    }

.navmenu .dropdown ul {
        display: none;
        position: static;
        margin: 4px 20px 8px;
        padding: 8px;
        background: #e8f1ff;
        border: 1px solid #cfe0ff;
        border-radius: 12px;
    }

.navmenu .dropdown ul a {
        color: #16204a;
    }

.navmenu .dropdown>.dropdown-active {
        display: block;
    }

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

.mobile-nav-active .mobile-nav-toggle {
        position: absolute;
        top: 15px;
        right: 15px;
        z-index: 9999;
    }

.mobile-nav-active .navmenu {
        position: fixed;
        inset: 0;
        z-index: 9997;
        background: #000;
        overflow-y: auto;
    }

.mobile-nav-active .navmenu>ul {
        display: block;
        margin-top: 60px;
    }
}

.footer {
    color: var(--default-color);
    background-color: var(--background-color);
    font-size: 14px;
    padding-bottom: 50px;
    position: relative;
}

.footer .footer-top {
    padding-top: 50px;
}

.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 {
    margin-right: 3px;
    font-size: 12px;
    line-height: 0;
    color: var(--accent-color);
}

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

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

.footer .footer-links ul a {
    display: inline-block;
    color: white;
    line-height: 1;
    transition: color 0.3s ease;
}

.footer .footer-links ul a:hover {
    color: #7dd3fc !important;
}

.footer .footer-about a {
    color: var(--heading-color);
    font-size: 24px;
    font-weight: 600;
    font-family: var(--heading-font);
}

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

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

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

.scroll-top {
    position: fixed;
    visibility: hidden;
    opacity: 0;
    right: 15px;
    bottom: 15px;
    z-index: 99999;
    background-color: #2cb0bc;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    box-shadow: 0 6px 16px rgba(89, 175, 206, 0.45);
    transition: all 0.4s;
}

.scroll-top i {
    font-size: 24px;
    color: #ffffff;
    line-height: 0;
}

.scroll-top:hover {
    background-color: #1163fb;
    box-shadow: 0 8px 20px rgba(17, 99, 251, 0.55);
}

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

#footer .container {
    max-width: 100%;
    margin: 0;
    padding-left: 50px;
    padding-right: 50px;
}

.footer_icons {
    display: flex;
    flex-direction: row;
    gap: 10px;
}

@media (max-width:668px) {
.header .logo img {
        max-height: 35px !important;
        margin-right: 5px;
    }
}

/* Keep header font identical on every page */

:where(.header, .header *) {
    font-family: var(--default-font);
}

@media (max-width: 576px) {
.btn-getstarted.contact {
        padding: 8px 14px;
        font-size: 13px;
        gap: 6px;
    }

.btn-getstarted .btn-icon {
        font-size: 14px;
    }
}

.footer_icons a.social-circle {
    width: 34px;
    height: 34px;
    background-color: rgba(78, 132, 219, 0.08);
    border: 1px solid rgba(91, 155, 255, 0.35);
    box-shadow: 0 2px 15px rgba(91, 155, 255, 0.45);
    transition: all 0.3s ease;
}

.footer_icons a.social-circle:hover {
    background-color: #5b9bff;
    border-color: #5b9bff;
    box-shadow: 0 2px 15px rgba(91, 155, 255, 0.75);
    transform: translateY(-3px) scale(1.08);
}

.footer_icons a.social-circle:hover i {
    color: #0a1230 !important;
}

@media (min-width: 1200px) and (max-width: 1399px) {
.header .btn-getstarted {
        padding: 8px 12px;
        font-size: 12.5px;
        margin-left: 8px;
    }
}

@media (max-width: 420px) {
.header .logo img {
        max-height: 28px !important;
    }

.header .btn-getstarted {
        padding: 6px 9px !important;
        font-size: 11.5px !important;
        margin-right: 6px !important;
    }
}

@media (max-width: 991px) {
#footer .container {
        padding-left: 24px;
        padding-right: 24px;
    }

#footer .footer-about {
        flex: 1 1 100% !important;
        max-width: 100% !important;
        margin-right: 0 !important;
        padding-right: 0 !important;
        border-right: none !important;
    }

#footer .footer-links {
        margin-left: 0 !important;
        margin-right: 0 !important;
        flex: 1 1 40% !important;
    }
}

@media (max-width: 575px) {
#footer .container {
        padding-left: 16px;
        padding-right: 16px;
    }

#footer .footer-links {
        flex: 1 1 100% !important;
    }

#footer .copyright {
        justify-content: center !important;
        text-align: center;
    }
}

#footer .footer-links.footer-col-resources {
        flex: 0 0 auto !important;
        margin-right: 45px !important;
    }

#footer .footer-links.footer-col-newsletter {
        flex: 0 0 320px !important;
        min-width: 0 !important;
    }

/* Chrome / Edge / Safari: slim bar, NO arrow buttons, kept off the rounded corners */

.navmenu .dropdown ul.dropdown-scroll::-webkit-scrollbar {
    width: 6px;
  }

.navmenu .dropdown ul.dropdown-scroll::-webkit-scrollbar-button {
    display: none;
    width: 0;
    height: 0;
  }

.navmenu .dropdown ul.dropdown-scroll::-webkit-scrollbar-track {
    background: transparent;
    margin: 12px 0;
  }

.navmenu .dropdown ul.dropdown-scroll::-webkit-scrollbar-thumb {
    background: #1163fb;
    border-radius: 3px;
  }

@supports (-moz-appearance: none) {
@media (min-width: 1200px) {
.navmenu .dropdown ul.dropdown-scroll {
      scrollbar-width: thin;
      scrollbar-color: #1163fb transparent;
    }
}
}

:where(body.home-page) .header .container-fluid {
    position: relative;
    z-index: 1;
}

@media (min-width: 1200px) {
.header .navmenu > ul > li > a {
        padding: 10px 12px;
        font-size: 15px;
        font-weight: 500;
        background: none;
        border-radius: 0;
        box-shadow: none;
        transform: none;
        transition: color 0.2s;
    }

.header .navmenu > ul > li > a:hover,
    .header .navmenu > ul > li > a.active,
    .header .navmenu > ul > li.open > a {
        background: none;
        box-shadow: none;
        transform: none;
        color: #5b9bff;
    }

.navmenu .toggle-dropdown {
    transform: rotate(180deg);      /* closed: arrow points up */
    transition: transform 0.2s;
}

.navmenu .dropdown.open > a .toggle-dropdown {
    transform: rotate(0deg);        /* open: arrow points down */
}

/* ---- items: white icon square + heading (Solutions and Industries) ---- */

.navmenu .mega-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: 10px;
    color: #16204a;
    white-space: normal;
    transition: background 0.2s, box-shadow 0.2s;
}

.navmenu .mega-item strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    color: #16204a;
}

.navmenu .mega-item:hover {
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(17, 99, 251, 0.18);
}

.navmenu .mega a.active {
    background: none;
    box-shadow: none;
    color: #16204a;
}

@media (min-width: 1200px) {
.navmenu .dropdown.has-mega { position: static; }

.navmenu .mega {
        position: absolute;
        top: calc(100% + 10px);
        left: 50%;
        width: min(900px, calc(100vw - 40px));
        display: grid;
        gap: 8px;
        padding: 16px;
        background: #e8f1ff;
        border: 1px solid #cfe0ff;
        border-radius: 14px;
        box-shadow: 0 20px 40px rgba(2, 25, 72, 0.35);
        z-index: 99;
        visibility: hidden;
        opacity: 0;
        transform: translateX(-50%) translateY(8px);
        transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
    }

.navmenu .dropdown.open > .mega {
        visibility: visible;
        opacity: 1;
        transform: translateX(-50%);
    }
}

@media (max-width: 1199px) {
.navmenu .mega {
        display: none;
        margin: 4px 20px 8px;
        padding: 8px;
        background: #e8f1ff;
        border: 1px solid #cfe0ff;
        border-radius: 12px;
    }

.navmenu .mega.dropdown-active {
        display: grid;
        grid-template-columns: 1fr;
        gap: 4px;
    }

.navmenu .mega-industries.dropdown-active { grid-template-columns: 1fr 1fr; }

.navmenu .mega-item { padding: 10px; }
}

@media (min-width: 1200px) {
.navmenu .dropdown ul {
        width: 222px;
    }
}

@media (min-width: 1200px) {
.header .navmenu > ul > li > a {
        position: relative;
    }

.header .navmenu > ul > li > a::after {
        content: '';
        position: absolute;
        left: 12px;
        right: 12px;
        bottom: 2px;
        height: 2px;
        border-radius: 2px;
        background: #5b9bff;
        transform: scaleX(0);
        transform-origin: center;
        transition: transform 0.35s cubic-bezier(0.65, 0.05, 0.36, 1);
    }

.header .navmenu > ul > li > a:hover::after,
    .header .navmenu > ul > li > a.active::after,
    .header .navmenu > ul > li.open > a::after {
        transform: scaleX(1);
    }
}

@media (max-width: 1199px) {
.navmenu .toggle-dropdown { transform: rotate(180deg); transition: transform 0.2s; }

.navmenu .dropdown > a.active .toggle-dropdown { transform: rotate(0deg); }
}
}

/* Header button has overflow:hidden (for the shine effect), so the strip
   above would be clipped. Use scale only: it grows outward, so no flicker. */

.header .btn-getstarted:hover,
.header .btn-getstarted:focus:hover {
    transform: scale(1.05);
}

/* ===== Mobile footer: 2 columns per row =====
   Row 1: SOLUTIONS | INDUSTRIES
   Row 2: PRODUCTS  | COMPANY
   Resolution: 575px aur usse chhoti screens (phones) */
@media (max-width: 575px) {
    #footer .footer-links {
        flex: 0 0 calc(50% - 8px) !important;
        /* 2 columns, beech mein gap */
        max-width: calc(50% - 8px) !important;
        min-width: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* link text lamba ho to column ke andar wrap ho jaye */
    #footer .footer-links ul a {
        font-size: 12.5px !important;
        word-break: break-word;
        line-height: 1.3;
    }
}