:root {
  --bg-body: #000000;
  --bg-dark: #0d1117;
  --bg-section: #161b22;
  --bg-card: #21262d;
  --bg-element: #1a1f2b;
  --bg-input: #1f2937;
  --bg-hover: #1a1a1a;
  --bg-footer: #2b3139;

  --text-white: #ffffff;
  --text-light: #f9fafa;
  --text-gray: #d1d5db;
  --text-muted: #9ca3af;

  --primary: #63a3fa;
  --accent: #c084fc;
  --success: #34d399;
  --highlight: #00bfff;

  --border-color: #2b3139;
  --border-light: #3b3b3b;
  --border-input: #4b5563;

  --grad-primary: linear-gradient(120deg, var(--primary), var(--accent));
  --grad-glow: linear-gradient(
    135deg,
    rgba(79, 70, 229, 0.8) 0%,
    rgba(139, 92, 246, 0.7) 50%,
    rgba(219, 39, 119, 0.8) 100%
  );
  --grad-h1: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.8) 0%,
    rgba(147, 51, 234, 0.8) 50%,
    rgba(219, 39, 119, 0.8) 100%
  );

  --radius-std: 10px;
  --radius-card: 20px;
  --radius-pill: 90px;
  --max-width: 59.375rem;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: system-ui, sans-serif, Apple Color Emoji, Segoe UI Emoji,
    Segoe UI Symbol, Noto Color Emoji;
  list-style-type: none;
}

html {
  scroll-behavior: smooth;
}

header {
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-wrap: wrap;
  overflow: hidden;
  align-items: center;
  flex-direction: column;
  position: relative;
  background-color: black;
}

header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url(./img/Bg_Header_mobile.webp);
  background-size: cover;
  background-position: center;
  background-color: rgba(0, 0, 0, 0.5);
  background-blend-mode: multiply;
  z-index: 0;
}

.center {
  text-align: center;
  margin: auto;
  padding: 5rem 0;
  color: var(--text-white);
  z-index: 1;
  position: relative;
}

.h1-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 20px;
}

h1 {
  font-size: clamp(3.5rem, 10vw, 8rem);
  font-weight: 700;
  color: var(--text-white);
  position: relative;
  letter-spacing: -3px;
  z-index: 2;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.h1-wrapper::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 103%;
  height: 110%;
  background: var(--grad-h1);
  filter: blur(62px);
  z-index: 1;
  border-radius: 25px;
}

.flex {
  padding-top: 2.5rem;
}

header h2 {
  font-size: 1.5rem;
  color: var(--primary);
  font-weight: normal;
}

header p {
  padding-top: 1.875rem;
  color: var(--text-muted);
}

header ul {
  display: flex;
  padding: 1.875rem 6.25rem;
  color: var(--text-gray);
  margin-bottom: 0.625rem;
}

header li {
  padding: 0.625rem 3%;
  margin-right: 1.25rem;
  border: 1px solid var(--border-color);
  background-color: var(--bg-element);
  border-radius: var(--radius-pill);
}

header a {
  font-size: 0.875rem;
  text-decoration: none;
  color: var(--text-light);
  padding: 1em 1.5em;
  margin-right: 0.625rem;
  border: 1px solid var(--border-input);
  background-color: #2d333b;
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.view-wrapper {
  position: relative;
  display: inline-block;
  vertical-align: middle;
}

#view {
  background-color: var(--bg-body);
  color: var(--text-white);
  border: 1px solid var(--border-light);
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.button-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  width: 100%;
  height: 100%;
  background: var(--grad-glow);
  filter: blur(16px);
  border-radius: var(--radius-pill);
}

#view:hover {
  background-color: var(--bg-hover);
  transform: translateY(-2px);
  border-color: #6a5acd;
}

.link {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
}

.link > a:hover {
  transform: translateY(-2px);
  border-color: #6a5acd;
}

#animation {
  border: none;
  background: none;
  align-items: center;
  color: var(--text-muted);
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  animation: bounce 1.5s infinite;
  z-index: 1;
}

#arrow {
  font-size: 1.5rem;
}

@keyframes floatAnimation {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(8deg);
  }
}

.floating {
  position: absolute;
  color: white;
  opacity: 0.1;
  z-index: 0;
  animation-name: floatAnimation;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

.floating.js {
  font-size: 3rem;
  top: 20%;
  left: 15%;
  animation-duration: 6s;
}
.floating.html {
  font-size: 4rem;
  top: 70%;
  left: 25%;
  animation-duration: 8s;
  animation-delay: 1s;
}
.floating.css {
  font-size: 3.5rem;
  top: 60%;
  right: 20%;
  animation-duration: 7s;
}
.floating.php {
  font-size: 2.5rem;
  top: 30%;
  right: 10%;
  animation-duration: 5s;
  animation-delay: 2s;
}

section {
  background-color: var(--bg-section);
  color: var(--text-white);
  text-align: center;
}

section h2,
footer h2 {
  padding-top: 5rem;
  font-size: 1.875rem;
}

.cont {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  text-align: left;
  gap: 1em;
}

.container {
  display: flex;
  flex-direction: column;
  background-color: var(--bg-card);
  margin-top: 5rem;
  width: 90%;
  max-width: 28rem;
  border-radius: var(--radius-std);
  transition: scale 0.3s ease;
}

.container:hover {
  scale: 1.02;
}

.container h3 {
  margin-top: 20px;
  margin-left: 15px;
}

.container ul {
  text-align: left;
  margin-top: 20px;
  padding: 0 15px 15px 15px;
}

.container li {
  margin-top: 15px;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  color: var(--text-gray);
}

.bar-background {
  width: 100%;
  height: 8px;
  background-color: var(--bg-element);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.bar-fill {
  height: 100%;
  background-color: var(--primary);
  border-radius: 4px;
  width: 0;
  transition: width 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.bar-level-0.is-visible {
  width: 0;
}
.bar-level-1.is-visible {
  width: 15%;
}
.bar-level-2.is-visible {
  width: 30%;
}
.bar-level-3.is-visible {
  width: 60%;
}
.bar-level-4.is-visible {
  width: 90%;
}

.container.backend .bar-fill {
  background-color: var(--success);
}
.container.ecosystem .bar-fill {
  background-color: var(--accent);
}

.projet,
.moi {
  display: grid;
  gap: 10px;
  justify-content: center;
  align-content: center;
  justify-items: center;
  width: 100%;
  max-width: var(--max-width);
  margin: 5rem auto 0 auto;
  padding-bottom: 5rem;
}

.projet {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
}

article {
  border: 1px solid var(--border-color);
  background-color: var(--bg-card);
  border-radius: var(--radius-card);
  text-align: left;
  padding: 20px;
  width: 100%;
  max-width: 450px;
}

.projet article img {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  background-color: var(--bg-element);
  border-radius: var(--radius-std);
  margin: 10px 0;
}

.projet article p {
  width: 90%;
  color: var(--text-muted);
}

article ul {
  display: flex;
  flex-wrap: wrap;
  margin: 10px 0;
  gap: 10px;
}

.projet article li {
  padding: 10px 3%;
  margin-right: 20px;
  margin-bottom: 15px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-element);
  border-radius: var(--radius-pill);
}

.projet article a {
  display: inline-block;
  font-size: 0.8rem;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  color: var(--text-light);
  background: transparent;
  border: 2px solid var(--highlight);
  box-shadow: 0 0 10px rgba(0, 191, 255, 0.7), 0 0 20px rgba(0, 191, 255, 0.5);
  transition: all 0.3s ease;
}

.projet article a:hover {
  background-color: var(--highlight);
  color: var(--text-white);
  box-shadow: 0 0 15px rgba(0, 191, 255, 1), 0 0 30px rgba(0, 191, 255, 0.7);
  transform: translateY(-2px);
}

#moi {
  background-color: var(--bg-dark);
}

.moi-card-border {
  padding: 2px;
  background: var(--grad-primary);
  border-radius: var(--radius-card);
  box-shadow: 0 0 15px rgba(99, 163, 250, 0.1),
    0 0 25px rgba(192, 132, 252, 0.05);
  display: flex;
}

#moi article {
  padding: 25px;
  border: none;
  border-radius: 18px;
  flex-grow: 1;
}

.moi {
  grid-template-columns: repeat(3, 1fr);
}

.moi ul {
  padding-left: 20px;
}

.moi li {
  list-style-type: disc;
  border: none;
  background-color: var(--bg-card);
  color: var(--text-muted);
  line-height: 1.5;
}

footer {
  background-color: var(--bg-footer);
  text-align: center;
}

.footer-layout {
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  gap: 2em;
  width: 90%;
  max-width: var(--max-width);
  margin: 3rem auto 0 auto;
  text-align: left;
}

.footer-form {
  flex-basis: 50%;
  min-width: 300px;
}

.footer-map {
  flex-basis: 45%;
  min-width: 18.75rem;
  align-self: top;
}

.footer-map iframe {
  border-radius: var(--radius-std);
  width: 100%;
  height: 28.125rem;
}

footer h2,
footer label,
.btn {
  color: var(--text-light);
}

footer p {
  padding: 2em 0;
  color: var(--text-muted);
}

.footer-form form {
  padding-bottom: 5em;
  width: 100%;
}

.footer-form label {
  padding-top: 20px;
  display: block;
}

.footer-form input,
.footer-form textarea {
  display: block;
  margin: 5px 0 1em 0;
  background-color: var(--bg-input);
  color: var(--text-light);
  padding: 1em 1em;
  border-radius: var(--radius-std);
  width: 100%;
  border: 1px solid var(--border-input);
  text-align: left;
}

.footer-form #message {
  height: 8em;
}

.footer-form .btn {
  width: 100%;
  padding: 1em 0;
  background: var(--grad-primary);
  border: none;
  border-radius: var(--radius-std);
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

.footer-form .btn:hover {
  opacity: 0.9;
  transform: translateY(-3px);
  box-shadow: 0 4px 20px rgba(99, 163, 250, 0.3);
}

footer ul {
  display: flex;
  justify-content: center;
  gap: 5em;
  padding-bottom: 2em;
}

footer ul i {
  color: var(--text-light);
  transition: all 0.5s ease;
}

footer ul li a:hover i {
  transform: scale(1.25);
}

@keyframes bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

@media (min-width: 1024px) {
  header::before {
    background-image: url(./img/Bg_Header.webp);
  }
}

@media screen and (max-width: 1180px) {
  #animation {
    display: none;
  }
}

@media screen and (max-width: 955px) {
  .projet,
  .moi {
    width: 90%;
    margin: 0 auto;
  }

  .projet {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .moi {
    grid-template-columns: repeat(2, 1fr);
    align-items: stretch;
  }

  .moi ul {
    padding-left: 0;
  }

  .moi-card-border {
    height: 100%;
    display: flex;
    flex-direction: column;
  }

  #moi article {
    flex: 1;
  }

  .moi-card-border article {
    text-align: center;
  }

  .moi-card-border ul {
    justify-content: center;
  }

  .footer-layout {
    flex-direction: column;
    align-items: center;
  }

  .footer-form,
  .footer-map {
    flex-basis: 100%;
    width: 100%;
    max-width: 500px;
  }

  .footer-form {
    text-align: center;
  }

  .footer-form form {
    padding-bottom: 2em;
    width: 100%;
  }

  .footer-form label {
    text-align: left;
  }

  footer ul {
    padding-top: 2.5em;
  }
}

@media screen and (max-width: 640px) {
  header ul {
    flex-wrap: wrap;
    justify-content: center;
    padding: 1.875rem 1rem;
    gap: 0.625rem;
  }

  .projet {
    margin-top: 2em;
  }

  .moi {
    grid-template-columns: 1fr;
    margin-top: 2em;
  }

  .moi ul {
    padding-left: 0;
  }

  header li {
    margin-right: 0;
  }

  footer input,
  footer .btn {
    width: 80%;
  }

  .footer-map iframe {
    height: 18.75rem;
  }
}

@media screen and (max-width: 325px) {
  .link {
    display: flex;
    flex-direction: column;
  }
}
