* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background-color: #000000;
    color: #e8eeeb;

    font-family: "Courier New", monospace;
    font-size: 15px;
    line-height: 1.8;
}

/* Fond Matrix */

#matrix {
    position: fixed;
    inset: 0;

    width: 100%;
    height: 100%;

    z-index: 0;
    pointer-events: none;

    opacity: 0.8;
    filter: blur(2px);
}

header,
main {
    position: relative;
    z-index: 1;
}

/* Navigation centrée en haut */

header {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    padding: 28px 30px;
}

nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;

    
    padding: 15px;

    background-color: rgba(16, 20, 19, 0.95);

    border: 2px solid #293832;
    border-radius: 20px;
}

nav a {
    padding: 10px 16px;

    color: #ffffff;
    font-size: 20px;
    text-decoration: none;

    border-radius: 10px;

    transition: background-color 0.2s, color 0.2s;
}

nav a:hover,
nav a[aria-current="page"] {
    background-color: #12352a;
    color: #00e69a;
}

/* Profil fixe à gauche */

.profile {
    position: fixed;
    left: 150px;
    top: 50%;
    transform: translateY(-50%);

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;

    width: 230px;
    text-align: center;
}

.personal-photo {
    display: block;

    width: 250px;
    height: 250px;

    object-fit: cover;

    border: 2.5px solid #00e69a;
    border-radius: 50%;

    box-shadow: 0 0 25px rgba(0, 230, 154, 0.12);
}

.profile p {
    margin: 0;
}

.profile-name {
    color: #ffffff;
    font-size: 33px;
    font-weight: bold;
}

.profile-description {
    margin-top: 5px;
    color: #c5cbc8;
    font-size: 20px;
}

/* Contenu à droite du profil */

main {
    max-width: 1250px;
    
    margin: 45px 35px 45px 500px;
    padding: 0 15px;
}

.home-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: center;
    gap: 30px;
}

.home-text {
    min-width: 0;
}

.eyebrow {
    margin: 0 0 20px;

    color: #00e69a;
    font-size: 16px;
    letter-spacing: 2px;
}

.home-text h1 {
    margin: 0 0 25px;

    font-size: clamp(36px, 3.8vw, 64px);
    line-height: 1.15;
    letter-spacing: -2px;
}

h1 span {
    color: #00e69a;
}

.introduction {
    max-width: 620px;
    margin: 0;

    color: #c5cbc8;
    font-size: 18px;
    line-height: 1.8;
}

/* Boutons */

.actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;

    margin: 28px 0;
}

.button {
    display: inline-block;
    padding: 14px 18px;

    background-color: #00e69a;
    color: #001a11;

    font-size: 16px;
    font-weight: bold;
    text-decoration: none;

    border-radius: 8px;

    transition: background-color 0.2s;
}

.button:hover {
    background-color: #00c985;
}

.about-link {
    color: #00c8e0;
    font-size: 16px;

    text-decoration: underline;
    text-underline-offset: 5px;
}

.about-link:hover {
    color: #ffffff;
}

.funny-text {
    margin: 0;
    color: #b7c0bb;
    font-size: 16px;
}

/* Terminal à droite */

.terminal {
    min-width: 0;
    overflow: hidden;

    background-color: rgba(8, 15, 11, 0.95);

    border: 1px solid #185c43;
    border-radius: 12px;

    box-shadow: 0 0 30px rgba(0, 230, 154, 0.08);
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 15px;

    padding: 14px 18px;

    background-color: #15201a;
    color: #c5cbc8;

    font-size: 12px;

    border-bottom: 1px solid #293832;
}

.terminal-dots {
    display: flex;
    flex-shrink: 0;
    gap: 7px;
}

.dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.dot.red {
    background-color: #ff5f57;
}

.dot.yellow {
    background-color: #febc2e;
}

.dot.green {
    background-color: #28c840;
}

.terminal-content {
    padding: 22px 18px;
    font-size: 16px;
}

.zaid{
    font-size: 14px;
}
.terminal-content p {
    margin: 0 0 16px;
}

.terminal-content p:last-child {
    margin-bottom: 0;
}

.terminal pre {
    margin: 0 0 20px;

    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.terminal code {
    font-family: inherit;
    line-height: 1.8;
}

.prompt {
    color: #00e69a;
}

.variable {
    color: #00c8e0;
}

.string {
    color: #e5d68a;
}

.cursor {
    color: #00e69a;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* Technologies sous le texte et le terminal */

.technologies {
    width: fit-content; 
    max-width: 100%;

    margin-top: 35px;
    padding: 22px;

    background-color: rgba(16, 20, 19, 0.9);

    border: 1px solid #185c43;
    border-radius: 12px;
}

.technologies h2 {
    margin: 0 0 18px;

    color: #00e69a;
    font-size: 20px;
}

.technologies h2 span {
    color: #00c8e0;
}

.technology-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.technology-list li {
    padding: 9px 16px;

    background-color: #10251b;
    color: #e8eeeb;

    font-size: 15px;

    border: 1px solid #286346;
    border-radius: 8px;
}

/* Navigation au clavier */

a:focus-visible {
    outline: 3px solid #00c8e0;
    outline-offset: 4px;
}

/* Écrans moyens */

@media (max-width: 1200px) {
    .profile {
        left: 15px;
        width: 190px;
    }

    .personal-photo {
        width: 155px;
        height: 155px;
    }

    .profile-name {
        font-size: 23px;
    }

    .profile-description {
        font-size: 13px;
    }

    main {
        margin-left: 225px;
        margin-right: 20px;
    }

    .home-layout {
        gap: 22px;
    }

    .home-text h1 {
        font-size: 42px;
    }

    .introduction {
        font-size: 16px;
    }

    .terminal-content {
        font-size: 12px;
    }
}

/* Tablettes et téléphones */

@media (max-width: 900px) {
    header {
        flex-direction: column;
        gap: 25px;

        padding: 25px 20px;
    }

    .profile {
        position: static;
        transform: none;

        width: 100%;
        gap: 12px;
    }

    .personal-photo {
        width: 130px;
        height: 130px;
    }

    .profile-name {
        font-size: 24px;
    }

    .profile-description {
        font-size: 14px;
    }

    main {
        margin: 20px auto 35px;
        padding: 0 20px;
    }

    .home-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .home-text h1 {
        font-size: clamp(36px, 7vw, 60px);
    }

    .introduction {
        max-width: 100%;
        font-size: 18px;
    }

    .terminal-content {
        font-size: 14px;
    }

    .technologies {
        margin-top: 28px;
    }
}

@media (max-width: 480px) {
    nav {
        width: 100%;
        gap: 3px;
        padding: 7px;
    }

    nav a {
        padding: 8px;
        font-size: 13px;
    }

    .eyebrow {
        font-size: 10px;
        letter-spacing: 1px;
    }

    .home-text h1 {
        font-size: 36px;
        letter-spacing: -1px;
    }

    .introduction {
        font-size: 16px;
    }

    .actions {
        gap: 15px;
    }

    .button,
    .about-link {
        font-size: 14px;
    }

    .technologies {
        padding: 18px;
    }

    .technologies h2 {
        font-size: 17px;
    }

    .technology-list li {
        padding: 8px 12px;
        font-size: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #matrix {
        display: none;
    }

    .cursor {
        animation: none;
    }

    nav a,
    .button {
        transition: none;
    }
}



.technology-list li {
    transition: transform 0.3s,
                background-color 0.3s,
                box-shadow 0.3s;
}

.technology-list li:hover {
    transform: translateY(-6px);
    background-color: #17412d;
    box-shadow: 0 0 18px rgba(0, 230, 154, 0.35);
}

@media (prefers-reduced-motion: reduce) {
    .technology-list li {
        transition: none;
    }

    .technology-list li:hover {
        transform: none;
    }
}