/* =========================================================
   BRYAN GIRAULT — PORTFOLIO
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Space+Mono:wght@400;700&display=swap');


/* =========================================================
   VARIABLES
   ========================================================= */

:root {
    --bg: #05070a;
    --bg-secondary: #090d12;
    --card: #0b1118;
    --border: rgba(255, 255, 255, 0.09);

    --text: #f1f5f9;
    --text-secondary: #94a3b8;

    --accent: #00e5ff;
    --accent-secondary: #00ff9d;

    --max-width: 1200px;
}


/* =========================================================
   RESET
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: "Inter", sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}


/* =========================================================
   BACKGROUND
   ========================================================= */

body::before {
    content: "";
    position: fixed;
    inset: 0;

    background-image:
        linear-gradient(
            rgba(255,255,255,0.025) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,0.025) 1px,
            transparent 1px
        );

    background-size: 50px 50px;

    mask-image: linear-gradient(
        to bottom,
        black,
        transparent 80%
    );

    pointer-events: none;
    z-index: -2;
}

body::after {
    content: "";

    position: fixed;

    width: 500px;
    height: 500px;

    top: -250px;
    right: -150px;

    background: var(--accent);

    opacity: 0.07;

    filter: blur(120px);

    border-radius: 50%;

    pointer-events: none;

    z-index: -3;
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.navbar {
    position: fixed;

    top: 0;
    left: 0;
    right: 0;

    height: 75px;

    display: flex;
    align-items: center;

    padding: 0 40px;

    background: rgba(5, 7, 10, 0.75);

    backdrop-filter: blur(20px);

    border-bottom: 1px solid var(--border);

    z-index: 1000;
}

.logo {
    font-family: "Space Mono", monospace;

    font-size: 24px;
    font-weight: 700;

    letter-spacing: -2px;

    margin-right: auto;
}

.logo span {
    color: var(--accent);
}

.navbar nav {
    display: flex;

    gap: 30px;

    margin-right: 35px;
}

.navbar nav a {
    font-size: 13px;

    color: var(--text-secondary);

    transition: 0.25s ease;
}

.navbar nav a:hover {
    color: var(--accent);
}

.cv-button {
    padding: 10px 18px;

    border: 1px solid var(--accent);

    color: var(--accent);

    font-family: "Space Mono", monospace;

    font-size: 12px;

    transition: 0.25s ease;
}

.cv-button:hover {
    background: var(--accent);
    color: #000;

    box-shadow:
        0 0 25px rgba(0, 229, 255, 0.35);
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
    position: relative;

    min-height: 100vh;

    max-width: var(--max-width);

    margin: auto;

    padding:
        150px 40px
        100px 40px;

    display: flex;

    align-items: center;

    gap: 80px;
}

.hero-content {
    position: relative;

    flex: 1;

    z-index: 2;
}

.status {
    display: inline-flex;

    align-items: center;

    gap: 10px;

    margin-bottom: 25px;

    font-family: "Space Mono", monospace;

    font-size: 11px;

    color: var(--text-secondary);

    letter-spacing: 1px;
}

.status-dot {
    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: var(--accent-secondary);

    box-shadow:
        0 0 12px var(--accent-secondary);

    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.35;
    }
}

.eyebrow {
    font-family: "Space Mono", monospace;

    color: var(--accent);

    font-size: 12px;

    letter-spacing: 2px;

    margin-bottom: 15px;
}

.hero h1 {
    font-size: clamp(65px, 9vw, 120px);

    line-height: 0.85;

    letter-spacing: -7px;

    font-weight: 800;

    margin-bottom: 30px;
}

.hero h1 span {
    color: transparent;

    -webkit-text-stroke:
        1px rgba(255,255,255,0.4);
}

.hero-description {
    font-family: "Space Mono", monospace;

    color: var(--text-secondary);

    font-size: 15px;

    margin-bottom: 25px;
}

.hero-text {
    max-width: 570px;

    color: var(--text-secondary);

    font-size: 16px;
}


/* =========================================================
   HERO BUTTONS
   ========================================================= */

.hero-actions,
.cv-actions {
    display: flex;

    gap: 15px;

    margin-top: 35px;

    flex-wrap: wrap;
}

.primary-button,
.secondary-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 48px;

    padding: 0 22px;

    font-family: "Space Mono", monospace;

    font-size: 11px;

    letter-spacing: 0.5px;

    transition: 0.3s ease;
}

.primary-button {
    background: var(--accent);

    color: #000;

    font-weight: 700;
}

.primary-button:hover {
    transform: translateY(-3px);

    box-shadow:
        0 10px 35px rgba(0, 229, 255, 0.25);
}

.secondary-button {
    border: 1px solid var(--border);

    color: var(--text);
}

.secondary-button:hover {
    border-color: var(--accent);

    color: var(--accent);
}


/* =========================================================
   TERMINAL
   ========================================================= */

.hero-terminal {
    width: 420px;

    background: rgba(9, 13, 18, 0.9);

    border: 1px solid var(--border);

    box-shadow:
        0 30px 100px rgba(0,0,0,0.4);

    transform:
        perspective(1000px)
        rotateY(-6deg);

    transition: 0.5s ease;
}

.hero-terminal:hover {
    transform:
        perspective(1000px)
        rotateY(0deg)
        translateY(-5px);

    border-color:
        rgba(0, 229, 255, 0.3);
}

.terminal-header {
    height: 35px;

    display: flex;

    align-items: center;

    gap: 7px;

    padding: 0 14px;

    border-bottom: 1px solid var(--border);
}

.terminal-header span {
    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: #475569;
}

.terminal-body {
    padding: 25px;

    font-family: "Space Mono", monospace;

    font-size: 12px;

    line-height: 2;
}

.terminal-green {
    color: var(--accent-secondary);
}

.terminal-output {
    color: var(--text-secondary);

    margin-bottom: 12px;
}

.terminal-success {
    color: var(--accent);

    animation: blink 1.2s infinite;
}

@keyframes blink {

    50% {
        opacity: 0.4;
    }
}


/* =========================================================
   SECTIONS
   ========================================================= */

.section {
    max-width: var(--max-width);

    margin: auto;

    padding:
        120px 40px;
}

.section-title {
    margin-bottom: 60px;
}

.section-title p {
    color: var(--accent);

    font-family: "Space Mono", monospace;

    font-size: 11px;

    letter-spacing: 2px;

    margin-bottom: 10px;
}

.section-title h2 {
    font-size: clamp(40px, 6vw, 70px);

    letter-spacing: -4px;

    line-height: 1;
}


/* =========================================================
   SKILLS
   ========================================================= */

.skills-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 15px;
}

.skill-card {
    position: relative;

    min-height: 220px;

    padding: 30px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,0.035),
            rgba(255,255,255,0.01)
        );

    border: 1px solid var(--border);

    transition:
        transform 0.3s ease,
        border-color 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-6px);

    border-color:
        rgba(0,229,255,0.35);
}

.skill-number {
    font-family: "Space Mono", monospace;

    color: var(--accent);

    font-size: 11px;
}

.skill-card h3 {
    margin-top: 30px;

    margin-bottom: 15px;

    font-size: 17px;
}

.skill-card p {
    color: var(--text-secondary);

    font-size: 14px;
}


/* =========================================================
   TIMELINE
   ========================================================= */

.timeline {
    border-left:
        1px solid var(--border);

    margin-left: 10px;
}

.timeline-item {
    position: relative;

    display: grid;

    grid-template-columns:
        180px 1fr;

    gap: 50px;

    padding:
        0 0 70px 40px;
}

.timeline-item::before {
    content: "";

    position: absolute;

    width: 9px;
    height: 9px;

    border-radius: 50%;

    background: var(--accent);

    left: -5px;

    top: 5px;

    box-shadow:
        0 0 15px var(--accent);
}

.timeline-date {
    font-family: "Space Mono", monospace;

    font-size: 12px;

    color: var(--accent);
}

.timeline-content h3 {
    font-size: 24px;

    margin-bottom: 5px;
}

.company {
    color: var(--text-secondary);

    font-family: "Space Mono", monospace;

    font-size: 12px;

    margin-bottom: 20px;
}

.timeline-content ul {
    padding-left: 20px;

    color: var(--text-secondary);

    font-size: 14px;
}

.timeline-content li {
    margin-bottom: 8px;
}


/* =========================================================
   PROJECT
   ========================================================= */

.project-card {
    display: grid;

    grid-template-columns:
        180px 1fr;

    gap: 50px;

    padding: 50px;

    border: 1px solid var(--border);

    background:
        linear-gradient(
            135deg,
            rgba(0,229,255,0.04),
            transparent
        );

    transition: 0.3s ease;
}

.project-card:hover {
    border-color:
        rgba(0,229,255,0.3);
}

.project-number {
    color: var(--accent);

    font-family: "Space Mono", monospace;

    font-size: 11px;
}

.project-content h3 {
    font-size: 30px;

    margin-bottom: 20px;
}

.project-content p {
    max-width: 700px;

    color: var(--text-secondary);
}

.tags {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;

    margin-top: 25px;
}

.tags span {
    padding: 6px 10px;

    border: 1px solid var(--border);

    color: var(--text-secondary);

    font-family: "Space Mono", monospace;

    font-size: 10px;
}


/* =========================================================
   FORMATION
   ========================================================= */

.education-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 15px;
}

.education-card {
    padding: 30px;

    border: 1px solid var(--border);

    background:
        rgba(255,255,255,0.02);
}

.education-card span {
    color: var(--accent);

    font-family: "Space Mono", monospace;

    font-size: 11px;
}

.education-card h3 {
    margin: 25px 0 10px;

    font-size: 18px;
}

.education-card p {
    color: var(--text-secondary);

    font-size: 13px;
}


/* =========================================================
   CV SECTION
   ========================================================= */

.cv-section {
    position: relative;

    max-width: var(--max-width);

    margin: 80px auto;

    padding:
        100px 40px;

    text-align: center;

    border-top:
        1px solid var(--border);

    border-bottom:
        1px solid var(--border);

    overflow: hidden;
}

.cv-section::before {
    content: "";

    position: absolute;

    width: 500px;
    height: 500px;

    left: 50%;
    top: 50%;

    transform:
        translate(-50%, -50%);

    background: var(--accent);

    opacity: 0.05;

    filter: blur(100px);

    pointer-events: none;
}

.cv-section > * {
    position: relative;

    z-index: 1;
}

.cv-section > p {
    color: var(--accent);

    font-family: "Space Mono", monospace;

    font-size: 11px;

    letter-spacing: 2px;
}

.cv-section h2 {
    font-size: clamp(45px, 7vw, 80px);

    line-height: 0.95;

    letter-spacing: -5px;

    margin-top: 20px;
}

.cv-actions {
    justify-content: center;
}


/* =========================================================
   CONTACT
   ========================================================= */

.contact-content {
    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 50px;

    padding: 40px 0;
}

.contact-content p {
    color: var(--text-secondary);

    max-width: 500px;
}

.contact-content a {
    color: var(--accent);

    font-family: "Space Mono", monospace;

    font-size: 14px;

    transition: 0.25s ease;
}

.contact-content a:hover {
    text-shadow:
        0 0 15px var(--accent);
}


/* =========================================================
   FOOTER
   ========================================================= */

footer {
    max-width: var(--max-width);

    margin: auto;

    padding:
        35px 40px;

    display: flex;

    justify-content: space-between;

    gap: 20px;

    border-top:
        1px solid var(--border);

    color: var(--text-secondary);

    font-family: "Space Mono", monospace;

    font-size: 10px;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1000px) {

    .navbar nav {
        display: none;
    }

    .hero {
        flex-direction: column;

        align-items: flex-start;

        padding-top: 130px;
    }

    .hero-terminal {
        width: 100%;

        max-width: 600px;
    }

    .skills-grid,
    .education-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

}


@media (max-width: 650px) {

    .navbar {
        padding: 0 20px;
    }

    .hero,
    .section {
        padding-left: 20px;
        padding-right: 20px;
    }

    .hero h1 {
        font-size: 60px;

        letter-spacing: -4px;
    }

    .skills-grid,
    .education-grid {
        grid-template-columns: 1fr;
    }

    .timeline-item {
        grid-template-columns: 1fr;

        gap: 15px;

        padding-left: 25px;
    }

    .project-card {
        grid-template-columns: 1fr;

        gap: 20px;

        padding: 30px;
    }

    .project-content h3 {
        font-size: 24px;
    }

    .contact-content {
        flex-direction: column;

        align-items: flex-start;
    }

    footer {
        flex-direction: column;

        padding-left: 20px;
        padding-right: 20px;
    }

}

/* =========================================================
   ANIMATIONS AU SCROLL
   ========================================================= */

.hidden {
    opacity: 0;

    transform: translateY(30px);

    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}

.visible {
    opacity: 1;

    transform: translateY(0);
}

/* =========================================================
   MENU MOBILE
   ========================================================= */

.mobile-menu-button {
    display: none;

    background: none;

    border: 0;

    color: var(--text);

    font-size: 28px;

    cursor: pointer;

    font-family: "Inter", sans-serif;
}

.mobile-menu {
    display: none;
}


/* =========================================================
   VERSION MOBILE
   ========================================================= */

@media (max-width: 650px) {

    .navbar {
        height: 65px;

        padding: 0 20px;
    }

    .desktop-nav {
        display: none !important;
    }

    .navbar .cv-button {
        display: none;
    }

    .mobile-menu-button {
        display: block;

        margin-left: auto;
    }

    .mobile-menu {
        position: fixed;

        top: 65px;
        left: 0;
        right: 0;

        z-index: 999;

        display: flex;

        flex-direction: column;

        padding: 20px;

        background:
            rgba(5, 7, 10, 0.97);

        backdrop-filter: blur(20px);

        border-bottom:
            1px solid var(--border);

        transform: translateY(-120%);

        transition:
            transform 0.3s ease;
    }

    .mobile-menu.active {
        transform: translateY(0);
    }

    .mobile-menu a {
        padding: 16px 5px;

        border-bottom:
            1px solid var(--border);

        color: var(--text-secondary);

        font-family:
            "Space Mono",
            monospace;

        font-size: 12px;

        text-transform: uppercase;
    }

    .mobile-menu a:hover {
        color: var(--accent);
    }

    .mobile-menu .mobile-cv {
        margin-top: 15px;

        border:
            1px solid var(--accent);

        color: var(--accent);

        text-align: center;
    }

}