* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: "Poppins", sans-serif;
}

:root {
    --text-color: #ffffff;
    --bg-color: #151211;
    --main-color: #16b199;
    --primary-color: #38646b;
    --secondery-color: #3be0c3;
    --dark-color: #000000;
}

html {
    font-size: 60%;
    overflow-x: hidden;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    padding: 4rem 12% 4rem;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 8;
}

.logo {
    font-size: 3rem;
    color: var(--text-color);
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s ease;
}

.img_logo {
    width: 48px;
    height: auto;
    margin-right: 10px;
}

.logo:hover {
    transform: scale(1.1);
}

.logo span {
    text-shadow: 0 0 25px var(--main-color);
}

.navbar a {
    font-size: 1.8rem;
    color: var(--text-color);
    margin-left: 4rem;
    font-weight: 500;
    transition: 0.3s ease;
    border-bottom: 3px solid transparent;
}

.navbar a:hover,
.navbar a.active {
    color: var(--main-color);
    border-bottom: 3px solid var(--main-color);
}

#menu-icon {
    font-size: 3.6rem;
    color: var(--main-color);
    display: none;
}

section {
    min-height: 100vh;
    padding: 10rem 12% 10rem;
    margin-top: 20px;
    position: relative;
}

.home {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15rem;
}

.home-content {
    display: flex;
    flex-direction: column;
    align-items: baseline;
    text-align: left;
    justify-content: center;
    margin-top: 3rem;
}

span {
    color: var(--main-color);
}

.logo span {
    color: var(--main-color);
}

.home-content h3 {
    margin-bottom: 2rem;
    margin-top: 1rem;
    font-size: 3.5rem;
}

.home-content h1 {
    font-size: 7rem;
    font-weight: 700;
    margin-top: 1.5rem;
    line-height: 1;
}

.home-img {
    border-radius: 50%;
}

.home-img img {
    position: relative;
    top: 3rem;
    width: 25vw;
    border-radius: 50%;
    box-shadow: 0 0 25px var(--main-color);
    cursor: pointer;
    transition: 0.4s ease-in-out;
}

.home-img img:hover {
    box-shadow: 0 0 25px var(--main-color),
                0 0 50px var(--main-color),
                0 0 100px var(--main-color);
}

.home-content p {
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.8;
    max-width: 1000px;
}

.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4.5rem;
    height: 4.5rem;
    background: transparent;
    border: 2px solid var(--main-color);
    font-size: 2.5rem;
    border-radius: 50%;
    color: var(--main-color);
    margin: 3rem 1.5rem 3rem 0;
    transition: 0.3s ease-in-out;
}

.social-icons a:hover {
    color: var(--text-color);
    transform: scale(1.3)translateY(-5px);
    box-shadow: 0 0 25px var(--main-color);
    background-color: var(--main-color);
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--main-color);
    box-shadow: 0 0 25px var(--main-color);
    border-radius: 4rem;
    font-size: 1.6rem;
    color: black;
    border: 2px solid transparent;
    letter-spacing: 0.1rem;
    font-weight: 600;
    transition: 0.3s ease-in-out;
    cursor: pointer;
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 50px var(--main-color);
}

/* bouton quiz */

.btn-quiz {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--main-color);
    border-radius: 4rem;
    font-size: 1.6rem;
    color: black;
    border: 2px solid transparent;
    letter-spacing: 0.1rem;
    font-weight: 600;
    transition: 0.3s ease-in-out;
    cursor: pointer;
}

.btn-quiz:hover {
    transform: scale(1.05);
    background: var(--dark-color);
    color: black;
    border: 2px solid var(--main-color);
}


/* btn about section */

.btn-group {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.btn-group a:nth-of-type(2) {
    background-color: black;
    color: var(--main-color);
    border: 2px solid var(--main-color);
    box-shadow: 0 0 25px transparent;
}

.btn-group a:nth-of-type(2):hover {
    box-shadow: 0 0 25px var(--main-color);
    background-color: var(--main-color);
    color: black;
}

.text-animation {
    font-size: 34px;
    font-weight: 600;
    min-width: 280px;
}

.text-animation span {
    position: relative;
}

.text-animation span::before {
    content: "Web Developper";
    color: var(--main-color);
    animation: words 20s infinite;
}

.text-animation span::after {
    content: "";
    background-color: var(--bg-color);
    position: absolute;
    width: calc(100% + 8px);
    height: 100%;
    border-left: 3px solid var(--bg-color);
    right: -8px;
    animation: cursor 0.6s infinite, typing 20s steps(14) infinite;
}

@keyframes cursor {
    to {
        border-left: 2px solid var(--main-color);
    }
}
@keyframes words {
    0%,
    20% {
        content: "Software Engineer";
    }
    21%,
    40% {
        content: "Web Developer";
    }
    41%,
    60% {
        content: "UI / Ux Designer";
    }
    61%,
    80% {
        content: "Web Designer";
    }
    81%,
    100% {
        content: "Frontend Designer";
    }
}

@keyframes typing {
    10%, 15%, 30%, 35%, 50%, 55%, 70%, 75%, 90%, 95% {
        width: 0;
    }
    5%, 20%, 25%, 40%, 45%, 60%, 65%, 80%, 85% {
        width: calc(100% + 8px);
    }
}




/* About Me Section */
.about-me {
    background: linear-gradient(180deg, #151211, #38646B);
    text-align: center;
    z-index: 1;
    position: relative;
}

.about-me h2 {
    font-size: 4.5rem;
    color: var(--main-color);
    margin-bottom: 20px;
}

.about-me p {
    font-size: 1.2rem;
    color: #fa1717;
    margin-bottom: 30px;
    line-height: 1.8;
}

.about-me .links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.about-me .btn {
    background-color: #007bff;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.about-me .btn:hover {
    background-color: #0056b3;
}



/*---------------------------------------
  SITE FOOTER              
-----------------------------------------*/
/* Footer Section */
.site-footer {
    background-color: var(--bg-color);
    padding: 30px 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
}

/* Colonne gauche */
.footer-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-left: 200px;
    font-size: 16px;
}

.footer-left strong {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-color);
    margin-top: 20px;
    font-weight: 500px;
}

.bx-map {
    margin-right: 8px;
}

.social-icon {
    display: flex;
    gap: 12px;
    margin-left: 35px;
}

.social-icon-item a {
    background: transparent;
    border-radius: 50%;
    color: var(--text-color);
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    transition: background 0.2s, color 0.2s;
}

.social-icon-item a:hover {
    background: var(--main-color);
    color: var(--bg-color);
}

/* Colonne droite */
.footer-right {
    text-align: right;
    margin-top: 20px;
    margin-right: 250px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-right h4 {
    margin-bottom: 10px;
    font-size: 18px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-color);
    font-weight: 500px;
}

.footer-right p {
    margin: 5px 0;
    color: var(--text-color);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 16px;
    font-weight: 100px;
}

.footer-right a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-right a:hover {
    text-decoration: underline;
}

hr {
    color: var(--main-color);
}
/* Copyright Section */
.copyright-text {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 50px;
    margin-left: 200px;
    text-align: left;
    font-size: 16px;
    color: var(--text-color);
    font-family: 'Plus Jakarta Sans', sans-serif;
}



/****************
Education page
*****************/

.heading {
    font-size: 8rem;
    text-align: center;
    margin: 5rem 0;
}

.education {
    padding: 100px 15px;
    background: var(--bg-color);
}

.education h2 {
    margin-bottom: 5rem;
}

.timeline-items {
    max-width: 1200px;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    position: relative;
}

/* 3ssa education*/
.timeline-items::before {
    content: "";
    position: absolute;
    width: 5px;
    height: 100%;
    background-color: var(--main-color);
    left: calc(50% - 1px);
}

.timeline-item {
    margin-bottom: 40px;
    width: 100%;
    position: relative;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item:nth-child(odd) {
    padding-right: calc(50% + 30px);
    text-align: right;
}

.timeline-item:nth-child(even) {
    padding-left: calc(50% + 30px);
}

/* dot education*/
.timeline-dot {
    height: 21px;
    width: 21px;
    background-color: var(--main-color);
    box-shadow: 0 0 25px var(--main-color),
                0 0 50px var(--main-color);
    position: absolute;
    left: calc(50% - 8px);
    border-radius: 50%;
    top: 10px;
}

.timeline-date {
    font-size: 20px;
    font-weight: 800;
    color: white;
    margin: 6px 0 15px;
}

/* bordure education*/
.timeline-content {
    background-color: var(--bg-color);
    border: 3px solid var(--main-color);
    padding: 30px 50px;
    border-radius: 4rem;
    box-shadow: 0 0 10px var(--main-color);
    cursor: pointer;
    transition: 0.3s ease-in-out;
}

/* shadow education*/
.timeline-content:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px var(--main-color);
}

.timeline-content h3 {
    font-size: 22px;
    color: var(--text-color);
    margin: 0 0 10px;
    font-weight: 500;
}

.timeline-content p {
    color: var(--text-color);
    font-size: 16px;
    font-weight: 300;
    line-height: 22px;
}


/****************
Work Experience page
*****************/

.heading {
    font-size: 8rem;
    text-align: center;
    margin: 5rem 0;
}

.work_experience {
    padding: 100px 15px;
    background: var(--bg-color);
}

.work_experience h2 {
    margin-bottom: 5rem;
}

.work-items {
    max-width: 1200px;
    margin: auto;
    display: flex;
    flex-direction: column;
    position: relative;
    align-items: center;
}


.work-items::before {
    content: "";
    position: absolute;
    width: 5px;
    height: calc(100% - 21px);
    background-color: var(--main-color);
    left: 233px;
    top: 10px;
}

.work-item {
    margin-bottom: 40px;
    position: relative;
    padding-left: 50px;
    text-align: left;
    width: 60%;
}

.work-item:last-child {
    margin-bottom: 0;
}

.work-dot {
    height: 21px;
    width: 21px;
    background-color: var(--main-color);
    box-shadow: 0 0 25px var(--main-color),
                0 0 50px var(--main-color);
    position: absolute;
    left: -15px;
    border-radius: 50%;
    top: 21px;
}

.work-date {
    font-size: 20px;
    font-weight: 800;
    color: white;
    margin: 6px 0 30px;
}

.work-content {
    background-color: var(--bg-color);
    border: 3px solid var(--main-color);
    padding: 30px 50px;
    border-radius: 4rem;
    box-shadow: 0 0 10px var(--main-color);
    cursor: pointer;
    transition: 0.3s ease-in-out;    
}

.work-content:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px var(--main-color);
}

.work-content h3 {
    font-size: 22px;
    color: var(--text-color);
    margin: 0 0 10px;
    font-weight: 700;
}

.work-content p {
    color: var(--text-color);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
}

.work-content ul {
    padding-left: 20px;
    margin-top: 10px;
}

.work-content ul li {
    list-style-type: disc;
    margin-bottom: 8px;
    line-height: 1.6;
    font-size: 15px;
    color: var(--text-color);
    position: relative;
}

.work-content ul li::marker {
    color: var(--main-color);
    font-size: 18px;
}

.work-content strong {
    color: var(--main-color);
    font-weight: 700;
    line-height: 3;
}



/****************
Contact section
*****************/

.contact {
    background-color: var(--bg-color);
}

.contact h2 {
    margin-bottom: 3rem;
    color: var(--text-color);
}

.contact form {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    margin: 5rem auto;
    text-align: center;
}

.contact form .input-box {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.contact form .input-box input,
.contact form textarea {
    width: 100%;
    padding: 2.5rem;
    font-size: 1.8rem;
    color: var(--text-color);
    background: var(--dark-color);
    border-radius: 2rem;
    border: 2px solid var(--main-color);
    margin: 1.5rem 0;
    resize: none;
}

.contact form .btn {
    margin-top: 2rem;
}

.footer {
    position: relative;
    bottom: 0;
    width: 100%;
    padding: 40px 0;
    background-color: var(--dark-color);
}

.footer .social {
    text-align: center;
    padding-bottom: 25px;
    color: var(--main-color);
}

.footer .social a {
    font-size: 25px;
    color: var(--main-color);
    border: 2px solid var(--main-color);
    width: 42px;
    height: 42px;
    line-height: 42px;
    display: inline-block;
    text-align: center;
    border-radius: 50px;
    margin: 0 10px;
    transition: 0.3s ease-in-out;
}

.footer .social a:hover {
    transform: scale(1.2)translateY(-10px);
    background-color: var(--main-color);
    color: black;
    box-shadow: 0 0 25px var(--main-color);
}

.footer ul {
    margin-top: 0;
    padding: 0;
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 0;
    text-align: center;
}

.footer ul li a {
    color: white;
    border-bottom: 3px solid transparent;
    transition: 0.3s ease-in-out;
}

.footer ul li a:hover {
    border-bottom: 3px solid var(--main-color);
}

.footer ul li {
    display: inline-block;
    padding: 0 15px;
}

.footer .copyright {
    margin-top: 50px;
    text-align: center;
    font-size: 16px;
    color: white;
}

/*************
Testimonials
**************/

/* Section Vidéo */
#video {
    text-align: center;
    background-color: var(--bg-color);
}

#video .video-container {
    margin: 0 auto;
    max-width: 1000px;
    display: flex;
    justify-content: center;
    gap: 20px;

}

.video-item {
    text-align: center;
}

.video-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--text-color);
}

video {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 4px solid var(--main-color);
}


/*****************
Projects
******************/

.project {
    background-color: var(--bg-color);
}

.projects-container {
    gap: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: center;
}

.project-card {
    background-color: transparent;
    border: 2px solid var(--main-color);
    border-radius: 8px;
    padding: 20px;
    text-align: left;
    color: var(--text-color);
    transition: box-shadow 0.3s ease, transform 0.3s ease;

    
    width: 100%;
    max-width: 1200px;
    box-sizing: border-box;
}

.project-card h3 {
    font-size: 2rem;
    color: var(--main-color);
    margin-bottom: 10px;
}

.project-card p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 10px;
}

.project-card a {
    display: inline-block;
    font-size: 1.4rem;
    color: var(--main-color);
    text-decoration: none;
    border: 2px solid var(--main-color);
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.project-card a:hover {
    background-color: var(--main-color);
    color: var(--bg-color);
}

.project-card:hover {
    box-shadow: 0 0 20px var(--main-color);
    transform: translateY(-5px);
}

.project-content {
    width: 100%;
    box-sizing: border-box;
}


.project-content p {
    color: var(--text-color);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
}

.project-content ul {
    padding-left: 20px;
    margin-top: 10px;
}

.project-content ul li {
    list-style-type: disc;
    margin-bottom: 8px;
    line-height: 1.6;
    font-size: 15px;
    color: var(--text-color);
    position: relative;
}

.project-content ul li::marker {
    color: var(--main-color);
    font-size: 18px;
}

.project-content strong {
    color: var(--main-color);
    font-weight: 700;
    line-height: 3;
}


/*****************
Skills
******************/

.skills {
    padding: 5px 0;
    text-align: center;
    background-color: var(--bg-color);
}

.skills-table {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    justify-items: center;
    padding: 20px;

    width: 80%;
    margin: 0 auto;
    border-collapse: separate;
    border-spacing: 15px;
}

.skill {
    background-color: transparent;
    color: var(--text-color);
    font-size: 1.6rem;
    padding: 20px;
    border: 2px solid transparent;
    border-radius: 8px;
    text-align: center;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}

.skill:hover {
    box-shadow: 0 0 20px var(--main-color);
    transform: translateY(-5px);
}

.skills-table td {
    background-color: transparent;
    color: var(--text-color);
    font-size: 16px;
    padding: 20px;
    border: 2px solid var(--main-color);
    border-radius: 8px;
    text-align: center;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    cursor: pointer;
    width: 150px;
    height: 100px;
    box-sizing: border-box;
}

.skills-table td:hover {
    box-shadow: 0 0 20px var(--main-color);
    transform: translateY(-5px);
}


/*****************
Interests section
******************/

.interests {
    background-color: var(--bg-color);
}

/* Container */
.interests-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);  /* 2 colonnes */
    grid-template-rows: repeat(2, auto);    /* 2 lignes */
    gap: 20px;
    justify-items: center;
    padding: 20px;
}

/* Card Styles */
.interests-card {
    background-color: var(--bg-color);
    border: 2px solid var(--main-color);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    max-width: 300px;
    min-width: 250px;
}

.interests-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 20px var(--main-color);
}

/* Images */
.interests-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Card Content */
.interests-card h3 {
    font-size: 1.8rem;
    color: var(--main-color);
    margin: 15px 0 10px;
}

.interests-card p {
    font-size: 1.5rem;
    color: var(--text-color);
    padding: 0 10px 20px;
}


/************
Quiz section
*************/

.quiz {
    max-width: 600px;
    margin: 50px auto;
    padding: 40px;
    background-color: var(--bg-color);
    border-radius: 12px;
}

.question {
    margin-bottom: 30px;
}

.question p {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 10px;
}

label {
    display: block;
    font-size: 2rem;
    color: var(--dark-color);
    padding: 8px 12px;
    background-color: rgb(205, 205, 205);
    border-radius: 6px;
    margin: 8px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

label:hover {
    background-color: var(--main-color);
}

input[type="radio"] {
    display: none;
}

input[type="radio"]:checked + label {
    background-color: var(--primary-color);
    color: #fff;
}

button {
    width: 100%;
    padding: 15px;
    font-size: 2rem;
    background-color: var(--main-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background: var(--dark-color);
    color: var(--main-color);
    border: 2px solid var(--main-color);
}

/* Result Section */
#result {
    margin-top: 40px;
    padding: 20px;
    background-color: var(--primary-color);
    border-radius: 8px;
    text-align: center;
}

#result h3 {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 10px;
}

#result h4 {
    font-size: 2rem;
    color: var(--text-color);
}

#correct-answers {
    list-style: none;
    padding: 0;
    text-align: left;
    margin-top: 20px;
    text-align: center;
}

#correct-answers li {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 8px;
}



/* Scroll bar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-thumb {
    background-color: var(--main-color);
}

::-webkit-scrollbar-track {
    background-color: var(--bg-color);
    width: 50px;
}