@import url('https://fonts.googleapis.com/css2?family=Dongle&family=Oswald&family=Raleway&family=The+Nautigal&display=swap');

:root {
    --clr-black: #000000;
    --clr-black-90: rgb(0, 0, 0, .9);
    --clr-quote: rgb(0, 50, 255);
    --clr-primary: rgb(1, 26, 94);
    --clr-primary-40: rgb(0, 50, 255, .5);
    --clr-gray: #ECEFF2;
    --clr-gray-ball: #0D1E2D66;
    --clr-white: #FFFFFF;

    --ff-regular: 'Oswald', sans-serif;
    --ff-serif: 'Raleway', sans-serif;
    --ff-titre: 'The Nautigal', cursive;
    --ff-description: 'Dongle', sans-serif;
}

/* -------- Petit reset -------- */

*,
*::after,
*::before {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  color: #FFFFFF;
  background-color: rgb(20, 20, 20);
}

.main{
  height: 100vh;
}

ul {
  padding: 0;
}

.body{
  font-family: var(--ff-regular);
  text-decoration: none;
  scroll-behavior: smooth;
  height: 100%;
  padding-bottom: 4rem;
}

/* menu */

#menu {  
  align-items: center;
  display: flex;
  height: 100vh;
  width: 100vw;
}

#menu-items {
  margin-left: clamp(4rem, 20vw, 48rem);
  position: relative;
  z-index: 2;
  background-color: transparent;
}

#menu[data-active-index="0"] > #menu-background-pattern {
  background-position: 0% -25%;
}

#menu[data-active-index="1"] > #menu-background-pattern {
  background-position: 0% -50%;
}

#menu[data-active-index="2"] > #menu-background-pattern {
  background-position: 0% -75%;
}

#menu[data-active-index="3"] > #menu-background-pattern {
  background-position: 0% -100%;
}

#menu[data-active-index="0"] > #menu-background-image {
  background-position: center 45%;
}

#menu[data-active-index="1"] > #menu-background-image {
  background-position: center 50%;
}

#menu[data-active-index="2"] > #menu-background-image {
  background-position: center 55%;
}

#menu[data-active-index="3"] > #menu-background-image {
  background-position: center 60%;
}

#menu-background-pattern {
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.1) 9%, 
    transparent 9%
  );
  
  background-position: 0% 0%;
  background-size: 12vmin 12vmin;
  height: 100vh;
  left: 0px;
  position: absolute;
  top: 0px;
  transition: opacity 800ms ease, 
    background-size 800ms ease,
    background-position 800ms ease;
  width: 100vw;
  z-index: 1;
}

#menu-items:hover ~ #menu-background-pattern {
  background-size: 11vmin 11vmin;
  opacity: 0.5;
}

#menu-items:hover ~ #menu-background-image {
  background-size: 100vmax;
  opacity: 0.1;
}

#menu-items:hover > .menu-item {
  opacity: 0.3;
}

#menu-items:hover > .menu-item:hover {
  opacity: 1; 
}

.menu-item {
  color: white;
  cursor: pointer;
  display: block;
  font-size: clamp(3rem, 8vw, 8rem);
  padding: clamp(0.25rem, 0.5vw, 1rem) 0rem;
  text-decoration: none;
  transition: opacity 400ms ease;
  background-color: transparent;
}

/* Présentation */

.box{
  margin: 2rem 10rem 2rem 10rem;
  display: flexbox;
  padding: 3rem 1.5rem;
  border: 0.1rem solid rgba(56, 56, 56, 0.6);
  border-radius: 1rem;
  height: fit-content;
}

.box__title{
  padding-bottom: 1rem;
  font-size: 2rem;
}

.grid{
  display: grid;
}

.grid__under{
  display: grid;
  grid-template-areas: "one""one""one";
  column-gap: 1rem;
}

.grid__img{
  height: 300px;
  grid-row: 1/4;
  border-radius: 10px;
}

.grid__subtitle{
  grid-column: 2;
  font-style: normal;
  font-weight: 500;
  font-size: 24px;
  line-height: 29px;
}

.grid__btn{
  width: 8rem;
  height: 3rem;
  padding-top: 0.6rem;
  text-decoration: none;
  text-align: center;
  background-color: #FFFFFF;
  border-radius: 25px;
  color: #000000;
  cursor: pointer;
  transition: all 500ms ease;
}

.grid__btn:hover{
  background-color: grey;
}

.grid__comp{
  display: grid;
  grid-template-areas: "one two";
}

.grid__comp__item{
  padding-left: 10px;
  border: #FFFFFF 2px solid;
}

.grid__comp__text{
  list-style: inside;
}

.grid__comp__title{
  list-style: none;
}

@media (max-width: 700px)  {
  .box__title{
    font-size: 1.5rem;
  }
  
  .grid__subtitle{
    grid-column: 1;
    text-align: center;
    font-size: 20px;
    padding-top: 0.5rem;
  }

  .grid__under{
    justify-items: center;
  }

  .grid__text{
    text-align: center;
    font-size: 14px;
    padding: 1rem;
    padding-top: 0;
  }

  .grid__comp__text{
    font-size: 14px;
  }
}

/* Projets */

.grid__box{
  display: grid;
  gap: 2rem;
  
}

.grid__proj{
  border: #FFFFFF 2px solid;
  text-align: center;
  
  font-weight: bold;
  font-size: 1.5rem;
  border-radius: 3em;
  gap: 2rem;
  overflow: hidden;
  cursor: pointer;

}

.opened{
  cursor: default;
}

.grid__proj__title{
  padding-top: 0.5rem;
  padding-bottom: 1rem;
  font-size: 1.8rem;
}

.grid__proj__text{
  font-weight: normal;
  font-size: 1rem;
  padding: 1.5rem;
  padding-top: 0.5rem;
  padding-bottom: 0;
}

.grid__proj__stage{
  font-weight: normal;
  font-size: 1.25rem;
  padding: 1.5rem;
  padding-top: 0.5rem;
  padding-bottom: 0;
}

.grid__proj__img{
  cursor: pointer;
  width: 100%;
  padding: 1rem;

}

.grid__contact__img{
  /* height: 70px; */
  width: 100px;
  background: linear-gradient(90deg, white 50%, transparent 50%), linear-gradient(90deg, white 50%, transparent 50%), linear-gradient(0deg, white 50%, transparent 50%), linear-gradient(0deg, white 50%, transparent 50%);
  background-repeat: repeat-x, repeat-x, repeat-y, repeat-y;
  background-size: 15px 4px, 15px 4px, 4px 15px, 4px 15px;
  background-position: 0px 0px, 120px 66px, 0px 70px, 116px 0px;
}

.grid__contact__img:hover{
  animation: border-dance 3s infinite linear;
  cursor: pointer;
}

@media (max-width: 1050px)  {
  .box{
    margin: 2rem 1rem 0 1rem;
  }

  .grid__proj__text{
    font-size: 0.8rem;
  }

  .grid__proj__stage{
    font-size: 1rem;
  }

  .grid__proj__title{
    font-size: 1.3rem;
  }
}


.navbar{
  display: none;
}

@media (min-width: 1050px)  {
  .grid__contact__img:hover{
    animation: border-dance2 3s infinite linear;
    cursor: pointer;
  }

  .grid__contact__img{
    max-height: 100px;
    min-width: 200px;
    aspect-ratio: 1/1;
    background: linear-gradient(90deg, white 50%, transparent 50%), linear-gradient(90deg, white 50%, transparent 50%), linear-gradient(0deg, white 50%, transparent 50%), linear-gradient(0deg, white 50%, transparent 50%);
    background-repeat: repeat-x, repeat-x, repeat-y, repeat-y;
    background-size: 15px 4px, 15px 4px, 4px 15px, 4px 15px;
    background-position: 0px 0px, 150px 96px, 0px 100px, 196px 0px;
    padding: 10px;
  }

  .grid__subtitle{
    font-size: 36px;
  }

  .grid__text{
    font-size: 18px;
  }

  .grid__btn{
    font-weight: bold;
  }

  
  .navbar{
    display: grid;
    position: sticky;
    height: 900px;
    left: 107px;
    float: left;
    gap: 2rem;
    align-content: center;
  }
  
  .navbar__btn{
    border: 0.1rem solid rgba(56, 56, 56, 0.6);
    border-left: none;
    border-radius: 0px 10px 10px 0px;
    padding: 0.5rem;
    font-weight: bold;
    text-decoration: none;
    font-size: 24px;
    writing-mode: vertical-rl;
    text-align: center;
    height: 140px;
    transform: rotate(180deg);
    transition: all 500ms ease;
  }
  
  .actif{
    background-color: #fff;
    color: #000000;
  }
  
  .navbar__btn:hover{
    background: #FFF;
    color: #000000;
  }
}

@media (min-width: 1250px)  {
  .grid__proj__img{
    height: 400px;
    object-fit: scale-down;
  }

  .grid__proj__text{
    padding-left: 5rem;
    padding-right: 5rem;
  }
}


@keyframes border-dance2 {
  0% {
    background-position: 0px 0px, 200px 96px, 0px 100px, 196px 0px;
  }
  100% {
    background-position: 200px 0px, 0px 96px, 0px 0px, 196px 100px;
  }
} 

@keyframes border-dance {
  0% {
    background-position: 0px 0px, 120px 66px, 0px 150px, 116px 0px;
  }
  100% {
    background-position: 120px 0px, 0px 66px, 0px 0px, 116px 150px;
  }
} 

/* footer */

.grid__contact__container{
  padding-top: 2rem;
  display: inline-flex;
  width: 100%;
  justify-content: center;
  height: 25px;
  gap: 2rem;
}

/* nom prénom top gauche */

html, body {
  height: 100%;

}

.name__container {
  z-index: 0;
  position: relative;
  text-align: center;
  top: 50px;

  transform: translateY(-50%);
    margin: 0 auto;
  width: 320px;  
  height: 70px;
}

.shape {
  stroke-dasharray: 140 540;
  stroke-dashoffset: -474;
  stroke-width: 8px;
  fill: transparent;
  stroke: #19f6e8;
  border-bottom: 5px solid black;
  transition: stroke-width 1s, stroke-dashoffset 1s, stroke-dasharray 1s;
}

.text {
  font-size: 22px;
  line-height: 32px;
  color: #fff;
  top: -54px;
  position: relative;
  text-decoration: none;
}

.name__container:hover .shape {
  cursor: pointer;
  stroke-width: 2px;
  stroke-dashoffset: 0;
  stroke-dasharray: 760;
}

:root {
    --bg-dark: #0a0a0a;
    --bg-card: #141414;
    --accent: #00f0ff;
    --accent-glow: rgba(0, 240, 255, 0.2);
    --text: #ffffff;
    --text-muted: #a0a0a0;
    --border: rgba(255, 255, 255, 0.1);
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.logo:hover::after {
    width: 100%;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav a::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav a:hover {
    color: var(--accent);
}

.nav a:hover::before {
    width: 100%;
}

.nav a.active {
    color: var(--accent);
}

/* Menu mobile */
.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu span {
    width: 25px;
    height: 2px;
    background: var(--text);
    transition: all 0.3s ease;
}

/* Container principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 8rem 2rem 4rem;
}

/* Section Hero */
.hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 6rem;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    pointer-events: none;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.1); }
}

.hero-content {
    flex: 1;
    z-index: 1;
}

.hero-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid var(--accent);
    border-radius: 20px;
    color: var(--accent);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    animation: slideInLeft 0.8s ease;
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: slideInLeft 0.8s ease 0.2s both;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 2rem;
    animation: slideInLeft 0.8s ease 0.4s both;
}

.hero-image {
    flex: 0 0 350px;
    position: relative;
    z-index: 1;
    animation: slideInRight 0.8s ease 0.6s both;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

.hero-image img {
    width: 100%;
    border-radius: 20px;
    border: 2px solid var(--border);
    box-shadow: 0 20px 60px rgba(0, 240, 255, 0.1);
    transition: all 0.3s ease;
}

.hero-image:hover img {
    transform: translateY(-10px);
    box-shadow: 0 30px 80px rgba(0, 240, 255, 0.2);
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--accent);
    color: var(--bg-dark);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.cta-button:hover::before {
    width: 300px;
    height: 300px;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.3);
}

/* Section Compétences */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 6rem;
}

.skill-card {
    background: var(--bg-card);
    border: 1px solid #fff;
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(0, 240, 255, 0.1);
}

.skill-card:hover::before {
    transform: scaleX(1);
}

.skill-icon {
    width: 50px;
    height: 50px;
    background: var(--accent-glow);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--accent);
    font-size: 1.5rem;
}

.skill-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

.skill-card ul {
    list-style: none;
}

.skill-card li {
    color: var(--text-muted);
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.skill-card li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* Section Contact */
.contact-section {
    text-align: center;
    padding: 4rem 0;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.social-link {
    width: 100px;
    height: 100px;
    border: 2px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent);
    transform: scale(0);
    transition: transform 0.3s ease;
    border-radius: 50%;
}

.social-link:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
}

.social-link:hover::before {
    transform: scale(1);
}

.social-link img {
    width: 75px;
    height: 75px;
    position: relative;
    z-index: 1;
    transition: filter 0.3s ease;
    background-color: transparent;
}

/* Responsive */
@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .mobile-menu {
        display: flex;
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-image {
        flex: 0 0 auto;
        max-width: 300px;
    }
    
    .container {
        padding: 6rem 1.5rem 2rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
}
