/* ========================================
   COMPREHENSIVE RESPONSIVE STYLES
   FOR ALL DEVICES - MOBILE FIRST APPROACH
   ======================================== */

/* ========== BASE RESET ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========== RESPONSIVE CONTAINERS ========== */
.container,
.wrap,
.footer-container,
.footer-container1 {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== RESPONSIVE TYPOGRAPHY ========== */
h1 {
    font-size: clamp(28px, 5vw, 65px);
    line-height: 1.2;
}

h2 {
    font-size: clamp(24px, 4vw, 40px);
    line-height: 1.3;
}

h3 {
    font-size: clamp(18px, 3vw, 24px);
    line-height: 1.4;
}

h4 {
    font-size: clamp(16px, 2.5vw, 20px);
    line-height: 1.4;
}

p,
li {
    font-size: clamp(14px, 2vw, 18px);
    line-height: 1.6;
}

/* ========== RESPONSIVE HEADER ========== */
@media (max-width: 1200px) {
    .site-header {
        padding: 20px 3vw;
    }

    .site-navigation .nav-list {
        gap: 20px;
    }

    .site-navigation .nav-list a {
        font-size: 16px;
    }
}

@media (max-width: 1024px) {
    .site-header {
        padding: 16px 3vw;
    }

    .site-logo {
        height: 36px !important;
    }

    .site-navigation .nav-list {
        gap: 16px;
    }

    .site-navigation .nav-list a {
        font-size: 14px;
    }

    .header-cta-btn {
        padding: 8px 16px;
        font-size: 14px;
    }

    .partner-logo-img {
        max-height: 36px;
    }
}

/* ========== MOBILE NAVIGATION ========== */
@media (max-width: 768px) {
    .site-header {
        position: fixed !important;
        top: 0;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(10px);
        padding: 12px 18px !important;
        z-index: 9999;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        height: 70px;
    }

    .site-logo {
        height: 32px !important;
        max-height: 32px !important;
    }

    .menu-toggle-btn {
        display: block !important;
        position: relative;
        background: rgba(255, 255, 255, 0.9);
        border: 1px solid rgba(0, 136, 206, 0.1);
        border-radius: 8px;
        padding: 8px 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        font-size: 20px;
        color: #0088CE;
        cursor: pointer;
    }

    .site-navigation,
    .site-right-area {
        display: none;
    }

    .site-navigation.active {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 70px;
        right: 0;
        width: 280px;
        height: calc(100vh - 70px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(15px);
        padding: 30px;
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
        z-index: 1500;
        animation: slideInRight 0.3s ease;
    }

    .site-navigation .nav-list {
        flex-direction: column;
        gap: 20px;
    }

    .site-navigation .nav-list a {
        font-size: 18px;
        font-weight: 600;
        color: #002147;
        padding: 10px 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

    .mobile-menu-overlay.active {
        display: block;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(0, 0, 0, 0.5);
        z-index: 1499;
    }

    /* Add padding to body to account for fixed header */
    body {
        padding-top: 70px;
    }

    body.mobile-menu-active {
        overflow: hidden;
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 480px) {
    .site-header {
        height: 60px !important;
        padding: 10px 15px !important;
    }

    .site-logo {
        height: 28px !important;
    }

    .site-navigation.active {
        top: 60px;
        height: calc(100vh - 60px);
    }

    .mobile-menu-overlay.active {
        top: 60px;
        height: calc(100vh - 60px);
    }

    body {
        padding-top: 60px;
    }
}

/* ========== RESPONSIVE HERO SECTIONS ========== */
.page-hero,
.hero,
.data-hero,
.bpm-hero {
    padding: 80px 4vw 60px;
    min-height: fit-content;
    display: flex;
    align-items: center;
}

@media (max-width: 1024px) {

    .page-hero,
    .hero,
    .data-hero,
    .bpm-hero {
        padding: 50px 3vw 35px;
    }

    .page-hero-content,
    .data-hero-content {
        max-width: 100%;
    }
}

@media (max-width: 768px) {

    .page-hero,
    .hero,
    .data-hero,
    .bpm-hero {
        flex-direction: column;
        padding: 40px 20px 30px;
        text-align: center;
        margin-top: 0 !important;
    }

    .page-hero-content,
    .data-hero-content {
        width: 100%;
        max-width: 100%;
        order: 1;
    }

    .page-hero-media,
    .hero-image-container {
        width: 100%;
        max-width: 100%;
        order: 2;
        margin-top: 30px;
    }

    /* Hide banner images on mobile for all pages except about.html, index.html, and data-platform.html */
    .bpm-hero .page-hero-media,
    .bpm-hero .hero-image-container,
    .cyber-hero .page-hero-media,
    .cyber-hero .hero-image-container,
    .ai-hero .page-hero-media,
    .ai-hero .hero-image-container,
    .ai-hero .hero-visual,
    .industries-hero .page-hero-media,
    .industries-hero .hero-image-container,
    .solutions-page-hero .page-hero-media,
    .solutions-page-hero .hero-image-container {
        display: none !important;
    }

    /* Keep banner images visible on mobile for about.html, index.html, and data-platform.html */
    .about-hero .page-hero-media,
    .about-hero .hero-image-container,
    .about-hero .hero-visual {
        display: flex !important;
    }
    
    /* Show banner for data-platform.html (data-hero without ai-hero) */
    .data-hero .page-hero-media,
    .data-hero .hero-image-container,
    .data-hero .hero-visual {
        display: flex !important;
    }
    
    /* Hide banner for ai-cloud-solutions.html (has both data-hero and ai-hero) */
    .ai-hero.data-hero .page-hero-media,
    .ai-hero.data-hero .hero-image-container,
    .ai-hero.data-hero .hero-visual {
        display: none !important;
    }

    .hero-eyebrow {
        font-size: 14px;
    }

    .hero-chip-row {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-chip {
        font-size: 12px;
        padding: 6px 12px;
    }

    .hero-actions {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .banner-btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
        justify-content: center;
    }
}

@media (max-width: 480px) {

    .page-hero,
    .hero,
    .data-hero,
    .bpm-hero {
        padding: 30px 15px 25px;
    }
}


.capabilities-grid,
.modern-platform-list,
.approach-grid {
    display: grid;
    gap: 25px;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}



@media (min-width: 768px) and (max-width: 1199px) {


    .capabilities-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}





/* ========== RESPONSIVE SECTIONS ========== */
.common-section,
.ai-section,
.why-choose,
.cta-section {
    padding: 60px 4vw;
}

@media (max-width: 1024px) {

    .common-section,
    .ai-section,
    .why-choose,
    .cta-section {
        padding: 50px 3vw;
    }
}

@media (max-width: 768px) {

    .common-section,
    .ai-section,
    .why-choose,
    .cta-section {
        padding: 40px 20px;
    }

    .section-title {
        margin-bottom: 40px;
    }
}

@media (max-width: 480px) {

    .common-section,
    .ai-section,
    .why-choose,
    .cta-section {
        padding: 30px 15px;
    }
}

/* ========== RESPONSIVE WHY CHOOSE SECTION ========== */
@media (max-width: 768px) {
    .why-choose .container {
        flex-direction: column;
    }

    .left-content,
    .right-image {
        width: 100% !important;
    }

    .right-image {
        margin-top: 30px;
    }

    .features {
        gap: 20px;
    }

    .feature {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
}

/* ========== RESPONSIVE FOOTER ========== */
@media (max-width: 768px) {

    .footer-container,
    .footer-container1 {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .footer-left,
    .footer-left2,
    .footer-right {
        width: 100% !important;
    }

    .footer-right {
        flex-direction: column;
        gap: 15px;
    }

    .social-images {
        justify-content: center;
    }
}

/* ========== RESPONSIVE BUTTONS ========== */
.cta-btn,
.banner-btn,
.header-cta-btn {
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {

    .cta-btn,
    .banner-btn {
        padding: 12px 20px;
        font-size: 15px;
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {

    .cta-btn,
    .banner-btn {
        padding: 10px 18px;
        font-size: 14px;
    }
}

/* ========== RESPONSIVE TABLES ========== */
table {
    width: 100%;
    overflow-x: auto;
    display: block;
}

@media (max-width: 768px) {
    table {
        font-size: 14px;
    }

    th,
    td {
        padding: 8px !important;
    }
}

/* ========== RESPONSIVE FORMS ========== */
input,
textarea,
select {
    width: 100%;
    max-width: 100%;
    padding: 12px;
    font-size: 16px;
}

@media (max-width: 768px) {

    input,
    textarea,
    select {
        padding: 10px;
        font-size: 15px;
    }
}

/* ========== RESPONSIVE UTILITIES ========== */
@media (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }

    .show-mobile {
        display: block !important;
    }
}

@media (min-width: 769px) {
    .hide-desktop {
        display: none !important;
    }

    .show-desktop {
        display: block !important;
    }
}

/* ========== RESPONSIVE SPACING ========== */
.mb-1 {
    margin-bottom: clamp(8px, 1vw, 12px);
}

.mb-2 {
    margin-bottom: clamp(12px, 2vw, 20px);
}

.mb-3 {
    margin-bottom: clamp(16px, 3vw, 30px);
}

.mb-4 {
    margin-bottom: clamp(20px, 4vw, 40px);
}

.mb-5 {
    margin-bottom: clamp(24px, 5vw, 50px);
}

.mt-1 {
    margin-top: clamp(8px, 1vw, 12px);
}

.mt-2 {
    margin-top: clamp(12px, 2vw, 20px);
}

.mt-3 {
    margin-top: clamp(16px, 3vw, 30px);
}

.mt-4 {
    margin-top: clamp(20px, 4vw, 40px);
}

.mt-5 {
    margin-top: clamp(24px, 5vw, 50px);
}

.p-1 {
    padding: clamp(8px, 1vw, 12px);
}

.p-2 {
    padding: clamp(12px, 2vw, 20px);
}

.p-3 {
    padding: clamp(16px, 3vw, 30px);
}

.p-4 {
    padding: clamp(20px, 4vw, 40px);
}

.p-5 {
    padding: clamp(24px, 5vw, 50px);
}

/* ========== RESPONSIVE FLEXBOX UTILITIES ========== */
.flex-wrap {
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .flex-column-mobile {
        flex-direction: column !important;
    }

    .flex-center-mobile {
        justify-content: center !important;
        align-items: center !important;
    }
}

/* ========== LANDSCAPE ORIENTATION FIX ========== */
@media (max-height: 500px) and (orientation: landscape) {

    .page-hero,
    .hero,
    .data-hero,
    .bpm-hero {
        min-height: auto;
        padding: 30px 20px;
    }

    .site-header {
        height: 50px !important;
        padding: 8px 15px !important;
    }

    body {
        padding-top: 50px;
    }
}

/* ========== PRINT STYLES ========== */
@media print {

    .site-header,
    .menu-toggle-btn,
    .mobile-menu-overlay,
    .cta-section,
    .footer {
        display: none !important;
    }

    body {
        padding-top: 0;
    }

    * {
        background: white !important;
        color: black !important;
    }
}

/* ========== HIGH DPI SCREENS ========== */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
    img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* ========== ACCESSIBILITY - REDUCED MOTION ========== */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ========== DARK MODE SUPPORT ========== */
@media (prefers-color-scheme: dark) {
    /* Add dark mode styles if needed */
}