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

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

html {
    scroll-behavior: smooth;
}

body {
    background: #0a0e1a;
    color: #e9ecf7;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

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

button,
input,
textarea {
    font: inherit;
}


/* ================================
   BACKGROUND
================================ */

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;

    background:
        radial-gradient(
            ellipse 700px 500px at 10% 0%,
            rgba(77,124,255,0.15),
            transparent 60%
        ),

        radial-gradient(
            ellipse 700px 600px at 90% 15%,
            rgba(157,91,255,0.15),
            transparent 60%
        ),

        #0a0e1a;
}


/* ================================
   NAVBAR
================================ */

header {
    position: sticky;
    top: 0;
    z-index: 100;

    background: rgba(10,14,26,0.85);

    backdrop-filter: blur(15px);

    border-bottom: 1px solid #232c4d;
}

.navbar {
    max-width: 1100px;
    margin: auto;

    padding: 18px 25px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.1rem;
    font-weight: bold;
}

.logo span {
    color: #7b61ff;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    color: #8991b3;
    transition: 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: white;
}

.nav-links a.active {
    border-bottom: 2px solid #7b61ff;
    padding-bottom: 5px;
}

.menu-btn {
    display: none;

    background: transparent;
    border: 1px solid #232c4d;

    color: white;

    width: 42px;
    height: 42px;

    border-radius: 8px;

    cursor: pointer;
}


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

.hero {
    max-width: 1100px;

    min-height: 85vh;

    margin: auto;

    padding: 80px 25px;

    display: grid;

    grid-template-columns: 1.2fr 0.8fr;

    gap: 60px;

    align-items: center;
}

.kicker {
    color: #7b8cff;

    font-weight: bold;

    margin-bottom: 15px;
}

.hero h1 {
    font-size: clamp(2.4rem, 5vw, 4.5rem);

    line-height: 1.05;

    margin-bottom: 25px;
}

.hero h1 span {
    background: linear-gradient(
        90deg,
        #4d7cff,
        #9d5bff
    );
background-clip: text;
    -moz-background-clip: text;

    color: transparent;
}

.hero h2 {
    color: #8991b3;

    font-size: 1.3rem;

    min-height: 40px;

    margin-bottom: 20px;
}

.description {
    max-width: 600px;

    color: #8991b3;

    margin-bottom: 30px;
}


/* ================================
   BUTTONS
================================ */

.buttons {
    display: flex;

    gap: 15px;

    flex-wrap: wrap;
}

.btn {
    display: inline-block;

    padding: 13px 24px;

    border-radius: 10px;

    font-weight: bold;

    transition: 0.3s;
}

.btn:hover {
    transform: translateY(-3px);
}

.primary {
    background: linear-gradient(
        90deg,
        #4d7cff,
        #9d5bff
    );

    color: white;
}

.secondary {
    background: #141b33;

    border: 1px solid #232c4d;
}


/* ================================
   PROFILE
================================ */

.profile {
    position: relative;

    width: 300px;
    height: 300px;

    margin: auto;

    display: flex;

    align-items: center;
    justify-content: center;
}

.profile-ring {
    position: absolute;

    inset: 0;

    border-radius: 50%;

    background: conic-gradient(
        #4d7cff,
        #9d5bff,
        #4d7cff
    );

    animation: rotate 8s linear infinite;
}

.profile::after {
    content: "";

    position: absolute;

    inset: 6px;

    background: #0a0e1a;

    border-radius: 50%;
}

.avatar {
    position: relative;

    z-index: 2;

    width: 250px;
    height: 250px;

    border-radius: 50%;

    background: #141b33;

    border: 1px solid #232c4d;

    display: flex;

    align-items: center;
    justify-content: center;
}

.avatar span {
    font-size: 4rem;

    font-weight: bold;

    background: linear-gradient(
        135deg,
        #4d7cff,
        #9d5bff
    );
background-clip: text;
    -webkit-background-clip: text;

    color: transparent;
}

.badge {
    position: absolute;

    z-index: 5;

    bottom: 0;
    right: -10px;

    background: #141b33;

    border: 1px solid #232c4d;

    padding: 8px 15px;

    border-radius: 30px;

    font-size: 0.8rem;
}

@keyframes rotate {
    to {
        transform: rotate(360deg);
    }
}


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

section {
    border-top: 1px solid #232c4d;
}

.welcome,
.content-section {
    max-width: 1100px;

    margin: auto;

    padding: 80px 25px;
}

.section-title {
    margin-bottom: 40px;
}

.section-title p {
    color: #9d5bff;
}

.section-title h2 {
    font-size: 2rem;
}


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

.page-header {
    max-width: 1100px;

    margin: auto;

    padding: 80px 25px 40px;
}

.page-header h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);

    margin-bottom: 15px;
}

.page-header > p:last-child {
    color: #8991b3;
}


/* ================================
   CARDS
================================ */

.cards {
    display: grid;

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

    gap: 20px;
}

.card {
    background: #141b33;

    border: 1px solid #232c4d;

    padding: 25px;

    border-radius: 14px;

    transition: 0.3s;
}

.card:hover {
    transform: translateY(-5px);

    border-color: #4d7cff;
}

.card-icon {
    font-size: 2rem;

    margin-bottom: 15px;
}

.card h3 {
    margin-bottom: 8px;
}

.card p {
    color: #8991b3;
}


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

.about-grid {
    display: grid;

    grid-template-columns:
        1.3fr 0.7fr;

    gap: 50px;
}

.about-text h2 {
    margin-bottom: 20px;
}

.about-text p {
    color: #8991b3;

    margin-bottom: 18px;
}

.about-text strong {
    color: white;
}

.stats {
    display: flex;

    flex-direction: column;

    gap: 15px;
}

.stat {
    background: #141b33;

    border: 1px solid #232c4d;

    border-radius: 14px;

    padding: 22px;
}

.stat h3 {
    color: #7b8cff;

    margin-bottom: 5px;
}

.stat p {
    color: #8991b3;
}


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

.skills-grid {
    display: grid;

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

    gap: 20px;
}

.skill-box {
    background: #141b33;

    border: 1px solid #232c4d;

    border-radius: 14px;

    padding: 25px;
}

.skill-icon {
    font-size: 2rem;

    margin-bottom: 15px;
}

.skill-box h2 {
    font-size: 1.2rem;

    margin-bottom: 20px;
}

.tags {
    display: flex;

    flex-wrap: wrap;

    gap: 10px;
}

.tags span {
    padding: 7px 13px;

    border-radius: 30px;

    background: #10162a;

    border: 1px solid #232c4d;

    color: #8991b3;

    font-size: 0.85rem;
}


/* ================================
   ENGAGEMENT
================================ */

.engagement-grid {
    display: grid;

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

    gap: 20px;
}

.engagement-card {
    background: #141b33;

    border: 1px solid #232c4d;

    border-radius: 14px;

    padding: 30px 20px;

    text-align: center;
}

.shield {
    width: 60px;
    height: 65px;

    margin: 0 auto 20px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: linear-gradient(
        135deg,
        #4d7cff,
        #9d5bff
    );

    clip-path: polygon(
        50% 0%,
        100% 18%,
        100% 65%,
        50% 100%,
        0% 65%,
        0% 18%
    );

    color: #0a0e1a;

    font-weight: bold;
}

.engagement-card h2 {
    font-size: 1.1rem;

    margin-bottom: 10px;
}

.engagement-card p {
    color: #8991b3;
}

.grade {
    margin-top: 30px;

    padding: 20px;

    background: #10162a;

    border: 1px dashed #232c4d;

    border-radius: 14px;

    display: flex;

    align-items: center;

    gap: 15px;
}

.medal {
    font-size: 2rem;
}

.grade p {
    color: #8991b3;
}

.grade strong {
    color: white;
}


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

.projects {
    display: flex;

    flex-direction: column;

    gap: 15px;
}

.project-card {
    display: grid;

    grid-template-columns:
        70px 1fr auto;

    gap: 20px;

    align-items: center;

    background: #141b33;

    border: 1px solid #232c4d;

    border-radius: 14px;

    padding: 22px;

    transition: 0.3s;
}

.project-card:hover {
    border-color: #4d7cff;
}

.project-icon {
    width: 55px;
    height: 55px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #10162a;

    border-radius: 12px;

    font-size: 1.5rem;
}

.project-info h2 {
    font-size: 1.1rem;

    margin-bottom: 5px;
}

.project-info p {
    color: #8991b3;
}

.status {
    background: rgba(157,91,255,0.14);

    color: #b48aff;

    padding: 6px 12px;

    border-radius: 30px;

    font-size: 0.8rem;
}

.github-box {
    margin-top: 30px;

    padding: 25px;

    background: linear-gradient(
        120deg,
        rgba(77,124,255,0.14),
        rgba(157,91,255,0.14)
    );

    border: 1px solid #232c4d;

    border-radius: 14px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;
}

.github-box p {
    color: #8991b3;

    margin-top: 5px;
}


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

.contact-grid {
    display: grid;

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

    gap: 20px;
}

.contact-card {
    background: #141b33;

    border: 1px solid #232c4d;

    border-radius: 14px;

    padding: 25px;

    transition: 0.3s;
}

.contact-card:hover {
    border-color: #4d7cff;

    transform: translateY(-3px);
}

.contact-icon {
    width: 45px;
    height: 45px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #10162a;

    border-radius: 10px;

    margin-bottom: 15px;
}

.contact-card span {
    display: block;

    color: #8991b3;

    font-size: 0.85rem;

    margin-bottom: 5px;
}

.contact-card strong {
    word-break: break-word;
}


/* ================================
   FORMULAIRE
================================ */

.contact-form {
    margin-top: 40px;

    max-width: 700px;

    background: #141b33;

    border: 1px solid #232c4d;

    border-radius: 14px;

    padding: 30px;
}

.contact-form h2 {
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;

    margin-bottom: 7px;

    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;

    padding: 13px;

    background: #10162a;

    border: 1px solid #232c4d;

    border-radius: 8px;

    color: white;

    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #4d7cff;
}

.form-group textarea {
    resize: vertical;
}


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

footer {
    border-top: 1px solid #232c4d;

    text-align: center;

    padding: 30px;

    color: #8991b3;

    font-size: 0.85rem;
}


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

@media (max-width: 850px) {

    .menu-btn {
        display: block;
    }

    .nav-links {
        position: absolute;

        top: 100%;
        left: 0;
        right: 0;

        background: #10162a;

        flex-direction: column;

        gap: 0;

        display: none;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;

        padding: 15px 25px;

        border-bottom: 1px solid #232c4d;
    }


    .hero {
        grid-template-columns: 1fr;

        text-align: center;

        padding-top: 60px;
    }

    .hero-text {
        order: 2;
    }

    .profile {
        order: 1;

        width: 230px;
        height: 230px;
    }

    .avatar {
        width: 190px;
        height: 190px;
    }


    .buttons {
        justify-content: center;
    }


    .cards,
    .skills-grid,
    .engagement-grid,
    .contact-grid,
    .about-grid {
        grid-template-columns: 1fr;
    }


    .project-card {
        grid-template-columns: 55px 1fr;
    }

    .status {
        grid-column: 1 / -1;

        justify-self: start;
    }


    .github-box {
        flex-direction: column;

        align-items: flex-start;
    }

}