/* ===== Custom Properties & Theming ===== */
:root {
    --bg: #ffffff;
    --bg-alt: #fafafa;
    --bg-card: #ffffff;
    --text: #000000;
    --text-secondary: #555555;
    --text-muted: #888888;
    --text-faint: #999999;
    --border: #e0e0e0;
    --border-light: #eeeeee;
    --border-hover: #cccccc;
    --tag-bg: #f5f5f5;
    --accent: #0066cc;
    --accent-hover: #0052a3;
    --card-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
    --header-bg: rgba(255, 255, 255, 0.92);
    --hero-card-bg: #fafafa;
    --counter-gradient: linear-gradient(135deg, #0066cc, #0099ff);
    --logo-bg: #000;
    --logo-text: #fff;
    --btn-primary-bg: #000;
    --btn-primary-text: #fff;
    --btn-primary-hover: #333;
    --focus-ring: 0 0 0 3px rgba(0, 102, 204, 0.4);
}

[data-theme="dark"] {
    --bg: #0f0f0f;
    --bg-alt: #1a1a1a;
    --bg-card: #1e1e1e;
    --text: #f0f0f0;
    --text-secondary: #b0b0b0;
    --text-muted: #888888;
    --text-faint: #666666;
    --border: #2a2a2a;
    --border-light: #222222;
    --border-hover: #444444;
    --tag-bg: #252525;
    --accent: #4da6ff;
    --accent-hover: #80bfff;
    --card-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    --header-bg: rgba(15, 15, 15, 0.92);
    --hero-card-bg: #1a1a1a;
    --counter-gradient: linear-gradient(135deg, #4da6ff, #80bfff);
    --logo-bg: #fff;
    --logo-text: #000;
    --btn-primary-bg: #f0f0f0;
    --btn-primary-text: #000;
    --btn-primary-hover: #ddd;
    --focus-ring: 0 0 0 3px rgba(77, 166, 255, 0.4);
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 400;
    color: var(--text);
    background-color: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

ul {
    list-style: none;
}

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

/* ===== Skip to Content (a11y) ===== */
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    background: var(--accent);
    color: #fff;
    padding: 12px 24px;
    border-radius: 0 0 8px 8px;
    z-index: 200;
    font-size: 14px;
    font-weight: 500;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
}

/* ===== Focus Visible ===== */
*:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
    border-radius: 4px;
}

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 48px;
    background: var(--header-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: box-shadow 0.3s ease, background 0.3s ease;
}

.header.scrolled {
    box-shadow: 0 1px 0 var(--border);
}

.logo {
    font-family: 'DM Serif Display', serif;
    font-size: 24px;
    font-weight: 400;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--logo-bg);
    color: var(--logo-text);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    font-family: 'DM Sans', sans-serif;
    transition: background 0.3s, color 0.3s;
}

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

.nav-link {
    font-size: 15px;
    font-weight: 400;
    color: var(--text);
    transition: opacity 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--text);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    opacity: 0.6;
}

.nav-link.active {
    font-weight: 500;
}

/* Nav Controls (lang + dark mode) */
.nav-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 12px;
    padding-left: 20px;
    border-left: 1px solid var(--border);
}

/* Language Switcher */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 2px;
}

.lang-btn {
    font-size: 13px;
    font-weight: 400;
    color: var(--text-faint);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-family: inherit;
    text-decoration: none;
}

.lang-btn:hover {
    color: var(--text);
}

.lang-btn.active {
    color: var(--text);
    font-weight: 500;
    background: var(--tag-bg);
}

/* Dark Mode Toggle */
.theme-toggle {
    background: none;
    border: 1px solid var(--border);
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.3s, background 0.3s;
    color: var(--text);
    font-size: 18px;
}

.theme-toggle:hover {
    border-color: var(--border-hover);
    background: var(--tag-bg);
}

.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }

[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* Hamburger Menu */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 36px;
    height: 36px;
    position: relative;
    z-index: 110;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    margin: 5px auto;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.is-active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.is-active span:nth-child(2) {
    opacity: 0;
}

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

/* ===== Hero (CV page) ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    gap: 80px;
    padding: 120px 48px 80px;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-content {
    flex: 1.5;
}

.hero-sidebar {
    flex: 1;
}

.hero-title {
    margin-bottom: 24px;
}

.hero-line {
    display: block;
    font-family: 'DM Serif Display', serif;
    font-size: clamp(42px, 6vw, 72px);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero-role {
    display: block;
    font-family: 'DM Sans', sans-serif;
    font-size: clamp(18px, 2.5vw, 26px);
    font-weight: 400;
    margin-top: 12px;
    color: var(--text-secondary);
}

.hero-subtitle {
    display: block;
    font-family: 'DM Sans', sans-serif;
    font-size: clamp(13px, 1.5vw, 16px);
    font-weight: 300;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-top: 8px;
    opacity: 0.45;
}

.hero-description {
    font-size: clamp(15px, 1.3vw, 18px);
    font-weight: 300;
    line-height: 1.75;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.hero-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.hero-social {
    display: flex;
    gap: 8px;
    margin-left: 8px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid var(--border);
    color: var(--text-muted);
    transition: all 0.3s ease;
    font-size: 18px;
}

.social-icon:hover {
    color: var(--text);
    border-color: var(--border-hover);
    background: var(--tag-bg);
    transform: translateY(-2px);
}

.social-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn--primary {
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
}

.btn--primary:hover {
    background: var(--btn-primary-hover);
    transform: translateY(-1px);
}

.btn--ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn--ghost:hover {
    border-color: var(--text);
    transform: translateY(-1px);
}

.btn--download {
    background: var(--accent);
    color: #fff;
}

.btn--download:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.btn-icon {
    font-size: 16px;
}

/* Hero Sidebar */
.hero-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 32px;
    background: var(--hero-card-bg);
    border-radius: 16px;
    border: 1px solid var(--border-light);
    transition: background 0.3s, border-color 0.3s;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-label {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-faint);
}

.info-item a,
.info-item > span:not(.info-label) {
    font-size: 15px;
    font-weight: 400;
    color: var(--text-secondary);
}

.info-item a {
    color: var(--accent);
    transition: opacity 0.2s;
}

.info-item a:hover {
    opacity: 0.7;
}

/* ===== Counters / Key Figures ===== */
.counters {
    padding: 64px 48px;
    background: var(--bg-alt);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.counters-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.counter-item {
    text-align: center;
}

.counter-number {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(36px, 4vw, 56px);
    font-weight: 400;
    background: var(--counter-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.counter-label {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ===== Client Logos Marquee ===== */
.clients {
    padding: 48px 0;
    overflow: hidden;
    border-bottom: 1px solid var(--border-light);
}

.clients-label {
    text-align: center;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-faint);
    margin-bottom: 32px;
}

.marquee {
    display: flex;
    gap: 64px;
    animation: marquee 30s linear infinite;
    width: max-content;
}

.marquee:hover {
    animation-play-state: paused;
}

.marquee-logo {
    font-family: 'DM Serif Display', serif;
    font-size: 22px;
    font-weight: 400;
    color: var(--text-muted);
    white-space: nowrap;
    opacity: 0.5;
    transition: opacity 0.3s;
    user-select: none;
}

.marquee-logo:hover {
    opacity: 1;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===== Sections ===== */
.section {
    padding: 96px 48px;
    transition: background 0.3s;
}

.section--alt {
    background: var(--bg-alt);
}

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(28px, 3.5vw, 42px);
    font-weight: 400;
    margin-bottom: 48px;
    letter-spacing: -0.01em;
}

/* ===== Skills Grid ===== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.skill-card {
    padding: 28px;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    background: var(--bg-card);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, background 0.3s;
}

.skill-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--card-shadow);
    transform: translateY(-4px);
}

.skill-name {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 10px;
    line-height: 1.3;
}

.skill-card p {
    font-size: 14px;
    font-weight: 300;
    color: var(--text-muted);
    line-height: 1.65;
}

/* ===== Experiences ===== */
.xp {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 48px;
    padding: 48px 0;
    border-bottom: 1px solid var(--border-light);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.xp.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.xp:last-child {
    border-bottom: none;
}

.xp-sidebar {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.xp-date {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}

.xp-company {
    font-size: 15px;
    font-weight: 400;
    color: var(--text-secondary);
}

.xp-location {
    font-size: 13px;
    font-weight: 300;
    color: var(--text-faint);
}

.xp-title {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(20px, 2vw, 26px);
    font-weight: 400;
    margin-bottom: 12px;
    line-height: 1.3;
}

.xp-context {
    font-size: 15px;
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
    padding-left: 16px;
    border-left: 2px solid var(--border);
}

.xp-list {
    list-style: none;
    margin-bottom: 20px;
}

.xp-list li {
    font-size: 15px;
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.65;
    padding: 5px 0 5px 20px;
    position: relative;
}

.xp-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--border-hover);
}

.xp-list li strong {
    font-weight: 500;
    color: var(--text);
}

.xp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.xp-tags span {
    font-size: 12px;
    font-weight: 400;
    color: var(--text-muted);
    padding: 5px 14px;
    background: var(--tag-bg);
    border-radius: 100px;
    border: 1px solid var(--border-light);
    transition: background 0.2s, border-color 0.2s;
}

/* ===== Certifications & Diplomes ===== */
.two-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
}

.cert-list li {
    padding: 16px 0;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cert-list li:last-child {
    border-bottom: none;
}

.cert-name {
    font-size: 16px;
    font-weight: 400;
    color: var(--text);
}

.cert-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cert-badge-icon {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    flex-shrink: 0;
}

.cert-badge-icon--scrum { background: #009688; color: #fff; }
.cert-badge-icon--ms { background: #0078d4; color: #fff; }
.cert-badge-icon--aa { background: #ff6f00; color: #fff; }
.cert-badge-icon--moz { background: #6c3cbe; color: #fff; }
.cert-badge-icon--wagon { background: #fd1015; color: #fff; }
.cert-badge-icon--google { background: #4285f4; color: #fff; }

.cert-date {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-faint);
    letter-spacing: 0.05em;
}

.cert-school {
    font-size: 14px;
    font-weight: 300;
    color: var(--text-muted);
}

/* ===== Environnement Technique ===== */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.tech-label {
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-faint);
    margin-bottom: 16px;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-cloud span {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-secondary);
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: all 0.25s ease;
}

.tag-cloud span:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--card-shadow);
}

/* ===== Testimonials ===== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    padding: 32px;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    background: var(--bg-card);
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow);
}

.testimonial-stars {
    color: #f5a623;
    font-size: 14px;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.testimonial-text {
    font-size: 15px;
    font-weight: 300;
    font-style: italic;
    line-height: 1.75;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--counter-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    flex-shrink: 0;
}

.testimonial-info {
    display: flex;
    flex-direction: column;
}

.testimonial-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}

.testimonial-role {
    font-size: 13px;
    font-weight: 300;
    color: var(--text-faint);
}

/* ===== Contact Section ===== */
.contact-section {
    text-align: center;
    padding: 48px 0;
}

.contact-text {
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 300;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.contact-link {
    font-size: 17px;
    font-weight: 400;
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: opacity 0.3s ease;
}

.contact-link:hover {
    opacity: 0.7;
}

/* Contact Form */
.contact-form {
    max-width: 560px;
    margin: 0 auto;
    text-align: left;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-faint);
    margin-bottom: 8px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 400;
    color: var(--text);
    background: var(--bg-card);
    transition: border-color 0.3s, box-shadow 0.3s;
    -webkit-appearance: none;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: var(--focus-ring);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-submit {
    width: 100%;
    padding: 16px;
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.form-submit:hover {
    background: var(--btn-primary-hover);
    transform: translateY(-1px);
}

/* ===== Footer ===== */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 32px 48px;
    font-size: 13px;
    font-weight: 300;
    color: var(--text-faint);
    border-top: 1px solid var(--border-light);
    transition: border-color 0.3s;
}

.footer-nav {
    display: flex;
    gap: 20px;
}

.footer-nav a {
    color: var(--text-faint);
    transition: color 0.2s;
}

.footer-nav a:hover {
    color: var(--text);
}

/* ===== Portfolio Hero ===== */
.portfolio-hero {
    padding: 160px 48px 80px;
    max-width: 1200px;
    margin: 0 auto;
}

.portfolio-hero-title {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(48px, 7vw, 80px);
    font-weight: 400;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.portfolio-hero-sub {
    font-size: clamp(16px, 1.5vw, 20px);
    font-weight: 300;
    color: var(--text-muted);
}

/* ===== Work / Projects (Portfolio) ===== */
.work {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 48px 128px;
    display: flex;
    flex-direction: column;
    gap: 128px;
}

.project {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.project.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 16px;
}

.project-name {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(28px, 3.5vw, 48px);
    font-weight: 400;
    letter-spacing: -0.01em;
}

.project-scope {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.project-scope span {
    font-size: 13px;
    font-weight: 400;
    color: var(--text-muted);
    padding: 6px 16px;
    border: 1px solid var(--border);
    border-radius: 100px;
    transition: border-color 0.2s;
}

.project-gallery {
    display: grid;
    grid-template-columns: 1.78fr 1fr;
    gap: 16px;
    margin-bottom: 28px;
}

.project-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
    transition: transform 0.4s ease;
}

.project-image:hover {
    transform: scale(1.02);
}

.placeholder-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.85);
    font-size: 17px;
    font-weight: 300;
    letter-spacing: 0.01em;
    text-align: center;
    padding: 24px;
}

.project-image--square .placeholder-image {
    aspect-ratio: 1 / 1;
}

.project-details {
    display: flex;
    gap: 48px;
    align-items: flex-start;
}

.project-desc {
    flex: 2;
    font-size: 16px;
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.75;
}

.project-meta {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.meta-item {
    font-size: 14px;
    font-weight: 300;
    color: var(--text-muted);
}

.meta-item strong {
    display: block;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-faint);
    margin-bottom: 2px;
}

/* ===== Animations ===== */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-animate].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
[data-animate].is-visible .skill-card,
[data-animate].is-visible .testimonial-card,
[data-animate].is-visible .counter-item {
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards;
}

[data-animate].is-visible .skill-card:nth-child(1),
[data-animate].is-visible .testimonial-card:nth-child(1),
[data-animate].is-visible .counter-item:nth-child(1) { animation-delay: 0.05s; }
[data-animate].is-visible .skill-card:nth-child(2),
[data-animate].is-visible .testimonial-card:nth-child(2),
[data-animate].is-visible .counter-item:nth-child(2) { animation-delay: 0.1s; }
[data-animate].is-visible .skill-card:nth-child(3),
[data-animate].is-visible .testimonial-card:nth-child(3),
[data-animate].is-visible .counter-item:nth-child(3) { animation-delay: 0.15s; }
[data-animate].is-visible .skill-card:nth-child(4),
[data-animate].is-visible .counter-item:nth-child(4) { animation-delay: 0.2s; }
[data-animate].is-visible .skill-card:nth-child(5) { animation-delay: 0.25s; }
[data-animate].is-visible .skill-card:nth-child(6) { animation-delay: 0.3s; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== 404 Page ===== */
.page-404 {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 48px;
}

.page-404 h1 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(80px, 15vw, 180px);
    font-weight: 400;
    line-height: 1;
    background: var(--counter-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-404 p {
    font-size: 20px;
    font-weight: 300;
    color: var(--text-secondary);
    margin: 16px 0 32px;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        gap: 48px;
        min-height: auto;
        padding-top: 140px;
    }

    .hero-sidebar {
        width: 100%;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .xp {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .xp-sidebar {
        flex-direction: row;
        gap: 16px;
        flex-wrap: wrap;
    }

    .two-cols {
        gap: 48px;
    }

    .work {
        gap: 80px;
    }

    .project-details {
        flex-direction: column;
        gap: 24px;
    }

    .counters-inner {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header {
        padding: 16px 20px;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 24px;
        transition: right 0.4s ease;
        box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
    }

    .nav.is-open {
        right: 0;
    }

    .nav-link {
        font-size: 20px;
    }

    .nav-controls {
        flex-direction: column;
        border-left: none;
        margin-left: 0;
        padding-left: 0;
        padding-top: 24px;
        border-top: 1px solid var(--border);
    }

    .hamburger {
        display: block;
    }

    .hero {
        padding: 110px 20px 60px;
    }

    .section {
        padding: 64px 20px;
    }

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

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

    .work {
        padding: 0 20px 64px;
        gap: 64px;
    }

    .project-header {
        flex-direction: column;
        gap: 12px;
    }

    .project-gallery {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .project-image--square .placeholder-image {
        aspect-ratio: 16 / 9;
    }

    .two-cols {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

    .portfolio-hero {
        padding: 120px 20px 48px;
    }

    .footer {
        flex-direction: column;
        gap: 12px;
        padding: 24px 20px;
        text-align: center;
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-social {
        margin-left: 0;
    }

    .btn {
        justify-content: center;
    }

    .counters {
        padding: 48px 20px;
    }

    .counters-inner {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .contact-form {
        padding: 0 8px;
    }
}

@media (max-width: 480px) {
    .project-scope span {
        font-size: 11px;
        padding: 4px 10px;
    }

    .xp-tags span {
        font-size: 11px;
    }

    .tag-cloud span {
        font-size: 13px;
        padding: 6px 12px;
    }

    .counters-inner {
        grid-template-columns: 1fr 1fr;
    }
}

/* ===== Print Styles ===== */
@media print {
    .header, .hamburger, .theme-toggle, .lang-switch, .nav-controls,
    .hero-cta, .contact-form, .footer, .clients, .skip-link {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
    }

    .section, .hero {
        padding: 24px 0;
    }

    .xp, .project, [data-animate] {
        opacity: 1 !important;
        transform: none !important;
    }
}
