/* Cyberpunk Theme CSS */
:root {
    --neon-blue: rgba(0, 243, 255, 0.7);
    --neon-pink: rgba(255, 0, 200, 0.6);
    --neon-green: rgba(0, 255, 159, 0.7);
    --neon-yellow: rgba(255, 255, 0, 0.6);
    --neon-red: rgba(255, 0, 0, 0.6);
    --dark-bg: #000000;
    --darker-bg: #050505;
    --terminal-green: rgba(0, 255, 0, 0.702);
    --text-color: rgba(220, 220, 220, 0.9);
    --window-bg: rgba(10, 10, 15, 0.7);
    --window-border: #0ff;
    --glitch-offset: 3px;
    --timeline-line-color: rgba(0, 243, 255, 0.5);
    --timeline-dot-color: rgba(255, 0, 200, 0.8);
    --timeline-item-bg: rgba(15, 15, 25, 0.7);
    --form-bg: rgba(15, 20, 30, 0.6);
    --input-bg: rgba(5, 10, 15, 0.7);
    --input-border: rgba(0, 243, 255, 0.4);
    --input-focus-border: rgba(0, 243, 255, 0.9);
    --button-bg: rgba(0, 0, 0, 0.8);
    --button-hover-bg: rgba(0, 50, 60, 0.8);
}

/* Base Styles */
.cyberpunk-body {
    margin: 0;
    padding: 0;
    background-color: var(--dark-bg);
    color: white;
    font-family: 'Orbitron', sans-serif;
    overflow-x: hidden;
    min-height: 100vh;
    max-width: 100vw;
    width: 100%;
    /*cursor: none;  Hide default cursor */
}

/* Neural Network Background */
.neural-network-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}


/* Main Container */
.cyberpunk-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
    width: 100%;
    overflow-x: hidden;
}

/* Header Styles */
.cyberpunk-header {
    padding: 20px 0;
    text-align: center;
    position: relative;
}

/* Glitch Text Effect */
.glitch-container {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.glitch {
    font-family: 'Press Start 2P', cursive;
    font-size: 3rem;
    font-weight: bold;
    text-transform: uppercase;
    position: relative;
    color: white;
    letter-spacing: 5px;
    animation: glitch-skew 1s infinite linear alternate-reverse;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    left: var(--glitch-offset);
    text-shadow: -2px 0 var(--neon-pink);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: calc(var(--glitch-offset) * -1);
    text-shadow: -2px 0 var(--neon-blue);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% {
        clip: rect(31px, 9999px, 94px, 0);
        transform: skew(0.85deg);
    }
    5% {
        clip: rect(70px, 9999px, 78px, 0);
        transform: skew(0.17deg);
    }
    10% {
        clip: rect(75px, 9999px, 90px, 0);
        transform: skew(0.4deg);
    }
    15% {
        clip: rect(12px, 9999px, 35px, 0);
        transform: skew(0.71deg);
    }
    20% {
        clip: rect(62px, 9999px, 78px, 0);
        transform: skew(0.99deg);
    }
    25% {
        clip: rect(72px, 9999px, 43px, 0);
        transform: skew(0.28deg);
    }
    30% {
        clip: rect(20px, 9999px, 87px, 0);
        transform: skew(0.71deg);
    }
    35% {
        clip: rect(89px, 9999px, 99px, 0);
        transform: skew(0.4deg);
    }
    40% {
        clip: rect(32px, 9999px, 30px, 0);
        transform: skew(0.03deg);
    }
    45% {
        clip: rect(83px, 9999px, 74px, 0);
        transform: skew(0.01deg);
    }
    50% {
        clip: rect(91px, 9999px, 11px, 0);
        transform: skew(0.01deg);
    }
    55% {
        clip: rect(81px, 9999px, 37px, 0);
        transform: skew(0.95deg);
    }
    60% {
        clip: rect(10px, 9999px, 98px, 0);
        transform: skew(0.08deg);
    }
    65% {
        clip: rect(95px, 9999px, 59px, 0);
        transform: skew(0.38deg);
    }
    70% {
        clip: rect(23px, 9999px, 67px, 0);
        transform: skew(0.14deg);
    }
    75% {
        clip: rect(13px, 9999px, 79px, 0);
        transform: skew(0.85deg);
    }
    80% {
        clip: rect(15px, 9999px, 23px, 0);
        transform: skew(0.63deg);
    }
    85% {
        clip: rect(84px, 9999px, 55px, 0);
        transform: skew(0.37deg);
    }
    90% {
        clip: rect(56px, 9999px, 81px, 0);
        transform: skew(0.56deg);
    }
    95% {
        clip: rect(40px, 9999px, 73px, 0);
        transform: skew(0.02deg);
    }
    100% {
        clip: rect(18px, 9999px, 40px, 0);
        transform: skew(0.43deg);
    }
}

@keyframes glitch-anim2 {
    0% {
        clip: rect(65px, 9999px, 65px, 0);
        transform: skew(0.02deg);
    }
    5% {
        clip: rect(7px, 9999px, 75px, 0);
        transform: skew(0.05deg);
    }
    10% {
        clip: rect(23px, 9999px, 35px, 0);
        transform: skew(0.99deg);
    }
    15% {
        clip: rect(74px, 9999px, 88px, 0);
        transform: skew(0.7deg);
    }
    20% {
        clip: rect(46px, 9999px, 98px, 0);
        transform: skew(0.13deg);
    }
    25% {
        clip: rect(46px, 9999px, 67px, 0);
        transform: skew(0.09deg);
    }
    30% {
        clip: rect(71px, 9999px, 82px, 0);
        transform: skew(0.99deg);
    }
    35% {
        clip: rect(89px, 9999px, 41px, 0);
        transform: skew(0.49deg);
    }
    40% {
        clip: rect(38px, 9999px, 27px, 0);
        transform: skew(0.86deg);
    }
    45% {
        clip: rect(57px, 9999px, 97px, 0);
        transform: skew(0.45deg);
    }
    50% {
        clip: rect(47px, 9999px, 79px, 0);
        transform: skew(0.12deg);
    }
    55% {
        clip: rect(26px, 9999px, 21px, 0);
        transform: skew(0.09deg);
    }
    60% {
        clip: rect(81px, 9999px, 47px, 0);
        transform: skew(0.02deg);
    }
    65% {
        clip: rect(42px, 9999px, 72px, 0);
        transform: skew(0.22deg);
    }
    70% {
        clip: rect(99px, 9999px, 21px, 0);
        transform: skew(0.8deg);
    }
    75% {
        clip: rect(37px, 9999px, 23px, 0);
        transform: skew(0.27deg);
    }
    80% {
        clip: rect(72px, 9999px, 22px, 0);
        transform: skew(0.31deg);
    }
    85% {
        clip: rect(67px, 9999px, 96px, 0);
        transform: skew(0.88deg);
    }
    90% {
        clip: rect(20px, 9999px, 98px, 0);
        transform: skew(0.49deg);
    }
    95% {
        clip: rect(12px, 9999px, 23px, 0);
        transform: skew(0.56deg);
    }
    100% {
        clip: rect(62px, 9999px, 51px, 0);
        transform: skew(0.09deg);
    }
}

@keyframes glitch-skew {
    0% {
        transform: skew(1deg);
    }
    10% {
        transform: skew(0deg);
    }
    20% {
        transform: skew(1deg);
    }
    30% {
        transform: skew(-1deg);
    }
    40% {
        transform: skew(0deg);
    }
    50% {
        transform: skew(-1deg);
    }
    60% {
        transform: skew(0deg);
    }
    70% {
        transform: skew(1deg);
    }
    80% {
        transform: skew(-1deg);
    }
    90% {
        transform: skew(0deg);
    }
    100% {
        transform: skew(-1deg);
    }
}

/* Navigation */
.cyberpunk-nav {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    font-size: x-large;
}

.cyberpunk-nav a {
    margin: 0 15px;
    padding: 10px 20px;
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    z-index: 1000;
}

.cyberpunk-nav a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--neon-blue);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease-out;
}

.cyberpunk-nav a:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.cyberpunk-nav a:hover {
    text-shadow: 0 0 10px var(--neon-blue);
}

/* Main Content Area */
.cyberpunk-main {
    flex: 1;
    padding: 30px;
    margin: 20px 0;
    position: relative;
}

/* Cyberpunk Windows */
.cyberpunk-window {
    background-color: var(--window-bg);
    border: 1px solid var(--window-border);
    box-shadow: 0 0 8px var(--window-border);
    padding: 20px;
    margin-bottom: 30px;
    position: relative;
    backdrop-filter: blur(3px);
    opacity: 0; /* Transition d'apparition gérée ailleurs, sans doute en JS */
    transform: translateY(20px);
}

.cyberpunk-window::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    z-index: -1;
    animation: border-animation 5s linear infinite;
    background-size: 400%;
}

@keyframes border-animation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.cyberpunk-window-header {
    border-bottom: 1px solid var(--neon-blue);
    padding-bottom: 10px;
    margin-bottom: 15px;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.9rem;
    color: var(--neon-blue);
}

.project-link {
    display: block;
    width: 100%;
    padding: 8px 10px;
    font-size: 12px;
    text-decoration: none;
    text-transform: uppercase;
    font-family: 'Share Tech Mono', monospace;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.edit-link {
    background-color: #ffcc00 !important;
    color: #000 !important;
}

.edit-link:hover {
    box-shadow: 0 0 10px rgba(255, 204, 0, 0.7);
    transform: translateY(-2px);
}

.delete-link {
    background-color: #ff3366 !important;
    color: #fff !important;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    text-transform: uppercase;
}

.delete-link:hover {
    box-shadow: 0 0 10px rgba(255, 51, 102, 0.7);
    transform: translateY(-2px);
}

.cyberpunk-window-content {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Dashboard */
.cyberpunk-dashboard {
    display: flex;
    justify-content: space-between;
    background-color: rgba(0, 0, 0, 0.8);
    border-top: 1px solid var(--neon-green);
    padding: 10px 20px;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.7rem;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.dashboard-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.dashboard-label {
    color: var(--neon-green);
    margin-bottom: 5px;
    font-size: 0.6rem;
}

.dashboard-value {
    color: white;
}

/* Language Selector Styles */
.language-selector {
    display: flex;
    gap: 8px;
}

.lang-link {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.75rem;
    padding: 2px 4px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    position: relative;
}

.lang-link:hover {
    color: var(--neon-blue);
    text-shadow: 0 0 5px var(--neon-blue);
    border-color: var(--neon-blue);
    box-shadow: 0 0 5px var(--neon-blue);
}

.lang-link.active-lang {
    color: var(--neon-green);
    border-color: var(--neon-green);
    text-shadow: 0 0 5px var(--neon-green);
    box-shadow: 0 0 5px var(--neon-green);
}

.lang-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    height: 1px;
    width: 0;
    background: currentColor;
    transition: width 0.3s ease;
}

.lang-link:hover::after {
    width: 100%;
}

/* Avatar Container */
.avatar-container {
    position: fixed;
    bottom: 60px;
    right: 20px;
    width: 150px;
    height: 150px;
    z-index: 50;
}

/* Terminal Text */
.cyberpunk-footer {
    padding: 15px 0;
    text-align: center;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.8rem;
    color: var(--terminal-green);
    margin-bottom: 50px; /* Space for the dashboard */
    z-index: 10;
}

.terminal-text {
    display: inline-block;
}

.cursor {
    display: inline-block;
    width: 10px;
    height: 15px;
    background-color: var(--terminal-green);
    animation: blink 1s infinite;
    margin-left: 5px;
}

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

/* Footer Legal Links */
.footer-legal-links {
    margin-top: 20px;
    padding-top: 15px;
}

.legal-separator {
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--terminal-green), transparent);
    margin: 0 auto 15px auto;
}

.legal-links {
    margin-bottom: 10px;
    font-family: 'Courier New', monospace;
    font-size: 0.7rem;
}

.footer-legal-link {
    color: rgba(0, 255, 136, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-legal-link:hover {
    color: var(--terminal-green);
    text-shadow: 0 0 5px var(--terminal-green);
    text-decoration: underline;
}

.legal-divider {
    color: rgba(0, 255, 136, 0.5);
    margin: 0 8px;
    font-weight: bold;
}

.footer-copyright {
    margin-top: 10px;
}

.copyright-text {
    color: rgba(0, 255, 136, 0.5);
    font-family: 'Courier New', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.5px;
}

/* Tables pour les pages légales */

.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: rgba(0, 40, 80, 0.2);
    border: 1px solid #00ff88;
}

.legal-table th {
    background: rgba(0, 255, 136, 0.2);
    color: #88ffaa;
    text-shadow: 0 0 3px rgba(136, 255, 170, 0.5);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #00ff88;
}

.legal-table td {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid rgba(0, 255, 136, 0.3);
    color: #ccffdd;
}

.legal-table tr:hover {
    background: rgba(0, 255, 136, 0.05);
}

/* Responsive adjustments for legal pages */
@media (max-width: 768px) {
    .legal-page {
        padding: 1rem;
    }
    
    .legal-title {
        font-size: 1.8rem;
        letter-spacing: 2px;
    }
    
    .legal-section {
        padding: 1rem;
        margin: 1.5rem 0;
    }
    
    .legal-section h3 {
        font-size: 1.2rem;
        letter-spacing: 1px;
    }
}

/* Loading Messages */
.loading-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--neon-pink);
    padding: 20px;
    color: var(--neon-pink);
    font-family: 'Press Start 2P', cursive;
    z-index: 1000;
    display: none;
}

/* Dashboard Styles */
.status-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 10px;
}

.status-item {
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--neon-blue);
    padding: 15px;
    border-radius: 3px;
}

.status-label {
    color: var(--neon-blue);
    font-size: 0.8rem;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 5px;
}

.progress-fill {
    height: 100%;
    background-color: var(--neon-green);
    border-radius: 4px;
    transition: width 0.5s ease, background-color 0.5s ease;
}

.progress-text {
    font-size: 0.8rem;
    color: white;
}

/* Terminal Logs */
.terminal-logs {
    background-color: rgba(0, 0, 0, 0.7);
    border: 1px solid var(--neon-green);
    padding: 15px;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    height: 300px;
    overflow-y: auto;
    color: var(--terminal-green);
}

.log-entry {
    margin-bottom: 8px;
    line-height: 1.4;
    transition: all 0.3s ease;
}

.log-time {
    color: #888;
}

.log-level {
    font-weight: bold;
    padding: 2px 5px;
    border-radius: 3px;
    margin: 0 5px;
}

.log-info {
    color: var(--neon-blue);
}

.log-warning {
    color: var(--neon-yellow);
}

.log-error {
    color: var(--neon-pink);
}

.log-success {
    color: var(--neon-green);
}

.log-glitch {
    animation: log-glitch-anim 0.3s ease;
}

@keyframes log-glitch-anim {
    0% { transform: translateX(0); }
    25% { transform: translateX(5px); }
    50% { transform: translateX(-5px); }
    75% { transform: translateX(3px); }
    100% { transform: translateX(0); }
}

/* Neural Map */
.neural-map-container {
    width: 100%;
    height: 300px;
    background-color: rgba(0, 0, 0, 0.7);
    border: 1px solid var(--neon-blue);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

#neural-map {
    width: 100%;
    height: 100%;
}

/* Control Panel */
.control-panel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.control-section {
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--neon-pink);
    padding: 15px;
    border-radius: 3px;
}

.control-title {
    color: var(--neon-pink);
    font-size: 0.9rem;
    margin-top: 0;
    margin-bottom: 15px;
    text-align: center;
    letter-spacing: 1px;
}

.control-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cyberpunk-button {
    background-color: transparent;
    border: 1px solid var(--neon-blue);
    color: var(--neon-blue);
    padding: 8px 15px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cyberpunk-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 243, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.cyberpunk-button:hover {
    background-color: rgba(0, 243, 255, 0.1);
    box-shadow: 0 0 10px var(--neon-blue);
}

.cyberpunk-button:hover::before {
    left: 100%;
}

.cyberpunk-button:active,
.button-active {
    background-color: rgba(0, 243, 255, 0.2);
    transform: scale(0.98);
}

.control-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--neon-green);
    color: var(--neon-green);
    padding: 15px 25px;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.8rem;
    z-index: 1000;
    text-align: center;
    animation: message-appear 0.3s ease;
}

.message-fade {
    animation: message-fade 0.5s ease forwards;
}

@keyframes message-appear {
    from { opacity: 0; transform: translate(-50%, -60%); }
    to { opacity: 1; transform: translate(-50%, -50%); }
}

@keyframes message-fade {
    from { opacity: 1; transform: translate(-50%, -50%); }
    to { opacity: 0; transform: translate(-50%, -40%); }
}



/* CV Styles */
.profile-container {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
}

.profile-avatar {
    width: 150px;
    height: 150px;
    border: 2px solid var(--neon-blue);
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    background-color: rgba(0, 0, 0, 0.7);
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.avatar-placeholder::before {
    content: '';
    position: absolute;
    width: 80%;
    height: 80%;
    border: 2px solid var(--neon-green);
    border-radius: 50%;
}

.avatar-placeholder::after {
    content: '';
    position: absolute;
    width: 60%;
    height: 60%;
    border: 2px solid var(--neon-pink);
    border-radius: 50%;
}

.avatar-scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: var(--neon-blue);
    box-shadow: 0 0 10px var(--neon-blue);
    opacity: 0.7;
}

@keyframes scan-animation {
    0% { top: 0; }
    100% { top: 100%; }
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-size: 2.5rem;
    margin: 0 0 10px 0;
    color: var(--neon-green);
}

.profile-title {
    font-size: 1.2rem;
    color: var(--neon-blue);
    margin-bottom: 15px;
    font-family: 'Orbitron', sans-serif;
}

.profile-contact {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* New Profile Styles */
.profile-container-new {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 30px;
}

.profile-avatar-new {
    width: 120px;
    height: 120px;
    position: relative;
}

.avatar-hexagon {
    width: 100%;
    height: 100%;
    background-color: var(--darker-bg);
    position: relative;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.avatar-scan-effect {
    position: absolute;
    width: 150%;
    height: 10px;
    background: linear-gradient(to right, transparent, var(--neon-blue), transparent);
    top: 0;
    left: -25%;
    animation: avatar-scan 3s linear infinite;
}

@keyframes avatar-scan {
    0% { top: -10px; }
    100% { top: 120px; }
}

.profile-title-block {
    flex: 1;
}

.profile-name {
    font-size: 2.5rem;
    margin: 0 0 5px 0;
    text-transform: uppercase;
    color: var(--neon-blue);
    text-shadow: 0 0 5px var(--neon-blue);
}

.profile-subtitle {
    font-size: 1.2rem;
    color: var(--text-color);
    letter-spacing: 1px;
}

.profile-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.profile-bio-new {
    line-height: 1.6;
    color: var(--text-color);
    border-left: 3px solid var(--neon-pink);
    padding-left: 15px;
}

.profile-contact-new {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-row {
    display: flex;
    gap: 30px;
}

.contact-item-new {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    background-color: rgba(20, 20, 30, 0.5);
    padding: 10px 15px;
    border-radius: 5px;
    border-left: 3px solid var(--neon-green);
    transition: all 0.3s ease;
}

.contact-item-new:hover {
    background-color: rgba(30, 30, 40, 0.7);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 243, 255, 0.2);
}

.contact-icon-new {
    font-size: 1.2rem;
}

.contact-text-new {
    font-family: 'Roboto Mono', monospace;
    letter-spacing: 1px;
}


/* Double Timeline Styles */
.double-timeline-container {
    padding: 20px 0;
}

.timeline-header {
    display: grid;
    grid-template-columns: 1fr 50px 1fr;
    margin-bottom: 30px;
    text-align: center;
}

.timeline-header-left,
.timeline-header-right {
    font-size: 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
    color: var(--neon-blue);
    text-shadow: 0 0 5px var(--neon-blue);
    letter-spacing: 2px;
}

.double-timeline {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.timeline-row {
    display: grid;
    grid-template-columns: 1fr 50px 1fr;
    position: relative;
}

.timeline-center {
    position: relative;
    display: flex;
    justify-content: center;
}

.timeline-line {
    position: absolute;
    width: 2px;
    height: calc(100% + 40px); /* Extends to the next row */
    background-color: var(--timeline-line-color);
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.timeline-dot {
    width: 16px;
    height: 16px;
    background-color: var(--timeline-dot-color);
    border-radius: 50%;
    position: relative;
    z-index: 2;
    margin-top: 20px;
    box-shadow: 0 0 10px var(--timeline-dot-color);
}

.timeline-left,
.timeline-right {
    padding: 0 20px;
}

.timeline-item-new {
    background-color: var(--timeline-item-bg);
    border-radius: 5px;
    padding: 20px;
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 243, 255, 0.3);
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.1);
}

.timeline-item-new:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    border-color: var(--neon-blue);
}

.timeline-item-new.empty {
    opacity: 0;
    pointer-events: none;
}

.timeline-date-new {
    font-family: 'Roboto Mono', monospace;
    color: var(--neon-pink);
    margin-bottom: 10px;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.timeline-title-new {
    font-size: 1.3rem;
    margin: 0 0 10px 0;
    color: var(--neon-blue);
}

.timeline-institution-new {
    font-size: 1rem;
    color: var(--neon-green);
    margin-bottom: 10px;
}

.timeline-description {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-color);
}


/* Certifications Styles */
.certifications-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 10px;
}

.certification-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background-color: var(--timeline-item-bg);
    padding: 20px;
    border-radius: 5px;
    border: 1px solid rgba(0, 243, 255, 0.3);
    transition: all 0.3s ease;
}

.certification-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    border-color: var(--neon-blue);
}

.certification-icon {
    font-size: 2rem;
    color: var(--neon-green);
    text-shadow: 0 0 10px var(--neon-green);
}

.certification-details {
    flex: 1;
}

.certification-title {
    font-size: 1.2rem;
    margin: 0 0 10px 0;
    color: var(--neon-blue);
}

.certification-date {
    font-family: 'Roboto Mono', monospace;
    color: var(--neon-pink);
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.certification-issuer {
    font-size: 0.9rem;
    color: var(--text-color);
}



/* Projects Page Styles */
.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    padding: 15px;
}

/* Home: compact variant of projects grid */
.projects-container.projects-home {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 10px;
}

.projects-home .project-image {
    height: 140px;
}

.projects-home .project-content {
    padding: 14px;
}

.projects-home .project-title {
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.projects-home .project-description {
    font-size: 0.9rem;
    line-height: 1.45;
}

.projects-home .project-tech-badge {
    font-size: 10px;
    padding: 2px 6px;
}

.projects-home .project-links {
    gap: 10px;
}

.projects-home .project-link {
    font-size: 0.85rem;
    padding: 6px 10px;
}

.project-card {
    background-color: var(--timeline-item-bg);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(0, 243, 255, 0.3);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    border-color: var(--neon-blue);
}

.project-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.project-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.7));
}

.project-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(0, 243, 255, 0.3), transparent);
    transform: skewX(-25deg);
    animation: image-shine 5s infinite;
}

@keyframes image-shine {
    0% { left: -100%; }
    20% { left: 100%; }
    100% { left: 100%; }
}

.project-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-title {
    font-size: 1.5rem;
    margin: 0 0 15px 0;
    color: var(--neon-blue);
    text-shadow: 0 0 5px var(--neon-blue);
}

.project-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 20px;
    flex: 1;
}

.projects-home .project-description {
    font-size: 0.85rem;
    line-height: 1.4;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.tech-badge {
    background-color: rgba(0, 0, 0, 0.5);
    color: var(--neon-green);
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    border: 1px solid var(--neon-green);
    box-shadow: 0 0 5px var(--neon-green);
}

.project-links {
    display: flex;
    gap: 15px;
    margin-top: auto;
}

.project-link {
    padding: 8px 15px;
    background-color: rgba(0, 0, 0, 0.5);
    color: var(--neon-blue);
    text-decoration: none;
    border: 1px solid var(--neon-blue);
    border-radius: 4px;
    font-size: 0.9rem;
    text-align: center;
    transition: all 0.3s ease;
    flex: 1;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-link:hover {
    background-color: rgba(0, 243, 255, 0.2);
    box-shadow: 0 0 10px var(--neon-blue);
    transform: translateY(-2px);
}

/* Responsive adjustments */


/* Page Transitions */
.page-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--dark-bg);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.page-transition-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.transition-glitch {
    animation: transition-glitch-anim 0.3s ease forwards;
}

@keyframes transition-glitch-anim {
    0% {
        transform: translate(0);
    }
    20% {
        transform: translate(-5px, 5px);
    }
    40% {
        transform: translate(-5px, -5px);
    }
    60% {
        transform: translate(5px, 5px);
    }
    80% {
        transform: translate(5px, -5px);
    }
    100% {
        transform: translate(0);
    }
}

/* Project Detail Styles */
.project-detail-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.project-detail-header {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
}

.project-detail-image {
    width: 300px;
    height: 200px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid var(--neon-blue);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.3);
}

.project-detail-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.5));
}

.project-detail-info {
    flex: 1;
}

.project-detail-title {
    font-size: 2rem;
    margin: 0 0 15px 0;
    color: var(--neon-blue);
    text-shadow: 0 0 10px var(--neon-blue);
}

.project-detail-description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 20px;
}

.project-detail-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.project-detail-links {
    display: flex;
    gap: 15px;
}

.project-detail-content {
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 1px solid rgba(0, 243, 255, 0.2);
}

/* Markdown Content Styles */
.markdown-content {
    font-family: var(--body-font);
    color: var(--text-color);
    line-height: 1.6;
}

.markdown-content h1 {
    font-size: 2rem;
    color: var(--neon-blue);
    margin: 1.5rem 0 1rem;
    text-shadow: 0 0 5px var(--neon-blue);
    border-bottom: 1px solid var(--neon-blue);
    padding-bottom: 0.5rem;
}

.markdown-content h2 {
    font-size: 1.5rem;
    color: var(--neon-pink);
    margin: 1.2rem 0 0.8rem;
    text-shadow: 0 0 5px var(--neon-pink);
}

.markdown-content h3 {
    font-size: 1.2rem;
    color: var(--neon-green);
    margin: 1rem 0 0.6rem;
    text-shadow: 0 0 5px var(--neon-green);
}

.markdown-content p {
    margin: 0.8rem 0;
}

.markdown-content ul, .markdown-content ol {
    margin: 0.8rem 0;
    padding-left: 2rem;
}

.markdown-content li {
    margin: 0.4rem 0;
}

.markdown-content a {
    color: var(--neon-blue);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.markdown-content a:hover {
    text-shadow: 0 0 5px var(--neon-blue);
}

/* Styles globaux du formulaire */
.form-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.cyberpunk-form {
    width: 100%;
    position: relative;
    z-index: 1;
}

/* Effet de scan sur le formulaire */
.cyberpunk-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #0ff, transparent);
    animation: scan-line 4s linear infinite;
    z-index: -1;
    opacity: 0.7;
}

@keyframes scan-line {
    0% { transform: translateY(0); }
    100% { transform: translateY(100%); }
}

/* Groupes de formulaire */
.form-group {
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
    border-left: 2px solid #0ff;
    padding-left: 15px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.form-group::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, #0ff, transparent);
}

/* Labels */
.form-group label {
    display: block;
    margin-bottom: 10px;
    color: #0ff;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    position: relative;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
}

.form-group label::before {
    content: '>';
    margin-right: 5px;
    color: #0ff;
}

/* Champs de saisie */
.cyberpunk-input, .cyberpunk-textarea {
    width: 100%;
    padding: 12px 15px;
    background-color: rgba(0, 0, 0, 0.8);
    border: 1px solid #0ff;
    color: #0ff;
    font-family: 'Share Tech Mono', monospace;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: inset 0 0 10px rgba(0, 255, 255, 0.1);
}

.cyberpunk-input:focus, .cyberpunk-textarea:focus {
    outline: none;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.5), inset 0 0 10px rgba(0, 255, 255, 0.2);
    border-color: #00ffff;
    background-color: rgba(0, 0, 0, 0.9);
}

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

/* Message d'erreur */
.error-message {
    color: #ff3366;
    font-size: 14px;
    margin-top: 5px;
    padding-left: 10px;
    border-left: 2px solid #ff3366;
    animation: glitch-error 1s ease-in-out;
}

@keyframes glitch-error {
    0% { opacity: 0; transform: translateX(-10px); }
    10% { opacity: 1; transform: translateX(10px); }
    20% { opacity: 1; transform: translateX(-8px); }
    30% { opacity: 1; transform: translateX(8px); }
    40% { opacity: 1; transform: translateX(-5px); }
    50% { opacity: 1; transform: translateX(5px); }
    60% { opacity: 1; transform: translateX(-3px); }
    70% { opacity: 1; transform: translateX(3px); }
    80% { opacity: 1; transform: translateX(-1px); }
    90% { opacity: 1; transform: translateX(1px); }
    100% { opacity: 1; transform: translateX(0); }
}

/* Checkbox */
.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.cyberpunk-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    background-color: rgba(0, 0, 0, 0.8);
    border: 1px solid #0ff;
    position: relative;
    cursor: pointer;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.cyberpunk-checkbox:checked {
    background-color: rgba(0, 255, 255, 0.2);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.cyberpunk-checkbox:checked::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #0ff;
    font-size: 16px;
    text-shadow: 0 0 5px #0ff;
}

/* Sélection de fichiers */
.file-input-wrapper {
    position: relative;
    overflow: hidden;
    display: inline-block;
    margin-bottom: 10px;
}

.file-input-button {
    padding: 10px 20px;
    background-color: rgba(0, 0, 0, 0.8);
    color: #0ff;
    border: 1px solid #0ff;
    cursor: pointer;
    font-family: 'Share Tech Mono', monospace;
    text-transform: uppercase;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.file-input-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.3), transparent);
    transition: all 0.5s ease;
}

.file-input-button:hover::before {
    left: 100%;
}

.file-input-button:hover {
    background-color: rgba(0, 255, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.cyberpunk-file-input {
    position: absolute;
    font-size: 100px;
    right: 0;
    top: 0;
    opacity: 0;
    cursor: pointer;
}

.file-name {
    margin-left: 10px;
    color: #0ff;
    font-size: 14px;
}

.selected-files {
    margin-top: 10px;
}

.selected-file {
    display: inline-block;
    margin-right: 10px;
    margin-bottom: 5px;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 5px 10px;
    border: 1px solid #0ff;
    color: #0ff;
    font-size: 12px;
}

/* Images actuelles */
.current-image {
    margin-bottom: 15px;
    border: 1px solid #0ff;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.8);
    display: inline-block;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.current-image:hover {
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
    transform: translateY(-2px);
}

.current-image img {
    max-width: 200px;
    max-height: 150px;
    display: block;
    margin-bottom: 10px;
    border: 1px solid rgba(0, 255, 255, 0.3);
}

.current-image p {
    color: #0ff;
    margin: 0;
    font-size: 12px;
    text-align: center;
}

/* Galerie d'images */
.gallery-preview {
    margin-top: 30px;
    margin-bottom: 30px;
    padding: 15px;
    border: 1px solid #0ff;
    background-color: rgba(0, 0, 0, 0.5);
}

.gallery-preview h3 {
    color: #0ff;
    margin-bottom: 15px;
    font-size: 18px;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(0, 255, 255, 0.3);
    padding-bottom: 5px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.gallery-item {
    position: relative;
    border: 1px solid #0ff;
    padding: 5px;
    background-color: rgba(0, 0, 0, 0.8);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}

.delete-image-btn {
    background-color: rgba(255, 51, 102, 0.8);
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
    margin: 0;
}

.delete-image-btn:hover {
    background-color: #ff3366;
    transform: scale(1.1);
}

.form-actions {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 40px;
    position: relative;
    padding-top: 20px;
}

.form-actions::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, #0ff, transparent);
}

.cyberpunk-button {
    padding: 12px 25px;
    background-color: rgba(0, 0, 0, 0.8);
    color: #0ff;
    border: 1px solid #0ff;
    font-family: 'Share Tech Mono', monospace;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    min-width: 150px;
}

.cyberpunk-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.3), transparent);
    transition: all 0.5s ease;
}

.cyberpunk-button:hover::before {
    left: 100%;
}

.cyberpunk-button.primary {
    background-color: rgba(0, 255, 255, 0.1);
    color: #0ff;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
}

.cyberpunk-button.primary:hover {
    background-color: rgba(0, 255, 255, 0.2);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
}

.cyberpunk-button.secondary {
    background-color: rgba(0, 0, 0, 0.8);
    color: rgba(0, 255, 255, 0.7);
    border: 1px solid rgba(0, 255, 255, 0.5);
}

.cyberpunk-button.secondary:hover {
    color: #0ff;
    border-color: #0ff;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
    background-color: rgba(0, 255, 255, 0.1);
}

.error-message {
    color: #ff3366;
    font-size: 14px;
    margin-top: 5px;
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.alert-success {
    background-color: rgba(0, 255, 0, 0.1);
    border: 1px solid #00ff00;
    color: #00ff00;
}

/* Styles pour la barre de navigation des filtres */
.cyberpunk-filter-nav {
    margin-bottom: 20px;
    border-bottom: 1px solid #0ff;
    padding-bottom: 5px;
}

.filter-nav-title {
    color: #0ff;
    font-family: 'Share Tech Mono', monospace;
    font-size: 14px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.filter-nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.filter-nav-link {
    display: inline-block;
    padding: 3px 10px;
    background-color: transparent;
    border: 1px solid #0ff;
    color: #0ff;
    font-family: 'Share Tech Mono', monospace;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.filter-nav-link:hover {
    background-color: rgba(0, 255, 255, 0.1);
    box-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
}

.filter-nav-link.active {
    background-color: #0ff;
    color: #000;
    font-weight: bold;
}

/* Styles pour le menu déroulant des filtres */
.tech-filter-container {
    margin-bottom: 20px;
    position: relative;
}

.project-gallery {
    margin: 30px 0;
}

.gallery-title {
    margin-bottom: 20px;
    color: #0ff;
    text-transform: uppercase;
    font-size: 1.5rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border: 1px solid #0ff;
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
}

.gallery-image {
    width: 100%;
    height: auto;
    display: block;
    transition: all 0.3s ease;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 10px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

.edit-link {
    background-color: #ffcc00 !important;
    color: #000 !important;
}

/* Effet de glitch pour les images au survol */
.gallery-image:hover {
    animation: glitch 0.5s infinite;
}

@keyframes glitch {
    0% {
        transform: translate(0);
        filter: hue-rotate(0deg);
    }
    25% {
        transform: translate(1px, 1px);
        filter: hue-rotate(90deg);
    }
    50% {
        transform: translate(-1px, -1px);
        filter: hue-rotate(180deg);
    }
    75% {
        transform: translate(-1px, 1px);
        filter: hue-rotate(270deg);
    }
    100% {
        transform: translate(0);
        filter: hue-rotate(360deg);
    }
}

.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    cursor: pointer;
}

.lightbox-container {
    max-width: 90%;
    max-height: 90%;
    overflow: hidden;
    border: 2px solid #0ff;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.7);
}

.lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    display: block;
}

.tech-filter-header {
    color: #0ff;
    font-family: 'Share Tech Mono', monospace;
    font-size: 14px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    padding: 8px 15px;
    background-color: rgba(0, 0, 0, 0.8);
    color: #0ff;
    border: 1px solid #0ff;
    cursor: pointer;
    font-family: 'Share Tech Mono', monospace;
    text-transform: uppercase;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 180px;
    transition: all 0.3s ease;
}

.dropbtn:hover {
    background-color: rgba(0, 255, 255, 0.1);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.dropbtn .arrow-down {
    margin-left: 10px;
    font-size: 10px;
    transition: transform 0.3s ease;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: rgba(0, 0, 0, 0.9);
    min-width: 180px;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
    z-index: 10;
    border: 1px solid #0ff;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.dropdown-content a {
    color: #0ff;
    padding: 8px 15px;
    text-decoration: none;
    display: block;
    font-family: 'Share Tech Mono', monospace;
    font-size: 13px;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: rgba(0, 255, 255, 0.1);
}

.dropdown-content a.active {
    background-color: rgba(0, 255, 255, 0.2);
    font-weight: bold;
}

.show {
    display: block;
    max-height: 300px;
    overflow-y: auto;
}

/* Animation de glitch pour le bouton */
.glitch-effect {
    animation: glitch 0.3s linear;
}

@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}
    
/* Styles pour les badges de technologie dans les cartes de projet */
.project-tech-badge {
    display: inline-block;
    padding: 3px 8px;
    background-color: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.5);
    color: #0ff;
    font-size: 11px;
    margin-right: 5px;
    margin-bottom: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.project-tech-badge:hover {
    background-color: rgba(0, 255, 255, 0.2);
    box-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
    transform: translateY(-1px);
}

.admin-controls {
    margin-bottom: 20px;
    display: flex;
    justify-content: flex-end;
}

.admin-button {
    padding: 8px 15px;
    background-color: #0ff;
    color: #000;
    border: none;
    cursor: pointer;
    font-family: 'Share Tech Mono', monospace;
    text-transform: uppercase;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
}

.admin-button:hover {
    background-color: #00cccc;
    box-shadow: 0 0 10px #0ff;
}

.project-card.featured {
    border: 2px solid #ff3366;
    box-shadow: 0 0 15px rgba(255, 51, 102, 0.5);
}

.project-card.featured::before {
    content: "FEATURED";
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #ff3366;
    color: #fff;
    padding: 3px 8px;
    font-size: 10px;
    font-weight: bold;
    z-index: 1;
}

.admin-project-controls {
    display: flex;
    flex-direction: column;
    margin-top: 10px;
    gap: 8px;
    width: 100%;
}

.edit-link {
    background-color: #ffcc00 !important;
    color: #000 !important;
}

.delete-link {
    background-color: #ff3366 !important;
    color: #fff !important;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    text-transform: uppercase;
}

.delete-form {
    display: block;
    width: 100%;
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.alert-success {
    background-color: rgba(0, 255, 0, 0.1);
    border: 1px solid #00ff00;
    color: #00ff00;
}

.markdown-content a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--neon-blue);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.markdown-content a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.markdown-content blockquote {
    border-left: 3px solid var(--neon-blue);
    padding-left: 1rem;
    margin: 1rem 0;
    font-style: italic;
    background-color: rgba(0, 243, 255, 0.05);
    padding: 0.5rem 1rem;
}

.markdown-content code {
    font-family: 'Courier New', monospace;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-size: 0.9rem;
    color: var(--neon-green);
    border: 1px solid rgba(0, 255, 0, 0.2);
}

.markdown-content pre {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 1rem;
    border-radius: 5px;
    overflow-x: auto;
    margin: 1rem 0;
    border: 1px solid var(--neon-green);
    position: relative;
}

.markdown-content pre code {
    background-color: transparent;
    padding: 0;
    border: none;
    display: block;
    line-height: 1.5;
}

.markdown-content pre::before {
    content: '// CODE';
    position: absolute;
    top: -10px;
    right: 10px;
    background-color: var(--dark-bg);
    padding: 0 10px;
    font-size: 0.8rem;
    color: var(--neon-green);
}

.markdown-content img {
    max-width: 100%;
    border-radius: 5px;
    margin: 1rem 0;
    border: 1px solid var(--neon-blue);
    transition: all 0.3s ease;
}

.markdown-content img.cyberpunk-image:hover {
    box-shadow: 0 0 20px var(--neon-blue);
}

.markdown-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    border: 1px solid rgba(0, 243, 255, 0.3);
}

.markdown-content th {
    background-color: rgba(0, 243, 255, 0.1);
    border: 1px solid rgba(0, 243, 255, 0.3);
    padding: 0.5rem;
    text-align: left;
    color: var(--neon-blue);
}

.markdown-content td {
    border: 1px solid rgba(0, 243, 255, 0.3);
    padding: 0.5rem;
}

.markdown-content tr:nth-child(even) {
    background-color: rgba(0, 243, 255, 0.05);
}


    

.contact-icon {
    font-size: 1.2rem;
}

.contact-text {
    font-size: 0.9rem;
}

.contact-text a {
    color: var(--neon-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-text a:hover {
    color: var(--neon-green);
    text-decoration: underline;
}

.profile-bio {
    margin-top: 20px;
    line-height: 1.6;
}

/* Skills */
.skills-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    width: 100%;
    overflow-x: hidden;
}

.category-title {
    color: var(--neon-pink);
    font-size: 1.2rem;
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--neon-pink);
    padding-bottom: 5px;
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.skill-name {
    font-size: 0.9rem;
    color: white;
}

.skill-bar {
    height: 6px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.skill-level {
    height: 100%;
    background-color: var(--neon-green);
    border-radius: 3px;
    position: relative;
}

.skill-level::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: skill-shine 2s infinite linear;
}

@keyframes skill-shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.language-skills {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.language-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.language-name {
    font-size: 0.9rem;
    color: white;
}

.language-level {
    font-size: 0.8rem;
    color: var(--neon-green);
}

/* Timeline */
.timeline-container {
    padding: 10px 0;
}

.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background-color: var(--neon-blue);
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

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

.timeline-marker {
    position: absolute;
    top: 5px;
    left: -39px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--dark-bg);
    border: 2px solid var(--neon-blue);
    box-shadow: 0 0 8px var(--neon-blue);
}

.timeline-date {
    font-size: 0.8rem;
    color: var(--neon-yellow);
    margin-bottom: 5px;
    font-family: 'Orbitron', sans-serif;
}

.timeline-title {
    font-size: 1.1rem;
    color: var(--neon-green);
    margin: 0 0 5px 0;
}

.timeline-institution {
    font-size: 0.9rem;
    color: var(--neon-blue);
    margin-bottom: 5px;
}

.timeline-description {
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Overseer Page Styles */
.overseer-window {
    max-width: 900px;
    margin: 20px auto;
}

.overseer-profile {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--neon-blue);
}

.overseer-avatar {
    width: 100px;
    height: 100px;
    margin-right: 20px;
    position: relative;
}

.overseer-avatar-container {
    width: 100%;
    height: 100%;
    background-color: var(--neon-pink);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.overseer-avatar-glow {
    position: absolute;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, var(--neon-pink) 0%, transparent 70%);
    animation: pulse 3s infinite alternate;
    opacity: 0.7;
}

.overseer-info {
    flex: 1;
}

.overseer-name {
    font-size: 2.5rem;
    color: var(--neon-blue);
    margin: 0 0 5px 0;
    font-family: 'Orbitron', sans-serif;
    text-shadow: 0 0 10px var(--neon-blue);
    letter-spacing: 2px;
}

.overseer-title {
    font-size: 1rem;
    color: var(--neon-green);
    margin-bottom: 5px;
    font-family: 'Share Tech Mono', monospace;
}

.overseer-status {
    font-size: 0.9rem;
    color: #fff;
}

.status-active {
    color: var(--neon-green);
    animation: blink 1.5s infinite;
}

.overseer-terminal {
    background-color: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--neon-green);
    margin-bottom: 20px;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
}

.terminal-header {
    background-color: rgba(0, 50, 0, 0.7);
    padding: 5px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--neon-green);
}

.terminal-title {
    color: var(--neon-green);
    font-size: 0.8rem;
    font-family: 'Share Tech Mono', monospace;
}

.terminal-controls {
    display: flex;
}

.control-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    margin-left: 5px;
}

.terminal-content {
    padding: 10px;
    color: var(--terminal-green);
    font-family: 'Share Tech Mono', monospace;
    height: 200px;
    overflow-y: auto;
    line-height: 1.5;
}

.terminal-line {
    margin-bottom: 5px;
    word-break: break-word;
}

.terminal-input {
    display: flex;
    align-items: center;
}

.terminal-cursor {
    display: inline-block;
    width: 10px;
    height: 15px;
    background-color: var(--terminal-green);
    animation: blink 1s infinite;
    margin-left: 5px;
}

.overseer-stats {
    margin-bottom: 20px;
}

.stat-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stat-label {
    width: 180px;
    color: var(--neon-yellow);
    font-size: 0.9rem;
    font-family: 'Share Tech Mono', monospace;
}

.stat-bar {
    flex: 1;
    height: 15px;
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--neon-yellow);
    position: relative;
}

.stat-fill {
    height: 100%;
    background-color: var(--neon-yellow);
    opacity: 0.7;
}

.stat-value {
    color: var(--neon-yellow);
    font-size: 0.9rem;
    text-align: right;
    font-family: 'Share Tech Mono', monospace;
}

.overseer-message {
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--neon-red);
    color: var(--neon-red);
    font-family: 'Share Tech Mono', monospace;
    text-align: center;
    font-size: 1.2rem;
    margin-top: 20px;
    opacity: 0;
    transition: opacity 0.5s ease;
    text-shadow: 0 0 5px var(--neon-red);
}

.overseer-message.show {
    opacity: 1;
}

/* Dashboard Button Animation */
.dashboard-link {
    position: relative;
    overflow: hidden;
}

.dashboard-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 0, 200, 0.4), transparent);
    animation: glitch-slide 2s linear infinite;
}

.dashboard-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 255, 159, 0.2);
    opacity: 0;
    animation: glitch-flicker 0.3s linear infinite;
}

@keyframes glitch-slide {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes glitch-flicker {
    0% { opacity: 0; }
    5% { opacity: 0.5; }
    10% { opacity: 0; }
    15% { opacity: 0.4; }
    20% { opacity: 0; }
    25% { opacity: 0.3; }
    30% { opacity: 0; }
    35% { opacity: 0.2; }
    40% { opacity: 0; }
    45% { opacity: 0.1; }
    50% { opacity: 0; }
    55% { opacity: 0.5; }
    60% { opacity: 0; }
    100% { opacity: 0; }
}

/* Responsive design improvements */


/* Responsive Design */


/* Responsive styles for project detail */
@media (max-width: 768px) {
    .project-detail-header {
        flex-direction: column;
    }
    
    .project-detail-image {
        width: 100%;
        height: 200px;
    }
    .projects-container {
        grid-template-columns: 1fr;
    }
    
    .project-card {
        max-width: 100%;
    }
    
    .project-links {
        flex-direction: column;
    }
}


@media (max-width: 768px) {

    
    .cyberpunk-nav {
        flex-direction: column;
    }
    
    .cyberpunk-nav a {
        margin: 10px 25px;
        background-color: var(--window-bg);
        border: 1px solid var(--window-border);
        box-shadow: 0 0 8px var(--window-border);
        padding: 20px;
        opacity: 1;
        position: relative;
        backdrop-filter: blur(3px);
    }

   
    
    .avatar-container {
        width: 100px;
        height: 100px;
    }
    
    .status-grid,
    .control-panel {
        grid-template-columns: 1fr;
    }
    
    .profile-container {
        flex-direction: column;
    }
    
    .skills-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .cyberpunk-window {
        width: 95%;
        margin: 10px auto;
    }
    
    .profile-header {
        flex-direction: column;
        align-items: center;
    }
    
    .profile-avatar, .profile-avatar-new {
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .profile-info {
        text-align: center;
    }
    
    .profile-bio, .profile-bio-new {
        padding: 15px;
    }
    
    .profile-contact, .profile-contact-new {
        flex-direction: column;
    }
    
    .contact-item, .contact-item-new {
        margin-bottom: 10px;
    }
    
    .certification-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    

    .overseer-profile {
        flex-direction: column;
        text-align: center;
    }
    
    .overseer-avatar {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .stat-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .stat-label {
        width: 100%;
        margin-bottom: 5px;
    }
    
    .stat-bar {
        width: 100%;
    }
    
    .stat-value {
        width: 100%;
        text-align: center;
        margin-top: 5px;
    }
    
    .bite {
        display: none;
    }



    /* Improved skills section for mobile */
    .skills-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    

    
    .category-title {
        font-size: 1.1rem;
    }
    
    /* Fix layout issues on mobile */
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
  
    
    .cyberpunk-main {
        padding: 15px 10px;
    }
    
    /* Dashboard improvements for mobile */


    /* Language skills display fix */
    .language-skills {
        grid-template-columns: 1fr;
    }
}

/* iPhone specific adjustments */
@media (max-width: 428px) { /* iPhone 12/14 Pro Max width */
    .cyberpunk-container {
        padding: 10px;
    }
    
    .cyberpunk-window {
        width: 100%;
        margin: 5px 0;
        padding: 10px;
    }
    
    /* Skills matrix fixes */
    .skills-container {
        gap: 15px;
    }
    
    .skill-items {
        gap: 10px;
    }
    
    .language-skills {
        grid-template-columns: 1fr;
    }
    
   
    
    /* Better spacing for contact info */
    .contact-item, .contact-item-new {
        margin-bottom: 10px;
        font-size: 0.9rem;
    }
    
    /* Better window padding */
    .window-content {
        padding: 10px;
    }
    
    /* Fix timeline on small screens */
    
    
    /* Adjust gallery for small screens */
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    /* Reduce font sizes further */
    .category-title {
        font-size: 1rem;
        margin-bottom: 10px;
    }
    
    .skill-name {
        font-size: 0.85rem;
    }
    
    /* Fix dropdown on small screens */
    .dropdown {
        width: 100%;
    }
    
    .dropbtn {
        width: 100%;
        min-width: auto;
    }
    
    .dropdown-content {
        width: 100%;
        min-width: auto;
    }
    

    

    
    /* Footer adjustments for small screens */
    .cyberpunk-footer {
        padding: 8px;
    }
    
    .terminal-text {
        font-size: 0.8rem;
        letter-spacing: 1px;
    }
    
    .cyberpunk-header {
        padding: 15px 0;
    }
    
    /* System projects fixes */
    .project-link {
        font-size: 0.85rem;
        padding: 6px 12px;
    }
    
    /* Fix contact section for iPhone */
    .contact-row {
        gap: 10px;
    }
    
    .contact-item-new {
        padding: 8px 10px;
    }

    

    
}

/* iPhone Mini specific adjustments */
@media (max-width: 375px) { /* iPhone Mini and SE */
    .cyberpunk-header {
        padding: 10px 0;
    }
    

    
    .cyberpunk-window-header {
        padding: 7px 10px;
    }
    
    .window-title {
        font-size: 0.8rem;
    }
    
    .cyberpunk-window-content {
        padding: 10px 8px;
    }
    
    /* Profile adjustments for tiny screens */
    .profile-avatar-new {
        width: 75px;
        height: 75px;
    }
    
    .profile-name {
        font-size: 1.2rem;
    }
    
    .profile-subtitle {
        font-size: 0.75rem;
    }
    
    .profile-bio-new {
        font-size: 0.8rem;
        line-height: 1.4;
    }
    
 
    
    /* Contact section optimization */
    .contact-item-new {
        padding: 7px;
    }
    
    .contact-icon-new {
        font-size: 0.8rem;
    }
    
    .contact-text-new {
        font-size: 0.75rem;
    }
    

    
    .dashboard-label {
        font-size: 0.65rem;
    }
    
    .dashboard-value {
        font-size: 0.7rem;
    }
    

    /* Skill bars optimization */
    .skill-bar {
        height: 4px;
    }
    
    .skill-name {
        font-size: 0.75rem;
    }

    .certification-title {
        font-size: 0.85rem;
    }
    
    .certification-institution {
        font-size: 0.75rem;
    }
}



/* Mobile Profile Styles */
@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }
    
    .profile-avatar-new {
        width: 100px;
        height: 100px;
    }
    
    .profile-name {
        font-size: 2rem;
    }
    
    .profile-subtitle {
        font-size: 1rem;
    }
    
    .contact-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .contact-item-new {
        width: 100%;
    }
    
    .double-timeline{
        gap: 0px;
    }
    
    .timeline-header {
        grid-template-columns: 1fr;
        margin-bottom: 20px;
        display: flex;
        justify-content: center;
        border-bottom: 1px solid var(--neon-blue);

    }
    
    .timeline-header-center {
        margin-right: 20px;
        margin-left: 20px;
    }
    
    .timeline-header-left,.timeline-header-right {
        font-size: 1.3rem;
        padding-bottom: 10px;
    }
}

@media  (max-width: 486px) {
    .timeline-header-left,.timeline-header-right {
        font-size: 1rem;
    }
}

@media (max-width: 428px) {

    .timeline-header {
        display: block;
        border-bottom: none;
    }

    .timeline-header-left,.timeline-header-right {
        font-size: 1.6rem;
        margin-top: 10px;
        padding-bottom: 10px;
    }
    
    .profile-name {
        font-size: 1.5rem;
    }
    
    .profile-subtitle {
        font-size: 0.9rem;
    }
    
    .profile-bio-new {
        padding-left: 10px;
        font-size: 0.9rem;
    }
    
    .contact-icon-new {
        font-size: 1rem;
    }
    
    .contact-text-new {
        font-size: 0.9rem;
    }
    
    /* Improved Timeline for iPhone Pro Max */
    .timeline-row {
        grid-template-columns: 1fr;
    }
    
    .timeline-center {
        display: none;
    }
    
    .timeline-left {
        padding: 0 10px;
    }
    
    .timeline-item-new {
        padding: 15px;
        margin-bottom: 20px;
        position: relative;
    }
    
    
    
    
    
    /* Cyberpunk window adjustments for iPhone */
    .cyberpunk-window {
        margin: 15px auto;
    }
    
    .cyberpunk-window-content {
        padding: 15px 10px;
    }
    
    .cyberpunk-window-header {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    

}


/* Mobile Timeline Styles */
@media (max-width: 768px) {

    
    .timeline-row {
        grid-template-columns: 1fr;
    }
    
    .timeline-center, .timeline-line {
        display: none;
    }
    
    .timeline-left, .timeline-right {
        padding: 0;
        margin-bottom: 15px;
    }
    
    .timeline-item-new.empty {
        display: none;
    }
    
   .timeline-item-new {
        margin-top: 20px;
    }
    
    .timeline-item-new {
        margin-bottom: 15px;
    }
    
    .timeline-dot {
        display: none;
    }

    .glitch {
        font-size: 5rem;
    }
}

@media (max-width: 440px) {
    .glitch {
        font-size: 4rem;
    }
}

@media (max-width: 428px) {

    .timeline-center, .timeline-line {
        display: none;
    }
    .timeline-item-new {
        padding: 15px;
    }
    
    .timeline-title-new {
        font-size: 1.1rem;
    }
    
    .timeline-date-new {
        font-size: 0.8rem;
    }
    
    .timeline-institution-new {
        font-size: 0.9rem;
    }
    
    .timeline-description {
        font-size: 0.85rem;
    }
    .glitch {
        font-size: 4rem;
    }
}



@media (max-width: 355px) {
    .glitch {
        font-size: 3rem;
    }
}


@media (max-width: 600px) {
    .cyberpunk-dashboard {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-around;
        justify-items: stretch;
        padding-bottom: 0;
    }
    
    .dashboard-item {
        width: 50%;
        margin-bottom: 10px;
    }

    .dashboard-label{
        font-size: 75%;
    }

    .dashboard-value{
        font-size: 75%;
    }

    .dashboard-container .cyber-glitch {
        font-size: 2rem;
    }
    
}

.cyber-button {
    display: inline-block;
    position: relative;
    padding: 1rem 2rem;
    background: #000;
    border: 2px solid #0ff;
    color: #0ff;
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 2px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    z-index: 1;
}

.cyber-button:hover {
    background: #0ff;
    color: #000;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.button-glitch {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 255, 255, 0.3);
    transform: translateX(-100%);
    transition: transform 0.2s;
}

.cyber-button:hover .button-glitch {
    transform: translateX(100%);
    transition: transform 0.5s;
}

/* HEADER STYLES */
.cyber-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.cyber-glitch-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.cyber-glitch {
    font-family: 'Orbitron', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    text-transform: uppercase;
    position: relative;
    color: var(--text-color);
    letter-spacing: 0.1em;
    animation: glitch-text 3s infinite alternate-reverse;
}

.cyber-glitch::before,
.cyber-glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.cyber-glitch::before {
    color: var(--neon-blue);
    z-index: -1;
    animation: glitch-before 3s infinite alternate-reverse;
}

.cyber-glitch::after {
    color: var(--neon-pink);
    z-index: -2;
    animation: glitch-after 2s infinite alternate-reverse;
}

@keyframes glitch-text {
    0% { text-shadow: 0.05em 0 0 var(--neon-blue), -0.05em -0.025em 0 var(--neon-pink); }
    15% { text-shadow: -0.05em -0.025em 0 var(--neon-blue), 0.025em 0.025em 0 var(--neon-pink); }
    50% { text-shadow: 0.05em 0.05em 0 var(--neon-blue), 0.05em 0 0 var(--neon-pink); }
    100% { text-shadow: -0.05em 0 0 var(--neon-blue), -0.025em -0.05em 0 var(--neon-pink); }
}

@keyframes glitch-before {
    0% { transform: translate(0, 0); }
    20% { transform: translate(-1px, 1px); }
    40% { transform: translate(-2px, -1px); }
    60% { transform: translate(1px, 1px); }
    80% { transform: translate(1px, -1px); }
    100% { transform: translate(-1px, 2px); }
}

@keyframes glitch-after {
    0% { transform: translate(0, 0); }
    20% { transform: translate(2px, -2px); }
    40% { transform: translate(2px, 2px); }
    60% { transform: translate(-2px, -1px); }
    80% { transform: translate(-1px, 2px); }
    100% { transform: translate(2px, -2px); }
}

.cyber-subtitle {
    font-family: 'Share Tech Mono', monospace;
    color: var(--neon-green);
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}

.cyber-divider {
    height: 2px;
    background: linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(0,255,255,0.8) 50%, rgba(0,0,0,0) 100%);
    width: 80%;
    margin: 20px auto;
    position: relative;
}

.cyber-divider:before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    background: #0ff;
    border-radius: 50%;
    box-shadow: 0 0 15px #0ff;
}


.vision-block {
    max-width: 980px;
    margin: 0 auto;
}

.vision-block .lead {
    color: var(--neon-blue);
    font-size: 1.15rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.35);
}

.vision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-top: 0.5rem;
}

.vision-card {
    background: rgba(10, 15, 20, 0.85);
    border: 1px solid rgba(0, 243, 255, 0.25);
    border-radius: 8px;
    padding: 14px;
    box-shadow: inset 0 0 10px rgba(0, 255, 255, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.vision-card:hover {
    transform: translateY(-2px);
    border-color: var(--neon-blue);
    box-shadow: 0 0 18px rgba(0, 255, 255, 0.25);
}

.vision-icon {
    font-size: 1.4rem;
    margin-bottom: 6px;
    filter: drop-shadow(0 0 6px rgba(0, 255, 255, 0.35));
}

.vision-title {
    font-size: 1rem;
    margin: 0 0 8px 0;
    letter-spacing: 0.02em;
    color: #e6f7ff;
}

.vision-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.vision-chip {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid rgba(0, 243, 255, 0.3);
    color: #bffcff;
    background: rgba(0, 20, 25, 0.5);
    backdrop-filter: blur(2px);
}

.vision-chip:hover {
    border-color: var(--neon-pink);
    color: #fff;
    box-shadow: 0 0 10px rgba(255, 0, 200, 0.25);
}

.vision-foot {
    margin-top: 1rem;
    color: #ccf5ff;
    opacity: 0.85;
    font-size: 0.95rem;
}

.vision-xerboxion-link {
    display: inline-block;
    margin-top: 1.25rem;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(0, 243, 255, 0.9);
    text-decoration: none;
    border: 1px solid rgba(0, 243, 255, 0.4);
    padding: 0.55rem 1.25rem;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.vision-xerboxion-link:hover {
    border-color: rgba(0, 243, 255, 0.9);
    background: rgba(0, 243, 255, 0.07);
    box-shadow: 0 0 16px rgba(0, 243, 255, 0.25);
    color: #0ff;
}

@media (max-width: 640px) {
    .vision-title { font-size: 0.95rem; }
    .vision-icon { font-size: 1.3rem; }
}

.cyber-terminal {
    background: rgba(10, 15, 20, 0.85);
    border: 1px solid #0ff;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
    max-width: 800px;
    margin: 0 auto;
}

.terminal-header {
    background: #0a0a0a;
    padding: 0.5rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 255, 255, 0.3);
}

.terminal-title {
    font-family: 'Courier New', monospace;
    color: #0ff;
    font-size: 0.9rem;
}

.terminal-controls {
    display: flex;
}

.terminal-controls span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-left: 6px;
}

.terminal-controls span:nth-child(1) {
    background: #ff5f56;
}

.terminal-controls span:nth-child(2) {
    background: #ffbd2e;
}

.terminal-controls span:nth-child(3) {
    background: #27c93f;
}

.terminal-body {
    padding: 1.5rem;
    font-family: 'Courier New', monospace;
}

.terminal-body .line {
    margin-bottom: 0.7rem;
    color: #0f0;
    font-size: 1rem;
}

.terminal-cursor {
    display: inline-block;
    width: 10px;
    height: 20px;
    background: #0ff;
    animation: blink 1s infinite;
}

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