* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; }

body {
    background: #000;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

#matrix-effect {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

#page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    pointer-events: none;
}

.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

.loader-icon {
    width: 50px;
    height: 50px;
    border: 5px solid #00b3cc;
    border-top: 5px solid transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader-text {
    font-size: 1.2rem;
    color: #00b3cc;
    text-shadow: 0 0 15px #00b3cc, 0 0 25px #00b3cc;
    animation: pulse 0.8s infinite alternate;
}

@keyframes pulse {
    0% { text-shadow: 0 0 15px #00b3cc; }
    100% { text-shadow: 0 0 25px #00b3cc; }
}

body.loaded .loader {
    opacity: 0;
    pointer-events: none;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: rgba(0, 0, 0, 0.95);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 0 15px rgba(0, 179, 204, 0.6);
}

.logo img {
    height: 70px;
    filter: brightness(0) invert(1) drop-shadow(0 0 10px #00b3cc);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { filter: brightness(0) invert(1) drop-shadow(0 0 10px #00b3cc); }
    50% { filter: brightness(0) invert(1) drop-shadow(0 0 15px #00b3cc); }
    100% { filter: brightness(0) invert(1) drop-shadow(0 0 10px #00b3cc); }
}

nav ul {
    display: flex;
    list-style: none;
    align-items: center;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    position: relative;
    transition: color 0.4s ease, text-shadow 0.4s ease;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #00b3cc;
    transition: width 0.4s ease;
}

nav ul li a:hover::after {
    width: 100%;
    box-shadow: 0 0 20px #00b3cc;
}

nav ul li a:hover {
    color: #00b3cc;
    text-shadow: 0 0 15px #00b3cc;
}

.language-flag {
    display: inline-block;
    font-size: 14px;
    padding: 3px 6px;
    color: #fff;
    text-decoration: none;
    border: 1px solid rgba(0, 179, 204, 0.5);
    border-radius: 30px;
    background: rgba(0, 179, 204, 0.05);
    transition: all 0.3s ease;
    box-shadow: 0 0 3px rgba(0, 179, 204, 0.2);
}

.language-flag:hover {
    background: rgba(0, 179, 204, 0.2);
    color: #fff;
    transform: scale(1.03);
    box-shadow: 0 0 10px rgba(0, 179, 204, 0.5);
}

.hero {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 30px;
    margin-top: 80px;
    z-index: 2;
    position: relative;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(0, 179, 204, 0.1));
}

.hero h1 {
    font-size: 3rem;
    color: #00b3cc;
    text-shadow: 0 0 30px #00b3cc, 0 0 50px #00b3cc;
    letter-spacing: 1px;
    font-weight: bold;
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0% { text-shadow: 0 0 30px #00b3cc, 0 0 50px #00b3cc; }
    50% { text-shadow: 0 0 40px #00b3cc, 0 0 60px #00b3cc; }
    100% { text-shadow: 0 0 30px #00b3cc, 0 0 50px #00b3cc; }
}

.hero p {
    font-size: 1.1rem;
    margin: 15px 0;
    color: #fff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
    animation: fadeIn 1.5s ease-out;
}

@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #00b3cc;
    color: #00b3cc;
    text-decoration: none;
    font-weight: bold;
    border-radius: 10px;
    transition: all 0.5s ease;
    box-shadow: 0 0 20px rgba(0, 179, 204, 0.7);
    font-size: 1.1rem;
    position: relative;
    animation: pulseButton 2s infinite;
}

.cta-button.small {
    padding: 8px 20px;
    font-size: 0.9rem;
    margin-top: 8px;
}

@keyframes pulseButton {
    0% { box-shadow: 0 0 20px rgba(0, 179, 204, 0.7); }
    50% { box-shadow: 0 0 25px rgba(0, 179, 204, 0.9); }
    100% { box-shadow: 0 0 20px rgba(0, 179, 204, 0.7); }
}

.cta-button:hover {
    background: linear-gradient(45deg, #00b3cc, #007788);
    color: #000;
    transform: scale(1.05);
    box-shadow: 0 0 30px #00b3cc;
}

.parcours {
    max-width: 90%;
    margin: 120px auto 40px;
    padding: 20px;
    background: linear-gradient(135deg, #1a1a1a, #000);
    border: 1px solid #00b3cc;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 0 15px rgba(0, 179, 204, 0.5);
    z-index: 2;
    position: relative;
}

.parcours h1, .parcours h2 {
    color: #00b3cc;
    text-align: center;
    margin-bottom: 15px;
    text-shadow: 0 0 10px #00b3cc;
    font-size: 1.8rem;
}

.parcours ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.parcours ul li {
    background: #222;
    margin: 10px 0;
    padding: 12px;
    border-radius: 6px;
    box-shadow: 0 0 10px rgba(0, 179, 204, 0.2);
    max-width: 90%;
    width: 100%;
    text-align: center;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.parcours ul li:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(0, 179, 204, 0.4);
}

.parcours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    padding: 25px;
    justify-content: center;
}

.projet {
    background: linear-gradient(135deg, #1a1a1a, #0a0a0a);
    padding: 20px;
    border: 1px solid rgba(0, 179, 204, 0.3);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 179, 204, 0.3);
    position: relative;
    text-align: center;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease, background 0.4s ease;
}

.projet::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 179, 204, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.projet:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 179, 204, 0.5);
    background: linear-gradient(135deg, #1a1a1a, #0d0d0d);
}

.projet:hover::before {
    opacity: 1;
}

.projet h3 {
    color: #00b3cc;
    font-size: 1.3rem;
    margin-bottom: 10px;
    text-shadow: 0 0 8px #00b3cc;
    position: relative;
    z-index: 2;
}

.projet p {
    color: #fff;
    font-size: 0.9rem;
    line-height: 1.4;
    text-align: center;
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 2;
}

.cv-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.cv-buttons .cta-button {
    padding: 12px 35px;
    font-size: 1rem;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 179, 204, 0.5);
    transition: all 0.5s ease;
}

.contact-section {
    margin: 80px auto 50px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid #00b3cc;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0, 179, 204, 0.6);
    text-align: center;
    z-index: 2;
    position: relative;
    max-width: 90%;
}

.contact-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.contact-container p {
    font-size: 1.2rem;
    color: #00b3cc;
    text-shadow: 0 0 12px #00b3cc;
}

.contact-section .cta-button {
    padding: 12px 40px;
    font-size: 1rem;
}

footer {
    background: rgba(0, 0, 0, 0.95);
    padding: 12px;
    text-align: center;
    width: 100%;
    font-size: 12px;
    box-shadow: 0 0 15px rgba(0, 179, 204, 0.5);
    z-index: 2;
    position: fixed;
    bottom: 0;
    left: 0;
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 0.9rem; }
    .cta-button { padding: 10px 25px; font-size: 0.9rem; }
    .parcours { margin: 100px auto 30px; padding: 15px; }
    .parcours h1, .parcours h2 { font-size: 1.5rem; }
    .parcours ul li { padding: 10px; font-size: 0.8rem; margin: 8px 0; }
    .projet h3 { font-size: 1.1rem; }
    .projet p { font-size: 0.8rem; }
    .contact-section { margin: 60px auto 40px; padding: 15px; }
    .contact-container p { font-size: 1rem; }
    .contact-section .cta-button { padding: 10px 35px; font-size: 0.9rem; }
    nav ul li { margin: 0 12px; }
    nav ul li a { font-size: 14px; }
    .logo img { height: 60px; }
    .language-flag { font-size: 12px; padding: 3px 5px; }
    .parcours-grid { grid-template-columns: 1fr; gap: 20px; }
    .projet { margin: 8px 0; padding: 15px; }
    .cv-buttons .cta-button { padding: 10px 30px; font-size: 0.9rem; }
}

@media (max-width: 480px) {
    .hero-buttons, .cv-buttons { flex-direction: column; gap: 10px; }
    .cta-button { width: 100%; max-width: 200px; }
    .parcours-grid { grid-template-columns: 1fr; }
    .projet { margin: 6px 0; padding: 12px; }
    header { padding: 12px 15px; }
    nav ul { flex-direction: column; align-items: flex-end; }
    nav ul li { margin: 6px 0; }
    .logo img { height: 50px; }
    .language-flag { font-size: 10px; padding: 2px 4px; }
}