@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap');
*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}
body{
  min-height: 100vh;
  position: relative;
  height: 100vh;
  width: 100%;
  background-image: url("../images/bg.jpg");
  background-size: cover;
  background-position: center;
}
/* Text apare */
.container1{
  width: 300px;
  overflow: hidden;
}
.container1 .text{
  position: relative;
  color: rgb(255, 255, 255);
  font-size: 28px;
  font-weight: 600;
}
.container1 .text.first-text{
  color: #FFF;
}
.container1 a{
  color: white;
  text-decoration: none;
  
}
.text.sec-text:before{
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: #063146;
  border-left: 2px solid #4070F4;
  animation: animate 5s steps(12) infinite;
}
@keyframes animate{
  40%, 60%{left: calc(100% + 4px);}
  100%{left: 0%;}
}
/* ------- */

nav{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  height: 70px;
  background: #063146;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  z-index: 99;
}
nav .navbar{
  height: 100%;
  max-width: 1250px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: auto;
  padding: 0 50px;
}
nav .navbar .nav-links{
  line-height: 70px;
  height: 100%;
}
nav .navbar .links{
  display: flex;
}
nav .navbar .links li{
  position: relative;
  display:flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  padding: 0 14px;
}
nav .navbar .links li a{
  height: 100%;
  text-decoration: none;
  white-space: nowrap;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
}
nav .navbar .links li a:hover{
color:#2980b9;
background-color:#063146;
border-radius: 5px;
padding-left: 10px;
}

.links li:hover .html-arrow,
.links li:hover .css-arrow,
.links li:hover .js-arrow{
  transform: rotate(180deg);
  }

  nav .navbar .nav-links li .sub-menu{
    position: absolute;
    top: 70px;
    left: 0;
    line-height: 35px;
    background: #042331;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    border-radius: 0 0 4px 4px;
    display: none;
    z-index: 2;
    box-sizing: border-box;
    border-bottom: 1px solid black;
    border-top: 1px solid rgba(255,255,255,.1);
    transition: .4s;
    max-height: 250px;
    overflow-y: auto;
  }
  
  /* Personalizarea barei de defilare */
  nav .navbar .nav-links li .sub-menu::-webkit-scrollbar {
    width: 10px;
  }
  
  nav .navbar .nav-links li .sub-menu::-webkit-scrollbar-thumb {
    background-color: #075672; /* Culoarea barei de defilare */
    border-radius: 10px;
  }
  
  nav .navbar .nav-links li .sub-menu::-webkit-scrollbar-track {
    background-color: #eee; /* Culoarea fundalului barei de defilare */
    border-radius: 10px;
  }
  
  nav .navbar .nav-links li .sub-menu li{
    border-bottom: none;
  }

/* sagetile in jos */
nav .navbar .links li .arrow{
  height: 100%;
  width: 22px;
  line-height: 70px;
  text-align: center;
  display: inline-block;
  color: #fff;
  transition: all 0.3s ease;
}

/* sagetile submeniu */
nav .navbar .links li .sub-menu{
  position: absolute;
  top: 70px;
  left: 0;
  line-height: 35px;
  background: #042331;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  border-radius: 0 0 4px 4px;
  display: none;
  z-index: 2;
  box-sizing: border-box;
  border-bottom: 1px solid black;
  border-top: 1px solid rgba(255,255,255,.1);
  transition: .4s;
}

nav .navbar .links li:hover .html-sub-menu,
nav .navbar .links li:hover .css-sub-menu,
nav .navbar .links li:hover .js-sub-menu{
  display: block;
}

.navbar .nav-links .sidebar-logo{
  display: none;
}
.navbar .bx-menu{
  display: none;
}

section .cards {
  display: flex;
  flex-wrap: wrap;
  padding: 0 10px;
  justify-content: space-between;
}

section .cards .card {
  background: #fff;
  padding: 40px 15px;
  list-style: none;
  border-radius: 5px;
  box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.04);
  margin-bottom: 40px;
  width: calc(100% / 3 - 30px);
  text-align: center;
}

.limbaje .cards .card {
  padding: 0 0 20px;
}

.limbaje .card img {
  width: 100%;
  padding-bottom: 10px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 7px;
}

.cards .card p {
  padding: 0 15px;
  margin-top: 5px;
}

section {
  display: flex;
  flex-direction: column-reverse;
  padding: 25px 0;
}
.container {
  width: 98%;
  margin: 0 auto;
}

footer{
  background: #063146;
  padding: 20px 0;
  color: #fff;
  text-align: center;
}
footer span a{
  text-decoration: none;
  color: #fff;
  padding: 7px 20px;
  border-radius: 0.375rem;
  font-size: 15px;
  transition: 0.2s ease;
  display: inline-block;
  border: 1px inset;
}
footer span a:hover{
  color: #ddd;
  background-color: #2980b9;
  border-radius: 10px;
  text-decoration: none;
  justify-content: center;
}

/* continutul din article------- */
.main-content {
  width: 100%;
  margin: 0 auto;
  text-align: center;
  position: relative;
  padding-top: 100px;
}

.main-content h2{
  background-color: #fff;
  padding: 20px;
}
article {
  overflow-x: auto;
  margin-bottom: 30px;
  background-color: #fff;
  padding: 20px;
  width: 100%;
}

article table {
  width: 100%;
  overflow-x: auto;
}
article h3 {
  margin-top: 0;
  font-size: 20px;
}

article p {
  font-size: 20px;
  text-align: left;
  font-family: Arial, Helvetica, sans-serif;
  text-align: justify;
}
article td, article th {
  max-width:10px; 
  overflow-x: auto;
  text-align: left;
}
/* sageata sus */
.scroll-top {
  position: fixed;
  bottom: 2.3rem;
  right: 2.3rem;
}

.scroll-top i {
  background: #063146;
  color: #fff;
  font-size: 22px;
  padding: 12px;
  border-radius: 30px;
}
.scroll-top:hover i{
  background-color: rgb(0, 0, 255);
}

/* Proiecte web */
.card-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  max-width: 1250px;
  margin: 20px auto;
  padding: 20px;
  gap: 20px;
}

.card-list .card-item {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.04);
  list-style: none;
  cursor: pointer;
  text-decoration: none;
  border: 2px solid transparent;
  transition: border 0.5s ease;
}

.card-list .card-item:hover {
  border: 2px solid #000;
}

.card-list .card-item img {
  width: 100%;
  aspect-ratio: 16/12;
  border-radius: 8px;
  object-fit: cover;
}

.card-list span {
  display: inline-block;
  background: #F7DFF5;
  margin-top: 32px;
  padding: 8px 15px;
  font-size: 0.75rem;
  border-radius: 50px;
  font-weight: 600;
}

.card-list .an {
  background-color: #F7DFF5; 
  color: #B22485;
}   

.card-item h3 {
  color: #000;
  font-size: 1.438rem;
  margin-top: 28px;
  font-weight: 600;
}

article table img{
  max-width: 70%;
  display: block;
  margin: 0 auto;
  height: auto;
}

/* Acordeon */
.accordion{
  width: 100%;
  background: #FFF;
  margin: 0 15px;
  padding: 15px;
  border-radius: 8px;
  box-shadow:  0 0 4px rgba(0,0,0,0.2);
}
.accordion .accordion-content{
  margin: 10px 0;
  border-radius: 4px;
  background: #FFF7F0;
  border: 1px solid #FFD6B3;
  overflow: hidden;
}
.accordion-content:nth-child(2){
  background-color: #F0FAFF;
  border-color: #CCEEFF;
}
.accordion-content:nth-child(3){
  background-color: #FFF0F3;
  border-color: #FFCCD6;
}
.accordion-content:nth-child(4){
  background-color: #F0F0FF;
  border-color: #CCCCFF;
}
.accordion-content.open{
  padding-bottom: 10px;
}
.accordion-content header{
  display: flex;
  min-height: 70px;
  padding: 0 15px;
  cursor: pointer;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s linear;
}
.accordion-content.open header{
  min-height: 50px;
}
.accordion-content header .title{
  font-size: 22px;
  font-weight: 500;
  color: #333;
}
.accordion-content header i{
  font-size: 15px;
  color: #333;
}
.accordion-content .description{
  height: 0;
  font-size: 18px;
  color: #333;
  font-weight: 400;
  padding: 0 15px;
  transition: all 0.2s linear;
}

/* --------------------- */
@media (max-width: 1200px) {
  .card-list .card-item {
      padding: 15px;
  }
  article table img{
    max-width: 80%;
    display: block;
    margin: 0 auto;
    height: auto;
  }
  .accordion{
    max-width: 100%;
  }
}

@media screen and (max-width: 980px) {
  article p, h1{
    font-size: 18px;
  }
  .card-list {
      margin: 0 auto;
  }
  .container1{
    margin-left: -20px;
  }
  .container1 .text{
    font-size: 20px;
  }
  article pre, xmp {
    font-size: 14px;
    border: 1px solid;
    background-color: #f4f4f4;
    padding: 10px;
    border-radius: 5px;
    overflow: auto;
    white-space: pre-wrap; 
    word-wrap: break-word;
    
  }
  table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
article table img{
  max-width: 90%;
  display: block;
  margin: 0 auto;
  height: auto;
}
th, td {
    word-break: break-all; 
    white-space: normal; 
    max-width: none; 
    text-align: left; 
    padding: 8px;
}

}
/* -------------------------------- */
@media (max-width:920px) {
  nav .navbar{
    max-width: 100%;
    padding: 0 25px;
  }
  nav .navbar .container1 a{
    font-size: 27px;
  }
  nav .navbar .links li{
    padding: 0 10px;
    white-space: nowrap;
  }
  nav .navbar .links li a{
    font-size: 15px;
  }
  article table img{
    max-width: 95%;
    align-items: center;
  }

}
/* -------------------------- */
@media (max-width:800px){
  .container1{
    margin-right: -100px;
  }
  
  .container1 .text{
    font-size: 28px;
  }
  article h1, p{
    font-size: 17px;
  }
  article ol{
    font-size: 15px;
  }
  .accordion .accordion-content header .title{
    max-width: 100%;
    font-size: 20px;
  }
  .accordion-content .description{
    max-width: 100%;
    font-size: 16px;
  }
  section .cards .card {
    width: calc(100% / 2 - 15px);
    margin-bottom: 30px;
  }
  nav{
    position: fixed;
  }
  .navbar .bx-menu{
    display: block;
  }
  nav .navbar .nav-links{
    position: fixed;
    top: 0;
    left: -100%;
    display: block;
    max-width: 270px;
    width: 100%;
    background:  #063146;
    line-height: 40px;
    padding: 20px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.5s ease;
    z-index: 1000;
  }
  .navbar .nav-links .sidebar-logo{
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .sidebar-logo .logo-name{
    font-size: 25px;
    color: #fff;
  }
    .sidebar-logo  i,
    .navbar .bx-menu{
      font-size: 25px;
      color: #fff;
    }
  nav .navbar .links{
    display: block;
    margin-top: 20px;
  }
  nav .navbar .links li .arrow{
    line-height: 40px;
  }
nav .navbar .links li{
    display: block;
  }
nav .navbar .links li .sub-menu{
  position: relative;
  top: 0;
  box-shadow: none;
  display: none;
  max-height: 200px;
  overflow-y: auto;
  border-radius: 5px; 
}
/* ---------------------- */
nav .navbar .links li .sub-menu::-webkit-scrollbar {
  width: 10px;
}

nav .navbar .links li .sub-menu::-webkit-scrollbar-thumb {
  background-color: #075672; 
  border-radius: 10px;
}

nav .navbar .links li .sub-menu::-webkit-scrollbar-track {
  background-color: #eee; 
  border-radius: 10px;
}

nav .navbar .links li .sub-menu li{
  border-bottom: none;
}
.links li:hover .html-arrow,
.links li:hover .css-arrow,
.links li:hover .js-arrow {
  transform: rotate(0deg);
}
}
/* ----------------- */

@media screen and (max-width: 800px) {

  table {
      width: 100%;
      border-collapse: collapse;
      font-size: 13px;
  }
  table td a{
    font-size: 15px;
}
  th, td {
      word-break: break-all; 
      white-space: normal; 
      max-width: none; 
      text-align: left; 
      padding: 8px;
      
  }
  td img {
    max-width: 90%;
    display: block;
    margin: 0 auto;
    height: auto;
  }

  th {
      background-color: #f2f2f2;
  }

  tr:nth-child(even) {
      background-color: #f2f2f2;
  }

  tr:hover {
      background-color: #ddd;
  }

  th, td:not(:last-child) {
      border-bottom: 1px solid #ddd;
  }
  .accordion .accordion-content header .title{
    max-width: 100%;
    font-size: 18px;
  }
  .accordion-content .description{
    max-width: 100%;
    font-size: 14px;
  }
}

@media (max-width: 600px) {

  article p, h1 {
    font-size: 15px;
  }
  
  article pre, xmp {
    font-size: 12px;
    border: 1px solid;
    background-color: #f4f4f4;
    padding: 10px;
    border-radius: 5px;
    overflow: auto;
    white-space: pre-wrap; 
    word-wrap: break-word;
  }

  table {
      width: 100%;
      border-collapse: collapse;
      font-size: 10px;
  }
  table h2, p{
    font-size: 10px;
  }

  th, td {
      word-break: break-all; 
      white-space: normal; 
      max-width: none; 
      text-align: left; 
      padding: 8px;
      font-size: 10px; 
  }
  

  th {
      background-color: #f2f2f2;
  }

  tr:nth-child(even) {
      background-color: #f2f2f2;
  }

  tr:hover {
      background-color: #ddd;
  }

  th, td:not(:last-child) {
      border-bottom: 1px solid #ddd;
  }
  .container1{
    width: 50%;
    font-size: 20px;
    margin-left: 30px;
  }
  article table img{
    max-width: 100%;
    display: block;
    margin: 0 auto;
    height: auto;
    }
    .accordion .accordion-content header .title{
      max-width: 100%;
      font-size: 16px;
    }
    .accordion-content .description{
      max-width: 100%;
      font-size: 12px;
    }
}
/* ----------------- */
@media (max-width: 560px) {
  section .cards .card {
    width: 100%;
    margin-bottom: 30px;
  } 
  article p, h1{
    font-size: 14px;
  }
  article table a{
    font-size: 10px;
  }
  article pre, xmp {
    font-size: 10px;
    border: 1px solid;
    background-color: #f4f4f4;
    padding: 10px;
    border-radius: 5px;
    overflow: auto;
    white-space: pre-wrap; 
    word-wrap: break-word;
  }
  article table img{
    max-width: 100%;
    display: block;
    margin: 0 auto;
    height: auto;
  }
  .accordion .accordion-content header .title{
    max-width: 100%;
    font-size: 14px;
  }
  .accordion-content .description{
    max-width: 100%;
    font-size: 12px;
  }
	  .container1{
    margin-right: -30px;
   }
   .container1 .text{
     font-size: 20px;
   }
}

/* ----------- */
@media (max-width:370px){
  article p, h1, a{
    font-size: 10px;
  }
  article ol{
    font-size: 15px;
  }
  article pre, xmp {
    margin-left: 0;
    padding-left: 0;
    font-size: 8px;
    border: 1px solid;
    background-color: #f4f4f4;
    padding: 10px;
    border-radius: 5px;
    overflow: auto;
    white-space: pre-wrap; 
    word-wrap: break-word;
  }
  .container1{
   margin-right: 10px;
  }
  .container1 .text{
    font-size: 20px;
  }
  nav .navbar .nav-links{
    max-width: 100%;
    }
   article table img{
    width: 100%;
      height: auto;
    }
    .accordion .accordion-content header .title{
      max-width: 100%;
      font-size: 12px;
    }
    .accordion-content .description{
      max-width: 100%;
      font-size: 10px;
    }
  
}