:root {
    --primary: #ff6b2b;
    --secondary: #2a1810;
    --accent: #d35400;
    --text: #e8e8e8;
    --background: #1a1a1a;
    --card-bg: #2d2d2d;
    transition: all 0.5s ease;
}

@font-face {
    font-family: Gismo;
    src: url(Gismo-Trial-Round.ttf);
}


/* /////////////////////////////////////////////
  //////////////// IMAGES SVG  //////////////// 
 ///////////////////////////////////////////// */



.Blender,
.Unity {
    max-width: 250px;
    width: 100%;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
}

.UnityText,
.GodotText {
    text-align: center;
    font-size: clamp(2rem, 5vw, 5em);
    font-family: Gismo;
    color: var(--text);
    margin-bottom: 1rem;
}

.GodotText {
    color: #478cbf;
}

.BlenderText,
.GithubText {
    text-align: center;
    font-size: clamp(2rem, 5vw, 5em);
    font-family: Gismo;
    margin-bottom: 1rem;
}

.BlenderText {
    color: #ea7600;
}

.GithubText {
    color: #3e75c3;
}



/* /////////////////////////////////////////////
  //////////////// HEADER  //////////////////// 
 ///////////////////////////////////////////// */

.header {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(#1a0f0a 0%, rgba(255, 107, 43, 0.7) 100%);
    margin-bottom: -4rem;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    border-bottom: 4px solid #ff5805;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, rgba(26, 26, 26, 0.5) 0%, transparent 100%);
    pointer-events: none;
}

.header::after {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    opacity: 0.1;
    animation: pulse 15s ease-in-out infinite;
}

.header h1 {
    font-size: 4rem;
    margin: 0;
    z-index: 2;
    color: var(--text);
    transition: all 0.3s ease;
    position: relative;
}

.header h1:hover {
    transform: scale(1.1);
}

.header h2 {
    color: var(--accent);
}

.Nelson {
    display: flex;
    justify-content: center;
    font-size: clamp(3rem, 10vw, 7em);
    font-family: Gismo;
    clip-path: polygon(0 0, 100% 0, 100% 83%, 0 84%);
    width: 100%;
    text-align: center;
}

.char {
    transform: translateY(115px);
    transition: transform .5s;
}

.nav-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.15);
    padding: 12px;
    border-radius: 50%;
    cursor: pointer;
    backdrop-filter: blur(5px);
    border: 2px solid var(--text);
    transition: all 0.5s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
}

.nav-toggle.over-header {
    background: rgba(0, 0, 0, 0.8);
    border-color: var(--text);
    color: var(--primary);
    transition: all 0.5s ease;
}

.nav-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
}

.navigation-class {
    width: 24px;
    height: 18px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.navigation-class span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: currentColor;
    transition: all 0.3s ease;
    transform-origin: center;
    position: absolute;
}

.navigation-class span:first-child {
    top: 0;
}

.navigation-class span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.navigation-class span:last-child {
    bottom: 0;
}

.nav-toggle.active .navigation-class span:first-child {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.nav-toggle.active .navigation-class span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .navigation-class span:last-child {
    top: 50%;
    transform: translateY(-50%) rotate(-45deg);
}

.navigation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    z-index: 999;
    border-bottom: 1px solid var(--primary);
}

.navigation.active {
    transform: translateY(0);
}

.nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 1rem;
    list-style: none;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links a:hover::before {
    width: 80%;
}

.nav-links a:hover {
    color: var(--primary);
    transform: translateY(-2px);
}



/* /////////////////////////////////////////////
  //////////////// BODY  //////////////////// 
 ///////////////////////////////////////////// */



html,
body {
    overflow-x: hidden;
}

body {
    font-family: 'DM Sans', sans-serif;
    margin: 0;
    padding: 0;
    background: var(--background);
    color: var(--text);
    line-height: 1.6;
    transition: all 0.5s ease;
}

.profile-container {
    position: relative;
    z-index: 2;
    padding-top: 4rem;
    background: linear-gradient(180deg, transparent 0%, var(--background) 150px);
}

.about-gif {
    display: block;
    max-width: 300px;
    position: relative;
    top: 1.5rem;
}

.about-gif-left {
    margin: 1.5rem 0 0 2rem;
}

.about-gif-right {
    float: right;
    margin-top: -220px; 
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.about-gif-bubble {
    float: left;
    margin-top: 0px; 
    margin-left: 0rem;
    margin-bottom: 1rem;
}

.about-gif-right-boom {
    float: right;
    margin-top: -145px;
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.about-gif-ducky {
    float: left;
    margin-top: -245px;
    margin-left: 20rem;
    margin-bottom: 1rem;
}
 

.about-gif-right + .section {
    margin-top: 0;
}

#about {
    margin: 2rem 0 7rem;
}

.section {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 3rem;
    margin: 7rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 107, 43, 0.1);
    transition: all 0.3s ease;
    backdrop-filter: blur(1px);
    background: rgba(45, 45, 45, 0.8);
}


.sectionRoundL {
    border-top-right-radius: 50em;
    border-bottom-right-radius: 50em;
    border: 1px solid rgba(207, 88, 37, 0.223);
    padding: 2rem;
    margin: 1rem 0;
    background: rgba(45, 45, 45, 0.8);
    width: 50%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.sectionRoundR {
    border-top-left-radius: 50em;
    border-bottom-left-radius: 50em;
    border: 1px solid rgba(207, 88, 37, 0.223);
    padding: 2rem;
    background: rgba(45, 45, 45, 0.8);
    width: 50%;
    margin-left: auto;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.section:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 107, 43, 0.2);
    border-color: rgba(255, 107, 43, 0.3);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.skill-card {
    background: linear-gradient(135deg, #332218, var(--card-bg));
    padding: 2rem;
    border-radius: 15px;
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary);
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 107, 43, 0.1), transparent);
    transform: translateX(-100%);
    transition: 0.5s;
}

.skill-card:hover::before {
    transform: translateX(100%);
}

.project-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255, 107, 43, 0.2);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: scale(1.02);
    border-color: var(--primary);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--card-bg);
    border-radius: 10px;
    border: 1px solid rgba(255, 107, 43, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.contact-item:hover {
    transform: translateX(10px);
    border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(255, 107, 43, 0.2);
}

.contact-item i {
    color: var(--primary);
    font-size: 1.5rem;
}

.contact-item a {
    color: var(--text);
    text-decoration: none;
    font-size: 1.1rem;
}

.contact-item a:hover {
    color: var(--primary);
}

.sound {
    cursor: pointer;
    display: inline-block;
    padding: 10px;
    border-radius: 50%;
    background-color: #ffffff;
    transition: background-color 0.3s;
}

.sound:hover {
    background-color: rgba(172, 251, 156, 0.754);
}

.software-title {
    text-align: center;
    margin-bottom: 8rem;
    font-size: clamp(2rem, 5vw, 4rem);
    color: var(--text);
}

.project-images {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.project-img {
    border: 2px solid #d67d11;
    max-width: 500px;
    height: auto;
}

/* Carousel Styles */
.carousel-container {
    position: relative;
    max-width: 500px;
    margin: 2rem auto;
    border: 2px solid #d67d11;
    border-radius: 10px;
    overflow: hidden;
    background: var(--card-bg);
}

.carousel {
    position: relative;
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-img {
    display: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-img.active {
    display: block;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 107, 43, 0.8);
    color: white;
    border: none;
    padding: 12px 16px;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    border-radius: 5px;
}

.carousel-btn:hover {
    background: var(--primary);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

.carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

/* Example links (Gist / BDD) and Procedure links */
.example-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: flex-start;
    align-items: flex-start;
    margin: 0 0 1.5rem 0;
    width: 100%;
}

/* Each example item (paragraph + button) */
.example-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
    min-width: 220px;
}

/* Keep example items stacked and left-aligned to match original layout */
.example-item {
    width: 100%;
    max-width: 720px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1rem;
    border-radius: 0.6rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--text);
    background: linear-gradient(180deg, rgba(255,107,43,0.12), rgba(255,107,43,0.06));
    border: 1px solid rgba(255,107,43,0.15);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(255,107,43,0.12);
}

.btn.primary {
    background: linear-gradient(180deg, var(--primary), var(--accent));
    color: #111;
    border: 1px solid rgba(0,0,0,0.15);
}

.btn.secondary {
    background: linear-gradient(180deg, rgba(74,133,199,0.15), rgba(74,133,199,0.08));
    color: var(--text);
    border: 1px solid rgba(74,133,199,0.12);
}

.btn i.fa-github, .btn i.fa-file-alt, .btn i.fa-image {
    font-size: 1.05rem;
}

.proc-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.8rem;
    margin-top: 1rem;
}

.proc-link {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,107,43,0.08);
    padding: 0.6rem 0.8rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.proc-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255,107,43,0.08);
    border-color: rgba(255,107,43,0.22);
}

.proc-link a {
    color: var(--text);
    text-decoration: none;
    flex: 1 1 auto;
}

.proc-link small {
    color: rgba(232,232,232,0.7);
    font-size: 0.85rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.dot.active {
    background: var(--primary);
    width: 30px;
    border-radius: 6px;
}

.sound i {
    font-size: 24px;
    transition: transform 0.3s;
    color: rgb(0, 0, 0);
}

.sound i.playing {
    color: rgb(255, 107, 43);
}

@media (max-width: 1024px) {

    .sectionRoundL,
    .sectionRoundR {
        width: 80%;
    }
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 3rem;
    }

    .section {
        padding: 1.5rem;
        margin: 3rem 0;
    }

    .sectionRoundL,
    .sectionRoundR {
        width: 100%;
        border-radius: 20px;
        margin: 1rem 0;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 100%;
        background: rgba(26, 26, 26, 0.98);
        flex-direction: column;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        z-index: 998;
    }

    .navigation.active .nav-links {
        transform: translateX(0);
    }

    /* navbar pc portable */
    .navigation {
        background: transparent;
        backdrop-filter: none;
        border-bottom: none;
        transform: none;
    }

    .navigation.active {
        transform: none;
    }

    /* Ajustement des images */
    .PipeR,
    .PipeL,
    .Shroom {
        display: none;
    }

    .project-img {
        max-width: 100%;
    }

    video.project-img {
        max-width: 100%;
    }

    .carousel-container {
        max-width: 100%;
    }

    .carousel {
        height: 250px;
    }
}

@keyframes navItemFade {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

@keyframes pulse {
    0% {
        transform: scale(1) rotate(0deg);
    }

    50% {
        transform: scale(1.2) rotate(180deg);
    }

    100% {
        transform: scale(1) rotate(360deg);
    }
}


/* /////////////////////////////////////////////
  ////////// BOUTON CV - FROM Universe IO  /////////
 ///////////////////////////////////////////// */

.button {
    --width: 100px;
    --height: 35px;
    --tooltip-height: 35px;
    --tooltip-width: 90px;
    --gap-between-tooltip-to-button: 18px;
    --button-color: #ff7700;
    --tooltip-color: #fff;
    width: var(--width);
    height: var(--height);
    background: var(--button-color);
    position: relative;
    text-align: center;
    border-radius: 0.45em;
    font-family: "Arial";
    transition: background 0.3s;
}

.button::before {
    position: absolute;
    content: attr(data-tooltip);
    width: var(--tooltip-width);
    height: var(--tooltip-height);
    background-color: var(--tooltip-color);
    font-size: 0.9rem;
    color: #111;
    border-radius: .25em;
    line-height: var(--tooltip-height);
    bottom: calc(var(--height) + var(--gap-between-tooltip-to-button) + 10px);
    left: calc(50% - var(--tooltip-width) / 2);
}

.button::after {
    position: absolute;
    content: '';
    width: 0;
    height: 0;
    border: 10px solid transparent;
    border-top-color: var(--tooltip-color);
    left: calc(50% - 10px);
    bottom: calc(100% + var(--gap-between-tooltip-to-button) - 10px);
}

.button::after,
.button::before {
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s;
}

.text {
    display: flex;
    align-items: center;
    justify-content: center;
}

.button-wrapper,
.text,
.icon {
    overflow: hidden;
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    color: #fff;
}

.text {
    top: 0;
}

.text,
.icon {
    transition: top 0.5s;
}

.icon {
    color: #fff;
    top: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon svg {
    width: 24px;
    height: 24px;
}

.button:hover {
    background: #ff5500;
}

.button:hover .text {
    top: -100%;
}

.button:hover .icon {
    top: 0;
}

.button:hover:before,
.button:hover:after {
    opacity: 1;
    visibility: visible;
}

.button:hover:after {
    bottom: calc(var(--height) + var(--gap-between-tooltip-to-button) - 20px);
}

.button:hover:before {
    bottom: calc(var(--height) + var(--gap-between-tooltip-to-button));
}