html {
    scroll-behavior: smooth;
}

body.site-enhanced {
    overflow-x: hidden;
}

.site-enhanced img,
.site-enhanced video {
    max-width: 100%;
}

.site-enhanced a,
.site-enhanced button,
.site-enhanced .gallery-item,
.site-enhanced .signup-btn,
.site-enhanced .rfq-btn,
.site-enhanced .submit-btn,
.site-enhanced .cta-btn,
.site-enhanced .quick-tags button,
.site-enhanced .jump-nav-list a,
.site-enhanced .service-block,
.site-enhanced .expertise-card,
.site-enhanced .vision-box,
.site-enhanced .mission-box {
    transition: color 0.35s ease, background-color 0.35s ease, border-color 0.35s ease,
        box-shadow 0.35s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
}

.site-enhanced .navbar {
    backdrop-filter: blur(16px);
    background: rgba(255, 255, 255, 0.94) !important;
    z-index: 1400;
}

.site-enhanced .navbar .nav-links a:not(.signup-btn) {
    position: relative;
}

.site-enhanced .navbar .nav-links > a::after,
.site-enhanced .navbar .dropbtn::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: #007bff;
    transition: width 0.3s ease;
}

.site-enhanced .navbar .nav-links > a:hover::after,
.site-enhanced .navbar .dropdown:hover .dropbtn::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 10px 8px;
    z-index: 1500;
    position: relative;
}

.nav-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: #1a1a1a;
    border-radius: 99px;
    transition: transform 0.35s ease, opacity 0.25s ease;
}

.nav-toggle span + span {
    margin-top: 6px;
}

.nav-toggle.is-open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 26, 56, 0.38);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    z-index: 1300;
}

.nav-backdrop.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

body.nav-open {
    overflow: hidden;
}

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

.site-enhanced .hero {
    background-size: cover !important;
    background-position: center !important;
}

.site-enhanced .gallery-item img {
    transition: filter 0.5s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.site-enhanced .gallery-item:hover img,
.site-enhanced .gallery-item:focus-visible img {
    filter: brightness(45%);
    transform: scale(1.06);
}

.site-enhanced .signup-btn:hover,
.site-enhanced .rfq-btn:hover,
.site-enhanced .cta-btn:hover,
.site-enhanced .submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(0, 123, 255, 0.22);
}

.service-block,
[id^="network-"],
[id="cybersecurity"],
[id="application-development"],
[id="cctv-access"],
[id="cloud-services"],
[id="managed-services"] {
    scroll-margin-top: 96px;
}

.site-enhanced .search-container {
    overflow: visible !important;
    position: relative;
}

.search-suggest {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(0, 26, 56, 0.16);
    text-align: left;
    overflow: hidden;
    max-height: min(60vh, 420px);
    overflow-y: auto;
}

.search-suggest a {
    display: block;
    padding: 12px 18px;
    color: #002b5b;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    border-bottom: 1px solid #eef2f6;
}

.search-suggest a small {
    display: block;
    margin-top: 2px;
    color: #667788;
    font-size: 0.75rem;
    font-weight: 500;
}

.search-suggest a.is-active,
.search-suggest a:hover {
    background: #eef5ff;
}

.search-suggest[hidden] {
    display: none !important;
}

@media (min-width: 901px) {
    .site-enhanced .navbar {
        overflow: visible !important;
        align-items: stretch !important;
    }

    .site-enhanced .navbar .logo {
        display: flex !important;
        align-items: center !important;
    }

    .site-enhanced .navbar .nav-links {
        align-self: stretch !important;
        align-items: stretch !important;
        margin-top: -1rem !important;
        margin-bottom: -1rem !important;
    }

    .site-enhanced .navbar .nav-links > a {
        display: flex !important;
        align-items: center !important;
    }

    .site-enhanced .navbar .signup-btn {
        align-self: center !important;
    }

    .site-enhanced .navbar .dropdown.mega {
        position: static !important;
        align-self: stretch !important;
        display: flex !important;
        align-items: center !important;
    }

    .site-enhanced .navbar .dropdown.mega .dropbtn {
        display: flex !important;
        align-items: center !important;
        height: 100% !important;
    }

    .site-enhanced .navbar .dropdown-content {
        display: block !important;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.18s ease, visibility 0.18s ease;
        border-radius: 12px;
        overflow: visible;
        transform: none;
    }

    .site-enhanced .navbar .dropdown-content.mega-menu {
        display: grid !important;
        position: absolute !important;
        top: calc(100% - 18px) !important;
        left: 2% !important;
        right: 2% !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        grid-template-columns: repeat(3, minmax(160px, 1fr)) !important;
        padding: 28px 24px 18px !important;
        gap: 8px 22px !important;
        max-height: min(72vh, 640px) !important;
        overflow: auto !important;
        box-shadow: 0 20px 50px rgba(0, 26, 56, 0.16) !important;
        border-radius: 14px !important;
        background: #fff !important;
        z-index: 2000 !important;
        transform: none !important;
    }

    .site-enhanced .navbar .dropdown:hover .dropdown-content,
    .site-enhanced .navbar .dropdown:focus-within .dropdown-content,
    .site-enhanced .navbar .dropdown.is-hover .dropdown-content {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
    }

    .mega-col {
        display: flex;
        flex-direction: column;
        min-width: 0;
    }

    .mega-title {
        font-weight: 800 !important;
        color: #002b5b !important;
        font-size: 0.84rem !important;
        padding: 4px 2px 10px !important;
        border-bottom: 2px solid #007bff !important;
        margin-bottom: 6px;
    }

    .mega-col a:not(.mega-title) {
        font-size: 0.78rem !important;
        font-weight: 500 !important;
        padding: 5px 2px !important;
        border-bottom: none !important;
        color: #445 !important;
        line-height: 1.35;
    }

    .mega-col a:not(.mega-title):hover {
        color: #007bff !important;
    }
}

@media (min-width: 1200px) {
    .site-enhanced .navbar .dropdown-content.mega-menu {
        grid-template-columns: repeat(6, minmax(140px, 1fr)) !important;
    }
}

@media (max-width: 900px) {
    .nav-toggle {
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
        margin-left: auto;
    }

    .site-enhanced .navbar {
        padding: 0.7rem 5% !important;
        gap: 10px;
    }

    .site-enhanced .logo img {
        max-height: 48px !important;
    }

    .site-enhanced .navbar .signup-btn {
        order: 2;
        padding: 8px 12px;
        font-size: 0.78rem;
        white-space: nowrap;
        border-radius: 999px;
    }

    .site-enhanced .navbar .nav-toggle {
        order: 3;
    }

    .site-enhanced .navbar .nav-links {
        display: flex !important;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        position: fixed !important;
        top: 0;
        right: 0;
        width: min(88vw, 360px);
        height: 100vh;
        height: 100dvh;
        margin: 0;
        padding: 92px 22px 32px;
        gap: 6px;
        background: #ffffff;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        transform: translateX(110%) !important;
        visibility: hidden;
        pointer-events: none;
        transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.45s;
        box-shadow: -20px 0 50px rgba(0, 26, 56, 0.14);
        z-index: 1400;
    }

    .site-enhanced .navbar .nav-links.is-open {
        transform: translateX(0) !important;
        visibility: visible;
        pointer-events: auto;
    }

    .site-enhanced .navbar .nav-links > a,
    .site-enhanced .navbar .dropbtn {
        display: block;
        padding: 14px 6px;
        font-size: 1.05rem;
        border-bottom: 1px solid #eef2f6;
    }

    .site-enhanced .navbar .nav-links > a::after,
    .site-enhanced .navbar .dropbtn::after {
        display: none;
    }

    .site-enhanced .navbar .dropdown-content {
        display: none !important;
        position: static;
        box-shadow: none;
        min-width: 0;
        padding: 0 0 8px 12px;
        max-height: none;
        overflow: visible;
    }

    .site-enhanced .navbar .dropdown.is-open .dropdown-content {
        display: block !important;
    }

    .site-enhanced .navbar .dropdown-content a {
        padding: 10px 8px;
        font-weight: 500;
        font-size: 0.95rem;
        color: #445;
    }

    .mega-col a:not(.mega-title) {
        display: none;
    }

    .mega-title {
        font-weight: 700;
        color: #002b5b;
        border-bottom: none;
    }

    .site-enhanced .hero {
        height: auto !important;
        min-height: 78vh;
        padding: 96px 6% 72px;
        animation: none !important;
        background-image: linear-gradient(rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.58)),
            url("pexels-shkrabaanthony-5475752.jpg") !important;
        background-size: cover !important;
        background-position: center !important;
    }

    .site-enhanced .hero h1,
    .site-enhanced .services-hero h1,
    .site-enhanced .hero-content h1,
    .site-enhanced .contact-info h1,
    .site-enhanced .rfq-header h1 {
        font-size: clamp(1.7rem, 7.4vw, 2.4rem) !important;
        line-height: 1.2;
    }

    .site-enhanced .search-container {
        width: 100%;
        max-width: 100%;
        overflow: visible !important;
        position: relative;
    }

    .site-enhanced .search-container input {
        min-width: 0;
        padding: 12px 16px;
        font-size: 0.95rem;
    }

    .site-enhanced .quick-tags {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .site-enhanced .gallery-grid,
    .site-enhanced .vision-mission-grid,
    .site-enhanced .summary-grid,
    .site-enhanced .contact-container,
    .site-enhanced .contact-grid,
    .site-enhanced .process-grid,
    .site-enhanced .form-grid,
    .site-enhanced .approach-container {
        grid-template-columns: 1fr !important;
    }

    .site-enhanced .approach-container {
        display: grid !important;
        gap: 22px;
    }

    .site-enhanced .gallery-grid {
        display: grid !important;
        gap: 16px;
    }

    .site-enhanced .gallery-item {
        height: 220px;
    }

    .site-enhanced .footer-links,
    .site-enhanced .conclusion-footer {
        flex-direction: column !important;
        gap: 14px !important;
    }

    .site-enhanced .service-block {
        padding: 22px 18px !important;
    }

    .site-enhanced .service-block ul {
        columns: 1 !important;
    }

    .site-enhanced .jump-nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .site-enhanced .jump-nav-list {
        flex-wrap: nowrap !important;
        width: max-content;
        padding-bottom: 6px;
    }

    .site-enhanced .ceo-hero,
    .site-enhanced .about-hero,
    .content-wrapper {
        flex-direction: column !important;
        padding: 40px 6% !important;
        text-align: center;
    }

    .site-enhanced .hero-content {
        padding-right: 0 !important;
        margin-bottom: 28px;
    }

    .site-enhanced .rfq-container,
    .site-enhanced .contact-container,
    .site-enhanced .summary-card,
    .site-enhanced .conclusion-card {
        padding: 28px 18px !important;
        width: 100%;
    }

    .site-enhanced .rfq-section,
    .site-enhanced .contact-page,
    .site-enhanced .service-gallery,
    .site-enhanced .approach-section,
    .site-enhanced .executive-summary,
    .site-enhanced .conclusion-section,
    .site-enhanced .expertise-section,
    .site-enhanced .philosophy-section,
    .site-enhanced .tech-platforms {
        padding-left: 5% !important;
        padding-right: 5% !important;
    }

    .site-enhanced input,
    .site-enhanced select,
    .site-enhanced textarea {
        font-size: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .reveal,
    .site-enhanced *,
    .site-enhanced .navbar .nav-links,
    .site-enhanced .navbar .dropdown-content,
    .nav-backdrop {
        transition: none !important;
        animation: none !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
