@import url('https://fonts.googleapis.com/css2?family=Geist:ital,wght@0,100..900;1,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

@font-face {
    font-family: 'Borsok';
    font-style: normal;
    font-weight: normal;
    src: local('Borsok'), url('./assets/fonts/boorsok.woff') format('woff');
}

:root {
  --background-color: black;
  --text-color: white;
  --blue-color: #0888de;

  --green-color: #0f4B2D;
  --green-color-light: #317252;
  --green-rgb: 15, 75, 45;
  --light-green-rgb: 49, 114, 82;

  --font-family: Poppins;

  --grey: rgba(20, 20, 25, 1);
  --stars: rgba(255, 255, 255, 1);
}

html, body{
    width: 100%;
    height: 100%;
    margin: 0;
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: var(--background-color);
}

.no-overflow{
  overflow: hidden
}

body{
    display: flex;
    flex-direction: column;
    gap: 20px;
}

main{
    flex: 1;
    padding-inline: 30px;
}

body > header{
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;

  position: fixed;
  z-index: 999;
  width: 100%;
}

body > header nav {
  display: flex;
  flex-direction: row;
  gap: 50px;

  border-radius: 1rem;

  backdrop-filter: blur(25px);
  background-color: color-mix(in oklab, #18181b 90%, transparent);
  padding: 5px 30px;
  border: 1px solid #27272a;
  align-items: center;
}

body > header ul {
  display: flex;
  flex-direction: row;
  gap: 20px;
  padding: 0;
  list-style: none;
  position: relative;
}

body > header a{
  color: var(--green-color-light);
  font-weight: bold;
  text-decoration: none;
}

body > header ul li a{
  color: white;
  text-decoration: none;
  transition: all .5s;
  z-index: 1;
  position: relative;
  padding: 10px;
}

body > header ul li a:hover{
  color: var(--blue-color);
}

body > header ul li a.active{
  background: linear-gradient(
    90deg,
    #a78bfa,
    #8bbefc,
    #34d399,
    #facc15,
    #fb923c,
    #f472b6,
    #a78bfa
  );
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-flow 4s ease infinite;
}

@keyframes gradient-flow {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.bubble {
  position: absolute;
  height: 100%;
  background: var(--green-color);
  border-radius: 8px;
  transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
}

main header{
  margin-top: 150px;
  padding-inline: 10rem;
  display: flex;
  flex-direction: column;
  
  gap: 10px;
  font-family: "Geist";
  scroll-margin-top: 200px;
}

main header h2 {
  font-size: 112px;
  margin: 0;
}

main header div{
  display: flex;
  gap: 10px;
  align-items: center;
  flex-direction: row;
}

main header div img{
  width: 150px;
  border-radius: 50%;
  background: var(--green-color)
}

main header p{
  font-weight: bold;
  font-size: 2rem;
}

main header .actions{
  display: flex;
  gap: 20px;
}

main header .actions a{
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;

  color: white;
  background-color: rgba(255, 255, 255, 0.08);
  transition: all .5s;

  padding: 10px;
  border-radius: 8px;
  text-decoration: none;
  font-family: Poppins;
  font-weight: bold;
}

main header .actions a:hover{
  background-color: rgba(255, 255, 255, 0.16);
}

main header .actions a i{
  color: var(--blue-color);
}

main section{
  margin-bottom: 100px;
  scroll-margin-top: 200px;
}

.gradient{
  background: linear-gradient(to right, var(--green-color-light) 0%, var(--blue-color) 100%);
  background-clip: border-box;
  -webkit-background-clip: text;
  color: transparent;
}


.alternance{
  background: rgba(0, 255, 0, 0.1);
  padding: 10px;
  width: fit-content;
  border-radius: 8px;
  font-size: 1.3rem;
  font-weight: normal;
  text-align: center;
}

.alternance a{
  color: skyblue;
  margin-left: 10px;
}

#formations {
  position: relative;
  padding-left: 4rem;
  margin: 0 0 0 30px;
  color: white;
}

#formations:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: #27293d;
}

#formations .container {
  position: relative;
  margin-bottom: 2.5rem;
}

#formations .container .img {
  position: absolute;
  left: -97px;
  top: -7px;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  text-align: center;
  font-size: 2rem;
  background: #4f537b;
  display: flex;
  align-items: center;
  justify-content: center;
}

#formations .container .img img {
  width: 70%;
  height: 70%;
}

#formations .container .body {
  background: var(--green-color);
  border-radius: 3px;
  padding: 20px 20px 15px;
  box-shadow: 1px 3px 9px rgba(0, 0, 0, 0.1);
}

#formations .container .body:before {
  content: "";
  background: inherit;
  width: 20px;
  height: 20px;
  display: block;
  position: absolute;
  left: -10px;
  transform: rotate(45deg);
  border-radius: 0 0 0 2px;
}

#formations .container .body h4 {
  margin-bottom: 1.4rem;
  margin: 0;
  font-weight: bold;
  font-size: 1.3rem;
}

#formations .container .body a{
    color: skyblue;
    background: rgba(0, 0, 0, 0);
    padding: 3px 10px;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: all .5s;
}

#formations .container .body a:hover{
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid skyblue;
    text-decoration: none;
}

#formations .container .body a i{
    display: none;
}


#formations .container .body a:hover i{
    display: inline-block;
}


#formations .container .body span {
  font-weight: 300; 
  opacity: 0.6;
  margin-top: 16px;
  font-size: .8rem;
}

.marquee{
  position: relative;
  margin-top: 80px;
  margin-bottom: 270px;
  display: flex;
  gap: 20px;
}

.marquee div{
  border-radius: 18px;
  padding: 16px 28px;
  font-size: 1.75rem;
  font-weight: 600;
  display: flex;
  gap: .3rem;
  align-items: center;
  position: absolute;
  
  overflow: hidden; 
  text-overflow: ellipsis;
  white-space: nowrap;
}

.accent-blue{
  color: var(--blue-color);
}


.accent-green{
  background-color: var(--green-color);
  color: white;
  padding: 2px 7px;
  border-radius: 10px;
}

#competences{
  display: flex;
  gap: 10px;
  flex-direction: column;
}

#competences summary{
  background-color: #0A0C10;
  color: white;
  cursor: pointer;
  text-align: left;
  border: none;
  outline: none;
  transition: 0.4s;
  margin: 0;
  
  padding: 12px 16px;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

#competences details {
  padding: 0 18px;
  background-color: #0A0C10;
  color: white;
  border-radius: 16px;
  transition: all 1s;
  border: .5px solid #232933;
}

#competences details[open]{
  padding-bottom: 20px;
}

#competences details div{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

#competences details span{
  border-radius: 9px;
  padding: 8px 14px;
  font-weight: 500;
  display: flex;
  gap: .3rem;
  align-items: center;
  width: fit-content;
  overflow: hidden; 
  text-overflow: ellipsis;
  white-space: nowrap;
}

#competences .projects{
  display: flex;
  gap: 20px;
}

#competences .projects article{
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #0F1216;
  border-radius: 16px;
  border: .5px solid #232933;
  transition: all .5s;
  cursor: pointer;
  min-width: 500px;
  padding: 16px;
  flex: 1;
}

#competences .projects article:hover{
  border: .5px solid var(--blue-color);
}

#competences .projects h5{
  font-size: 1.3rem;
  margin: 0;
  color: var(--blue-color);
}

#competences .projects article p{
  display: flex;
  gap: 5px;
  flex-direction: row;
  flex-wrap: wrap;
  margin: 0;
}

#competences .projects article p span{
  padding: 5px 10px;
  background: var(--green-color);
  color: white;
}

#competences .projects img{
  max-width: 500px;
  height: 100%;
  border-radius: 16px 0 0 16px;
}

dialog {
  border: none;
  border-radius: 12px;
  padding: 0;
  max-width: 860px;
  width: 90%;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(50px);
  color: white;
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

dialog a{
  background: var(--green-color);
  color: white;
  text-decoration: none;
  padding: 10px;
  border-radius: 8px;
  margin-right: 20px;
}

.modal-header {
  border-bottom: 1px solid #eee;
  position: relative;
}

.modal-header img{
  width: 100%;
}

.modal-close {
  background: none;
  position: absolute;
  top: 10px;
  right: 10px;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: black;
  transition: color 0.2s;
  background: white;
  border-radius: 8px;
  padding: 4px 8px;
}


.modal-close:hover {
  color: gray;
}

.modal-content {
  padding: 1.5rem;
}

.modal-content div{
  display: flex;
  gap: 10px;
  margin-bottom: 50px;
}

#contact .content{
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 50px;
}

#contact .content h5, #contact .content h6, #contact .content p{
  margin: 0;
}

#contact .content > div{
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1;
}

#contact .content article{
  display: flex;
  align-items: center;
  gap: 20px;
  gap: 10px;
  background: #0F1216;
  border-radius: 16px;
  border: .5px solid #232933;
  transition: all .5s;
  cursor: pointer;
  min-width: 300px;
  padding: 16px;
  flex: 1;
}

#contact .content article:hover{
  border: .5px solid var(--blue-color);
}

#contact .content article i{
  font-size: 1.7rem;
  color: var(--green-color-light)
}

#contact a{
  text-decoration: none;
  color: white; 
}

#contact .alternance{
  flex-direction: column;
  align-items: start !important;
  justify-content: start;
  text-align: left;
  background: var(--green-color) !important;
}

#contact .alternance p{
  font-size: 1rem;
}

footer{
  text-align: center;
  padding: 10px;
}

footer a{
  color: skyblue;
}