@media only screen and (max-width: 768px) and (orientation: portrait) {
  header {
    position: relative;
    top: 0;
    left: 0;
    justify-content: space-between;
    z-index: 9;
  }
  details {
    display: block;
  }
  header .desktop {
    display: none;
  }
  header .button-89 {
    display: none;
  }
  #principală {
    height: 84vh;
  }
  #principală .container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100.4%;
  }

  #principală .container .banner img {
    display: none;
  }
  #principală .container .banner {
    background-image: url(images/banner.jpg);
    background-position: 70% 50%;
    background-size: cover;
  }

  #principală .container-titlu h2 {
    font-size: 26px;
    color: rgb(48, 193, 250);
    text-align: center;
    margin: 0;
  }
  #principală .container-titlu p {
    font-size: 20px;
    font-weight: 200;
    color: white;
  }
  #principală .container-titlu {
    padding-top: 90%;
    opacity: 0;
    animation: slide-up 2.5s ease forwards; /* Modific durata la 2 secunde */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  @keyframes slide-up {
    from {
      transform: translateY(85%);
      opacity: 0;
    }
    to {
      transform: translateY(0);
      opacity: 1;
    }
  }
  #section1a h2 {
    font-size: 20px;
    margin-left: 5% !important;
    margin-top: 7%;
    color: rgb(255, 255, 255) !important;
  }
  #serviciile-noastre {
    height: 2750px;
  }
  #serviciile-noastre .container2 {
    margin-top: 90px;
  }

  #serviciile-noastre .container-titlu1 {
    width: 100%;
    top: 50px;
  }
  #serviciile-noastre .container-titlu1 h2 {
    font-size: 25px;
    margin: 0;
  }
  #serviciile-noastre .box {
    width: 300px;
    height: 600px;
    text-align: center;
    padding: 20px;
    border: 1px solid white;
    border-radius: 5px;
    margin: 10px;
    opacity: 0;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(31, 30, 30, 0.3);
    color: white;
  }

  @keyframes appear {
    from {
      opacity: 0;
      transform: translateY(-200px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  #section3a .container-titlu2 h2 {
    color: #fff;
    font-size: 30px;
    font-weight: 600;
    margin: 15px 0;
  }

  #realizările-noastre .titlu {
    flex: 1;
    padding: 20px;
    z-index: 1;
    width: 100%;
    height: 20%;
  }
  #realizările-noastre .titlu h2 {
    font-size: 20px;
  }
  #realizările-noastre .lista {
    font-size: 15px;
  }

  /* animare carousel SCROLL spre stinga---------------------------------------- */
  @keyframes scroll {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(-100%);
    }
  }

  #realizările-noastre .carousel {
    position: absolute;
    top: 76%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 95%;
    height: 45vh;

    overflow-x: auto;
    white-space: nowrap;
  }

  #realizările-noastre .image-container {
    width: 100%;
    height: 43vh;
    margin-bottom: 0;
    margin-top: 0;
    margin-right: 10px;
    display: inline-block;

    animation: scroll 20s linear infinite;
  }
  #realizările-noastre .image-container:last-child {
    margin-right: 0;
  }
  /* videobacground */
  #realizările-noastre .video-background2 {
    position: absolute;
    top: 0%;
    left: 0;
    width: 100%;
    height: 50%;
    overflow: hidden;
  }
  #realizările-noastre .overlay2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background-color: rgba(0, 0, 0, 0.377);
  }

  #section4 .titlu {
    flex: 1;
    padding: 20px;
    z-index: 2;
    width: 100%;
    height: 20%;
  }
  #section4 .titlu h2 {
    font-size: 20px;
  }
  #section4 .lista {
    font-size: 15px;
  }

  #section4 .carousel {
    position: absolute;
    top: 76%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 95%;
    height: 45vh;

    overflow-x: auto;
    white-space: nowrap;
  }
  #section4 .image-container {
    width: 100%;
    height: 43vh;
    margin-bottom: 0;
    margin-top: 0;
    margin-right: 10px;
    display: inline-block;

    animation: scroll 20s linear infinite;
  }
  #section4 .image-container:last-child {
    margin-right: 0;
  }
  /* videobacground */
  #section4 .video-background2 {
    position: absolute;
    top: 0%;
    left: 0;
    width: 100%;
    height: 50%;
    overflow: hidden;
  }
  #section4 .overlay2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background-color: rgba(0, 0, 0, 0.377);
  }

  #section5 .titlu {
    flex: 1;
    padding: 20px;
    z-index: 2;
    width: 100%;
    height: 20%;
  }
  #section5 .titlu h2 {
    font-size: 20px;
  }
  #section5 .lista {
    font-size: 15px;
  }

  #section5 .carousel {
    position: absolute;
    top: 76%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 95%;
    height: 45vh;

    overflow-x: auto;
    white-space: nowrap;
  }
  #section5 .image-container {
    width: 100%;
    height: 43vh;
    margin-bottom: 0;
    margin-top: 0;
    margin-right: 10px;
    display: inline-block;

    animation: scroll 20s linear infinite;
  }
  #section5 .image-container:last-child {
    margin-right: 0;
  }
  /* videobacground */
  #section5 .video-background2 {
    position: absolute;
    top: 0%;
    left: 0;
    width: 100%;
    height: 50%;
    overflow: hidden;
  }
  #section5 .overlay2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background-color: rgba(0, 0, 0, 0.377);
  }

  #section6 .titlu {
    flex: 1;
    padding: 20px;
    z-index: 2;
    width: 100%;
    height: 20%;
  }
  #section6 .titlu h2 {
    font-size: 20px;
  }
  #section6 .lista {
    font-size: 15px;
  }

  #section6 .carousel {
    position: absolute;
    top: 76%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 95%;
    height: 45vh;

    overflow-x: auto;
    white-space: nowrap;
  }
  #section6 .image-container {
    width: 100%;
    height: 43vh;
    margin-bottom: 0;
    margin-top: 0;
    margin-right: 10px;
    display: inline-block;

    animation: scroll 20s linear infinite;
  }
  #section6 .image-container:last-child {
    margin-right: 0;
  }
  /* videobacground */
  #section6 .video-background2 {
    position: absolute;
    top: 0%;
    left: 0;
    width: 100%;
    height: 50%;
    overflow: hidden;
  }
  #section6 .overlay2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background-color: rgba(0, 0, 0, 0.377);
  }

  #section7 .titlu {
    flex: 1;
    padding: 20px;
    z-index: 2;
    width: 100%;
    height: 20%;
  }
  #section7 .titlu h2 {
    font-size: 20px;
  }
  #section7 .lista {
    font-size: 15px;
  }

  #section7 .carousel {
    position: absolute;
    top: 76%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 95%;
    height: 45vh;

    overflow-x: auto;
    white-space: nowrap;
  }
  #section7 .image-container {
    width: 100%;
    height: 43vh;
    margin-bottom: 0;
    margin-top: 0;
    margin-right: 10px;
    display: inline-block;

    animation: scroll 20s linear infinite;
  }
  #section7 .image-container:last-child {
    margin-right: 0;
  }
  /* videobacground */
  #section7 .video-background2 {
    position: absolute;
    top: 0%;
    left: 0;
    width: 100%;
    height: 50%;
    overflow: hidden;
  }
  #section7 .overlay2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background-color: rgba(0, 0, 0, 0.377);
  }

  #contacte .info-item {
    font-size: 18px;
  }
  #contacte .info-item span {
    font-size: 18px;
    width: 100%;
    text-wrap: wrap;
  }

  footer.logo img {
    width: 180px;
  }
}
@media only screen and (max-width: 900px) and (orientation: landscape) {
  .logo img {
    height: 100px;
  }
  nav ul li {
    display: inline;
    margin-right: 10px;

    /* border: 1px solid red; */
    font-size: 12px;
  }

  #principală .container-titlu h2 {
    font-size: 50px;
    color: rgb(48, 193, 250);
    text-align: center;
    margin: 0;
  }
  #principală .container-titlu p {
    font-size: 35px;
    font-weight: 200;
    color: white;
  }

  #serviciile-noastre {
    height: 1450px;
  }
  #serviciile-noastre .container2 {
    margin-top: 100px;
  }
  #serviciile-noastre .container-titlu1 {
    width: 100%;
    top: 50px;
  }
  #section1a h2 {
    font-size: 22px;
    margin-left: 5% !important;
    margin-top: 5%;
    color: rgb(255, 255, 255) !important;
  }

  #realizările-noastre .titlu {
    flex: 1;
    padding: 20px;
    z-index: 1;
    width: 100%;
    height: 20%;
  }
  #realizările-noastre .titlu h2 {
    font-size: 20px;
  }
  #realizările-noastre .lista {
    font-size: 15px;
  }
  #section4 .titlu {
    flex: 1;
    padding: 20px;
    z-index: 2;
    width: 100%;
    height: 20%;
  }
  #section4 .titlu h2 {
    font-size: 20px;
  }
  #section4 .lista {
    font-size: 15px;
  }
  #section5 .titlu {
    flex: 1;
    padding: 20px;
    z-index: 2;
    width: 100%;
    height: 20%;
  }
  #section5 .titlu h2 {
    font-size: 20px;
  }
  #section5 .lista {
    font-size: 15px;
  }
  #section6 .titlu {
    flex: 1;
    padding: 20px;
    z-index: 2;
    width: 100%;
    height: 20%;
  }
  #section6 .titlu h2 {
    font-size: 20px;
  }
  #section6 .lista {
    font-size: 15px;
  }
  #section7 .titlu {
    flex: 1;
    padding: 20px;
    z-index: 2;
    width: 100%;
    height: 20%;
  }
  #section7 .titlu h2 {
    font-size: 20px;
  }
  #section7 .lista {
    font-size: 15px;
  }
  #contacte {
    height: 400px;
  }
  /* #contacte .contact-title {
    top: 45px;
  } */
}
@media only screen and (min-width: 632px) and (max-width: 1280px) and (orientation: portrait) {
  .logo img {
    height: 100px;
  }
  nav ul li {
    display: inline;
    margin-right: 10px;

    /* border: 1px solid red; */
    font-size: 12px;
  }
  #principală .container-titlu {
    padding-top: 80%;
  }

  #principală .container-titlu h2 {
    font-size: 50px;
    color: rgb(48, 193, 250);
    text-align: center;
    margin: 0;
  }
  #principală .container-titlu p {
    font-size: 35px;
    font-weight: 200;
    color: white;
  }

  #serviciile-noastre {
    height: 1450px;
  }
  #serviciile-noastre .container2 {
    margin-top: 90px;
  }

  #serviciile-noastre .container-titlu1 {
    width: 100%;
    top: 50px;
  }
  #serviciile-noastre .container-titlu1 h2 {
    font-size: 25px;
    margin: 0;
  }
  #serviciile-noastre .box {
    width: 300px;
    height: 600px;
    text-align: center;
    padding: 20px;
    border: 1px solid white;
    border-radius: 5px;
    margin: 10px;
    opacity: 0;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(31, 30, 30, 0.3);
    color: white;
  }

  @keyframes appear {
    from {
      opacity: 0;
      transform: translateY(-200px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  #section3a .container-titlu2 h2 {
    color: #fff;
    font-size: 30px;
    font-weight: 600;
    margin: 15px 0;
  }

  #realizările-noastre .titlu {
    flex: 1;
    padding: 20px;
    z-index: 1;
    width: 100%;
    height: 20%;
  }
  #realizările-noastre .titlu h2 {
    font-size: 36px;
  }
  #realizările-noastre .lista {
    font-size: 29px;
  }

  /* animare carousel SCROLL spre stinga---------------------------------------- */
  @keyframes scroll {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(-100%);
    }
  }

  #realizările-noastre .carousel {
    position: absolute;
    top: 76%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 95%;
    height: 45vh;

    overflow-x: auto;
    white-space: nowrap;
  }

  #realizările-noastre .image-container {
    width: 100%;
    height: 43vh;
    margin-bottom: 0;
    margin-top: 0;
    margin-right: 10px;
    display: inline-block;

    animation: scroll 20s linear infinite;
  }
  #realizările-noastre .image-container:last-child {
    margin-right: 0;
  }
  /* videobacground */
  #realizările-noastre .video-background2 {
    position: absolute;
    top: 0%;
    left: 0;
    width: 100%;
    height: 50%;
    overflow: hidden;
  }
  #realizările-noastre .overlay2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background-color: rgba(0, 0, 0, 0.377);
  }

  #section4 .titlu {
    flex: 1;
    padding: 20px;
    z-index: 2;
    width: 100%;
    height: 20%;
  }
  #section4 .titlu h2 {
    font-size: 36px;
  }
  #section4 .lista {
    font-size: 29px;
  }

  #section4 .carousel {
    position: absolute;
    top: 76%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 95%;
    height: 45vh;

    overflow-x: auto;
    white-space: nowrap;
  }
  #section4 .image-container {
    width: 100%;
    height: 43vh;
    margin-bottom: 0;
    margin-top: 0;
    margin-right: 10px;
    display: inline-block;

    animation: scroll 20s linear infinite;
  }
  #section4 .image-container:last-child {
    margin-right: 0;
  }
  /* videobacground */
  #section4 .video-background2 {
    position: absolute;
    top: 0%;
    left: 0;
    width: 100%;
    height: 50%;
    overflow: hidden;
  }
  #section4 .overlay2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background-color: rgba(0, 0, 0, 0.377);
  }

  #section5 .titlu {
    flex: 1;
    padding: 20px;
    z-index: 2;
    width: 100%;
    height: 20%;
  }
  #section5 .titlu h2 {
    font-size: 36px;
  }
  #section5 .lista {
    font-size: 29px;
  }

  #section5 .carousel {
    position: absolute;
    top: 76%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 95%;
    height: 45vh;

    overflow-x: auto;
    white-space: nowrap;
  }
  #section5 .image-container {
    width: 100%;
    height: 43vh;
    margin-bottom: 0;
    margin-top: 0;
    margin-right: 10px;
    display: inline-block;

    animation: scroll 20s linear infinite;
  }
  #section5 .image-container:last-child {
    margin-right: 0;
  }
  /* videobacground */
  #section5 .video-background2 {
    position: absolute;
    top: 0%;
    left: 0;
    width: 100%;
    height: 50%;
    overflow: hidden;
  }
  #section5 .overlay2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background-color: rgba(0, 0, 0, 0.377);
  }

  #section6 .titlu {
    flex: 1;
    padding: 20px;
    z-index: 2;
    width: 100%;
    height: 20%;
  }
  #section6 .titlu h2 {
    font-size: 36px;
  }
  #section6 .lista {
    font-size: 29px;
  }

  #section6 .carousel {
    position: absolute;
    top: 76%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 95%;
    height: 45vh;

    overflow-x: auto;
    white-space: nowrap;
  }
  #section6 .image-container {
    width: 100%;
    height: 43vh;
    margin-bottom: 0;
    margin-top: 0;
    margin-right: 10px;
    display: inline-block;

    animation: scroll 20s linear infinite;
  }
  #section6 .image-container:last-child {
    margin-right: 0;
  }
  /* videobacground */
  #section6 .video-background2 {
    position: absolute;
    top: 0%;
    left: 0;
    width: 100%;
    height: 50%;
    overflow: hidden;
  }
  #section6 .overlay2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background-color: rgba(0, 0, 0, 0.377);
  }

  #section7 .titlu {
    flex: 1;
    padding: 20px;
    z-index: 2;
    width: 100%;
    height: 20%;
  }
  #section7 .titlu h2 {
    font-size: 36px;
  }
  #section7 .lista {
    font-size: 29px;
  }

  #section7 .carousel {
    position: absolute;
    top: 76%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 95%;
    height: 45vh;

    overflow-x: auto;
    white-space: nowrap;
  }
  #section7 .image-container {
    width: 100%;
    height: 43vh;
    margin-bottom: 0;
    margin-top: 0;
    margin-right: 10px;
    display: inline-block;

    animation: scroll 20s linear infinite;
  }
  #section7 .image-container:last-child {
    margin-right: 0;
  }
  /* videobacground */
  #section7 .video-background2 {
    position: absolute;
    top: 0%;
    left: 0;
    width: 100%;
    height: 50%;
    overflow: hidden;
  }
  #section7 .overlay2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background-color: rgba(0, 0, 0, 0.377);
  }
  #contacte .info-item {
    font-size: 18px;
  }
  #contacte .info-item span {
    font-size: 18px;
    width: 100%;
    text-wrap: wrap;
  }

  footer.logo img {
    width: 180px;
  }
}
@media only screen and (min-width: 1200px) and (max-width: 1280px) and (orientation: landscape) {
  #serviciile-noastre {
    height: 1100px;
  }
  #serviciile-noastre .container2 {
    margin-top: 90px;
  }

  #serviciile-noastre .container-titlu1 {
    width: 100%;
    top: 50px;
  }
  #serviciile-noastre .container-titlu1 h2 {
    font-size: 25px;
    margin: 0;
  }
  #serviciile-noastre .box {
    width: 500px;
    height: 400px;
    text-align: center;
    padding: 20px;
    border: 1px solid white;
    border-radius: 5px;
    margin: 10px;
    opacity: 0;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(31, 30, 30, 0.3);
    color: white;
  }

  @keyframes appear {
    from {
      opacity: 0;
      transform: translateY(-200px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}
