/* ==========================================================================
   LATH MEMEL CHRISTIAN — PORTFOLIO DESIGN SYSTEM
   Modern Cyber/Executive Tech Aesthetic
   ========================================================================== */

/* ─── 1. VARIABLES & DESIGN TOKENS ─────────────────────────────────────── */
:root {
    /* Color Palette */
    --bg-dark: #070a11;
    --bg-darker: #04060a;
    --bg-card: rgba(13, 20, 36, 0.75);
    --bg-card-hover: rgba(20, 31, 56, 0.85);
    --bg-glass: rgba(255, 255, 255, 0.03);

    /* Text Colors */
    --text-light: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;

    /* Accents */
    --accent-cyan: #00f2fe;
    --accent-cyan-glow: rgba(0, 242, 254, 0.35);
    --accent-emerald: #10b981;
    --accent-emerald-glow: rgba(16, 185, 129, 0.35);
    --accent-blue: #3b82f6;
    --accent-purple: #8b5cf6;

    /* Borders */
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-glass-hover: rgba(0, 242, 254, 0.35);

    /* Typography */
    --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Transitions & Shadows */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-glow: 0 0 30px rgba(0, 242, 254, 0.2);
    --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
}

/* ─── 2. RESET & BASE ───────────────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    color-scheme: dark;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: var(--font-sans);
    line-height: 1.65;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

::selection {
    background: var(--accent-cyan);
    color: var(--bg-dark);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-darker);
}
::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-cyan);
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: #ffffff;
    line-height: 1.25;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

strong {
    color: #ffffff;
    font-weight: 600;
}

.text-accent { color: var(--accent-cyan); }
.text-cyan { color: var(--accent-cyan); }
.text-emerald { color: var(--accent-emerald); }
.text-blue { color: var(--accent-blue); }
.text-purple { color: var(--accent-purple); }
.text-muted { color: var(--text-muted); }
.mx-auto { margin-left: auto; margin-right: auto; }
.text-center { text-align: center; }

/* Background Glow Elements */
.ambient-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.45;
}
.glow-1 {
    width: 500px;
    height: 500px;
    top: -150px;
    left: -150px;
    background: radial-gradient(circle, var(--accent-cyan-glow), transparent 70%);
}
.glow-2 {
    width: 650px;
    height: 650px;
    top: 40%;
    right: -200px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.25), transparent 70%);
}
.glow-3 {
    width: 500px;
    height: 500px;
    bottom: 5%;
    left: 10%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.2), transparent 70%);
}

.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}

.section-padding {
    padding: 6.5rem 0;
    position: relative;
}

.bg-darker {
    background-color: var(--bg-darker);
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-cyan);
    letter-spacing: 0.15em;
    padding: 0.35rem 1rem;
    background: rgba(0, 242, 254, 0.1);
    border: 1px solid rgba(0, 242, 254, 0.25);
    border-radius: 9999px;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.section-title {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* ─── 3. GLASS CARD COMPONENT ───────────────────────────────────────────── */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: 18px;
    box-shadow: var(--shadow-card);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
}

.glass-card:hover {
    border-color: var(--border-glass-hover);
    transform: translateY(-4px);
    box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.8), 0 0 25px rgba(0, 242, 254, 0.12);
}

/* ─── 4. BUTTONS & CTAS ─────────────────────────────────────────────────── */
.btn-primary-glow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
    color: #040812 !important;
    font-weight: 700;
    padding: 0.75rem 1.6rem;
    border-radius: 12px;
    font-size: 0.95rem;
    box-shadow: 0 4px 20px rgba(0, 242, 254, 0.35);
    transition: var(--transition-fast);
    border: none;
    cursor: pointer;
}

.btn-primary-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(0, 242, 254, 0.55);
    filter: brightness(1.08);
}

.btn-secondary-glass {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    color: #ffffff;
    font-weight: 600;
    padding: 0.75rem 1.6rem;
    border-radius: 12px;
    font-size: 0.95rem;
    border: 1px solid var(--border-glass);
    transition: var(--transition-fast);
    cursor: pointer;
}

.btn-secondary-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 0.95rem 2rem;
    font-size: 1.05rem;
    border-radius: 14px;
}

.btn-icon-round {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: #ffffff;
    font-size: 1.2rem;
    transition: var(--transition-fast);
}

.btn-icon-round:hover {
    background: var(--accent-cyan);
    color: var(--bg-dark);
    border-color: var(--accent-cyan);
    transform: scale(1.08);
    box-shadow: 0 0 20px var(--accent-cyan-glow);
}

/* ─── 5. HEADER & NAVIGATION ────────────────────────────────────────────── */
.navbar-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(7, 10, 17, 0.75);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border-glass);
    transition: var(--transition-fast);
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-mono);
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.logo-terminal-prompt {
    color: var(--accent-cyan);
    font-weight: 900;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-item {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
    padding: 0.4rem 0;
}

.nav-item:hover, .nav-item.active {
    color: #ffffff;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--accent-cyan);
    transition: var(--transition-fast);
    border-radius: 2px;
}

.nav-item:hover::after {
    width: 100%;
}

.terminal-link {
    color: var(--accent-cyan);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    background: rgba(0, 242, 254, 0.08);
    padding: 0.35rem 0.85rem !important;
    border-radius: 8px;
    border: 1px solid rgba(0, 242, 254, 0.2);
}

.terminal-link:hover {
    background: rgba(0, 242, 254, 0.18);
}

.terminal-link::after { display: none !important; }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--border-glass);
    color: #ffffff;
    font-size: 1.25rem;
    padding: 0.6rem 0.8rem;
    border-radius: 10px;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    background: rgba(7, 10, 17, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    padding: 1.5rem;
    gap: 1.25rem;
}

.mobile-nav-link {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-muted);
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-nav-link:hover {
    color: var(--accent-cyan);
    padding-left: 0.5rem;
}

.mobile-menu-cta {
    margin-top: 1rem;
}

/* ─── 6. HERO SECTION ───────────────────────────────────────────────────── */
.section-hero {
    padding-top: 150px;
    padding-bottom: 90px;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3.5rem;
    align-items: center;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 0.4rem 1rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #34d399;
    margin-bottom: 1.5rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-emerald);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-emerald);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-title {
    font-size: clamp(2.8rem, 5.5vw, 4.4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.08;
    margin-bottom: 1rem;
}

.gradient-text {
    background: linear-gradient(135deg, #00f2fe 0%, #4facfe 50%, #90e0ef 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-role-wrapper {
    font-family: var(--font-mono);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--accent-emerald);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.role-prefix {
    color: var(--text-dim);
}

.role-typewriter::after {
    content: '|';
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero-description {
    font-size: 1.12rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 2.2rem;
    max-width: 600px;
}

.hero-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    padding: 1.2rem;
    border-radius: 16px;
}

.stat-card {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 800;
    font-family: var(--font-mono);
    color: #ffffff;
    line-height: 1.1;
}

.stat-label {
    font-size: 0.78rem;
    color: var(--text-dim);
    margin-top: 0.3rem;
    line-height: 1.3;
}

.hero-cta-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ─── 7. SERVER RACK MOCKUP VISUAL ──────────────────────────────────────── */
.server-rack-window {
    background: #080d19;
    border: 1px solid rgba(0, 242, 254, 0.25);
    border-radius: 18px;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9), 0 0 30px rgba(0, 242, 254, 0.15);
    overflow: hidden;
    font-family: var(--font-mono);
}

.window-header {
    background: #0d1526;
    padding: 0.85rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-glass);
}

.window-controls {
    display: flex;
    gap: 6px;
}

.ctrl-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.ctrl-dot.red { background-color: #ef4444; }
.ctrl-dot.yellow { background-color: #f59e0b; }
.ctrl-dot.green { background-color: #10b981; }

.window-title {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.window-live-tag {
    font-size: 0.65rem;
    font-weight: 800;
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-emerald);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.window-body {
    padding: 1.5rem;
}

.rack-metric-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
    margin-bottom: 1.5rem;
}

.rack-metric {
    background: rgba(255, 255, 255, 0.03);
    padding: 0.75rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.metric-top {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: var(--text-dim);
    margin-bottom: 0.4rem;
}

.metric-val {
    font-weight: 700;
}

.progress-bar {
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue));
    border-radius: 3px;
}

.services-list-title {
    font-size: 0.72rem;
    color: var(--text-dim);
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.services-monitor-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.service-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.55rem 0.75rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 0.8rem;
}

.srv-status.ok {
    color: var(--accent-emerald);
    margin-right: 0.5rem;
}

.srv-name {
    flex: 1;
    color: #e2e8f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.srv-ping {
    font-size: 0.75rem;
    color: var(--accent-cyan);
    margin-left: 0.5rem;
}

.rack-console-output {
    background: #04070e;
    padding: 0.85rem;
    border-radius: 8px;
    border-left: 3px solid var(--accent-cyan);
    font-size: 0.75rem;
    color: #cbd5e1;
    line-height: 1.5;
}

/* ─── 8. PROFIL GRID ────────────────────────────────────────────────────── */
.profil-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
}

.profil-card {
    padding: 2.2rem;
}

.card-icon-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.icon-bubble {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}

.icon-bubble.cyan { background: rgba(0, 242, 254, 0.12); color: var(--accent-cyan); border: 1px solid rgba(0, 242, 254, 0.3); }
.icon-bubble.emerald { background: rgba(16, 185, 129, 0.12); color: var(--accent-emerald); border: 1px solid rgba(16, 185, 129, 0.3); }
.icon-bubble.blue { background: rgba(59, 130, 246, 0.12); color: var(--accent-blue); border: 1px solid rgba(59, 130, 246, 0.3); }
.icon-bubble.purple { background: rgba(139, 92, 246, 0.12); color: var(--accent-purple); border: 1px solid rgba(139, 92, 246, 0.3); }

.profil-card p {
    color: var(--text-muted);
    font-size: 0.98rem;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

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

.chip {
    font-size: 0.78rem;
    font-family: var(--font-mono);
    padding: 0.3rem 0.75rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    color: #e2e8f0;
}

/* ─── 9. EXPÉRIENCES (TIMELINE) ─────────────────────────────────────────── */
.timeline-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline-item {
    position: relative;
    display: flex;
    gap: 2.5rem;
    margin-bottom: 3.5rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.marker-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 3px solid var(--accent-cyan);
    box-shadow: 0 0 15px var(--accent-cyan);
    z-index: 2;
}

.marker-line {
    width: 2px;
    flex: 1;
    background: linear-gradient(180deg, var(--accent-cyan), rgba(255, 255, 255, 0.05));
    margin-top: 8px;
}

.timeline-card {
    flex: 1;
    padding: 2.2rem;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.company-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin-bottom: 0.3rem;
}

.timeline-role {
    font-size: 1.45rem;
}

.timeline-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 0.85rem;
    color: var(--text-dim);
    gap: 0.25rem;
}

.timeline-intro {
    font-size: 1.02rem;
    color: #cbd5e1;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.timeline-points {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    margin-bottom: 1.75rem;
}

.point-item {
    display: flex;
    gap: 0.85rem;
    font-size: 0.94rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.point-item i {
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 1.25rem;
}

.tag {
    font-size: 0.76rem;
    font-family: var(--font-mono);
    background: rgba(0, 242, 254, 0.06);
    border: 1px solid rgba(0, 242, 254, 0.15);
    color: var(--accent-cyan);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
}

/* ─── 10. PROJETS PHARES ────────────────────────────────────────────────── */
.filter-tabs-wrapper {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    color: var(--text-muted);
    padding: 0.6rem 1.4rem;
    border-radius: 9999px;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--accent-cyan);
    color: var(--bg-dark);
    border-color: var(--accent-cyan);
    box-shadow: 0 0 18px var(--accent-cyan-glow);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

.project-card {
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.project-card.featured-project {
    border-color: rgba(16, 185, 129, 0.4);
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.06) 0%, var(--bg-card) 40%);
}

.project-badge {
    align-self: flex-start;
    font-size: 0.75rem;
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--text-dim);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    margin-bottom: 1.25rem;
}

.project-badge.star {
    color: var(--accent-emerald);
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.35);
}

.project-icon-box {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 1.25rem;
}
.project-icon-box.cyan { background: rgba(0, 242, 254, 0.12); color: var(--accent-cyan); }
.project-icon-box.emerald { background: rgba(16, 185, 129, 0.12); color: var(--accent-emerald); }
.project-icon-box.blue { background: rgba(59, 130, 246, 0.12); color: var(--accent-blue); }
.project-icon-box.purple { background: rgba(139, 92, 246, 0.12); color: var(--accent-purple); }

.project-title {
    font-size: 1.25rem;
    margin-bottom: 0.85rem;
    line-height: 1.35;
}

.project-desc {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.project-highlights {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: #cbd5e1;
    margin-bottom: 1.5rem;
}

.project-highlights i {
    color: var(--accent-cyan);
    font-size: 0.75rem;
}

.project-tech-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 1.2rem;
}

.project-tech-pills span {
    font-size: 0.74rem;
    font-family: var(--font-mono);
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
}

/* ─── 11. MATRICE DES COMPÉTENCES ───────────────────────────────────────── */
.skills-category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.skill-category-card {
    padding: 2rem 1.6rem;
}

.cat-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 1rem;
}

.cat-header i {
    font-size: 1.5rem;
}

.cat-header h3 {
    font-size: 1.15rem;
}

.skills-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.skills-list li {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.65rem;
    line-height: 1.5;
}

.skill-bullet {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--accent-cyan);
    flex-shrink: 0;
}

/* ─── 12. TERMINAL INTERACTIF SYSADMIN ──────────────────────────────────── */
.terminal-box {
    max-width: 960px;
    margin: 0 auto;
    background: #050811;
    border: 1px solid rgba(0, 242, 254, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 30px rgba(0, 242, 254, 0.15);
    font-family: var(--font-mono);
    border-radius: 16px;
    overflow: hidden;
}

.terminal-bar {
    background: #090e1c;
    padding: 0.85rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.term-dots {
    display: flex;
    gap: 7px;
}

.term-dots .dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}
.term-dots .dot.red { background: #ef4444; }
.term-dots .dot.yellow { background: #f59e0b; }
.term-dots .dot.green { background: #10b981; }

.term-title {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.btn-clear-term {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-dim);
    font-size: 0.75rem;
    font-family: var(--font-mono);
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-clear-term:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

.terminal-body {
    padding: 1.5rem;
    min-height: 280px;
    max-height: 480px;
    overflow-y: auto;
    font-size: 0.92rem;
    color: #cbd5e1;
    line-height: 1.65;
}

.term-welcome {
    margin-bottom: 1.25rem;
    color: var(--text-muted);
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
}

.term-input-line {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-top: 0.75rem;
}

.term-prompt {
    color: var(--accent-emerald);
    font-weight: 700;
    white-space: nowrap;
}

.term-input {
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-family: var(--font-mono);
    font-size: 0.92rem;
    width: 100%;
}

.term-history-entry {
    margin-bottom: 0.85rem;
}

.term-cmd-echo {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--accent-cyan);
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.term-response {
    color: #e2e8f0;
    padding-left: 0.5rem;
    border-left: 2px solid rgba(0, 242, 254, 0.3);
    margin-bottom: 0.5rem;
}

.terminal-quick-cmds {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.25rem;
    background: #080c18;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    flex-wrap: wrap;
    font-size: 0.82rem;
    color: var(--text-dim);
}

.quick-cmd-btn {
    background: rgba(0, 242, 254, 0.08);
    border: 1px solid rgba(0, 242, 254, 0.2);
    color: var(--accent-cyan);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    padding: 0.25rem 0.7rem;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.quick-cmd-btn:hover {
    background: var(--accent-cyan);
    color: var(--bg-dark);
}

/* ─── 13. DUAL SECTION FORMATION & VALEURS ──────────────────────────────── */
.info-dual-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.dual-card {
    padding: 2.2rem;
}

.dual-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.dual-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.dual-item {
    border-left: 2px solid var(--accent-cyan);
    padding-left: 1rem;
}

.item-title {
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 0.2rem;
}

.item-sub {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.qualities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
}

.quality-chip {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: #e2e8f0;
}

.quality-chip i {
    color: var(--accent-emerald);
}

/* ─── 14. CONTACT CARD ──────────────────────────────────────────────────── */
.contact-card {
    padding: 4rem 3rem;
    border-color: rgba(0, 242, 254, 0.3);
    background: linear-gradient(180deg, rgba(13, 20, 36, 0.9) 0%, rgba(7, 10, 17, 0.95) 100%);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin: 3rem 0;
}

.contact-item-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: 14px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    transition: var(--transition-fast);
}

.contact-item-box:hover {
    border-color: var(--accent-cyan);
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.06);
}

.contact-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}
.contact-icon.cyan { background: rgba(0, 242, 254, 0.12); color: var(--accent-cyan); }
.contact-icon.emerald { background: rgba(16, 185, 129, 0.12); color: var(--accent-emerald); }
.contact-icon.blue { background: rgba(59, 130, 246, 0.12); color: var(--accent-blue); }
.contact-icon.purple { background: rgba(139, 92, 246, 0.12); color: var(--accent-purple); }

.c-label {
    font-size: 0.78rem;
    font-family: var(--font-mono);
    color: var(--text-dim);
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.25rem;
}

.c-val {
    font-weight: 700;
    font-size: 0.98rem;
    color: #ffffff;
    word-break: break-word;
}

.contact-banner-cta {
    background: rgba(0, 242, 254, 0.05);
    border: 1px solid rgba(0, 242, 254, 0.2);
    padding: 2rem 2.5rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.banner-text h3 {
    font-size: 1.35rem;
    margin-bottom: 0.35rem;
}

.banner-text p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ─── 15. FOOTER ────────────────────────────────────────────────────────── */
.footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--border-glass);
    padding: 4.5rem 0 2.5rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 3rem;
    flex-wrap: wrap;
}

.footer-desc {
    color: var(--text-dim);
    font-size: 0.9rem;
    max-width: 380px;
    margin-top: 0.85rem;
    line-height: 1.6;
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1.5rem;
}

.footer-links {
    display: flex;
    gap: 1.75rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--accent-cyan);
}

.footer-copyright {
    font-size: 0.82rem;
    color: var(--text-dim);
    text-align: right;
    line-height: 1.6;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(13, 20, 36, 0.85);
    border: 1px solid rgba(0, 242, 254, 0.3);
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    transition: var(--transition-fast);
    opacity: 0;
    pointer-events: none;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}

.back-to-top:hover {
    background: var(--accent-cyan);
    color: var(--bg-dark);
    transform: translateY(-3px);
}

/* ─── 16. RESPONSIVE BREAKPOINTS ────────────────────────────────────────── */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .hero-visual {
        max-width: 600px;
        margin: 0 auto;
        width: 100%;
    }
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .skills-category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-toggle { display: block; }
    .mobile-menu.open { display: flex; }

    .hero-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

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

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

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

    .info-dual-grid {
        grid-template-columns: 1fr;
    }

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

    .contact-banner-cta {
        flex-direction: column;
        text-align: center;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-right {
        align-items: center;
    }

    .footer-copyright {
        text-align: center;
    }

    .timeline-item {
        gap: 1.25rem;
    }

    .timeline-card {
        padding: 1.5rem;
    }

    .timeline-header {
        flex-direction: column;
        gap: 0.5rem;
    }

    .timeline-meta {
        align-items: flex-start;
    }
}
