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

:root {
    --bg-color: #18191a;
    --surface-color: rgba(255, 255, 255, 0.03);
    --surface-hover: rgba(255, 255, 255, 0.08);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.65);
    --accent-gradient: linear-gradient(135deg, #ffffff, #a3a3a3, #525252);
    --glass-border: 1px solid rgba(255, 255, 255, 0.05);
    --blur: blur(12px);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .nav-logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

/* Typography */
.text-gradient {
    color: var(--text-primary);
}

/* Navbar (Glassmorphism) */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(24, 25, 26, 0.6);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border-bottom: var(--glass-border);
    z-index: 1000;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* Scrolled state — toggled by JS via rAF (no per-frame inline writes) */
nav.is-scrolled {
    background: rgba(24, 25, 26, 0.85);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-logo {
    font-size: 1.5rem;
    letter-spacing: -0.5px;
    text-decoration: none;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
}

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

/* Dropdown menu */
.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 15, 15, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 0.6rem 0;
    min-width: 200px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    z-index: 1001;
}

/* Invisible bridge to keep hover active while moving mouse down */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    right: 0;
    height: 20px;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu li a {
    display: block;
    padding: 0.6rem 1.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease;
}

.dropdown-menu li a:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
}

/* Hero Section */
.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: auto;
    padding: 130px 5% 45px;
    position: relative;
    gap: 2.2rem;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hero-content h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: 1.1;
    margin: 0;
}

/* Hero project nav links */
.hero-projects-nav {
    width: 100%;
    max-width: 860px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.hero-proj-link {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    text-decoration: none;
    color: var(--text-secondary);
    transition: var(--transition);
}

.hero-proj-link:hover {
    color: var(--text-primary);
    padding-left: 0.75rem;
}

.hero-proj-num {
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.2);
    min-width: 20px;
    font-variant-numeric: tabular-nums;
}

.hero-proj-name {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    flex: 1;
    color: inherit;
}

.hero-proj-tags {
    display: flex;
    gap: 0.4rem;
}

.hero-proj-arrow {
    font-size: 1rem;
    opacity: 0.4;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.hero-proj-link:hover .hero-proj-arrow {
    transform: translateX(5px);
    opacity: 1;
}

.hero-linkedin {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    transition: var(--transition);
}

.hero-linkedin:hover {
    background: rgba(10, 102, 194, 0.15);
    border-color: #0a66c2;
    color: #fff;
    transform: translateY(-2px);
}

/* Buttons */
.btn {
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
    cursor: pointer;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* ===== LANG TOGGLE BUTTON ===== */
.lang-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 0.4rem 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
    margin-left: 1rem;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
}

.lang-btn-inner {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
}

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

.lang-icon {
    font-size: 0.9rem;
}

/* Projects Section */
.projects {
    padding: 20px 5% 100px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
}

.project-card {
    background: var(--surface-color);
    border: var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease, border-color 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    background: var(--surface-hover);
    border-color: rgba(255, 255, 255, 0.15);
}

.project-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-bottom: var(--glass-border);
}

.project-info {
    padding: 2rem;
}

.project-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.project-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* ===== PROJECT DETAIL PAGE ===== */

.project-hero {
    padding: 140px 5% 60px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.project-header h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
}

.project-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 1.5rem;
    line-height: 1.7;
}

.project-meta {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

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

.meta-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-secondary);
    margin-bottom: 0.3rem;
}

.meta-value {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 600;
}

.project-hero-img {
    width: 100%;
    max-width: 900px;
    margin: 3rem auto 0;
    border-radius: 16px;
    border: var(--glass-border);
    display: block;
}

/* Case Study Sections */
.case-study {
    max-width: 1200px; /* Increased from 1000px to make images bigger */
    margin: 0 auto;
    padding: 0 5%;
}

.case-section {
    margin-bottom: 5rem;
}

.case-section h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.case-section h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-style: italic;
}

.case-section p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.85;
    margin-bottom: 1.25rem;
}

.case-section ul {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.case-section ul li {
    color: var(--text-secondary);
    font-size: 1.02rem;
    line-height: 1.8;
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
}

.case-section ul li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: rgba(255,255,255,0.3);
}

/* Side-by-side layout */
/* Custom Text Logos for Hero */
.brand-logo-container {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80px;
}

.brand-logo-img {
    height: auto;
    width: auto;
    max-height: 80px;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: center center;
}

.brand-logo-img:hover {
    transform: scale(1.05);
}

.brand-text-logo {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -1px;
    color: #fff;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.brand-text-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(255,255,255,0.1);
}

/* Lightbox overlay */
#lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

#lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

#lightbox img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#lightbox.active img {
    transform: scale(1);
}

#lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: white;
    font-size: 3rem;
    line-height: 1;
    cursor: pointer;
    background: none;
    border: none;
    opacity: 0.7;
    transition: opacity 0.2s, transform 0.2s;
}

#lightbox-close:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* Make Side-by-Side vertically stacked to maximize image size! */
.side-by-side {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    margin: 3rem 0;
    align-items: center;
}

.side-by-side > div {
    width: 100%;
}

.side-by-side img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    border: var(--glass-border);
    cursor: zoom-in;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.side-by-side img:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}

.side-by-side .text-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.side-by-side .text-block h3 {
    margin-bottom: 0.75rem;
}

/* Full-width images in case study */
.case-img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    border: var(--glass-border);
    margin: 2rem 0;
    display: block;
    cursor: zoom-in;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.case-img:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}

.case-img-caption {
    text-align: center;
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    margin-top: 1rem;
    margin-bottom: 2.5rem;
    letter-spacing: 0.5px;
    padding: 0.7rem 1.5rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    display: inline-block;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.caption-badge {
    display: inline-block;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 4px;
    padding: 0.15rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255,255,255,0.6);
    margin-left: 0.5rem;
    vertical-align: middle;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Image pair grid -> Stacked for Big Images */
.img-pair {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    margin: 3rem 0;
}

.img-pair img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    border: var(--glass-border);
    cursor: zoom-in;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.img-pair img:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}


/* ===== CAROUSEL STYLES ===== */
.carousel-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 3rem auto;
    border-radius: 20px;
    border: var(--glass-border);
    background: var(--surface-color);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    overflow: hidden;
}

.carousel-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.carousel-track::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.carousel-slide {
    min-width: 100%;
    width: 100%;
    flex: 0 0 100%;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
}

.carousel-slide img {
    width: 100%;
    height: auto;
    max-height: 700px;
    object-fit: contain;
    background: #ffffff;
    cursor: zoom-in;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.carousel-caption {
    padding: 2.5rem;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
}

.carousel-caption h3 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
}

.carousel-caption p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* Carousel Controls — arrows sit BESIDE the images */
.carousel-controls {
    display: none; /* Hidden — buttons moved to container by JS */
}

.carousel-btn {
    position: absolute;
    /* Center on the image area, which excludes caption (~120px) and dots (~55px) at the bottom */
    top: calc(50% - 90px);
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    color: white;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.85);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev-btn {
    left: 16px;
}

.carousel-btn.next-btn {
    right: 16px;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    padding: 1.5rem;
    background: rgba(0,0,0,0.5);
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.carousel-dot.active {
    background: #fff;
    transform: scale(1.2);
}

/* Result cards (Legacy) */
.results-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin: 3rem 0;
}

.result-card {
    background: var(--surface-color);
    border: var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
}

/* Section divider */
.section-divider {
    width: 60px;
    height: 2px;
    background: rgba(255,255,255,0.12);
    margin: 6rem auto;
}

/* Back link */
.back-link {
    text-align: center;
    margin: 4rem 0 2rem;
}

@media (max-width: 768px) {
    .side-by-side,
    .img-pair,
    .results-grid {
        grid-template-columns: 1fr;
    }
    .project-meta {
        gap: 1.5rem;
    }
}

/* Footer */
footer {
    padding: 4rem 5% 3rem;
    border-top: var(--glass-border);
    margin-top: 5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.footer-logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
}

.footer-tagline {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--text-primary);
}

.linkedin-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.25s ease;
    background: rgba(255,255,255,0.03);
}

.linkedin-btn:hover {
    border-color: #0a66c2;
    color: #fff;
    background: rgba(10, 102, 194, 0.15);
}

.linkedin-btn svg {
    flex-shrink: 0;
}

.footer-copy {
    text-align: center;
    margin-top: 3rem;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.25);
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 1.5rem;
}

/* Nav LinkedIn icon */
.nav-linkedin {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-secondary) !important;
    transition: color 0.2s ease !important;
}

.nav-linkedin:hover {
    color: #fff !important;
}

.nav-linkedin svg {
    flex-shrink: 0;
}

/* ===== CONTACT PAGE ===== */
.contact-hero {
    min-height: 40vh;
    display: flex;
    align-items: flex-end;
    padding: 0 5% 4rem;
    padding-top: 120px;
    background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255,255,255,0.04) 0%, transparent 70%);
}

.contact-hero h1 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -3px;
    background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.4) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-body {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 5% 8rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.contact-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 16px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: border-color 0.3s ease, background 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.contact-card:hover {
    border-color: rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.05);
}

.contact-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.06);
}

.contact-card-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-secondary);
    font-weight: 500;
}

.contact-card-value {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.contact-card-sub {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: auto;
}

.contact-card.linkedin-card:hover {
    border-color: rgba(10,102,194,0.4);
    background: rgba(10,102,194,0.08);
}

.contact-intro {
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 600px;
}

@media (max-width: 900px) {
    .hero-content {
        padding-top: 3rem;
    }
    .hero-text > p {
        margin: 0 auto 2.5rem;
    }
    .projects-grid {
        grid-template-columns: 1fr;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
    .nav-links {
        gap: 1.2rem;
    }
}

/* ===== VS SHOWCASE (Competitor Layout) ===== */
.vs-showcase {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin: 3rem auto 5rem;
    max-width: 1000px;
    padding: 0 1rem;
}

.vs-img-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    background: var(--surface-color);
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.vs-img-wrapper img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 6px;
    background: #ffffff;
}

.vs-img-left {
    width: 65%;
    z-index: 1;
    transform: perspective(1000px) rotateY(4deg);
}

.vs-img-right {
    width: 50%;
    margin-left: -15%;
    margin-top: 12%;
    z-index: 2;
    transform: perspective(1000px) rotateY(-4deg);
}

.vs-img-wrapper:hover {
    z-index: 10;
    transform: translateY(-8px) scale(1.02) perspective(1000px) rotateY(0);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

.vs-caption {
    position: absolute;
    bottom: 8px;
    left: 8px;
    right: 8px;
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
    color: #fff;
    padding: 40px 15px 12px;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.vs-img-wrapper:hover .vs-caption {
    opacity: 1;
}

@media (max-width: 768px) {
    .vs-showcase {
        flex-direction: column;
        align-items: center;
        margin: 2rem 0;
    }
    .vs-img-left, .vs-img-right {
        width: 100%;
        margin: 0;
        transform: none;
    }
    .vs-img-right {
        margin-top: -15%;
        z-index: 2;
    }
    .vs-img-wrapper:hover {
        transform: translateY(-5px);
    }
}






/* ============================================================
   HERO ROLE (poste actuel)
   ============================================================ */
.hero-role {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1rem, 2.2vw, 1.35rem);
    font-weight: 500;
    color: var(--text-secondary);
    margin-top: -1.5rem;
    letter-spacing: 0.3px;
}

.hero-role .role-at {
    color: rgba(255, 255, 255, 0.3);
    margin: 0 0.15rem;
}

.hero-role a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 700;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    transition: border-color 0.25s ease, color 0.25s ease;
}

.hero-role a:hover {
    border-color: var(--text-primary);
}

/* ============================================================
   CURRENT CLIENTS (@ Eskimoz)
   ============================================================ */
.clients {
    padding: 40px 5% 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.clients-header {
    margin-bottom: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding-top: 3rem;
}

.clients-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.clients-eyebrow::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
}

.clients-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.clients-header p {
    color: var(--text-secondary);
    font-size: 1.02rem;
    max-width: 640px;
    line-height: 1.7;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
    gap: 1.5rem;
}

.client-card {
    background: var(--surface-color);
    border: var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease, border-color 0.3s ease;
}

.client-card:hover {
    transform: translateY(-6px);
    background: var(--surface-hover);
    border-color: rgba(255, 255, 255, 0.15);
}

.client-logo {
    height: 120px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 2rem;
    border-bottom: var(--glass-border);
}

.client-logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.client-body {
    padding: 1.25rem 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.client-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.client-body h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
}

.client-context {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0;
}

.client-status {
    flex-shrink: 0;
    font-size: 0.66rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-secondary);
    padding: 0.25rem 0.65rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    white-space: nowrap;
}

@media (max-width: 600px) {
    .clients-grid {
        grid-template-columns: 1fr;
    }
}


/* Client card = clickable (opens detail bubble) */
.client-card {
    cursor: pointer;
}

.client-more {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.35rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.client-more-arrow {
    transition: transform 0.2s ease;
}

.client-card:hover .client-more {
    color: var(--text-primary);
}

.client-card:hover .client-more-arrow {
    transform: translateX(3px);
}

.client-detail {
    display: none;
}

/* ===== CLIENT DETAIL MODAL (bulle) ===== */
.client-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.client-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.client-modal-panel {
    position: relative;
    background: #0d0d0d;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    width: 100%;
    max-width: 520px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 2rem;
    transform: translateY(14px) scale(0.98);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
}

.client-modal.active .client-modal-panel {
    transform: none;
}

.client-modal-close {
    position: absolute;
    top: 1rem;
    right: 1.2rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
}

.client-modal-close:hover {
    color: var(--text-primary);
    transform: scale(1.1);
}

.client-modal-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-right: 2rem;
}

.client-modal-logo {
    flex-shrink: 0;
    width: 76px;
    height: 76px;
    background: #ffffff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem;
}

.client-modal-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.client-modal-name {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 0.4rem;
}

.client-modal-status {
    font-size: 0.66rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-secondary);
    padding: 0.25rem 0.65rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.client-modal-body h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.4);
    margin: 1.4rem 0 0.5rem;
}

.client-modal-body p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.65;
    margin: 0;
}

@media (max-width: 600px) {
    .client-modal-panel { padding: 1.5rem; }
    .client-modal-logo { width: 60px; height: 60px; }
}


/* ============================================================
   HERO TIMELINE (frise horizontale — logos reliés par la ligne)
   ============================================================ */
.hero-timeline {
    width: 100%;
    max-width: 980px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
    position: relative;
}

.hero-timeline::before {
    content: '';
    position: absolute;
    top: 23px;
    left: 23px;
    right: 23px;
    height: 2px;
    background: rgba(255, 255, 255, 0.14);
    z-index: 0;
}

.ht-node {
    position: relative;
    z-index: 1;
}

.ht-logo {
    width: 46px;
    height: 46px;
    border-radius: 11px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    margin-bottom: 0.85rem;
    box-shadow: 0 0 0 5px var(--bg-color);
    overflow: hidden;
}

.ht-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.ht-logo.mono {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    color: #141414;
}

.ht-node.present .ht-logo {
    box-shadow: 0 0 0 5px var(--bg-color), 0 0 0 7px rgba(255, 255, 255, 0.55);
}

.ht-dates {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    line-height: 1.15;
    margin-bottom: 0.3rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.ht-present-tag {
    font-size: 0.56rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    padding: 1px 6px;
}

.ht-company {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
}

.ht-role {
    font-size: 0.76rem;
    color: var(--text-secondary);
    margin-top: 0.1rem;
}

@media (max-width: 720px) {
    .hero-timeline {
        grid-template-columns: 1fr;
        gap: 1.4rem;
    }
    .hero-timeline::before {
        top: 23px;
        bottom: 23px;
        left: 23px;
        right: auto;
        width: 2px;
        height: auto;
    }
    .ht-node {
        display: grid;
        grid-template-columns: 46px 1fr;
        gap: 0.9rem;
        align-items: center;
    }
    .ht-logo {
        margin-bottom: 0;
    }
}

/* Career button */
.hero-career-btn {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 1.7rem;
    border-radius: 30px;
    background: var(--text-primary);
    color: var(--bg-color);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hero-career-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.hero-career-btn .arrow {
    transition: transform 0.2s ease;
}

.hero-career-btn:hover .arrow {
    transform: translateX(4px);
}

/* ============================================================
   CAREER PAGE (frise verticale, bas → haut chronologique)
   ============================================================ */
.career-page {
    max-width: 860px;
    margin: 0 auto;
    padding: 140px 5% 60px;
}

.career-head {
    text-align: center;
    margin-bottom: 4rem;
}

.career-head h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
}

.career-head p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.7;
}

.career-timeline {
    position: relative;
    padding-left: 2.5rem;
    padding-bottom: 4rem;
}

.career-timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.12);
}

.career-entry {
    position: relative;
    margin-bottom: 3.5rem;
}

.career-entry::before {
    content: '';
    position: absolute;
    left: calc(-2.5rem + 0px);
    top: 5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bg-color);
    border: 2px solid rgba(255, 255, 255, 0.35);
}

.career-entry.present::before {
    background: #fff;
    border-color: #fff;
    box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.07);
}

.career-dates {
    font-family: 'Outfit', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.career-entry h2 {
    font-size: 1.5rem;
    margin-bottom: 0.2rem;
}

.career-org {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.1rem;
}

.career-loc {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 1.3rem;
}

.career-block {
    margin-bottom: 1.1rem;
}

.career-block h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.career-block p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.65;
    margin: 0;
}

.career-entry > ul {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0;
}

.career-entry > ul li {
    position: relative;
    padding-left: 1.3rem;
    margin-bottom: 0.7rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.65;
}

.career-entry > ul li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: rgba(255, 255, 255, 0.3);
}

.career-results {
    margin-top: 1.2rem;
    padding: 1.1rem 1.3rem;
    background: var(--surface-color);
    border: var(--glass-border);
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.career-results-label {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 0.5rem;
}

.career-results strong {
    color: #fff;
}


/* Logo per entry on the career page */
.career-entry {
    padding-right: 74px;
}

.career-entry-logo {
    position: absolute;
    top: 2px;
    right: 0;
    width: 54px;
    height: 54px;
    border-radius: 12px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7px;
    overflow: hidden;
}

.career-entry-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.career-entry-logo.mono {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.15rem;
    color: #141414;
}

@media (max-width: 600px) {
    .career-entry { padding-right: 62px; }
    .career-entry-logo { width: 46px; height: 46px; }
}


/* Timeline node without a logo (independent period) — plain dot on the line */
.ht-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-bottom: 0.85rem;
}

.ht-marker::before {
    content: '';
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 0 5px var(--bg-color);
}

@media (max-width: 720px) {
    .ht-marker { margin-bottom: 0; }
}
