﻿@font-face {
    font-family: "Unageo";
    src: url("assets/fonts/Unageo-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Unageo";
    src: url("assets/fonts/Unageo-Medium.ttf") format("truetype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Unageo";
    src: url("assets/fonts/Unageo-SemiBold.ttf") format("truetype");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

:root {
    --font-heading: "Unageo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --clr-bg: #06051a;
    --clr-surface: rgba(14, 14, 47, 0.8);
    --clr-surface-alt: rgba(17, 18, 56, 0.7);
    --clr-text: #f7f8ff;
    --clr-muted: #c5c6ff;
    --clr-accent: #5a56ff;
    --clr-accent-soft: #7c5cff;
    --clr-line: rgba(255, 255, 255, 0.08);
    --font-body: "Unageo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --max-width: 1100px;
    --spacing-section: clamp(4rem, 6vw, 6rem);
    --clr-brand-deep: #032b4d;
    --clr-brand-cyan: #0aaed6;
    --clr-brand-warm: #f2542d;
    color-scheme: dark;
}

* {
    box-sizing: border-box;
}


/* Smooth scroll for in-page anchors */

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    background: radial-gradient(circle at top, #181946 0%, var(--clr-bg) 55%);
    color: var(--clr-text);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-header {
    position: relative;
}

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: clamp(4rem, 7vw, 6rem) clamp(1.5rem, 6vw, 3rem);
    overflow: hidden;
    scroll-margin-top: 90px;
}

.nav {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin: 0;
    padding: 1.15rem clamp(1.5rem, 5vw, 3rem);
    background: #fff;
    backdrop-filter: blur(18px);
    border-bottom: 2px solid rgba(3, 43, 77, 0.12);
    box-shadow: 0 12px 28px rgba(3, 20, 44, 0.28);
}

.nav::before {
    content: "";
    display: none;
}

.nav>* {
    position: relative;
    z-index: 1;
}

.nav__brand {
    display: inline-flex;
    align-items: center;
    position: relative;
    z-index: 1;
}

.nav__brand img {
    height: clamp(28px, 5vw, 36px);
    width: auto;
    display: block;
}

.nav__brand::before {
    content: "";
    display: none;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav__links a {
    font-size: 0.95rem;
    color: var(--clr-brand-deep);
    transition: color 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    font-weight: 500;
}

.nav__links a:hover,
.nav__links a:focus {
    color: var(--clr-brand-deep);
    text-decoration: none;
    box-shadow: inset 0 -2px 0 0 var(--clr-brand-warm);
}

.nav__lang {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(3, 43, 77, 0.16);
    color: rgba(8, 23, 45, 0.88);
    padding: 0.4rem 1.15rem 0.4rem 0.85rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.lang-toggle:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(10, 174, 214, 0.45);
    border-color: rgba(10, 174, 214, 0.45);
}

.lang-toggle:hover {
    background: rgba(10, 174, 214, 0.12);
    border-color: rgba(10, 174, 214, 0.32);
}

.nav__lang.is-open .lang-toggle {
    background: rgba(10, 174, 214, 0.2);
    border-color: rgba(10, 174, 214, 0.45);
    color: rgba(8, 23, 45, 1);
}

.lang-toggle__chevron {
    display: inline-block;
    width: 0.9rem;
    height: 0.9rem;
    background: none;
    color: var(--clr-brand-warm);
    line-height: 1;
    transform: rotate(0deg);
    transition: transform 0.2s ease;
}

.lang-toggle__chevron::before {
    content: "▾";
    display: block;
    font-weight: 800;
    font-size: 0.9rem;
    line-height: 1;
}

.nav__lang.is-open .lang-toggle__chevron {
    transform: rotate(180deg);
}


/* chevron content defined above; avoid duplicate declaration */

.lang-menu {
    position: absolute;
    top: calc(100% + 0.65rem);
    right: 0;
    list-style: none;
    margin: 0;
    padding: 0.35rem;
    border-radius: 0.85rem;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(3, 43, 77, 0.12);
    box-shadow: 0 20px 45px rgba(10, 26, 43, 0.16);
    display: grid;
    gap: 0.25rem;
    min-width: 150px;
    opacity: 0;
    transform: translateY(-8px) scale(0.96);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 50;
}

.nav__lang.is-open .lang-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.lang-option {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 0;
    background: transparent;
    padding: 0.55rem 0.85rem;
    border-radius: 0.65rem;
    font: inherit;
    color: rgba(8, 23, 45, 0.88);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.lang-option:hover,
.lang-option:focus-visible {
    outline: none;
    background: rgba(10, 174, 214, 0.16);
    color: rgba(8, 23, 45, 1);
}

.lang-option[aria-selected="true"]::after {
    content: "";
    width: 0.5rem;
    height: 0.5rem;
    margin-left: 0.5rem;
    background: var(--clr-brand-warm);
    border-radius: 50%;
}

.lang-option:active {
    transform: translateY(1px);
}

.nav__toggle {
    display: none;
    position: relative;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid rgba(3, 43, 77, 0.12);
    background: rgba(3, 43, 77, 0.08);
    border-radius: 0.75rem;
    cursor: pointer;
    justify-content: center;
    align-items: center;
    gap: 0.35rem;
    transition: background 0.3s ease, border-color 0.3s ease;
}

/* Nav toggle icon visuals */
.nav__toggle .nav__toggle-icon {
    width: 1.3rem;
    height: 1.3rem;
    display: block;
    color: var(--clr-brand-deep);
}

.nav__toggle .nav__toggle-icon--close { display: none; }
.nav__toggle[aria-expanded="true"] .nav__toggle-icon--menu { display: none; }
.nav__toggle[aria-expanded="true"] .nav__toggle-icon--close { display: block; }.nav__toggle-line {
    width: 1.2rem;
    height: 2px;
    background: var(--clr-brand-deep);
    display: block;
}

.hero__inner {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    align-items: center;
    gap: 3rem;
    max-width: var(--max-width);
    width: 100%;
    margin: 0 auto;
    padding: clamp(3rem, 8vw, 6rem) 0;
}

.hero__eyebrow {
    font-size: 0.85rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--clr-muted);
}

.hero__title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.15;
    margin: 1rem 0;
}

.hero__subtitle {
    max-width: 30ch;
    color: var(--clr-muted);
}

.hero__actions {
    margin-top: 2.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.85rem 1.6rem;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.button--primary {
    background: linear-gradient(135deg, var(--clr-accent), var(--clr-accent-soft));
    box-shadow: 0 20px 40px rgba(124, 92, 255, 0.25);
}

.button--primary:hover,
.button--primary:focus {
    transform: translateY(-2px);
    box-shadow: 0 28px 45px rgba(124, 92, 255, 0.35);
}

.button--ghost {
    border-color: var(--clr-line);
    color: #fff;
    background: transparent;
}

.button--ghost:hover,
.button--ghost:focus {
    border-color: rgba(255, 255, 255, 0.25);
}

.button--secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
}

.section--alt {
    background: rgba(9, 9, 35, 0.6);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.section__content {
    max-width: var(--max-width);
    margin: 0 auto;
}

.section {
    /* Prevent sticky navbar from covering anchored headings */
    scroll-margin-top: 110px;
    padding: var(--spacing-section) clamp(1.5rem, 5vw, 3rem);
}

.section__content h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 1rem;
}

.grid {
    display: grid;
    gap: 1.5rem;
}

.grid--services {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* Add spacing between careers role cards and CTA button */
#careers .grid--services {
    margin-bottom: 1.75rem;
}

.grid--projects {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
    background: rgba(9, 9, 35, 0.7);
    border: 1px solid rgba(10, 174, 214, 0.28);
    border-radius: 1rem;
    padding: 1.75rem;
    backdrop-filter: blur(12px);
    min-height: 200px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.card:hover,
.card:focus-within {
    transform: translateY(-6px);
    border-color: rgba(124, 92, 255, 0.3);
}

.card h3 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.card p {
    color: var(--clr-muted);
}

.card--project {
    position: relative;
    overflow: hidden;
}

.card--project::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(124, 92, 255, 0.08), rgba(3, 209, 255, 0.08));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.card--project:hover::after,
.card--project:focus-within::after {
    opacity: 1;
}

.section__content--split {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    align-items: start;
}

.contact-list {
    list-style: none;
    margin: 2rem 0 0;
    padding: 0;
    display: grid;
    gap: 1rem;
}

.social-links {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    align-items: center;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.75rem;
    border-radius: 0.6rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(6, 6, 28, 0.6);
    color: #fff;
    font-weight: 600;
}

.social-link:hover,
.social-link:focus-visible {
    outline: none;
    border-color: rgba(255, 255, 255, 0.25);
}

.social-link svg {
    width: 1rem;
    height: 1rem;
    display: block;
}

.contact-label {
    display: block;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--clr-muted);
}

.contact-form {
    display: grid;
    gap: 1.25rem;
    padding: 2rem;
    border-radius: 1rem;
    background: rgba(9, 9, 35, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
}

.contact-form label {
    display: grid;
    gap: 0.5rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(6, 6, 28, 0.8);
    color: #fff;
    font-size: 1rem;
    font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 2px solid rgba(124, 92, 255, 0.4);
    outline-offset: 2px;
}

.footer {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--clr-muted);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(5, 6, 25, 0.9);
}

.hero__visual {
    position: relative;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero__halo {
    position: absolute;
    width: clamp(320px, 40vw, 460px);
    height: clamp(320px, 40vw, 460px);
    background: radial-gradient(circle, rgba(90, 86, 255, 0.25) 0%, transparent 60%);
    filter: blur(0px);
    animation: pulse 8s infinite ease-in-out;
}

.hero__mesh {
    position: absolute;
    width: clamp(260px, 34vw, 400px);
    height: clamp(260px, 34vw, 400px);
    border-radius: 50%;
    background: conic-gradient(from 180deg at 50% 50%, rgba(90, 86, 255, 0.25), rgba(3, 209, 255, 0.15), rgba(90, 86, 255, 0.25));
    mix-blend-mode: screen;
    filter: blur(8px);
    animation: rotate 18s linear infinite;
}

.hero__orb {
    position: absolute;
    border-radius: 50%;
    mix-blend-mode: screen;
}

.hero__orb--one {
    width: clamp(120px, 20vw, 180px);
    height: clamp(120px, 20vw, 180px);
    background: radial-gradient(circle at 30% 30%, rgba(90, 86, 255, 0.8), rgba(90, 86, 255, 0));
    animation: driftOne 12s ease-in-out infinite;
}

.hero__orb--two {
    width: clamp(160px, 22vw, 220px);
    height: clamp(160px, 22vw, 220px);
    background: radial-gradient(circle at 70% 70%, rgba(3, 209, 255, 0.75), rgba(3, 209, 255, 0));
    animation: driftTwo 14s ease-in-out infinite;
}

@keyframes pulse {
    0%,
    100% {
        transform: scale(1);
        opacity: 0.9;
    }
    50% {
        transform: scale(1.08);
        opacity: 0.6;
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes driftOne {
    0%,
    100% {
        transform: translate(-15%, -20%);
    }
    50% {
        transform: translate(10%, 18%);
    }
}

@keyframes driftTwo {
    0%,
    100% {
        transform: translate(20%, 10%);
    }
    50% {
        transform: translate(-18%, -12%);
    }
}

@media (max-width: 900px) {
    .nav__links {
        position: absolute;
        top: 100%;
        right: 0;
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(18px);
        border: 1px solid rgba(3, 43, 77, 0.1);
        border-radius: 1rem;
        padding: 1rem 1.3rem;
        box-shadow: 0 12px 32px rgba(10, 26, 43, 0.16);
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        width: min(240px, 80vw);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-10px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }
    .nav__links[data-open="true"] {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }
    .nav__toggle {
        display: inline-flex;
    }
}

@media (max-width: 640px) {
    .hero {
        padding: 1.5rem 1rem 3rem;
    }
    .hero__actions {
        flex-direction: column;
        align-items: stretch;
    }
    .section {
        padding: 3.5rem 1rem;
    }
    .contact-form {
        padding: 1.5rem;
    }
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
}


/* Interactive mesh plane behind the hero */

.hero__mesh-plane {
    position: absolute;
    inset: -8% -12% 0 -12%;
    transform: translate3d(calc((var(--px, 0)) * 14px), calc((var(--py, 0)) * 14px), 0);
    pointer-events: none;
    background: radial-gradient(1200px 800px at 32% 40%, rgba(124, 92, 255, 0.10), rgba(124, 92, 255, 0.00) 60%), radial-gradient(1200px 800px at 70% 60%, rgba(3, 209, 255, 0.10), rgba(3, 209, 255, 0.00) 60%), repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.06) 0 2px, rgba(255, 255, 255, 0.0) 2px 12px);
    mix-blend-mode: screen;
    filter: blur(10px) saturate(110%);
    opacity: 0.9;
    mask-image: radial-gradient(120% 100% at 50% 50%, #000 40%, transparent 95%);
    animation: meshShift 22s ease-in-out infinite alternate;
}

@keyframes meshShift {
    0% {
        background-position: 0 0, 0 0, 0 0;
    }
    50% {
        background-position: 40px 30px, -30px -40px, 20px -15px;
    }
    100% {
        background-position: 80px 60px, -60px -80px, 40px -30px;
    }
}


/* Full-hero neural mesh canvas */

.hero__neuro {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}


/* ensure hero content sits above */

.hero>*:not(.hero__neuro) {
    position: relative;
    z-index: 1;
}

