/* RESET */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background-color: #0a001c;
    font-family: 'Satoshi', sans-serif;
    width: 100%;
    overflow-x: hidden;
}

/* LIGHT EFFECT */

body::after {
    content: "";
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 70% 40%, rgba(255, 255, 255, 0.08), transparent 60%);
    pointer-events: none;
    z-index: -1;
}




/* HERO */

.introduction {
    display: grid;
    grid-template-columns: 30% 70%;
    min-height: 100vh;
}

/* LEFT */
.screen {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

.photo {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    transform: translateX(30px);
}

.photo img {
    width: 320px;
    display: block;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* effet holographic */

.photo::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(0deg, transparent, transparent 30%, rgba(106, 156, 165, 0.35));
    transform: rotate(-45deg);
    transition: transform 0.6s ease;
    pointer-events: none;
}

/* hover */

.photo:hover::before {
    transform: rotate(-45deg) translateY(100%);
}


/* RIGHT */

.hero-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 120px 80px;
    color: whitesmoke;
}


.hero-right h2 {
    font-size: 48px;
    line-height: 1.1;
    margin-bottom: 20px;
    color: whitesmoke;
    ;
}

.hero-right p {
    color: whitesmoke;
    ;
}

.hero-right h3 {
    color: whitesmoke;
    ;
}

.wave {
    display: inline-block;
    animation: wave-animation 2s infinite;
    transform-origin: 70% 70%;
}

@keyframes wave-animation {

    0% {
        transform: rotate(0deg);
    }

    10% {
        transform: rotate(14deg);
    }

    20% {
        transform: rotate(-8deg);
    }

    30% {
        transform: rotate(14deg);
    }

    40% {
        transform: rotate(-4deg);
    }

    50% {
        transform: rotate(10deg);
    }

    60% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(0deg);
    }

}

.description {
    max-width: 700px;
    line-height: 1.6;
    margin-bottom: 40px;
}


.projects {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #EDDCC6;
    padding: 30px 80px;
    color: #0F0F12;
}

.title {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #0F0F12;
    font-weight: bold;
    font-size: 48px;
}

/* new container*/
.front-end {
    display: flex;
    flex-direction: row;
    gap: 60px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.project-text {
    text-align: center;
    margin-bottom: 4.5rem;
}

.project-card {
    display: flex;
    flex-direction: column;
    width: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 15px;
    border: 1px solid rgba(43, 105, 251, 0.12);
    justify-content: space-between;
    background: rgb(250, 254, 255);
    box-shadow: rgb(250, 254, 255) 0px 0px 4rem 1rem;

}

.title-content {
    text-align: center;
    margin-bottom: 10px;
    font-size: 22px;
}

.project-content h3::after {
    content: "";
    display: block;
    width: 40px;
    height: 2px;
    background: #4fc4c0;
    margin: 8px auto 0;
}


/* hover effect */

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.project-content {

    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 1rem;
    padding: 0rem 1rem;
    color: rgb(10, 0, 27);

}



.project-info {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.5rem 0;

}

.image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    transition: transform 0.4s ease;

}



.tech-list {
    display: flex;
    gap: 10px;
    padding: 0;
    list-style: none;
}

.info {
    background: #4fc4c0;
    color: #0a001c;
    padding: 7px 20px;
    border-radius: 15px;
    font-size: 14px;
    font-weight: 600;
}

.info:hover {
    background: #4fc4c0;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.project-button {
    display: flex;
    gap: 12px;
    margin-top: 15px;
    margin-bottom: 20px;
}

/* base button */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.25s;
}

/* website button */

.website-btn {
    background: #0a001c;
    color: white;
}

/* github button */

.github-btn {
    background: #4fc4c0;
    color: #0a001c;
}

/* hover effect */

.btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* icon */

.icon {
    width: 16px;
    height: 16px;
}

/*ux project */

.ux-card {
    display: flex;
    flex-direction: column;
    width: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 15px;
    border: 1px solid rgba(43, 105, 251, 0.12);
    justify-content: space-between;
    color: rgb(10, 0, 27);
    background: rgb(250, 254, 255);
    box-shadow: rgb(250, 254, 255) 0px 0px 4rem 1rem;

}

.title-content {
    text-align: center;
    margin-bottom: 10px;
    font-size: 22px;
}

.ux-project h3::after {
    content: "";
    display: block;
    width: 40px;
    height: 2px;
    background: #4fc4c0;
    margin: 8px auto 0;
}


/* hover effect */

.ux-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.ux-design {
    display: flex;
    flex-direction: row;
    gap: 60px;
    justify-content: center;
    flex-wrap: wrap;
}

.ux-project {

    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 1rem;
    padding: 0rem 1rem;
    color: rgb(10, 0, 27);
}

.project-info {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.5rem 0;

}

.image {
    width: 100%;
    height: 180px;
    object-fit: cover;

}

.tech-list {
    display: flex;
    gap: 10px;
    padding: 0px;
    list-style: none;
}

.info {
    background: #4fc4c0;
    color: #0a001c;
    padding: 7px 20px;
    border-radius: 15px;
    font-size: 14px;
    font-weight: 600;
}

.info:hover {
    background: #4fc4c0;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.project-button {
    display: flex;
    gap: 12px;
    margin-top: 15px;
    margin-bottom: 20px;
}

/* base button */

.btn {
    border: 1px solid transparent;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* website button */

.website-btn {
    background: #0a001c;
    color: white;
}

/* github button */

.figma-btn {
    background: #4fc4c0;
    color: #0a001c;
}

/* hover effect */

.btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* icon */

.icon {
    width: 16px;
    height: 16px;
}


/* RESUME SECTION */

.resume {
    background-color: #f5f5f5;

}

.resume-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px;
}

.resume-left {
    max-width: 500px;
}

.resume-right img {
    width: 100%;
    max-width: 420px;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.title-resume {
    color: black;
    font-size: 48px;
}

.resume-left p {
    color: black;
}

.resume-right img {

    width: 100%;
    max-width: 420px;
    border-radius: 15px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.resume-right img:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}




/* contact container*/

.contact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 20px;
}

.left-container {
    max-width: 600px;
}

.title-contact {
    font-size: 50px;
    margin-bottom: 20px;
    color: whitesmoke;
    font-weight: bold;
}

.left-container p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
}

.links a {
    color: #4fc4c0;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
}

.links a:hover {
    text-decoration: underline;
    color: #6fe6e2;
}


.title-contact {
    font-size: 42px;
    margin-bottom: 20px;
    color: whitesmoke;
}


.mail {
    position: relative;
    color: #4fc4c0;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
}

.mail:hover {
    animation: vibrate 0.2s linear infinite;
}

@keyframes vibrate {

    0% {
        transform: translate(0);
    }

    20% {
        transform: translate(-2px, 2px);
    }

    40% {
        transform: translate(2px, -2px);
    }

    60% {
        transform: translate(-2px, -2px);
    }

    80% {
        transform: translate(2px, 2px);
    }

    100% {
        transform: translate(0);
    }

}



.github {
    position: relative;
    color: #4fc4c0;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
}

.github:hover {
    animation: vibrate 0.2s linear infinite;
}

@keyframes vibrate {

    0% {
        transform: translate(0);
    }

    20% {
        transform: translate(-2px, 2px);
    }

    40% {
        transform: translate(2px, -2px);
    }

    60% {
        transform: translate(-2px, -2px);
    }

    80% {
        transform: translate(2px, 2px);
    }

    100% {
        transform: translate(0);
    }

}



.linkedin {
    position: relative;
    color: #4fc4c0;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
}

.linkedin:hover {
    animation: vibrate 0.2s linear infinite;
}

@keyframes vibrate {

    0% {
        transform: translate(0);
    }

    20% {
        transform: translate(-2px, 2px);
    }

    40% {
        transform: translate(2px, -2px);
    }

    60% {
        transform: translate(-2px, -2px);
    }

    80% {
        transform: translate(2px, 2px);
    }

    100% {
        transform: translate(0);
    }

}



.links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.links a {
    color: #4fc4c0;
    text-decoration: none;
    font-weight: 600;
}

.links a:hover {
    text-decoration: underline;
}

.image-contact {
    width: 100%;
    max-width: 420px;
    border-radius: 15px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.image-contact:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}



/* HERO APPEAR ANIMATION */

.screen,
.hero-right {
    opacity: 0;
    transform: translateY(30px);
    animation: heroReveal 0.8s ease forwards;
}

/* délais */

.screen {
    animation-delay: 1.8s;
}

.hero-right {
    animation-delay: 2.2s;
}


/* animation */

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

/* -------- GLOBAL FADE ANIMATION -------- */

.introduction,
.projects,
.ux-design,
.contact,
.resume {
    opacity: 0;
    transform: translateY(40px);
    animation: sectionReveal 0.9s ease forwards;
}


/* delay for each section */

.introduction {
    animation-delay: 1.8s;
}

.projects {
    animation-delay: 2.8s;
}

.ux-design {
    animation-delay: 3.4s;
}

.resume {
    animation-delay: 4.5s;

}

.contact {
    animation-delay: 5s;
}



/* animation */

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



/* MOBILE */

@media (max-width: 768px) {

    .introduction {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .screen {
        height: auto;
        margin-top: 40px;
    }

    .photo {
        transform: none;
    }

    .hero-right {
        padding: 40px 20px;
    }

    .hero-right h2 {
        font-size: 32px;
    }

    .description {
        max-width: 100%;
    }

}