:root {
    --mainColor: #eaeaea;
    --secondaryColor: #fff;

    --borderColor: #c1c1c1;

    --mainText: black;
    --secondaryText: #4b5156;

    --themeDotBorder: #24292e;

    --previewBg: rgb(251, 249, 243, 0.8);
    --previewShadow: #f0ead6;

    --buttonColor: black;
    --accent: #17a2b8;
    --success: #28a745;
    --error: #dc3545;

    /* Shiny text theme variables - default values */
    --accent-color-full: var(--accent, #17a2b8);
    --accent-color-transparent: rgba(23, 162, 184, 0);
}

/* Scroll fluide */
html {
    scroll-behavior: smooth;
}

html,
body {
    padding: 0;
    margin: 0;
}

body * {
    transition: 0.3s ease-in-out;
}

h1,
h2,
h3,
h4,
h5,
h6,
strong {
    color: var(--mainText);
    font-family: "Poppins", sans-serif;
    font-weight: 500;
}

p,
li,
span,
label,
input,
textarea {
    color: var(--secondaryText);
    font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

a {
    text-decoration: none;
    color: var(--accent);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--buttonColor);
    transform: translateY(-2px);
}

a:focus {
    outline: 2px solid var(--buttonColor);
    outline-offset: 2px;
}

ul {
    list-style: none;
}

h1 {
    font-size: 56px;
}

h2 {
    font-size: 36px;
}

h3 {
    font-size: 28px;
}

h4 {
    font-size: 24px;
}

h5 {
    font-size: 20px;
}

h6 {
    font-size: 26px;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.typing-animation {
    overflow: hidden;
    border-right: 3px solid var(--buttonColor);
    white-space: nowrap;
    margin: 0 auto;
    animation: typing 3.5s steps(30, end), blink-caret 0.75s step-end infinite;
    text-align: center;
}

@keyframes typing {
    from {
        width: 0
    }

    to {
        width: 100%
    }
}

@keyframes blink-caret {

    from,
    to {
        border-color: transparent
    }

    50% {
        border-color: var(--buttonColor)
    }
}

.s1 {
    background-color: var(--mainColor);
    border-bottom: 1px solid var(--borderColor);
    overflow: auto;
}

.s2 {
    background-color: var(--secondaryColor);
    border-bottom: 1px solid var(--borderColor);
    overflow: auto;
}

.main-container {
    width: 1200px;
    margin: 0 auto;
}

.greeting-wrapper {
    display: grid;
    justify-content: center;
    align-content: center;
    min-height: 10em;
}

.greeting-wrapper h2 {
    margin: 0;
}

.profession {
    font-size: 42px !important;
    font-weight: 600 !important;
    text-align: center;
    margin-top: 10px;
    letter-spacing: 1px;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInOut {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.intro-wrapper {
    background-color: var(--secondaryColor);
    border: 1px solid var(--borderColor);
    border-radius: 5px 5px 0 0;

    -webkit-box-shadow: 2px 2px 15px -11px rgba(0, 0, 0, 0.75);
    -moz-box-shadow: 2px 2px 15px -11px rgba(0, 0, 0, 0.75);
    box-shadow: 2px 2px 15px -11px rgba(0, 0, 0, 0.75);

    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 3em 30em;
    grid-template-areas:
        'nav-wrapper nav-wrapper'
        'left-column right-column';
}

.nav-wrapper {
    grid-area: nav-wrapper;
    border-radius: 5px 5px 0 0;
    border-bottom: 1px solid var(--borderColor);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--mainColor);
}

#navigation {
    margin: 0;
    padding: 10px;
}

#navigation a {
    color: var(--mainText);
    padding: 8px 12px;
    border-radius: 5px;
    position: relative;
}

#navigation a:hover {
    color: var(--buttonColor);
    background-color: rgba(255, 255, 255, 0.1);
}

#navigation a:focus {
    background-color: rgba(255, 255, 255, 0.2);
    outline: none;
}

#navigation li {
    display: inline-block;
    margin-left: 5px;
    margin-right: 5px;
}

.dots-wrapper {
    display: flex;
    padding: 10px;
}

#dot-1 {
    background-color: #FC6056;
}

#dot-2 {
    background-color: #FEC02F;
}

#dot-3 {
    background-color: #2ACA3E;
}

.browser-dot {
    background-color: black;
    height: 15px;
    width: 15px;
    border-radius: 50%;
    margin: 5px;
    -webkit-box-shadow: 2px 2px 15px -11px rgba(0, 0, 0, 0.75);
    -moz-box-shadow: 2px 2px 15px -11px rgba(0, 0, 0, 0.75);
    box-shadow: 2px 2px 15px -11px rgba(0, 0, 0, 0.75);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.browser-dot:hover {
    transform: scale(1.2);
}

.left-column {
    grid-area: left-column;
    padding-top: 50px;
    padding-bottom: 50px;
}

.left-column h5 {
    text-align: center;
}

#profile-pic {
    display: block;
    margin: 0 auto;
    border: 2px solid var(--borderColor);
    border-radius: 50%;
    height: 250px;
    width: 250px;
    object-fit: cover;
    transition: all 0.3s ease;
}

#profile-pic:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.theme-options-wrapper {
    display: flex;
    justify-content: center;
}

.theme-dot {
    height: 30px;
    width: 30px;
    border-radius: 50%;
    background-color: black;
    cursor: pointer;

    -webkit-box-shadow: 2px 2px 15px -11px rgba(0, 0, 0, 0.75);
    -moz-box-shadow: 2px 2px 15px -11px rgba(0, 0, 0, 0.75);
    box-shadow: 2px 2px 15px -11px rgba(0, 0, 0, 0.75);

    margin-top: 2px;
    margin-bottom: 10px;
    margin-right: 4px;
    border: 2px solid var(--themeDotBorder);
    position: relative;
    transition: all 0.3s ease;
}

.theme-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.left-column h5 {
    margin-bottom: 8px;
}

.theme-dot:hover {
    height: 35px;
    width: 35px;
    border-width: 3px;
    transform: translateY(-2px);
}

.theme-dot:hover::after {
    width: 20px;
    height: 20px;
}

.theme-dot:focus {
    outline: 2px solid var(--buttonColor);
    outline-offset: 2px;
}

#light-mode {
    background-color: #fff;
}

#blue-mode {
    background-color: #192734;
}

#green-mode {
    background-color: #78866b;
}

#purple-mode {
    background-color: #7e4c74;
}

#settings-note {
    font-size: 12px;
    font-style: italic;
    text-align: center;
}

.right-column {
    grid-area: right-column;
    display: grid;
    align-content: center;
    padding-top: 50px;
    padding-bottom: 50px;
}

#preview-shadow {
    background-color: var(--previewShadow);
    width: 300px;
    height: 180px;
    padding-left: 30px;
    padding-top: 30px;
    transition: all 0.3s ease;
}

#preview-shadow:hover {
    transform: translateY(-5px);
}

#preview {
    width: 300px;
    border: 1.5px solid var(--accent);
    background-color: var(--previewBg);
    padding: 15px;
    position: relative;
}

.corner {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    border: 1.5px solid var(--accent);
    background-color: #fff;
    position: absolute;
    transition: all 0.3s ease;
}

#preview:hover .corner {
    transform: scale(1.3);
}

#corner-tl {
    top: -5px;
    left: -5px;
}

#corner-tr {
    top: -5px;
    right: -5px;
}

#corner-br {
    bottom: -5px;
    right: -5px;
}

#corner-bl {
    bottom: -5px;
    left: -5px;
}

.about-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    padding-top: 50px;
    padding-bottom: 50px;
    gap: 100px;
}

#skills {
    display: flex;
    justify-content: space-evenly;
    background-color: var(--previewShadow);
    padding: 20px;
    border-radius: 8px;
}

#skills ul li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 18px;
}

#skills ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--buttonColor);
    font-weight: bold;
}

#social-image {
    width: 100%;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

#social-image:hover {
    transform: scale(1.02);
}

.social-links {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 20px;
    justify-content: center;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--mainColor);
    border: 1px solid var(--borderColor);
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--secondaryText);
    position: relative;
}

.social-link::after {
    content: '';
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 30px;
    background-color: var(--borderColor);
    transition: all 0.3s ease;
}

.social-link i {
    font-size: 1.8em;
    transition: all 0.3s ease;
    text-align: center;
}


.social-link:hover {
    background-color: var(--buttonColor);
    color: white;
    transform: translateY(-2px) scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.social-link:hover i {
    transform: scale(1.1);
}

.social-link:hover::after {
    background-color: var(--buttonColor);
    opacity: 0.7;
}

.post-wrapper {
    display: flex;
    /* flex pour animer la largeur des cartes en douceur */
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding-bottom: 50px;
}

/* Gallery styles for multiple images per project */
.project-gallery {
    position: relative;
    margin-bottom: 0;
}

.gallery-thumbnails {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.gallery-thumbnails .thumbnail {
    width: 80px;
    height: 60px;
    border: 2px solid transparent;
    border-radius: 6px;
    object-fit: contain;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.gallery-thumbnails .thumbnail:hover {
    opacity: 1;
    transform: scale(1.05);
    border-color: var(--accent);
}

.gallery-thumbnails .thumbnail.active {
    opacity: 1;
    border-color: var(--accent);
    box-shadow: 0 0 8px rgba(23, 162, 184, 0.5);
}

.main-thumbnail {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: contain;
    transition: transform 0.3s ease;
    border-radius: 8px 8px 0 0;
}

.post:hover .main-thumbnail {
    transform: scale(1.05);
}

.post-preview {
    background-color: #fff;
    padding: 15px;
}

.post {
    border: 1px solid var(--borderColor);
    -webkit-box-shadow: 2px 2px 15px -11px rgba(0, 0, 0, 0.75);
    -moz-box-shadow: 2px 2px 15px -11px rgba(0, 0, 0, 0.75);
    box-shadow: 2px 2px 15px -11px rgba(0, 0, 0, 0.75);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    overflow: visible;
    border-radius: 8px;
    position: relative;
    width: 320px;
    /* largeur de base d'une carte */
    cursor: pointer;
    /* z-index par défaut */
    z-index: 1;
}

.post:hover,
.post.target-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

/* Ne pas élever la carte juste parce qu'elle est .target-card */
.post.target-card {
    z-index: 5;
    /* SUPPRIMEZ transform et box-shadow ici */
}

/* Features panel - now positioned absolutely to overlay on target cards */
.features-panel {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--secondaryColor);
    border: 1px solid var(--borderColor);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    z-index: 10;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    pointer-events: none;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.post.target-card .features-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.features-content {
    height: 100%;
    box-sizing: border-box;
    padding: 20px;
    overflow-y: auto;
    /* scroll interne */
    -ms-overflow-style: none;
    /* IE/Edge */
    scrollbar-width: none;
    /* Firefox */
}

.features-content::-webkit-scrollbar {
    width: 0;
    height: 0;
    /* WebKit */
}

.features-title {
    margin: 0 0 10px 0;
    color: var(--mainText);
}

.features-list {
    margin: 0;
    padding-left: 20px;
}

.features-list li {
    margin-bottom: 8px;
    color: var(--secondaryText);
    position: relative;
}

.features-list li::before {
    content: '▸';
    position: absolute;
    left: -18px;
    color: var(--accent);
}

/* Arrow connectors between project cards and features panels */
.arrow-connector {
    position: fixed !important;
    pointer-events: none;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.arrow-line {
    stroke: var(--accent);
    stroke-width: 4;
    fill: none;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5));
}

.arrow-head {
    fill: var(--accent);
    stroke: var(--accent);
    stroke-width: 1;
    filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.5));
}

.post.target-card .arrow-connector {
    opacity: 1;
    visibility: visible;
}

/* Different arrow styles for different positions */
.arrow-left-to-right {
    transform: scaleX(-1);
}

.arrow-right-to-left {
    transform: scaleX(1);
}

.arrow-top-to-bottom {
    transform: rotate(90deg);
}

.arrow-bottom-to-top {
    transform: rotate(-90deg);
}

/* Responsive arrow adjustments */
@media screen and (max-width: 1200px) {
    .arrow-line {
        stroke-width: 2.5;
    }

    .arrow-head {
        filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.2));
    }
}

@media screen and (max-width: 900px) {
    .arrow-connector {
        opacity: 0.8;
    }

    .arrow-line {
        stroke-width: 2;
    }
}

/* Empêche le panneau de sortir de l'écran sur les petits écrans */
@media screen and (max-width: 800px) {
    .features-panel {
        display: none;
    }

    .arrow-connector {
        display: none;
    }
}

@media screen and (max-width: 600px) {
    .arrow-connector {
        opacity: 0.6;
    }
}

.post-title {
    color: black;
    margin: 0 0 10px 0;
}

.post-intro {
    color: #4b5156;
    font-size: 16px;
    margin-bottom: 15px;
    line-height: 1.5;
}

.post-description {
    color: black;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Nouveaux styles pour les tags technologiques */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.tech-tag {
    background-color: var(--accent);
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background-color: var(--buttonColor);
    transform: scale(1.05);
}

.project-link {
    color: var(--accent);
    font-weight: 500;
    transition: all 0.3s ease;
}

/* Project card footer styles */
.project-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}

.project-links {
    display: flex;
    gap: 10px;
    align-items: center;
}

.project-icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background-color: var(--mainColor);
    border: 1px solid var(--borderColor);
    border-radius: 50%;
    color: var(--secondaryText);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 16px;
}

.project-icon-link:hover {
    background-color: var(--buttonColor);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border-color: var(--buttonColor);
}

.project-icon-link i {
    transition: all 0.3s ease;
}

.project-icon-link:hover i {
    transform: scale(1.1);
}

/* Styles pour le formulaire amélioré */
#submit-btn {
    margin-top: 10px;
    width: 100%;
    padding-top: 12px;
    padding-bottom: 12px;
    color: white;
    background-color: var(--buttonColor);
    border: none;
    cursor: pointer;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

#submit-btn:hover {
    background-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

#submit-btn:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

#submit-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

#contact-form {
    display: block;
    max-width: 600px;
    margin: 0 auto;
    border: 1px solid var(--borderColor);
    padding: 25px;
    border-radius: 10px;
    background-color: var(--mainColor);
    margin-bottom: 50px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

#contact-form label {
    line-height: 2.7em;
    font-weight: 600;
    color: var(--mainText);
}

#contact-form textarea {
    min-height: 120px;
    font-size: 14px;
    resize: vertical;
}

.input-field {
    width: 100%;
    padding: 12px;
    background-color: var(--secondaryColor);
    border-radius: 8px;
    border: 2px solid var(--borderColor);
    font-size: 14px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    font-family: "Roboto Mono", monospace;
}

.input-field:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 8px rgba(23, 162, 184, 0.3);
}

.input-field.error {
    border-color: var(--error);
    box-shadow: 0 0 8px rgba(220, 53, 69, 0.3);
}

.error-message {
    color: var(--error);
    font-size: 12px;
    margin-top: 5px;
    display: none;
    font-style: italic;
}

.success-message {
    background-color: var(--success);
    color: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 25px;
    display: none;
    text-align: center;
    font-weight: 500;
}

#gotop {
    background-color: var(--borderColor);
    color: var(--mainText);
    float: right;
    font-weight: bold;
    margin-bottom: 40px;
    padding: 12px 20px;
    font-size: 15px;
    border: 2px solid var(--buttonColor);
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
}

#gotop:hover {
    background-color: var(--buttonColor);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Bouton flottant retour en haut */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--buttonColor);
    color: white;
    border: none;
    border-radius: 50%;
    width: 55px;
    height: 55px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    font-size: 20px;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    background-color: var(--accent);
}

/* Styles pour les modales */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.modal-content {
    background-color: var(--secondaryColor);
    border-radius: 15px;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    border: 1px solid var(--borderColor);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 35px;
    cursor: pointer;
    color: var(--mainText);
    z-index: 1;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn:hover {
    color: var(--buttonColor);
    background-color: rgba(0, 0, 0, 0.1);
}

.project-modal {
    padding: 40px;
}

/* Modal gallery styles */
.modal-gallery {
    position: relative;
    margin-bottom: 25px;
}

.modal-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

.modal-gallery-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.gallery-nav-btn {
    background-color: var(--buttonColor);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 16px;
}

.gallery-nav-btn:hover:not(:disabled) {
    background-color: var(--accent);
    transform: scale(1.1);
}

.gallery-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.gallery-indicators {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--borderColor);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background-color: var(--accent);
    transform: scale(1.2);
}

.indicator:hover {
    background-color: var(--buttonColor);
}

.project-modal h2 {
    margin-bottom: 20px;
    color: var(--mainText);
}

.project-description {
    margin-bottom: 25px;
    line-height: 1.7;
    font-size: 16px;
}

.modal-tech-stack,
.modal-features {
    margin-bottom: 25px;
}

.modal-tech-stack h4,
.modal-features h4 {
    margin-bottom: 15px;
    color: var(--mainText);
    font-size: 18px;
}

.tech-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.modal-features ul {
    padding-left: 25px;
    line-height: 1.8;
}

.modal-features li {
    margin-bottom: 10px;
    color: var(--secondaryText);
    position: relative;
}

.modal-features li::before {
    content: '✓';
    color: var(--success);
    font-weight: bold;
    position: absolute;
    left: -20px;
}

.modal-links {
    display: flex;
    gap: 20px;
    margin-top: 35px;
}

.modal-btn {
    padding: 15px 30px;
    background-color: var(--buttonColor);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-align: center;
    flex: 1;
    font-weight: 500;
}

.modal-btn:hover {
    background-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Enhanced Modal Styles for Project Details */
.modal-project {
    padding: 40px;
}

.modal-header {
    margin-bottom: 30px;
}

.modal-header h2 {
    margin-bottom: 20px;
    color: var(--mainText);
    font-size: 32px;
    font-weight: 600;
}

.modal-gallery {
    position: relative;
    margin-bottom: 25px;
}

.modal-gallery-thumbnails {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.modal-thumbnail {
    width: 80px;
    height: 60px;
    border: 2px solid transparent;
    border-radius: 8px;
    object-fit: cover;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.modal-thumbnail:hover,
.modal-thumbnail.active {
    opacity: 1;
    border-color: var(--accent);
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(23, 162, 184, 0.5);
}

.modal-main-image {
    width: 100%;
    height: 300px;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    background-color: var(--mainColor);
    padding: 20px;
}

.modal-content-body {
    display: grid;
    gap: 25px;
}

.modal-description,
.modal-features,
.modal-technologies,
.modal-links {
    background-color: var(--mainColor);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid var(--borderColor);
}

.modal-description h3,
.modal-features h3,
.modal-technologies h3,
.modal-links h3 {
    margin: 0 0 15px 0;
    color: var(--mainText);
    font-size: 20px;
    font-weight: 600;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 8px;
}

.modal-description p {
    line-height: 1.7;
    font-size: 16px;
    color: var(--secondaryText);
    margin: 0;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-list li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: var(--secondaryText);
    line-height: 1.6;
}

.features-list li::before {
    content: '✓';
    color: var(--success);
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 16px;
}

.tech-stack-modal {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-tag-modal {
    background-color: var(--accent);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tech-tag-modal:hover {
    background-color: var(--buttonColor);
    transform: scale(1.05);
}

.modal-project-links {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.modal-link-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: var(--buttonColor);
    color: white;
    text-decoration: none;
    border-radius: 50%;
    transition: all 0.3s ease;
    font-size: 20px;
    flex-shrink: 0;
}

.modal-link-btn:hover {
    background-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.modal-link-btn i {
    font-size: 20px;
}

/* Media Queries */
@media screen and (max-width: 1200px) {
    .main-container {
        width: 95%;
    }
}

@media screen and (max-width: 800px) {
    .intro-wrapper {
        grid-template-columns: 1fr;
        grid-template-areas:
            'nav-wrapper'
            'left-column'
            'right-column';
    }

    .right-column {
        justify-content: center;
    }

    .nav-wrapper {
        position: relative;
        padding: 15px;
    }

    /* Hamburger menu button for mobile */
    /* Hide mobile menu toggle by default (desktop) */
    .mobile-menu-toggle {
        display: none;
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        background: none;
        border: none;
        color: var(--mainText);
        font-size: 24px;
        cursor: pointer;
        padding: 8px;
        border-radius: 5px;
        transition: all 0.3s ease;
    }

    /* Show mobile menu toggle only on mobile */
    @media screen and (max-width: 800px) {
        .mobile-menu-toggle {
            display: block;
        }
    }

    .mobile-menu-toggle:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }

    #navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--mainColor);
        border: 1px solid var(--borderColor);
        border-top: none;
        border-radius: 0 0 5px 5px;
        padding: 10px;
        z-index: 1000;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }

    #navigation.mobile-menu-open {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    #navigation li {
        display: block;
        width: 100%;
        margin: 0;
    }

    #navigation a {
        display: block;
        padding: 12px 15px;
        text-align: center;
        background-color: transparent;
        border-radius: 5px;
        transition: all 0.3s ease;
    }

    #navigation a:hover {
        background-color: rgba(255, 255, 255, 0.1);
        transform: none;
    }

    h1 {
        font-size: 36px;
    }

    h2 {
        font-size: 28px;
    }

    .about-wrapper {
        gap: 50px;
    }

    #skills {
        flex-direction: column;
        gap: 25px;
    }

    .modal-content {
        width: 95%;
        margin: 10px;
    }

    .project-modal {
        padding: 25px;
    }

    .modal-links {
        flex-direction: column;
    }

    .modal-project {
        padding: 25px;
    }

    .modal-header h2 {
        font-size: 28px;
    }

    .modal-main-image {
        height: 250px;
        padding: 15px;
    }

    .modal-gallery-thumbnails {
        gap: 8px;
    }

    .modal-thumbnail {
        width: 70px;
        height: 50px;
    }

    .modal-project-links {
        gap: 10px;
    }

    .modal-link-btn {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .modal-link-btn i {
        font-size: 18px;
    }

    .gallery-thumbnails {
        gap: 4px;
    }

    .gallery-thumbnails .thumbnail {
        width: 60px;
        height: 45px;
    }

    .modal-gallery-nav {
        gap: 10px;
    }

    .gallery-nav-btn {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
}

@media screen and (max-width: 480px) {
    .main-container {
        width: 95%;
        padding: 0 10px;
    }

    .post-wrapper {
        grid-template-columns: 1fr;
    }

    #profile-pic {
        width: 200px;
        height: 200px;
    }

    #preview-shadow {
        width: 250px;
        height: 150px;
        padding-left: 20px;
        padding-top: 20px;
    }

    #preview {
        width: 250px;
    }

    .typing-animation {
        font-size: 24px;
    }

    .back-to-top {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }

    .nav-wrapper {
        padding: 10px;
    }

    .mobile-menu-toggle {
        font-size: 20px;
        padding: 6px;
        right: 10px;
    }

    #navigation {
        padding: 8px;
    }

    #navigation a {
        padding: 10px 12px;
        font-size: 14px;
    }

    .dots-wrapper {
        padding: 8px;
    }

    .browser-dot {
        height: 12px;
        width: 12px;
        margin: 3px;
    }
}

/* Masquer le bouton hamburger sur desktop */
@media (min-width: 768px) {
    #mobile-menu-toggle {
        display: none !important;
    }
}

/* Overlay pour le zoom d'image sur carte projet */
.thumbnail-zoom-overlay {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.thumbnail-zoom-overlay.active {
    display: flex;
    opacity: 1;
}

.thumbnail-zoomed {
    position: fixed !important;
    z-index: 10000 !important;
    top: 50% !important;
    left: 50% !important;
    width: 85vw !important;
    height: 75vh !important;
    max-width: 1000px !important;
    max-height: 85vh !important;
    object-fit: contain !important;
    border-radius: 20px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8) !important;
    background: var(--secondaryColor);
    padding: 20px !important;
    border: 3px solid var(--accent) !important;
    transform: translate(-50%, -50%) scale(1.02) !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: zoom-out;
}

/* Animation d'entrée pour l'image zoomée */
.thumbnail-zoomed {
    animation: zoomIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes zoomIn {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.02);
        opacity: 1;
    }
}

/* Effet de zoom au hover sur les images des cartes */
.main-thumbnail {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.main-thumbnail:hover {
    transform: scale(1.08) !important;
    box-shadow: 0 8px 25px rgba(23, 162, 184, 0.3) !important;
    border-radius: 12px !important;
}

/* Amélioration du curseur pour indiquer le zoom possible */
.main-thumbnail {
    cursor: zoom-in;
}

/* Responsive pour les petits écrans */
@media screen and (max-width: 768px) {
    .thumbnail-zoomed {
        width: 95vw !important;
        height: 70vh !important;
        max-width: none !important;
        max-height: 75vh !important;
        padding: 15px !important;
        border-radius: 15px !important;
    }

    .thumbnail-zoom-overlay {
        padding: 10px;
    }
}

@media screen and (max-width: 480px) {
    .thumbnail-zoomed {
        width: 100vw !important;
        height: 60vh !important;
        max-height: 70vh !important;
        padding: 10px !important;
        border-radius: 10px !important;
    }
}

/* Réduction des tailles de texte sur mobile */
@media (max-width: 767px) {
    body {
        font-size: 15px;
    }

    h1 {
        font-size: 1.7rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    .profession {
        font-size: 22px !important;
        font-weight: 600 !important;

    }

    .post-title,
    .modal-title {
        font-size: 1.1rem;
    }

    .post-description,
    .modal-description,
    p {
        font-size: 0.95rem;
    }

    .tech-tag,
    .tech-tag-modal {
        font-size: 0.85rem;
    }

    /* Centrer les liens des réseaux sociaux */
    .social-links {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 20px;
        width: 100%;
    }
}

/* Réduction de la taille de l'image de profil sur mobile */
@media (max-width: 767px) {

    .profile-image,
    #profile-image {
        width: 80px !important;
        height: 80px !important;
    }
}

/* ===== SHINY TEXT ANIMATIONS - THEME AWARE ===== */

/* Base shiny text styling - white text with colored shine */
.shiny-text {
    position: relative;
    display: inline-block;
    font-weight: 600;
    color: #ffffff;
    /* Force white text */

    /* White text with colored shine effect */
    background: linear-gradient(120deg,
            #ffffff 30%,
            var(--mainColor) 50%,
            #ffffff 70%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 8s linear infinite;
}

/* Enhanced shine effect overlay */
.shiny-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(120deg,
            transparent 30%,
            rgba(255, 255, 255, 0.6) 50%,
            transparent 70%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine-overlay 8s linear infinite;
    pointer-events: none;
    z-index: 1;
}

/* Fallback for browsers that don't support background-clip */
@supports not (-webkit-background-clip: text) {
    .shiny-text {
        color: #ffffff;
        /* White text fallback */
        background: linear-gradient(120deg,
                #ffffff 30%,
                var(--mainColor) 50%,
                #ffffff 70%);
        background-size: 200% 100%;
        -webkit-background-clip: padding-box;
        background-clip: padding-box;
        -webkit-text-fill-color: initial;
        animation: shine 8s linear infinite;
        position: relative;
    }

    .shiny-text::before {
        display: none;
    }
}

/* Disabled state - no animation */
.shiny-text.disabled {
    animation: none;
    background: none;
    -webkit-text-fill-color: initial;
    color: #ffffff;
    /* White text even when disabled */
    opacity: 0.6;
}

/* Keyframe animation for the shine effect */
@keyframes shine {
    0% {
        background-position: 100% 0;
    }

    100% {
        background-position: -100% 0;
    }
}

/* Enhanced overlay animation for better visibility */
@keyframes shine-overlay {
    0% {
        background-position: 120% 0;
    }

    100% {
        background-position: -120% 0;
    }
}

/* Responsive adjustments for shiny text */
@media screen and (max-width: 768px) {
    .shiny-text {
        animation-duration: 10s;
    }
}

@media screen and (max-width: 480px) {
    .shiny-text {
        animation-duration: 12s;
    }
}