/* ============================================================
   HCE CONSULTING — Corporate Design System
   Dual Theme: Dark (default) / Light — Capgemini-inspired
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Poppins:wght@700;800;900&display=swap');

/* ==================== THEME TOKENS ==================== */
:root {
    /* Brand — constant */
    --color-primary: #0070AD;
    --color-primary-dark: #005a8c;
    --color-primary-light: #4da8da;

    /* Fonts */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Layout */
    --max-width: 1240px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* ===== DARK THEME (Default) ===== */
    --header-bg: #0B1F3A;
    --header-border: rgba(255,255,255,0.06);
    --body-bg: #0f1923;
    --surface-1: #142234;
    --surface-2: #1a2d42;
    --surface-3: #213a52;
    --text-1: #ffffff;
    --text-2: rgba(255,255,255,0.75);
    --text-3: rgba(255,255,255,0.45);
    --border-color: rgba(255,255,255,0.08);
    --card-bg: #162a3e;
    --card-hover: #1c3350;
    --footer-bg: #081424;
    --footer-text: rgba(255,255,255,0.55);
    --footer-heading: #ffffff;
    --footer-border: rgba(255,255,255,0.06);
    --input-bg: #1a2d42;
    --input-border: rgba(255,255,255,0.12);
    --input-text: #ffffff;
    --social-border: rgba(255,255,255,0.25);
    --social-color: rgba(255,255,255,0.5);
    --social-hover: #ffffff;
    --logo-color: #ffffff;
    --logo-accent: var(--color-primary-light);
    --nav-color: rgba(255,255,255,0.85);
    --nav-hover: #ffffff;
    --hero-card-bg: rgba(0, 90, 150, 0.55);
    --toggle-border: rgba(255,255,255,0.3);
    --client-color: rgba(255,255,255,0.4);
    --tag-bg: rgba(0,112,173,0.2);
    --tag-color: var(--color-primary-light);
    --badge-bg: var(--color-primary);
    --badge-color: #ffffff;
    --overlay-dark: rgba(11,31,58,0.6);
    --mobile-bg: #0B1F3A;
}

/* ===== LIGHT THEME ===== */
[data-theme="light"] {
    --header-bg: #ffffff;
    --header-border: #e0e4ea;
    --body-bg: #ffffff;
    --surface-1: #f0f3f8;
    --surface-2: #e6eaf1;
    --surface-3: #dce1e9;
    --text-1: #1a1a2e;
    --text-2: #3d3d4e;
    --text-3: #6b7280;
    --border-color: #e0e4ea;
    --card-bg: #ffffff;
    --card-hover: #f5f7fa;
    --footer-bg: #dfe5ed;
    --footer-text: #4a5568;
    --footer-heading: #1a1a2e;
    --footer-border: #cdd5e0;
    --input-bg: #ffffff;
    --input-border: #d1d5db;
    --input-text: #1a1a2e;
    --social-border: #9ca3af;
    --social-color: #6b7280;
    --social-hover: #1a1a2e;
    --logo-color: #0B1F3A;
    --logo-accent: var(--color-primary);
    --nav-color: #3d3d4e;
    --nav-hover: var(--color-primary);
    --hero-card-bg: rgba(0, 90, 150, 0.75);
    --toggle-border: #9ca3af;
    --client-color: #6b7280;
    --tag-bg: rgba(0,112,173,0.1);
    --tag-color: var(--color-primary);
    --badge-bg: var(--color-primary);
    --badge-color: #ffffff;
    --overlay-dark: rgba(0,0,0,0.4);
    --mobile-bg: #ffffff;
}

/* ==================== RESET ==================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; }

body {
    font-family: var(--font-primary);
    color: var(--text-2);
    background-color: var(--body-bg);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.4s ease, color 0.4s ease;
    -webkit-tap-highlight-color: transparent;
}

body.no-scroll {
    overflow: hidden;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
video { max-width: 100%; }
ul, ol { list-style: none; }
table { width: 100%; overflow-x: auto; display: block; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.25;
    color: var(--text-1);
    font-weight: 600;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 40px;
}

/* ==================== HEADER ==================== */
.header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 1000;
    background: var(--header-bg);
    transition: background-color 0.4s ease, box-shadow 0.3s ease;
}

.header__topbar { display: none; }

.header__main {
    border-bottom: 1px solid var(--header-border);
    background: var(--header-bg);
    transition: background-color 0.4s ease;
}

.header__main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 64px;
    transition: min-height 0.3s ease;
}

/* Logo — shared header & footer */
.logo-text {
    display: flex;
    align-items: baseline;
    gap: 0;
    position: relative;
    transition: color 0.4s ease;
}

.logo-hce {
    font-family: 'Poppins', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: var(--logo-color);
    letter-spacing: 0.04em;
    transition: color 0.4s ease, font-size 0.3s ease;
}

.logo-consulting {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 300;
    color: var(--text-3);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-left: 8px;
    transition: color 0.4s ease, font-size 0.3s ease;
}

.header__logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

/* Nav */
.header__nav-group {
    display: flex;
    align-items: center;
    gap: 0;
    margin-left: auto;
}

.nav-menu {
    display: flex;
    gap: 0;
    align-items: center;
}

.nav-menu a {
    font-size: 13px;
    font-weight: 500;
    color: var(--nav-color);
    padding: 22px 16px;
    display: flex;
    align-items: center;
    position: relative;
    font-family: var(--font-primary);
    transition: color 0.2s ease, padding 0.3s ease, font-size 0.3s ease;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 16px; right: 16px;
    height: 2px;
    background: var(--color-primary-light);
    transform: scaleX(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: left;
}

.nav-menu a:hover::after,
.nav-menu a.active::after { transform: scaleX(1); }
.nav-menu a:hover { color: var(--nav-hover); }
.nav-menu a.active { color: var(--nav-hover); font-weight: 600; }

/* Header Controls Group (Lang + Theme) */
.header-controls {
    display: flex;
    align-items: center;
    gap: 0;
    margin-left: 20px;
}

.header-controls__sep {
    width: 1px;
    height: 20px;
    background: var(--border-color);
    margin: 0 10px;
    opacity: 0.5;
}

/* Theme Toggle */
.theme-toggle {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: 0;
}

.theme-toggle__btn {
    width: 30px; height: 30px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--text-3);
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    padding: 0;
}

.theme-toggle__btn:hover {
    color: var(--nav-hover);
    background: rgba(255,255,255,0.06);
}

.theme-toggle__btn.active {
    color: var(--color-primary-light);
    background: rgba(0,112,173,0.12);
}

[data-theme="light"] .theme-toggle__btn:hover {
    background: rgba(0,0,0,0.04);
}

[data-theme="light"] .theme-toggle__btn.active {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
}

/* Mobile toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-toggle span {
    display: block;
    width: 22px; height: 2px;
    background: var(--text-1);
    margin: 5px 0;
    transition: var(--transition);
    border-radius: 2px;
}

/* Scroll state */
.header.scrolled,
.header--scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.header--scrolled .header__topbar { display: none; }

/* ==================== HERO ==================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    padding-bottom: 0;
}

.hero__bg {
    position: absolute;
    inset: 0;
    background: var(--header-bg);
}

.hero__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--overlay-dark);
}

.hero__bg video {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 560px;
    padding: 44px 40px;
    margin: 0 0 50px 40px;
    background: var(--hero-card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    animation: heroSlideIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.hero__content::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary-light), var(--color-primary));
    animation: heroAccent 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.8s both;
}

.hero__title {
    font-size: 2rem;
    font-weight: 400;
    color: #ffffff;
    line-height: 1.15;
    margin-bottom: 20px;
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
    animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}

.hero__subtitle {
    color: rgba(255,255,255,0.8);
    font-size: 14px;
    margin-bottom: 28px;
    line-height: 1.7;
    font-weight: 400;
    animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.7s both;
}

.hero__content .btn {
    animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.9s both;
}

/* Hero animation keyframes */
@keyframes heroSlideIn {
    from { transform: translateX(-80px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes heroFadeUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes heroAccent {
    from { width: 0; }
    to { width: 60px; }
}

@keyframes floatShape {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.6; }
    50% { transform: translateY(-25px) rotate(8deg); opacity: 1; }
}

@keyframes floatShape2 {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.5; }
    50% { transform: translateY(20px) rotate(-6deg); opacity: 0.9; }
}

/* Floating geometric shapes */
.hero__shapes {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.hero__shapes span {
    position: absolute;
    border: 2px solid rgba(0,112,173,0.15);
}

.hero__shapes span:nth-child(1) {
    width: 80px; height: 80px;
    top: 15%; right: 12%;
    animation: floatShape 8s ease-in-out infinite;
}

.hero__shapes span:nth-child(2) {
    width: 40px; height: 40px;
    top: 55%; right: 22%;
    animation: floatShape2 6s ease-in-out infinite 1s;
}

.hero__shapes span:nth-child(3) {
    width: 120px; height: 120px;
    bottom: 20%; right: 8%;
    animation: floatShape 10s ease-in-out infinite 2s;
    border-color: rgba(77,168,218,0.08);
}

.hero__shapes span:nth-child(4) {
    width: 24px; height: 24px;
    top: 35%; right: 35%;
    background: rgba(0,112,173,0.08);
    border: none;
    animation: floatShape2 5s ease-in-out infinite 0.5s;
}

.hero__shapes span:nth-child(5) {
    width: 60px; height: 60px;
    top: 70%; right: 40%;
    animation: floatShape 7s ease-in-out infinite 3s;
    border-color: rgba(0,112,173,0.1);
}

/* ==================== HERO ELECTRICITY ANIMATION ==================== */
.hero__electricity {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.electric-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.electric-arc {
    fill: none;
    stroke: rgba(0, 170, 255, 0.6);
    stroke-width: 1.5;
    filter: drop-shadow(0 0 6px rgba(0, 170, 255, 0.8)) drop-shadow(0 0 15px rgba(0, 170, 255, 0.4));
    stroke-dasharray: 80 400;
    opacity: 0;
    animation: electricPulse 4s ease-in-out infinite;
}

.electric-arc--1 {
    stroke: rgba(0, 180, 255, 0.7);
    stroke-width: 2;
    stroke-dasharray: 60 500;
    animation-delay: 0s;
    animation-duration: 3.5s;
}

.electric-arc--2 {
    stroke: rgba(100, 200, 255, 0.5);
    stroke-width: 1;
    stroke-dasharray: 40 600;
    animation-delay: 0.8s;
    animation-duration: 4.2s;
}

.electric-arc--3 {
    stroke: rgba(0, 150, 255, 0.6);
    stroke-width: 1.5;
    stroke-dasharray: 70 450;
    animation-delay: 1.5s;
    animation-duration: 3.8s;
}

.electric-arc--4 {
    stroke: rgba(80, 200, 255, 0.5);
    stroke-width: 1;
    stroke-dasharray: 50 550;
    animation-delay: 2.2s;
    animation-duration: 5s;
}

.electric-arc--5 {
    stroke: rgba(0, 160, 255, 0.6);
    stroke-width: 1.5;
    stroke-dasharray: 90 350;
    animation-delay: 3s;
    animation-duration: 3.2s;
}

@keyframes electricPulse {
    0% {
        stroke-dashoffset: 0;
        opacity: 0;
    }
    10% {
        opacity: 0.9;
    }
    15% {
        opacity: 0.3;
    }
    20% {
        opacity: 1;
    }
    30% {
        opacity: 0.6;
    }
    50% {
        stroke-dashoffset: -480;
        opacity: 0;
    }
    100% {
        stroke-dashoffset: -960;
        opacity: 0;
    }
}

/* Electric flash/spark points */
.electric-flash {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #00c8ff;
    border-radius: 50%;
    box-shadow:
        0 0 6px 2px rgba(0, 200, 255, 0.8),
        0 0 20px 6px rgba(0, 200, 255, 0.4),
        0 0 40px 12px rgba(0, 200, 255, 0.2);
    opacity: 0;
    animation: electricFlash 3s ease-in-out infinite;
}

.electric-flash--1 {
    top: 25%;
    left: 35%;
    animation-delay: 0.5s;
}

.electric-flash--2 {
    top: 60%;
    right: 20%;
    animation-delay: 1.8s;
    animation-duration: 2.5s;
}

.electric-flash--3 {
    bottom: 30%;
    left: 55%;
    animation-delay: 3.2s;
    animation-duration: 4s;
}

@keyframes electricFlash {
    0%, 100% { opacity: 0; transform: scale(1); }
    5% { opacity: 1; transform: scale(2.5); }
    8% { opacity: 0.2; transform: scale(1); }
    11% { opacity: 0.9; transform: scale(2); }
    14% { opacity: 0; transform: scale(1); }
    50% { opacity: 0; }
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-block;
    padding: 11px 26px;
    border-radius: 0;
    font-size: 12px;
    font-weight: 600;
    font-family: var(--font-primary);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.btn--primary {
    background: var(--color-primary);
    color: #ffffff;
}
.btn--primary:hover { background: var(--color-primary-dark); }

.btn--white {
    background: #ffffff;
    color: var(--color-primary);
}
.btn--white:hover { background: #f0f0f0; }

.btn--outline {
    background: transparent;
    color: var(--color-primary-light);
    border: 2px solid var(--color-primary-light);
}
.btn--outline:hover {
    background: var(--color-primary);
    color: #ffffff;
    border-color: var(--color-primary);
}

[data-theme="light"] .btn--outline {
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn--sm { padding: 8px 20px; font-size: 11px; }

/* ==================== SECTIONS ==================== */
.section { padding: 80px 0; }
.section--dark { background-color: var(--surface-1); }

.section__header {
    text-align: center;
    margin-bottom: 40px;
}

.section__title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-1);
    margin-bottom: 12px;
    letter-spacing: -0.03em;
    text-align: center;
}

.section__title--white { color: #ffffff; }

.section__subtitle {
    font-size: 14px;
    color: var(--text-3);
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ==================== DISCOVER / INTRO ==================== */
.discover {
    padding: 80px 0 60px;
    background: var(--body-bg);
}

.discover__grid {
    display: flex;
    align-items: center;
    gap: 40px;
}

.discover__content { flex: 1; }

.discover__content h2 {
    font-size: 24px;
    color: var(--text-1);
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.03em;
    text-align: center;
}

.discover__content p {
    color: var(--text-2);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 16px;
}

/* ==================== EXPERTISE CARDS ==================== */
.expertise-section {
    padding: 70px 0;
    background: var(--surface-1);
}

.expertise-section__title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-1);
    margin-bottom: 36px;
    letter-spacing: -0.03em;
    text-align: center;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    max-width: 1000px;
    margin: 0 auto;
    background: var(--border-color);
}

.expertise-card {
    display: flex;
    align-items: flex-start;
    background: var(--card-bg);
    padding: 28px 28px;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.expertise-card::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 3px;
    background: var(--color-primary-light);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.expertise-card:hover::before { width: 100%; }

.expertise-card:hover {
    background: var(--card-hover);
}

.expertise-card__icon { margin-right: 20px; flex-shrink: 0; }

.icon-circle {
    width: 40px; height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    border-radius: 0;
}

.icon-circle i { font-size: 15px; color: #ffffff; }

.expertise-card__text { text-align: left; }

.expertise-card__text h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-1);
    margin-bottom: 8px;
    transition: color 0.2s ease;
}

.expertise-card:hover .expertise-card__text h3 {
    color: var(--color-primary-light);
}

.expertise-card__text p {
    font-size: 12px;
    color: var(--text-3);
    line-height: 1.65;
}

/* ==================== CLIENTS ==================== */
.clients-section {
    padding: 80px 0;
    background: var(--body-bg);
}

.clients-section .section__title {
    text-align: center;
    font-weight: 500;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-3);
    margin-bottom: 40px;
}

.clients-carousel { overflow: hidden; padding: 15px 0; }

.clients-track {
    display: flex;
    align-items: center;
    gap: 60px;
    animation: scrollLogos 30s linear infinite;
}

.client-logo {
    flex-shrink: 0;
    padding: 10px 32px;
    opacity: 1;
}

.client-logo span {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 12px;
    color: var(--client-color);
    letter-spacing: 3px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.client-logo:hover span { opacity: 0.8; }

.client-logo img {
    max-width: 100px;
    max-height: 50px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.client-logo:hover img {
    transform: scale(1.05);
}

[data-theme="light"] .client-logo img {
    filter: none;
    opacity: 1;
}

[data-theme="light"] .client-logo:hover img {
    transform: scale(1.05);
}

/* Partners Grid (references page) */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1px;
    background: var(--border-color);
}

.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 20px;
    background: var(--card-bg);
    transition: var(--transition);
}

.partner-logo:hover {
    background: var(--card-hover);
}

.partner-logo img {
    max-width: 100px;
    max-height: 60px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.partner-logo:hover img {
    transform: scale(1.05);
}

[data-theme="light"] .partner-logo img {
    filter: none;
    opacity: 1;
}

[data-theme="light"] .partner-logo:hover img {
    transform: scale(1.05);
}

@keyframes scrollLogos {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ==================== STATS ==================== */
.stats-section {
    padding: 70px 0;
    background: var(--color-primary);
}

.stats-section .section__title {
    color: #ffffff;
    font-weight: 700;
    text-align: center;
    margin-bottom: 36px;
    font-size: 22px;
}

.stats-grid {
    display: flex;
    justify-content: center;
    padding: 0 20px;
}

.stat-item {
    flex: 1;
    text-align: center;
    padding: 0 50px;
    border-right: 1px solid rgba(255,255,255,0.2);
}

.stat-item:last-child { border-right: none; }

.stat-item__number {
    font-size: 40px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
    font-family: var(--font-heading);
}

.stat-item__label {
    font-size: 12px;
    color: rgba(255,255,255,0.75);
    font-weight: 400;
    margin-top: 10px;
}

/* ==================== CTA ==================== */
.cta-section {
    position: relative;
    padding: 70px 40px;
    text-align: center;
    overflow: hidden;
    margin: 0;
    z-index: 3;
}

.cta-section__bg {
    position: absolute;
    inset: 0;
    background: var(--surface-1);
}

.cta-section__content { position: relative; z-index: 2; }

.cta-section__title {
    font-size: 24px;
    font-weight: 300;
    color: var(--text-1);
    margin-bottom: 16px;
    letter-spacing: -0.03em;
}

.cta-section__text {
    color: var(--text-3);
    font-size: 14px;
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto 32px;
}

/* ==================== BOTTOM BAR ==================== */
.bottom-bar { display: none; }

/* ==================== FOOTER ==================== */
.footer {
    background: var(--footer-bg);
    color: var(--text-1);
    padding-top: 60px;
    border-top: 3px solid var(--color-primary);
    transition: background-color 0.4s ease;
}

.footer__top { padding-bottom: 50px; }

.footer__main {
    display: flex;
    justify-content: space-between;
    gap: 60px;
}

.footer__links {
    display: flex;
    flex: 7;
    gap: 60px;
}

.footer__col { flex: 1; }

.footer__col h3 {
    font-size: 11px;
    font-weight: 700;
    color: var(--footer-heading);
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer__col ul li { margin-bottom: 14px; }

.footer__col ul li a {
    font-size: 13px;
    color: var(--footer-text);
    transition: color 0.2s ease;
}

.footer__col ul li a:hover { color: var(--text-1); }

.footer__contact { flex: 3; }

.footer__contact p {
    font-size: 13px;
    color: var(--footer-text);
    margin-bottom: 8px;
}

.footer__contact strong { color: var(--footer-heading); }
.footer__contact a { color: var(--footer-text); }
.footer__contact a:hover { color: var(--text-1); }

.footer__brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid var(--footer-border);
}

.footer__brand-logo {
    max-width: 320px;
}

.footer__brand-desc {
    font-size: 12px;
    color: var(--text-3);
    line-height: 1.7;
    margin-top: 12px;
}

.footer__brand-text {
    font-size: 13px;
    color: var(--text-3);
    max-width: 500px;
    line-height: 1.7;
    text-align: right;
}

.footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 28px 0;
    margin-top: 40px;
    border-top: 1px solid var(--footer-border);
}

.footer__bottom p {
    font-size: 12px;
    color: var(--text-3);
}

.footer__bottom-links {
    display: flex;
    gap: 20px;
}

.footer__bottom-links a {
    font-size: 12px;
    color: var(--footer-text);
    transition: color 0.2s ease;
}

.footer__bottom-links a:hover {
    color: var(--text-1);
}

/* Footer Developer Credit */
.footer__credit {
    font-size: 11px;
    color: var(--text-3);
    letter-spacing: 0.03em;
}

.footer__credit strong {
    color: var(--color-primary-light);
    font-weight: 700;
}

.footer__social { display: flex; gap: 12px; }

.footer__social a {
    width: 36px; height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1.5px solid var(--social-border);
    background: transparent;
    color: var(--social-color);
    font-size: 14px;
    transition: var(--transition);
}

.footer__social a:hover {
    color: var(--social-hover);
    border-color: var(--social-hover);
}

/* ==================== INNER PAGE HERO ==================== */
.page-hero {
    padding: 160px 0 80px;
    background: url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?w=1920&q=80') center/cover no-repeat;
    background-color: var(--header-bg);
    text-align: center;
    position: relative;
}

.page-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11,31,58,0.85) 0%, rgba(0,0,0,0.5) 50%, rgba(11,31,58,0.8) 100%);
}

.page-hero__content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 30px;
}

.page-hero__content h1,
.page-hero__content p {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-hero h1 {
    font-size: 2.2rem;
    font-weight: 300;
    color: #ffffff;
    margin-bottom: 16px;
    letter-spacing: -0.03em;
}

.page-hero p {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    max-width: 650px;
    line-height: 1.7;
    margin-left: auto;
    margin-right: auto;
}

/* ==================== CONTENT SECTIONS ==================== */
.content-section { padding: 60px 0; background: var(--body-bg); }
.content-section--alt { background: var(--surface-1); }

.content-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}
.content-grid--3 { grid-template-columns: repeat(3, 1fr); }

/* ==================== SERVICE CARDS ==================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--card-bg);
    padding: 28px;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--color-primary);
    transition: var(--transition);
}

.service-card:hover {
    background: var(--card-hover);
    border-left-color: var(--color-primary-light);
}

.service-card__icon {
    width: 40px; height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    margin-bottom: 20px;
}

.service-card__icon i { font-size: 15px; color: #ffffff; }

.service-card__title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-1);
    margin-bottom: 10px;
}

.service-card:hover .service-card__title { color: var(--color-primary-light); }

.service-card__text {
    font-size: 13px;
    color: var(--text-2);
    line-height: 1.7;
}

.service-card h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-1);
    margin-bottom: 10px;
}

.service-card:hover h3 { color: var(--color-primary-light); }

.service-card p {
    font-size: 12px;
    color: var(--text-2);
    line-height: 1.7;
    margin-bottom: 15px;
}

.service-card__list { padding: 0; }

.service-card__list li {
    position: relative;
    padding-left: 18px;
    font-size: 12px;
    color: var(--text-3);
    margin-bottom: 6px;
    line-height: 1.5;
}

.service-card__list li::before {
    content: '';
    position: absolute;
    left: 0; top: 7px;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--color-primary-light);
}

/* ==================== VALUE CARDS ==================== */
.values-grid, .value-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border-color);
}

.value-card {
    background: var(--card-bg);
    padding: 30px 22px;
    text-align: center;
    transition: var(--transition);
}

.value-card:hover { background: var(--card-hover); }

.value-card__icon {
    width: 40px; height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    margin: 0 auto 20px;
}

.value-card__icon i { font-size: 17px; color: #ffffff; }

.value-card__title, .value-card h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-1);
    margin-bottom: 10px;
}

.value-card:hover .value-card__title,
.value-card:hover h3 { color: var(--color-primary-light); }

.value-card__text, .value-card p {
    font-size: 13px;
    color: var(--text-2);
    line-height: 1.65;
}

/* ==================== TEAM ==================== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border-color);
}

.team-card, .team-member {
    text-align: center;
    padding: 30px 16px;
    background: var(--card-bg);
    transition: var(--transition);
}

.team-card:hover, .team-member:hover {
    background: var(--card-hover);
}

.team-card__avatar, .team-member__avatar {
    width: 60px; height: 60px;
    border-radius: 50%;
    background: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.team-card__avatar i, .team-member__avatar i {
    font-size: 24px;
    color: #ffffff;
}

.team-card__name, .team-member__name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-1);
    margin-bottom: 5px;
}

.team-card__role {
    font-size: 12px;
    color: var(--text-3);
}

.team-member__role {
    font-size: 12px;
    color: var(--color-primary-light);
    font-weight: 600;
    margin-bottom: 10px;
}

.team-member__bio {
    font-size: 12px;
    color: var(--text-3);
    line-height: 1.5;
}

/* ==================== JOB CARDS ==================== */
.jobs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.job-card {
    background: var(--card-bg);
    padding: 24px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.job-card:hover {
    border-color: var(--color-primary);
    background: var(--card-hover);
}

.job-card__badge {
    display: inline-block;
    padding: 4px 14px;
    background: var(--badge-bg);
    color: var(--badge-color);
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.job-card__title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-1);
    margin-bottom: 8px;
}

.job-card:hover .job-card__title { color: var(--color-primary-light); }

.job-card__meta {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 12px;
    color: var(--text-3);
}

.job-card__meta i { margin-right: 4px; color: var(--color-primary-light); }

.job-card__text, .job-card p {
    font-size: 13px;
    color: var(--text-2);
    line-height: 1.6;
    margin-bottom: 15px;
}

.job-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.job-card__header h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-1);
}

.job-card:hover .job-card__header h3 { color: var(--color-primary-light); }

.job-card__type {
    display: inline-block;
    padding: 4px 14px;
    background: var(--tag-bg);
    color: var(--tag-color);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ==================== CONTACT ==================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
}

.contact-info {
    padding: 28px;
    background: var(--surface-1);
}

.contact-info h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-1);
    margin-bottom: 3px;
}

.contact-info p {
    font-size: 13px;
    color: var(--text-2);
    margin-bottom: 3px;
}

.contact-info__item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
    padding: 15px;
    transition: var(--transition);
}

.contact-info__item:hover { background: var(--card-hover); }

.contact-info__icon {
    width: 40px; height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    flex-shrink: 0;
}

.contact-info__icon i { font-size: 15px; color: #ffffff; }

.contact-info__label { font-size: 12px; color: var(--text-3); margin-bottom: 3px; }
.contact-info__value { font-size: 14px; font-weight: 600; color: var(--text-1); }

.contact-form, .contact-form-wrap {
    background: var(--card-bg);
    padding: 32px;
    border: 1px solid var(--border-color);
    border-top: 3px solid var(--color-primary);
}

.form-row, .contact-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group, .contact-form__group { margin-bottom: 20px; }

.form-group label, .contact-form__group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-1);
    margin-bottom: 6px;
}

.form-group input, .form-group select, .form-group textarea,
.contact-form__group input, .contact-form__group select, .contact-form__group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--input-border);
    border-radius: 0;
    font-size: 13px;
    font-family: var(--font-primary);
    color: var(--input-text);
    background: var(--input-bg);
    transition: var(--transition);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus,
.contact-form__group input:focus, .contact-form__group select:focus, .contact-form__group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0,112,173,0.15);
}

.form-group textarea, .contact-form__group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
}

.form-checkbox input[type="checkbox"] {
    margin-top: 3px;
    accent-color: var(--color-primary);
}

.form-checkbox label {
    font-size: 13px;
    color: var(--text-3);
}

/* ==================== REFERENCE CARDS ==================== */
.ref-category { margin-bottom: 50px; }

.ref-category__title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-1);
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
}

.ref-category__title i { color: var(--color-primary-light); margin-right: 10px; }

.ref-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.ref-card {
    background: var(--card-bg);
    padding: 22px;
    border-left: 4px solid var(--color-primary);
    transition: var(--transition);
}

.ref-card:hover { background: var(--card-hover); }

.ref-card__name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-1);
    margin-bottom: 8px;
}

.ref-card__desc {
    font-size: 13px;
    color: var(--text-2);
    line-height: 1.6;
    margin-bottom: 12px;
}

.ref-card__tags { display: flex; flex-wrap: wrap; gap: 6px; }

.ref-card__tags span {
    padding: 3px 12px;
    background: var(--tag-bg);
    color: var(--tag-color);
    font-size: 11px;
    font-weight: 600;
}

.ref-card__sector {
    display: inline-block;
    padding: 3px 12px;
    background: var(--tag-bg);
    color: var(--tag-color);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
}

.ref-card__title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-1);
    margin-bottom: 8px;
}

.ref-card__text {
    font-size: 13px;
    color: var(--text-2);
    line-height: 1.6;
}

/* ==================== TIMELINE ==================== */
.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 3px; height: 100%;
    background: var(--color-primary);
    opacity: 0.25;
}

.timeline-item {
    display: flex;
    margin-bottom: 50px;
    position: relative;
}

.timeline-item:nth-child(odd) { padding-right: calc(50% + 30px); }
.timeline-item:nth-child(even) { flex-direction: row-reverse; padding-left: calc(50% + 30px); }

.timeline-item__dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 16px; height: 16px;
    border-radius: 50%;
    background: var(--color-primary);
    border: 3px solid var(--body-bg);
    box-shadow: 0 0 0 3px var(--color-primary);
    z-index: 2;
}

.timeline-item__content {
    background: var(--card-bg);
    padding: 25px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.timeline-item:hover .timeline-item__content {
    border-color: var(--color-primary);
}

.timeline-item__number { font-size: 14px; font-weight: 700; color: var(--color-primary-light); margin-bottom: 5px; }
.timeline-item__title { font-size: 15px; font-weight: 600; color: var(--text-1); margin-bottom: 8px; }
.timeline-item__text { font-size: 13px; color: var(--text-2); line-height: 1.6; }

/* Timeline methodology page — Modules grid */
.timeline--modules {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 16px;
    max-width: 100%;
    padding: 0;
}

.timeline--modules::before {
    display: none;
}

.timeline__item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 28px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.timeline__item:hover {
    border-color: var(--color-primary);
    box-shadow: 0 4px 16px rgba(0, 112, 173, 0.08);
}

.timeline__number {
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
}

.timeline__content {
    flex: 1;
}

.timeline__content h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-1);
    margin-bottom: 6px;
}

.timeline__content p {
    font-size: 13px;
    color: var(--text-2);
    line-height: 1.65;
}

@media (max-width: 768px) {
    .timeline--modules {
        grid-template-columns: 1fr;
    }
    .timeline__item {
        padding: 20px;
        gap: 16px;
    }
    .timeline__number {
        width: 36px;
        height: 36px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .timeline__item {
        padding: 16px;
    }
}

/* ==================== POLES ==================== */
.poles-section {
    padding: 80px 0;
    background: var(--surface-1);
}

.poles-section .section__title {
    font-weight: 400;
    text-align: center;
    margin-bottom: 50px;
}

.poles-grid {
    display: flex;
    gap: 50px;
    justify-content: center;
}

.pole-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    transition: transform 0.3s ease;
}

.pole-card:hover { transform: scale(1.03); }

.pole-card__image {
    width: 100%;
    overflow: hidden;
    margin-bottom: 20px;
}

.pole-card__image img {
    width: 100%; height: 200px;
    object-fit: cover;
}

/* ==================== TESTIMONIALS (legacy) ==================== */
.testimonials-section { padding: 50px 0 80px; background: var(--surface-1); }
.testimonials-grid { display: flex; gap: 20px; justify-content: center; }

.testimonial-card {
    background: var(--card-bg);
    padding: 24px;
    flex: 1; max-width: 500px;
    border-left: 3px solid var(--color-primary);
    transition: var(--transition);
}

.testimonial-card:hover { background: var(--card-hover); }
.testimonial-card__name { font-size: 1rem; font-weight: 600; color: var(--color-primary-light); display: block; }
.testimonial-card__role { font-size: 0.9rem; color: var(--text-3); }
.testimonial-card__text { font-size: 0.9rem; color: var(--text-2); font-weight: 500; line-height: 1.6; }
.testimonial-card__quote { position: absolute; top: 10px; right: 15px; font-size: 3rem; color: var(--border-color); line-height: 1; }

/* ==================== NEWS (legacy) ==================== */
.news-section { padding: 0 0 80px; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }

.news-card {
    background: var(--card-bg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.news-card:hover { background: var(--card-hover); }
.news-card__image { height: 200px; background: var(--surface-1); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.news-card__image img { width: 100%; height: 100%; object-fit: cover; }
.news-card__image i { font-size: 40px; color: var(--color-primary); opacity: 0.3; }
.news-card__content { padding: 20px; }
.news-card__title { font-size: 14px; font-weight: 600; color: var(--text-1); margin-bottom: 10px; line-height: 1.4; }
.news-card__excerpt { font-size: 12.5px; color: var(--text-3); line-height: 1.6; }

/* ==================== DROPDOWN ==================== */
.dropdown { position: relative; }
.dropdown-menu {
    display: none; position: absolute;
    top: 100%; left: 0;
    background: var(--card-bg);
    min-width: 180px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
    padding: 8px; z-index: 100;
}

.dropdown-menu a {
    display: block; padding: 10px 15px;
    font-size: 14px; color: var(--text-2);
    transition: var(--transition);
}

.dropdown-menu a:hover { background: var(--surface-1); color: var(--color-primary-light); }

/* ==================== MAP ==================== */
.map-section {
    background: var(--surface-1);
    padding: 0;
}

.map-section iframe {
    width: 100%;
    height: 350px;
    border: none;
    display: block;
    filter: grayscale(0.3);
}

[data-theme="light"] .map-section iframe {
    filter: none;
}

/* ==================== COOKIE BANNER ==================== */
.cookie-banner {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-banner.active {
    transform: translateY(0);
}

.cookie-banner__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 20px 30px;
    background: var(--surface-2);
    border-top: 2px solid var(--color-primary);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.cookie-banner__text {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.cookie-banner__icon {
    font-size: 24px;
    color: var(--color-primary-light);
    flex-shrink: 0;
}

.cookie-banner__text strong {
    display: block;
    font-size: 13px;
    color: var(--text-1);
    margin-bottom: 4px;
}

.cookie-banner__text p {
    font-size: 12px;
    color: var(--text-3);
    line-height: 1.6;
    margin: 0;
}

.cookie-banner__text a {
    color: var(--color-primary-light);
    text-decoration: underline;
}

[data-theme="light"] .cookie-banner__text a {
    color: var(--color-primary);
}

.cookie-banner__actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

/* ==================== RGPD PAGE ==================== */
.rgpd-section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-1);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
    letter-spacing: -0.02em;
}

.rgpd-section-title i {
    color: var(--color-primary-light);
    margin-right: 10px;
    font-size: 18px;
}

[data-theme="light"] .rgpd-section-title i {
    color: var(--color-primary);
}

.rgpd-card {
    background: var(--card-bg);
    padding: 28px;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--color-primary);
}

.rgpd-card p {
    font-size: 13px;
    color: var(--text-2);
    line-height: 1.8;
    margin-bottom: 8px;
}

.rgpd-card ul {
    padding-left: 20px;
    margin: 12px 0;
}

.rgpd-card ul li {
    font-size: 13px;
    color: var(--text-2);
    line-height: 1.8;
    margin-bottom: 6px;
    position: relative;
}

.rgpd-card a {
    color: var(--color-primary-light);
}

[data-theme="light"] .rgpd-card a {
    color: var(--color-primary);
}

.rgpd-table-wrap {
    overflow-x: auto;
    margin: 15px 0;
}

.rgpd-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.rgpd-table th {
    background: var(--color-primary);
    color: #ffffff;
    padding: 10px 14px;
    text-align: left;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.rgpd-table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-2);
    font-size: 12px;
    line-height: 1.6;
}

.rgpd-table tbody tr:hover {
    background: var(--card-hover);
}

.rgpd-rights-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 20px;
}

.rgpd-right {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    background: var(--surface-1);
    transition: var(--transition);
}

.rgpd-right:hover {
    background: var(--surface-2);
}

.rgpd-right__icon {
    width: 36px; height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    flex-shrink: 0;
}

.rgpd-right__icon i {
    font-size: 14px;
    color: #ffffff;
}

.rgpd-right h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-1);
    margin-bottom: 4px;
}

.rgpd-right p {
    font-size: 12px;
    color: var(--text-3);
    line-height: 1.6;
    margin: 0;
}

/* ==================== REVEAL ==================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed,
.reveal.reveal--visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==================== RESPONSIVE ==================== */
/* ============================================================
   RESPONSIVE — TABLET (max-width: 1024px)
   ============================================================ */
@media (max-width: 1024px) {
    .container { padding: 0 24px; }
    .hero__title { font-size: 2rem; }
    .hero__content { margin-left: 20px; padding: 40px 36px; }
    .poles-grid { flex-direction: column; gap: 30px; }
    .stats-grid { flex-wrap: wrap; }
    .footer__main { flex-direction: column; }
    .footer__links { flex-wrap: wrap; }
    .content-grid { grid-template-columns: 1fr; }
    .content-grid--3 { grid-template-columns: repeat(2, 1fr); }
    .team-grid { grid-template-columns: repeat(3, 1fr); }
    .values-grid, .value-grid { grid-template-columns: repeat(2, 1fr); }
    .ref-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
    .discover__grid { flex-direction: column; text-align: center; }
    .page-hero { padding: 140px 0 60px; }
    .page-hero h1 { font-size: 1.9rem; }
    .partners-grid { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
    .cta-section { padding: 60px 30px; }
    .client-logo { padding: 10px 20px; }
    .clients-track { gap: 40px; }
}

/* ============================================================
   RESPONSIVE — MOBILE LANDSCAPE / SMALL TABLET (max-width: 768px)
   ============================================================ */
@media (max-width: 768px) {
    /* Header mobile layout — logo + hamburger only */
    .header__main .container {
        justify-content: space-between;
        min-height: 56px;
        gap: 0;
    }
    .header__logo {
        flex-shrink: 0;
    }
    .logo-hce { font-size: 22px; }
    .logo-consulting { font-size: 12px; margin-left: 6px; }

    /* Hide controls from header bar — they move into nav-menu via JS */
    .header-controls {
        display: none;
    }

    .mobile-toggle {
        display: block;
        flex-shrink: 0;
    }

    /* Mobile dropdown menu */
    .nav-menu {
        display: none;
        position: fixed;
        top: 56px; left: 0; right: 0;
        background: var(--mobile-bg);
        flex-direction: column;
        padding: 0;
        box-shadow: 0 10px 30px rgba(0,0,0,0.2);
        z-index: 999;
        gap: 0;
        max-height: calc(100vh - 56px);
        overflow-y: auto;
    }

    .nav-menu.active {
        display: flex;
        transform: none;
    }

    .nav-menu a {
        padding: 14px 20px;
        border-bottom: 1px solid var(--border-color);
        width: 100%;
        font-size: 14px;
    }

    /* Controls inside mobile menu */
    .nav-menu .header-controls {
        display: flex !important;
        width: 100%;
        justify-content: center;
        padding: 16px 20px;
        margin: 0;
        gap: 0;
        border-top: 1px solid var(--border-color);
        background: var(--mobile-bg);
    }
    .nav-menu .header-controls__sep {
        margin: 0 12px;
        height: 20px;
    }
    .nav-menu .lang-toggle { height: 30px; }
    .nav-menu .lang-toggle__btn { padding: 5px 12px; font-size: 12px; font-weight: 700; }
    .nav-menu .theme-toggle__btn { width: 34px; height: 34px; font-size: 15px; }

    .hero {
        min-height: 80vh;
        align-items: center;
    }

    .hero__content {
        margin: 0 16px;
        padding: 32px 28px;
        max-width: none;
    }

    .hero__title { font-size: 1.6rem; }
    .hero__subtitle { font-size: 14px; }

    /* Grids → single column */
    .expertise-grid { grid-template-columns: 1fr; }
    .stats-grid { flex-direction: column; gap: 30px; }
    .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.15); padding: 20px 0; }
    .stat-item:last-child { border-bottom: none; }
    .cta-section { padding: 50px 24px; }
    .form-row, .contact-form__row { grid-template-columns: 1fr; }
    .values-grid, .value-grid { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; }
    .ref-grid { grid-template-columns: 1fr; }
    .jobs-grid { grid-template-columns: 1fr; }
    .content-grid--3 { grid-template-columns: 1fr; }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .news-grid { grid-template-columns: 1fr; }
    .testimonials-grid { flex-direction: column; }

    /* FAQ */
    .faq-section { padding: 60px 0; }
    .faq-list { max-width: 100%; }
    .faq-item__question { font-size: 13.5px; padding: 16px 20px; }
    .faq-item__question i { margin-left: 10px; }
    .faq-item__answer p { padding: 0 20px 16px; font-size: 13px; }

    /* Page Hero */
    .page-hero { padding: 120px 0 50px; }
    .page-hero h1 { font-size: 1.8rem; }
    .page-hero p { font-size: 13px; }
    .page-hero__content { padding: 0 20px; }

    /* Footer */
    .footer { padding-top: 40px; }
    .footer__main { gap: 30px; flex-direction: column; }
    .footer__links { gap: 24px; flex-wrap: wrap; }
    .footer__col { min-width: 140px; flex: unset; width: calc(33% - 16px); }
    .footer__contact { flex: unset; }
    .footer__brand { flex-direction: column; text-align: center; gap: 20px; }
    .footer__brand-text { text-align: center; max-width: none; }
    .footer__bottom { flex-direction: column; gap: 15px; text-align: center; }
    .footer__bottom-links { justify-content: center; flex-wrap: wrap; }

    /* Sections */
    .section { padding: 60px 0; }
    .content-section { padding: 50px 0; }
    .discover__content { padding: 0; }

    /* Contact */
    .contact-grid { gap: 30px; }
    .contact-form, .contact-form-wrap { padding: 24px; }
    .contact-info { padding: 20px; }

    /* Partners */
    .partners-grid { grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); }
    .partner-logo { padding: 20px 14px; }
    .partner-logo img { max-width: 80px; }

    /* Clients carousel */
    .clients-track { gap: 30px; }
    .client-logo { padding: 8px 16px; }
    .client-logo img { max-width: 80px; max-height: 40px; }

    /* CTA */
    .cta-section__title { font-size: 20px; }
    .cta-section__text { font-size: 13px; }

    /* Electricity animation smaller on mobile */
    .electric-arc { stroke-width: 1; }
}

/* ============================================================
   RESPONSIVE — MOBILE (max-width: 480px)
   ============================================================ */
@media (max-width: 480px) {
    .container { padding: 0 16px; }

    /* Hero */
    .hero { min-height: 70vh; }
    .hero__content { margin: 0 12px; padding: 24px 20px; }
    .hero__title { font-size: 1.3rem; }
    .hero__subtitle { font-size: 12px; margin-bottom: 20px; }
    .hero__subtitle p { line-height: 1.6; }

    /* Header */
    .header__main .container { min-height: 50px; }
    .logo-hce { font-size: 20px; }
    .logo-consulting { font-size: 10px; margin-left: 5px; }
    .nav-menu { top: 50px; max-height: calc(100vh - 50px); }
    .nav-menu a { padding: 12px 15px; font-size: 13px; }
    .mobile-toggle span { width: 20px; margin: 4px 0; }

    /* Page Hero */
    .page-hero { padding: 100px 0 40px; }
    .page-hero h1 { font-size: 1.4rem; }
    .page-hero p { font-size: 12px; }

    /* Cards & Content */
    .expertise-card { padding: 20px 18px; flex-direction: column; }
    .expertise-card__icon { margin-right: 0; margin-bottom: 12px; }
    .expertise-card__text h3 { font-size: 13px; }
    .expertise-card__text p { font-size: 11px; }

    /* Teams */
    .team-grid { grid-template-columns: 1fr; }

    /* Sections */
    .section { padding: 40px 0; }
    .content-section { padding: 40px 0; }

    /* Stats */
    .stat-item__number { font-size: 2rem; }
    .stat-item__label { font-size: 11px; }
    .stats-section { padding: 40px 0; }

    /* CTA */
    .cta-section { padding: 40px 16px; }
    .cta-section__title { font-size: 18px; }
    .cta-section__text { font-size: 12px; }

    /* Buttons */
    .btn { padding: 10px 20px; font-size: 11px; }

    /* Footer */
    .footer { padding-top: 30px; }
    .footer__top { padding-bottom: 30px; }
    .footer__main { gap: 20px; }
    .footer__links { flex-direction: column; gap: 24px; }
    .footer__col { width: 100%; min-width: unset; }
    .footer__col h3 { font-size: 13px; margin-bottom: 12px; }
    .footer__col ul { display: flex; flex-wrap: wrap; gap: 8px 16px; }
    .footer__col ul li { margin-bottom: 0; }
    .footer__col li a { font-size: 12px; }
    .footer__contact { font-size: 12px; }
    .footer__contact p, .footer__contact li { font-size: 12px; }
    .footer__brand-logo { max-width: none; }
    .footer__brand-logo .logo-hce { font-size: 20px; }
    .footer__brand-desc { font-size: 11px; }
    .footer__brand-text { font-size: 12px; }
    .footer__bottom p { font-size: 11px; }
    .footer__bottom-links a { font-size: 11px; }
    .footer__bottom-links { gap: 12px; }
    .footer__social a { width: 32px; height: 32px; }
    .footer__credit { font-size: 10px; }

    /* Toggle buttons in menu */
    .nav-menu .lang-toggle { height: 26px; }
    .nav-menu .lang-toggle__btn { padding: 4px 10px; font-size: 11px; }
    .nav-menu .theme-toggle__btn { width: 30px; height: 30px; font-size: 13px; }
    .nav-menu .header-controls__sep { margin: 0 8px; height: 18px; }
    .mobile-toggle { padding: 4px; }

    /* Contact */
    .contact-form, .contact-form-wrap { padding: 18px; }
    .contact-info { padding: 16px; }
    .contact-info__item { padding: 10px; gap: 10px; }

    /* Partners grid */
    .partners-grid { grid-template-columns: repeat(2, 1fr); }
    .partner-logo { padding: 16px 10px; }
    .partner-logo img { max-width: 60px; }

    /* Clients carousel */
    .clients-track { gap: 20px; }
    .client-logo { padding: 6px 12px; }
    .client-logo img { max-width: 60px; max-height: 30px; }

    /* Cookie banner */
    .cookie-banner__content { flex-direction: column; padding: 16px 20px; }
    .cookie-banner__actions { width: 100%; justify-content: stretch; }
    .cookie-banner__actions .btn { flex: 1; }

    /* RGPD */
    .rgpd-rights-grid { grid-template-columns: 1fr; }

    /* Electricity animation minimal on phone */
    .hero__electricity { opacity: 0.6; }
    .electric-flash { display: none; }

    /* Ref cards */
    .ref-card { padding: 16px; }
    .ref-card__name { font-size: 13px; }
    .ref-card__desc { font-size: 11px; }
    .ref-card__tags span { font-size: 10px; padding: 3px 8px; }
    .ref-category__title { font-size: 15px; }

    /* Job cards */
    .job-card { padding: 16px; }

    /* Values */
    .value-card { padding: 20px; }

    /* FAQ */
    .faq-section { padding: 50px 0; }
    .faq-list { max-width: 100%; }
    .faq-item { margin-bottom: 6px; }
    .faq-item__question { font-size: 13px; padding: 14px 16px; gap: 10px; }
    .faq-item__question i { font-size: 11px; margin-left: 8px; }
    .faq-item__answer p { padding: 0 16px 14px; font-size: 12px; line-height: 1.7; }

    /* Discover */
    .discover { padding: 40px 0; }
    .discover__content h2 { font-size: 18px; }
    .discover__content p { font-size: 12px; }

    /* Domain blocks — prevent text overflow */
    .domain-block__intro h3 { font-size: 16px; }
    .domain-block__intro p { font-size: 12px; }
    .domain-block__tagline { font-size: 12px; }
    .domain-detail-content ul li { font-size: 12px; }

    /* Service cards on methodologie */
    .service-card { padding: 20px; }
    .service-card h3 { font-size: 14px; }
    .service-card p { font-size: 12px; }
}

/* ============================================================
   RESPONSIVE — VERY SMALL MOBILE (max-width: 360px)
   ============================================================ */
@media (max-width: 360px) {
    .container { padding: 0 12px; }
    .hero__content { margin: 0 8px; padding: 20px 16px; }
    .hero__title { font-size: 1.15rem; }
    .hero__subtitle { font-size: 11px; }
    .page-hero { padding: 90px 0 30px; }
    .page-hero h1 { font-size: 1.2rem; }
    .logo-hce { font-size: 18px; }
    .logo-consulting { font-size: 9px; margin-left: 4px; letter-spacing: 0.08em; }
    .header__main .container { min-height: 46px; }
    .nav-menu { top: 46px; max-height: calc(100vh - 46px); }
    .btn { padding: 8px 16px; font-size: 10px; }
    .expertise-card { padding: 16px 14px; }
    .footer__links { gap: 16px; }
    .partners-grid { grid-template-columns: repeat(2, 1fr); gap: 1px; }
    .stat-item__number { font-size: 1.8rem; }
    .cta-section { padding: 30px 12px; }
    .cta-section__title { font-size: 16px; }
    .mobile-toggle span { width: 18px; margin: 3px 0; }
    .mobile-toggle { padding: 3px; }
}

/* ============================================================
   NEW FEATURES
   ============================================================ */

/* ==================== 1. SCROLL TO TOP ==================== */
.scroll-top {
    position: fixed;
    bottom: 84px;
    right: 24px;
    width: 44px;
    height: 44px;
    background: var(--color-primary);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    z-index: 990;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,112,173,0.3);
}

.scroll-top:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,112,173,0.4);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ==================== 2. SCROLL PROGRESS BAR ==================== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
    width: 0%;
    z-index: 10000;
    transition: none;
}

/* ==================== 3. PRELOADER ==================== */
.preloader {
    position: fixed;
    inset: 0;
    background: var(--header-bg);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader__logo {
    display: flex;
    align-items: baseline;
    gap: 0;
    margin-bottom: 30px;
}

.preloader__logo .logo-hce {
    font-size: 40px;
    animation: preloaderPulse 1.5s ease-in-out infinite;
}

.preloader__logo .logo-consulting {
    font-size: 18px;
    margin-left: 10px;
}

.preloader__bar {
    width: 120px;
    height: 3px;
    background: var(--border-color);
    position: relative;
    overflow: hidden;
}

.preloader__bar::after {
    content: '';
    position: absolute;
    left: -40%;
    width: 40%;
    height: 100%;
    background: var(--color-primary);
    animation: preloaderSlide 1s ease-in-out infinite;
}

@keyframes preloaderPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

@keyframes preloaderSlide {
    0% { left: -40%; }
    100% { left: 100%; }
}

/* ==================== 4. HEADER SHRINK ==================== */
.header--shrink .header__main .container {
    min-height: 50px;
}

.header--shrink .logo-hce {
    font-size: 18px;
}

.header--shrink .logo-consulting {
    font-size: 10px;
}

.header--shrink .nav-menu a {
    padding-top: 16px;
    padding-bottom: 16px;
    font-size: 12px;
}

/* ==================== 5. FAQ ACCORDION ==================== */
.faq-section {
    padding: 80px 0;
    background: var(--body-bg);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

/* ==================== DOMAIN BLOCKS (Domaines d'Excellence) ==================== */
.domain-block {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    margin-bottom: 40px;
    padding: 0;
    transition: var(--transition);
    overflow: hidden;
}

.domain-block:hover {
    border-color: var(--color-primary);
    box-shadow: 0 4px 24px rgba(0, 112, 173, 0.08);
}

.domain-block__header {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    padding: 36px 36px 28px;
    border-bottom: 1px solid var(--border-color);
    background: var(--surface-1);
}

.domain-block__icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    background: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
}

.domain-block__intro {
    flex: 1;
    min-width: 0;
    overflow-wrap: break-word;
}

.domain-block__intro h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 20px;
    color: var(--text-1);
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}

.domain-block__tagline {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 10px;
    font-style: italic;
    letter-spacing: 0.01em;
}

.domain-block__intro > p:last-of-type {
    color: var(--text-2);
    line-height: 1.75;
    font-size: 13.5px;
}

.domain-block__subs {
    padding: 8px 0;
}

.domain-block__subs .faq-item {
    margin: 0;
    border: none;
    border-bottom: 1px solid var(--border-color);
    background: transparent;
}

.domain-block__subs .faq-item:last-child {
    border-bottom: none;
}

.domain-block__subs .faq-item:hover {
    border-color: var(--border-color);
    background: transparent;
}

.domain-block__subs .faq-item__question {
    font-size: 14px;
    padding: 16px 36px;
    background: transparent;
    color: var(--text-1);
    font-weight: 600;
}

.domain-block__subs .faq-item__question:hover {
    color: var(--color-primary);
    background: rgba(0, 112, 173, 0.04);
}

.domain-block__subs .faq-item.active .faq-item__question {
    color: var(--color-primary);
    background: rgba(0, 112, 173, 0.06);
}

.domain-detail-content {
    padding: 4px 36px 20px;
}

.domain-detail-subtitle {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 14px;
    font-style: italic;
    padding-left: 2px;
}

.domain-detail-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.domain-detail-content ul li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 10px;
    font-size: 13px;
    color: var(--text-2);
    line-height: 1.75;
}

.domain-detail-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background: var(--color-primary);
}

.domain-detail-content ul li:last-child {
    margin-bottom: 0;
}

.domain-block__footer {
    padding: 20px 36px 28px;
    text-align: center;
}

/* When domain-block has no sub-items, remove header bottom border */
.domain-block__header:last-child {
    border-bottom: none;
    padding-bottom: 36px;
}

.domain-block .btn {
    font-size: 13px;
    padding: 10px 24px;
}

@media (max-width: 768px) {
    .domain-block__header {
        flex-direction: column;
        gap: 16px;
        padding: 24px;
    }
    .domain-block__icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
    .domain-block__intro h3 {
        font-size: 18px;
    }
    .domain-block__subs .faq-item__question {
        padding: 14px 24px;
    }
    .domain-detail-content {
        padding: 4px 24px 16px;
    }
    .domain-block__footer {
        padding: 16px 24px 24px;
    }
}

@media (max-width: 480px) {
    .domain-block__header {
        padding: 20px;
    }
    .domain-block__subs .faq-item__question {
        font-size: 13px;
        padding: 12px 20px;
    }
    .domain-detail-content {
        padding: 4px 20px 14px;
    }
    .domain-block__footer {
        padding: 14px 20px 20px;
    }
}

.faq-item {
    border: 1px solid var(--border-color);
    margin-bottom: 8px;
    background: var(--card-bg);
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--color-primary);
}

.faq-item__question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-1);
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-family: var(--font-primary);
    transition: color 0.2s;
    gap: 12px;
}

.faq-item__question:hover {
    color: var(--color-primary-light);
}

.faq-item__question i {
    font-size: 12px;
    color: var(--color-primary);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
}

.faq-item.active .faq-item__question i {
    transform: rotate(180deg);
}

.faq-item__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-item.active .faq-item__answer {
    max-height: 1200px;
}

.faq-item__answer p {
    padding: 0 24px 18px;
    font-size: 13px;
    color: var(--text-2);
    line-height: 1.8;
}

/* ==================== 6. INTERACTIVE TIMELINE ==================== */
.history-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
}

.history-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, var(--color-primary), var(--color-primary-light));
    opacity: 0.3;
}

.ht-item {
    display: flex;
    margin-bottom: 60px;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.ht-item.revealed {
    opacity: 1;
    transform: translateY(0);
}

.ht-item:nth-child(odd) {
    padding-right: calc(50% + 40px);
    text-align: right;
}

.ht-item:nth-child(even) {
    flex-direction: row-reverse;
    padding-left: calc(50% + 40px);
    text-align: left;
}

.ht-item__dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--color-primary);
    border: 4px solid var(--body-bg);
    box-shadow: 0 0 0 3px var(--color-primary);
    z-index: 2;
    transition: all 0.3s ease;
}

.ht-item:hover .ht-item__dot {
    transform: translateX(-50%) scale(1.3);
    box-shadow: 0 0 0 5px var(--color-primary-light);
}

.ht-item__content {
    background: var(--card-bg);
    padding: 24px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    width: 100%;
}

.ht-item:hover .ht-item__content {
    border-color: var(--color-primary);
    background: var(--card-hover);
}

.ht-item__year {
    font-size: 28px;
    font-weight: 800;
    color: var(--color-primary-light);
    margin-bottom: 8px;
    font-family: 'Poppins', sans-serif;
}

.ht-item__title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-1);
    margin-bottom: 8px;
}

.ht-item__text {
    font-size: 13px;
    color: var(--text-2);
    line-height: 1.7;
}

@media (max-width: 768px) {
    .history-timeline::before {
        left: 20px;
    }
    .ht-item:nth-child(odd),
    .ht-item:nth-child(even) {
        padding-left: 60px;
        padding-right: 0;
        text-align: left;
        flex-direction: row;
    }
    .ht-item__dot {
        left: 20px;
    }
}

/* ==================== 8. PARALLAX SECTION ==================== */
.parallax-section {
    position: relative;
    padding: 100px 0;
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.parallax-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(11, 31, 58, 0.8);
}

.parallax-section .container {
    position: relative;
    z-index: 2;
}

/* ==================== 9. TYPING ANIMATION ==================== */
.typing-text {
    display: inline;
}

.typing-cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background: var(--color-primary-light);
    margin-left: 2px;
    animation: blink 1s step-end infinite;
    vertical-align: text-bottom;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* ==================== 10. 3D HOVER / TILT CARDS ==================== */
.tilt-card {
    transform-style: preserve-3d;
    transition: transform 0.15s ease;
}

.tilt-card:hover {
    box-shadow: 0 12px 40px rgba(0, 112, 173, 0.2);
}

.tilt-card .expertise-card__icon,
.tilt-card .expertise-card__text {
    transform: translateZ(30px);
}

/* ==================== 12. LANGUAGE TOGGLE ==================== */
.lang-toggle {
    display: flex;
    align-items: center;
    gap: 0;
    margin-left: 0;
    border: 1px solid var(--toggle-border);
    overflow: hidden;
    height: 28px;
}

.lang-toggle__btn {
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    font-family: var(--font-primary);
    background: transparent;
    color: var(--text-3);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.05em;
    height: 100%;
}

.lang-toggle__btn:hover {
    color: var(--text-1);
}

.lang-toggle__btn.active {
    background: var(--color-primary);
    color: #ffffff;
}

/* ==================== 15. CHATBOT WIDGET ==================== */
.chatbot {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 992;
    /* Prevent any layout shift */
    pointer-events: none;
}

.chatbot__toggle,
.chatbot__window {
    pointer-events: auto;
}

.chatbot__toggle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #ffffff;
    border: none;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 112, 173, 0.3);
    transition: all 0.3s ease;
    position: relative;
}

.chatbot__toggle:hover {
    background: var(--color-primary-dark);
    transform: scale(1.05);
}

.chatbot__badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 14px;
    height: 14px;
    background: #e74c3c;
    border-radius: 50%;
    border: 2px solid var(--body-bg);
}

.chatbot__window {
    position: absolute;
    bottom: 60px;
    right: 0;
    width: 340px;
    max-width: calc(100vw - 48px);
    max-height: 450px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    display: none;
    flex-direction: column;
    overflow: hidden;
    box-sizing: border-box;
}

.chatbot__window.active {
    display: flex;
}

.chatbot__header {
    background: var(--color-primary);
    color: #ffffff;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chatbot__header-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chatbot__avatar {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.chatbot__header h4 {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.chatbot__header p {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.chatbot__close {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.chatbot__close:hover { opacity: 1; }

.chatbot__messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 280px;
    min-height: 200px;
}

.chatbot__msg {
    max-width: 85%;
    padding: 10px 14px;
    font-size: 12px;
    line-height: 1.6;
    animation: chatMsgIn 0.3s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
    box-sizing: border-box;
}

@keyframes chatMsgIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.chatbot__msg--bot {
    background: var(--surface-1);
    color: var(--text-2);
    align-self: flex-start;
    border-left: 3px solid var(--color-primary);
}

.chatbot__msg--user {
    background: var(--color-primary);
    color: #ffffff;
    align-self: flex-end;
}

.chatbot__quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 16px 12px;
}

.chatbot__quick-btn {
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 600;
    font-family: var(--font-primary);
    background: var(--tag-bg);
    color: var(--tag-color);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.chatbot__quick-btn:hover {
    background: var(--color-primary);
    color: #ffffff;
    border-color: var(--color-primary);
}

.chatbot__input-area {
    display: flex;
    border-top: 1px solid var(--border-color);
    min-width: 0;
}

.chatbot__input {
    flex: 1;
    min-width: 0;
    padding: 12px 16px;
    border: none;
    background: var(--input-bg);
    color: var(--input-text);
    font-size: 16px;
    font-family: var(--font-primary);
    outline: none;
    box-sizing: border-box;
    /* 16px prevents iOS auto-zoom on focus */
}

.chatbot__send {
    padding: 12px 16px;
    background: var(--color-primary);
    color: #ffffff;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}

.chatbot__send:hover {
    background: var(--color-primary-dark);
}

@media (max-width: 768px) {
    .chatbot__window {
        position: fixed;
        bottom: 80px;
        right: 16px;
        left: auto;
        width: calc(100vw - 32px);
        max-width: 360px;
        max-height: calc(100vh - 120px);
    }
    .chatbot__messages {
        max-height: 250px;
    }
    .chatbot__quick-replies {
        padding: 0 12px 10px;
    }
    .chatbot__quick-btn {
        font-size: 10px;
        padding: 5px 10px;
    }
}

@media (max-width: 480px) {
    .chatbot__window {
        bottom: 70px;
        right: 12px;
        width: calc(100vw - 24px);
        max-width: none;
    }
    .chatbot__messages {
        max-height: 220px;
        padding: 12px;
        gap: 8px;
    }
    .chatbot__msg {
        padding: 8px 10px;
        font-size: 11px;
    }
    .chatbot__header {
        padding: 12px 14px;
    }
    .chatbot__input {
        padding: 10px 12px;
        font-size: 16px;
    }
    .chatbot__send {
        padding: 10px 12px;
    }
    .scroll-top {
        width: 38px;
        height: 38px;
        font-size: 16px;
        bottom: 80px;
        right: 16px;
    }
    .chatbot {
        right: 16px;
        bottom: 16px;
    }
}
