/* ==========================================================================
   HERO SECTION WITH VIDEO BACKGROUND
   ========================================================================== */
.hero {
  position: relative;
  width: 100%;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  background-color: transparent; /* Przezroczyste tło dla widoczności wideo pod spodem */
}

/* Canvas dla interaktywnej siatki myszy (na całej stronie) */
.cursor-trail__canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100dvh;
  z-index: 999; /* Zawsze na samej górze strony */
  pointer-events: none;
  image-rendering: pixelated;
}

/* Canvas dla monochromatycznego rastra wideo Halftone */
.hero__video-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100dvh;
  z-index: 2; /* Nad wideo (z-index 1) — canvas halftone nakrywa wideo efektem ditheru */
  pointer-events: none;
  image-rendering: pixelated;
}



/* Video Background Wrapper */
.hero__video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100dvh;
  z-index: 1;
  pointer-events: none;
}

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.5s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Fallback background in case video fails to load */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent; /* Przezroczyste — wideo w tle jest widoczne pod sekcją Hero */
  z-index: 0;
}

/* Treść w sekcji Hero - Kontener nadrzędny Wrapper (Full Width z paddingiem 50px) */
.hero__wrapper {
  position: relative;
  z-index: 8;
  width: 100%;
  max-width: 100%;
  height: 100dvh; /* Utrzymuje sztywną wysokość ekranu na desktopie */
  padding: 50px; /* Równy padding 50px ze wszystkich stron */
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

/* Siatka dwukolumnowa Hero */
.hero__grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
  align-items: flex-end;
  margin-bottom: 40px;
}

@media (max-width: 1200px) {
  .hero__wrapper {
    padding: 40px; /* Równy padding 40px ze wszystkich stron */
    height: 100dvh;
  }
  .hero__grid {
    gap: 40px;
    margin-bottom: 30px;
  }
}

@media (max-width: 1024px) {
  .hero__wrapper {
    padding: 80px 30px 30px 30px; /* Równy padding dolny i boczny (30px) */
    height: auto;
    min-height: 100dvh;
  }
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: flex-start;
    margin-bottom: 20px;
  }
}

@media (max-width: 640px) {
  .hero__wrapper {
    padding: 60px 20px 20px 20px; /* Równy padding dolny i boczny (20px) */
    height: auto;
    min-height: 100dvh;
  }
  .hero__grid {
    gap: 20px;
    margin-bottom: 16px;
  }
}

.hero__col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.hero__col--left {
  /* Lewa kolumna z nagłówkiem */
}

.hero__col--right {
  /* Prawa kolumna z opisem dociśnięta do prawej krawędzi */
  padding-bottom: 12px;
  max-width: 480px;
  margin-left: auto;
}

@media (max-width: 1024px) {
  .hero__col--right {
    margin-left: 0;
    padding-bottom: 0;
  }
}

.hero__tag {
  font-family: var(--font-mono);
  font-size: clamp(0.7rem, 1.2vw, 0.85rem);
  font-weight: 500;
  color: #ffffff;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero__title {
  font-family: var(--font-primary);
  font-size: clamp(1.8rem, 5.8vw, 4.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  line-height: 1.05;
  color: #ffffff;
}

.hero__desc {
  font-family: var(--font-primary);
  font-size: clamp(0.95rem, 1.6vw, 1.2rem);
  font-weight: 400;
  line-height: 1.45;
  color: var(--text-primary);
}

/* Pozioma linia rozdzielająca stopkę */
.hero__divider {
  width: 100%;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.35);
  margin-bottom: 24px;
  pointer-events: auto;
}

/* Stopka sekcji Hero */
.hero__footer {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: auto;
  position: relative; /* Konieczne do bezwzględnego pozycjonowania zegara */
}

@media (max-width: 768px) {
  .hero__footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding-bottom: 40px; /* Zapewnia miejsce na zegar na dole */
  }
}

.hero__footer-left {
  display: flex;
  align-items: center;
  gap: clamp(30px, 6vw, 120px);
}

.hero__footer-right {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3.5vw, 60px);
}

@media (max-width: 768px) {
  .hero__footer-left,
  .hero__footer-right {
    width: 100%;
    justify-content: space-between;
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .hero__footer-left,
  .hero__footer-right {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

.hero__footer-item,
.hero__footer-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: #9ca3af;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  display: inline-block;
}

.hero__footer-item:last-child {
  color: #ffffff;
}

/* Wyśrodkowany kontener zegara */
.hero__footer-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
}

@media (max-width: 768px) {
  .hero__footer-center {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: auto;
  }
}

/* Zegar z migającą czerwoną kropką */
.hero__clock {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: #ffffff;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  font-variant-numeric: tabular-nums;
  pointer-events: auto;
}

.hero__clock-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background-color: #ef4444;
  border-radius: 50%;
  margin-left: 5px; /* Odstęp od lewego nawiasu [ */
  margin-right: 9px; /* Odstęp od cyfr zegara */
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.8);
  animation: pulse-dot 1.2s infinite;
}

@keyframes pulse-dot {
  0% {
    opacity: 0.4;
    transform: scale(0.9);
    box-shadow: 0 0 2px rgba(239, 68, 68, 0.4);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
    box-shadow: 0 0 8px rgba(239, 68, 68, 1);
  }
  100% {
    opacity: 0.4;
    transform: scale(0.9);
    box-shadow: 0 0 2px rgba(239, 68, 68, 0.4);
  }
}

/* Linki Social Media w stopce */
.hero__footer-link {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
  white-space: nowrap;
  display: inline-block;
}

.hero__footer-link:hover {
  color: #9ca3af; /* Neutralny szary hover zamiast fioletowego */
}

/* ==========================================================================
   GLOBAL HEADER
   ========================================================================== */
.header {
  position: fixed;
  top: 50px;
  left: 50px;
  right: 50px;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 30px;
  background-color: rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: auto;
}

.header__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.header__logo-svg {
  height: 24px;
  width: auto;
  fill: #ffffff;
  transition: fill 0.3s ease, transform 0.3s ease;
}

.header__logo:hover .header__logo-svg {
  fill: #9ca3af; /* Neutralny szary hover */
  transform: scale(1.05);
}

.header__instagram-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: #ffffff;
  transition: color 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.header__instagram-link:hover {
  color: #9ca3af; /* Neutralny szary hover */
  transform: scale(1.15);
}

.header__instagram-svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.header__status {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  pointer-events: none;
  white-space: nowrap;
  transition: opacity 0.25s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Responsywność dla nagłówka */
@media (max-width: 1200px) {
  .header {
    top: 40px;
    left: 40px;
    right: 40px;
    padding: 14px 24px;
  }
}

@media (max-width: 1024px) {
  .header {
    top: 30px;
    left: 30px;
    right: 30px;
    padding: 12px 20px;
  }
}

@media (max-width: 640px) {
  .header {
    top: 20px;
    left: 20px;
    right: 20px;
    padding: 10px 16px;
  }
  .header__logo {
    font-size: 12px;
  }
  .header__link {
    font-size: 11px;
  }
}

