@import url(https://fonts.googleapis.com/css?family=Poppins:wght@400;500;600;700&display=swap);

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    padding: 50px 0;
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("background.jpg") no-repeat center / cover;
    z-index: -1;
}

/* ========================================
   CONTAINER PRINCIPAL
   ======================================== */
.container-main {
    position: relative;
    background: rgb(255, 255, 255, .1);
    border: 2px solid rgb(255, 255, 255, .2);
    border-radius: 30px;
    backdrop-filter: blur(30px);
    transform: scale(0);
    animation: zoom-in 1s ease forwards;
    margin: 0 auto 30px;
    max-width: 1400px;
    width: 90%;
}

@keyframes zoom-in {
    100% {
        transform: scale(1);
    }
}

/* ========================================
   HEADER PRINCIPAL
   ======================================== */
header {
    position: relative;
    width: 100%;
    padding: 25px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.animated {
    transform: translateY(30px);
    opacity: 0;
    animation: slide-in 1s ease forwards;
    animation-delay: 1s;
}

@keyframes slide-in {
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.logo {
    font-size: 25px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.navbar a {
    font-size: 18px;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    margin-left: 35px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.navbar a:hover {
    border-color: #fff;
}

/* ========================================
   HEADER STICKY
   ======================================== */
.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgb(255, 255, 255, .15);
    border-bottom: 2px solid rgb(255, 255, 255, .2);
    backdrop-filter: blur(30px);
    padding: 15px 0;
    transform: translateY(-100%);
    transition: transform 0.4s ease;
}

.sticky-header.visible {
    transform: translateY(0);
}

.sticky-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    width: 90%;
    margin: 0 auto;
}

.sticky-header .logo {
    font-size: 22px;
}

.sticky-header .navbar a {
    font-size: 16px;
    margin-left: 30px;
}

/* ========================================
   SECTION HOME
   ======================================== */
.home {
    display: flex;
    align-items: center;
    gap: 50px;
    padding: 20px 5% 50px;
    color: #fff;
}

.home-detail h1 {
    font-size: 55px;
    line-height: 1;
}

.home-detail h2 {
    font-size: 32px;
}

.home-detail p {
    margin: 10px 0 20px;
}

.home-detail .social-icons {
    margin-top: 20px;
}

.home-detail .social-icons a {
    display: inline-block;
    padding: 8px;
    border: 2px solid #fff;
    border-radius: 50px;
    font-size: 20px;
    color: #fff;
    text-decoration: none;
    margin: 0 8px;
    transition: .5s;
}

.home-detail .social-icons a:hover {
    background: #fff;
    box-shadow: 0 0 10px #fff;
    color: #333;
}

.home-img .img-box {
    position: relative;
    width: 28vw;
    height: 28vw;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 20px #fff;
    overflow: hidden;
}

.home-img .img-box img {
    position: absolute;
    display: block;
    width: 100%;
    object-fit: cover;
}

/* ========================================
   SECTION SKILLS
   ======================================== */
.skills-container {
    background: rgb(255, 255, 255, .1);
    border: 2px solid rgb(255, 255, 255, .2);
    border-radius: 30px;
    backdrop-filter: blur(30px);
    padding: 50px 40px;
    opacity: 0;
    animation: fade-in 1s ease forwards;
    animation-delay: 1.5s;
    overflow-x: hidden;
    margin: 0 auto 30px;
    max-width: 1400px;
    width: 90%;
    scroll-margin-top: 80px;
}

@keyframes fade-in {
    100% {
        opacity: 1;
    }
}

.skills-title {
    margin-bottom: 50px;
    text-align: center;
}

.skills-title h1 {
    color: #fff;
    font-size: 2.5rem;
    font-weight: 600;
}

.skill-grid {
    display: flex;
    gap: 60px;
    animation: scroll-left 20s linear infinite;
    width: max-content;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.skill-card {
    background: transparent;
    border: none;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 150px;
}

.skill-card:hover {
    transform: scale(1.1);
}

.skill-icon {
    margin-bottom: 15px;
}

.skill-icon img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.skill-card h3 {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
}

/* ========================================
   SECTION EXPERIENCE
   ======================================== */
.experience-container {
    background: rgb(255, 255, 255, .1);
    border: 2px solid rgb(255, 255, 255, .2);
    border-radius: 30px;
    backdrop-filter: blur(30px);
    padding: 50px 40px;
    opacity: 0;
    animation: fade-in 1s ease forwards;
    animation-delay: 1.6s;
    overflow: visible;
    margin: 0 auto 30px;
    max-width: 1400px;
    width: 90%;
    scroll-margin-top: 80px;
}

.experience-title {
    text-align: center;
    margin-bottom: 40px;
}

.experience-title h1 {
    color: #fff;
    font-size: 2.5rem;
    font-weight: 600;
    margin: 0;
}

.experience-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.experience-item {
    background: rgb(255, 255, 255, .2);
    border: 2px solid rgb(255, 255, 255, .4);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.experience-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.experience-position h2 {
    color: #fff;
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.experience-position h3 {
    color: rgba(255, 255, 255, 0.85);
    font-size: 18px;
    font-weight: 500;
    margin: 0;
}

.experience-date {
    display: flex;
    align-items: center;
}

.experience-date span {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    padding: 8px 20px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.experience-description {
    color: #fff;
}

.experience-description p {
    margin-bottom: 10px;
    font-size: 16px;
    line-height: 1.6;
}

.experience-description ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
}

.experience-description ul li {
    color: #fff;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
}

.experience-description ul li:last-child {
    margin-bottom: 0;
}

.experience-description ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    line-height: 1.8;
}

/* ========================================
   SECTION PROJECTS
   ======================================== */
.projects-section {
    background: rgb(255, 255, 255, .1);
    border: 2px solid rgb(255, 255, 255, .2);
    border-radius: 30px;
    backdrop-filter: blur(30px);
    padding: 50px 40px;
    opacity: 0;
    animation: fade-in 1s ease forwards;
    animation-delay: 1.7s;
    overflow: visible;
    margin: 0 auto 30px;
    max-width: 1400px;
    width: 90%;
    scroll-margin-top: 80px;
}

.projects-title {
    text-align: center;
    margin-bottom: 40px;
}

.projects-title h1 {
    color: #fff;
    font-size: 2.5rem;
    font-weight: 600;
    margin: 0;
}

.projects-container {
    overflow: visible;
}

.project {
    background: rgb(255, 255, 255, .2);
    border: 2px solid rgb(255, 255, 255, .4);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    padding: 30px;
    margin-bottom: 20px;
}

.project:last-child {
    margin-bottom: 0;
}

.project .title {
    color: #fff;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
}

.project .description {
    color: #fff;
    font-size: 16px;
    line-height: 1.6;
}

.project .icon {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.project .icon .badge {
    display: inline-block;
    padding: 8px 16px;
    border: 2px solid #fff;
    border-radius: 50px;
    font-size: 14px;
    color: #fff;
    text-decoration: none;
    transition: .5s;
    background: transparent;
}

.project .icon .badge:hover {
    background: #fff;
    box-shadow: 0 0 10px #fff;
    color: #333;
}

.project .github-link {
    display: inline-block;
    padding: 8px 16px;
    border: 2px solid #fff;
    border-radius: 50px;
    font-size: 14px;
    color: #fff;
    text-decoration: none;
    transition: .5s;
    background: transparent;
    margin-top: 15px;
}

.project .github-link:hover {
    background: #fff;
    box-shadow: 0 0 10px #fff;
    color: #333;
}

/* ========================================
   SECTION LINKS
   ======================================== */
.links-section {
    background: rgb(255, 255, 255, .1);
    border: 2px solid rgb(255, 255, 255, .2);
    border-radius: 30px;
    backdrop-filter: blur(30px);
    padding: 40px;
    opacity: 0;
    animation: fade-in 1s ease forwards;
    animation-delay: 1.9s;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto 30px;
    max-width: 1400px;
    width: 90%;
    scroll-margin-top: 80px;
}

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

.links-title h1 {
    color: #fff;
    font-size: 2rem;
    font-weight: 600;
    text-align: center;
    margin: 0;
}

.links {
    display: flex;
    flex-direction: row;
    gap: 60px;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.links a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: 2px solid #fff;
    border-radius: 50px;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 12px 24px;
    opacity: 0;
    transform: translateY(20px);
}

.links a:nth-child(1) {
    animation: fade-in-link 0.6s ease forwards;
    animation-delay: 2.1s;
}

.links a:nth-child(2) {
    animation: fade-in-link 0.6s ease forwards;
    animation-delay: 2.3s;
}

.links a:nth-child(3) {
    animation: fade-in-link 0.6s ease forwards;
    animation-delay: 2.5s;
}

@keyframes fade-in-link {
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.links a:hover {
    background: #fff;
    box-shadow: 0 0 10px #fff;
    color: #333;
}

.links a svg {
    width: 24px;
    height: 24px;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: rgb(255, 255, 255, .1);
    border: 2px solid rgb(255, 255, 255, .2);
    border-radius: 30px;
    backdrop-filter: blur(30px);
    padding: 30px 40px;
    text-align: center;
    margin: 0 auto 30px;
    max-width: 1400px;
    width: 90%;
    opacity: 0;
    animation: fade-in 1s ease forwards;
    animation-delay: 2.1s;
}

.footer p {
    color: #fff;
    font-size: 16px;
    margin: 0;
    font-weight: 400;
}

/* ========================================
   MEDIA QUERIES - TABLETTE
   ======================================== */
@media (max-width: 1024px) {
    body {
        padding: 30px 0;
    }

    .container-main,
    .skills-container,
    .experience-container,
    .projects-section,
    .links-section,
    .footer {
        width: 94%;
    }

    .container-main {
        border-radius: 20px;
    }

    /* Header */
    header {
        padding: 20px 5%;
    }

    .logo {
        font-size: 30px;
    }

    .navbar a {
        font-size: 22px;
        margin-left: 30px;
    }

    /* Sticky Header */
    .sticky-header {
        padding: 18px 0;
    }

    .sticky-content {
        width: 94%;
    }

    .sticky-header .logo {
        font-size: 28px;
    }

    .sticky-header .navbar a {
        font-size: 22px;
        margin-left: 30px;
    }

    /* Home Section */
    .home {
        gap: 30px;
        padding: 20px 5% 40px;
    }

    .home-detail h1 {
        font-size: 40px;
        word-wrap: break-word;
    }

    .home-detail h2 {
        font-size: 28px;
    }

    .home-detail p {
        font-size: 15px;
    }

    .home-detail .social-icons {
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 10px;
        margin-top: 20px;
    }

    .home-detail .social-icons a {
        margin: 0;
        flex: 0 1 auto;
    }

    .home-img .img-box {
        width: 35vw;
        height: 35vw;
    }

    /* Skills Section */
    .skills-container {
        padding: 40px 35px;
        border-radius: 25px;
        scroll-margin-top: 100px;
    }

    .skills-title h1 {
        font-size: 2.2rem;
    }

    .skill-grid {
        gap: 50px;
    }

    .skill-card {
        min-width: 130px;
    }

    .skill-icon img {
        width: 70px;
        height: 70px;
    }

    /* Experience Section */
    .experience-container {
        padding: 40px 35px;
        border-radius: 25px;
        scroll-margin-top: 100px;
    }

    .experience-title h1 {
        font-size: 2.2rem;
    }

    .experience-content {
        gap: 25px;
    }

    .experience-item {
        padding: 25px;
    }

    .experience-position h2 {
        font-size: 22px;
    }

    .experience-position h3 {
        font-size: 17px;
    }

    .experience-date span {
        font-size: 13px;
        padding: 7px 16px;
    }

    .experience-description ul li {
        font-size: 15px;
    }

    .experience-description p {
        font-size: 15px;
        line-height: 1.6;
        color: #ffffff;
    }
}

/* ========================================
   MEDIA QUERIES - MOBILE
   ======================================== */
@media (max-width: 768px) {
    body {
        padding: 20px 0;
    }

    .container-main,
    .skills-container,
    .experience-container,
    .projects-section,
    .links-section,
    .footer {
        width: 94%;
    }

    .container-main {
        border-radius: 15px;
    }

    /* Header */
    header {
        padding: 15px 5%;
        flex-direction: row;
    }

    .logo {
        font-size: 20px;
    }

    .navbar {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 5px;
    }

    .navbar a {
        font-size: 15px;
        margin-left: 8px;
    }

    /* Sticky Header */
    .sticky-header {
        padding: 10px 0;
    }

    .sticky-content {
        width: 94%;
        padding: 0 3%;
    }

    .sticky-header .logo {
        font-size: 18px;
    }

    .sticky-header .navbar {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .sticky-header .navbar a {
        font-size: 14px;
        margin-left: 6px;
        white-space: nowrap;
    }

    /* Home Section */
    .home {
        flex-direction: column;
        gap: 30px;
        padding: 20px 5% 40px;
    }

    .home-detail {
        text-align: center;
        order: 2;
    }

    .home-detail h1 {
        font-size: 32px;
    }

    .home-detail h2 {
        font-size: 22px;
    }

    .home-detail p {
        font-size: 14px;
    }

    .home-detail .social-icons {
        display: flex;
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
        margin-top: 20px;
    }

    .home-detail .social-icons a {
        margin: 0;
        flex: 0 1 auto;
    }

    .home-img {
        order: 1;
    }

    .home-img .img-box {
        width: 60vw;
        height: 60vw;
        max-width: 300px;
        max-height: 300px;
    }

    /* Skills Section */
    .skills-container {
        padding: 35px 20px;
        border-radius: 20px;
    }

    .skills-title {
        margin-bottom: 30px;
    }

    .skills-title h1 {
        font-size: 1.8rem;
    }

    .skill-grid {
        gap: 40px;
        animation: scroll-left 15s linear infinite;
    }

    .skill-card {
        min-width: 110px;
    }

    .skill-icon img {
        width: 60px;
        height: 60px;
    }

    .skill-card h3 {
        font-size: 0.95rem;
    }

    /* Experience Section */
    .experience-container {
        padding: 40px 20px;
        border-radius: 25px;
        scroll-margin-top: 100px;
    }

    .experience-title {
        margin-bottom: 35px;
    }

    .experience-title h1 {
        font-size: 2rem;
    }

    .experience-content {
        gap: 20px;
    }

    .experience-item {
        padding: 25px 20px;
    }

    .experience-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .experience-position h2 {
        font-size: 20px;
    }

    .experience-position h3 {
        font-size: 16px;
    }

    .experience-date {
        width: 100%;
    }

    .experience-date span {
        font-size: 13px;
        padding: 7px 16px;
        display: inline-block;
    }

    .experience-description ul li {
        font-size: 14px;
        padding-left: 22px;
        margin-bottom: 10px;
    }

    .experience-description ul li::before {
        font-size: 18px;
    }

    .experience-description p {
        font-size: 14px;
        line-height: 1.6;
        color: #ffffff;
    }

    /* Projects Section */
    .projects-section {
        padding: 40px 20px;
        border-radius: 25px;
        scroll-margin-top: 100px;
    }

    .projects-title h1 {
        font-size: 2.2rem;
        margin-bottom: 35px;
    }

    .project {
        padding: 25px;
        margin-bottom: 18px;
    }

    .project .title {
        font-size: 22px;
    }

    .project .description {
        font-size: 15px;
    }

    .project .icon .badge,
    .project .github-link {
        font-size: 13px;
        padding: 7px 14px;
    }

    /* Links Section */
    .links-section {
        padding: 35px 20px;
        border-radius: 25px;
        scroll-margin-top: 100px;
    }

    .links-title {
        margin-bottom: 35px;
    }

    .links-title h1 {
        font-size: 1.8rem;
    }

    .links {
        flex-direction: column;
        gap: 15px;
    }

    .links a {
        width: 100%;
        max-width: 350px;
        justify-content: center;
    }

    /* Footer */
    .footer {
        padding: 25px 20px;
        border-radius: 25px;
    }

    .footer p {
        font-size: 14px;
    }
}

/* ========================================
   MEDIA QUERIES - PETIT MOBILE
   ======================================== */
@media (max-width: 480px) {
    body {
        padding: 15px 0;
    }

    .container-main,
    .skills-container,
    .experience-container,
    .projects-section,
    .links-section {
        width: 94%;
    }

    .container-main {
        border-radius: 10px;
    }

    /* Header */
    header {
        padding: 12px 5%;
    }

    .logo {
        font-size: 20px;
    }

    .navbar {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 4px;
    }

    .navbar a {
        font-size: 12px;
        margin-left: 10px;
    }

    /* Sticky Header */
    .sticky-header {
        padding: 15px 0;
    }

    .sticky-content {
        width: 94%;
        padding: 0 3%;
    }

    .sticky-header .logo {
        font-size: 20px;
    }

    .sticky-header .navbar {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .sticky-header .navbar a {
        font-size: 13px;
        margin-left: 10px;
        white-space: nowrap;
    }

    /* Home Section */
    .home {
        padding: 20px 5% 30px;
    }

    .home-detail h1 {
        font-size: 26px;
    }

    .home-detail h2 {
        font-size: 18px;
    }

    .home-detail p {
        font-size: 13px;
    }

    .home-detail .social-icons {
        display: flex;
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 20px;
    }

    .home-detail .social-icons a {
        margin: 0;
        flex: 0 1 auto;
        font-size: 16px;
        padding: 6px;
    }

    .home-img .img-box {
        width: 70vw;
        height: 70vw;
        max-width: 250px;
        max-height: 250px;
    }

    /* Skills Section */
    .skills-container {
        padding: 30px 15px;
        border-radius: 15px;
    }

    .skills-title {
        margin-bottom: 25px;
    }

    .skills-title h1 {
        font-size: 1.5rem;
    }

    .skill-grid {
        gap: 30px;
        animation: scroll-left 12s linear infinite;
    }

    .skill-card {
        min-width: 90px;
        padding: 12px;
    }

    .skill-icon {
        margin-bottom: 10px;
    }

    .skill-icon img {
        width: 50px;
        height: 50px;
    }

    .skill-card h3 {
        font-size: 0.85rem;
    }

    /* Experience Section */
    .experience-container {
        padding: 35px 15px;
        border-radius: 20px;
    }

    .experience-title {
        margin-bottom: 30px;
    }

    .experience-title h1 {
        font-size: 1.6rem;
    }

    .experience-content {
        gap: 18px;
    }

    .experience-item {
        padding: 20px 15px;
        border-radius: 15px;
    }

    .experience-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 15px;
    }

    .experience-position h2 {
        font-size: 18px;
        margin-bottom: 6px;
    }

    .experience-position h3 {
        font-size: 15px;
    }

    .experience-date {
        width: 100%;
    }

    .experience-date span {
        font-size: 12px;
        padding: 6px 14px;
    }

    .experience-description ul li {
        font-size: 13px;
        line-height: 1.6;
        padding-left: 20px;
        margin-bottom: 8px;
    }

    .experience-description ul li::before {
        font-size: 16px;
    }

    .experience-description p {
        font-size: 13px;
        line-height: 1.6;
        color: #ffffff;
    }

    /* Projects Section */
    .projects-section {
        padding: 35px 15px;
        border-radius: 20px;
    }

    .projects-title {
        margin-bottom: 30px;
    }

    .projects-title h1 {
        font-size: 1.8rem;
    }

    .project {
        padding: 20px;
        margin-bottom: 15px;
        border-radius: 15px;
    }

    .project .title {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .project .description {
        font-size: 14px;
        line-height: 1.5;
    }

    .project .icon {
        gap: 8px;
        margin-top: 12px;
    }

    .project .icon .badge,
    .project .github-link {
        font-size: 12px;
        padding: 6px 12px;
    }

    .project .github-link {
        margin-top: 12px;
    }

    /* Links Section */
    .links-section {
        padding: 30px 15px;
        border-radius: 20px;
    }

    .links-title {
        margin-bottom: 30px;
    }

    .links-title h1 {
        font-size: 1.6rem;
    }

    .links {
        gap: 12px;
    }

    .links a {
        font-size: 14px;
        padding: 10px 20px;
    }

    .links a svg {
        width: 20px;
        height: 20px;
    }

    /* Footer */
    .footer {
        padding: 20px 15px;
        border-radius: 20px;
    }

    .footer p {
        font-size: 13px;
    }
}