/* ===================
   ZMIENNE GLOBALNE
=================== */
:root {
  --navy: #03183b;
  --yellow: #ffd600;
  --white: #ffffff;
}

/* ===================
   RESET I PODSTAWOWE STYLE
=================== */
html,
body {
  margin: 0;
  padding: 0;
  background: var(--white);
  font-family: "Montserrat", Arial, sans-serif;
  color: var(--navy);
  height: 100%;
  min-height: 100vh;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===================
   GÓRNY PASEK (TOPBAR)
=================== */
.topbar {
  width: 100%;
  height: 72px;
  background: #03183b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 36px;
  padding-right: 48px;
  box-sizing: border-box;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
}

@media (max-width: 900px) {
  .topbar {
    padding-left: 20px;
    padding-right: 20px;
    justify-content: center;
  }
}

.topbar-title {
  color: #fff;
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: 0.05em;
  margin-left: 24px;
  white-space: nowrap;
}

.logo-img {
  height: 48px;
  width: auto;
  display: block;
}

/* ===================
   UKŁAD GŁÓWNY
=================== */
.split {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding-top: 72px; /* Wysokość topbara */
  box-sizing: border-box;
  background: var(--white);
}

.left {
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 4vw 5vw 4vw 8vw;
  min-width: 320px;
}

.headline {
  font-size: 8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 1.2rem;
  color: var(--navy);
  line-height: 0.9;
}

.subheadline {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 2.5rem;
  color: var(--navy);
}

.right {
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-width: 320px;
  position: relative;
  padding: 4vw 4vw 4vw 5vw;
}

/* ===================
   OBRAZY I EFEKTY
=================== */
.image-container {
  width: 100%;
  position: relative;
  display: flex;
  justify-content: flex-start;
  margin-left: -200px; /* Move 200px to the left */
}

.dust-img.centered-video {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 90%;
  height: auto;
  max-width: 100%;
}

/* Optional: glowing effect overlay (CSS animation) */
.glow {
  position: absolute;
  left: 50%;
  top: 60%;
  transform: translate(-50%, -50%);
  width: 220px;
  height: 120px;
  pointer-events: none;
  z-index: 3;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 214, 0, 0.25) 0%,
    rgba(255, 214, 0, 0.07) 80%,
    transparent 100%
  );
  animation: pulseGlow 2.5s infinite alternate;
  filter: blur(2px);
}

@keyframes pulseGlow {
  from {
    opacity: 0.7;
  }
  to {
    opacity: 1;
    filter: blur(6px);
  }
}

/* ===================
   PRZYCISKI
=================== */
.cta-btn {
  background: var(--yellow);
  color: var(--navy);
  font-size: 2rem;
  font-weight: 700;
  padding: 1.1rem 2.4rem;
  border: none;
  border-radius: 32px;
  cursor: pointer;
  box-shadow: none;
  letter-spacing: 0.02em;
  transition: background 0.2s, color 0.2s, transform 0.15s;
  text-decoration: none;
  text-align: center;
  display: inline-block;
}

.cta-btn:hover {
  background: var(--navy);
  color: var(--yellow);
  transform: translateY(-2px) scale(1.04);
}

/* Mobilna wersja CTA */
.mobile-cta {
  display: none; /* Domyślnie ukryty na dużych ekranach */
}

/* ===================
   MEDIA QUERIES 900px
=================== */
@media (max-width: 900px) {
  .split {
    flex-direction: column;
    min-height: auto;
    padding-top: 5px;
    align-items: center;
  }

  /* Zmiana kolejności sekcji w wersji mobilnej */
  .left {
    order: 1; /* Najpierw tytuł i opis */
    padding: 1rem 1rem 0.5rem;
    text-align: center;
    align-items: center;
    justify-content: center;
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
  }

  .right {
    order: 2; /* Potem obraz */
    padding: 0 0.5rem 0.5rem;
    margin-top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
  }

  /* Przycinanie obrazu w wersji mobilnej */
  .image-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 0.5rem;
    box-sizing: border-box;
    height: 60vh; /* Ograniczenie wysokości kontenera */
    padding-left: 0.5rem; /* Reset desktop padding-left */
    justify-content: center; /* Wyśrodkowanie na mobile */
    /*overflow: hidden; /* Ukrycie części obrazu, która wychodzi poza kontener */
  }

  .dust-img {
    object-fit: cover; /* Zachowanie proporcji */
    object-position: center; /* Centrowane pozycjonowanie */
    height: auto; /* Automatyczna wysokość */
    max-height: none; /* Bez ograniczenia wysokości */
    max-width: 100%; /* Pełna szerokość kontenera */
    width: 100%; /* Pełna szerokość */
    margin: 0 auto; /* Wyśrodkowanie poziome */
    display: block; /* Block display dla margin auto */
    margin-left: 0; /* Reset margin-left z desktop */
  }

  .mobile-cta {
    order: 3; /* Na końcu przycisk CTA */
    display: block;
    width: 100%;
    text-align: center;
    justify-content: center;
    align-items: center;
    padding: 0 0.5rem 1rem;
    box-sizing: border-box;
  }

  .headline {
    font-size: 2rem;
    margin-bottom: 0.5rem; /* zmniejszone o 50% */
    text-align: center;
    width: 100%;
  }

  .subheadline {
    margin-bottom: 0.5rem; /* zmniejszone o 50% */
    font-size: 1rem;
    text-align: center;
    width: 100%;
  }

  .left .cta-btn {
    display: none; /* Ukrywamy główny przycisk w lewej sekcji */
  }

  .mobile-cta .cta-btn {
    font-size: 1.2rem;
    padding: 0.9rem 1.8rem;
    width: 90%;
    max-width: 400px;
    box-sizing: border-box;
  }
}

/* ===================
   MEDIA QUERIES 600px
=================== */

@media (max-width: 600px) {
  .topbar {
    height: 43px; /* -40% z 72px */
  }
  .header {
    padding: 4rem 5% 1rem; /* Reduce from 6rem to 4.5rem at the top */
  }

  .headline {
    font-size: 1.5rem;
    margin-bottom: 0.2rem;
  }

  .subheadline {
    font-size: 1rem;
    margin-bottom: 0.2rem;
  }

  /* Mobile: zmniejszenie elementów topbara */
  .logo-img {
    height: 24px; /* 50% z 48px */
  }

  .topbar-title {
    font-size: 0.64rem; /* 60% mniej niż 1.6rem */
    margin-left: 12px; /* delikatnie mniejszy odstęp */
  }

  .left {
    padding: 4vw 6vw;
  }

  .right {
    padding: 0 6vw 0.5rem;
  }

  .image-container {
    height: 60vh; /* Mniejsza wysokość na mniejszych ekranach */
  }

  .mobile-cta {
    padding: 0 6vw 2rem;
  }

  .mobile-cta .cta-btn {
    font-size: 1rem;
    padding: 0.8rem 1.5rem;
  }
}

/* ===================
   MEDIA QUERIES 480px
=================== */

@media (max-width: 480px) {
  .headline {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
  }

  .subheadline {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }

  .left {
    padding: 1.5rem 1rem 0.5rem;
  }

  .right {
    padding: 0 1rem 0.5rem;
  }

  .image-container {
    height: 60vh; /* Jeszcze mniejsza wysokość na najmniejszych ekranach */
    padding: 0 0.5rem;
  }

  .mobile-cta {
    padding: 0 1rem 1.5rem;
  }

  .mobile-cta .cta-btn {
    font-size: 0.9rem;
    padding: 0.8rem 0.2rem;
  }
}
