/* ===========================
   LUCAS LEMPEREUR — PORTFOLIO
   =========================== */

:root {
    --bg: #060810;
    --bg-card: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(128,128,128,0));
    --bg-card-2: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(128,128,128,0));
    --bg-card-solid: rgba(255,255,255,0.04);
    --border: rgba(255,255,255,0.07);
    --border-hover: rgba(255,255,255,0.15);
    --text: #e8eaf0;
    --text-muted: #6b7280;
    --text-dim: #9ca3af;
    --accent: #5b4ff5;
    --accent-light: #7c6fff;
    --accent-glow: rgba(91,79,245,0.3);
    --white: #ffffff;
    --radius: 12px;
    --radius-lg: 20px;
    --font: 'Albert Sans', sans-serif;
    --nav-h: 64px;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);

    /* Navbar dark */
    --nav-bg: rgba(6,8,16,0.3);
    --nav-bg-scrolled: rgba(6,8,16,0.92);
    --nav-link-color: rgba(255,255,255,0.85);
    --nav-link-hover-bg: rgba(255,255,255,0.08);
    --nav-btn-bg: rgba(255,255,255,0.08);
    --nav-btn-border: rgba(255,255,255,0.15);
    --nav-btn-hover-bg: rgba(255,255,255,0.14);
    --nav-btn-hover-border: rgba(255,255,255,0.25);

    /* Company logo bg */
    --company-logo-bg: #1a1f2e;

    /* Footer */
    --footer-bg: var(--bg);
    --footer-cta-bg: var(--white);
    --footer-cta-color: var(--bg);
    --footer-cta-hover: #d1d5db;

    /* Theme toggle */
    --toggle-bg: rgba(255,255,255,0.08);
    --toggle-border: rgba(255,255,255,0.15);
    --toggle-color: rgba(255,255,255,0.7);
    --toggle-hover-bg: rgba(255,255,255,0.14);
}

/* ===== LIGHT MODE ===== */
[data-theme="light"] {
    --bg: #f4f3ef;
    --bg-card: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(255,255,255,0.6));
    --bg-card-2: linear-gradient(135deg, rgba(255,255,255,0.85), rgba(240,240,235,0.5));
    --bg-card-solid: rgba(255,255,255,0.85);
    --border: rgba(0,0,0,0.08);
    --border-hover: rgba(0,0,0,0.18);
    --text: #1a1a2e;
    --text-muted: #8a8a9a;
    --text-dim: #5a5a72;
    --accent: #5b4ff5;
    --accent-light: #7c6fff;
    --accent-glow: rgba(91,79,245,0.15);
    --white: #1a1a2e;
    --radius: 12px;
    --radius-lg: 20px;

    /* Navbar light */
    --nav-bg: rgba(244,243,239,0.6);
    --nav-bg-scrolled: rgba(244,243,239,0.96);
    --nav-link-color: rgba(26,26,46,0.75);
    --nav-link-hover-bg: rgba(0,0,0,0.06);
    --nav-btn-bg: rgba(0,0,0,0.05);
    --nav-btn-border: rgba(0,0,0,0.12);
    --nav-btn-hover-bg: rgba(0,0,0,0.09);
    --nav-btn-hover-border: rgba(0,0,0,0.2);

    /* Company logo bg */
    --company-logo-bg: #ebe9e3;

    /* Footer */
    --footer-bg: #ebe9e3;
    --footer-cta-bg: #1a1a2e;
    --footer-cta-color: #f4f3ef;
    --footer-cta-hover: #2d2d4e;

    /* Theme toggle */
    --toggle-bg: rgba(0,0,0,0.06);
    --toggle-border: rgba(0,0,0,0.12);
    --toggle-color: rgba(26,26,46,0.65);
    --toggle-hover-bg: rgba(0,0,0,0.1);
}

/* Light mode — hero outline text */
[data-theme="light"] .line-3 {
    -webkit-text-stroke: 2px rgba(26,26,46,0.18);
}

/* Light mode — hero glow adouci */
[data-theme="light"] .hero-glow {
    background: radial-gradient(ellipse, rgba(91,79,245,0.1) 0%, transparent 70%);
}

/* Light mode — noise moins visible */
[data-theme="light"] .noise { opacity: 0.15; }

/* Light mode — timeline line */
[data-theme="light"] .timeline-line {
    background: rgba(0,0,0,0.08);
}

/* Light mode — tl-dot inactif */
[data-theme="light"] .tl-dot {
    background: rgba(0,0,0,0.12);
    border-color: rgba(0,0,0,0.18);
}

/* Light mode — tl-card */
[data-theme="light"] .tl-card {
    background: rgba(255,255,255,0.9);
    border-color: rgba(0,0,0,0.1);
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
}
[data-theme="light"] .tl-label { color: #1a1a2e; }
[data-theme="light"] .tl-sub { color: #5a5a72; }

/* Light mode — exp card logo bg */
[data-theme="light"] .company-logo-wrap {
    background: var(--company-logo-bg);
    border-color: rgba(0,0,0,0.08);
}

/* Light mode — exp indicateur */
[data-theme="light"] .exp-indicator {
    background: rgba(0,0,0,0.12);
}

/* Light mode — scroll cta */
[data-theme="light"] .scroll-cta:hover { color: #1a1a2e; }

/* Light mode — tag first child */
[data-theme="light"] .tag:first-child {
    border-color: rgba(0,0,0,0.3);
    color: #1a1a2e;
}

/* Light mode — tool icons */
[data-theme="light"] .tool-icon {
    filter: brightness(0);
    opacity: 0.55;
}
[data-theme="light"] .skill-tag:hover .tool-icon {
    filter: none;
    opacity: 1;
}

/* Light mode — radio art bg fallback */
[data-theme="light"] .radio-art { box-shadow: 0 4px 20px rgba(0,0,0,0.1); }

/* Light mode — contact icon */
[data-theme="light"] .contact-icon {
    background: rgba(0,0,0,0.06);
    border-color: rgba(0,0,0,0.1);
    color: #1a1a2e;
}

/* Light mode — btn-primary inversé */
[data-theme="light"] .btn-primary {
    background: #1a1a2e;
    color: #f4f3ef;
}
[data-theme="light"] .btn-primary:hover { background: #2d2d4e; }

/* Light mode — btn-ghost */
[data-theme="light"] .btn-ghost { color: #5a5a72; }
[data-theme="light"] .btn-ghost:hover { color: #1a1a2e; }
[data-theme="light"] .btn-ghost.active,
[data-theme="light"] .btn-ghost:first-child {
    border-color: rgba(0,0,0,0.3);
    color: #1a1a2e;
}

/* Light mode — footer */
[data-theme="light"] .footer { background: var(--footer-bg); }
[data-theme="light"] .footer-cta {
    background: var(--footer-cta-bg);
    color: var(--footer-cta-color);
}
[data-theme="light"] .footer-cta:hover { background: var(--footer-cta-hover); }
[data-theme="light"] .footer-headline { color: #1a1a2e; }
[data-theme="light"] .footer-col a:hover { color: #1a1a2e; }
[data-theme="light"] .footer-social:hover { color: #1a1a2e; border-color: rgba(0,0,0,0.25); }

/* Light mode — navbar links */
[data-theme="light"] .nav-links a { color: var(--nav-link-color); }
[data-theme="light"] .nav-links a:hover {
    color: #1a1a2e;
    background: var(--nav-link-hover-bg);
}
[data-theme="light"] .nav-contact-btn,
[data-theme="light"] .nav-cta {
    color: #1a1a2e;
    background: var(--nav-btn-bg);
    border-color: var(--nav-btn-border);
}
[data-theme="light"] .nav-contact-btn:hover,
[data-theme="light"] .nav-cta:hover {
    background: var(--nav-btn-hover-bg);
    border-color: var(--nav-btn-hover-border);
}
[data-theme="light"] .mobile-menu {
    background: rgba(244,243,239,0.98);
}
[data-theme="light"] .mobile-menu a { color: #5a5a72; }
[data-theme="light"] .mobile-menu a:hover { color: #1a1a2e; }
[data-theme="light"] .hamburger span { background: #1a1a2e; }

/* Light mode — portfolio overlay toujours visible sur featured */
[data-theme="light"] .portfolio-item.featured .portfolio-overlay { opacity: 1; }

/* ===== THEME TOGGLE — ICÔNE SEULE ===== */
.theme-toggle-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    border-radius: 50%;
    color: var(--text-muted);
    font-size: 0.88rem;
    cursor: pointer;
    flex-shrink: 0;
    margin-left: 4px;
    transition: color var(--transition);
}
.theme-toggle-icon:hover { color: var(--text); }

.theme-toggle-icon .icon-sun  { display: none; }
.theme-toggle-icon .icon-moon { display: block; }
[data-theme="light"] .theme-toggle-icon .icon-sun  { display: block; }
[data-theme="light"] .theme-toggle-icon .icon-moon { display: none; }


/* ===========================
   BASE
   =========================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    transition: background 0.35s ease, color 0.35s ease;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.section { padding: 96px 0; }

/* ===== NOISE OVERLAY ===== */
.noise {
    position: absolute; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none; z-index: 0; opacity: 0.4;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: var(--nav-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background var(--transition), backdrop-filter var(--transition);
}

.navbar.scrolled {
    background: var(--nav-bg-scrolled);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.navbar-accent {
    height: 3px;
    background: linear-gradient(90deg, #0019FF, #4E00A8, transparent);
    opacity: 0;
    transition: opacity var(--transition);
}
.navbar.scrolled .navbar-accent { opacity: 1; }

.nav-inner {
    height: var(--nav-h);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    transition: opacity var(--transition);
    text-decoration: none;
}
.nav-logo:hover { opacity: 0.8; }
.nav-logo img { height: 28px; display: block; }

.nav-links {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    list-style: none;
    padding: 0; margin: 0;
}
.nav-links li { display: flex; }
.nav-links a {
    white-space: nowrap;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--nav-link-color);
    padding: 6px 14px;
    border-radius: 6px;
    text-decoration: none;
    transition: color var(--transition), background var(--transition);
}
.nav-links a:hover { color: var(--text); background: var(--nav-link-hover-bg); }

.nav-contact-btn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text);
    background: var(--nav-btn-bg);
    border: 1px solid var(--nav-btn-border);
    border-radius: 10px;
    padding: 8px 20px;
    text-decoration: none;
    transition: background var(--transition), border-color var(--transition);
}
.nav-contact-btn:hover {
    background: var(--nav-btn-hover-bg);
    border-color: var(--nav-btn-hover-border);
}
.nav-contact-btn i { font-size: 0.85rem; }

.nav-cta {
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    background: transparent;
    border: 1px solid var(--nav-btn-border);
    border-radius: 8px;
    padding: 7px 18px;
    text-decoration: none;
    transition: background var(--transition), border-color var(--transition);
}
.nav-cta:hover {
    background: var(--nav-btn-hover-bg);
    border-color: var(--nav-btn-hover-border);
}

.dot-live {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #2ecc71;
    flex-shrink: 0;
    animation: blink-live 1.4s ease-in-out infinite;
}
@keyframes blink-live {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.25; }
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
    cursor: pointer;
    border: none;
    background: none;
}
.hamburger span {
    display: block; width: 22px; height: 2px;
    background: var(--text); border-radius: 2px;
    transition: var(--transition);
}

.mobile-menu {
    display: none;
    flex-direction: column;
    background: rgba(6,8,16,0.96);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    gap: 4px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
    padding: 12px 0;
    font-size: 1rem;
    color: var(--text-dim);
    border-bottom: 1px solid var(--border);
    transition: color var(--transition);
    text-decoration: none;
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--text); }

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
    text-align: center;
}

.hero-bg {
    position: absolute; inset: 0;
}

.hero-glow {
    position: absolute;
    top: 20%; left: 50%;
    transform: translateX(-50%);
    width: 600px; height: 600px;
    background: radial-gradient(ellipse, rgba(91,79,245,0.2) 0%, transparent 70%);
    pointer-events: none;
    transition: background 0.35s ease;
}

.hero-content {
    position: relative; z-index: 2;
    padding: var(--nav-h) 24px 0;
}

.hero-title {
    display: flex; flex-direction: column;
    align-items: center;
    font-family: var(--font);
    font-weight: 900;
    line-height: 1.05;
}

.hero-line {
    display: block;
    opacity: 0;
    transform: translateY(40px);
    animation: heroReveal 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.line-1 { font-size: clamp(56px, 10vw, 120px); color: var(--text); animation-delay: 0.1s; }
.line-2 { font-size: clamp(56px, 10vw, 120px); animation-delay: 0.25s; }
.line-3 {
    font-size: clamp(52px, 9.5vw, 110px);
    color: transparent;
    -webkit-text-stroke: 2px rgba(255,255,255,0.2);
    animation-delay: 0.4s;
    transition: -webkit-text-stroke 0.35s ease;
}

@keyframes heroReveal {
    to { opacity: 1; transform: translateY(0); }
}

.highlight-pill {
    display: inline-block;
    background: linear-gradient(135deg, #0019FF, #4E00A8);
    color: white;
    padding: 4px 28px;
    border-radius: 60px;
    position: relative;
    box-shadow: 0 0 60px rgba(0,25,255,0.4);
    transform: rotate(-2deg);
}

.scroll-cta {
    display: inline-block;
    margin-top: 48px;
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    opacity: 0;
    animation: heroReveal 0.8s 0.7s forwards;
    transition: color var(--transition);
}
.scroll-cta:hover { color: var(--text); }

/* ===== ABOUT ===== */
.about { background: var(--bg); }
.about .container { max-width: 1200px; }

.about-wrapper {
    display: grid;
    grid-template-columns: 260px 1fr 160px;
    grid-template-rows: auto auto;
    gap: 16px;
    align-items: stretch;
}

.about-photo {
    grid-column: 1;
    grid-row: 1 / 3;
    display: flex;
    align-items: stretch;
}

.photo-frame {
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-card-2);
    min-height: 300px;
}
.photo-frame img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: top center;
}

.about-bio {
    grid-column: 2;
    grid-row: 1;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
}

.bio-title {
    font-family: var(--font);
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 10px;
}
.name-tag {
    background: linear-gradient(135deg, #0019FF, #4E00A8);
    color: white;
    padding: 2px 12px;
    border-radius: 6px;
    font-size: 1rem;
    display: inline-block;
    transform: rotate(-2deg);
}

.bio-text {
    font-size: 0.88rem;
    color: var(--text-dim);
    margin-bottom: 20px;
    line-height: 1.7;
}
.bio-text strong { color: var(--text); font-weight: 600; }

.bio-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.about-socials {
    grid-column: 3;
    grid-row: 1;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    flex: 1;
}

.social-btn {
    display: flex; align-items: center; justify-content: center;
    aspect-ratio: 1;
    width: 100%;
    background: var(--bg-card-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-muted);
    font-size: 1.15rem;
    transition: var(--transition);
}
.social-btn:hover {
    background: rgba(91,79,245,0.15);
    border-color: var(--accent);
    color: var(--accent-light);
}

.cv-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    background: var(--bg-card-2);
    border: 1px solid var(--border);
    color: var(--text-dim);
    border-radius: var(--radius);
    padding: 12px 16px;
    transition: var(--transition);
    white-space: nowrap;
}
.cv-btn:hover { border-color: var(--border-hover); color: var(--text); }

.stats-row {
    grid-column: 2 / 4;
    grid-row: 2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.stat {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
}

.stat-icon-box {
    width: 36px; height: 36px;
    background: var(--bg-card-2);
    border: 1px solid var(--border);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    flex-shrink: 0;
    margin-bottom: 16px;
}

.stat-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.stat-val {
    font-family: var(--font);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text);
    display: block;
    line-height: 1;
}
.stat-label { font-size: 0.75rem; color: var(--text-muted); display: block; }
.stat-divider { display: none; }
.stat-icon { display: none; }

/* ===== TIMELINE ===== */
.timeline-section { padding: 0 0 96px; }
.timeline-section .container { max-width: 1200px; padding: 0 80px; }

.timeline-track {
    position: relative;
    padding: 180px 0 180px;
    overflow: visible;
}

.timeline-line {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    left: 0; right: 0;
    height: 3px;
    background: rgba(255,255,255,0.08);
    z-index: 0;
    transition: background 0.35s ease;
}
.timeline-progress {
    height: 100%;
    background: linear-gradient(90deg, #0019FF, #4E00A8, #0019FF);
    width: 0;
    transition: width 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.timeline-points {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.timeline-point {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    cursor: default;
}

.tl-dot {
    width: 12px; height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    border: 2px solid rgba(255,255,255,0.2);
    transition: var(--transition);
    position: relative; z-index: 2;
}

.timeline-point.has-info .tl-dot {
    background: #0019FF;
    border-color: #4E00A8;
    box-shadow: 0 0 0 4px rgba(0,25,255,0.2);
    width: 14px; height: 14px;
}

.timeline-point.active .tl-dot {
    background: #0019FF;
    border-color: #7c6fff;
    box-shadow: 0 0 0 5px rgba(0,25,255,0.25), 0 0 16px rgba(0,25,255,0.4);
    width: 16px; height: 16px;
}

.timeline-point.has-info:hover .tl-dot {
    box-shadow: 0 0 0 6px rgba(0,25,255,0.3), 0 0 20px rgba(0,25,255,0.5);
    transform: scale(1.15);
}

.tl-year {
    font-family: var(--font);
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 700;
    transition: color var(--transition);
    position: absolute;
    white-space: nowrap;
    top: calc(100% + 10px);
}
.tl-year.tl-year-above {
    top: auto;
    bottom: calc(100% + 10px);
}
.timeline-point.active .tl-year,
.timeline-point.has-info:hover .tl-year { color: var(--text); }

.tl-card {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(128,128,128,0));
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    padding: 12px 16px 14px;
    width: 240px;
    text-align: center;
    white-space: normal;
    z-index: 10;
    transition: background 0.35s ease, border-color 0.35s ease;
}

.tl-card.tl-above {
    bottom: calc(100% + 24px);
    text-align: center;
    padding-top: 22px;
}

.tl-card.tl-below {
    top: calc(100% + 24px);
    padding-top: 22px;
}

.tl-school {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.68rem;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, #0019FF, #4E00A8);
    border-radius: 50px;
    padding: 3px 10px;
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    text-align: center;
}
.tl-school i { font-size: 0.58rem; }

.tl-label {
    display: block;
    font-family: var(--font);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 3px;
    line-height: 1.25;
}

.tl-sub {
    display: block;
    font-size: 0.82rem;
    color: var(--text-dim);
    font-weight: 400;
}

.tl-logos {
    display: flex; gap: 6px; align-items: center; margin-top: 8px;
}
.tl-logo { height: 18px; width: auto; opacity: 0.8; }

/* ===== EXPERIENCES / SKILLS ===== */
.exp-section .container { max-width: 1200px; }

.exp-grid {
    display: grid;
    grid-template-columns: 40% 60%;
    gap: 24px;
}

.exp-card, .skills-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
}

.exp-card {
    display: flex;
    flex-direction: column;
    height: 460px;
}

.card-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 24px;
}
.card-header h2 {
    font-family: var(--font); font-size: 1.4rem; font-weight: 800;
}

.card-nav { display: flex; gap: 16px; }
.card-nav-btn {
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 1.1rem;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
    padding: 0;
}
.card-nav-btn:hover { color: var(--text); }

.exp-carousel-wrap { position: relative; flex: 1; }

.exp-item {
    display: none;
    flex-direction: column;
}
.exp-item.active {
    display: flex;
    animation: expFadeIn 0.4s ease forwards;
}

@keyframes expFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.exp-indicators {
    display: flex; gap: 6px;
    justify-content: center;
    margin-top: 20px;
    flex-shrink: 0;
}
.exp-indicator {
    width: 6px; height: 6px; border-radius: 3px;
    background: rgba(255,255,255,0.15);
    border: none; cursor: pointer; padding: 0;
    transition: background var(--transition), width var(--transition);
}
.exp-indicator.active {
    background: #0019FF;
    width: 20px;
}

.exp-company {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 20px;
    align-items: stretch;
    margin-bottom: 20px;
}

.company-logo-wrap {
    width: 110px;
    height: 140px;
    border-radius: var(--radius);
    background: var(--company-logo-bg);
    border: 1px solid var(--border);
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: background 0.35s ease;
}
.company-logo-wrap img { width: 70%; height: auto; object-fit: contain; }
.logo-fallback {
    color: var(--text); font-weight: 800; font-size: 2rem;
    font-family: var(--font);
}

.company-info { display: flex; flex-direction: column; justify-content: center; }
.company-name {
    display: block; font-weight: 800; font-size: 0.85rem;
    color: var(--text); letter-spacing: 0.04em;
    margin-bottom: 0;
}
.company-since {
    display: block; font-size: 0.72rem;
    color: var(--text-muted); letter-spacing: 0.06em;
    margin-bottom: 10px;
    margin-top: 1px;
}

.exp-title {
    font-family: var(--font);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1.3;
    margin-bottom: 12px;
}

.exp-location {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 0.78rem; font-weight: 600;
    color: var(--text);
    background: transparent;
    border: 1px solid var(--border-hover);
    border-radius: 50px;
    padding: 5px 14px;
    width: fit-content;
}
.exp-location i { font-size: 0.65rem; color: var(--accent-light); }

.exp-desc {
    font-size: 0.84rem; color: var(--text-dim);
    line-height: 1.65; margin-bottom: 20px;
}

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
    padding: 6px 16px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.78rem; color: var(--text-muted);
    transition: var(--transition);
}
.tag:first-child {
    border-color: rgba(255,255,255,0.4);
    color: var(--text);
}
.tag:hover { border-color: var(--border-hover); color: var(--text); }

.tag-more {
    border-color: var(--border) !important;
    color: var(--text-muted) !important;
    cursor: default;
}

.skills-card h2 {
    font-family: var(--font); font-size: 1.4rem; font-weight: 800; margin-bottom: 16px;
}
.skills-group { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 20px; }
.skill-tag {
    padding: 5px 12px;
    background: var(--bg-card-2);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.75rem; color: var(--text-dim);
    transition: var(--transition);
}
.skill-tag:hover { border-color: var(--accent); color: var(--accent-light); }
.skill-tag.tool {
    font-size: 0.72rem;
    display: inline-flex;
    align-items: center;
    flex-direction: row;
    gap: 6px;
    white-space: nowrap;
}

.tool-icon {
    width: 14px;
    height: 14px;
    min-width: 14px;
    object-fit: contain;
    opacity: 0.7;
    flex-shrink: 0;
    filter: brightness(0) invert(1);
    display: inline-block;
    vertical-align: middle;
    transition: opacity var(--transition), filter var(--transition);
}
.skill-tag:hover .tool-icon {
    opacity: 1;
    filter: none;
}

.skills-section-title {
    font-size: 0.7rem; letter-spacing: 0.12em;
    color: var(--text-muted); font-weight: 700;
    margin-bottom: 10px;
}

/* ===== PORTFOLIO ===== */
.portfolio-section .container { max-width: 1200px; }

.section-title {
    font-family: var(--font); font-size: 1.6rem; font-weight: 800;
    margin-bottom: 24px;
}

.portfolio-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    grid-template-rows: 220px 200px;
    gap: 12px;
    display: grid;
}

.portfolio-item.featured    { grid-column: 1;     grid-row: 1 / 3; }
.portfolio-item.col-2-row-1 { grid-column: 2;     grid-row: 1; }
.portfolio-item.col-3-row-1 { grid-column: 3;     grid-row: 1; }
.portfolio-item.col-4-row-1 { grid-column: 4;     grid-row: 1; }

.portfolio-row2-wrapper {
    grid-column: 2 / 5;
    grid-row: 2;
    display: flex;
    gap: 12px;
}
.portfolio-item.col-23-row-2,
.portfolio-item.col-4-row-2 {
    flex: 1;
    min-width: 0;
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.portfolio-item {
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.portfolio-img {
    width: 100%; height: 100%;
    position: relative;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.portfolio-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}
.portfolio-item:hover .portfolio-img img { transform: scale(1.05); }

.portfolio-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.1) 50%, transparent 100%);
    padding: 20px;
    display: flex; flex-direction: column; justify-content: flex-end;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.portfolio-item.featured .portfolio-overlay { opacity: 1; }
.portfolio-item:hover .portfolio-overlay { opacity: 1; }

.portfolio-cat {
    font-size: 0.72rem;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 4px 12px; border-radius: 50px; color: white;
    width: fit-content; margin-bottom: 8px;
    font-weight: 500;
}
.portfolio-overlay h3 {
    font-family: var(--font); font-size: 1.05rem;
    font-weight: 800; color: white;
    line-height: 1.3;
}

/* ===== RADIOS ===== */
.radios-section .container { max-width: 1200px; }

.radios-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.radio-card {
    display: block;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    min-width: 0;
    transition: transform var(--transition);
}
.radio-card:hover { transform: translateY(-6px); }

/* Glow sous la pochette au hover */
.radio-card:hover .radio-art {
    box-shadow: 0 20px 48px -8px rgba(0,0,0,0.55);
}

/* Zoom léger sur la cover au hover */
.radio-card:hover .radio-cover-current {
    transform: scale(1.06);
    filter: brightness(1.05) saturate(1.1);
}

/* Titre & artiste qui remontent légèrement */
.radio-title  { transition: color var(--transition), transform var(--transition); }
.radio-artist { transition: transform var(--transition); }
.radio-card:hover .radio-title  { color: var(--text); transform: translateY(-1px); }
.radio-card:hover .radio-artist { transform: translateY(-1px); }

/* Art square */
.radio-art {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    margin-bottom: 12px;
    transition: box-shadow 0.4s cubic-bezier(0.4,0,0.2,1);
}


/* Covers */
.radio-cover {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    transition: opacity .7s ease, transform .9s cubic-bezier(.16,1,.3,1), filter .7s ease;
}
.radio-cover-current { opacity: 1; transform: scale(1); filter: blur(0); z-index: 1; }
.radio-cover-next    { opacity: 0; transform: scale(1.08); filter: blur(8px); z-index: 2; }

.radio-art.cover-switching .radio-cover-current { opacity: 0; transform: scale(.98); filter: blur(6px); }
.radio-art.cover-switching .radio-cover-next    { opacity: 1; transform: scale(1);   filter: blur(0); }

/* Logo */
.radio-logo {
    position: absolute;
    bottom: 8px; left: 8px;
    width: 60px; height: 60px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.3);
    z-index: 4;
    transition: opacity .35s ease, transform .35s ease;
}
.radio-logo img { width: 100%; height: 100%; object-fit: cover; }

/* Progress bar */
.radio-progress {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: rgba(0,0,0,.08);
    z-index: 8;
}
.radio-progress-bar {
    height: 100%; width: 0%;
    background: linear-gradient(90deg, #0019FF, #7c6fff);
    border-radius: 0 2px 2px 0;
}

/* Next song overlay */
.radio-next {
    position: absolute; inset: 0;
    z-index: 7;
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 16px;
    opacity: 0; pointer-events: none;
    transform: scale(1.08);
    transition: opacity .55s ease, transform .75s cubic-bezier(.16,1,.3,1);
}
.radio-next-bg {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: .72; filter: saturate(1.18) contrast(1.04);
    transform: scale(1.12);
    transition: transform 1.1s cubic-bezier(.16,1,.3,1);
}
.radio-next::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.35) 38%, rgba(0,0,0,.92));
    z-index: 1;
}
.radio-next::before {
    content: "";
    position: absolute; inset: -40%;
    background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.35) 48%, transparent 60%);
    z-index: 2;
    transform: translateX(-80%) rotate(8deg);
}
.radio-next-content {
    position: relative; z-index: 3;
    transform: translateY(28px); opacity: 0;
    transition: all .55s ease .15s;
}
.radio-next-top { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.radio-next-label {
    display: inline-flex; align-items: center;
    padding: 5px 9px; border-radius: 999px;
    background: rgba(255,255,255,.16); backdrop-filter: blur(10px);
    font-size: .6rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: #fff;
}
.radio-next-title  { display: block; font-size: 1.02rem; font-weight: 900; line-height: 1.05; color: #fff; text-shadow: 0 2px 16px rgba(0,0,0,.5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.radio-next-artist { display: block; margin-top: 4px; font-size: .78rem; font-weight: 700; color: rgba(255,255,255,.8); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* EQ bars */
.radio-eq { display: flex; align-items: flex-end; gap: 3px; height: 18px; margin-top: 12px; }
.radio-eq span { width: 4px; height: 7px; border-radius: 99px; background: rgba(255,255,255,.85); animation: eqBounce .75s ease-in-out infinite; }
.radio-eq span:nth-child(2) { animation-delay: .1s; }
.radio-eq span:nth-child(3) { animation-delay: .2s; }
.radio-eq span:nth-child(4) { animation-delay: .3s; }
.radio-eq span:nth-child(5) { animation-delay: .4s; }

/* show-next state */
.radio-card.show-next .radio-cover-current { opacity: .16; transform: scale(.98); }
.radio-card.show-next .radio-cover-next    { opacity: 0; }
.radio-card.show-next .radio-logo          { opacity: 0; transform: scale(.86) translateY(8px); }
.radio-card.show-next .radio-next          { opacity: 1; transform: scale(1); }
.radio-card.show-next .radio-next-bg       { transform: scale(1); }
.radio-card.show-next .radio-next::before  { animation: premiumSweep 1.25s ease .25s both; }
.radio-card.show-next .radio-next-content  { opacity: 1; transform: translateY(0); }
.radio-card.returning .radio-cover-current { transform: scale(1.03); }

/* Info text */
.radio-info { padding: 0; }
.radio-title {
    display: block; font-size: .9rem; font-weight: 700; color: var(--text);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}
.radio-artist {
    display: block; font-size: .78rem; color: var(--text-muted);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}

/* Skeleton */
.radio-skeleton {
    display: block;
    background: linear-gradient(90deg, rgba(255,255,255,.08) 25%, rgba(255,255,255,.16) 50%, rgba(255,255,255,.08) 75%);
    background-size: 200% 100%;
    animation: radioShimmer 1.4s infinite;
    border-radius: 6px;
    height: .88rem; width: 75%; margin-top: 6px; color: transparent;
}
.radio-skeleton-sm { width: 50%; height: .76rem; margin-top: 5px; }

[data-theme="light"] .radio-skeleton {
    background: linear-gradient(90deg, rgba(0,0,0,.06) 25%, rgba(0,0,0,.12) 50%, rgba(0,0,0,.06) 75%);
    background-size: 200% 100%;
}

@keyframes radioShimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@keyframes eqBounce { 0%,100% { height: 6px; opacity: .55; } 50% { height: 18px; opacity: 1; } }
@keyframes premiumSweep { 0% { transform: translateX(-80%) rotate(8deg); } 100% { transform: translateX(80%) rotate(8deg); } }

/* ===== CONTACT ===== */
.contact-banner {
    display: flex;
    align-items: center;
    gap: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 40px;
    transition: border-color var(--transition);
}
.contact-banner:hover { border-color: var(--border-hover); }

.contact-icon {
    width: 52px; height: 52px;
    background: var(--toggle-bg);
    border: 1px solid var(--toggle-border);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    color: var(--text);
    font-size: 1.1rem;
    flex-shrink: 0;
    transition: background 0.35s ease, border-color 0.35s ease;
}

.contact-text { flex: 1; }
.contact-text h2 {
    font-family: var(--font);
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 0;
    line-height: 1.2;
    color: var(--text);
}
.contact-text p {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 64px 0 0;
    transition: background 0.35s ease;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

.footer-top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--border);
}

.footer-headline {
    font-family: var(--font);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--text);
    transition: color 0.35s ease;
}
.footer-headline span {
    background: linear-gradient(135deg, #0019FF, #4E00A8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-cta-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    flex-shrink: 0;
}

.footer-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--footer-cta-bg);
    color: var(--footer-cta-color);
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 700;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    transition: background var(--transition);
}
.footer-cta:hover { background: var(--footer-cta-hover); }

.footer-response {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.footer-mid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding: 48px 0;
    border-bottom: 1px solid var(--border);
}

.footer-logo { margin-bottom: 14px; }
.footer-logo img { display: block; }

.footer-bio {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.65;
    max-width: 240px;
}

.footer-socials {
    display: flex;
    gap: 8px;
    margin-top: 20px;
}
.footer-social {
    width: 34px; height: 34px;
    border-radius: 8px;
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-decoration: none;
    transition: var(--transition);
}
.footer-social:hover { border-color: var(--border-hover); color: var(--text); }

.footer-col h5 {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
    font-size: 0.82rem;
    color: var(--text-dim);
    text-decoration: none;
    transition: color var(--transition);
}
.footer-col a:hover { color: var(--text); }

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 0;
}
.footer-copy { font-size: 0.75rem; color: var(--text-muted); }
.footer-badges { display: flex; gap: 8px; }
.footer-badge {
    font-size: 0.68rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 50px;
    border: 1px solid var(--border);
    color: var(--text-muted);
}
.footer-version { font-size: 0.72rem; color: rgba(255,255,255,0.15); }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 9px 20px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    font-family: var(--font);
    transition: var(--transition);
    cursor: pointer;
    white-space: nowrap;
}

.btn-primary {
    background: var(--text); color: var(--bg);
    font-weight: 700;
}
.btn-primary:hover { opacity: 0.85; }

.btn-contact {
    border-radius: 50px;
    padding: 12px 28px;
    font-size: 0.9rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-ghost {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 500;
    padding: 7px 18px;
}
.btn-ghost:hover { border-color: var(--border-hover); color: var(--text); }

.btn-ghost.active,
.btn-ghost:first-child {
    border-color: var(--border-hover);
    color: var(--text);
}
.btn-ghost.active:hover,
.btn-ghost:first-child:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-solid);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
}
.btn-outline:hover { border-color: var(--border-hover); color: var(--text); }

/* ===== AOS (simple) ===== */
[data-aos] {
    opacity: 0; transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1);
}
[data-aos].aos-animate { opacity: 1; transform: none; }

/* ===== RESPONSIVE ===== */

@media (max-width: 1024px) {
    .about-wrapper { grid-template-columns: 200px 1fr 140px; }
    .exp-grid { grid-template-columns: 1fr 1fr; }
    .timeline-track { padding: 140px 0; }
    .tl-card { width: 200px; }
}

@media (max-width: 900px) {
    .about-wrapper { grid-template-columns: 1fr 140px; grid-template-rows: auto auto; }
    .about-photo { display: none; }
    .about-bio { grid-column: 1; grid-row: 1; }
    .about-socials { grid-column: 2; grid-row: 1; }
    .stats-row { grid-column: 1 / 3; grid-row: 2; grid-template-columns: repeat(3, 1fr); }
    .exp-grid { grid-template-columns: 1fr; }
    .exp-section .container { max-width: 100%; }
    .timeline-section .container { max-width: 100%; overflow-x: auto; }
    .timeline-track { padding: 160px 0; }
    .tl-card { width: 180px; font-size: 0.85rem; }
    .tl-label { font-size: 0.95rem; }
    .portfolio-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 200px 160px 160px; }
    .portfolio-item.featured { grid-column: span 2; grid-row: 1; height: 200px; }
    .portfolio-item.col-2-row-1 { grid-column: 1; grid-row: 2; }
    .portfolio-item.col-3-row-1 { grid-column: 2; grid-row: 2; }
    .portfolio-item.col-4-row-1 { grid-column: 1; grid-row: 3; display: grid; }
    .portfolio-row2-wrapper { grid-column: 2; grid-row: 3; flex-direction: column; gap: 0; }
    .portfolio-item.col-23-row-2,
    .portfolio-item.col-4-row-2 { border-radius: 0; flex: 1; min-height: 80px; }
    .radios-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
    .footer-mid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .footer-brand-col { grid-column: span 2; }
}

@media (max-width: 640px) {
    .section { padding: 64px 0; }
    .nav-links { display: none; }
    .nav-contact-btn { display: none; }
    .hamburger { display: flex; }
    .nav-inner { padding: 0 20px; }
    .hero-content { padding: var(--nav-h) 16px 0; }
    .line-1, .line-2 { font-size: clamp(40px, 14vw, 72px); }
    .line-3 { font-size: clamp(36px, 13vw, 68px); }
    .highlight-pill { padding: 2px 18px; }
    .scroll-cta { margin-top: 32px; }
    .about .container { padding: 0 16px; }
    .about-wrapper { grid-template-columns: 1fr; grid-template-rows: auto auto auto; gap: 12px; }
    .about-bio { grid-column: 1; grid-row: 1; padding: 20px; }
    .about-socials { grid-column: 1; grid-row: 2; flex-direction: row; flex-wrap: wrap; padding: 16px; }
    .social-grid { display: flex; flex-wrap: nowrap; gap: 8px; flex: 1; }
    .social-btn { width: 44px; height: 44px; flex-shrink: 0; }
    .cv-btn { flex-shrink: 0; width: auto; padding: 10px 16px; }
    .stats-row { grid-column: 1; grid-row: 3; grid-template-columns: 1fr; gap: 10px; }
    .stat { flex-direction: row; align-items: center; padding: 16px 20px; gap: 16px; }
    .stat-icon-box { margin-bottom: 0; flex-shrink: 0; }
    .stat-text { flex-direction: row; align-items: baseline; gap: 6px; }
    .stat-val { font-size: 1.4rem; }
    .timeline-section { padding: 0 0 64px; }
    .timeline-section .container { padding: 0 20px; overflow-x: visible; }
    .timeline-track { padding: 32px 0 16px; overflow: visible; min-width: unset; }
    .timeline-line { top: 0; bottom: 0; left: 16px; right: auto; transform: none; width: 3px; height: auto; }
    .timeline-progress { width: 100% !important; height: 0; animation: none; background: linear-gradient(180deg, #0019FF, #4E00A8, #0019FF); transition: height 1.5s cubic-bezier(0.22, 1, 0.36, 1); }
    .timeline-progress.animated { height: 90%; }
    .timeline-points { flex-direction: column; align-items: flex-start; gap: 0; padding-left: 16px; }
    .timeline-point { flex-direction: row; align-items: flex-start; width: 100%; padding: 24px 0; gap: 0; }
    .tl-dot { position: relative; z-index: 2; flex-shrink: 0; margin-right: 0; transform: translateX(-50%); }
    .tl-year { position: static; top: auto; bottom: auto; order: 2; margin-left: 20px; white-space: nowrap; align-self: center; font-size: 0.78rem; }
    .tl-year.tl-year-above { top: auto; bottom: auto; position: static; }
    .tl-card, .tl-card.tl-above, .tl-card.tl-below { position: static; transform: none; top: auto; bottom: auto; left: auto; width: calc(100% - 56px); margin-left: 20px; order: 3; text-align: left; padding-top: 20px; margin-top: 8px; }
    .tl-school { position: static; transform: none; top: auto; left: auto; display: inline-flex; margin-bottom: 10px; font-size: 0.65rem; padding: 3px 10px; white-space: normal; text-align: left; }
    .timeline-point:not(.has-info) { padding: 16px 0; }
    .timeline-point:not(.has-info) .tl-year { align-self: center; }
    .tl-label { font-size: 0.9rem; text-align: left; }
    .tl-sub { text-align: left; }
    .exp-section .container { padding: 0 16px; }
    .exp-grid { grid-template-columns: 1fr; gap: 16px; }
    .exp-card, .skills-card { padding: 20px; }
    .card-header h2 { font-size: 1.2rem; }
    .exp-company { gap: 12px; }
    .company-logo-wrap { width: 80px; height: 80px; }
    .exp-title { font-size: 0.95rem; }
    .exp-desc { font-size: 0.8rem; }
    .skills-card h2 { font-size: 1.2rem; }
    .portfolio-section .container { padding: 0 16px; }
    .portfolio-grid { grid-template-columns: 1fr; grid-template-rows: 220px 150px 150px 150px 150px 150px; }
    .portfolio-item.featured { grid-column: 1; grid-row: 1; height: 220px; }
    .portfolio-item.col-2-row-1 { grid-column: 1; grid-row: 2; }
    .portfolio-item.col-3-row-1 { grid-column: 1; grid-row: 3; }
    .portfolio-item.col-4-row-1 { grid-column: 1; grid-row: 4; display: grid; }
    .portfolio-row2-wrapper { grid-column: 1; grid-row: 5 / 7; flex-direction: column; gap: 12px; }
    .portfolio-item.col-23-row-2, .portfolio-item.col-4-row-2 { border-radius: 18px; height: 150px; flex: none; }
    .radios-section .container { padding: 0 16px; }
    .radios-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .radio-logo { width: 48px; height: 48px; border-radius: 10px; }
    .contact-section .container { padding: 0 16px; }
    .contact-banner { flex-direction: column; text-align: center; padding: 28px 20px; gap: 16px; }
    .contact-text { text-align: center; }
    .btn-contact { width: 100%; justify-content: center; }
    .footer-inner { padding: 0 16px; }
    .footer-mid { grid-template-columns: 1fr 1fr; gap: 24px; padding: 32px 0; }
    .footer-brand-col { grid-column: span 2; }
    .footer-bottom { flex-direction: column; text-align: center; gap: 12px; padding-bottom: 24px; }
    .footer-badges { justify-content: center; }
}

@media (max-width: 380px) {
    .line-1, .line-2 { font-size: clamp(32px, 12vw, 56px); }
    .line-3 { font-size: clamp(28px, 11vw, 48px); }
    .radios-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .about-socials { flex-direction: column; }
    .social-grid { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
    .social-btn { width: 100%; aspect-ratio: 1; }
    .footer-mid { grid-template-columns: 1fr; }
    .footer-brand-col { grid-column: span 1; }
}