/*=============================================
=            CSS Variables                    =
=============================================*/
:root {
    /* Color Palette */
    --bg-main: #020610;
    /* Deepest dark */
    --bg-darker: #060c18;
    /* Slightly lighter than main */
    --bg-card: #0a1324;
    /* Card background */
    --bg-glass: rgba(10, 19, 36, 0.6);

    --primary: #2563eb;
    /* Vibrant Azure Blue */
    --primary-light: #60a5fa;
    /* Light Azure Accent */
    --primary-glow: rgba(37, 99, 235, 0.4);

    --text-main: #f8fafc;
    --text-muted: #94a3b8;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Layout */
    --container-width: 1200px;
    --section-pad: 8rem 0;
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/*=============================================
=            Reset & Base Styles              =
=============================================*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-main);
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    background-color: var(--bg-main);
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

/* Ensure sections allow background columns to show or play nice with them */
section {
    position: relative;
    z-index: 10;
}

.grid-bg {
    /* Reduce opacity of grid to let vertical columns dominate */
    background-image: radial-gradient(circle, rgba(67, 70, 86, 0.1) 1px, transparent 1px);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.highlight {
    color: var(--primary-light);
    display: inline-block;
}

.bg-light-grey {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    position: relative;
    /* Ensure relative for bg elements */
}

/* Intelligence Section */
.intel-label {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 3px;
    margin-bottom: 1.5rem;
    display: block;
}

.intel-headline {
    font-size: 4rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 2.5rem;
    line-height: 1.1;
}

.intel-desc {
    font-size: 1.3rem;
    color: #334155;
    line-height: 1.7;
    margin-bottom: 4rem;
    max-width: 90%;
}

.intel-points {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.intel-point {
    padding-left: 2rem;
}

.intel-point h4 {
    font-size: 1.6rem;
    color: #0f172a;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.intel-point p {
    font-size: 1.1rem;
    color: #475569;
    line-height: 1.6;
}

.intel-image-wrapper {
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    perspective: 1000px;
}

.intel-img {
    max-width: 140%;
    /* Scaled up */
    width: 140%;
    height: auto;
    filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.15));
    transform: translateX(10%);
    /* Slight offset to fill space */
}

/* Light Background Animations */
.intel-bg-wrap {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.intel-particle {
    position: absolute;
    color: rgba(59, 130, 246, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    /* Large subtle icons */
    pointer-events: none;
}

.ip1 {
    top: 10%;
    right: 10%;
    font-size: 10rem;
    animation: float-slow 20s infinite ease-in-out;
}

.ip2 {
    bottom: 15%;
    left: 5%;
    font-size: 12rem;
    animation: float-slow 25s infinite ease-in-out reverse;
}

.ip3 {
    top: 40%;
    left: 35%;
    font-size: 6rem;
    animation: rotate-slow 35s infinite linear;
}

.ip4 {
    bottom: 20%;
    right: 40%;
    font-size: 8rem;
    opacity: 0.05;
    animation: float-slow 18s infinite ease-in-out;
}

@media (max-width: 992px) {
    .intel-headline {
        font-size: 2.5rem;
    }

    .intel-points {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .intel-image-wrapper {
        justify-content: center;
        margin-top: 3rem;
    }
}

.dot {
    color: var(--primary-light);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Backgrounds */
.bg-darker {
    background-color: var(--bg-darker);
}

.bg-primary {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--primary) 150%);
}

/* Layout Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: var(--section-pad);
    position: relative;
}

.grid {
    display: grid;
    gap: 2rem;
}

.container-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--primary);
    color: #fff;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-glow);
}

.btn-secondary {
    background-color: transparent;
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.btn-secondary:hover {
    border-color: var(--primary-light);
    color: var(--primary-light);
}

.btn-nav {
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-nav:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.btn-block {
    width: 100%;
}

/*=============================================
=            Preloader & Transitions          =
=============================================*/
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

.preloader-overlay {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    background-color: #010308;
    transition: transform 1.2s cubic-bezier(0.77, 0, 0.175, 1);
}

.preloader-left {
    left: 0;
}

.preloader-right {
    right: 0;
}

.preloader.loaded .preloader-left {
    transform: translateX(-100%);
}

.preloader.loaded .preloader-right {
    transform: translateX(100%);
}

.preloader-content {
    position: relative;
    z-index: 10;
    text-align: center;
    transition: opacity 0.5s ease;
}

.preloader.loaded .preloader-content {
    opacity: 0;
}

.brand-name-loader {
    font-size: 3rem;
    letter-spacing: 2px;
    margin-bottom: 20px;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
    animation: revealText 1.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.loading-bar {
    width: 200px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.loading-bar .progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: var(--primary-light);
    animation: loadBar 2s ease forwards;
}

@keyframes revealText {
    0% {
        transform: translateY(50px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes loadBar {
    0% {
        width: 0%;
    }

    50% {
        width: 70%;
    }

    100% {
        width: 100%;
    }
}

/*=============================================
=            Navigation                       =
=============================================*/
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background-color: #000000 !important;
    background: #000000 !important;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8) !important;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.nav-logo {
    height: 44px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a:not(.btn) {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
}

.nav-links a:not(.btn):hover {
    color: #fff;
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-light);
    transition: var(--transition);
}

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    z-index: 1001;
    transition: var(--transition);
}

.mobile-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-light);
}

.mobile-toggle .menu-text {
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100vh !important;

        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;

        background: rgba(0, 0, 0, 0.95) !important;
        transform: translateX(100%) !important;
        transition: transform 0.4s ease !important;
        z-index: 99999 !important;
    }

    .nav-links.active {
        transform: translateX(0%) !important;
    }

    .nav-links a {
        font-size: 2rem !important;
        font-weight: 700 !important;
    }
}

/*=============================================
=            Standard Section BGs             =
=============================================*/
.bg-hero {
    background-color: #030712;
}

.bg-alt-1 {
    background-color: #030712 !important;
}

.bg-alt-2 {
    background-color: #0c1222 !important;
}

.bg-offwhite {
    background: linear-gradient(180deg, #e2e8f0 0%, #cbd5e1 100%) !important;
}

.bg-grid {
    position: relative;
    z-index: 1;
}

.bg-grid-light {
    position: relative;
    z-index: 1;
}

.bg-grid-light::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
    background-size: 80px 80px;
    background-position: center top;
    z-index: -1;
    pointer-events: none;
}

/*=============================================
=            Hero Section                     =
=============================================*/
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(ellipse at 50% 20%, #0d3775 0%, #051024 60%, var(--bg-main) 100%);
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    background-position: center top;
}

.hero-bg::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 15rem;
    background: linear-gradient(to bottom, transparent, var(--bg-main));
}

.blob {
    display: none;
}

.blob-1 {
    display: none;
}

.blob-2 {
    display: none;
}

.glass-overlay {
    display: none;
}

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

.hero-text-wrapper {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease 2s forwards;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-inline: auto;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease 2.2s forwards;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease 2.4s forwards;
}

@keyframes float {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, 50px);
    }
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/*=============================================
=            Sections & Typography Utilities  =
=============================================*/
.section-heading {
    margin-bottom: 3rem;
}

.text-center {
    text-align: center;
    margin-inline: auto;
}

.section-tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-light);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 3rem;
}

/*=============================================
=            About Section (Stats Layout)     =
=============================================*/
.bg-light {
    background-color: #ffffff;
    color: #111111;
}

/*=============================================
=            Philosophy Section               =
=============================================*/
/* Glass box properties moved/removed */

.padding-4 {
    padding: 2rem 0;
}

.philosophy-split {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 4rem;
    align-items: center;
}

.philosophy-image-wrapper {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    height: 100%;
    /* Mask the grid background behind the illustration */
    background: linear-gradient(180deg, #e2e8f0 0%, #cbd5e1 100%);
    z-index: 2;
}

.phi-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-height: 450px;
}

.phi-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    letter-spacing: -1px;
}

.phi-subtitle {
    font-size: 1.15rem;
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 2rem;
    font-weight: 400;
}

.phi-body-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #334155;
    margin-bottom: 1.8rem;
    font-family: var(--font-body);
}

.phi-lead {
    font-family: var(--font-heading);
    font-size: 1.3rem !important;
    font-weight: 600;
    color: #0f172a !important;
    line-height: 1.4;
}

.phi-accent {
    font-family: var(--font-heading);
    font-size: 1.25rem !important;
    font-weight: 700;
    color: var(--primary-light) !important;
}

.phi-features {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.phi-feature {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.phi-icon-box {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #60a5fa;
    font-size: 1.35rem;
}

.phi-text h4 {
    font-size: 1.15rem;
    color: #1a1a1a;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.phi-text p {
    font-size: 0.95rem;
    color: #4b5563;
    line-height: 1.5;
}

@media (max-width: 1024px) {
    .philosophy-split {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .phi-img {
        min-height: 300px;
    }

    .padding-4 {
        padding: 3rem 2rem;
    }
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 5rem;
    font-weight: 400;
    line-height: 1;
    color: #111;
    margin-bottom: 2rem;
    letter-spacing: -2px;
}

.stat-divider {
    height: 1px;
    width: 100%;
    background-color: #eee;
    margin-bottom: 1.5rem;
}

.stat-title {
    font-size: 1.1rem;
    font-weight: 400;
    color: #111;
    margin-bottom: 0.5rem;
}

.stat-desc {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
}

@media (max-width: 992px) {
    .about-hero-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .about-headline h2 {
        font-size: 3rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/*=============================================
=            What We Deliver Section          =
=============================================*/
.capability-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.cap-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.cap-card:hover {
    border-color: var(--primary-light);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
}

.cap-wide {
    grid-column: span 2;
}

.cap-narrow {
    grid-column: span 1;
}

.cap-icon {
    font-size: 2rem;
    color: var(--primary-light);
    margin-bottom: 2rem;
}

.cap-title {
    font-size: 1.8rem;
    color: #ffffff;
    margin-bottom: 1.25rem;
    font-weight: 600;
}

.cap-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 90%;
    position: relative;
    z-index: 2;
}

/* Background Animations */
.bg-animation-wrap {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.bg-particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--primary-light);
    border-radius: 50%;
    opacity: 0.15;
    filter: blur(1px);
}

.p1 {
    top: 20%;
    left: 10%;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    animation: float-slow 15s infinite ease-in-out;
}

.p2 {
    top: 60%;
    left: 80%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    animation: float-slow 12s infinite ease-in-out reverse;
}

.p3 {
    top: 40%;
    left: 50%;
    width: 100px;
    height: 100px;
    border: 1px solid var(--primary-glow);
    border-radius: 24px;
    animation: rotate-slow 20s infinite linear;
}

.p4 {
    bottom: 10%;
    left: 30%;
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-light);
    border-radius: 4px;
    animation: float-slow 8s infinite ease-in-out;
}

@keyframes float-slow {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(30px, -40px);
    }
}

@keyframes rotate-slow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.cap-watermark {
    position: absolute;
    right: -2rem;
    bottom: -2rem;
    font-size: 12rem;
    color: rgba(255, 255, 255, 0.03);
    pointer-events: none;
    transform: rotate(-15deg);
}

@media (max-width: 992px) {
    .capability-grid {
        grid-template-columns: 1fr;
    }

    .cap-wide,
    .cap-narrow {
        grid-column: span 1;
    }

    .cap-card {
        padding: 2.5rem;
    }
}

/*=============================================
=            Services Section (Modules)       =
=============================================*/
.module-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4rem;
}

.module-header-left {
    display: flex;
    flex-direction: column;
}

.module-label {
    font-size: 0.75rem;
    letter-spacing: 0.3rem;
    color: #94a3b8;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.module-title {
    font-size: 3rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -1px;
    text-transform: uppercase;
    line-height: 1;
}

.layer-btn {
    font-size: 0.65rem;
    letter-spacing: 0.15rem;
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1.5rem;
    text-transform: uppercase;
    border-radius: 2px;
    cursor: pointer;
    transition: background 0.3s;
}

.layer-btn:hover {
    background: rgba(255, 255, 255, 0.05);
}

.module-rack {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.module-card {
    padding: 3rem 2.5rem;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 400px;
    transition: background 0.3s ease;
}

.module-card:hover {
    background: rgba(255, 255, 255, 0.02);
}

.module-card:last-child {
    border-right: none;
}

.module-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4rem;
}

.module-num {
    font-size: 1rem;
    color: #ffffff;
    font-weight: 700;
}

.module-bg-icon {
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.08);
}

.module-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

.module-desc {
    font-size: 0.95rem;
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.module-line {
    margin-top: auto;
    width: 60px;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 1200px) {
    .module-rack {
        grid-template-columns: repeat(2, 1fr);
    }

    .module-card:nth-child(2) {
        border-right: none;
    }

    .module-card:nth-child(1),
    .module-card:nth-child(2) {
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
}

@media (max-width: 768px) {
    .module-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .module-rack {
        grid-template-columns: 1fr;
    }

    .module-card {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .module-card:last-child {
        border-bottom: none;
    }
}

/*=============================================
=            Features Section (Engine)        =
=============================================*/
.engine-bg {
    background-color: #102241;
    padding: 8rem 0;
}

.align-center {
    align-items: center;
}

.engine-label {
    font-size: 0.75rem;
    letter-spacing: 0.25rem;
    color: #94a3b8;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 1rem;
    display: block;
}

.engine-headline {
    font-size: 3.5rem;
    color: #ffffff;
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 4rem;
}

.engine-feature-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.engine-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.engine-icon-box {
    width: 45px;
    height: 45px;
    background-color: #cbd5e1;
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    border-radius: 2px;
}

.engine-item-content h4 {
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.engine-item-content p {
    font-size: 0.95rem;
    color: #94a3b8;
    line-height: 1.6;
}

.engine-mockup {
    background-color: #050b14;
    padding: 2.5rem;
    border-radius: 4px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.mockup-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.mock-filename {
    font-size: 0.75rem;
    color: #cbd5e1;
    letter-spacing: 1px;
    font-weight: 600;
    text-transform: uppercase;
}

.mock-dots {
    display: flex;
    gap: 6px;
}

.dot-m {
    width: 6px;
    height: 6px;
}

.red-m {
    background-color: #ef4444;
}

.grey-m {
    background-color: #cbd5e1;
}

.mockup-process {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.process-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.03);
    padding: 0.5rem 1rem;
}

.line-fill {
    height: 4px;
    background-color: #334155;
    border-radius: 2px;
}

.w-60 {
    width: 60%;
}

.w-40 {
    width: 40%;
}

.p-status {
    font-size: 0.7rem;
    color: #94a3b8;
    letter-spacing: 1px;
}

.mockup-chart {
    display: flex;
    align-items: flex-end;
    gap: 0;
    height: 150px;
    margin-bottom: 2rem;
    background-color: rgba(255, 255, 255, 0.02);
}

.bar {
    flex: 1;
    background-color: #475569;
}

.bar:nth-child(even) {
    background-color: #64748b;
}

.bar:nth-child(3) {
    background-color: #94a3b8;
}

.bar:nth-child(5) {
    background-color: #cbd5e1;
}

.h-20 {
    height: 20%;
}

.h-40 {
    height: 40%;
}

.h-70 {
    height: 70%;
}

.h-50 {
    height: 50%;
}

.h-90 {
    height: 90%;
}

.h-60 {
    height: 60%;
}

.mockup-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.m-stat-box {
    background-color: rgba(255, 255, 255, 0.03);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.m-stat-label {
    font-size: 0.65rem;
    color: #94a3b8;
    letter-spacing: 1px;
}

.m-stat-val {
    font-size: 1.5rem;
    color: #ffffff;
    font-weight: 600;
}

@media (max-width: 992px) {
    .engine-mockup {
        margin-top: 5rem;
    }
}

/*=============================================
=            Why Choose & Industries          =
=============================================*/
.mb-5 {
    margin-bottom: 2.5rem;
}

.w-full {
    width: 100%;
}

.edge-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.edge-list li {
    font-size: 1.05rem;
    color: #e2e8f0;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.edge-list li.no-border {
    border-bottom: none;
}

.text-blue-muted {
    color: #93c5fd;
    font-size: 1.3rem;
}

.ind-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.ind-card {
    background: #161b22;
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 4px;
    padding: 3.5rem 2rem;
    text-align: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.ind-card:hover {
    background: #1a222e;
    transform: translateY(-3px);
}

.ind-icon {
    font-size: 1.8rem;
    color: #e2e8f0;
    margin-bottom: 1.25rem;
    display: block;
}

.ind-text {
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #ffffff;
}

@media (max-width: 768px) {
    .ind-grid {
        grid-template-columns: 1fr;
    }
}

/*=============================================
=            Contact Section                  =
=============================================*/
.contact-info {
    padding-right: 2rem;
}

.contact-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
}

.contact-methods {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.method {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.method i {
    font-size: 1.5rem;
    color: var(--primary-light);
    background: rgba(255, 255, 255, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.method h5 {
    margin-bottom: 0.2rem;
    font-size: 1.1rem;
}

.method p {
    color: rgba(255, 255, 255, 0.7);
}

.contact-form-wrapper {
    background: var(--bg-main);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    position: relative;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--bg-darker);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-light);
    background: rgba(59, 130, 246, 0.05);
}

/*=============================================
=            Footer                           =
=============================================*/
.footer {
    background: #010308;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.02);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: #fff;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

/*=============================================
=            Responsive Design                =
=============================================*/
@media (max-width: 992px) {

    .container-split,
    .dual-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .layout-graphic {
        margin-bottom: 2rem;
    }

    .contact-info {
        padding-right: 0;
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: 100vh !important;
        background: rgba(0, 0, 0, 0.97) !important;
        backdrop-filter: blur(20px) !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        display: flex !important;
        gap: 2.5rem !important;
        z-index: 9999 !important;
        transform: translateX(100%) !important;
        transition: transform 0.4s ease !important;
    }

    .nav-links.active {
        transform: translateX(0%) !important;
    }

    .nav-links a {
        font-size: 2rem !important;
        font-weight: 700 !important;
        color: #fff !important;
    }

    .mobile-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .section {
        padding: 5rem 0;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/*=============================================
=            Services Overhaul Section        =
=============================================*/
.services-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 4rem;
}

/* Moving Lines Background */
.moving-lines-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    /* Above blobs */
    opacity: 0.05;
}

/* Gradient Blobs Background */
.gradient-blobs {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    filter: blur(120px);
    opacity: 0.15;
}

.blob {
    position: absolute;
    border-radius: 50%;
}

.b-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #3b82f6 0%, transparent 70%);
    top: -10%;
    left: -10%;
    animation: move-blob 25s infinite alternate ease-in-out;
}

.b-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #1d4ed8 0%, transparent 70%);
    bottom: -5%;
    right: -5%;
    animation: move-blob 30s infinite alternate-reverse ease-in-out;
}

.b-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #8b5cf6 0%, transparent 70%);
    top: 40%;
    left: 30%;
    animation: move-blob 20s infinite alternate ease-in-out;
}

@keyframes move-blob {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(100px, 50px) scale(1.1);
    }
}

.m-line {
    position: absolute;
    background: rgba(255, 255, 255, 0.5);
    /* Off-white */
}

/* Horizontal Scanning Lines */
.l-1 {
    top: 20%;
    left: 0;
    width: 100%;
    height: 1px;
    animation: scan-h 15s infinite linear;
}

.l-2 {
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    animation: scan-h 20s infinite linear reverse;
}

/* Vertical Scanning Lines */
.l-3 {
    top: 0;
    left: 30%;
    width: 1px;
    height: 100%;
    animation: scan-v 25s infinite linear;
}

.l-4 {
    top: 0;
    left: 70%;
    width: 1px;
    height: 100%;
    animation: scan-v 18s infinite linear reverse;
}

@keyframes scan-h {
    0% {
        transform: translateY(-100px);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

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

@keyframes scan-v {
    0% {
        transform: translateX(-100px);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: translateX(100px);
        opacity: 0;
    }
}


.s-title {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    margin-top: 0.5rem;
}

.full-catalog {
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.full-catalog:hover {
    color: var(--primary-light);
    border-color: var(--primary-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    /* Thin line lines */
    background: rgba(255, 255, 255, 0.05);
    /* Color of the lines */
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 8rem;
}

.s-card {
    background: var(--bg-main);
    padding: 3.5rem;
    transition: var(--transition);
}

.s-card:hover {
    background: rgba(255, 255, 255, 0.02);
}

.s-icon {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.s-card h3 {
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 1rem;
    font-weight: 600;
}

.s-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.ind-title {
    font-size: 2.2rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 3rem;
}

.ind-pill-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
}

.ind-pill {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
}

.ind-pill:hover {
    border-color: var(--primary-light);
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ind-pill-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .pillars-row {
        flex-wrap: wrap;
    }

    .pillar-item {
        flex: 1 1 40%;
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .ind-pill-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pillar-item {
        flex: 1 1 100%;
    }
}

/*=============================================
=            CTA Section                     =
=============================================*/
.cta-card {
    background: linear-gradient(-45deg, #0a1324, #1e293b, #0f172a, #0a1324);
    background-size: 400% 400%;
    animation: gradient-shift 15s ease infinite;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 40px;
    padding: 8rem 5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.cta-headline {
    font-size: 4.5rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    margin-bottom: 2.5rem;
    letter-spacing: -1px;
}

.cta-subheadline {
    font-size: 1.4rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.btn-lg {
    padding: 1.5rem 3.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
}

@media (max-width: 992px) {
    .cta-headline {
        font-size: 3rem;
    }

    .cta-card {
        padding: 5rem 2rem;
    }
}