:root {
    --primary-color: #003366; /* Deep Blue */
    --accent-color: #007BFF; /* Bright Blue */
    --text-color: #333333;
    --light-bg: #F8F9FA;
    --dark-bg: #FFFFFF;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--dark-bg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

/* Header & Navigation */
header {
    background-color: var(--dark-bg);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--primary-color);
}

.logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 40%;
    background: radial-gradient(circle at 20% 0, #22c55e, #0f766e 40%, #1d4ed8 85%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: #f9fafb;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.35);
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.logo-name {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.logo-tagline {
    font-size: 0.75rem;
    color: #64748b;
}

nav ul {
    display: flex;
    align-items: center;
}

    nav ul li a {
        padding: 10px 15px;
        font-weight: 600;
    }

        nav ul li a.cta-nav {
            background-color: var(--accent-color);
            color: white;
            padding: 10px 20px;
            border-radius: 5px;
            margin-left: 10px;
        }

/* IMPORTANT: CTA BUTTON UNCHANGED */
.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 24px;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

    .cta-button:hover {
        background-color: var(--accent-color);
    }

/* Hero Section */
#hero {
    padding: 120px 0;
    background: linear-gradient(to right, #b9e6ff 0%, #cfefff 35%, #eef8fe 60%, #ffffff 72%);
    position: relative;
    overflow: hidden;
}

    /* Right-side image overlay (blends smoothly; no image blur) */
    #hero::before {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        z-index: 0;
        background-image: url("home_banner.png");
        background-repeat: no-repeat;
        background-position: right center;
        background-size: auto 100%;
        -webkit-mask-image: linear-gradient( 90deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.15) 45%, rgba(0, 0, 0, 0.35) 55%, rgba(0, 0, 0, 0.60) 65%, rgba(0, 0, 0, 0.85) 75%, rgba(0, 0, 0, 1) 100% );
        mask-image: linear-gradient( 90deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.15) 45%, rgba(0, 0, 0, 0.35) 55%, rgba(0, 0, 0, 0.60) 65%, rgba(0, 0, 0, 0.85) 75%, rgba(0, 0, 0, 1) 100% );
    }

    /* ensure content stays above background layers */
    #hero > .container {
        position: relative;
        z-index: 1;
    }

.hero-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-copy {
    max-width: 560px;
}

    .hero-copy h1 {
        font-family: 'Playfair Display', serif;
        font-size: 3rem;
        margin-bottom: 20px;
        color: var(--primary-color);
    }

    .hero-copy p {
        font-size: 1.1rem;
        margin-bottom: 30px;
        color: var(--text-color);
    }

.hero-meta {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.85rem;
}

.meta-label {
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.7rem;
    color: #6b7280;
    margin-bottom: 4px;
}

.meta-value {
    color: #111827;
}

/* Section headings / intro */
h2 {
    font-size: 2rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
}

.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: var(--text-color);
}

/* Services Section */
#services {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.services-grid {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.service-card {
    flex: 1 1 250px;
    background: var(--dark-bg);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease;
}

    .service-card:hover {
        transform: translateY(-5px);
    }

    .service-card h3 {
        color: var(--accent-color);
        margin-bottom: 15px;
    }

.service-icon,
.industry-icon {
    font-size: 2rem;
    margin-bottom: 12px;
    display: inline-block;
}

/* Industry Section */
#industries {
    padding: 80px 0;
    background-color: var(--dark-bg);
}

.industry-card {
    text-align: left;
}

/* Insights Section */
#insights {
    padding: 80px 0;
}

/* Contact Section & Form */
#contact {
    padding: 80px 0;
}

.contact-container {
    max-width: 800px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.form-group {
    display: flex;
    gap: 15px;
    width: 100%;
}

input,
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

textarea {
    resize: vertical;
}

button[type="submit"] {
    align-self: center;
    width: auto;
    padding: 12px 40px;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

.success-message {
    background-color: #e6f4ea;
    color: #1e7a3c;
    padding: 12px 16px;
    border-radius: 6px;
    font-weight: 500;
    margin-bottom: 20px;
    border: 1px solid #b7e2c4;
}

.error-message {
    background-color: #fde2e1;
    color: #b3261e;
    padding: 12px 16px;
    border-radius: 6px;
    font-weight: 500;
    margin-bottom: 20px;
    border: 1px solid #f5b5b2;
}

/* Logo mark - horizontal infinity flow (lighter premium) */
.mark-quantum {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: radial-gradient(ellipse at 30% 50%, #e6f5ff 0%, rgba(230, 245, 255, 0.9) 35%, rgba(230, 245, 255, 0) 65%), radial-gradient(ellipse at 70% 50%, #b9e6ff 0%, rgba(185, 230, 255, 0.85) 35%, rgba(185, 230, 255, 0) 65%), linear-gradient(90deg, #dff3ff 0%, #b9e6ff 50%, #eaf7ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #003366;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    box-shadow: 0 6px 18px rgba(0, 51, 102, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.logo:hover .mark-quantum {
    box-shadow: 0 8px 22px rgba(0, 51, 102, 0.25), inset 0 0 0 1px rgba(255, 255, 255, 0.75);
}

/* =========================
   SERVICES MEGA MENU (FINAL)
   Balanced 2-row layout + bigger titles
   ========================= */

.nav-item {
    position: relative;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav-caret {
    font-size: 0.8rem;
    opacity: 0.75;
    transform: translateY(1px);
}

.mega-menu--services {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%);
    width: min(1200px, calc(100vw - 40px));
    background: #ffffff;
    border: 1px solid rgba(0, 51, 102, 0.10);
    border-radius: 16px;
    box-shadow: 0 22px 60px rgba(15, 23, 42, 0.16);
    padding: 22px 22px 18px;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

.nav-dropdown:hover .mega-menu--services,
.nav-dropdown:focus-within .mega-menu--services {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(2px);
}

/* Forces 4 columns; the HTML places items in the row-wise sequence you requested */
.mega-grid--services {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    align-items: start;
}

.mega-col {
    padding: 2px 6px;
}

.mega-group {
    padding: 10px 0 12px;
    border-bottom: 1px solid rgba(0, 51, 102, 0.08);
}

    .mega-group:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

/* Bigger, standout titles */
.mega-title {
    font-size: 0.98rem;
    font-weight: 750;
    letter-spacing: 0.05em;
    text-transform: none;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.mega-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 10px;
    color: #1f2937;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.25;
    transition: background-color 120ms ease, transform 120ms ease, color 120ms ease;
}

    .mega-link:hover,
    .mega-link:focus {
        background: rgba(185, 230, 255, 0.35);
        color: var(--primary-color);
        transform: translateX(2px);
        outline: none;
    }

.mega-ic {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(185, 230, 255, 0.45);
    box-shadow: inset 0 0 0 1px rgba(0, 51, 102, 0.10);
}

    .mega-ic svg {
        width: 15px;
        height: 15px;
        fill: none;
        stroke: var(--primary-color);
        stroke-width: 1.7;
        stroke-linecap: round;
        stroke-linejoin: round;
        opacity: 0.9;
    }

/* Spacer (Row 2 / Col 4) */
.mega-col--spacer {
    min-height: 10px;
}

/* About Section (clean, final; removed stray HTML comment) */
#about {
    padding: 80px 0;
    background-color: #ffffff;
    font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
    color: #1a1a1a;
}

    #about .container {
        max-width: 1100px;
        margin: 0 auto;
        padding: 0 20px;
    }

.about-main-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: start;
}

/* About section intro styles scoped so they don't override global .section-intro */
#about .section-intro {
    font-size: 1.35rem;
    line-height: 1.5;
    margin-bottom: 25px;
    color: #000;
    text-align: left;
    max-width: none;
}

.secondary-intro {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #444;
    text-align: left;
    margin-bottom: 0;
}

.about-sidebar {
    background-color: #f9f9f9;
    padding: 40px;
    border-left: 3px solid #0056b3;
}

.credential-block {
    margin-bottom: 30px;
    text-align: left;
}

    .credential-block:last-child {
        margin-bottom: 0;
    }

    .credential-block strong {
        display: block;
        font-size: 0.9rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        margin-bottom: 10px;
        color: #0056b3;
    }

.credential-text {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #333;
}

/* ===== Responsive ===== */
@media (max-width: 1100px) {
    .mega-grid--services {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .mega-col--spacer {
        display: none;
    }

    .mega-menu--services {
        width: min(980px, calc(100vw - 40px));
    }
}

/* Mobile — background-only adjustment + layout */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 10px;
    }

    nav ul {
        flex-direction: column;
        gap: 10px;
    }

    .services-grid,
    .form-group {
        flex-direction: column;
    }

    .hero-layout {
        flex-direction: column;
        text-align: center;
    }

    .hero-copy {
        max-width: 100%;
    }

    .hero-meta {
        justify-content: center;
    }

    #hero h1 {
        font-size: 2.2rem;
    }

    /* Hero bg on mobile */
    #hero {
        background: linear-gradient(180deg, #b9e6ff 0%, #eaf6fd 55%, #ffffff 80%);
    }

        #hero::before {
            background-position: center;
            background-size: cover;
            -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.15) 45%, rgba(0, 0, 0, 0) 75%);
            mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.15) 45%, rgba(0, 0, 0, 0) 75%);
        }

    /* Mega menu mobile behavior */
    .mega-menu--services {
        left: 0;
        transform: none;
        width: calc(100vw - 40px);
    }

    .nav-dropdown:hover .mega-menu--services,
    .nav-dropdown:focus-within .mega-menu--services {
        transform: translateY(2px);
    }

    .mega-grid--services {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .mega-col--spacer {
        display: none;
    }
}

@media (max-width: 850px) {
    .about-main-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}
