@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400&display=swap");

:root {
    --color-dark-grey: #0a0d14;
    /* Gris très foncé */
    --color-grey: #111622;
    /* Gris foncé */
    --color-white: #e8edf5;
    /* Blanc */
    --color-light-pink: var(--t-crystal);
    /* Rose léger */
    --neko-toggle-top: 48px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    outline: none;
    border: none;
    transition: all 0.2s linear;
}

html {
    font-size: 62.5%;
    overflow-x: hidden;
    scroll-behavior: auto;
    background-color: var(--color-dark-grey);
    color: var(--color-white);
    ;
}

.blogs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 2rem;
    margin-top: 3rem;
}

.blogs .blog {
    background-color: var(--color-grey);
    box-shadow: 1px 1px 20px rgba(0, 0, 0, 0.1);
}

.blogs .blog:hover {
    box-shadow: 1px 1px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(-5px);
    transition: all 0.4s ease-in-out;
}

.blogs .blog:hover img {
    filter: grayscale(0);
    transform: scale(1.1);
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.8);
}

.blogs .blog img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    filter: grayscale(100%);
    transition: all 0.4s ease-in-out;
}

.blogs .blog .blog-text {
    color: white;

    margin-top: -7px;
    padding: 1.1rem;
    border-top: 8px solid var(--color-light-pink);
}

.blogs .blog .blog-text h4 {
    color: var(--color-light-pink);

    font-size: 1.5rem;
    margin-bottom: 0.7rem;
    transition: all 0.4s ease-in-out;
    cursor: pointer;
}

.blogs .blog .blog-text h4:hover {
    color: var(--color-dark-grey);
}

.blogs .blog .blog-text p {
    color: var(--color-grey-2);
    line-height: 2rem;
    padding-bottom: 1rem;
}

body {
    background: var(--color-dark-grey);
    font-family: "Poppins", sans-serif;
    color: var(--color-white)
}

*::selection {
    background: var(--color-light-pink);
    color: var(--color-white);
}

.portfolios {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 2rem;
    margin-top: 3rem;
}

.portfolios .portfolio-item {
    color: white;
    text-shadow: -1px 1px 0 #000, 1px 1px 0 #000, 1px -1px 0 #000,
        -1px -1px 0 #000;
    text-align: center;
    background-color: var(--color-grey);
    position: relative;
    border-radius: 15px;
    font-size: 15px;
}

.portfolios .portfolio-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 15px;
}

.portfolios .portfolio-item .hover-items {
    width: 100%;
    height: 100%;
    background-color: var(--color-secondary);
    position: absolute;
    left: 0;
    top: 0;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    opacity: 0;
    transform: scale(0);
    transition: all 0.4s ease-in-out;
}

.portfolios .portfolio-item .hover-items h3 {
    font-size: 1.5rem;
    color: var(--color-white);
    margin-bottom: 1.5rem;
}

.portfolios .portfolio-item .hover-items .icons {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--color-light-pink);
}

.portfolios .portfolio-item .hover-items .icons .icon {
    background-color: var(--color-primary);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 1rem;
    cursor: pointer;
    transition: all 0.4s ease-in-out;
}

.portfolios .portfolio-item .hover-items .icons .icon i {
    font-size: 1.5rem;
    color: var(--color-white);
    margin: 0 1rem;
}

.portfolios .portfolio-item .hover-items .icons .icon:hover {
    background-color: var(--color-white);
}

.portfolios .portfolio-item .hover-items .icons .icon:hover i {
    color: var(--color-light-pink);
}

.portfolio-item:hover .hover-items {
    opacity: 1;
    transform: scale(1);
}

html {
    font-size: 62.5%;
    overflow-x: hidden;
}

html::-webkit-scrollbar {
    width: 0.8rem;
}

html::-webkit-scrollbar-track {
    background: rgb(235, 202, 245);
}

html::-webkit-scrollbar-thumb {
    background: #420177;
}

/* pre loader start */
.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10000;
    background: #e6eff1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
}

.loader-container.fade-out {
    top: -120%;
}

/* pre loader end */

/* navbar starts */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.7rem 2.5rem;
    height: 6.5rem;
    background-color: var(--color-grey);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

section {
    min-height: 100vh;
    padding: 2rem 9%;
}

.heading {
    font-size: 3.5rem;
    color: rgb(32, 32, 32);
    font-weight: 800;
    text-align: center;
}

.heading i {
    margin-right: 0.8rem;
}

.heading span {
    color: var(--color-light-pink);
}

header .logo {
    font-size: 1.9rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--color-white);
}

header .logo i {
    font-size: 2.2rem;
}

header .logo:hover {
    color: var(--color-light-pink);
}

.logo-wrap {
    display: flex;
    align-items: flex-start;
}

.neko-toggle {
    position: fixed;
    left: var(--neko-toggle-left, 18rem);
    top: var(--neko-toggle-top, 3rem);
    width: 3.2rem;
    height: 1.7rem;
    padding: 0;
    border: 0;
    background: transparent;
    overflow: hidden;
    cursor: pointer;
    z-index: 1001;
}

.neko-toggle-head {
    position: absolute;
    left: 0;
    top: 0.25rem;
    width: 3.2rem;
    height: 3.2rem;
    background-image: url("./assets/cat%20cursor/oneko.gif");
    background-repeat: no-repeat;
    background-size: auto;
    background-position: -96px -96px;
    image-rendering: pixelated;
    filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.35));
    transition: transform 0.2s ease;
}

.neko-toggle:hover .neko-toggle-head {
    transform: translateY(-2px);
}

.neko-toggle.active .neko-toggle-head {
    transform: translateY(-3px);
}

#oneko {
    display: none;
    z-index: 1002;
    pointer-events: none;
    transition: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

header .navbar ul {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

header .navbar li {
    margin-left: 2.5rem;
}

header .navbar ul li a {
    font-size: 1.57rem;
    color: var(--color-white);
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.04rem;
    transition: 0.2s;
}

header .navbar ul li a.active,
header .navbar ul li a:hover {
    color: var(--color-light-pink);
    border-bottom: 0.2rem solid var(--color-light-pink);
    padding: 0.5rem 0;
}

/* navbar ends */

/* hamburger icon starts*/
#menu {
    font-size: 3rem;
    cursor: pointer;
    color: var(--color-light-pink);
    display: none;
}

@media (max-width: 916px) {
    header {
        padding: 1.7rem 2.5rem;
    }

    .logo-wrap {
        margin-top: 0.1rem;
    }

    .neko-toggle {
        width: 2.8rem;
        height: 1.7rem;
    }

    .neko-toggle-head {
        top: 0.15rem;
        left: -0.2rem;
    }

    #menu {
        display: block;
    }

    header .navbar {
        position: fixed;
        top: 6.5rem;
        right: 0;
        width: 75%;
        max-width: 30rem;
        height: calc(100vh - 6.5rem);
        text-align: left;
        align-items: flex-start;
        background-color: var(--color-grey);
        box-shadow: -8px 0 30px rgba(0, 0, 0, 0.45);
        border-left: 1px solid rgba(var(--t-crystal-rgb), 0.15);
        overflow-y: auto;
        transform: translateX(100%);
        transition: transform 0.45s cubic-bezier(0.65, 0, 0.35, 1);
    }

    header .navbar.nav-toggle {
        transform: translateX(0);
    }

    header .navbar ul {
        flex-flow: column;
        padding: 1rem;
    }

    header .navbar ul li {
        text-align: center;
        width: 100%;
        margin: 1rem 0;
        border-radius: 0.5rem;
        width: 26rem;
        opacity: 0;
        transform: translateX(2.5rem);
        transition: opacity 0.35s ease, transform 0.35s ease;
    }

    header .navbar.nav-toggle ul li:nth-child(1) { transition-delay: 0.08s; }
    header .navbar.nav-toggle ul li:nth-child(2) { transition-delay: 0.14s; }
    header .navbar.nav-toggle ul li:nth-child(3) { transition-delay: 0.2s; }
    header .navbar.nav-toggle ul li:nth-child(4) { transition-delay: 0.26s; }
    header .navbar.nav-toggle ul li:nth-child(5) { transition-delay: 0.32s; }
    header .navbar.nav-toggle ul li:nth-child(6) { transition-delay: 0.38s; }
    header .navbar.nav-toggle ul li:nth-child(7) { transition-delay: 0.44s; }

    header .navbar.nav-toggle ul li {
        opacity: 1;
        transform: translateX(0);
    }

    header .navbar ul li a {
        display: block;
        padding: 1rem;
        text-align: left;
        color: #fff;
        font-size: 2rem;
    }

    header .navbar ul li a.active,
    header .navbar ul li a:hover {
        padding: 1rem;
        color: var(--color-light-pink);
        border-radius: 0.5rem;
        border-bottom: 0.3rem solid var(--color-light-pink);
    }

    .fa-times {
        transform: rotate(180deg);
    }
}

/* hamburger icon ends */

/* hero section starts */
.home {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding-top: 6.5rem;
}

.home #particles-js {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
}

.home::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
}

.home .content {
    margin-top: clamp(2rem, 80vh, 20rem);
    align-self: center;
    flex: 1 1 40rem;
    padding-top: 1rem;
    padding-left: 3rem;
    z-index: 1;
}

.home .image {
    flex: 1 1 40rem;
    /* Flexible size */
    z-index: 1;
    display: flex;
    /* Ensure the container adapts to the image */
    align-items: flex-start;
    /* Align the image to the top */
    justify-content: flex-end;
    /* Align the image to the right */
    margin-top: -20px;
    /* Move the image up */
}

.home .image img {
    max-width: 100%;
    /* Make the image responsive */
    height: auto;
    /* Maintain aspect ratio */
    border-radius: 50%;
    /* Keep the circular shape */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    object-fit: cover;
    /* Ensure the image fills its space */
}

.home .image img:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.home .content h2 {
    font-size: 7.6rem;
    font-weight: 800;
    color: var(--color-white);
}

.home .content h2 span {
    font-size: 7.6rem;
    font-weight: 800;
    color: var(--color-light-pink);
}

.home .content p {
    font-size: 2.8rem;
    color: var(--color-white);
    font-weight: 600;
    padding: 1rem 0;
}

.home .content p span {
    font-size: 2.8rem;
    color: var(--color-light-pink);
    font-weight: 600;
    padding: 1rem 0;
}

.home .btn {
    margin-top: 1rem;
    position: absolute;
    line-height: 0;
    padding: 1.6rem 3rem;
    border-radius: 4em;
    transition: 0.5s;
    color: #fff;
    background: rgba(var(--t-deep-rgb), 0.6);
    box-shadow: 0px 5px 18px #410679;
    font-family: "Nunito", sans-serif;
}

.home .btn span {
    font-weight: 700;
    font-size: 1.7rem;
    letter-spacing: 0.1rem;
}

.home .btn i {
    margin-left: 0.3rem;
    font-size: 1.5rem;
    transition: 0.3s;
}

.home .btn:hover {
    background: var(--t-mid);
}

.home .btn:hover i {
    transform: translateX(5px);
}

/* Responsive adjustments for the image */
@media (max-width: 768px) {
    .home .image {
        flex: 1 1 100%;
        /* Full width on smaller screens */
        margin-top: -10px;
        /* Adjust margin to move the image up */
        justify-content: center;
        /* Center the image horizontally */
    }

    .home .image img {
        max-width: 90%;
        /* Limit the image width */
        height: auto;
        /* Maintain aspect ratio */
        margin-right: 0;
        /* Remove right margin */
    }
}

@media (max-width: 0px) {
    header {
        padding: 1.7rem 2rem;
    }

    .home .content h2 {
        font-size: 3.5rem;
        /* Adjust heading size for smaller screens */
    }

    .home .content p {
        font-size: 2rem;
        /* Adjust paragraph size for smaller screens */
    }

    .home .btn {
        padding: 1.2rem 2.5rem;
        /* Adjust button padding */
    }
}

/* hero section ends */

/* social icons start */
.socials {
    position: relative;
    margin-top: 9rem;
}

.socials .social-icons {
    padding-left: 0;
    margin-bottom: 25%;
    list-style: none;
}

.socials .social-icons li {
    display: inline-block;
    margin-bottom: 14px;
}

.social-icons a {
    font-size: 2rem;
    display: inline-block;
    line-height: 44px;
    color: #ffffff;
    background-color: rgba(var(--t-deep-rgb), 0.6);
    width: 44px;
    height: 44px;
    text-align: center;
    margin-right: 8px;
    border-radius: 100%;
    -webkit-transition: all 0.2s linear;
    -o-transition: all 0.2s linear;
    transition: all 0.2s linear;
}

.social-icons a:active,
.social-icons a:focus,
.social-icons a:hover {
    color: #fff;
    background-color: var(--color-light-pink);
}

.social-icons a.github:hover {
    background-color: #0e0e0e;
}

.social-icons a.twitter:hover {
    background-color: var(--color-light-pink);
}

.social-icons a.linkedin:hover {
    background-color: var(--color-light-pink);
}

.social-icons a.dev:hover {
    background-color: #070707;
}

.social-icons a.instagram:hover {
    background-color: #ee00da;
}

/* social icons end */



/* about section starts */
.about {
    background: rgb(255, 255, 255);
}

.about .content p {
    color: rgb(0, 0, 0);
    /* Couleur blanche */
    font-size: 1.6rem;
    /* Taille du texte */
    line-height: 1.8;
    /* Hauteur de ligne */
    text-align: justify;
}

.about .row {
    display: flex;
    flex-direction: row;
    align-items: center;
    /* Centre les images et le texte verticalement */
    justify-content: space-between;
    gap: 2rem;
}

.about .row .images {
    display: flex;
    flex-direction: column;
    /* Empile les images verticalement */
    align-items: center;
    /* Centre les images horizontalement */
    justify-content: center;
    /* Centre les images verticalement */
    gap: 2rem;
    /* Espace entre les images */
    flex: 1 1 40%;
    /* Les images occupent 40% de la largeur */
}

.about .row .images img {
    width: 100%;
    /* Les images occupent toute la largeur de leur conteneur */
    max-width: 500px;
    /* Limite la largeur maximale */
    height: auto;
    /* Conserve les proportions */
    border-radius: 10px;
    /* Coins arrondis */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    /* Ombre esthétique */
}

.about .row .content {
    flex: 1 1 55%;
    /* Le texte occupe 55% de la largeur */
    text-align: left;
    /* Aligne le texte à gauche */
    padding: 2rem;
}

.about .row .image img:hover {
    mix-blend-mode: normal;
}

.about .row .content h3 {
    color: rgb(27, 27, 27);
    font-size: 2.5rem;
}

.about .row .content .tag {
    font-size: 1.4rem;
    color: var(--color-light-pink);
    font-weight: 600;
    margin-top: 1rem;
}

.about .row .content p {
    font-size: 1.5rem;
    margin-top: 1.5rem;
    font-family: "Nunito";
    font-weight: 600;
    text-transform: none;
}

.about .row .content .box-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-family: "Nunito";
    font-weight: 600;
}

.about .row .content .box-container .box p {
    text-transform: none;
}

.about .row .content .box-container .box p span {
    color: var(--color-white);
}

.email-copy-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    cursor: pointer;
    padding: 1.2rem 1.6rem;
    border-radius: 0.8rem;
    border: 1px solid rgba(var(--t-crystal-rgb), 0.3);
    background: rgba(var(--t-crystal-rgb), 0.04);
    transition: border-color 0.25s ease, background 0.25s ease, transform 0.15s ease;
}

.email-copy-box:hover,
.email-copy-box:focus-visible {
    border-color: var(--color-light-pink);
    background: rgba(var(--t-crystal-rgb), 0.08);
}

.email-copy-box:active {
    transform: scale(0.98);
}

.email-copy-box p {
    margin: 0 !important;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.email-copy-box p i {
    color: var(--color-light-pink);
}

.email-copy-btn {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-light-pink);
    padding: 0.6rem 1.2rem;
    border-radius: 2rem;
    background: rgba(var(--t-crystal-rgb), 0.12);
    white-space: nowrap;
    transition: background 0.25s ease, color 0.25s ease;
}

.email-copy-box.copied .email-copy-btn {
    background: var(--color-light-pink);
    color: #fff;
}

@media screen and (max-width: 600px) {
    .email-copy-box {
        justify-content: center;
        text-align: center;
    }
}

.resumebtn {
    margin-top: 6rem;
}

.resume-btn {
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
    line-height: 0;
    padding: 1.6rem 3rem;
    border-radius: 4em;
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out,
        border-color 0.3s ease-out, background 0.3s ease-out;
    color: #fff;
    background: linear-gradient(135deg, rgba(var(--t-deep-rgb), 0.88), rgba(var(--t-bg-rgb), 0.92));
    border: 1px solid rgba(var(--t-crystal-rgb), 0.3);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: 0 5px 18px rgba(5, 10, 25, 0.5);
    font-family: "Nunito", sans-serif;
    opacity: 1;
    text-decoration: none;
    display: inline-block;
}

.resume-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(var(--t-crystal-rgb), 0.4),
        transparent
    );
    transform: translateX(-100%);
    transition: transform 0.7s ease-out;
    pointer-events: none;
}

.resume-btn span,
.resume-btn i {
    position: relative;
    z-index: 1;
}

.resumebtn .btn span {
    font-weight: 600;
    font-size: 1.8rem;
    letter-spacing: 0.1rem;
}

.resumebtn .btn i {
    margin-left: 0.3rem;
    font-size: 1.2rem;
    transition: 0.3s;
}

.resume-btn:hover {
    transform: scale(1.06) rotate(1deg);
    border-color: rgba(var(--t-crystal-rgb), 0.6);
    box-shadow: 0 8px 26px rgba(var(--t-crystal-rgb), 0.45);
    background: linear-gradient(135deg, rgba(var(--t-mid-rgb), 0.65), rgba(15, 30, 60, 0.92));
}

.resume-btn:active {
    transform: scale(0.97) rotate(0deg);
}

.resume-btn:hover::before {
    transform: translateX(100%);
}

.resumebtn .btn:hover i {
    transform: translateX(5px);
}

/* about media queries starts */
@media screen and (max-width: 600px) {
    header {
        padding: 1.7rem 2.5rem;
    }

    .about .row .image {
        margin-top: 2rem;
    }

    .about .row .image img {
        margin: 0 auto;
        width: 80%;
        mix-blend-mode: normal;
    }

    .about .row {
        padding: 0.5rem;
        margin-bottom: 7rem;
    }

    .about .row .content {
        padding: 1rem;
    }

    .about .row .content .box-container {
        gap: 0;
    }
}

/* about media queries ends */
/* about section ends */

.skills {
    background: var(--color-grey);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    /* Align elements at the top */
    padding: 2rem 0;
    /* Spacing at the top and bottom */
}

.skills .container {
    background: var(--color-dark-grey);
    color: var(--color-white);
    border-radius: 1rem;
    padding: 2rem;
    width: 55%;
    margin: auto;
    margin-top: 30px;
    margin-bottom: 30px;
}

.skills .container td {
    padding: 15px;
    /* Inner spacing */
    vertical-align: middle;
    /* Center content vertically */
    width: 20%;
    /* Equal column sizes (5 columns) */
    text-align: center;
}

.skill-td {
    cursor: pointer !important;
    transition: transform 0.25s ease, filter 0.25s ease;
    border-radius: 12px;
    padding: 15px !important;
    width: 20% !important;
    min-width: 140px;
    height: 180px;
    vertical-align: middle !important;
}

.skill-td-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 130px;
    height: 150px;
    margin: 0 auto;
}

.skills .container img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    flex-shrink: 0;
}

/* Style des légendes sous les images */
.skills .container .caption {
    font-size: 1.4rem;
    margin-top: 8px;
    font-weight: bold;
    text-align: center;
    color: var(--color-white);
    line-height: 1.2;
    word-break: break-word;
    hyphens: auto;
    max-width: 120px;
}


/* Remove minimum height */
.skills {
    min-height: auto;
    /* Allow section to adapt to content */
}

/* Responsive styles */
@media (max-width: 768px) {
    .skills .container {
        width: 90%;
        /* Full width on smaller screens */
        padding: 1rem;
        /* Reduced padding */
    }

    .skills .container td {
        width: 500%;
        /* Two columns on smaller screens */
        padding: 10px;
        /* Reduced padding */
    }

    .skills .container img {
        width: 100px;
        /* Smaller images on mobile */
        max-height: 100px;
        /* Maintain aspect ratio */
    }
}

@media (max-width: 600px) {
    .skills .container td {
        width: 100%;
        /* Stack columns on very small screens */
        text-align: center;
        /* Center text */
    }

    .skills .container img {
        width: 80px;
        /* Even smaller images */
        max-height: 80px;
        /* Maintain aspect ratio */
    }
}

/* skills section ends */

/* education section starts */
.education {
    background: var(--color-grey);
    min-height: 80vh;
}

.education .qoute {
    font-size: 1.5rem;
    text-align: center;
    font-family: "Nunito", sans-serif;
    font-weight: 600;
    margin-top: 0.5rem;
}

.education .box-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.education .box-container .box {
    display: flex;
    flex-direction: row;
    width: 85%;
    border-radius: 0.5rem;
    box-shadow: 0.2rem 0.5rem 1rem rgba(0, 0, 0, 0.2);
    text-align: center;
    position: relative;
    margin-top: 2rem;
    overflow: hidden;
    transition: 0.3s;
    background: var(--color-dark-grey);
}

.education .box-container .box:hover {
    transform: scale(1.03);
    box-shadow: 1rem 0.5rem 1.2rem rgba(0, 0, 0, 0.3);
}

.education .box-container .box .image {
    flex: 1 1 28rem;
    width: 100%;
    min-height: 320px;
}

.education .box-container .box img {
    object-fit: cover;
    position: relative;
    width: 100%;
    height: 100%;
}

.education .box-container .box .content {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    flex-wrap: wrap;
    flex: 1 1 70rem;
    justify-content: center;
}

.education .box-container .box .content h3 {
    font-size: 2.5rem;
    color: #ffffff;
    padding: 0.5rem 0;
    font-weight: 600;
    text-align: left;
    margin-left: 1rem;
}

.education .box-container .box .content p {
    font-size: 1.5rem;
    margin-left: 1rem;
    text-align: left;
}

.education h4 {
    font-size: 2rem;
    color: var(--color-light-pink);
    text-align: left;
    margin: 1rem;
    font-family: "Nunito", sans-serif;
    font-weight: 700;
}

/* education media queries starts*/
@media screen and (max-width: 600px) {
    .education .box-container .box {
        flex-direction: column;
        width: 100%;
    }

    .education .box-container .box .image {
        width: 100%;
        height: 25rem;
    }

    .education .box-container .box img {
        width: 100%;
    }

    .education .box-container .box .content {
        position: relative;
        display: flex;
        flex-direction: column;
        padding: 1rem;
        flex-wrap: wrap;
        flex: 0;
    }

    .education .btns {
        margin-top: 2rem;
        margin-left: 1rem;
        margin-right: 1rem;
        flex-wrap: wrap;
    }
}

/* education media queries ends*/
/* education section ends */

/* work section starts */
.work {
    /* background: #010124; */
    background: var(--color-dark-grey);
}

.work h2 {
    color: #fff;
    padding: 1rem;
}

.work .heading span {
    color: var(--color-light-pink);
}

.work .box-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 2rem;
}

.work .box-container .box {
    flex: 1 1 30rem;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    height: 30rem;
}

.work .box-container .box img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.work .box-container .box .content {
    height: 100%;
    width: 100%;
    position: absolute;
    top: 85%;
    left: 0;
    background: var(--color-grey);
    display: flex;
    flex-direction: column;
}

.work .box-container .box .content .tag {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    height: 4.5rem;
    width: 100%;
    padding-left: 1rem;
    background: var(--color-light-pink);
}

.work .box-container .box .content .tag h3 {
    font-size: 2rem;
}

.work .box-container .box:hover .content {
    top: 25%;
}

.work .desc {
    margin: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.work .desc p {
    font-size: 1.5rem;
}

.work .desc .btns {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 2rem;
}

.work .desc .btns .btn {
    line-height: 0;
    display: inline;
    padding: 1.5rem 2.5rem;
    border-radius: 0.5rem;
    font-size: 1.5rem;
    color: #fff;
    background: rgb(12, 12, 12);
    margin-right: 2rem;
}

.work .desc .btns .btn:hover {
    background: #310ae0f5;
}

.work .viewall {
    display: flex;
    justify-content: center;
}

.work .viewall .btn {
    position: relative;
    line-height: 0;
    padding: 1.6rem 3rem;
    border-radius: 0.5em;
    transition: 0.5s;
    color: rgb(255, 255, 255);
    font-weight: 700;
    border: 2px solid #fff;
    box-shadow: 0px 5px 10px rgba(65, 84, 241, 0.4);
    text-align: center;
}

.work .viewall .btn span {
    font-weight: 600;
    font-size: 1.7rem;
    font-family: "Nunito", sans-serif;
}

.work .viewall .btn i {
    margin-left: 0.3rem;
    font-size: 1.5rem;
    transition: 0.3s;
}

.work .viewall .btn:hover {
    background: #fff;
    color: #000;
}

.work .viewall .btn:hover i {
    transform: translateX(5px);
}

/* work section ends */

/* experience section starts */
.experience {
    background: var(--color-grey);
}

.experience .heading {
    margin-bottom: 7rem;
}

.experience .timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.experience .timeline::after {
    content: "";
    position: absolute;
    width: 6px;
    background: var(--color-light-pink);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
    z-index: -1;
}

.experience .container {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.experience .container::after {
    content: "\f0b1";
    position: absolute;
    top: 15px;
    left: 100%;
    transform: translate(-50%, 0);

    width: 40px;
    height: 40px;
    background-color: #fff;
    border: 4px solid var(--color-light-pink);
    border-radius: 50%;
    z-index: 100;

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

    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 2rem;
    color: var(--color-light-pink);
}

.experience .left {
    left: 0;
}

.experience .right {
    left: 50%;
}

.experience .left::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 29px;
    width: 0;
    z-index: 1;
    right: 30px;
    border: medium solid #ffffff;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent #ffffff;
}

.experience .right::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 29px;
    width: 0;
    z-index: 1;
    left: 30px;
    border: medium solid #ffffff;
    border-width: 10px 10px 10px 0;
    border-color: transparent #ffffff transparent transparent;
}

.experience .right::after {
    left: 0;
    transform: translate(-50%, 0);
}

.experience .content {
    background-color: #ffffff;
    position: relative;
    border-radius: 8px;
}

.experience .content .tag {
    color: #000;
    font-size: 1.3rem;
    padding-top: 1.5rem;
    padding-left: 1.5rem;
}

.tag h2 {
    margin-left: 12%;
}

.experience .content .desc {
    color: #000;
    margin-left: 1.5rem;
    padding-bottom: 1rem;
}

.experience .content .desc h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

.experience .content .desc p {
    font-size: 1.2rem;
}

/* view all button */
.morebtn {
    display: flex;
    justify-content: center;
}

.morebtn .btn {
    position: relative;
    line-height: 0;
    padding: 1.6rem 3rem;
    border-radius: 0.5em;
    transition: 0.5s;
    color: #fff;
    background: #2506ad;
    box-shadow: 0px 5px 10px rgba(48, 68, 247, 0.6);
    text-align: center;
}

.morebtn .btn span {
    font-weight: 600;
    font-size: 1.7rem;
    font-family: "Nunito", sans-serif;
}

.morebtn .btn i {
    margin-left: 0.3rem;
    font-size: 1.5rem;
    transition: 0.3s;
}

.morebtn .btn:hover {
    background: #1a047e;
}

.morebtn .btn:hover i {
    transform: translateX(5px);
}

@media screen and (max-width: 620px) {
    .experience {
        min-height: auto;
        padding: 2rem 1rem;
    }

    .experience .heading {
        margin-bottom: 2.2rem;
    }

    .experience .timeline {
        margin-top: 0;
        max-width: 100%;
    }

    .experience .timeline::after {
        left: 2.4rem;
        margin-left: 0;
        width: 4px;
        z-index: -1;
    }

    .experience .container,
    .experience .left,
    .experience .right {
        width: calc(100% - 0.6rem);
        left: 0;
        margin-left: 0.6rem;
        margin-bottom: 1.2rem;
        padding: 0 0 0 5.6rem;
    }

    .experience .container::after,
    .experience .left::after,
    .experience .right::after {
        left: 2rem;
        top: 1.2rem;
        transform: translate(-50%, 0);
        width: 34px;
        height: 34px;
        border: 3px solid var(--color-light-pink);
        font-size: 1.5rem;
    }

    .experience .container::before,
    .experience .left::before,
    .experience .right::before {
        content: "";
        height: 0;
        position: absolute;
        top: 2.4rem;
        width: 0;
        z-index: 1;
        left: 4.8rem;
        right: auto;
        border-style: solid;
        border-width: 9px 10px 9px 0;
        border-color: transparent #ffffff transparent transparent;
    }

    .experience .content {
        border-radius: 7px;
        padding: 0.9rem 1.1rem;
    }

    .experience .content .tag {
        padding-top: 0;
        padding-left: 0;
    }

    .experience .content .tag h2 {
        margin-left: 0;
        font-size: 1.05rem;
    }

    .experience .content .desc {
        margin-left: 0;
        padding-bottom: 0;
    }

    .experience .content .desc h3 {
        font-size: 1rem;
        margin-top: 0.45rem;
    }

    .experience .content .desc p {
        font-size: 0.9rem;
        margin: 0.2rem 0;
    }

    .experience-stage.left:hover::before {
        transform: translateX(-5px);
    }

    .experience-stage.right:hover::before {
        transform: translateX(5px);
    }
}

/* experience media queries ends */
/* experience section ends */


/* footer section starts */
.footer {
    position: relative;
    min-height: auto;
    padding-top: 0;
    background: var(--color-dark-grey);
}

.footer .box-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.footer .box-container .box {
    flex: 1 1 25rem;
    margin: 2.5rem;
}

.footer .box-container .box h3 {
    font-size: 2.5rem;
    color: var(--color-white);
    padding-bottom: 1rem;
    font-weight: normal;
}

.footer .box-container .box p {
    font-size: 1.5rem;
    color: var(--color-white);
    padding: 0.7rem 0;
    text-transform: none;
}

.footer .box-container .box p i {
    padding-right: 1rem;
    color: #ffae00;
}

.footer .box-container .box a {
    font-size: 1.5rem;
    color: rgb(238, 238, 238);
    padding: 0.3rem 0;
    display: block;
}

.footer .box-container .box a:hover {
    color: var(--color-light-pink);
}

.footer .box-container .box a.footer-secret-btn {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1rem;
    padding: 0.95rem 1.6rem;
    border-radius: 4em;
    background: linear-gradient(135deg, rgba(var(--t-deep-rgb), 0.88), rgba(var(--t-bg-rgb), 0.92));
    border: 1px solid rgba(var(--t-crystal-rgb), 0.3);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.03rem;
    box-shadow: 0 5px 18px rgba(5, 10, 25, 0.5);
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out,
        border-color 0.3s ease-out, background 0.3s ease-out;
}

.footer .box-container .box a.footer-secret-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(var(--t-crystal-rgb), 0.4),
        transparent
    );
    transform: translateX(-100%);
    transition: transform 0.7s ease-out;
    pointer-events: none;
}

.footer .box-container .box a.footer-secret-btn span {
    position: relative;
    z-index: 1;
}

.footer .box-container .box a.footer-secret-btn:hover {
    color: #fff;
    transform: scale(1.06) rotate(1deg);
    border-color: rgba(var(--t-crystal-rgb), 0.6);
    box-shadow: 0 8px 26px rgba(var(--t-crystal-rgb), 0.45);
    background: linear-gradient(135deg, rgba(var(--t-mid-rgb), 0.65), rgba(15, 30, 60, 0.92));
}

.footer .box-container .box a.footer-secret-btn:active {
    transform: scale(0.97) rotate(0deg);
}

.footer .box-container .box a.footer-secret-btn:hover::before {
    transform: translateX(100%);
}

.footer .box-container .box .share {
    display: flex;
    flex-wrap: wrap;
    padding: 1rem 0;
}

.footer .box-container .box .share a {
    height: 4rem;
    width: 4rem;
    padding: 1rem;
    text-align: center;
    border-radius: 5rem;
    font-size: 1.7rem;
    margin-right: 1rem;
    transition: 0.2s;
    background: rgb(230, 230, 230);
    color: var(--t-mid);
    border: none;
}

.footer .box-container .box .share a:hover {
    background: transparent;
    transform: scale(0.98);
    border: 0.1rem solid rgb(180, 178, 178);
    color: var(--color-light-pink);
}

.footer .btn-class-name {
    position: absolute;
    right: 1.4rem;
    bottom: 1.2rem;
    width: 42px;
    height: 36px;
    outline-width: 6px;
    z-index: 2;
}

@media screen and (max-width: 0px) {
    header {
        padding: 1.7rem 2.5rem !important;
    }

    .theme-btn {
        width: 50px;
        height: 50px;
    }

    .header-content {
        grid-template-columns: repeat(1, 1fr);
        padding-bottom: 6rem;
    }

    .left-header .h-shape {
        display: none;
    }

    .right-header {
        grid-row: 1;
        padding-right: 0rem !important;
        width: 90%;
        margin: 0 auto;
    }

    .right-header .name {
        font-size: 2.5rem !important;
        text-align: center;
        padding-top: 3rem;
    }

    .header-content .left-header .image {
        margin: 0 auto;
        width: 90%;
    }

    .controls {
        top: auto;
        bottom: 0;
        flex-direction: row;
        justify-content: center;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        background-color: var(--color-grey-5);
    }

    .controls .control {
        margin: 1rem 0.3rem;
    }

    .about-container {
        grid-template-columns: repeat(1, 1fr);
    }

    .about-container .right-about {
        grid-template-columns: repeat(1, 1fr);
        padding-top: 2.5rem;
    }

    .about-container .left-about {
        padding-right: 0;
    }

    .about-container .left-about p {
        padding-left: 0;
    }

    .timeline {
        grid-template-columns: repeat(1, 1fr);
        padding-bottom: 6rem;
    }

    .container {
        padding: 2rem 2.5rem !important;
    }

    .about-stats .progress-bars {
        grid-template-columns: repeat(1, 1fr);
    }

    .portfolios {
        grid-template-columns: repeat(1, 1fr);
        padding-bottom: 6rem;
        margin-top: 1rem;
    }

    .contact-content-con {
        flex-direction: column;
    }

    .contact-content-con .right-contact {
        margin-left: 0;
        margin-top: 2.5rem;
    }

    .contact-content-con .right-contact .i-c-2 {
        flex-direction: column;
    }

    .contact-content-con .right-contact .i-c-2 :last-child {
        margin-left: 0;
        margin-top: 1.5rem;
    }

    .contact-content-con .right-contact {
        margin-bottom: 6rem;
    }

    .contact-item {
        flex-direction: column;
        margin: 1rem 0;
    }

    .contact-item p {
        font-size: 15px;
        color: var(--color-grey-2);
    }

    .contact-item span {
        font-size: 15px;
    }

    .contact-item .icon {
        grid-template-columns: 25px 1fr;
    }

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

    .main-title h2 span {
        font-size: 2.3rem;
    }

    .main-title h2 .bg-text {
        font-size: 2.3rem;
    }
}

@media screen and (max-width: 1432px) {
    .container {
        padding: 7rem 11rem;
    }

    .contact-content-con {
        flex-direction: column;
    }

    .contact-content-con .right-contact {
        margin-left: 0;
        margin-top: 2.5rem;
    }

    .contact-content-con .right-contact .i-c-2 {
        flex-direction: column;
    }

    .contact-content-con .right-contact .i-c-2 :last-child {
        margin-left: 0;
        margin-top: 1.5rem;
    }

    .contact-content-con .right-contact {
        margin-bottom: 6rem;
    }

    .main-title h2 .bg-text {
        font-size: 5.5rem;
    }
}

@media screen and (max-width: 1250px) {
    .portfolios {
        grid-template-columns: repeat(2, 1fr);
    }

    .header-content .right-header {
        padding-right: 9rem;
    }
}

@media screen and (max-width: 660px) {
    .portfolios {
        grid-template-columns: repeat(1, 1fr);
    }
}

@media screen and (max-width: 1070px) {
    .about-container {
        grid-template-columns: repeat(1, 1fr);
    }

    .about-container .right-about {
        padding-top: 2.5rem;
    }

    .main-title h2 {
        font-size: 4rem;
    }

    .main-title h2 span {
        font-size: 4rem;
    }

    .main-title h2 .bg-text {
        font-size: 4.5rem;
    }
}

@media screen and (max-width: 970px) {
    .container {
        padding: 7rem 6rem;
    }

    .about-container .left-about {
        padding-right: 0rem;
    }

    .header-content {
        grid-template-columns: repeat(1, 1fr);
        padding-bottom: 6rem;
    }

    .left-header .h-shape {
        display: none;
    }

    .left-header .image {
        width: 90% !important;
        margin: 0 auto !important;
    }

    .right-header {
        grid-row: 1;
        padding-right: 0rem !important;
        width: 90%;
        margin: 0 auto;
    }

    .right-header .name {
        font-size: 2.5rem !important;
        text-align: center;
        padding-top: 3rem;
    }
}

@media screen and (max-width: 700px) {
    .container {
        padding: 7rem 3rem;
    }

    .about-stats .progress-bars {
        grid-template-columns: repeat(1, 1fr);
    }

    .about-container .right-about {
        grid-template-columns: repeat(1, 1fr);
    }

    .timeline {
        grid-template-columns: repeat(1, 1fr);
    }

    .main-title h2 {
        font-size: 3rem;
    }

    .main-title h2 span {
        font-size: 3rem;
    }

    .main-title h2 .bg-text {
        font-size: 4rem;
    }
}

.footer .credit {
    padding: 1rem 0 0 0;
    text-align: center;
    font-size: 1.5rem;
    font-family: "Nunito", sans-serif;
    font-weight: 600;
    color: #fff;
    border-top: 0.1rem solid #fff3;
}

.footer .credit a {
    color: #ffae00;
}

.footer .fa {
    color: #e90606;
    margin: 0 0.3rem;
    font-size: 1.5rem;
    animation: pound 0.35s infinite alternate;
}

@-webkit-keyframes pound {
    to {
        transform: scale(1.1);
    }
}

@keyframes pound {
    to {
        transform: scale(1.1);
    }
}

@media (max-width: 0px) {
    .footer .box-container .box {
        margin: 1.5rem;
    }

    .footer .box-container .box p {
        padding: 0.7rem;
    }

    .footer .box-container .box .share a {
        padding: 1.2rem;
    }
}

/* footer section ends */

/* common media queries starts*/
@media (max-width: 0px) {
    html {
        font-size: 55%;
    }

    body {
        padding-right: 0;
    }

    section {
        padding: 2rem;
    }
}

/* common media queries ends*/

/* scroll top starts */
#scroll-top {
    position: fixed;
    top: -140%;
    right: 2rem;
    padding: 1rem 1.5rem;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(var(--t-deep-rgb), 0.88), rgba(var(--t-bg-rgb), 0.92));
    border: 1px solid rgba(var(--t-crystal-rgb), 0.3);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    color: #fff;
    border-radius: 50%;
    box-shadow: 0 5px 18px rgba(5, 10, 25, 0.5);
    transition: top 1s linear, transform 0.3s ease-out, box-shadow 0.3s ease-out,
        border-color 0.3s ease-out, background 0.3s ease-out;
    z-index: 1000;
}

#scroll-top::before {
    position: relative;
    z-index: 1;
}

#scroll-top::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(var(--t-crystal-rgb), 0.4),
        transparent
    );
    transform: translateX(-100%);
    transition: transform 0.7s ease-out;
    pointer-events: none;
}

#scroll-top:hover {
    transform: scale(1.1) rotate(3deg);
    border-color: rgba(var(--t-crystal-rgb), 0.6);
    box-shadow: 0 8px 26px rgba(var(--t-crystal-rgb), 0.45);
    background: linear-gradient(135deg, rgba(var(--t-mid-rgb), 0.65), rgba(15, 30, 60, 0.92));
}

#scroll-top:active {
    transform: scale(0.95) rotate(0deg);
}

#scroll-top:hover::after {
    transform: translateX(100%);
}

#scroll-top.active {
    top: calc(100% - 12rem);
}

/* scroll top ends */

.typing-text {
    text-transform: none;
}

.fas {
    color: var(--color-light-pink);
}

p {
    text-transform: none;
}

/* ===================================================
   CUSTOM CURSOR
   =================================================== */
*,
*:hover,
*:focus,
a,
a:hover,
button,
button:hover,
input,
select,
textarea,
label,
.skill-td,
.skill-td:hover,
.experience-stage,
.experience-stage:hover,
[onclick],
[onclick]:hover {
    cursor: none !important;
}

.cursor-dot {
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-100px, -100px);
    box-shadow: 0 0 6px 2px var(--t-crystal), 0 0 16px 5px rgba(var(--t-deep-rgb), 0.7);
    transition: width 0.2s, height 0.2s, box-shadow 0.2s;
    will-change: transform;
}

.cursor-dot.is-hover {
    width: 16px;
    height: 16px;
    box-shadow: 0 0 8px 3px var(--t-crystal), 0 0 26px 9px rgba(var(--t-deep-rgb), 0.8);
}

.cursor-trail {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 99998;
}

/* ===================================================
   SKILLS — Clickable icons & modal
   =================================================== */
.skills-subtitle {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.65);
    text-align: center;
    margin-top: 0.5rem;
    letter-spacing: 0.05rem;
    font-style: italic;
}

.skill-td:hover {
    transform: translateY(-8px) scale(1.08);
    filter: drop-shadow(0 6px 18px rgba(var(--t-crystal-rgb), 0.55));
}

.skill-td img {
    transition: transform 0.3s ease;
}

.skill-td:hover img {
    transform: rotate(-4deg) scale(1.07);
}

/* Skill modal overlay */
.skill-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 5000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    animation: fadeInOverlay 0.25s ease;
}

.skill-modal.open {
    display: flex;
}

@keyframes fadeInOverlay {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.skill-modal-inner {
    background: linear-gradient(135deg, #1e1e1e 0%, #2a2a2a 100%);
    border: 1px solid var(--color-light-pink);
    border-radius: 18px;
    padding: 3.5rem;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 60px rgba(var(--t-crystal-rgb), 0.25);
    animation: slideUpModal 0.3s ease;
    text-align: center;
}

@keyframes slideUpModal {
    from {
        transform: translateY(40px);
        opacity: 0;
    }

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

.skill-modal-inner .skill-modal-icon img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 1.5rem;
}

.skill-modal-inner h3 {
    font-size: 2.2rem;
    color: var(--color-light-pink);
    margin-bottom: 1.2rem;
}

.skill-modal-inner p {
    font-size: 1.5rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.85);
    text-align: left;
}

.skill-modal-close {
    position: absolute;
    top: 1.2rem;
    right: 1.4rem;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer !important;
    transition: color 0.2s;
}

.skill-modal-close:hover {
    color: var(--color-light-pink);
}

/* ===================================================
   EXPERIENCE — Stage cards (rose + cliquable)
   =================================================== */
.experience-stage {
    cursor: pointer !important;
}

.experience-stage .stage-content {
    background: linear-gradient(135deg, #fff0f5 0%, #ffe4ef 100%) !important;
    border: 1.5px solid rgba(var(--t-crystal-rgb), 0.45);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.experience-stage:hover .stage-content {
    transform: scale(1.02);
    box-shadow: 0 8px 28px rgba(var(--t-crystal-rgb), 0.35);
}

.experience-stage .stage-content .tag h2,
.experience-stage .stage-content .desc h3,
.experience-stage .stage-content .desc p {
    color: #3a1020 !important;
}

.click-hint {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 1.1rem;
    color: var(--color-light-pink);
    font-style: italic;
    font-weight: 600;
}

.click-hint i {
    margin-right: 0.3rem;
    color: var(--color-light-pink) !important;
}

/* Stage detail modals */
.stage-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 6000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    padding: 2rem;
}

.stage-modal-overlay.active {
    display: flex;
    animation: fadeInOverlay 0.25s ease;
}

.stage-modal-box {
    background: linear-gradient(145deg, #0d1424 0%, #2e1020 100%);
    border: 1.5px solid var(--color-light-pink);
    border-radius: 18px;
    padding: 3rem 3.5rem;
    max-width: 680px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 24px 70px rgba(var(--t-crystal-rgb), 0.3);
    animation: slideUpModal 0.3s ease;
    color: #fff;
}

.stage-modal-box h2 {
    font-size: 2rem;
    color: var(--color-light-pink);
    margin-bottom: 1.2rem;
    line-height: 1.3;
}

.stage-modal-box h4 {
    font-size: 1.5rem;
    color: var(--color-light-pink);
    margin: 1.8rem 0 0.7rem 0;
    border-bottom: 1px solid rgba(var(--t-crystal-rgb), 0.3);
    padding-bottom: 0.4rem;
}

.stage-modal-box p {
    font-size: 1.45rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
}

.stage-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 0.5rem;
}

.stage-meta span {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.65);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stage-meta span i {
    color: var(--color-light-pink) !important;
    font-size: 1.3rem;
}

.stage-progress-banner {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    margin: 1rem 0 1.2rem;
    padding: 1rem 1.2rem;
    border-radius: 12px;
    background: rgba(var(--t-crystal-rgb), 0.14);
    border: 1px solid rgba(var(--t-crystal-rgb), 0.45);
}

.stage-progress-banner i {
    color: #ffc1df;
    font-size: 1.45rem;
    margin-top: 0.2rem;
}

.stage-progress-banner span {
    font-size: 1.32rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.92);
}

.stage-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 0.5rem;
}

.stage-tags span {
    background: rgba(var(--t-crystal-rgb), 0.15);
    border: 1px solid rgba(var(--t-crystal-rgb), 0.4);
    color: var(--t-light);
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
    font-size: 1.2rem;
    font-weight: 600;
}

.stage-modal-close {
    position: absolute;
    top: 1.2rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer !important;
    transition: color 0.2s;
}

.stage-modal-close:hover {
    color: var(--color-light-pink);
}

/* Scrollbar for modal */
.stage-modal-box::-webkit-scrollbar {
    width: 5px;
}

.stage-modal-box::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.stage-modal-box::-webkit-scrollbar-thumb {
    background: var(--color-light-pink);
    border-radius: 10px;
}

/* ===================================================
   DARKER GREYS (légèrement assombris)
   =================================================== */
:root {
    --color-dark-grey: #0a0d14;
    --color-grey: #111622;
}

/* ===================================================
   SCROLLBAR (thème)
   =================================================== */
html::-webkit-scrollbar-track {
    background: #1e1e1e;
}

html::-webkit-scrollbar-thumb {
    background: var(--color-light-pink);
    border-radius: 10px;
}

/* ===================================================
   ANIMATION: heading underline glow
   =================================================== */
.heading span {
    position: relative;
    display: inline-block;
}

.heading span::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--color-light-pink);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.heading:hover span::after {
    transform: scaleX(1);
}

/* ===================================================
   PAGE LOADER (stylish intro)
   =================================================== */
body {
    overflow: hidden;
}

body.is-loaded {
    overflow: auto;
}

.intro-flash {
    position: fixed;
    inset: 0;
    z-index: 20001;
    background-image: url('https://giffiles.alphacoders.com/124/12499.gif');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    pointer-events: none;
    opacity: 0;
    display: none;
}

.intro-flash.active {
    display: block;
    animation: introFlashAnim 2s ease 0s 1 normal forwards;
}

@keyframes introFlashAnim {
    0% {
        opacity: 1;
    }

    75% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

/* Le style de l'écran de chargement est dans noctis.css */

/* ===================================================
   HERO + ABOUT + SKILLS RESPONSIVE REWORK
   =================================================== */
.home {
    gap: 3rem;
    align-items: center;
}

.home .image {
    align-items: center;
    justify-content: center;
    margin-top: 0;
}

.home .image img {
    width: clamp(280px, 34vw, 460px);
    height: clamp(360px, 44vw, 560px);
    max-width: none;
    object-fit: cover;
}

.about .row {
    display: grid;
    grid-template-columns: minmax(290px, 1fr) minmax(340px, 1.2fr);
    gap: 3rem;
    align-items: start;
}

.about .row .images {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.6rem;
}

.about .row .images img {
    width: 100%;
    max-width: 100%;
    min-height: 220px;
    object-fit: cover;
}

.skills .container {
    width: min(1120px, 92vw);
    display: grid;
    grid-template-columns: repeat(5, minmax(120px, 1fr));
    gap: 1.2rem;
    padding: 2rem;
}

.skills .container tr {
    display: contents;
}

.skills .container td {
    width: auto;
    padding: 0;
    display: block;
}

.skill-td {
    min-width: 0;
    height: auto;
    width: auto !important;
    padding: 1.2rem !important;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.skill-td-inner {
    width: 100%;
    height: 152px;
}

/* Timeline arrows + icons animate with stage hover */
.experience .container::before,
.experience .container::after {
    transition: transform 0.25s ease, filter 0.25s ease;
}

.experience-stage:hover::after {
    transform: translate(-50%, 0) scale(1.08);
    filter: drop-shadow(0 0 8px rgba(var(--t-crystal-rgb), 0.6));
}

.experience-stage.left:hover::before {
    transform: translateX(7px);
}

.experience-stage.right:hover::before {
    transform: translateX(-7px);
}

@media screen and (max-width: 620px) {

    .experience-stage.left:hover::before,
    .experience-stage.right:hover::before {
        transform: translateX(-7px) !important;
    }
}

/* Improve responsive behavior for education images that currently use inline sizes */
.education .box-container .box .image img {
    width: 100% !important;
    height: 100% !important;
}

@media (max-width: 1100px) {
    .skills .container {
        grid-template-columns: repeat(4, minmax(120px, 1fr));
    }

    .about .row {
        grid-template-columns: 1fr;
    }

    .about .row .images {
        grid-template-columns: repeat(2, minmax(180px, 1fr));
    }
}

@media (max-width: 900px) {
    section {
        padding: 3rem 5%;
    }

    .home {
        flex-direction: column-reverse;
        justify-content: center;
        text-align: center;
        gap: 2.2rem;
        padding-top: 7.8rem;
    }

    .home .content {
        margin-top: 0;
        padding-top: 0;
    }

    .home .btn {
        position: relative;
        margin-top: 1.8rem;
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
    }

    .socials {
        margin-top: 3rem;
    }

    .socials .social-icons {
        margin-bottom: 0;
    }

    .skills .container {
        grid-template-columns: repeat(3, minmax(120px, 1fr));
        width: min(980px, 94vw);
    }

    .education .box-container .box {
        width: 95%;
        flex-direction: column;
    }

    .education .box-container .box .image {
        height: 270px;
    }
}

@media (max-width: 768px) {

    .home .content h2,
    .home .content h2 span {
        font-size: 4.2rem;
    }

    .home .content p,
    .home .content p span {
        font-size: 2.2rem;
    }

    .home .image img {
        width: min(92vw, 390px);
        height: min(72vw, 460px);
    }

    .about .row .images {
        grid-template-columns: 1fr;
    }

    .skills .container {
        grid-template-columns: repeat(2, minmax(130px, 1fr));
        gap: 1rem;
        padding: 1.2rem;
    }

    .skill-td-inner {
        height: 136px;
    }

    .experience .heading {
        margin-bottom: 4rem;
    }

    .stage-modal-box {
        padding: 2.2rem 1.8rem;
    }

    .stage-modal-box h2 {
        font-size: 1.8rem;
    }

    /* Prevent unsupported fixed backgrounds on mobile */
    .skills {
        background-attachment: scroll;
    }
}

@media (max-width: 0px) {
    .skills .container {
        grid-template-columns: 1fr;
    }

    .home .content h2,
    .home .content h2 span {
        font-size: 3.5rem;
    }

    .home .content p,
    .home .content p span {
        font-size: 1.95rem;
    }

    .loader-percent {
        font-size: 1.1rem;
    }
}

/* Restore native cursor on touch devices */
@media (hover: none),
(pointer: coarse) {

    *,
    *:hover,
    *:focus,
    a,
    a:hover,
    button,
    button:hover,
    input,
    select,
    textarea,
    label,
    .skill-td,
    .skill-td:hover,
    .experience-stage,
    .experience-stage:hover,
    [onclick],
    [onclick]:hover {
        cursor: auto !important;
    }

    .cursor-dot,
    .cursor-trail {
        display: none !important;
    }
}

/* ===================================================
   PATCH: requested UI adjustments
   =================================================== */
.about .heading {
    margin-bottom: 3rem;
}

.home .image img {
    width: min(92vw, 560px);
    height: clamp(260px, 30vw, 360px);
    border-radius: 2.2rem;
    object-fit: cover;
    object-position: center;
}

.skills-grid {
    width: min(1120px, 92vw);
    margin: 3rem auto;
    padding: 2rem;
    border-radius: 1rem;
    background: var(--color-dark-grey);
    display: grid;
    grid-template-columns: repeat(5, minmax(130px, 1fr));
    gap: 1.2rem;
}

.skills-grid .skill-td {
    width: auto !important;
    min-width: 0;
}

.skills-grid .skill-td-inner {
    width: 100%;
    height: 152px;
}

.skills-grid img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.skills-grid .caption {
    font-size: 1.4rem;
    margin-top: 8px;
    font-weight: 700;
    text-align: center;
    color: var(--color-white);
}

.skill-level-wrap {
    margin: 1rem 0 1.4rem;
}

.skill-level-meta {
    display: flex;
    justify-content: space-between;
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 0.5rem;
}

.skill-level-meta span:last-child {
    display: none;
}

.skill-level-track {
    width: 100%;
    height: 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    overflow: hidden;
}

.skill-level-fill {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--t-light), var(--color-light-pink));
    transition: width 0.45s ease;
}

.cv-modal-box {
    max-width: min(1050px, 95vw);
    padding-bottom: 2.2rem;
}

.cv-modal-actions {
    margin-bottom: 1.4rem;
    text-align: right;
}

.cv-viewer-wrap {
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1.2rem;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.25);
}

.cv-viewer-wrap iframe {
    width: 100%;
    height: min(72vh, 760px);
    border: 0;
    display: block;
}

.games-modal-box {
    width: min(82vw, 142vh);
    max-width: calc(100vw - 6rem);
    height: min(46vw, 80vh);
    max-height: calc(100vh - 6rem);
    padding: 0;
    background: rgba(16, 16, 16, 0.95);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.games-modal-controls {
    position: fixed;
    top: 1.2rem;
    right: 1.4rem;
    z-index: 100010;
    display: flex;
    gap: 0.5rem;
}

.games-modal-btn {
    background: rgba(20, 20, 20, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}
.games-modal-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.1);
}
#gamesModalClose:hover {
    background: rgba(255, 60, 60, 0.7);
}

.games-modal-box--fullscreen {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100vh !important;
    max-height: 100vh !important;
    aspect-ratio: unset !important;
    border-radius: 0 !important;
    z-index: 100005;
}

.games-viewer-wrap {
    border: 0;
    border-radius: 0.9rem;
    overflow: hidden;
    background: #000;
    width: 100%;
    height: 100%;
    flex: 1;
    display: flex;
}

.games-viewer-wrap iframe {
    width: 100%;
    height: 100%;
    min-height: 0;
    border: 0;
    display: block;
    flex: 1;
}

html.games-modal-open,
body.games-modal-open {
    overflow: hidden !important;
}

body.games-modal-open {
    cursor: auto !important;
}

body.games-modal-open,
body.games-modal-open *,
body.games-modal-open *:hover,
body.games-modal-open *:focus {
    cursor: auto !important;
}

body.games-modal-open .cursor-dot,
body.games-modal-open .cursor-trail {
    display: none !important;
}

/* Optimisations perf pendant qu'un jeu tourne dans le modal (mobile / PC faibles) */
.games-modal-overlay {
    /* le blur du fond est très coûteux (surtout mobile) pendant qu'un jeu tourne à côté */
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(0, 0, 0, 0.92) !important;
}

body.games-modal-open .home .wrapper .inner {
    animation-play-state: paused !important;
}

body.games-modal-open .footer .fa {
    animation-play-state: paused !important;
}

/* Les GIFs animés et le <marquee> ne s'arrêtent pas avec animation-play-state
   (ce ne sont pas des animations CSS) : il faut les retirer du rendu */
body.games-modal-open .softskill-secret-games,
body.games-modal-open marquee {
    display: none !important;
}

@media (max-width: 1100px) {
    .skills-grid {
        grid-template-columns: repeat(4, minmax(120px, 1fr));
    }
}

@media (max-width: 900px) {
    .home {
        flex-direction: column;
        gap: 0;
        min-height: auto;
        padding-top: 17.8rem;
    }

    .home .image {
        order: 2;
        margin-top: -16.8rem;
    }

    .home .content {
        order: 1;
        margin-top: 0.4rem;
        padding-top: 0;
    }

    .home .content p,
    .home .content p span {
        padding: 0.35rem 0;
    }

    .home .btn {
        margin-top: 0.6rem;
    }

    .socials {
        margin-top: 0.6rem;
    }

    .socials .social-icons {
        margin-bottom: 0;
    }

    .skills-grid {
        grid-template-columns: repeat(3, minmax(120px, 1fr));
        width: min(980px, 94vw);
    }

    .education .box-container .box {
        width: 80%;
        flex-direction: row;
    }

    .education .box-container .box .image {
        height: auto;
        min-height: 250px;
    }
}

@media (max-width: 768px) {
    .home {
        padding-top: 17.8rem;
        gap: 0;
    }

    .home .content {
        margin-top: 0.4rem;
    }

    .skills {
        background: #1a1a1a !important;
    }

    .skills-grid {
        grid-template-columns: repeat(2, minmax(130px, 1fr));
        gap: 1rem;
        padding: 1.2rem;
    }

    .home .image img {
        width: min(94vw, 420px);
        height: clamp(220px, 52vw, 300px);
    }
}

@media (max-width: 600px) {
    .education .box-container .box {
        width: 94%;
        flex-direction: column;
    }

    .education .box-container .box .image {
        width: 100%;
        height: 18rem;
        min-height: 18rem;
    }

    .education .box-container .box .content h3 {
        font-size: 2rem;
    }

    .education .box-container .box .content p {
        font-size: 1.35rem;
    }

    .education h4 {
        font-size: 1.65rem;
    }

    .cv-viewer-wrap iframe {
        height: 60vh;
    }
}

@media (max-width: 0px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================================================
   SOFT SKILLS SECTION
   =================================================== */
.softskills {
    padding: 2rem 9%;
}

.softskills-grid {
    width: min(1120px, 92vw);
    margin: 3rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
}

/* Bloc (une des 3 catégories) */
.softskill-bloc {
    background: var(--color-grey);
    border-radius: 1.6rem;
    padding: 2.8rem 3rem;
    border: 1px solid rgba(var(--t-crystal-rgb), 0.18);
    transition: box-shadow 0.3s ease;
}

.softskill-bloc:hover {
    box-shadow: 0 8px 32px rgba(var(--t-crystal-rgb), 0.15);
}

.softskill-bloc-comm {
    position: relative;
    padding-bottom: 4rem;
}

.softskill-secret-games {
    position: absolute;
    right: 1.2rem;
    bottom: 1rem;
    width: 16px;
    height: 16px;
    opacity: 0.26;
    filter: brightness(0.9);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.softskill-secret-games img {
    width: 100%;
    height: 100%;
    display: block;
}

.softskill-secret-games:hover {
    opacity: 0.42;
    transform: scale(1.12);
}

/* Knight un peu plus grand que les autres secrets */
.softskill-secret-games.hk-secret {
    width: 30px;
    height: 30px;
    transform: translateX(8px);
}

.softskill-secret-games.hk-secret:hover {
    transform: translateX(10px) scale(1.12);
}

.softskill-bloc-header {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 2.2rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid rgba(var(--t-crystal-rgb), 0.25);
}

.softskill-bloc-header i {
    font-size: 2.2rem;
    color: var(--color-light-pink);
}

.softskill-bloc-header h3 {
    font-size: 2rem;
    color: var(--color-white);
    font-weight: 700;
}

/* Grille de cards à l'intérieur de chaque bloc */
.softskill-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.6rem;
}

/* Card individuelle */
.softskill-card {
    position: relative;
    background: var(--color-dark-grey);
    border-radius: 1.2rem;
    padding: 2rem 1.8rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.softskill-card:hover {
    transform: translateY(-5px);
    border-color: rgba(var(--t-crystal-rgb), 0.4);
    box-shadow: 0 6px 24px rgba(var(--t-crystal-rgb), 0.18);
}

.softskill-card-icon {
    font-size: 2rem;
    color: var(--color-light-pink);
    line-height: 1;
}

.softskill-card-icon i {
    font-size: 2rem;
    color: var(--color-light-pink);
}

.softskill-card-body h4 {
    font-size: 1.5rem;
    color: var(--color-light-pink);
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.softskill-card-body p {
    font-size: 1.35rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.78);
    font-family: "Nunito", sans-serif;
}

/* Analyse réflexive */
.softskill-reflexive {
    background: linear-gradient(135deg, #0d1424 0%, #2a1020 100%);
    border: 1.5px solid rgba(var(--t-crystal-rgb), 0.4);
    border-radius: 1.6rem;
    padding: 3rem;
}

.softskill-reflexive-header {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 2rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid rgba(var(--t-crystal-rgb), 0.3);
}

.softskill-reflexive-header i {
    font-size: 2.2rem;
    color: var(--color-light-pink);
}

.softskill-reflexive-header h3 {
    font-size: 2rem;
    color: var(--color-light-pink);
    font-weight: 700;
}

.softskill-reflexive p {
    font-size: 1.5rem;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.85);
    font-family: "Nunito", sans-serif;
    text-align: justify;
}

/* Responsive */
@media (max-width: 1100px) {
    .softskill-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .softskills {
        padding: 3rem 5%;
    }

    .softskill-bloc {
        padding: 2rem 1.8rem;
    }

    .softskill-cards {
        grid-template-columns: 1fr;
    }

    .softskill-bloc-header h3,
    .softskill-reflexive-header h3 {
        font-size: 1.7rem;
    }
}

@media (max-width: 600px) {
    .softskill-reflexive {
        padding: 2rem 1.6rem;
    }
}

/* From Uiverse.io by ilkhoeri */
.home .wrapper {
    position: relative;
    width: 650px;
    height: 480px;
    flex-shrink: 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    pointer-events: none;
}

.home .wrapper .inner {
    --w: 120px;
    --h: 180px;
    --translateZ: calc((var(--w) + var(--h)) + 0px);
    --rotateX: -15deg;
    --perspective: 1000px;
    position: absolute;
    width: var(--w);
    height: var(--h);
    top: 25%;
    left: calc(50% - (var(--w) / 2) - 2.5px);
    z-index: 2;
    transform-style: preserve-3d;
    transform: perspective(var(--perspective));
    animation: rotating 20s linear infinite;
    /* */
}

@keyframes rotating {
    from {
        transform: perspective(var(--perspective)) rotateX(var(--rotateX))
            rotateY(0);
    }

    to {
        transform: perspective(var(--perspective)) rotateX(var(--rotateX))
            rotateY(1turn);
    }
}

.home .wrapper .card {
    position: absolute;
    border: 2px solid rgba(var(--color-card));
    border-radius: 12px;
    overflow: hidden;
    inset: 0;
    transform: rotateY(calc((360deg / var(--quantity)) * var(--index)))
        translateZ(var(--translateZ));
}

.home .wrapper .img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #0000
        radial-gradient(circle,
            rgba(var(--color-card), 0.2) 0%,
            rgba(var(--color-card), 0.6) 80%,
            rgba(var(--color-card), 0.9) 100%);
}

@media (max-width: 900px) {
    .home .wrapper {
        display: none;
    }
}


/* From Uiverse.io by catraco */
.btn-class-name {
    --primary: 255, 90, 120;
    --secondary: 150, 50, 60;
    width: 60px;
    height: 50px;
    border: none;
    outline: none;
    cursor: pointer;
    user-select: none;
    touch-action: manipulation;
    outline: 10px solid rgb(var(--primary), .5);
    border-radius: 100%;
    position: relative;
    transition: .3s;
}

.btn-class-name .back {
    background: rgb(var(--secondary));
    border-radius: 100%;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

.btn-class-name .front {
    background: linear-gradient(0deg, rgba(var(--primary), .6) 20%, rgba(var(--primary)) 50%);
    box-shadow: 0 .5em 1em -0.2em rgba(var(--secondary), .5);
    border-radius: 100%;
    position: absolute;
    border: 1px solid rgb(var(--secondary));
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 600;
    font-family: inherit;
    transform: translateY(-15%);
    transition: .15s;
    color: rgb(var(--secondary));
}

.btn-class-name:active .front {
    transform: translateY(0%);
    box-shadow: 0 0;
}


/* ===================================================
   HOME MARQUEE
   =================================================== */
.home-marquee {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    z-index: 02;
}

.home-marquee img {
    height: 160px;
    display: inline-block;
    transform: translateY(43px); /* ajuste ce chiffre pour que les pieds touchent la ligne */
}

/* Annule le style ".softskill-secret-games" (icône 16px cachée dans un coin)
   pour que Sonic redevienne visible et normal dans le marquee */
.home-marquee .softskill-secret-games {
    position: static;
    width: auto;
    height: auto;
    opacity: 1;
    filter: none;
    right: auto;
    bottom: auto;
    display: inline-block;
}

.home-marquee .softskill-secret-games:hover {
    opacity: 1;
    transform: none;
}

.home-marquee .softskill-secret-games img {
    width: auto;
    height: 160px;
    display: inline-block;
}

/* ===================================================
   LINKEDIN BUTTON — glass / shine hover effect
   =================================================== */
.social-icons a.linkedin,
.social-icons a.github {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(var(--t-deep-rgb), 0.88), rgba(var(--t-bg-rgb), 0.92));
    border: 1px solid rgba(var(--t-crystal-rgb), 0.3);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 14px rgba(5, 10, 25, 0.5);
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out,
        border-color 0.3s ease-out, background 0.3s ease-out;
}

.social-icons a.linkedin::before,
.social-icons a.github::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(var(--t-crystal-rgb), 0.4),
        transparent
    );
    transform: translateX(-100%);
    transition: transform 0.7s ease-out;
    pointer-events: none;
}

.social-icons a.linkedin:hover,
.social-icons a.github:hover {
    transform: scale(1.12) rotate(3deg);
    border-color: rgba(var(--t-crystal-rgb), 0.6);
    box-shadow: 0 8px 26px rgba(var(--t-crystal-rgb), 0.45);
    background: linear-gradient(135deg, rgba(var(--t-mid-rgb), 0.65), rgba(15, 30, 60, 0.92));
    color: #fff;
}

.social-icons a.linkedin:active,
.social-icons a.github:active {
    transform: scale(0.95) rotate(0deg);
}

.social-icons a.linkedin:hover::before,
.social-icons a.github:hover::before {
    transform: translateX(100%);
}

.social-icons a.linkedin i,
.social-icons a.github i {
    position: relative;
    z-index: 1;
    transition: color 0.3s ease-out;
}

/* ===================================================
   BOUTON "PRÉSENTATION" — même design glass / shine
   =================================================== */
.home .btn {
    overflow: hidden;
    background: linear-gradient(135deg, rgba(var(--t-deep-rgb), 0.88), rgba(var(--t-bg-rgb), 0.92));
    border: 1px solid rgba(var(--t-crystal-rgb), 0.3);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: 0 5px 18px rgba(5, 10, 25, 0.5);
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out,
        border-color 0.3s ease-out, background 0.3s ease-out;
}

.home .btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(var(--t-crystal-rgb), 0.4),
        transparent
    );
    transform: translateX(-100%);
    transition: transform 0.7s ease-out;
    pointer-events: none;
}

.home .btn:hover {
    transform: scale(1.06) rotate(1deg);
    border-color: rgba(var(--t-crystal-rgb), 0.6);
    box-shadow: 0 8px 26px rgba(var(--t-crystal-rgb), 0.45);
    background: linear-gradient(135deg, rgba(var(--t-mid-rgb), 0.65), rgba(15, 30, 60, 0.92));
}

.home .btn:active {
    transform: scale(0.97) rotate(0deg);
}

.home .btn:hover::before {
    transform: translateX(100%);
}

.home .btn span,
.home .btn i {
    position: relative;
    z-index: 1;
}