/* 
==========================================================================
InnovAI Redesign System
==========================================================================
*/

:root {
    --inn-black: #020305;
    --inn-deep-navy: #030816;
    --inn-deep-blue: #050b24;
    --inn-deep-purple: #0a0518;
    --inn-accent-cyan: #00f0ff;
    --inn-accent-blue: #0066ff;
    --inn-accent-purple: #8800ff;
    /* Text Visibility Rules */
    --inn-text-primary: #FFFFFF;
    --inn-text-secondary: #D9D9D9;
    --inn-text-muted: #B0B0B0;
}

body {
    background-color: #03040a;
    background-image: radial-gradient(circle at 0% 0%, #0c154a 0%, transparent 60%), radial-gradient(circle at 100% 0%, #1a0b3b 0%, transparent 60%), radial-gradient(circle at 50% 50%, #05081a 0%, #020308 100%);
    background-attachment: fixed;
    color: var(--inn-text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.7; /* Improved line-height for readability */
    overflow-x: hidden;
    position: relative;
}

.render {
    margin-top: 80px;
}
/* Typography Constraints */
.max-w-prose {
    max-width: 65ch; /* 60-75 characters per line */
}

.max-w-header {
    max-width: 800px; /* 8-12 words per line approx */
}

.max-w-section {
    max-width: 900px;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 15% 15%, rgba(0, 102, 255, 0.1) 0%, transparent 40%), radial-gradient(circle at 85% 85%, rgba(136, 0, 255, 0.1) 0%, transparent 40%);
    z-index: -1;
    pointer-events: none;
}

/* Technical AI Matrix Visual */
.hero-matrix-container {
    width: 100%;
    height: 500px;
    position: relative;
    background: rgba(0, 240, 255, 0.02);
    border: 1px solid rgba(0, 240, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
}

.matrix-line {
    position: absolute;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(0, 240, 255, 0.2), transparent);
    animation: scanLine 4s linear infinite;
}

@keyframes scanLine {
    0% {
        top: -10%;
    }

    100% {
        top: 110%;
    }
}

.nav-logo-img {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 0 15px rgba(0, 240, 255, 0.4));
}

.footer-logo-img {
    height: 40px;
    width: auto;
}

/* Futuristic Digital Globe Visual */
.globe-container {
    width: 100%;
    height: 600px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
}

#globe-canvas {
    width: 100%;
    height: 100%;
    z-index: 1;
}

.bg-darker {
    background-color: var(--inn-dark-navy);
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 15% 15%, rgba(0, 102, 255, 0.1) 0%, transparent 40%), radial-gradient(circle at 85% 85%, rgba(136, 0, 255, 0.1) 0%, transparent 40%);
    z-index: -1;
    pointer-events: none;
}


/* Ambient Glows */
.ambient-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    pointer-events: none;
}

/* Navigation */
.navbar {
    background: rgba(2, 3, 5, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.75rem 0;
    transition: all 0.4s ease;
}

.navbar-brand {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem !important;
    font-weight: 800 !important;
    letter-spacing: -0.05em !important;
    color: var(--inn-text-primary) !important;
    text-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

.nav-link {
    color: var(--inn-text-secondary) !important;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
}

.nav-logo-img {
    height: 50px !important;
    width: auto;
    display: block;
}

.nav-link:hover, .nav-link.active {
    color: var(--inn-accent-cyan) !important;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

.navbar-collapse, .navbar-nav {
    align-items: center !important;
}

.navbar-nav {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Typography & Contrast */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--inn-text-primary);
    letter-spacing: -0.03em;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-wrap: balance; /* Modern CSS for balanced line breaks */
}

h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
}

h2 {
    font-size: clamp(2rem, 5vw, 3.2rem);
}

h3 {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
}

p, .text-light-gray, li {
    color: var(--inn-text-secondary) !important;
    /*margin-bottom: 1.5rem;*/
    max-width: 75ch; /* Optimized line length for even wrapping */
}

.text-center p, .text-center li {
    margin-inline: auto;
}

.text-muted {
    color: var(--inn-text-muted) !important;
}

.text-gradient {
    background: linear-gradient(135deg, var(--inn-accent-cyan), var(--inn-accent-blue), var(--inn-accent-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.2));
}

.letter-spacing-1 {
    letter-spacing: 0.1em;
}

/* Sections */
.section-padding {
    padding: 60px 0;
    position: relative;
}

.pt-navbar {
    padding-top: 60px !important;
}

.py-100 {
    padding-top: 80px !important;
    padding-bottom: 80px !important;
}

.tight-top {
    padding-top: 30px !important;
}

.tight-section {
    padding-top: 30px !important;
    padding-bottom: 30px !important;
}

.bg-darker {
    background: linear-gradient(135deg, var(--inn-deep-blue), var(--inn-deep-purple)) !important;
    position: relative;
}

    .bg-darker::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: radial-gradient(circle at 50% 50%, rgba(0, 240, 255, 0.05) 0%, transparent 80%);
        pointer-events: none;
    }

/* Cards */
.glass-card, .feature-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem !important; /* Enforced consistent padding */
    border-radius: 20px;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

    .feature-card.p-0 {
        padding: 0 !important; /* Specific override for image-top cards */
    }

    .feature-card img {
        width: 100%;
        height: 280px;
        object-fit: cover;
        transition: transform 0.6s ease;
    }

    .feature-card:hover img {
        transform: scale(1.05);
    }

    .glass-card:hover, .feature-card:hover {
        background: rgba(255, 255, 255, 0.08);
        border-color: var(--inn-accent-cyan);
        transform: translateY(-12px);
        box-shadow: 0 40px 80px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 240, 255, 0.2);
    }

/* Buttons */
.btn {
    border-radius: 6px;
    padding: 1rem 2.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
}

.btn-primary-gradient {
    background: linear-gradient(135deg, var(--inn-accent-blue), var(--inn-accent-purple)) !important;
    border: none !important;
    color: white !important;
    box-shadow: 0 10px 30px rgba(0, 102, 255, 0.3);
}

    .btn-primary-gradient:hover {
        transform: translateY(-3px);
        box-shadow: 0 15px 45px rgba(0, 102, 255, 0.5), 0 0 20px rgba(0, 240, 255, 0.4);
        filter: brightness(1.2);
    }

/* Footer */
footer {
    background-color: #010101 !important;
    padding: 60px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

    footer h6 {
        color: var(--inn-text-primary);
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.2em;
        margin-bottom: 2rem;
    }

    footer a, footer p {
        color: var(--inn-text-secondary) !important;
        font-size: 1rem;
    }

        footer a:hover {
            color: var(--inn-accent-cyan) !important;
        }

/* Hero Elements */
#hero-canvas {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    z-index: 0;
    mask-image: linear-gradient(to left, black, transparent);
}

.hero-visual-wrapper {
    position: relative;
    width: 100%;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image-container {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
    perspective: 1000px;
}

    .hero-image-container img {
        width: 100%;
        height: auto;
        border-radius: 30px;
        box-shadow: 0 0 50px rgba(0, 240, 255, 0.2);
        animation: floating 6s ease-in-out infinite;
    }

@keyframes floating {
    0% {
        transform: translateY(0px) rotateX(0deg);
    }

    50% {
        transform: translateY(-20px) rotateX(5deg);
    }

    100% {
        transform: translateY(0px) rotateX(0deg);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.2;
    }

    100% {
        transform: scale(1.2);
        opacity: 0.4;
    }
}

@media (max-width: 991.98px) {
    .section-padding {
        padding: 60px 0;
    }

    .navbar-collapse {
        background: rgba(10, 11, 13, 0.98);
        padding: 2rem;
        margin-top: 1rem;
        border-radius: 8px;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
}


.policy-item {
    padding-left: 1.25rem;
    border-left: 2px solid rgba(99, 102, 241, 0.4);
    transition: border-color 0.3s ease;

    li {
        margin-bottom: 0.2rem;
    }
}

    .policy-item:hover {
        border-left-color: rgba(99, 102, 241, 0.9);
    }

.legal {
    background: #0d0d14;
    padding: 60px 0 100px;

    h4 {
        margin-bottom: 0;
    }
}

.text-light-gray {
    color: #b0b0c3;
}

.breadcrump {
    min-height: 20vh;
}


/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 420px;
    max-width: calc(100vw - 40px);
    z-index: 1050;
    padding: 0.5rem 1.5rem 1.25rem !important;
    border-radius: 12px !important;
    height: auto !important;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 40px rgba(0,0,0,0.8), 0 0 20px rgba(0, 240, 255, 0.1) !important;
    /* Glassmorphism fallback (assuming .glass-card is not present) */
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    font-family: 'Inter', sans-serif;
}

    .cookie-popup h4 {
        margin-top: 0 !important;
        margin-bottom: 0.25rem !important;
        font-size: 0.9rem;
        font-weight: 700;
        text-align: center;
        line-height: 1.2;
        color: #FFFFFF;
    }

    .cookie-popup p {
        margin-bottom: 1rem !important;
        font-size: 0.85rem;
        line-height: 1.4;
        text-align: center;
        text-wrap: balance;
        width: 100%;
        color: #D9D9D9; /* Text light gray */
    }

.cookie-buttons {
    display: flex;
    gap: 0.5rem;
}

    .cookie-buttons .btn {
        padding: 0.35rem 0.75rem !important;
        font-size: 0.65rem !important;
        letter-spacing: 0.05em;
        flex: 1;
        border-radius: 6px;
        font-weight: 800;
        text-transform: uppercase;
        cursor: pointer;
        border: none;
        transition: all 0.3s ease;
    }
/* Specific button styles if not using Bootstrap */
.cookie-popup .btn-primary-gradient {
    background: linear-gradient(135deg, #0066ff, #8800ff) !important;
    color: white !important;
}

.cookie-popup .btn-outline-light {
    background: transparent;
    border: 1px solid white !important;
    color: white !important;
}

@media (max-width: 576px) {
    .cookie-popup {
        bottom: 20px;
        right: 20px;
        width: calc(100vw - 40px);
        padding: 1.25rem !important;
    }
}

#globe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    left: -20px;
    top: -4px;
}

.services .service-card {
    scroll-margin-top: 80px;
}

.project-card .image-wrapper {
    height: 400px;
}

/*For mobile Portrait*/
@media screen and (min-width:320px) and (max-width: 480px) and (orientation: portrait) {
    .navbar {
        padding: 0 0;

        .nav-link {
            padding: 0rem 1.5rem;
        }

        .navbar-collapse {
            flex-basis: 0;
            flex-grow: 0;
            position: absolute;
            right: 10px;
            margin-top: 360px;
            padding: 10px 10px;
        }
    }

    .glass-card, .feature-card {
        padding: 1rem !important;
    }

    .pt-navbar {
        padding-top: 20px !important;
    }

    .render {
        margin-top: 60px;
    }

    .index {
        text-align: center;

        .display-2 {
            font-size: 32px;
        }

        .d-flex.flex-wrap {
            justify-content: center;
        }

        .row.g-4 {
            --bs-gutter-x: 0.5rem;
            margin-bottom: 20px;
        }

        ul.list-unstyled {
            text-align: start !important;
        }

        .hero-section {
            padding-top: 20px;
        }

        .feature-card {
            a {
                margin-left: auto;
                margin-right: auto;
            }
        }
    }

    .about {
        text-align: center;

        .webbing-canvas {
            display: none;
        }
    }

    .technology {
        text-align: center;

        p {
            width: 100% !important
        }

        .webbing-canvas {
            display: none;
        }
    }

    .services {
        text-align: center;

        .service-card .d-flex {
            justify-content: center;
        }

        h3 {
            font-size: 22px;
        }

        .py-100 {
            padding-top: 30px !important;
            padding-bottom: 30px !important;
        }

        a.btn {
            padding-right: 2rem !important;
            padding-left: 2rem !important;
        }
    }

    .project {
        text-align: center;

        .py-100 {
            padding-top: 30px !important;
            padding-bottom: 30px !important;
        }

        .project-card {
            text-align: start;

            .image-wrapper {
                height: 200px;
            }
        }
    }

    .how, .contact {
        text-align: center;

        .py-100 {
            padding-top: 30px !important;
            padding-bottom: 30px !important;
        }

        button.btn {
            padding-right: 2rem !important;
            padding-left: 2rem !important;
            font-size: 18px;
        }
    }

    .aidoc.min-vh-100 {
        min-height: 30vh !important;
    }

    .breadcrump {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }

    .case {
        text-align: center;
    }

    .thank {
        padding-top: 10px !important;
        padding-bottom: 50px !important;
    }
}

/*Bootstrap md*/
@media (min-width:768px) and (max-width:991.98px) and (orientation: landscape) {
    .navbar {
        padding: 0 0;

        .nav-link {
            padding: 0rem 1.5rem;
        }

        .navbar-collapse {
            flex-basis: 0;
            flex-grow: 0;
            position: absolute;
            right: 40px;
            margin-top: 350px;
            padding: 10px 10px;
        }
    }

    .pt-navbar {
        padding-top: 10px !important;
    }

    .webbing-canvas {
        display: none;
    }

    .glass-card, .feature-card {
        padding: 0.7rem !important;
    }

    .index {
        .row.g-4 {
            margin-bottom: 20px;
        }

        .rGlobe {
            display: none;
        }

        .Highlight .feature-card img {
            display: none;
        }

        .display-2 {
            font-size: 40px;
        }



        .feature-card {
            img {
                height: 150px;
            }

            .p-5.flex-grow-1 {
                padding: 1rem !important;
            }

            h3 {
                font-size: 18px;
            }

            .btn {
                padding: 1rem 0.5rem;
            }
        }

        .hero-section {
            padding-top: 20px;
        }
    }

    .about {
        .feature-card {
            .h4, h4 {
                font-size: 21px;
            }
        }
    }

    .technology {
        .feature-card {
            h3 {
                font-size: 27px;
            }
        }
    }

    .services, .project, .how, .contact, .aidoc {
        .py-100 {
            padding-top: 20px !important;
            padding-bottom: 20px !important;
        }
    }

    .project {
        .project-card {
            .image-wrapper {
                height: 200px;
            }
        }
    }

    .render {
        margin-top: 60px;
    }

    .aidoc.py-100, .breadcrump.py-100 {
        padding-top: 10px !important;
        padding-bottom: 10px !important;
    }

    .case {
        .feature-card img {
            height: 130px;
        }
    }

    .legal {
        padding: 20px 0 50px;
    }

    .thank {
        padding-top: 10px !important;
        padding-bottom: 50px !important;

        .display-4 {
            margin-top: 0rem !important;
        }
    }
}
/*Bootstrap sm*/
@media (min-width:576px) and (max-width:767.98px) and (orientation: landscape) {
    .navbar {
        padding: 0 0;

        .nav-link {
            padding: 0rem 1.5rem;
        }

        .navbar-collapse {
            flex-basis: 0;
            flex-grow: 0;
            position: absolute;
            right: 118px;
            margin-top: 350px;
            padding: 10px 10px;
        }
    }

    .pt-navbar {
        padding-top: 10px !important;
    }

    .webbing-canvas {
        display: none;
    }

    .glass-card, .feature-card {
        padding: 0.7rem !important;
    }

    .index {
        .row.g-4 {
            margin-bottom: 20px;
        }

        .rGlobe {
            display: none;
        }

        .Highlight .feature-card img {
            display: none;
        }

        .display-2 {
            font-size: 40px;
        }



        .feature-card {
            img {
                height: 150px;
            }

            .p-5.flex-grow-1 {
                padding: 1rem !important;
            }

            h3 {
                font-size: 18px;
            }

            .btn {
                padding: 1rem 0.5rem;
            }

            a {
                margin-left: auto;
                margin-right: auto;
            }
        }

        .hero-section {
            padding-top: 20px;
        }
    }

    .about {
        .feature-card {
            .h4, h4 {
                font-size: 21px;
            }
        }
    }

    .technology {
        .feature-card {
            h3 {
                font-size: 27px;
            }
        }
    }

    .services, .project, .how, .contact, .aidoc {
        .py-100 {
            padding-top: 20px !important;
            padding-bottom: 20px !important;
        }
    }

    .project {
        .project-card {
            .image-wrapper {
                height: 200px;
            }
        }
    }

    .render {
        margin-top: 60px;
    }

    .aidoc.py-100, .breadcrump.py-100 {
        padding-top: 10px !important;
        padding-bottom: 10px !important;
    }

    .case {
        .feature-card img {
            height: 130px;
        }
    }

    .legal {
        padding: 20px 0 50px;
    }

    .thank {
        padding-top: 10px !important;
        padding-bottom: 50px !important;

        .display-4 {
            margin-top: 0rem !important;
        }
    }

    .index, .about, .technology, .services, .project, .how, .contact, .case {
        text-align: center;

        .service-card .d-flex {
            justify-content: center;
        }

        .d-flex.flex-wrap {
            justify-content: center;
        }

        .project-card {
            text-align: start;
        }
    }

    .psl {
        padding-left: 0;
        padding-right: 0;
    }
}



/*For Tab IPad*/
@media screen and (min-width: 765px) and (max-width: 1000px) and (orientation: portrait) {
    .navbar {
        padding: 0 0;

        .nav-link {
            padding: 0rem 1.5rem;
        }

        .navbar-collapse {
            flex-basis: 0;
            flex-grow: 0;
            position: absolute;
            right: 65px;
            margin-top: 355px;
            padding: 10px 10px;
        }
    }
    .index {
        .row.g-4 {
            margin-bottom: 20px;
        }

        .feature-card {
            .p-5.flex-grow-1 {
                padding: 1rem !important;
            }

            h3 {
                font-size: 28px;
            }

            .btn {
                margin-left: auto;
                margin-right: auto;
                padding: 1rem .5rem;
            }
        }
    }

    .webbing-canvas {
        display: none;
    }

    .glass-card, .feature-card {
        padding: 1rem !important;
    }

    .technology {
        .feature-card {
            padding: 0.5rem !important;

            h3 {
                font-size: 28px;
            }
        }
    }

    .thank.min-vh-100, .aidoc.min-vh-100 {
        min-height: 52vh !important;
    }
}
/*For Tab IPad*/
@media screen and (min-width: 1024px) and (max-width: 1280px) and (orientation: landscape) {
    .render {
        margin-top: 80px;
    }

    .index {
        .hero-section {
            .display-2 {
                font-size: 42px;
            }

            h3 {
                font-size: 31px;
            }
        }

        .feature-card {
            .p-5.flex-grow-1 {
                padding: 1rem !important;
            }

            h3 {
                font-size: 28px;
            }

            .btn {
                margin-left: auto;
                margin-right: auto;
                padding: 1rem .5rem;
            }
        }
    }

    .glass-card, .feature-card {
        padding: 1rem !important;
    }

    .about {
        .display-3 {
            font-size: 42px;
        }
    }

    .webbing-canvas {
        display: none;
    }
    .thank.min-vh-100, .aidoc.min-vh-100 {
        min-height: 80vh !important;
    }
}

/*Mac book 16 and Apple iMac 24"*/
@media screen and (min-width: 1728px) and (max-width: 2048px) {
}

h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h6, p, .p, span, .span {
    text-wrap: balance;
}

.nice-select span {
    text-wrap: nowrap !important;
}
