:root {
  --primary: #7b28ae;
  --bg-light: #d1c3e6;
  --primary-gradient: linear-gradient(to right, #7b28ae, #ba12aa);
  --light-text-color: #fff;
  --dark-text-color: #000;
  --card-background: #eee;
  --results-icons: brightness(100%);
  --navbar-bg: linear-gradient(to right, #d1c3e680, #d1c3e640);
  --team-photo-bg: #ececec;

  --rvr_shadow-color: #dc82ff;
  --shadow-color: var(--rvr_shadow-color);
  --tooltip-color: #f9c0ff;
}

#theme-toggle {
  margin-top: 0.4em;
}

/* Font overrides */

body { font-family: 'Prompt', sans-serif; font-size: 100%;}
h1, h2, h3 { font-family: 'Prompt', monospace; }

/* Chestii generale */

.custom-bg {
  background-color: var(--bg-light);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.custom-span {
  font-size: clamp(25px, 2.5vw + 1rem, 34px);
  font-weight: 600;
  color: var(--primary);
  position: relative;
  margin-bottom: 5em;
}

.custom-span::after {
  position: absolute;
  content: "";
  width: 50%;
  height: .25em;
  left: 50%;
  bottom: -5px;
  background-image: var(--primary-gradient);
  transform: translateX(-50%);
}

/* Titlu */
.section-title {
  text-align: center;
  margin-bottom: 30px;
  padding-top: 150px !important;
}

/* Hero Section */

@keyframes slideFromLeft {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideFromRight {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

.wave-container {
  position: absolute;
  top: 100dvh; left: 0;
  width: 100%; height: auto;
}

.hero-section {
  background: url("../images/Cover pagina principala/hero_img_background.png")
    no-repeat center;
  background-size: cover;
  overflow: hidden;
  height: 100dvh;
  display: flex;
  flex-direction: column;
}

.main-hero {
  height: 100vh; width: auto;
  position: relative;
  display: flex;
  align-items: center;
  flex-direction: row;
  overflow: hidden;
}

.animatie-robot {
  width: 60%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: slideFromRight 0.8s ease-out forwards;
  position: relative;
  z-index: 100;
}

.render-robot {
  background: url("../images/Cover\ pagina\ principala/render_robot.webp") no-repeat center;
  background-size: min(70vw, 70vh);
  overflow: hidden;
  width: 100%;
  height: 100%;
}

.animate-text-on-load {
  opacity: 0;
}

.animatie-text {
  opacity: 1;
  width: 40%;
  height: 100%;
  color: #fff;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  animation: slideFromLeft 0.8s ease-out forwards;
  position: relative;
  z-index: 100;
}

.animatie-text h1 {
  font-size: 4em;
  margin: 0;
}

.animate-text-on-load h1 {
  text-align: center; 
  font-family: 'Prompt', sans-serif !important;
  font-style: normal;
}

.span-h {
  color: var(--primary);
  font-size: 60px;
  font-weight: 600;
}

@media (max-width: 1000px) {
  .main-hero {
    flex-direction: column-reverse;
  }

  .render-robot {
    background-size: contain;
  }

  .animatie-robot {
    width: 80%;
    padding-top: 7em;
    height: 70%;
  }

  .animatie-text {
    width: 100%;
    height: 40%;
    align-items: flex-start;
    justify-content: center;
  }

  .animatie-text h1 {
    font-size: 2em;
  }
}

/* Hexagons */
.hexagon {
  position: absolute;
  bottom: 0;
  height: 50px; /* adjust to control the size  */
  aspect-ratio: 1/cos(30deg);
  clip-path: polygon(50% -50%,100% 50%,50% 150%,0 50%);
  background: var(--bg-light);
  z-index: 2;
  opacity: 0;

  animation: hexAnim 16s infinite ease-in-out;
}

@keyframes hexAnim {
  from { transform: scale(1) translate(0, 50px) rotate(0); opacity: .5; }
  to { transform: scale(1.1) translate(0, -500px) rotate(360deg); opacity: 0; }
}

/* Waves */

@keyframes wave1Moving {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(0);
  }
}

@keyframes wave2Moving {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(100%);
  }
}

.wave1,
.wave2 {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  overflow-x: hidden;
  line-height: 0;
  transform: rotate(180deg);
  z-index: 10;
}

.wave1 svg,
.wave2 svg {
  position: relative;
  display: block;
  width: 100%;
}

.wave1 .shape-fill,
.wave2 .shape-fill  {
  fill: var(--bg-light);
}

.wave1 svg {
  animation: wave1Moving 25s infinite linear;
}

.wave2 svg {
  animation: wave2Moving 25s infinite linear;
}

/* I'm a */

.im {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 30px;
}

.wrapper-h {
  display: flex;
}

.wrapper-h .static-txt {
  color: #fff;
  font-size: 60px;
  font-weight: 600;
}

.wrapper-h .dynamic-txts {
  margin-left: 15px;
  line-height: 90px;
  height: 90px;
  background: var(--bg-light);
  overflow: hidden;
}

.dynamic-txts li {
  list-style: none;
  position: relative;
  top: 0;
  font-size: 60px;
  animation: slide 15s steps(5) infinite;
}

@keyframes slide {
  100% {
    top: -450px;
  }
}

.dynamic-txts li {
  position: relative;
}

.dynamic-txts li::after {
  content: "";
  position: absolute;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: var(--bg-light);
  border-left: 2px solid var(--primary);
  animation: typing 3s steps(22) infinite;
}

@keyframes typing {
  40%,
  60% {
    left: calc(100% + 30px);
  }
  100% {
    left: 0;
  }
}

@media screen and (max-width: 700px) {
  .im {
    display: none;
  }
}

/* About us */

.about-us {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 30px;
}

.container-a {
  width: 80%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
}

.container-a .image-a img {
  border-radius: 7px;
  width: 100%;
}

.container-a .image-a {
  border: 4px solid #fff;
  border-radius: 10px;
}

.container-a .text-about {
  margin-top: -80px;
}

.container-a .text-desc {
  color: var(--dark-text-color);
  text-align: center;
  padding-top: 30px;
}

@media (max-width: 950px) {
  .container-a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    padding-bottom: 10px;
  }
  .container-a .text-about {
    padding-top: 10px;
  }
}

p {
  color: var(--dark-text-color);
}

/* Video */

.abt-us-video {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.video-border {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fff;
  background-size: 200% 200%;
  animation: gradientMove 15s infinite;
  padding: 0.3em;
  border-radius: 1em;
  transition: transform 0.3s ease;
}

.video-border:hover {
  transform: scale(1.02);
}

.abt-us-video iframe {
  width: 55vw;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
  border-radius: 1em;
}

@media (max-width: 900px) {
  .abt-us-video iframe {
    width: 80vw;
  }
}

/* Branding */

.branding {
  display: flex;
  justify-content: center;
  align-items: center;
}

.container-b {
  width: min(90%, 1200px);
  padding: 10px 0;
}

.container-b .text-branding {
  font-size: clamp(14px, 2vw, 18px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-bottom: 20px;
}

.container-b .images {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(10px, 4vw, 80px);
}

.container-b .images img {
  height: auto;
  object-fit: contain;
}

.container-b .images .image-1 {
  width: clamp(80px, 15vw, 300px);
}

.container-b .images .image-2 {
  width: clamp(120px, 25vw, 600px);
}

.container-b .images i {
  font-size: clamp(40px, 8vw, 100px);
  line-height: 1;
}

/* Targets section */

.targets {
  position: relative;
  width: 100%;
  min-height: 60vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--bg-light);
  padding-bottom: 20px;
}

.swiper {
  width: 100%;
  padding-top: 50px;
  padding-bottom: 20px;
}

.swiper-slide {
  background-color: var(--primary);
  background-position: center;
  background-size: cover;
  width: 320px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.swiper-3d,
.swiper-slide-shadow-left,
.swiper-slide-shadow-right {
  border-radius: 20px !important;
}

.obiectiv {
  position: relative;
  width: 100%;
  padding: 40px;
  padding-top: 40px;
  padding-bottom: 50px;
  justify-content: center;
  align-items: center;
  height: 400px;
}

.obiectiv .titlu {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 40px;
  color: var(--bg-light);
  text-align: center;
}

.obiectiv .paragraf {
  color: var(--bg-light);
}

.title {
  text-align: center;
  background: var(--bg-light);
}

.rounded-pill {
  display: inline-block;
  padding: 8px 20px;
  border: 7px solid #000;
  border-radius: 50px;
}

/* Planuri */

.container-p {
  padding: 15px 9%;
  padding-top: 50px;
  padding-bottom: 200px;
}

.container-p .box-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(350px, 75vw), 1fr));
  gap: 50px;
}

.container-p .box-container .box {
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  border-radius: 5px;
  background: var(--card-background);
  text-align: center;
  padding: 30px 20px;
  transition: all 0.3s ease;
}

.container-p .box-container .box h3 {
  color: var(--primary);
  font-size: 30px;
  padding: 10px 0;
  padding-bottom: 30px;
}

.container-p .box-container .box p {
  color: var(--primary);
  font-size: 15px;
  line-height: 1.8;
}

.container-p .box-container .box:hover {
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
  transform: scale(1.05);
  transition: all ease 0.3s;
}

.box span {
  color: var(--primary) !important;
}

.h-line {
  width: 150px;
  margin: 0 auto;
  height: 1.7px;
}

@media (max-width: 1200px) {
  .container {
    height: 100%;
    flex-direction: column;
  }
  .planuri {
    max-width: 80%;
    padding: 30px;
  }
}