:root {
    --bg-color: #0a0a0a;
    --bg-secondary: #111111;
    --text-color: #e0e0e0;
    --text-muted: #888888;
    --accent-color: #00ff41;
    /* Cyberpunk Green */
    --accent-secondary: #00f3ff;
    /* Cyber Cyan */
    --accent-dim: rgba(0, 255, 65, 0.1);
    --border-color: #333333;

    --font-main: 'Space Grotesk', sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;

    --container-width: 1200px;
    --header-height: 80px;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    font-weight: 300;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Dot Grid Canvas (controlled by dotgrid.js) */
#dot-grid-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

ul {
    list-style: none;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Site Header - Full Width */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.site-header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.section-title {
    font-family: var(--font-main);
    font-size: 2rem;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-title::after {
    content: "";
    display: block;
    height: 1px;
    background: var(--border-color);
    width: 200px;
}

.section-number {
    font-family: var(--font-main);
    color: var(--accent-color);
    font-size: 1.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    font-family: var(--font-main);
    font-size: 0.9rem;
    cursor: pointer;
    border: 1px solid transparent;
    text-decoration: none;
}

.btn-primary {
    background: transparent;
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.btn-primary:hover {
    background: var(--accent-dim);
    box-shadow: 0 0 15px var(--accent-dim);
}

.btn-outline {
    border-color: var(--text-color);
    color: var(--text-color);
    background: transparent;
}

.btn-outline:hover {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

/* Scanline Effect */
.scanline {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0),
            rgba(255, 255, 255, 0) 50%,
            rgba(0, 0, 0, 0.1) 50%,
            rgba(0, 0, 0, 0.1));
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.3;
}

/* Header & Nav */
header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

header.scrolled {
    height: 60px;
    padding: 0 20px;
    background: rgba(10, 10, 10, 0.95);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.mobile-menu-toggle {
    display: none;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    z-index: 101;
    padding: 8px 14px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
    align-items: center;
    gap: 0;
}

.mobile-menu-toggle:hover {
    border-color: var(--accent-color);
    box-shadow: 0 0 15px var(--accent-dim);
}

.cmd-prompt {
    color: var(--accent-color);
    margin-right: 6px;
    font-weight: 600;
}

.cmd-text {
    color: var(--text-color);
    transition: all 0.2s ease;
}

.cmd-cursor {
    color: var(--accent-color);
    animation: cursor-blink 1s infinite;
    margin-left: 1px;
}

@keyframes cursor-blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

/* Command prompt active state */
.mobile-menu-toggle.active {
    border-color: var(--accent-color);
    background: rgba(0, 255, 65, 0.05);
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 98;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--accent-color);
    letter-spacing: -1px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-family: var(--font-main);
    font-size: 0.85rem;
    color: var(--text-color);
    text-decoration: none;
}

.nav-links a:hover {
    color: var(--accent-color);
}

/* Active section indicator */
.nav-links a.active {
    color: var(--accent-color);
    position: relative;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-color);
    box-shadow: 0 0 8px var(--accent-color);
}

/* Special Case: Contact Button Active State (Glow instead of underline) */
.nav-links a.btn-nav.active {
    background: rgba(0, 255, 65, 0.1);
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.3);
    border-color: var(--accent-color);
}

.nav-links a.btn-nav.active::after {
    display: none !important;
}

.nav-links a span {
    color: var(--accent-color);
}

.btn-nav {
    border: 1px solid var(--accent-color);
    padding: 8px 16px;
    border-radius: 4px;
    color: var(--accent-color) !important;
    transition: all 0.3s ease;
}

.btn-nav:hover {
    background: var(--accent-dim);
    box-shadow: 0 0 15px var(--accent-dim);
}

.btn-lang {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 8px 12px;
    border-radius: 4px;
    font-family: var(--font-main);
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    margin-left: 10px;
    margin-right: 20px; /* Éloigner du bord droit */
}

.btn-lang:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-dim);
    text-shadow: 0 0 5px var(--accent-color);
}

/* Hero Section */
#hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
}

.hero-content {
    max-width: 800px;
}

/* Availability Badge - Small, discreet pill */
.availability-badge {
    display: inline-flex;
    align-items: flex-start; /* Aligner en haut pour le multilingue */
    gap: 8px;
    background: rgba(0, 255, 65, 0.08);
    border: 1px solid rgba(0, 255, 65, 0.25);
    padding: 8px 12px;
    border-radius: 20px;
    font-family: var(--font-main);
    font-size: 0.8rem;
    color: var(--accent-color);
    margin-bottom: 2rem;
    line-height: 1.4;
}

.status-dot {
    flex-shrink: 0;
    width: 6px;
    height: 6px;
    background: var(--accent-color);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-color);
    animation: pulse 2s infinite;
    margin-top: 5px; /* Alignement avec la première ligne de texte */
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

/* Hero Name - PRIMARY FOCUS */
.hero-name {
    font-family: var(--font-main);
    font-size: 3.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.75rem;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

/* Hero Title - Secondary, Green accent */
.hero-title {
    font-family: var(--font-main);
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.title-line {
    color: #e0e0e0;
    font-weight: 700;
}

.title-line.title-accent {
    color: #3CB371;
    font-weight: 400;
    font-size: 1.1rem;
    font-style: italic;
    text-shadow: 0 0 10px rgba(60, 179, 113, 0.3);
}

/* Hero Profile - Monospace subtitle */
.hero-profile {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: 400;
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

/* Bio Paragraph - Improved readability */
.hero-bio {
    font-size: 1.1rem;
    color: #d1d5db;
    max-width: 600px;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

/* CTA Group */
.cta-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Primary Solid Button - Filled background */
.btn-primary-solid {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #000000;
    font-weight: 600;
}

.btn-primary-solid:hover {
    background: #00cc34;
    border-color: #00cc34;
    box-shadow: 0 0 20px var(--accent-dim);
    transform: translateY(-2px);
}

/* Stack Section (Bento Grid) */
#stack {
    padding: 100px 20px;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.bento-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 8px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

/* .bento-card:hover removed to disable highlight */

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.card-header i {
    font-size: 1.5rem;
    color: var(--accent-color);
}

.card-header h4 {
    font-size: 1.2rem;
    font-weight: 600;
}

.skill-list li {
    font-family: var(--font-main);
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.skill-list li::before {
    content: ">";
    color: var(--accent-color);
    margin-right: 10px;
    font-size: 0.8rem;
}

/* Specific Grid Layouts */
.systems {
    grid-column: span 2;
}

.network {
    grid-column: span 1;
}

.virtualization {
    grid-column: span 1;
}

.scripting {
    grid-column: span 2;
}

/* Experience Section (Timeline) */
#experience {
    padding: 100px 20px;
}

.timeline {
    position: relative;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem 2rem 2rem 0; /* No left padding on container */
}

.timeline::before {
    content: "";
    position: absolute;
    left: 29px; /* Bar Center at 30px */
    top: 35px;
    bottom: 35px;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    padding-left: 60px; /* Space for graphic */
    margin-bottom: 2.5rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: 24px; /* Dot Center at 30px (24 + 6) */
    top: 4px;
    width: 12px;
    height: 12px;
    background: var(--bg-secondary);
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    z-index: 1;
}

.timeline-date {
    font-family: var(--font-main);
    color: var(--accent-color);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.timeline-content h4 {
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
}

.company {
    display: block;
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

/* Project Showcase (Terminal) */
#projects {
    padding: 100px 20px;
}

.project-card {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    padding: 2rem;
}

.terminal-window {
    background: #000;
    border-radius: 8px;
    border: 1px solid #333;
    font-family: var(--font-mono);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.terminal-header {
    background: #1a1a1a;
    padding: 10px;
    display: flex;
    gap: 8px;
    border-bottom: 1px solid #333;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.red {
    background: #ff5f56;
}

.yellow {
    background: #ffbd2e;
}

.green {
    background: #27c93f;
}

.terminal-body {
    padding: 20px;
    color: #ccc;
    font-size: 0.9rem;
}

.prompt {
    color: var(--accent-color);
}

.output {
    margin-top: 5px;
    color: #888;
}

.output.success {
    color: var(--accent-color);
    margin-top: 10px;
}

.project-info h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.project-info p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.project-tags li {
    font-family: var(--font-main);
    font-size: 0.8rem;
    color: var(--accent-color);
    background: rgba(0, 255, 65, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
}

/* About Section */
#about {
    padding: 50px 20px;
}

.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.bio-text {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
}

.bio-text p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.bio-text p:last-child {
    margin-bottom: 0;
}

.interests {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    height: fit-content;
}

.interests h4 {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.interest-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1rem;
    padding: 15px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.interest-item i {
    color: var(--accent-secondary);
}

/* Contact Section */
#contact {
    padding: 100px 20px;
    text-align: center;
}

.contact-box {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-box h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    white-space: nowrap; /* Force 1 seule ligne */
}

.contact-box p {
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.contact-box .big-btn {
    font-size: 1.2rem;
    padding: 16px 32px;
    width: 280px;
    text-align: center;
    justify-content: center;
}

.social-links {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.social-links a {
    color: var(--text-muted);
    font-size: 2rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
}

/* CV Download Button */
#cv-download-btn {
    margin-top: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

#cv-download-btn i {
    font-size: 1rem;
}

/* CV Modal */
.cv-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.cv-modal.active {
    display: flex;
}

.cv-modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    max-width: 350px;
    width: 90%;
    position: relative;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.cv-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.cv-modal-close:hover {
    color: var(--accent-color);
}

.cv-modal-content h3 {
    margin-bottom: 1.5rem;
    color: var(--text-color);
    font-size: 1.1rem;
}

.cv-modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cv-modal-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 12px 24px;
    text-decoration: none;
}

/* Client Recon Card */
.client-recon {
    max-width: var(--container-width);
    margin: 0 auto 0;
    padding: 0 20px;
}

.recon-header {
    background: #1a1a1a;
    border: 1px solid var(--border-color);
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.recon-title {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.recon-status {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--accent-color);
    animation: pulse 2s infinite;
}

.recon-body {
    background: #0d0d0d;
    border: 1px solid var(--border-color);
    border-radius: 0 0 8px 8px;
    padding: 15px 20px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

.recon-line {
    margin-bottom: 8px;
    color: var(--text-muted);
}

.recon-line:last-child {
    margin-bottom: 0;
}

.log-tag {
    color: var(--accent-secondary);
    margin-right: 8px;
}

.log-value {
    color: var(--accent-color);
    font-weight: 500;
}

/* Footer */
footer {
    padding: 2rem 0;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    border-top: 1px solid var(--border-color);
    margin-top: 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ping-widget {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 20px;
}

.ping-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-color);
    box-shadow: 0 0 8px var(--accent-color);
    animation: pulse 2s infinite;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.ping-dot.warning {
    background: #ff9800;
    box-shadow: 0 0 8px #ff9800;
}

.ping-dot.error {
    background: #ff5555;
    box-shadow: 0 0 8px #ff5555;
}

.ping-text {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Fixed Ping Widget - Top Right */
.ping-widget-fixed {
    position: fixed;
    top: calc(var(--header-height) + 10px);
    right: 20px;
    z-index: 50;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    pointer-events: auto;
    opacity: 0.85;
    transition: opacity 0.3s ease, border-color 0.3s ease;
}

.ping-widget-fixed:hover {
    opacity: 1;
    border-color: var(--accent-color);
    box-shadow: 0 4px 20px rgba(0, 255, 65, 0.2);
}

/* Language Fade Transition */
.fade-element {
    transition: opacity 0.3s ease-in-out;
    opacity: 1;
}

.fade-element.fade-out {
    opacity: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
        margin-right: 15px; /* Espacement supplémentaire bord droit */
    }

    .logo {
        margin-left: 15px; /* Espacement supplémentaire bord gauche */
    }

    .nav-links {
        display: flex;
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 80%;
        max-width: 300px;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: flex-start;
        justify-content: center;
        padding: 2rem 2.5rem;
        transition: right 0.25s ease;
        z-index: 99;
        border-left: 1px solid var(--border-color);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.7);
        gap: 0;
    }

    .nav-links.nav-active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
        margin: 0;
        padding: 0.8rem 0;
        opacity: 0;
        border-bottom: 1px solid rgba(51, 51, 51, 0.5);
    }

    /* Last nav item (before Contact) - remove bottom border */
    .nav-links li:nth-last-child(3) {
        border-bottom: none;
        margin-bottom: 1.5rem;
    }

    /* Contact and Language buttons - Stacked */
    .nav-links li:nth-last-child(2),
    .nav-links li:last-child {
        display: block;
        width: 100px;
        height: 45px;
        border-bottom: none;
        padding: 0 !important; /* Force padding 0 */
        margin: 0 !important; /* Force margin 0 global */
        align-self: flex-start;
        box-sizing: border-box;
    }

    /* Contact button specific */
    .nav-links li:nth-last-child(2) {
        margin-top: 2rem !important;
        margin-bottom: 0.8rem !important;
    }

    /* Language button specific */
    /* .nav-links li:last-child utilise les styles globaux définis plus haut */

    .nav-links a {
        text-decoration: none;
        font-size: 1.1rem;
        display: block;
        transition: all 0.3s ease;
    }

    .nav-links a:not(.btn-nav)::before {
        content: '>';
        color: var(--accent-color);
        margin-right: 12px;
        font-family: var(--font-mono);
        opacity: 0;
        transform: translateX(-10px);
        display: inline-block;
        transition: all 0.3s ease;
    }

    .nav-links a:not(.btn-nav):hover::before,
    .nav-links a:not(.btn-nav).active::before {
        opacity: 1;
        transform: translateX(0);
    }

    .nav-links .btn-nav,
    .nav-links .btn-lang {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
        padding: 0;
        margin: 0 !important; /* Force reset marge */
        font-size: 0.9rem;
        box-sizing: border-box;
    }

    @keyframes navLinkFade {
        from {
            opacity: 0;
            transform: translateX(20px);
        }

        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    .hero-name {
        font-size: 2.5rem;
    }

    .hero-title {
        font-size: 1.4rem;
    }

    .hero-profile {
        font-size: 0.85rem;
    }

    .bento-grid {
        grid-template-columns: 1fr;
    }

    .systems,
    .network,
    .virtualization,
    .scripting {
        grid-column: span 1;
    }

    .project-card {
        grid-template-columns: 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    /* Ping widget on mobile - positioned below header */
    .ping-widget-fixed {
        top: calc(var(--header-height) + 10px);
        right: 10px;
        padding: 5px 10px;
        font-size: 0.65rem;
    }

    /* Footer Responsive */
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .client-recon {
        padding: 0 15px;
    }

    .recon-body {
        font-size: 0.75rem;
        padding: 12px 15px;
    }

    /* Section Title Mobile Fit */
    .section-title {
        font-size: 1.5rem; /* Smaller font on mobile */
        gap: 0.8rem;
    }

    /* Make the line flexible on mobile so it doesn't force wrap */
    .section-title::after {
        width: auto;
        flex: 1;
        min-width: 20px;
    }

    /* Force details contact title to fit */
    .contact-box h2 {
        font-size: 1.25rem;
    }
}

/* Typewriter Name Effect Cursor */
.typing-cursor {
    border-right: 3px solid var(--accent-color);
    animation: blink-caret 0.75s step-end infinite;
    padding-right: 4px;
}

@keyframes blink-caret {
    0%, 100% { border-color: transparent }
    50% { border-color: var(--accent-color) }
}

/* Layout Switch Transition (Clean & Professional) */
body.switching-layout main,
body.switching-layout header {
    opacity: 0;
    transition: opacity 0.2s ease-out;
    pointer-events: none;
}

main, header {
    transition: opacity 0.3s ease-in;
}