/* =========================
   RESET & SMOOTH SCROLLING
   ========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #0a0e13;
    color: #f1f3f5;
    line-height: 1.5;
    overflow-x: hidden;
}

/* =========================
   HERO & NETWORK BACKGROUND
   ========================= */

.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0 0 5vw;
    background: #0a0e13;
    overflow: hidden;
}

/* Layer 0: Background Canvas */
#network-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: auto;
    will-change: transform;
}

/* Main Layout Wrapper */
.hero-container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
}

/* ========== HERO TEXT BOX – LARGE TO MATCH RED OUTLINE ========== */
.hero-inner {
    flex: 0 0 auto;
    width: 48vw;
    max-width: 860px;
    min-width: 720px;
    min-height: 480px;
    padding: 64px 70px;
    background: rgba(10, 14, 19, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(95, 208, 255, 0.15);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Robot Head */
.hero-robot-wrapper {
    flex: 0 0 42vw;
    height: 85vh;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    overflow: hidden;
}

.hero-robot-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: 80% center;
    transform: scale(1.08) translateX(-2%);
    pointer-events: none;
    user-select: none;
    will-change: transform;
    filter: saturate(0.9) brightness(0.95) contrast(1.05) drop-shadow(0 0 40px rgba(95, 208, 255, 0.15));
    mix-blend-mode: screen;
    -webkit-mask-image: radial-gradient(ellipse 75% 85% at 55% 50%, #000 60%, transparent 100%);
            mask-image: radial-gradient(ellipse 75% 85% at 55% 50%, #000 60%, transparent 100%);
}

/* =========================
   HEADER
   ========================= */

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 5vw;
    border-bottom: 1px solid #262b31;
    background: #0a0e13;
    position: relative;
    z-index: 10;
}

.logo {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #f1f3f5;
}

nav {
    display: flex;
    gap: 30px;
}

nav a {
    color: #f1f3f5;
    text-decoration: none;
    font-size: 13px;
}

nav a:hover {
    color: #5fd0ff;
}

/* =========================
   HERO TYPOGRAPHY (LARGER)
   ========================= */

.eyebrow {
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 22px;
    color: #5fd0ff;
}

.hero h1 {
    font-size: clamp(40px, 4.6vw, 64px);
    line-height: 1.1;
    letter-spacing: -0.6px;
    font-weight: 500;
    color: #f1f3f5;
}

.hero h1 span {
    display: block;
    color: #5fd0ff;
}

.hero-text {
    margin-top: 24px;
    font-size: 18px;
    line-height: 1.6;
    color: #a7b0b8;
    max-width: 560px;
}

.button {
    display: inline-block;
    width: fit-content;
    padding: 14px 28px;
    border: 1px solid #f1f3f5;
    color: #f1f3f5;
    text-decoration: none;
    font-size: 15px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.button:hover {
    background: #46ff8c;
    border-color: #46ff8c;
    color: #0a0e13;
}

/* --- row holding the primary CTA and the share button together,
   so both sit on the same baseline at the same height --- */
.hero-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 36px;
    flex-wrap: wrap;
}

.hero-actions .share-btn {
    padding: 14px 24px;
    font-size: 15px;
    letter-spacing: 0.5px;
}

.hero-actions .share-icon {
    width: 16px;
    height: 16px;
}

/* =========================
   SERVICE PAGES
   One reusable template for every "page": a left-aligned heading, a
   single glowing card (abstract icon + prose), and a pill nav row —
   used for the service pages, About, and Contact alike. Each section
   sets its own --accent custom property inline, so the same rules
   below produce a different color per page without duplicating CSS.
   ========================= */

.service-page {
    position: relative;
    padding: 120px 5vw 100px;
    background: #0a0e13;
    border-top: 1px solid #1c232b;
    overflow: hidden;
}

.service-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.service-head,
.service-card,
.service-nav {
    position: relative;
    z-index: 1;
}

.service-head {
    max-width: 900px;
    margin: 0 auto 56px;
    text-align: center;
}

.service-head h2 {
    font-size: clamp(24px, 3vw, 38px);
    line-height: 1.2;
    font-weight: 500;
    letter-spacing: -0.3px;
    color: color-mix(in srgb, var(--accent) 80%, white 20%);
}

#services .service-head h2 {
    color: #f1f3f5;
}

/* --- the glow card, colored by --accent --- */
.service-card {
    max-width: 1080px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 48px;
    align-items: center;
    padding: 48px;
    border-radius: 20px;
    background: rgba(10, 16, 24, 0.6);
    border: 1.5px solid color-mix(in srgb, var(--accent) 85%, white 10%);
    box-shadow:
        0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent),
        0 0 18px color-mix(in srgb, var(--accent) 55%, transparent),
        0 0 60px color-mix(in srgb, var(--accent) 40%, transparent),
        0 0 110px color-mix(in srgb, var(--accent) 20%, transparent),
        inset 0 0 40px color-mix(in srgb, var(--accent) 10%, transparent);
}

.service-card-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-svg {
    width: 100%;
    max-width: 220px;
    height: auto;
    filter:
        drop-shadow(0 0 6px color-mix(in srgb, var(--accent) 85%, white 15%))
        drop-shadow(0 0 22px color-mix(in srgb, var(--accent) 70%, transparent))
        drop-shadow(0 0 46px color-mix(in srgb, var(--accent) 40%, transparent));
}

.service-visual-img {
    width: 100%;
    max-width: 280px;
    height: auto;
    filter:
        drop-shadow(0 0 10px color-mix(in srgb, var(--accent) 65%, transparent))
        drop-shadow(0 0 34px color-mix(in srgb, var(--accent) 35%, transparent));
}

.service-svg .ring {
    fill: none;
    stroke: color-mix(in srgb, var(--accent) 60%, transparent);
    stroke-width: 1.3;
}

.service-svg .ring-mid {
    stroke: color-mix(in srgb, var(--accent) 75%, transparent);
    stroke-dasharray: 4 6;
}

.service-svg .ring-inner {
    stroke: color-mix(in srgb, var(--accent) 92%, white 8%);
}

.service-svg .orbit-nodes circle {
    fill: color-mix(in srgb, var(--accent) 90%, white 10%);
    filter: drop-shadow(0 0 3px white) drop-shadow(0 0 8px var(--accent));
}

.service-svg .glyph-fill {
    fill: color-mix(in srgb, var(--accent) 20%, transparent);
}

.service-svg .glyph-fill-dark {
    fill: rgba(10, 16, 24, 0.9);
}

.service-svg .glyph-stroke {
    stroke: color-mix(in srgb, var(--accent) 92%, white 8%);
    stroke-width: 3;
    stroke-linejoin: round;
    stroke-linecap: round;
}

.service-svg .glyph-thin {
    fill: none;
    stroke: color-mix(in srgb, var(--accent) 85%, white 15%);
    stroke-width: 2.2;
}

.service-svg .glyph-pin {
    fill: none;
    stroke: color-mix(in srgb, var(--accent) 92%, white 8%);
    stroke-width: 3;
    stroke-linecap: round;
}

.service-svg .glyph-dot {
    fill: color-mix(in srgb, var(--accent) 70%, white 30%);
}

.service-card-text h3 {
    font-size: clamp(22px, 2.6vw, 30px);
    font-weight: 500;
    line-height: 1.2;
    color: color-mix(in srgb, var(--accent) 80%, white 20%);
    margin-bottom: 18px;
}

.service-card-text p {
    font-size: 15px;
    line-height: 1.65;
    color: #a7b0b8;
    margin-bottom: 16px;
}

.service-card-text p:last-child {
    margin-bottom: 0;
}

.contact-email {
    color: var(--accent);
    font-size: 17px;
    font-weight: 500;
    text-decoration: none;
}

.contact-email:hover {
    text-decoration: underline;
}

/* --- pill nav closing each page --- */
.service-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    margin-top: 56px;
    flex-wrap: wrap;
}

.pill {
    display: inline-block;
    padding: 12px 26px;
    border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
    border-radius: 999px;
    color: #e8f4ff;
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 0.4px;
    background: color-mix(in srgb, var(--accent) 6%, transparent);
    box-shadow: 0 0 14px color-mix(in srgb, var(--accent) 18%, transparent);
    transition: all 0.25s ease;
}

.pill:hover {
    background: color-mix(in srgb, var(--accent) 16%, transparent);
    box-shadow: 0 0 20px color-mix(in srgb, var(--accent) 40%, transparent);
}

/* --- share button — now an inline control that sits alongside the
   "Book a call" button in the hero, and alongside the pills in each
   service-page nav, matching their height and vertical alignment
   rather than floating in a corner --- */
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 26px;
    border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
    border-radius: 999px;
    background: color-mix(in srgb, var(--accent) 6%, transparent);
    color: #e8f4ff;
    font-family: inherit;
    font-size: 13px;
    letter-spacing: 0.4px;
    cursor: pointer;
    box-shadow: 0 0 14px color-mix(in srgb, var(--accent) 18%, transparent);
    transition: all 0.25s ease;
}

.share-btn:hover {
    background: color-mix(in srgb, var(--accent) 16%, transparent);
    box-shadow: 0 0 20px color-mix(in srgb, var(--accent) 40%, transparent);
}

.share-btn:disabled {
    cursor: default;
    opacity: 0.85;
}

.share-icon {
    width: 15px;
    height: 15px;
    fill: color-mix(in srgb, var(--accent) 92%, white 8%);
    flex-shrink: 0;
}

/* inside the pill nav, match the pills exactly so the row reads as
   one consistent set of buttons */
.service-nav .share-btn {
    padding: 12px 26px;
    font-size: 13px;
}

@media (max-width: 700px) {
    .share-btn {
        padding: 10px 20px;
        font-size: 12px;
    }
}

/* =========================
   FOOTER
   ========================= */

footer {
    padding: 26px 5vw;
    border-top: 1px solid #262b31;
    color: #6b747c;
    font-size: 12px;
    background: #0a0e13;
}

/* =========================
   MOBILE RESPONSIVENESS
   ========================= */

@media (max-width: 1000px) {
    .service-card {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 40px 32px;
    }

    .service-card-visual {
        margin-bottom: 8px;
    }

    .service-svg {
        max-width: 180px;
    }
}

@media (max-width: 900px) {
    .hero {
        padding: 40px 5vw;
    }

    .hero-container {
        flex-direction: column;
    }

    .hero-inner {
        flex: 1 1 100%;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        min-height: auto;
        margin: 20px 0;
        padding: 32px 28px;
    }

    .hero-robot-wrapper {
        flex: 0 0 auto;
        width: 100%;
        height: 380px;
    }

    .hero-robot-img {
        transform: scale(1) translateX(0);
        object-position: center center;
    }
}

@media (max-width: 700px) {
    header {
        padding: 22px 6vw;
    }

    nav {
        gap: 15px;
    }

    nav a {
        font-size: 11px;
    }

    .hero-inner {
        padding: 24px 20px;
    }

    .hero h1 {
        font-size: 26px;
    }

    .service-page {
        padding: 70px 6vw;
    }

    .service-head {
        margin-bottom: 48px;
    }

    .service-card {
        padding: 32px 22px;
        border-radius: 16px;
    }
}

/* =========================
   LINKEDIN TEXT LOGO + WHATSAPP LINK
   ========================= */

.linkedin-btn {
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.li-in {
    display: inline-block;
    margin-left: 2px;
    padding: 0 4px 1px;
    background: #0a66c2;
    color: #fff;
    font-weight: 800;
    line-height: 1.15;
    border-radius: 3px;
}

.linkedin-logo {
    display: inline-flex;
    align-items: center;
    color: #f1f3f5;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.4px;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.linkedin-logo:hover {
    opacity: 0.85;
}

.contact-wa {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.wa-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    fill: var(--accent);
}

.wa-icon .wa-handset {
    fill: #0a0e13;
}
