/* ═══════════════ RESET & VARIABLES ═══════════════ */

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

:root {
    --color-primary: #2d4a62;
    --color-primary-light: #3e6b8a;
    --color-primary-dark: #1a3247;
    --color-accent: #4a9eda;
    --color-accent-light: #162a3a;
    --color-bg: #0f1923;
    --color-surface: #141e2b;
    --color-border: #243546;
    --color-text: #e8ecf1;
    --color-text-secondary: #94a3b3;
    --color-text-light: #6b7c8d;

    --font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-md: 1rem;
    --font-size-lg: 1.25rem;
    --font-size-xl: 1.5rem;
    --font-size-2xl: 2rem;
    --font-size-3xl: 2.75rem;
    --font-size-4xl: 3.5rem;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-family);
    background-color: var(--color-bg);
    color: var(--color-text);
    font-size: var(--font-size-md);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

/* ═══════════════ LAYOUT UTILITIES ═══════════════ */

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ═══════════════ HEADER & NAV ═══════════════ */

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 32px;
    height: 64px;
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

header.scrolled,
header.menu-open {
    background: rgba(15, 25, 35, 0.95);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.logo-link {
    flex-shrink: 0;
}

header img.logo {
    height: 32px;
    width: auto;
}

nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 4px;
}

nav ul li a {
    display: block;
    padding: 8px 14px;
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--color-text);
    border-radius: 6px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

nav ul li a:hover {
    background-color: rgba(74, 158, 218, 0.1);
    color: var(--color-accent);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.language-switcher {
    display: flex;
    align-items: center;
    background: var(--color-bg);
    border-radius: 20px;
    padding: 2px;
    font-size: var(--font-size-xs);
}

.lang-link {
    padding: 5px 10px;
    border-radius: 18px;
    font-weight: 500;
    color: var(--color-text-light);
    transition: all 0.2s ease;
}

.lang-link.active {
    background: var(--color-primary);
    color: #fff;
    font-weight: 600;
}

.lang-link:hover:not(.active) {
    color: var(--color-text);
}

.client-portal-btn {
    display: inline-block;
    padding: 7px 18px;
    font-size: var(--font-size-xs);
    font-weight: 600;
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    border-radius: 6px;
    transition: all 0.2s ease;
}

.client-portal-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.8);
}

.menu-button {
    display: none;
    border: none;
    background: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}

.menu-button span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ═══════════════ HERO ═══════════════ */

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 100px 24px 60px;
    background: linear-gradient(135deg, var(--color-bg), var(--color-accent-light), #f0f4f8);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Hero dark theme */
.hero.hero--dark {
    background: url('/img/hero-bg.jpg') center center / cover no-repeat;
    animation: none;
}

.hero--dark .hero-content {
    max-width: 720px;
}

.hero--dark h1 {
    color: #fff;
}

.hero--dark .subtitle {
    color: rgba(255, 255, 255, 0.97);
}

.hero--dark .trust-strip p {
    color: rgba(255, 255, 255, 0.6);
}

.hero--dark .trust-logos img,
.hero--dark .trust-logos svg.partner-svg-logo {
    filter: grayscale(100%) invert(1) opacity(0.5);
}

.hero--dark .trust-logos a:hover img,
.hero--dark .trust-logos a:hover svg.partner-svg-logo {
    filter: none;
}

.hero--dark .trust-logos svg.partner-svg-logo {
    color: #fff;
    filter: none;
    opacity: 0.5;
}

.hero--dark .trust-logos a:hover svg.partner-svg-logo {
    color: #1a1a1a;
    filter: none;
    opacity: 0.9;
}


/* Logo: always show white logo in dark theme */
.logo-default {
    display: none;
}

.logo-dark {
    display: block;
}

.hero-content {
    max-width: 720px;
}

.hero h1 {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.hero .subtitle {
    font-size: var(--font-size-lg);
    font-weight: 400;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 36px;
}

.cta-button {
    display: inline-block;
    padding: 14px 36px;
    font-size: var(--font-size-md);
    font-weight: 500;
    font-family: var(--font-family);
    background: var(--color-accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cta-button:hover {
    background: var(--color-primary-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(74, 158, 218, 0.3);
}

.trust-strip {
    margin-top: 56px;
}

.trust-strip p {
    font-size: var(--font-size-xs);
    font-weight: 500;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}

.trust-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}

.trust-logos a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 32px;
}

.trust-logos img,
.trust-logos svg.partner-svg-logo {
    max-height: 28px;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    color: var(--color-text);
    filter: grayscale(100%) opacity(0.45);
    transition: filter 0.3s ease;
}

.trust-logos a:hover img,
.trust-logos a:hover svg.partner-svg-logo {
    filter: none;
}

/* ═══════════════ SECTIONS COMMON ═══════════════ */

.section {
    padding: 100px 24px;
}

.section-label {
    font-size: var(--font-size-xs);
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 12px;
}

.section h2 {
    font-size: var(--font-size-2xl);
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 24px;
    line-height: 1.25;
}

.section p {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
}

/* ═══════════════ AI SERVICES (PRIMARY) ═══════════════ */

#services {
    background: var(--color-surface);
}

.ai-feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    max-width: 1120px;
    margin: 0 auto;
}

.ai-feature-text {
    max-width: 540px;
}

.ai-feature-text p {
    margin-bottom: 28px;
}

.feature-bullets {
    list-style: none;
    margin-bottom: 24px;
}

.feature-bullets li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    font-size: var(--font-size-md);
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.feature-bullets li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-accent);
}

.ai-feature-text .note {
    font-size: var(--font-size-sm);
    color: var(--color-text-light);
    font-style: italic;
}

/* AI Feature Visual (CSS illustration) */
.ai-feature-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.ai-illustration {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1;
    position: relative;
}

.ai-illustration .node {
    position: absolute;
    background: rgba(22, 42, 58, 0.85);
    border: 1.5px solid rgba(74, 158, 218, 0.5);
    border-radius: 12px;
    padding: 14px 20px;
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--color-accent);
    white-space: nowrap;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    will-change: transform;
    z-index: 1;
    cursor: default;
    user-select: none;
    -webkit-user-select: none;
}

.ai-illustration .node-center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle at 35% 35%, #5ab0e8, var(--color-accent));
    color: #fff;
    border: none;
    font-size: var(--font-size-md);
    font-weight: 600;
    z-index: 2;
    border-radius: 50%;
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: 0 0 30px rgba(74, 158, 218, 0.25), 0 0 60px rgba(74, 158, 218, 0.1);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.ai-illustration .node-center:hover {
    border-color: transparent;
    color: #fff;
}

.ai-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.ai-illustration .node-1 { top: 8%; left: 50%; transform: translateX(-50%); }
.ai-illustration .node-2 { top: 35%; right: 2%; }
.ai-illustration .node-3 { bottom: 35%; right: 2%; }
.ai-illustration .node-4 { bottom: 8%; left: 50%; transform: translateX(-50%); }
.ai-illustration .node-5 { top: 35%; left: 2%; }
.ai-illustration .node-6 { bottom: 35%; left: 2%; }

/* ═══════════════ INFRASTRUCTURE STRIP ═══════════════ */

.infra-strip {
    background: var(--color-primary-dark);
    color: #fff;
    padding: 72px 24px;
    text-align: center;
}

.infra-strip .container {
    max-width: 640px;
}

.infra-strip .infra-icon {
    font-size: var(--font-size-2xl);
    margin-bottom: 20px;
    opacity: 0.7;
}

.infra-strip h2 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: #fff;
    margin-bottom: 16px;
}

.infra-strip p {
    font-size: var(--font-size-md);
    font-weight: 300;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
}

/* ═══════════════ SECONDARY SERVICES ═══════════════ */

.secondary-services {
    padding: 80px 24px;
    background: var(--color-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 1120px;
    margin: 0 auto;
}

.service-card {
    padding: 36px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    transition: border-color 0.3s ease;
    cursor: default;
}

.service-card:hover {
    border-color: var(--color-accent);
}

.service-card .service-icon {
    font-size: var(--font-size-xl);
    color: var(--color-accent);
    margin-bottom: 16px;
}

.service-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 10px;
}

.service-card p {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* ═══════════════ PROCESS / HOW WE WORK ═══════════════ */

#process {
    background: var(--color-surface);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    max-width: 1120px;
    margin: 0 auto;
    padding-top: 20px;
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid var(--color-accent);
    color: var(--color-accent);
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    background: var(--color-surface);
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 26px;
    left: calc(50% + 36px);
    width: calc(100% - 72px + 48px);
    height: 1px;
    background: var(--color-border);
}

.step h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 10px;
}

.step p {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    max-width: 280px;
    margin: 0 auto;
}

/* ═══════════════ ABOUT ═══════════════ */

#about {
    background: var(--color-bg);
}

.about-content {
    max-width: 720px;
    margin: 0 auto;
}

.about-content p {
    margin-bottom: 20px;
}

.about-content p:last-child {
    margin-bottom: 0;
}

/* ═══════════════ PARTNERS ═══════════════ */

#partners {
    background: var(--color-surface);
    padding: 64px 24px;
}

#partners h2 {
    text-align: center;
    margin-bottom: 40px;
}

.partners-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    max-width: 1120px;
    margin: 0 auto;
}

.partners-logos a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 48px;
}

.partners-logos img,
.partners-logos svg.partner-svg-logo {
    max-height: 44px;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%) invert(1) opacity(0.5);
    transition: filter 0.15s ease, opacity 0.15s ease;
}

.partners-logos a:hover img,
.partners-logos a:hover svg.partner-svg-logo {
    filter: brightness(0) invert(1);
    opacity: 1;
}

.partners-logos svg.partner-svg-logo {
    color: #fff;
    filter: none;
    opacity: 0.5;
}

.partners-logos a:hover svg.partner-svg-logo {
    color: #fff;
    filter: none;
    opacity: 1;
}

/* ═══════════════ CONTACT ═══════════════ */

#contact {
    background: var(--color-bg);
}

.contact-content {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}

.contact-content > p {
    margin-bottom: 40px;
}

.contact-methods {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: var(--font-size-md);
    padding: 8px 14px;
}

.contact-method i {
    color: var(--color-accent);
    font-size: var(--font-size-lg);
}

.contact-method a {
    color: var(--color-text);
    transition: color 0.2s ease;
}

.contact-method a:hover {
    color: var(--color-accent);
}

.contact-addresses {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.address {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
}

.address i {
    color: var(--color-accent);
    margin-top: 3px;
}

.office-label {
    font-size: var(--font-size-xs);
    color: var(--color-text-light);
}

/* ═══════════════ FOOTER ═══════════════ */

footer {
    background: var(--color-primary-dark);
    color: rgba(255, 255, 255, 0.6);
    padding: 24px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--font-size-xs);
}

footer a {
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.2s ease;
}

footer a:hover {
    color: #fff;
}

/* ═══════════════ ANIMATIONS ═══════════════ */

.animate-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ═══════════════ RESPONSIVE ═══════════════ */

/* Tablet */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: var(--font-size-3xl);
    }

    .ai-feature {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .ai-feature-visual {
        display: none;
    }

    .ai-feature-text {
        max-width: 100%;
    }
}

/* Mobile */
@media (max-width: 640px) {
    header {
        padding: 0 16px;
    }

    .menu-button {
        display: flex;
    }

    nav ul {
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        background: rgba(15, 25, 35, 0.95);
        -webkit-backdrop-filter: blur(20px);
        backdrop-filter: blur(20px);
        padding: 96px 24px 32px;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        gap: 0;
    }

    nav ul.open {
        opacity: 1;
        visibility: visible;
    }

    nav ul li a {
        font-size: var(--font-size-lg);
        padding: 16px 0;
        display: block;
        text-align: center;
    }

    .header-right .client-portal-btn {
        display: none;
    }

    .mobile-client-link {
        display: block !important;
    }

    .hero {
        padding: 100px 20px 48px;
        min-height: 100svh;
    }

    .hero h1 {
        font-size: var(--font-size-2xl);
    }

    .hero .subtitle {
        font-size: var(--font-size-md);
    }

    .trust-logos {
        gap: 16px;
    }

    .trust-logos a {
        width: 64px;
        height: 26px;
    }

    .trust-logos img,
    .trust-logos svg.partner-svg-logo {
        max-height: 22px;
    }

    .section {
        padding: 64px 20px;
    }

    .section h2 {
        font-size: var(--font-size-xl);
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .process-steps {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .step:not(:last-child)::after {
        display: none;
    }

    .contact-methods {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .contact-addresses {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    footer {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .infra-strip {
        padding: 56px 20px;
    }
}

/* Mobile menu animation for hamburger */
.menu-button.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-button.active span:nth-child(2) {
    opacity: 0;
}

.menu-button.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Hide mobile-only elements by default */
.mobile-client-link {
    display: none !important;
}
