body {
    background-color: rgb(14, 30, 49);
    background-image: url("./ressources/images/background.svg");
    background-position: center;
    background-attachment: fixed;
}

header {
    padding: 1%;
}

nav {
    display: flex;
    gap: 10%;
    padding: 1.5% 0;
    justify-content: center;
    border-radius: 25px;
    background-color: rgba(49, 53, 56, 0.5);
}

nav a, #lang-toggle{
    font-size: 150%;
    font-weight: bold;
    color:rgb(107,118,150);
    text-decoration: none;
    transition: ease-in-out;
    transition-duration: 650ms;
}

nav a:hover {
    color:rgb(190, 222, 255);
    transition-duration: 300ms;
}

nav a.active {
    transition-duration: 0ms;
    color: rgb(190, 222, 255);
}

#lang-toggle {
    position: absolute;
    right: 50px;
    font-size: 100%;
    font-weight: bold;
    background: none;
    border: none;
    padding: 4px 8px;
    color: rgb(190, 222, 255);
    cursor: pointer;
    transition-duration: 300ms;
}

#lang-toggle:hover {
    color: white;
}

h1 {
    font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color:rgb(190, 222, 255);
    text-align: center;
    text-decoration: underline;
}

summary {
    font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: bold;   
}

p {
    font-size: larger;
    font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: bold;
    color:rgb(190, 222, 255);
    text-align: center;
}


label {
    font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}


/* PortFolio */

details {
    font-size: 125%;
    color: rgb(190, 222, 255);
    background-color: rgba(190, 222, 255, 0.3);
    border-radius: 20px;
    margin: 0% 3% 5%;
}

details summary {
    justify-content: space-between;
    padding: 1.5% 2.5%;
    list-style: none;
    cursor: pointer;
    display:flex;
}

details summary::after {
    content: "▶";
    font-size: 0.9em;
    transition: transform 0.3s ease;
}
details[open] summary::after {
  transform: rotate(90deg);
}

@media (max-width: 768px) {
  details {
    margin: 0 1% 8%;
  }

  details summary {
    padding: 12px;
    font-size: 1.1rem;
  }
}

details div {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2%;
    padding: 1% 4% 4%;
}

.clickable-img {
    width: 32%;
    height: 100%;
    border-radius: 30px;
    cursor: pointer;
    margin: 2% 0% 0%;
    transition: transform 0.35s;
}

.clickable-img:hover {
    transform: scale(1.07);
}

/* Lightbox overlay */
#image-lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
}

/* Expanded image */
#image-lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
}

/* Close button (X) */
#image-close {
  position: absolute;
  top: 20px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}

.videos {
    height: 100%;
    width: 66%;
    padding: 0% 0% 0%;
    gap: 2%;
}

.clickable-vid {
    width: 49%;
    height: 49%;
    border-radius: 30px;
    cursor: pointer;
    margin: 3% 0% 0%;
    transition: transform 0.35s;
}

.clickable-vid:hover {
    transform: scale(1.07);
}


iframe.clickable-vid {
  aspect-ratio: 16 / 9;
}

@media (max-width: 768px) {
    .clickable-vid {
        width: 100%;
    }
}

.contact-form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-bottom: 5%;
}

.contact-form div {
    padding-top: 10px;;
    padding-bottom: 20px;
}

.contact-info {
    display: flex;
    flex-direction: row;
    gap: 150px;
}

.inputs input {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-form label {
    font-size: 135%;
    font-weight: bold;
    color: rgb(190, 222, 255);
    padding-right: 20px;
}

.contact-form input, textarea {
    height: 40px;
    width: 400px;
    font-size: 90%;
    color: rgba(255, 255, 255, 0.70);
    font-weight: bold;
    border-radius: 10px;
    border-color: rgba(255, 255, 255, 0.2);
    border-style: solid;
    background-color: rgba(74, 83, 110, 0.8);
}

.contact-form input:focus, textarea:focus {
    outline: none;
}

.message {
    display: flex;
    flex-direction: column;
    text-align: center;
    padding-top: 75px;
}

.message label {
    padding-bottom: 10px;
}

.message textarea {
    font-size: 120%;
    width: 800px;
    height: 200px;
    padding-top: 10px;
}

.button {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 50px;
}

.button button {
    height: 40px;
    width: 100px;
    font-size: 90%;
    color: rgba(255, 255, 255, 0.70);
    font-weight: bold;
    border-radius: 15px;
    border-style: unset;
    background-color: rgba(74, 83, 110, 0.8);
    transition-duration: 400ms;
}

.button button:hover {
    font-size: 120%;
    cursor: pointer;
}

.contact {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding-bottom: 0.5%;
    padding-top: 1.5%;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.63);
}

.contact a {
    text-decoration: none;
    padding: 0% 5%;
}

.contact a svg {
    fill: rgb(74, 83, 110);
    width: 3%;;
    transition-duration: 300ms;
}

.contact a svg:hover {
    fill: rgb(190, 222, 255);
}



/* === Responsive enhancements (fixed) === */
.menu-toggle { display: none; align-items:center; justify-content:center; background:none; border:none; color:inherit; cursor:pointer; }

@media (max-width: 768px) {
    nav { position: relative; padding: 10px 14px; gap: 0; justify-content: space-between; }
    .menu-toggle { display: inline-flex; }

    /* collapsed by default */
    nav > a,
    nav > #lang-toggle {
      opacity: 0;
      visibility: hidden;
      max-height: 0;
      overflow: hidden;
      transition: opacity 1s ease, max-height 1s ease;
    }

    /* open state keeps same background, font, radius */
    nav.open {
      flex-direction: column;
      align-items: flex-start;
      border-bottom-left-radius: 16px;
      border-bottom-right-radius: 16px;
      background: rgba(255, 255, 255, 0.05);
      font-family: inherit;
    }
    nav.open > a,
    nav.open > #lang-toggle {
        opacity: 1;
        visibility: visible;
        max-height: 60px;
        padding: 12px 4px;
        text-align: left;
    }

    #lang-toggle { position: static; margin-top: 4px; }

    h1 { font-size: 1.75rem; }
    p  { font-size: 1rem; }

    .three_d div { flex-direction: column; padding: 10px 16px 24px; gap: 12px; }
    .three_d div img { width: 100%; height: auto; }

    .contact-info { flex-direction: column; gap: 12px; }
    .labels, .inputs { width: 275px; height: auto; }
    .inputs input { width: 100%; max-width: 100%; }
    .contact-form input, .contact-form textarea { width: 100%; max-width: 100%; box-sizing: border-box; }
    .message { padding-top: 24px; }
    .message textarea { width: 350px; height: 160px; }
    .button { gap: 16px; }

    .contact a svg { width: 28px; }
    html, body { overflow:auto !important; }
}

/* === Fade + slide animation for mobile nav === */
@media (max-width: 768px) {
    nav {
      max-height: 60px;
      overflow: hidden;
      opacity: 0.95;
      transition: max-height 0.35s ease-in-out, opacity 0.35s ease-in-out;
    }
    nav.open {
      max-height: 500px;
      opacity: 1;
    }
}



/* About Me Page */

.timeline {
  position: relative;
  margin: 40px auto;
  padding-left: 60px;      /* space for the line + dots */
  max-width: 800px;
}

/* the vertical line runs the full height */
.timeline::before {
  content: "";
  position: absolute;
  left: 20px;              /* aligns with dot center */
  top: 0;
  bottom: 0;
  width: 3px;
  background: rgba(255, 255, 255, 0.2);
}

.timeline-item {
  position: relative;
  margin-bottom: 50px;     /* space between items */
}

/* dots are centered on the line */
.timeline-dot {
  position: absolute;
  left: 12px;
  top: 0;
  width: 16px;
  height: 16px;
  background: #9cc9ff;
  border-radius: 50%;
  border: 3px solid #1c2b40;
  z-index: 2;              /* ensure dots sit above the line */
}

.timeline-content {
  background: rgba(255, 255, 255, 0.05);
  padding: 15px 20px;
  border-radius: 12px;
  margin-left: 50px;       /* positions content right of the line */
}

