/* ============================================================
   ROOT VARIABLES – central Myriad Pro, responsive type scale
   ============================================================ */
:root {
    /* Colors */
    --primary-color: #1a1938;
    --primary-hover: #2f3166;
    --secandry-color: #1b1c3a;
    --secandry-color-2: #191938;
    --accent-color: #23abff;
    --background-color: #f5f5f5;
    --text-gray: #555555;
    --white: #ffffff;

    /* Fonts – Myriad Pro, responsive sizes (no 12px vs 30px paragraphs) */
    --font-family: 'Myriad Pro', 'MyriadWebPro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-size-base: clamp(0.9375rem, 1.2vw + 0.6rem, 1.0625rem);
    --font-size-sm: clamp(0.8125rem, 1vw + 0.4rem, 0.875rem);
    --font-size-lg: clamp(1rem, 1.2vw + 0.6rem, 1.25rem);
    --font-size-h3: clamp(1.125rem, 1.8vw + 0.6rem, 1.5rem);
    --font-size-h2: clamp(1.375rem, 2.5vw + 0.6rem, 2rem);
    --font-size-h1: clamp(1.75rem, 3.5vw + 0.6rem, 2.75rem);
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    /* Gradients & Overlays */
    --LinearforSee: linear-gradient(180deg, var(--primary-color) 0%, var(--accent-color) 100%);
    --LinearMask: linear-gradient(var(--background-color) 0 0) content-box, linear-gradient(var(--background-color) 0 0);
    --overlay: rgba(255, 255, 255, 0.4);
    --overlay-2: rgba(255, 255, 255, 0.45);
    --shadow: rgba(0, 0, 0, 0.04) 0px 3px 5px;

    /* Border Radius */
    --radius: 24px;
}

/* ============================================================
   BASE STYLES
   - Global resets and default styling
   ============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-family);
}

body {
    background-color: var(--white);
    font-family: var(--font-family);
    font-size: var(--font-size-base);
}

ul,
ol {
    list-style-type: none;
}

a {
    text-decoration: none;
}

button {
    background-color: inherit;
    border: none;
    outline: none;
}

svg,
img {
    display: block;
}

p { font-size: var(--font-size-base); }
h1 { font-size: var(--font-size-h1); }
h2 { font-size: var(--font-size-h2); }
h3 { font-size: var(--font-size-h3); }
h4 { font-size: var(--font-size-lg); }
small, .caption { font-size: var(--font-size-sm); }
.driven-text, .lead, .section-desc { font-size: var(--font-size-lg); }

/* ============================================================
   CONTAINER
   - Centralized container for consistent horizontal padding
   ============================================================ */
.container {
    width: 100%;
    max-width: 1540px;
    padding: 0 80px;
    margin: 0 auto;
}

/* Trust Bar (Enterprise Credentials) */
.trust-bar {
    background: var(--primary-color);
    color: #fff;
    padding: 0.75rem 0;
    text-align: center;
}
.trust-bar-text {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.75rem 1rem;
}
.trust-bar-text span[aria-hidden="true"] {
    opacity: 0.6;
    font-weight: 300;
}
@media (max-width: 640px) {
    .trust-bar-text { font-size: 0.8rem; gap: 0.5rem 0.75rem; }
}

/* ============================================================
   HEADER
   - Main site header with sticky behavior
   ============================================================ */
.site-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 36px 94px;
    z-index: 15;
    transition: all 0.3s ease;
}

.site-header.sticky {
    position: fixed;
    backdrop-filter: blur(10px);
    padding: 15px 50px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    background-color: var(--white);
}

/* Logo */
.site-logo {
    width: 175px;
}
.site-logo img {
    height: 100%;
    width: 100%;
    display: block;
}

/* ============================================================
   NAVIGATION
   - Desktop navigation menu with underline effects
   ============================================================ */
.site-nav {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.411);
    border-radius: 50px;
    padding: 16px 32px;
    width: 556px;
    transition: all 0.3s ease;
}

.site-header.sticky .site-nav {
    background: transparent;
    backdrop-filter: none;
}

.nav-list {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: space-between;
}

.nav-item {
    position: relative;
}

.nav-link {
    font-size: 24px;
    font-weight: var(--font-weight-normal);
    color: var(--primary-color);
    position: relative;
    padding: 4px 0;
}

.nav-item.active .nav-link {
    font-weight: var(--font-weight-semibold);
}

/* Hover & Active Effects */
.nav-link::before,
.nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    transform: scale(0);
    transition: all 0.3s ease;
}

.nav-link::before {
    left: 0;
}

.nav-link::after {
    right: 0;
}

.nav-link .underline {
    position: absolute;
    bottom: 2px;
    left: 5px;
    right: 5px;
    height: 1px;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: all 0.3s ease;
}

.nav-link:hover::before,
.nav-link:hover::after,
.nav-item.active .nav-link::before,
.nav-item.active .nav-link::after {
    transform: scale(1);
}

.nav-link:hover .underline,
.nav-item.active .nav-link .underline {
    transform: scaleX(1);
}

/* Dropdown Menu */
.dropdown {
    display: none;
    position: absolute;
    top: 35px;
    left: 0;
    background: rgba(25, 25, 56, 0.9);
    padding: 10px 0;
    min-width: 250px;
    border-radius: 5px;
    flex-direction: column;
}

.dropdown a {
    display: block;
    padding: 10px 20px;
    color: var(--white);
}

.nav-item:hover .dropdown {
    display: flex;
}

/* Contact Button */
.btn-contact {
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 40px;
    background: var(--primary-color);
    font-size: 16px;
    font-weight: var(--font-weight-semibold);
    color: var(--white);
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-contact:hover {
    background: var(--primary-hover);
}

/* ============================================================
   HERO SECTION
   - Fullscreen hero with background video and overlay
   ============================================================ */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
}

.hero video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay);
    backdrop-filter: blur(1px);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 54px;
    color: var(--primary-color);
    font-weight: var(--font-weight-semibold);
    margin: 0 auto 10px 0;
    max-width: 1280px;
    text-shadow: 1px 1px 3px rgba(26, 25, 56, 0.4);
}

.hero-content p {
    font-size: 27px;
    color: var(--primary-color);
    font-weight: var(--font-weight-normal);
    max-width: 1000px;
    margin: 0 auto;
    text-shadow: 1px 1px 3px rgba(26, 25, 56, 0.4);
}

/* ============================================================
   HAMBURGER MENU
   - Mobile menu toggle button
   ============================================================ */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    cursor: pointer;
    z-index: 20;
}

.hamburger span {
    display: block;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(9px, 9px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================================
   DRIVEN HERO (SECONDARY SECTION)
   ============================================================ */
.bg-hero {
    background-color: var(--background-color);
    padding: 140px 0;
}

.inner-flex-1 {
    display: flex;
    align-items: center;
    gap: 96px;
}

.heading-wrapping {
    position: relative;
    font-size: 36px;
    line-height: 42px;
    color: var(--primary-color);
    font-weight: var(--font-weight-semibold);
    margin: 0 0 0 34px;
}

.heading-wrapping img {
    position: absolute;
    width: 124px;
    top: -38px;
    left: -38px;
}

.inner-flex-left p {
    font-size: 24px;
    font-weight: var(--font-weight-light);
    margin: 40px 0 0 0;
    color: var(--primary-color);
}

/* ============================================================
   SERVICE CARD SECTION
   - Layout for services with bordered gradient effects
   ============================================================ */
.service-bg {
    background-color: var(--background-color);
    padding: 100px 0;
}

.our-services-main {
    display: flex;
    flex-direction: column;
    gap: 48px;
    margin: 94px 0 0 0;
}

.our-services-card-full {
    width: 100%;
}

.our-services-card {
    display: flex;
    justify-content: space-between;
    position: relative;
    gap: 40px;
    border-radius: var(--radius);
    background-color: var(--background-color);
    padding: 36px;
    z-index: 1;
    height: 470px;
    overflow: hidden;
    flex-direction: row;
}

/* Gradient Border Mask */
.number::before,
.robotic-card::before,
.swiper-slide::before,
.feature-card:not(.active)::before,
.swiper-slide::before,
.our-services-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 2px;
    background: var(--LinearforSee);
    -webkit-mask: var(--LinearMask);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    border-radius: var(--radius);
    pointer-events: none;
}

.service-card-left {
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: space-between;
    flex: 1 1 auto;
}

.service-card-left h1:first-child {
    font-size: 30px;
    font-weight: var(--font-weight-medium);
    line-height: 42px;
    color: var(--primary-color);
}

.service-card-left p {
    font-size: 21px;
    font-weight: var(--font-weight-normal);
    color: var(--primary-color);
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5em;
}

.service-card-left a {
    font-size: 26px;
    color: var(--accent-color);
    text-decoration: underline;
    font-weight: var(--font-weight-normal);
}

.service-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    overflow: hidden;
    border-radius: 16px;
    display: flex;
    flex: 0 0 40%;
    transition: all 0.4s ease-in-out;
}

.our-services-card-30 .service-card-img {
    display: none;
}

.service-card-img img {
    width: 100%;
    object-fit: cover;
}

.our-services-card-flex {
    display: flex;
    gap: 16px;
    align-items: stretch;
}

.our-services-card-70 {
    width: 65%;
    display: flex;
    flex-direction: row;
}

.our-services-card-30:hover .service-card-left {
    text-align: left;
    width: 100%;
}

.our-services-card-30 {
    width: 34%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.our-services-card-30 .service-card-left {
    width: 100%;
    flex-direction: column;
    text-align: center;
}

.our-services-card-flex .our-services-card {
    transition: all 0.4s ease-in-out;
}

.our-services-card-flex .service-card-img {
    transition: all 0.4s ease-in-out;
}

.our-services-card-30 .service-card-img {
    display: none;
}

.our-services-card-70,
.our-services-card-30 {
    display: flex;
    flex-direction: row;
    flex: 0 0 auto;
    transition: all 0.4s ease-in-out;
}
.head-right{
    display: flex;
    align-items: center;
    gap: 24px;
}
/* ============================================================
   RESPONSIVE MEDIA QUERIES
   - Tablet and mobile layout adjustments
   ============================================================ */
@media (max-width: 1250px) {
    .site-header{
        padding: 30px;
    }
    .container{
        padding:0 30px;
    }
    .site-nav{
        width: auto;
    }
    .nav-list{
        gap: 24px;
    }
    .nav-link{
        font-size: 22px;
    }
    .site-logo {
        width: 150px;
    }
    .our-services-card-flex {
        flex-direction: column;
        gap: 24px;
    }
    .our-services-card-70,
    .our-services-card-30 {
        width: 100% !important;
    }
    .service-card-left {
        width: 100%;
    }
    .service-card-img {
        max-width: 100%;
    }
    .hero-content{
        width: 90%;
    }
    .hero-content h1 {
        font-size: 40px;
        width: auto;
    }
    .hero-content p {
        font-size: 22px;
        width: auto;
    }
    
    .bg-hero{
        padding: 80px 0;
    }
    .inner-flex-left p{
        font-size: 20px;
    }
    .inner-flex-left {
        width: 60%;
    }
    .inner-flex-right {
        width: 35%;
    }
    .inner-flex-right img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    }
    .heading-wrapping{
        font-size: 32px;
        line-height: 38px;
    }
    
    .service-card-left h1:first-child{
        font-size: 24px;
    }
    .service-card-left p {
        font-size: 18px;
        line-height: 34px;
    }
    .our-services-card{
        height: 400px;
        min-height: 400px;
        max-height: 400px;
    }
    .heading-wrapping img{
        width: 100px;
    }
}

@media (max-width: 950px) {
    .hero{
        height: 70vh;
    }
    .hero-content h1 {
        font-size: 36px;
    }
       .hero-content p {
        font-size: 20px;
    }
    .inner-flex-1{
        flex-direction: column;
    }
    .inner-flex-left,
    .inner-flex-right{
        width: 100%;
    }
    .inner-flex-1{
        gap: 30px;
    }
    .inner-flex-right {
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .inner-flex-right img{
        width: 35%;
    }   
    .service-card-left h1:first-child {
        font-size: 28px;
    }
    .service-card-left div h1 {
        font-size: 22px;
    }
    .service-card-left p {
        font-size: 16px;
    }
    .service-card-left a {
        font-size: 16px;
    }
    .service-card-img {
        height: auto;
    }

    /* Mobile Navigation Drawer */
    .site-nav {
        position: fixed;
        top: 80px;
        left: 0;
        height: auto;
        width: 100%;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        gap: 20px;
        border-radius: 0;
        padding-left: 20px;
        transform: translateX(-100%);
        transition: transform 0.3s ease, background 0.3s ease;
        background: rgba(255, 255, 255, 0.95);
    }
    .site-nav.open {
        transform: translateX(0);
    }

    .nav-list {
        flex-direction: column;
        gap: 15px;
    }

    .dropdown {
        position: relative;
        top: 0;
        left: 0;
        display: none;
        background: transparent;
        padding: 0;
    }

    .nav-item.open .dropdown {
        display: flex;
        flex-direction: column;
    }

    .hamburger {
        display: flex;
    }
    .site-nav.open .nav-list{
        align-items: self-start;
    }
    .site-nav.open .dropdown a{
                color: var(--primary-color);
        padding: 15px 0 0 0;
        font-size: 22px;
    }
    .site-nav.open {
        background: rgba(255, 255, 255, 0.95) !important;
    }
    .our-services-main{
        margin: 48px 0 0 0;
    }
    .our-services-card-flex{
        gap: 48px;
    }
    .site-header.sticky{
        padding: 20px 30px;
    }
}

@media (max-width: 690px) {
   .footer-bottom{
    grid-template-columns: repeat(1,1fr);
   }
   .site-logo {
        width: 130px;
    }
    .head-right{
        gap: 14px;
    }
        .hero-content h1 {
        font-size: 28px;
    }
        .hero-content {
        width: 94%;
    }
        .hero-content p {
        font-size: 18px;
    }
    .heading-wrapping img{
        width: 90px;
    }
        .heading-wrapping {
        font-size: 24px;
        line-height: 34px;
    }
    .heading-wrapping img{
        top: -30px;
    }
        .inner-flex-left p {
        font-size: 18px;
        margin: 30px 0 0 0;
    }
    .our-services-card{
        max-height: fit-content;
        min-height: auto;
        height: auto;
        flex-direction: column;
    }
        .service-card-left h1:first-child {
        font-size: 22px;
        line-height: 32px;
    }
    .our-services-card{
        padding: 20px;
    }
    .service-card-left p{
        line-height: 30px;
    }
    .service-card-img
 {
        min-height: 325px;
    }
}
@media (max-width: 400px){
        .container {
        padding: 0 20px;
    }
    .site-header.sticky,
        .site-header {
        padding: 20px;
    }
    .btn-contact{
        padding: 10px 12px;
        font-size: 14px;
    }
    .site-logo
 {
        width: 100px;
    }
        .hero-content h1 {
        font-size: 24px;
    }
        .hero-content p {
        font-size: 16px;
    }
    .heading-wrapping {
        font-size: 24px;
        line-height: 26px;
    }
    .inner-flex-left p {
        font-size: 16px;
    }
        .service-card-left h1:first-child {
        font-size: 20px;
        line-height: 26px;
    }
        .service-card-left p {
        line-height: 26px;
        font-size: 15px;
    }
 
}
@media (max-width: 380px){
     .heading-wrapping {
        font-size: 20px;
    }
}

/* Search overlay */
.search-overlay { display: none; position: fixed; inset: 0; background: rgba(26,25,56,0.92); z-index: 9999; align-items: flex-start; justify-content: center; padding: 4rem 1rem 1rem; }
.search-overlay.active { display: flex; }
body.search-open { overflow: hidden; }
.search-overlay-inner { width: 100%; max-width: 520px; background: var(--white); border-radius: 12px; padding: 1rem; position: relative; }
.search-close { position: absolute; top: 0.5rem; right: 0.5rem; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--primary-color); }
.search-input { width: 100%; padding: 0.75rem 1rem; font-size: 1rem; border: 1px solid #e0e0e0; border-radius: 8px; margin-bottom: 0.5rem; }
.search-results { max-height: 60vh; overflow-y: auto; }
.search-result-item { display: block; width: 100%; padding: 0.6rem 1rem; text-align: left; color: var(--primary-color); text-decoration: none; border-bottom: 1px solid #eee; }
.search-result-item:hover { background: var(--background-color); }
.search-no-results { padding: 1rem; color: var(--text-gray); }
.btn-search-nav { background: none; border: none; color: #fff; cursor: pointer; font-size: 1.1rem; padding: 0.25rem 0.5rem; margin-right: 0.25rem; }

/* Daily insights */
.daily-insights-section { padding: 3rem 0; background: var(--background-color); }
.daily-insights-heading { font-size: 1.5rem; margin-bottom: 0.5rem; color: var(--primary-color); }
.daily-insights-sub { color: var(--text-gray); margin-bottom: 1.5rem; }
.daily-insights-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.daily-insight-card { background: var(--white); padding: 1rem; border-radius: 8px; box-shadow: var(--shadow); }
.daily-insight-card h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.daily-insight-card h3 a { color: var(--accent-color); text-decoration: none; }
.daily-insight-card p { font-size: 0.9rem; color: var(--text-gray); line-height: 1.4; }
.daily-loading { color: var(--text-gray); }

/* Form message */
.form-message { margin: 1rem 0; padding: 0.75rem; border-radius: 6px; }
.form-message-success { background: #d4edda; color: #155724; }
.form-message-error { background: #f8d7da; color: #721c24; }