/* =====================================================
   VARIABLES
===================================================== */

:root {

    --bg: #05080f;
    --bg-light: #080d17;
    --card: #0b111d;

    --primary: #00e5ff;
    --secondary: #0066ff;
    --green: #00ff9d;

    --white: #edf6ff;
    --muted: #8290a5;

    --border: rgba(255,255,255,0.08);

    --gradient:
        linear-gradient(
            135deg,
            #00e5ff,
            #0066ff
        );

    --mono:
        "JetBrains Mono",
        monospace;

    --font:
        "Inter",
        sans-serif;
}


/* =====================================================
   RESET
===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 85px;
}

body {

    background: var(--bg);

    color: var(--white);

    font-family: var(--font);

    line-height: 1.6;

    overflow-x: hidden;
}

body::selection {
    background: var(--primary);
    color: #001014;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input,
textarea {
    font-family: inherit;
}

ul {
    list-style: none;
}


/* =====================================================
   HEADER
===================================================== */

.header {

    position: fixed;

    top: 0;
    left: 0;

    width: 100%;

    z-index: 999;

    background:
        rgba(5,8,15,.82);

    backdrop-filter:
        blur(18px);

    border-bottom:
        1px solid var(--border);
}


.navbar {

    height: 80px;

    max-width: 1250px;

    margin: auto;

    padding:
        0 25px;

    display: flex;

    align-items: center;

    justify-content: space-between;
}


.logo {

    font-family: var(--mono);

    font-weight: 600;

    font-size: 1.2rem;

    letter-spacing: -1px;
}

.logo-symbol {
    color: var(--primary);
}


.nav-links {

    display: flex;

    align-items: center;

    gap: 30px;
}


.nav-links a {

    position: relative;

    font-family: var(--mono);

    font-size: .8rem;

    color: var(--muted);

    transition: .3s;
}


.nav-links a span {

    color: var(--primary);

    margin-right: 5px;
}


.nav-links a:hover,
.nav-links a.active {

    color: white;
}


.nav-links a::after {

    content: "";

    position: absolute;

    left: 0;

    bottom: -8px;

    width: 0;

    height: 2px;

    background: var(--primary);

    transition: .3s;
}


.nav-links a:hover::after,
.nav-links a.active::after {

    width: 100%;
}


.nav-button {

    padding:
        10px 18px;

    border:
        1px solid var(--primary);

    color: var(--primary);

    font-family: var(--mono);

    font-size: .75rem;

    border-radius: 4px;

    transition: .3s;
}


.nav-button:hover {

    background:
        rgba(0,229,255,.1);

    box-shadow:
        0 0 20px
        rgba(0,229,255,.15);
}


.menu-toggle {

    display: none;

    background: none;

    border: 0;

    color: white;

    font-size: 1.5rem;

    cursor: pointer;
}


/* =====================================================
   HERO
===================================================== */

.hero {

    min-height: 100vh;

    position: relative;

    display: flex;

    align-items: center;

    overflow: hidden;

    padding:
        120px 7% 80px;
}


/* grille */

.grid-background {

    position: absolute;

    inset: 0;

    background-image:

        linear-gradient(
            rgba(0,229,255,.035) 1px,
            transparent 1px
        ),

        linear-gradient(
            90deg,
            rgba(0,229,255,.035) 1px,
            transparent 1px
        );

    background-size:
        50px 50px;

    mask-image:
        linear-gradient(
            to bottom,
            black,
            transparent
        );

    pointer-events: none;
}


.hero-glow {

    position: absolute;

    width: 700px;
    height: 700px;

    right: -250px;
    top: 50%;

    transform:
        translateY(-50%);

    background:
        radial-gradient(
            circle,
            rgba(0,102,255,.15),
            transparent 65%
        );

    filter: blur(20px);

    pointer-events: none;
}


.hero-container {

    position: relative;

    z-index: 2;

    width: 100%;

    max-width: 1250px;

    margin: auto;

    display: grid;

    grid-template-columns:
        1.1fr .9fr;

    align-items: center;

    gap: 70px;
}


/* STATUS */

.status {

    display: inline-flex;

    align-items: center;

    gap: 10px;

    padding:
        7px 12px;

    border:
        1px solid
        rgba(0,255,157,.18);

    background:
        rgba(0,255,157,.04);

    border-radius: 30px;

    color: var(--green);

    font-family: var(--mono);

    font-size: .7rem;

    margin-bottom: 25px;
}


.status-dot {

    width: 7px;
    height: 7px;

    background: var(--green);

    border-radius: 50%;

    box-shadow:
        0 0 10px
        var(--green);

    animation:
        pulse 2s infinite;
}


@keyframes pulse {

    0%,100% {
        opacity: 1;
    }

    50% {
        opacity: .3;
    }
}


/* TERMINAL INTRO */

.terminal-intro {

    font-family: var(--mono);

    color: var(--muted);

    font-size: .85rem;

    margin-bottom: 20px;
}


.prompt {
    color: var(--green);
}


.hero h1 {

    font-size:
        clamp(
            2.8rem,
            5vw,
            5.3rem
        );

    line-height: 1.05;

    letter-spacing: -3px;

    margin-bottom: 28px;
}


.gradient-text {

    background:
        var(--gradient);

    -webkit-background-clip: text;

    background-clip: text;

    color: transparent;
}


.hero-description {

    max-width: 650px;

    color: var(--muted);

    font-size: 1rem;

    line-height: 1.8;

    margin-bottom: 35px;
}


/* BUTTONS */

.hero-buttons {

    display: flex;

    gap: 14px;

    flex-wrap: wrap;
}


.btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 12px;

    padding:
        13px 22px;

    border-radius: 4px;

    font-family: var(--mono);

    font-size: .75rem;

    font-weight: 600;

    transition: .3s;

    cursor: pointer;
}


.btn-primary {

    background:
        var(--gradient);

    color: #001018;

    border: 1px solid transparent;
}


.btn-primary:hover {

    transform:
        translateY(-3px);

    box-shadow:
        0 10px 30px
        rgba(0,229,255,.2);
}


.btn-outline {

    border:
        1px solid var(--border);

    color: var(--white);

    background:
        rgba(255,255,255,.02);
}


.btn-outline:hover {

    border-color:
        var(--primary);

    color: var(--primary);
}


/* SOCIAL */

.social-links {

    display: flex;

    gap: 12px;

    margin-top: 35px;
}


.social-links a {

    width: 40px;
    height: 40px;

    display: flex;

    align-items: center;

    justify-content: center;

    border:
        1px solid var(--border);

    color: var(--muted);

    border-radius: 4px;

    transition: .3s;
}


.social-links a:hover {

    color: var(--primary);

    border-color:
        var(--primary);

    transform:
        translateY(-3px);
}


/* =====================================================
   TERMINAL
===================================================== */

.terminal-wrapper {

    position: relative;

    perspective: 1000px;
}


.terminal {

    position: relative;

    z-index: 2;

    background:
        rgba(7,12,21,.94);

    border:
        1px solid
        rgba(0,229,255,.18);

    border-radius: 8px;

    overflow: hidden;

    box-shadow:

        0 30px 80px
        rgba(0,0,0,.5),

        0 0 60px
        rgba(0,229,255,.05);

    transform:
        rotateY(-4deg);

    animation:
        terminalFloat 6s ease-in-out infinite;
}


@keyframes terminalFloat {

    0%,100% {
        transform:
            rotateY(-4deg)
            translateY(0);
    }

    50% {
        transform:
            rotateY(-4deg)
            translateY(-10px);
    }
}


.terminal-header {

    height: 42px;

    padding:
        0 15px;

    display: flex;

    align-items: center;

    justify-content: center;

    position: relative;

    background:
        #0d1420;

    border-bottom:
        1px solid var(--border);
}


.terminal-buttons {

    position: absolute;

    left: 15px;

    display: flex;

    gap: 6px;
}


.terminal-buttons span {

    width: 10px;
    height: 10px;

    border-radius: 50%;
}


.red {
    background: #ff5f57;
}

.yellow {
    background: #febc2e;
}

.green {
    background: #28c840;
}


.terminal-title {

    color: #607087;

    font-family: var(--mono);

    font-size: .65rem;
}


.terminal-body {

    padding:
        25px;

    font-family: var(--mono);

    font-size: .72rem;

    line-height: 2;

    color: #aebdce;
}


.terminal-muted {
    color: #56657a;
}


.terminal-green {
    color: var(--green);
}


.terminal-blue {
    color: var(--primary);
}


.terminal-white {
    color: white;
}


.cursor {

    color: var(--primary);

    animation:
        blink 1s infinite;
}


@keyframes blink {

    50% {
        opacity: 0;
    }
}


.terminal-decoration {

    position: absolute;

    width: 100%;
    height: 100%;

    top: 20px;
    left: 20px;

    border:
        1px solid
        rgba(0,229,255,.08);

    border-radius: 8px;

    z-index: 1;
}


/* =====================================================
   SCROLL
===================================================== */

.scroll-down {

    position: absolute;

    bottom: 25px;

    left: 50%;

    transform:
        translateX(-50%);

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 7px;

    color: #465469;

    font-family: var(--mono);

    font-size: .55rem;

    animation:
        scrollBounce 2s infinite;
}


@keyframes scrollBounce {

    50% {
        transform:
            translate(-50%,8px);
    }
}


/* =====================================================
   SECTIONS
===================================================== */

.section {

    max-width: 1250px;

    margin: auto;

    padding:
        120px 25px;
}


/* TITRES */

.section-heading {

    margin-bottom: 70px;
}


.section-number {

    color: var(--primary);

    font-family: var(--mono);

    font-size: .8rem;
}


.section-line {

    display: inline-block;

    width: 80px;

    height: 1px;

    background:
        rgba(0,229,255,.25);

    vertical-align: middle;

    margin:
        0 15px;
}


.section-label {

    color: var(--muted);

    font-family: var(--mono);

    font-size: .65rem;

    letter-spacing: 2px;
}


.section-heading h2 {

    margin-top: 12px;

    font-size:
        clamp(2rem,4vw,3rem);

    letter-spacing: -1px;
}


/* =====================================================
   REVEAL
===================================================== */

.reveal {

    opacity: 0;

    transform:
        translateY(35px);

    transition:
        opacity .8s ease,
        transform .8s ease;
}


.reveal.visible {

    opacity: 1;

    transform:
        translateY(0);
}


/* =====================================================
   TIMELINE
===================================================== */

.timeline {

    max-width: 900px;

    margin: auto;

    position: relative;
}


.timeline::before {

    content: "";

    position: absolute;

    left: 24px;

    top: 0;
    bottom: 0;

    width: 1px;

    background:
        linear-gradient(
            var(--primary),
            rgba(0,229,255,0)
        );
}


.timeline-item {

    position: relative;

    display: flex;

    gap: 30px;

    margin-bottom: 50px;
}


.timeline-marker {

    position: relative;

    z-index: 2;

    min-width: 50px;
    height: 50px;

    display: flex;

    align-items: center;

    justify-content: center;

    background:
        var(--bg);

    border:
        1px solid var(--primary);

    color: var(--primary);

    border-radius: 50%;

    box-shadow:
        0 0 20px
        rgba(0,229,255,.08);
}


.timeline-card {

    flex: 1;

    padding:
        25px;

    background:
        var(--card);

    border:
        1px solid var(--border);

    border-radius: 6px;

    transition: .3s;
}


.timeline-card:hover {

    border-color:
        rgba(0,229,255,.25);

    transform:
        translateX(5px);
}


.timeline-date {

    color: var(--primary);

    font-family: var(--mono);

    font-size: .7rem;
}


.timeline-card h3 {

    margin:
        8px 0 3px;

    font-size: 1.15rem;
}


.timeline-card h4 {

    color: var(--muted);

    font-weight: 400;

    font-size: .85rem;

    margin-bottom: 15px;
}


.timeline-card p {

    color: var(--muted);

    font-size: .88rem;

    margin-bottom: 20px;
}


/* TAGS */

.tags {

    display: flex;

    flex-wrap: wrap;

    gap: 7px;
}


.tags span,
.project-tech span {

    padding:
        4px 9px;

    background:
        rgba(0,229,255,.05);

    border:
        1px solid
        rgba(0,229,255,.1);

    color:
        #6edff0;

    border-radius: 3px;

    font-family: var(--mono);

    font-size: .6rem;
}


/* =====================================================
   SKILLS
===================================================== */

.skills-section {

    margin-top: 100px;
}


.mini-heading {

    margin-bottom: 30px;
}


.mini-heading span {

    color: var(--primary);

    font-family: var(--mono);

    font-size: .65rem;

    letter-spacing: 2px;
}


.mini-heading h3 {

    margin-top: 8px;

    font-size: 1.6rem;
}


.skills-grid {

    display: grid;

    grid-template-columns:
        repeat(2,1fr);

    gap: 15px;
}


.skill-card {

    display: flex;

    align-items: center;

    gap: 15px;

    padding: 18px;

    background:
        var(--card);

    border:
        1px solid var(--border);

    border-radius: 5px;
}


.skill-icon {

    min-width: 42px;

    color: var(--primary);

    font-size: 1.4rem;
}


.skill-info {

    flex: 1;
}


.skill-info h4 {

    font-size: .85rem;

    margin-bottom: 7px;
}


.skill-bar {

    width: 100%;

    height: 3px;

    background:
        #1a2331;

    border-radius: 5px;

    overflow: hidden;
}


.skill-bar span {

    display: block;

    height: 100%;

    background:
        var(--gradient);

    border-radius: 5px;
}


.skill-card > strong {

    color: var(--primary);

    font-family: var(--mono);

    font-size: .65rem;
}


/* =====================================================
   ABOUT
===================================================== */

.about-grid {

    display: grid;

    grid-template-columns:
        350px 1fr;

    gap: 80px;

    align-items: center;
}


.about-photo {

    position: relative;

    display: flex;

    justify-content: center;
}


.photo-frame {

    width: 290px;
    height: 350px;

    padding: 8px;

    border:
        1px solid
        rgba(0,229,255,.35);

    position: relative;

    z-index: 2;
}


.photo-placeholder {

    width: 100%;
    height: 100%;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 15px;

    background:
        linear-gradient(
            145deg,
            #0b1522,
            #07101a
        );

    color: var(--primary);

    font-family: var(--mono);

    font-size: .7rem;
}


.photo-placeholder i {

    font-size: 5rem;

    opacity: .4;
}


.photo-decoration {

    position: absolute;

    width: 290px;
    height: 350px;

    border:
        1px solid
        rgba(0,229,255,.15);

    transform:
        translate(
            18px,
            18px
        );
}


.about-content {

    color: var(--muted);

    font-size: .95rem;
}


.about-content p {

    margin-bottom: 20px;
}


.about-intro {

    color: white;

    font-family: var(--mono);

    font-size: 1rem;
}


.green {

    color: var(--green);
}


.about-values {

    display: grid;

    grid-template-columns:
        repeat(3,1fr);

    gap: 10px;

    margin-top: 30px;
}


.about-values div {

    padding: 15px;

    display: flex;

    flex-direction: column;

    gap: 10px;

    background:
        var(--card);

    border:
        1px solid var(--border);

    color: var(--muted);

    font-size: .7rem;
}


.about-values i {

    color: var(--primary);

    font-size: 1.2rem;
}


/* =====================================================
   PROJECTS
===================================================== */

.projects-section {

    max-width: 1100px;
}


.projects-grid {

    display: grid;

    grid-template-columns:
        repeat(2,1fr);

    gap: 18px;
}


.project-card {

    padding: 25px;

    min-height: 280px;

    display: flex;

    flex-direction: column;

    background:
        var(--card);

    border:
        1px solid var(--border);

    border-radius: 6px;

    transition: .35s;
}


.project-card:hover {

    transform:
        translateY(-7px);

    border-color:
        rgba(0,229,255,.3);

    box-shadow:
        0 20px 50px
        rgba(0,0,0,.25);
}


.project-top {

    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 25px;
}


.folder {

    color: var(--primary);

    font-size: 1.7rem;
}


.project-top > a {

    color: var(--muted);

    font-size: 1.1rem;

    transition: .3s;
}


.project-top > a:hover {

    color: var(--primary);
}


.project-card h3 {

    font-size: 1.2rem;

    margin-bottom: 12px;
}


.project-card p {

    color: var(--muted);

    font-size: .83rem;

    line-height: 1.7;

    flex: 1;
}


.project-tech {

    display: flex;

    flex-wrap: wrap;

    gap: 7px;

    margin-top: 20px;
}


.github-button {

    margin-top: 40px;

    text-align: center;
}


/* =====================================================
   CONTACT
===================================================== */

.contact-grid {

    display: grid;

    grid-template-columns:
        .9fr 1.1fr;

    gap: 80px;

    align-items: start;
}


.contact-terminal {

    color: var(--green);

    font-family: var(--mono);

    font-size: .7rem;
}


.contact-text h3 {

    font-size:
        clamp(2.2rem,4vw,3.5rem);

    line-height: 1.1;

    margin:
        25px 0;
}


.contact-text h3 span {

    color: var(--primary);
}


.contact-text > p {

    color: var(--muted);

    font-size: .9rem;

    line-height: 1.8;

    margin-bottom: 35px;
}


.contact-method {

    display: flex;

    align-items: center;

    gap: 15px;

    margin-bottom: 20px;
}


.contact-method > i {

    width: 40px;
    height: 40px;

    display: flex;

    align-items: center;

    justify-content: center;

    border:
        1px solid var(--border);

    color: var(--primary);

    border-radius: 4px;
}


.contact-method span {

    display: block;

    color: var(--muted);

    font-size: .65rem;

    font-family: var(--mono);
}


.contact-method a {

    color: white;

    font-size: .8rem;

    transition: .3s;
}


.contact-method a:hover {

    color: var(--primary);
}


/* FORM */

.contact-form {

    padding: 30px;

    background:
        var(--card);

    border:
        1px solid var(--border);

    border-radius: 6px;
}


.form-header {

    display: flex;

    align-items: center;

    gap: 10px;

    padding-bottom: 20px;

    margin-bottom: 25px;

    border-bottom:
        1px solid var(--border);

    color: var(--muted);

    font-family: var(--mono);

    font-size: .7rem;
}


.form-dot {

    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: var(--green);

    box-shadow:
        0 0 10px
        var(--green);
}


.form-group {

    margin-bottom: 18px;
}


.form-group label {

    display: block;

    color: #a9b7c9;

    font-family: var(--mono);

    font-size: .65rem;

    margin-bottom: 8px;
}


.form-group input,
.form-group textarea {

    width: 100%;

    padding:
        12px 14px;

    border:
        1px solid var(--border);

    outline: none;

    border-radius: 4px;

    background:
        #060b13;

    color: white;

    font-size: .8rem;

    transition: .3s;
}


.form-group textarea {

    resize: vertical;
}


.form-group input:focus,
.form-group textarea:focus {

    border-color:
        var(--primary);

    box-shadow:
        0 0 0 2px
        rgba(0,229,255,.05);
}


.submit-button {

    width: 100%;

    border: 0;

    margin-top: 5px;
}


#form-message {

    text-align: center;

    font-family: var(--mono);

    font-size: .65rem;

    margin-top: 15px;
}


/* =====================================================
   FOOTER
===================================================== */

.footer {

    border-top:
        1px solid var(--border);

    background:
        #03060b;
}


.footer-content {

    max-width: 1100px;

    margin: auto;

    padding:
        45px 25px;

    display: flex;

    align-items: center;

    justify-content: space-between;
}


.footer-brand p {

    color: var(--muted);

    font-size: .7rem;

    margin-top: 8px;
}


.footer-socials {

    display: flex;

    gap: 10px;
}


.footer-socials a {

    width: 38px;
    height: 38px;

    display: flex;

    align-items: center;

    justify-content: center;

    border:
        1px solid var(--border);

    color: var(--muted);

    border-radius: 4px;

    transition: .3s;
}


.footer-socials a:hover {

    color: var(--primary);

    border-color:
        var(--primary);
}


.footer-bottom {

    padding:
        18px 25px;

    border-top:
        1px solid var(--border);

    display: flex;

    align-items: center;

    justify-content: space-between;

    max-width: 1100px;

    margin: auto;

    color: #4c5a6e;

    font-family: var(--mono);

    font-size: .6rem;
}


.footer-status {

    display: flex;

    align-items: center;

    gap: 7px;

    color: var(--green);
}


.footer-status span {

    width: 6px;
    height: 6px;

    background: var(--green);

    border-radius: 50%;
}


/* =====================================================
   CURSEUR
===================================================== */

.cursor-glow {

    position: fixed;

    width: 300px;
    height: 300px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(0,229,255,.04),
            transparent 65%
        );

    pointer-events: none;

    transform:
        translate(-50%,-50%);

    z-index: 0;
}


/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 950px) {

    .nav-links,
    .nav-button {
        display: none;
    }

    .menu-toggle {
        display: block;
    }


    .nav-links.mobile-active {

        display: flex;

        position: absolute;

        top: 80px;

        left: 0;

        width: 100%;

        flex-direction: column;

        gap: 0;

        padding: 10px 0;

        background:
            rgba(5,8,15,.98);

        border-bottom:
            1px solid var(--border);
    }


    .nav-links.mobile-active li {

        width: 100%;

        text-align: center;
    }


    .nav-links.mobile-active a {

        display: block;

        padding: 16px;
    }


    .hero-container {

        grid-template-columns: 1fr;

    }


    .terminal-wrapper {

        max-width: 650px;

        width: 100%;

        margin: auto;
    }


    .about-grid {

        grid-template-columns: 1fr;

    }


    .about-photo {

        margin-bottom: 20px;
    }


    .contact-grid {

        grid-template-columns: 1fr;

    }

}


@media (max-width: 650px) {

    .hero {

        padding:
            120px 20px 70px;
    }


    .hero h1 {

        font-size: 2.7rem;

        letter-spacing: -2px;
    }


    .section {

        padding:
            90px 20px;
    }


    .skills-grid,
    .projects-grid {

        grid-template-columns: 1fr;
    }


    .about-values {

        grid-template-columns: 1fr;
    }


    .timeline-item {

        gap: 15px;
    }


    .timeline-marker {

        min-width: 42px;
        height: 42px;
    }


    .timeline::before {

        left: 20px;
    }


    .timeline-card {

        padding: 18px;
    }


    .terminal-body {

        padding: 18px;

        font-size: .6rem;
    }


    .contact-form {

        padding: 20px;
    }


    .footer-content,
    .footer-bottom {

        flex-direction: column;

        gap: 20px;

        text-align: center;
    }

}


/* =====================================================
   ACCESSIBILITÉ
===================================================== */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {

        animation-duration: .01ms !important;

        animation-iteration-count: 1 !important;

        scroll-behavior: auto !important;

        transition-duration: .01ms !important;
    }

}