@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;600;700;900&family=Playfair+Display:ital,wght@1,500&display=swap');

:root{
    --kolor-glowny: cornflowerblue;
    --kolor-uzupelniajacy: orange;
    --kolor-jasny: #eee;
    --kolor-sredni: #999;
    --kolor-ciemny: #222;
}

/* selektory globalne */
* {
    box-sizing: border-box;
    
}

/* animacje tylko dla elementów interaktywnych */
a, button, .burger, .zamknijX {
    transition: background-color 0.3s, color 0.3s;
}

html{
    scroll-behavior: smooth;
    font-size: 10px;
}

body{
    font-family: 'Archivo', sans-serif;
    font-weight: 400; 
    font-size: 1.6rem; 
    line-height: 3.2rem; 
    color: var(--kolor-ciemny);
}

h1, h2, h3, h4, h5, h6{
    font-family: 'Archivo', sans-serif;
    margin: 0 0 1rem 0;
}

h1{
    font-weight: 900; 
    font-size: 6.4rem; 
    text-transform: uppercase;
    letter-spacing: -0.04em; 
    line-height: 1.1;
}

h2{
    font-weight: 700; 
    font-size: 4.2rem; 
    line-height: 1.2;
}

h3{
    font-weight: 600; 
    font-size: 2.4rem; 
    line-height: 1.3;
}

h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 500; 
    font-style: italic;
    font-size: 2.8rem; 
    line-height: 1.5; 
    margin: 0 0 1rem 0;
}

h5 {
    font-weight: 600; 
    font-size: 1.8rem; 
    text-transform: uppercase;
    letter-spacing: 0.05em; 
}

h6 {
    font-weight: 400; 
    font-size: 1.3rem; 
    text-transform: uppercase;
    letter-spacing: 0.1em; 
}

p{
    line-height: 140%;
}

img{
    max-width: 100%;
}

/* nawigacja desktop */
nav{
    background-color: var(--kolor-ciemny);
    position: fixed;
    width: 100%;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

nav .zawartosc{
    justify-content: center;
}

nav ol li a{
    color: var(--kolor-jasny);
    text-decoration: none;
    padding: 1rem 2rem;
    border: 2px solid #ffffff;
    border-radius: 9999px;
    line-height: 1;
    display: block; 
}

nav ol li a:hover{
    background-color: var(--kolor-jasny);
    color: var(--kolor-ciemny);
}

/* nawigacja mobile */


.burger:hover{
    background-color: var(--kolor-jasny);
    color: var(--kolor-ciemny);
}

.burger {
    background-color: var(--kolor-jasny);
    color: var(--kolor-ciemny);
    position: fixed;
    right: 2rem;
    top: 2rem;
    font-size: 3rem;
    padding: 0 .5rem .6rem;
    border-radius: 10px;
    cursor: pointer;
    display: none;
    
    
    z-index: 9990 !important; 
}

.nakladka {
    background-color: rgba(100, 100, 100, 0.95);
    position: fixed;
    top: 0;
    right: 0; 
    height: 100%;
    width: 0;
    overflow: hidden;
    transition: 0.5s;
    display: flex;
    justify-content: center;
    align-items: center;
    
    
    z-index: 9999 !important; 
}

.zamknijX {
    background-color: var(--kolor-jasny);
    color: var(--kolor-ciemny);
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 3rem;
    padding: .1rem 1rem 0.6rem;
    border-radius: 10px;
    cursor: pointer;
    
    
    z-index: 10000 !important; 
}

.zamknijX:hover{
    background-color: var(--kolor-ciemny);
    color: var(--kolor-jasny);
}

.nakladka ol{
    width: 100%;
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.nakladka ol li a{
    display: inline-block; 
    width: fit-content; 
    text-align: center;
    text-decoration: none;
    color: var(--kolor-jasny);
    font-size: 2rem;
    padding: 1rem 2.5rem; 
    margin-bottom: 2vh;
    border: 2px solid #ffffff;
    border-radius: 9999px;
    box-sizing: border-box;
}

.nakladka ol li a:hover{
    background-color: var(--kolor-jasny);
    color: var(--kolor-ciemny);
}

/* wszystkie sekcje */
section{
    min-height: 100vh;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 2rem;
}

.zawartosc{
    max-width: 1400px;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

/* poszczególne sekcje */
#pierwsza { 
    min-height: 100vh; 
    background-color: var(--kolor-ciemny);
    display: flex;
    align-items: center; 
    justify-content: center; 
    padding-top: 4rem; 
    padding-bottom: 1rem;
}

.pudelko-container {
    display: flex;
    flex-wrap: wrap; 
    gap: 1.5rem; 
    width: 95%;
    max-width: 1600px;
}

/* ----SEKCJA 1----- */

.tile {
    position: relative;
    overflow: hidden;
    display: flex; 
    align-items: center;
    justify-content: center;
    cursor: pointer;
    
    
    height: 42vh; 
    
    border: 3px solid #ffffff !important;
    border-radius: 2rem !important;
    
    /*  animacja stroboskopowa */
    animation: cyfrowy-chaos 1.2s infinite steps(1);
}


.tile-01, .tile-02, .tile-03 { 
    width: 30%; 
    flex-grow: 1; 
}

.tile-04 { 
    width: 48%; 
    flex-grow: 1; 
}

.tile-05, .tile-06 { 
    width: 22%; 
    flex-grow: 1; 
}

/* przesunięcia czasowe  */
.tile-01 { animation-delay: 0s; }
.tile-02 { animation-delay: 0.2s; }
.tile-03 { animation-delay: 0.4s; }
.tile-04 { animation-delay: 0.6s; }
.tile-05 { animation-delay: 0.8s; }
.tile-06 { animation-delay: 1.0s; }

/* Kontener na grafikę */
.tile-content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    transition: opacity 0.15s ease;
}

.tile-content img {
    height: 35%; 
    width: auto;
    object-fit: contain;
}


.tile-hover-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000000 !important;
    color: #ffffff !important;
    
    display: flex;
    align-items: center;
    justify-content: center;
    
    font-family: 'Archivo', sans-serif;
    font-weight: 900;
    font-size: 2.4rem;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    
    opacity: 0; 
    transition: opacity 0.15s ease;
    text-align: center;
    padding: 2rem;
    
    border-radius: 1.8rem; 
}


.tile:hover {
    animation: none !important; 
    background-color: #000000 !important;
    border-color: #ffffff !important; 
}

.tile:hover .tile-content {
    opacity: 0; 
}

.tile:hover .tile-hover-text {
    opacity: 1; 
}

@keyframes cyfrowy-chaos {
    0%   { background-color: #3b82f6; } 
    25%  { background-color: #52c870; } 
    50%  { background-color: #ffea00; } 
    75%  { background-color: #ff4a85; } 
    100% { background-color: var(--kolor-jasny); } 
}

/* ----SEKCJA 2----- */

#druga {
  background-color: var(--kolor-ciemny);
  min-height: 100vh; 
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative; 
  padding: 2rem;
  box-sizing: border-box;
}

#druga .kontener {
  text-align: center;
  width: 100%;
  max-width: 1400px;
}

#druga h1 {
  color: var(--kolor-jasny);
  font-size: 8vw;
  margin: 0 0 3rem 0; 
}

#druga .obrys {
  color: transparent;
  -webkit-text-stroke: 2px var(--kolor-jasny);
}

#druga h4 {
  color: var(--kolor-sredni);
  margin: 0 auto;
  max-width: 800px; 
}

#druga h6 {
  position: absolute;
  bottom: 2rem;
  right: 4rem;
  color: var(--kolor-jasny);
  margin: 0;
}

/* ----SEKCJA 3----- */
#trzecia {
  position: relative;
  height: 300vh; 
  background-color: black; 
  
  display: flex;
  flex-direction: row; 
  align-items: flex-start; 
  
  gap: 4rem;
  padding: 0 6rem; 
  box-sizing: border-box;
}


#trzecia .kol {
  flex: 1;
  height: 300vh; 
  display: flex;
  flex-direction: column;
  align-items: center; 
}


#trzecia .pustka {
  height: 100vh; 
}
#trzecia .pustka.podwojna {
  height: 200vh; 
}


#trzecia .ksztalt {
  position: sticky;
  
 
  top: 12vh; 
  
  
  height: 750px;
  
  width: 100%;
  
 
  max-width: 353px; 
  
  background-image: url('../img/telefon.png'); 
  background-size: contain; 
  background-position: center;
  background-repeat: no-repeat;
  background-color: transparent; 

  transition: 0.3s ease;
}

#trzecia .ksztalt:hover {
  transform: scale(1.03); 
  filter: drop-shadow(0 0 25px rgba(255, 255, 255, 0.25)); 
}

.ekran-telefonu {
  width: 100%;
  height: 100%;
  
  
  padding: 18rem 5.5rem 6rem 5.5rem; 
  box-sizing: border-box;
  
  display: flex;
  align-items: flex-start; 
  justify-content: center; 
}


.dymek {
  width: 100%;
 
  padding: 1.8rem 1.5rem; 
  border-radius: 24px; 
  
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  
  font-size: 1.35rem;    
  
  font-weight: 800;     
  line-height: 1.35;     
  text-transform: uppercase; 
  letter-spacing: -0.01em;
  text-align: left;     
  
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); 
}


.dymek.niebieski {
  background-color: #3b82f6; 
  color: #ffffff;
}


.dymek.zielony {
  background-color: #52c870; 
  color: #ffffff;
}


.dymek.szary {
  background-color: #e5e7eb; 
  color: #111827; 
}

 /* ----SEKCJA 4----- */
#czwarta {
  background-color: var(--kolor-ciemny);
   min-height: auto;
  
  display: flex;
  flex-direction: column; 
  justify-content: center; 
  gap: 3rem; 
  
  padding: 4rem; 
  overflow: hidden; 
}


.pasek {
  width: 100%;
  overflow: hidden;
  white-space: nowrap; 
  display: flex;
  align-items: center;
  
  
  font-size: 12rem; 
  font-weight: 900;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: -0.02em; 
  line-height: 1;
}


.pasek img {
  height: 10.5rem; 
  width: auto;
  vertical-align: middle; 
  margin: 0 4rem; 
}


.pasek .kursywa {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  font-style: italic;
  text-transform: none; 
}


.ruch-lewo {
  display: inline-block;
  animation: pętla-lewo 120s linear infinite; 
}

.ruch-prawo {
  display: inline-block;
  animation: pętla-prawo 120s linear infinite;
}

.tylko-mobile {
  display: none !important; 
}
.tylko-najmniejsze-mobile {
  display: none !important;
}
/* PĘTLE ANIMACJI */
@keyframes pętla-lewo {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes pętla-prawo {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

 /* ----SEKCJA 5----- */


#piata {
  background-color: #1a1a1a;
  min-height: auto;
  
  
  display: flex;
  justify-content: center; 
  align-items: center;     
  
  padding: 12rem 6rem; 
  box-sizing: border-box;
}

/* KONTENER GŁÓWNY */
#piata .kontener-tresc {
  max-width: 1100px; 
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 5rem; 
  
  position: relative; 
}

#piata h2 {
  color: #ffffff; 
  font-size: 6.4rem;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  margin: 0;
}


#piata .boczny-akcent {
  position: absolute;
  
  left: -12rem; 
  top: 0;
  border-left: 1px solid #555555; 
  padding-left: 1.5rem;
  display: block; 
}

#piata .pionowy-tekst {
  writing-mode: vertical-rl; 
  transform: rotate(180deg); 
  color: #888888; 
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  display: block;
}

/* Worek na akapity */
#piata .akapity-kaskada {
  display: flex;
  flex-direction: column;
  gap: 4rem; 
  width: 100%;
}

/* Wspólny styl dla każdego akapitu */
#piata .akapit {
  color: #aaaaaa; 
  font-size: 1.7rem;
  line-height: 1.6;
  max-width: 520px; 
  text-align: left;
}

/* SCHODKOWE ROZRZUCENIE MARGINESAMI */
#piata .p-srodkowy { margin-left: 15%; }
#piata .p-prawy { margin-left: 50%; }
#piata .p-lewy { margin-left: 0; }

/* ----SEKCJA 6----- */

#szosta {
  background-color: var(--kolor-ciemny);
  min-height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 4rem;
  box-sizing: border-box;
}


.kontener-chmura {
  max-width: 1300px;
  width: 100%;
  display: flex;
  flex-wrap: wrap; 
  justify-content: center; 
  gap: 1.5rem 1rem; 
}


.slowo {
  display: inline-block;
  padding: 0.6rem 1.6rem; 
  border: 2px solid #ffffff;
  border-radius: 9999px;
  
  color: #ffffff;
  background-color: transparent;
  
  font-size: 2.2rem; 
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  
  cursor: pointer;
  white-space: nowrap;
  
  transition: padding 0.25s ease, margin 0.25s ease, background-color 0.2s ease, transform 0.2s ease;
}

.slowo-obrys {
  border-style: dashed; 
}

.kropka {
  font-size: 3rem;
  color: #ffffff;
  margin-right: 1.5rem; 
}


.szeryf {
  font-family: 'Playfair Display', Georgia, serif !important;
  font-weight: 500 !important; 
  font-style: italic !important;
  text-transform: none !important; 
}

/* Rozpychanie na hover */
.slowo:hover {
  padding: 0.9rem 2.6rem; 
  margin: 0 0.6rem; 
  
  transform: scale(1.05); 
  color: #000000 !important; 
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Kolory hover */
.zielony:hover { background-color: #00d362 !important; border-color: #00d362 !important; }
.zolty:hover { background-color: #ffea00 !important; border-color: #ffea00 !important; }
.niebieski:hover { background-color: #0084ff !important; border-color: #0084ff !important; }
.rozowy:hover { background-color: #ff4a85 !important; border-color: #ff4a85 !important; }

/* ----STOPKA------*/
#stopka-kod {
  background-color: #0f0f0f; 
  padding: 6rem 4rem;
  box-sizing: border-box;
  width: 100%;
  
  
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 1.4rem;
  line-height: 1.5;
  letter-spacing: 0;
  
  border-top: 1px solid #222222;
}


#stopka-kod .linia {
  display: flex;
  align-items: flex-start;
  width: 100%;
}

/* Numeracja linii po lewej stronie */
#stopka-kod .nr {
  color: #444444; 
  width: 3.5rem;
  min-width: 3.5rem;
  user-select: none; /* Blokuje zaznaczanie numerów linii myszką */
  text-align: right;
  padding-right: 1.5rem;
}

/* Blok zagnieżdżonego kodu (odpowiada za tabulację/wcięcie) */
#stopka-kod .blok-kodu {
  /* Lewy margines tworzy wcięcie (Tab), a lewa ramka symuluje linie pomocnicze z VS Code */
  margin-left: 3.5rem; 
  border-left: 1px dashed #252525; 
}


#stopka-kod .kod {
  color: #f8f8f2; 
  padding-left: 1rem;
  word-break: break-all;
}


#stopka-kod .tag { color: #f92672; }       
#stopka-kod .attr { color: #66d9ef; }      
#stopka-kod .str { color: #e6db74; }       
#stopka-kod .komentarz { color: #75715e; font-style: italic; } 
#stopka-kod .tekst-czysty { color: #ffffff; font-weight: bold; }

/* Prawdziwe, aktywne linki wplecione w kod html */
#stopka-kod .link-w-kodzie {
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  border-bottom: 1px solid transparent;
  transition: 0.2s ease;
}


#stopka-kod .link-w-kodzie:hover {
  color: #a6e22e; 
  border-bottom: 1px solid #a6e22e;
  background-color: rgba(166, 226, 46, 0.05);
}

/* ***************************** RWD ***************************** */



@media (max-width: 1280px) {
   /* ----SEKCJA 1----- */
    #pierwsza {
        padding-top: 8rem; 
    }

    .tile {
        height: 28vh; 
        width: 47%; 
        flex-grow: 1;
    }
     /* ----SEKCJA 3----- */
    #trzecia .pustka { 
        display: none !important; 
    }

    #trzecia {
        height: auto !important; 
        min-height: 82vh !important; 
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto !important; 
        -webkit-overflow-scrolling: touch !important; 
        
        
        padding: 4rem 1.5rem !important; 
        
        
        gap: 0 !important; 
        
        scrollbar-width: none; 
        align-items: center !important;
    }
    #trzecia::-webkit-scrollbar { display: none; }

    #trzecia .kol {
        height: auto !important;
        flex: 0 0 auto !important; 
        width: auto !important;
        display: flex !important;
        justify-content: center !important;

        
        margin: 0 -2.5rem !important; 
    }

    #trzecia .ksztalt {
        position: relative !important;
        top: 0 !important;
        height: 72vh !important; 
        width: auto !important; 
        aspect-ratio: 1 / 2.06 !important; 
    }

    #trzecia .ekran-telefonu {
        padding: 15rem 5.2rem 4rem 5.2rem !important; 
    }

    #trzecia .dymek {
        font-size: 1.1rem !important; 
        padding: 1.3rem 1.1rem !important;
        border-radius: 18px !important;
        line-height: 1.35 !important;
    }

     /* ----SEKCJA 5----- */
    #piata {
        padding: 8rem 4rem; 
    }
    
    #piata .kontener-tresc {
        gap: 0; 
    }

    #piata h2 {
        font-size: 5rem; 
    }

    
    #piata .boczny-akcent {
        position: static !important; 
        border-left: none !important; 
        border-top: 1px solid #555555 !important; 
        
        padding-left: 0 !important;
        padding-top: 1rem !important; 
        margin: 2.5rem 0 4rem 0 !important; 
        width: 100%;
    }

    #piata .pionowy-tekst {
        writing-mode: horizontal-tb !important; 
        transform: none !important; 
    }

    
    #piata .akapit {
        max-width: 450px; 
    }
    #piata .p-srodkowy { margin-left: 10% !important; }
    #piata .p-prawy    { margin-left: 35% !important; } 
    #piata .p-lewy     { margin-left: 0 !important; }

     /* ----SEKCJA 4----- */
    #czwarta {
        gap: 1.2rem; 
    }
    .pasek {
        font-size: 7.5rem; 
    }
    .pasek img {
        height: 6.5rem; 
        margin: 0 2.5rem;
    }
    .tylko-mobile {
        display: flex !important; 
    }

     /* ----SEKCJA 6----- */
    .kontener-chmura {
        gap: 1.2rem 0.8rem; 
    }
    .slowo {
        font-size: 1.8rem; 
        padding: 0.5rem 1.4rem; 
    }
    .slowo:hover {
        padding: 0.8rem 2.2rem; 
        margin: 0 0.4rem;
    }
}

/* =========================================================
   RWD - MOBILE (Poniżej 600px)
   ========================================================= */
@media (max-width: 600px) {
    
    body {
        font-size: 1.8rem; 
    }

    h1 {
        font-size: 14rem; 
    }

    h2 {
        font-size: 8rem; 
    }

    h3 {
        font-size: 3.2rem; 
    }

    h5 {
        font-size: 2rem; 
    }
    #pierwsza {
        padding-top: 1rem; 
    }

    nav{
        display: none;
    }
    .burger{
        display: block;
    }

    .tile-02, .tile-03, .tile-06 {
        display: none;
    }
    
    .tile-01, .tile-04, .tile-05 {
        width: 100%;
        height: 31vh; 
    }

    .pudelko-container {
        gap: 1rem;
    }

     /* ----SEKCJA 2----- */
    #druga {
        height: 100vh !important; 
        min-height: 100vh !important;
        padding: 20px !important; 
        box-sizing: border-box !important;
        
        
        display: flex !important;
        justify-content: center !important; 
        align-items: center !important;
        position: relative !important; 
    }

    #druga .kontener {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
    }

    #druga h1 {
        
        font-size: 14vw !important; 
        letter-spacing: -0.05em !important; 
        line-height: 0.95 !important; 
        
        
        margin: 0 0 25px 0 !important; 
        text-align: center !important;
        width: 100% !important;
    }

    #druga .obrys {
        -webkit-text-stroke: 1.5px var(--kolor-jasny) !important;
    }

  

    #druga h6 {
        
        position: absolute !important;
        bottom: 4vh !important;
        left: 0 !important;
        width: 100% !important;
        text-align: center !important;
        
        font-size: 12px !important;
        letter-spacing: 0.15em !important;
        color: var(--kolor-jasny) !important;
        opacity: 0.6;
        margin: 0 !important;
        right: auto !important; 
    }
    #druga h4 {
        
        font-size: 19px !important; 
        line-height: 1.45 !important;
        font-style: italic !important;
        color: var(--kolor-sredni) !important;
        text-align: center !important;
        
        
        width: 100% !important; 
        max-width: 100% !important; 
        margin: 0 !important;
        padding: 0 16px !important; 
        text-wrap: balance !important; 
    }

   
    #druga h4 br {
        display: none !important;
    }

     /* ----SEKCJA 5----- */
    #piata {
        padding: 6rem 2rem; 
    }
    
    #piata .boczny-akcent {
        margin: 2rem 0 3rem 0 !important;


    }

    
  #piata h2 {
        font-size: 4.8rem !important; 
        letter-spacing: -0.04em !important; 
        line-height: 1.05 !important; 
    }
    
    #piata .p-srodkowy, 
    #piata .p-prawy, 
    #piata .p-lewy {
        margin-left: 0 !important; 
        max-width: 100% !important;
    }

     /* ----SEKCJA 4----- */
    #czwarta {
        gap: 1.2rem; 
        
       
        padding-left: 0 !important;
        padding-right: 0 !important;
        
        width: 100% !important;
        overflow: hidden !important; 
    }
    
    .pasek {
        font-size: 7.5rem; 
        width: 100% !important;
    }
    .pasek img {
        height: 6.5rem; 
        margin: 0 2.5rem;
    }
    .pasek img {
        height: 4.2rem; 
        margin: 0 1.5rem; 
    }
    .tylko-mobile {
        display: flex !important; 
    }
    .tylko-najmniejsze-mobile {
        display: flex !important; 
    }
    .ruch-lewo { animation-duration: 45s; }
    .ruch-prawo { animation-duration: 45s; }

     /* ----SEKCJA 6----- */
    #szosta {
        padding: 4rem 2rem; 
    }
    .kontener-chmura {
        gap: 1rem 0.6rem; 
    }
    .slowo {
        font-size: 1.4rem; 
        padding: 0.4rem 1rem; 
        border-width: 1px; 
    }
    .kropka {
        font-size: 2rem;
    }
    .slowo:hover {
        padding: 0.5rem 1.4rem; 
        margin: 0 0.2rem;
        transform: scale(1.03);
    }
}