* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Lato', Verdana, sans-serif;
}

html, body {
  height: 100%;
  width: 100%;
  overflow: hidden; /* blokada scrolla */
}

.wrapper {
  display: flex;
  height: 100vh;
  width: 100%;
  flex-wrap: nowrap;
}

/* Lewa część – biała */
.left {
  flex: 35%;
  background: white;
  clip-path: polygon(0 0, 100% 0, 85% 100%, 0% 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  opacity: 0;
  transform: translateX(-50px);
  transition: all 1s ease;
}

.logo {
  width: 70%;
  max-width: 800px;
  max-height: 50vh;
  height: auto;
  object-fit: contain;
}


/* Prawa część – purple */
.right {
  flex: 65%;
  background: #4C2580;
  clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
  display: flex;
  flex-direction: column;
  height: 100%; /* ważne, żeby znał wysokość */
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  color: white;
  opacity: 0;
  transform: translateX(50px);
  transition: all 1s ease;
}

.content-right {
    flex: 1; /* zajmuje całe dostępne miejsce */
    display: flex;
    flex-direction: column;
    justify-content: center; /* wyśrodkowanie pionowe */
    align-items: center;     /* opcjonalnie w poziomie */
    text-align: center;      /* żeby teksty też były na środku */
  }

.header-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px; /* Odstęp między nagłówkiem a tekstem */
}

.content-right {
  flex: 1; /* zajmuje całe dostępne miejsce */
  display: flex;
  flex-direction: column;
  justify-content: center; /* wyśrodkowanie pionowe */
  align-items: center;     /* opcjonalnie w poziomie */
  text-align: center;      /* żeby teksty też były na środku */
}

.footer {
    margin-top: auto; /* żeby była na dole sekcji */
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    padding: 10px 0;
  }

  
/* Animacje nagłówka i podtytułu wjeżdżające od dołu */
.animated-text, .sub-text {
  opacity: 0;
  transform: translateY(50px);
  animation-fill-mode: forwards;
}

/* Nagłówek zmniejszony */
.animated-text {
  font-size: clamp(1rem, 3.5vw, 3rem);
  animation: slideUp 1s forwards 1s;
  display: inline-block;
}

.dots {
  margin-left: 5px;
}

.sub-text {
  font-size: clamp(0.7rem, 1.8vw, 1.2rem);
  animation: slideUp 1s forwards 1.8s;
  line-height: 1.5;
  font-weight: 300; /* cienka czcionka - light */
}

.sub-text .last-line {
  display: block;
  margin-top: 15px;
  font-weight: 300;
}

/* Animacja 3 kropek jako fala */
.dots span {
  display: inline-block;
  opacity: 0;
  animation: dotWave 1.5s infinite;
  animation-delay: 1.2s; /* start dopiero po nagłówku */
  font-size: 1.6rem;
  padding-right: 10px;
}

.dots span:nth-child(1) { animation-delay: 1.2s; }
.dots span:nth-child(2) { animation-delay: 1.5s; }
.dots span:nth-child(3) { animation-delay: 1.8s; }

@keyframes dotWave {
  0%, 20% { opacity: 0; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-5px); }
  100% { opacity: 0; transform: translateY(0); }
}

@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInBottom {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.left.active, .right.active {
  opacity: 1;
  transform: translateX(0);
}



