* {
    padding: 0;
    margin: 0;
    text-decoration: none;
    list-style: none;
}

body {
    font-family: 'DM Sans';
    overflow-x: hidden;
    min-height: 100vh;
    width: 100%;
    overflow-y: overlay;
    background: no-repeat linear-gradient(135deg, #4F46E5, #9333EA, #F43F5E, #F97316, #FACC15);
}

/* Scrollbar */
body::-webkit-scrollbar {
  width: 0.8vw;
}

body::-webkit-scrollbar-track {
  background: transparent !important;
}

body::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 0.5vw;
  border: 0.3vw solid transparent;
  background-clip: content-box;
}

body::-webkit-scrollbar-thumb:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

/* Navbar */
.navbar {
    padding-top: 5vw;
    padding-left: 5vw;
}

.nav-links {
    display: flex;
    align-items: center;
    width: 100%;
}

.nav-links ul {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-left: 30%;
    width: 40%;
}

.logoMC {
    min-width: 20%;
    max-width: 20vw;
    max-height: 10vw;
    transition: 0.4s ease;
}

.nav-links a {
    color: #fff;
    font-weight: bold;
    font-size: 1.9vw;
}

/* Titres */
h1 {
    padding-left: 5vw;
    padding-top: 5vw;
    font-size: 9.5vw;
    color: #fff;
}

.home {
    margin-top: 5vw;
}

.name {
    padding-left: 5vw;
    font-size: 8vw;
    color: #fff;
}

.desc {
    color: #fff;
    padding-left: 6vw;
    font-size: 2.4vw;
}

/* Portfolio */
.portfolio {
    margin-top: 10vw;
}

.portfolio h2 {
    color: #fff;
    margin-bottom: 2vw;
    margin-left: 6vw;
    font-size: 4vw; 
}

.container {
    display: flex;
    align-items: center;
    justify-content: space-around;
    width: 100%;
    flex-wrap: wrap;
    gap: 5vw;
}

.container div {
    border: 0.2vw solid #000;
    background-color: #fff;
    height: 40vh;
    width: 40vw;
    border-radius: 1vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: 0.3s ease;
}

/* Cartes */
.first img {
    max-width: 80%;
    max-height: 80%;
}

.first a,
.second a {
    color: #fff;
    text-shadow: 0 0.2vw 0.4vw rgba(0, 0, 0, 0.4);
    padding: 0.5vw 1vw;
    background: linear-gradient(145deg, #3ab0ff, #f34da6);
    border-radius: 0.5vw;
    margin-top: 0.5vw;
    transition: 0.3s ease;
}

.second img {
    max-width: 50%;
    max-height: 50%;
    position: relative;
    top: 15%;
}

.second a {
    position: relative;
    top: 30%;
}

/* Contact */
.contact h2 {
    color: #fff;
    font-size: 4vw; 
    margin-left: 6vw;
    margin-top: 5vw;
}

.mail, .tel, .insta, .x  {
    display: flex;
    align-items: center;
}

.mail img, .tel img, .insta img, .x img{
    max-width: 8%;
    margin-left: 6vw;
    transition: 0.3s ease;
}

.mail h3, .tel h3, .insta h3, .x h3{
    padding-left: 2vw;
    color: #fff;
}

.insta img{
    filter: brightness(0) invert(1);
}

.blank {
    height: 15vw;
}

/* Animations */
.first a:hover,
.second a:hover {
    transform: scale(1.1);
    background: linear-gradient(45deg, #12a0ff, #ff1e96);
}

.homebtn:hover,
.portfoliobtn:hover,
.contactbtn:hover {
    color: #000;
    cursor: pointer;
}

.logoMC:hover {
    transform: scale(1.1);
}

.mailimg:hover {
    transform: scale(1.1);
}

/* Keyframes */
@keyframes shake {
    0% {rotate: 0deg;}
    30% {rotate: 25deg;}
    60% {rotate: -25deg;}
    100% {rotate: 0deg;}
}

.telimg:hover {
    animation-name: shake;
    animation-duration: 0.5s;
}

.first:hover,
.second:hover {
    transform: scale(1.02);
}

.insta img:hover{
    filter: none;
}