html {
  scroll-behavior: smooth;
  transition: scroll-behavior 1s ease;
}
body {
  font-family: "Montserrat", sans-serif;
  margin: 0;
  padding: 0;
}
.mobile-only {
  display: none; /* Ascunde versiunea desktop */
}
/* NAVBAR--------------- */
.navbar {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 80px;
  width: 0 auto;
  background-color: #0f0f0f00;
  padding: 0 270px;
}
.menu-items {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}
.menu-items li {
  margin: 0 30px;
}
.menu-items li a {
  text-decoration: none;
  color: white;
  font-size: 16px;
  transition: color 0.3s ease-in-out;
}
.menu-items li.active a,
.menu-items li a:hover {
  color: #faaf04;
}

.logo img {
  max-height: 100%;
  width: 80px;
  margin-top: 30px;
}

/* NAVBAR END-------------------------------------- */
header {
  position: relative;
  z-index: 1;
}

section {
  text-align: center;
  padding: 20px;
  height: 100vh;
  box-sizing: border-box;
  transition: opacity 0.5s ease;
}
.section:target {
  display: block;
  opacity: 1;
}

.section1 {
  position: relative;
}

.video-background {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  overflow: hidden;
}

.video-foreground {
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}
.video-foreground iframe {
  width: 100vw;
  height: 62vw;
  min-height: 100vh;
  min-width: 177.77vh;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.377);
}

/* ------animatie text 1------------------------------- */
.section1 .content {
  position: absolute;
  top: 35%;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 1s, transform 1s;
}
@keyframes slideInFromBottom {
  0% {
    opacity: 0;
    transform: translateY(100%);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
.section1 .content img {
  width: 40px;
}
.section1 .content.active {
  animation: slideInFromBottom 1.2s ease-in-out;
  opacity: 1;
  transform: translateY(0);
}
/* --------------------------------------- */
/* ------animatie text 2 locatie------------------------------- */
.section1 .content2 {
  position: absolute;
  top: 65%;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  opacity: 0;
  transition: opacity 0.5s, transform 1s;
}
.section1 .content2 p {
  color: #fff;
  font-weight: 100;
  margin: 5px;
}
.section1 .content2 img {
  width: 35px;
}
@keyframes slideInFromBottomm {
  0% {
    opacity: 0;
    transform: translateY(160%);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
.section1 .content2.active {
  animation: slideInFromBottomm 2s ease-in-out;
  opacity: 1;
}
/* --------------------------------------- */
.section1 .content h2 {
  color: #faaf04;
  font-size: 32px;
}
.section1 .content h1 {
  color: #fff;
  font-size: 72px;
  font-weight: 200;
  margin: 0;
}
.section1 .content p {
  color: #fff;
  font-size: 22px;
  font-weight: 100;
  margin: 10px 0 0 0;
}

.section2 {
  background-color: #141414;
  position: relative;
}

.section2 h2 {
  color: white;
  font-size: 26px;
}
.section2 p {
  color: orange;
}
.section3 {
  background: linear-gradient(
    -45deg,
    #141414 0%,
    #141414 20%,
    #141414 40%,
    rgb(107, 70, 0) 60%,
    #141414 80%
  );
  background-size: 400% 400%;
  animation: gradient 12s ease infinite;
  height: 100vh;

  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  position: relative;
}
@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.section3 .half-width-image {
  border-radius: 30px;
  height: 90%;
  width: 45%;
  object-fit: cover;
  position: absolute;
  left: 25%;
  top: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.section3 .half-width-image.active {
  opacity: 1;
}
.section3 .text-container {
  width: 50%;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  overflow: hidden;
}

.section3 .animated-text {
  font-size: 24px;
  margin: 10px 0;
  padding: 40px 60px;
  background-color: #ffffff96;
  color: black;
  border-radius: 10px;
  white-space: nowrap;
  opacity: 0;
  animation: slideIn 1s forwards;
  text-align: left;
}
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.section3 .text-group .text {
  margin-left: 100px;
}
.section3 .text-group .thin {
  font-size: 21px;
  font-weight: 300;
}
.section3 .text-group:first-child .animated-text:first-child {
  background-image: url(images/beton.png);
  background-repeat: no-repeat;
  background-size: 60px;
  background-position: 40px center;
}
.section3 .text-group:first-child .animated-text:nth-child(2) {
  background-image: url(images/bricks.png);
  background-repeat: no-repeat;
  background-size: 60px;
  background-position: 52px center;
}
.section3 .text-group:first-child .animated-text:nth-child(3) {
  background-image: url(images/izolare.png);
  background-repeat: no-repeat;
  background-size: 60px;
  background-position: 48px center;
}
.section3 .text-group:first-child .animated-text:nth-child(4) {
  background-image: url(images/wall.png);
  background-repeat: no-repeat;
  background-size: 60px;
  background-position: 50px center;
}
.section3 .text-group:first-child .animated-text:nth-child(5) {
  background-image: url(images/windows.png);
  background-repeat: no-repeat;
  background-size: 60px;
  background-position: 50px center;
}
.section3 .text-group:nth-child(2) .animated-text:nth-child(1) {
  background-image: url(images/radiator.png);
  background-repeat: no-repeat;
  background-size: 60px;
  background-position: 50px center;
}
.section3 .text-group:nth-child(2) .animated-text:nth-child(2) {
  background-image: url(images/electric.png);
  background-repeat: no-repeat;
  background-size: 60px;
  background-position: 50px center;
}
.section3 .text-group:nth-child(2) .animated-text:nth-child(3) {
  background-image: url(images/power.png);
  background-repeat: no-repeat;
  background-size: 60px;
  background-position: 50px center;
}
.section3 .text-group:nth-child(2) .animated-text:nth-child(4) {
  background-image: url(images/curte.png);
  background-repeat: no-repeat;
  background-size: 60px;
  background-position: 50px center;
}
.section3 .text-group:nth-child(2) .animated-text:nth-child(5) {
  background-image: url(images/gard.png);
  background-repeat: no-repeat;
  background-size: 60px;
  background-position: 50px center;
}
.section3 .text-group:nth-child(3) .animated-text:nth-child(1) {
  background-image: url(images/parcare.png);
  background-repeat: no-repeat;
  background-size: 60px;
  background-position: 50px center;
}
.section3 .text-group:nth-child(3) .animated-text:nth-child(2) {
  background-image: url(images/teren.png);
  background-repeat: no-repeat;
  background-size: 60px;
  background-position: 50px center;
}
.section3 .text-group:nth-child(3) .animated-text:nth-child(3) {
  background-image: url(images/eco.png);
  background-repeat: no-repeat;
  background-size: 60px;
  background-position: 50px center;
}
.section3 .text-group:nth-child(3) .animated-text:nth-child(4) {
  background-image: url(images/distance.png);
  background-repeat: no-repeat;
  background-size: 60px;
  background-position: 50px center;
}
.section3 .text-group:nth-child(3) .animated-text:nth-child(5) {
  background-image: url(images/infrastructure.png);
  background-repeat: no-repeat;
  background-size: 60px;
  background-position: 50px center;
}
.section4 {
  background-color: #141414;
  position: relative;
}

.section4 .container-img {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 0px;
  text-align: center;
  padding: 0.5%;
}

.section4 .container-img img {
  width: 90%;
  height: auto;
  /* display: block; */
  opacity: 0;
  transition: opacity 1s ease, transform 1s ease;
  transform: translateX(5%);
}
.section4 a {
  width: 80%;
}

.section4 .container-img img.visible {
  opacity: 1;
  transform: translateX(0);
}

@keyframes slideIn {
  0% {
    transform: translateX(5%);
    opacity: 0;
  }
  50% {
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}
.section4 .text {
  z-index: 2;
  text-align: left;
  color: rgb(255, 255, 255);
  text-align: center;
  margin: 0;
}

.section4 .text .name {
  font-size: 56px;
  font-weight: 700;
  margin: 20px 0 0 0;
}

/* ------------------------------------------- */
.section5 {
  background-color: #141414;
  position: relative;
}
.section5 .container-img1 {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  margin-top: 0px;
  text-align: center;
  padding: 0.5%;
}
.section5 .container-img1 img {
  width: 74.5%;
  height: auto;
  opacity: 0;
  transition: opacity 1s ease, transform 1s ease;
  transform: translateX(5%);
}

.section5 .container-img1 img.visible {
  opacity: 1;
  transform: translateX(0);
}

@keyframes slideIn {
  0% {
    transform: translateX(5%);
    opacity: 0;
  }
  50% {
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

.section6 {
  background-color: #ffffff;
  position: relative;
}

.video-background2 {
  position: absolute;
  top: 0;
  left: 50%;
  width: 50%;
  height: 100%;
  overflow: hidden;
}

.video-foreground2 {
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.video-foreground2 iframe {
  width: 100vw;
  height: 56.25vw;
  min-height: 100vh;
  min-width: 177.77vh;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.overlay2 {
  position: absolute;
  top: 0;
  left: 50%;
  width: 50%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.377);
}
footer {
  background-color: #333;
  color: #fff;
  text-align: center;
  padding: 20px 0;
}

footer .logo-footer {
  display: inline-block;
  margin-right: 100px;
}
footer .logo-footer img {
  width: 80px;
}
footer .contact-details {
  display: inline-block;
  text-align: left;
  margin: 0;
}
footer .contact-details .email {
  text-decoration: none;
  color: white;
}
