@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600&display=swap");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  border: none;
  outline: none;
  scroll-behavior: smooth;
  font-family: "Poppins", sans-serif;
}

:root {
  --bg-color: #000000;
  --second-bg-color: #121212;
  --text-color: #fff;
  --main-color: #2eb0f0;
}
html {
  font-size: 62.5%;
  overflow-x: hidden;
}
body {
  background: var(--bg-color);
  font-family: "Poppins", sans-serif;
  color: var(--text-color);
}
html::-webkit-scrollbar {
  width: 0.8rem;
}
html::-webkit-scrollbar-track {
  background: var(--bg-color);
}
html::-webkit-scrollbar-thumb {
  background: var(--main-color);
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 3rem 9%;
  background: rgba(0, 0, 0, 0.7);
  filter: drop-shadow(10px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
}
.logo {
  font-size: 3rem;
  color: var(--main-color);
  font-weight: 800;
  cursor: pointer;
  transition: 0.5s ease;
}
.logo:hover {
  transform: scale(1.1);
}
.navbar a {
  font-size: 1.8rem;
  color: var(--text-color);
  margin-left: 4rem;
  font-weight: 500;
  transition: 0.3s ease;
  border-bottom: 3px solid transparent;
}
.navbar a:hover,
.navbar a.active {
  color: var(--main-color);
  border-bottom: 3px solid var(--main-color);
}
#menu-icon {
  font-size: 3.6rem;
  color: var(--main-color);
  display: none;
}

@media (max-width: 995px) {
  #menu-icon {
    display: block;
    margin-left: auto;
  }
  .logo {
    display: block;
  }
  .navbar {
    position: absolute;
    top: 100%;
    right: 0;
    width: 40%;
    border-left: 3px solid var(--main-color);
    border-bottom: 3px solid var(--main-color);
    border-bottom-left-radius: 2rem;
    padding: 1rem 3%;
    background-color: var(--second-bg-color);
    border-top: 0.1rem solid rgba(0, 0, 0, 0.1);
    display: none;
  }
  .navbar.active {
    display: block;
  }
  .navbar a {
    display: block;
    font-size: 2rem;
    margin: 3rem 0;
  }
  .navbar a:hover,
  .navbar a.active {
    padding: 1rem;
    border-radius: 0.5rem;
  }
}

section {
  min-height: 100vh;
  padding: 5rem 9% 5rem;
}
.home {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8rem;
  background-color: var(--bg-color);
}
.home-img img {
  position: relative;
  width: 22vw;
  border-radius: 50%;
  box-shadow: 0 0 2px var(--main-color), 0 0 10px var(--main-color),
    0 0 50px var(--main-color);
  cursor: pointer;
}
.home-img img:hover {
  box-shadow: 0 0 15px var(--main-color), 0 0 25px var(--main-color),
    0 0 70px var(--main-color);
  transform: scale(1.01);
}

.home .home-content h1 {
  font-size: 6rem;
  font-weight: 700;
  line-height: 1.3;
}
span {
  color: var(--main-color);
}
.home-content h3 {
  font-size: 4rem;
  margin-bottom: 1rem;
  font-weight: 700;
}
.home-content p {
  font-size: 1.7em;
  font-weight: 400;
}

.social-icon a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 4rem;
  height: 4rem;
  background: transparent;
  border: 0.2rem solid var(--main-color);
  font-size: 2rem;
  border-radius: 50%;
  color: var(--main-color);
  margin: 3rem 1.5rem 3rem 0;
  transition: 0.3s ease;
}
.social-icon a:hover {
  color: black;
  transform: scale(1.3) translateY(-5px);
  box-shadow: 0 0 25px var(--main-color);
  background: var(--main-color);
}

.home-button {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.button {
  all: unset;
  display: flex;
  align-items: center;
  position: relative;
  padding: 0.6em 2em;
  border: medium solid var(--main-color);
  border-radius: 25em;
  color: var(--main-color);
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  overflow: hidden;
  transition: border 300ms, color 300ms;
  user-select: none;
}

.button p {
  z-index: 1;
}

.button:hover {
  color: black;
  box-shadow: 0 0 25px var(--main-color);
}
button:active {
  border-color: var(--main-color);
}
.button::after,
.button::before {
  content: "";
  position: absolute;
  width: 12em;
  aspect-ratio: 1;
  background: var(--main-color);
  opacity: 50%;
  border-radius: 50%;
  transition: transform 500ms, background 300ms;
}
.button::before {
  left: 0;
  transform: translateX(-10em);
}
.button::after {
  right: 0;
  transform: translateX(10em);
}

.button:hover::before {
  transform: translateX(-1em);
}
.button:hover::after {
  transform: translateX(1em);
}
.button:active::before,
.button:active::after {
  background: transparent;
}

.button2::after,
.button2::before {
  content: "";
  position: absolute;
  width: 18em;
  aspect-ratio: 1;
  background: var(--main-color);
  opacity: 50%;
  border-radius: 50%;
  transition: transform 500ms, background 300ms;
}

.button2::before {
  left: 0;
  transform: translateX(-16em);
}
.button2::after {
  right: 0;
  transform: translateX(16em);
}

.typing-text {
  font-size: 34px;
  font-weight: 600;
  min-width: 280px;
}
.typing-text span {
  position: relative;
}
.typing-text span::before {
  content: "Software Developer";
  color: var(--main-color);
  animation: words 20s infinite;
}
.typing-text span::after {
  content: "";
  position: absolute;
  background-color: var(--bg-color);
  width: calc(100% + 8px);
  height: 100%;
  border-left: 3px solid var(--bg-color);
  right: -8px;
  animation: cursor 0.6s infinite, typing 20s steps(14) infinite;
}

@keyframes cursor {
  to {
    border-left: 2px solid var(--main-color);
  }
}

@keyframes words {
  0%,
  100% {
    content: "Hacquard Dylan";
  }
}

@keyframes typing {
  10%,
  15%,
  30%,
  35%,
  50%,
  55%,
  70%,
  75%,
  90%,
  95% {
    width: 0;
  }
  5%,
  20%,
  25%,
  40%,
  45%,
  60%,
  65%,
  80%,
  85% {
    width: calc(100% + 8px);
  }
}

@media (max-width: 1000px) {
  .home {
    gap: 2rem;
  }
  @media (max-width: 995px) {
    .home {
      flex-direction: column;
      margin: 0rem 2rem;
    }
    .home .home-content h3 {
      font-size: 2.5rem;
    }
    .home .home-content h1 {
      font-size: 5rem;
    }
    .home .home-img img {
      width: 70vw;
      margin-top: 4rem;
    }
  }
}

/* about */

#aboutme {
  padding: 80px 0;
  color: white;
}

.row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.about_col2 {
  flex-basis: 100%;
  /* border: 1px solid rgba(48, 47, 47, 0.545); */
  background: var(--bg-color);
  /* border-radius: 15px; */
  margin: 10px;
  /* box-shadow: 1px 1px 50px #2eb0f0; */
  transition: 0.4s case;
}

.about_col2 p {
  margin: 20px;
  font-size: 1.7em;
  font-weight: 400;
}

.sub_title {
  font-size: 3rem;
  font-weight: 600;
  margin: 20px;
  color: #2eb0f0;
}

.tab_titles {
  display: flex;
  margin: 20px 0 40px;
  font-size: 1.4rem;
  font-weight: 900;
}

.tab_links {
  margin-right: 50px;
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
  position: relative;
}

.tab_links::after {
  content: "";
  width: 0;
  height: 3px;
  background: #2eb0f0;
  position: absolute;
  left: 0;
  bottom: -10px;
  transition: 0.5s;
}

.tab_links.active-link::after {
  width: 50%;
}

.tab_contents ul li {
  list-style: none;
  margin: 30px;
  font-size: 1.4rem;
}

.tab_contents ul li a {
  margin: 5px;
  font-size: 1.4rem;
  display: inline-block;
  text-decoration: underline;
}

.tab_contents ul li span {
  color: #2eb0f0;
  font-size: 1.8rem;
  font-weight: 900;
}
.tab_contents a {
  text-decoration: none;
  color: #2eb0f0;
  display: flex;
  align-items: center;
  margin: 30px 300px;
}

.arrow {
  font-size: 2rem;
}

.tab_contents a:hover .arrow {
  width: 4em;
}

.tab_contents a .arrow {
  background: #2eb0f0;
  height: 0.1em;
  width: 2.5em;
  margin-right: 1em;
  position: relative;
  transition: all 0.2s;
}

.tab_contents a .arrow::before,
.tab_contents a .arrow::after {
  position: absolute;
  content: "";
  background: #2eb0f0;
  height: 0.1em;
  width: 0.6em;
  top: 0;
  right: 0;
}

.tab_contents a .arrow::before {
  transform: rotate(45deg);
  transform-origin: right bottom;
}

.tab_contents a .arrow::after {
  transform: rotate(-45deg);
  transform-origin: right top;
}

.tab_contents {
  display: none;
}

.tab_contents.active-tab {
  display: block;
}

@media only screen and (max-width: 600px) {
  .sub_title h1 {
    font-size: 1.6rem;
  }
  .about_col2 {
    flex-basis: 100%;
    font-size: 14px;
  }
  .tab_links {
    font-size: 16px;
    margin-right: 20px;
  }
  .about_col2 p {
    font-size: 1.4rem;
    margin: 20px;
  }
}

@media screen and (max-width: 815px) {
  .tab_contents a {
    margin: 30px 80px;
  }
  .about_col2 p {
    width: 100%;
  }
}

/* end about */

/* projects */
.services {
  background: var(--second-bg-color);
}
.heading {
  text-align: center;
  font-size: 5rem;
}
.service-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  gap: 2.5rem;
}

.services .single-service {
  position: relative;
  margin-top: 30px;
  background-color: var(--bg-color);
  border-radius: 10px;
  padding: 40px 30px;
  overflow: hidden;
  box-shadow: 0 0 10px 0 #2eb0f0;
  border: 1px solid var(--main-color);
  transition: 0.3s ease;
}
.services .single-service:hover {
  border: none;
  box-shadow: 0 0 15px 0 #2eb0f0;
}
.services .single-service .content {
  position: relative;
  z-index: 20;
}

.services .single-service .circle-before {
  position: absolute;
  top: 0;
  right: 0px;
  transform: translate(40%, -40%);
  width: 150px;
  height: 150px;
  background-color: var(--main-color);
  border: 6px solid #504f93;
  border-radius: 50%;
  opacity: 0.5;
  z-index: 10;
  transition: all 0.6s;
}
.services .single-service:hover .circle-before {
  width: 100%;
  height: 100%;
  transform: none;
  border: 0;
  border-radius: 0;
  opacity: 1;
}
.services .single-service .icon {
  display: inline-block;
  margin-bottom: 26px;
  height: 70px;
  width: 70px;
  background-color: var(--main-color);
  border-radius: 5px;
  line-height: 70px;
  text-align: center;
  color: #fff;
  font-size: 30px;
  transition: all 0.3s;
}
.services .single-service:hover .icon {
  background-color: var(--second-bg-color);
  color: var(--main-color);
}
.services .single-service .title {
  margin-bottom: 18px;
  font-weight: 700;
  font-size: 23px;
  transition: color 0.3s;
}
.services .single-service:hover .title {
  color: #000000;
}
.services .single-service .description {
  margin-bottom: 20px;
  font-size: 14px;
  transition: color 0.3s;
}
.services .single-service:hover .description {
  color: #000000;
}

.services .single-service a {
  position: relative;
  font-size: 18px;
  color: var(--main-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}
.services .single-service:hover a {
  color: #000000;
}

@media (max-width: 991px) {
  section {
    padding: 10rem 3% 2rem;
  }
  .services {
    padding-bottom: 7rem;
  }
}
@media (max-width: 895px) {
  .services .service-container {
    grid-template-columns: repeat(1, 1fr);
  }
}

/* skills */

.skills {
  background: var(--bg-color);
}
.skills .container {
  background: #2eb0f0;
  color: var(--text-color);
  border-radius: 1rem;
  padding: 2rem;
  width: 70%;
  margin: auto;
  margin-top: 2rem;
}

.skills .container .row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  flex-wrap: wrap;
  gap: 1.8rem;
}
.skills .container .bar {
  margin-bottom: 15px;
  padding: 10px;
  border-radius: 1rem;
  background: var(--second-bg-color);
  transition: 0.3s ease;
  cursor: pointer;
}
.skills .container .bar:hover {
  box-shadow: 0 4px 10px var(--main-color);
  transform: scale(1.03);
}

.skills .container .bar .info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

.skills .container .bar .info img {
  width: 50%;
}
.skills .container .bar .info span {
  font-size: 2rem;
  font-weight: 500;
  margin-left: 0.5rem;
}

@media screen and (max-width: 600px) {
  .skills .container {
    margin: 0;
    padding: 0;
  }
  .skills .container .row {
    grid-template-columns: repeat(2, 1fr);
    margin: 1rem;
    padding: 2rem 0.2rem 2rem 0.2rem;
    gap: 1rem;
  }
  .skills .container {
    margin-top: 5px;
    width: 100%;
  }
}

/* OUTILS */

.outils {
  background-color: #000000;
}

.heading {
  text-align: center;
  font-size: 5rem;
  margin-bottom: 5rem;
}

.category-card {
  background: rgba(46, 176, 240, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 3rem;
  transition: all 0.3s ease;
}
.category-card:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}
.skill2 {
  background: rgba(46, 176, 240, 0.2);
  border-radius: 12px;
  transition: all 0.3s ease;
}
.skill2:hover {
  background: rgba(46, 176, 240, 0.4);
  transform: translateY(-8px);
}

/* Veille-Patrimoine */

:root {
  --tech-blue: #2563eb;
  --tech-teal: #2dd4bf;
  --tech-dark: #0e0e0e;
  --tech-darker: #121212;
  --tech-gray: #1a1a1a;
  --tech-light: #e5e7eb;
}

.tech-container {
  display: flex;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.tech-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--tech-teal),
    transparent
  );
}

.tech-column {
  background-color: var(--tech-gray);
  padding: 25px;
  border-radius: 15px;
  width: 100%;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.tech-column:hover {
  transform: translateY(-5px);
}

.tech-column::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--tech-blue), var(--tech-teal));
}

.tech-column h2 {
  color: var(--tech-teal);
  border-bottom: 2px solid var(--tech-teal);
  padding-bottom: 8px;
  margin-top: 0;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.tech-column h2::before {
  content: "◉";
  font-size: 0.8rem;
  color: var(--tech-blue);
}

.tech-description {
  font-size: 14px;
  color: #aaa;
  margin-bottom: 25px;
  line-height: 1.6;
}

.tech-card {
  background-color: rgba(10, 10, 10, 0.7);
  padding: 15px 20px;
  border-radius: 10px;
  margin-bottom: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-left: 3px solid var(--tech-blue);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.tech-card:hover {
  background-color: rgba(20, 20, 20, 0.9);
  transform: translateX(5px);
}

.tech-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tech-card:hover::before {
  opacity: 1;
}

.tech-card span {
  font-weight: 600;
  color: var(--tech-light);
  display: flex;
  align-items: center;
  gap: 10px;
}

.tech-card span::before {
  content: "▹";
  color: var(--tech-teal);
  font-size: 0.8rem;
}

.tech-tag {
  background-color: var(--tech-blue);
  color: #fff;
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.tech-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

@media (max-width: 768px) {
  .tech-container {
    flex-direction: column;
    padding: 20px;
  }

  .tech-title {
    font-size: 2rem;
  }
}

/* contact */

.contact {
  background: var(--bg-color);
}
.contact .container {
  padding: 2rem;
  width: 90%;
  margin: auto;
  margin-top: 2rem;
  background: var(--second-bg-color);
}
.contact .container .row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  flex-wrap: wrap;
}
.contact-left {
  flex-basis: 35%;
}
.contact-right {
  flex-basis: 60%;
}
.contact .contact-left .sub-title {
  font-size: 4rem;
}
.contact .contact-left p {
  margin-top: 30px;
  font-size: 16px;
}
.contact .contact-left p i {
  color: var(--main-color);
  margin-right: 15px;
  font-size: 25px;
}

.contact .contact-right form {
  width: 100%;
}
form input,
form textarea {
  width: 100%;
  border: 0;
  outline: none;
  background: #000000;
  padding: 15px;
  margin: 15px 0;
  color: #fff;
  font-size: 18px;
  border-radius: 6px;
  resize: none;
}

.btn-cv {
  display: inline-block;
  background: transparent;
  padding: 1rem 2rem;
  color: black;
  border: 2px solid var(--main-color);
  border-radius: 10px;
}
.btn-cv:hover {
  background: var(--main-color);
  border: none;
  box-shadow: 0 0 25px var(--main-color);
}
.contact .button p {
  font-size: 2rem;
  font-weight: 400;
}
.btn-cv a {
  color: var(--main-color);
  font-size: 1.6rem;
  font-weight: 500;
}
.btn-cv:hover a {
  color: #000000;
}

@media screen and (max-width: 600px) {
  .contact .container {
    margin: 0;
    padding: 0;
  }
  .contact .container .row {
    grid-template-columns: repeat(1, 1fr);
    margin: 1rem;
    padding: 2rem 0.2rem 2rem 0.2rem;
    gap: 1rem;
  }
}

/* footer */

.footer {
  position: relative;
  bottom: 0;
  width: 100%;
  padding: 40px 0;
  background: var(--main-color);
}
.footer .social {
  text-align: center;
  padding-bottom: 25px;
  color: #000000;
}
.footer .social a {
  font-size: 25px;
  color: #000000;
  border: 2px solid black;
  width: 42px;
  height: 42px;
  line-height: 42px;
  display: inline-block;
  text-align: center;
  border-radius: 50%;
  margin: 0 10px;
  transition: 0.3s ease;
}
.footer .social a:hover {
  transform: scale(1.2) translateY(-5px);
  background: black;
  color: var(--main-color);
  box-shadow: 0 0 15px black;
}

.footer ul {
  margin-top: 0;
  padding: 0;
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 0;
  text-align: center;
}
.footer ul li a {
  color: #000000;
  border-bottom: 2px solid transparent;
  transition: 0.3s ease;
}
.footer ul li a:hover {
  border-bottom: 2px solid black;
}
.footer ul li {
  display: inline-block;
  padding: 0 15px;
}

.footer .copyright {
  margin-top: 50px;
  text-align: center;
  font-size: 16px;
  color: black;
}

@media (max-width: 1285px) {
  html {
    font-size: 55%;
  }
  .service-container {
    padding-bottom: 7rem;
    grid-template-columns: repeat(1, 1fr);
    margin: 0 5rem;
  }
}
@media (max-width: 991px) {
  .header {
    padding: 2rem 3%;
  }
  section {
    padding: 5rem 3% 2rem;
  }
  .services {
    padding-bottom: 7rem;
  }
  .footer {
    padding: 2rem 3%;
  }
}
