@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700;800;900&display=swap');



* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: 'Montserrat', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* HEADER */
header {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 5%;
    background-color: transparent;
    z-index: 1000;
}

.headerlogo {
    display: flex;
    align-items: center;
}

.headerlogoimg {
    width: 100px;
    height: auto;
    transition: all 0.4s ease-in-out;
}

.headerlogoimg:hover {
    scale: 1.2;
}

.categories {
    display: flex;
    align-items: center;
    gap: 20px;
}

.category, .active {
    font-size: 25px;
    font-weight: 600;
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 200px;
    background: #000000d2;
}



.category:hover {
    background: #5a5a56;
    color: black;
}

.active {
    background-color: yellow;
    color: black;
    transition: ease-out 0.4s;
}
/* SECTIONS */
section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh; 
    padding-top: 80px;
    scroll-margin-top: 80px;
    flex-direction: column; 
}

section .content {
    margin: 0 auto;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

section .content.visible {
    opacity: 1;
    transform: translateY(0);
}

section h1 {
    font-size: 40px;
    background-color:yellow;
    border-radius: 30px;
    padding: 10px;
    transition: all 0.4s ease-in-out;
}

.footer-space {
    height: 50vh;
}


#sect1h1 {
    font-size: 18px;
    color: yellow;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

#sect1img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.6);
}


#sect1h2 {
    font-size: 70px;
    color: white;
    font-weight: 800;
    text-align: center;
    margin: 0;
    white-space: normal; /* <<< NAJWAŻNIEJSZE */
    word-break: break-word;
    overflow-wrap: break-word;
  }
  
  #typed-text {
    white-space: normal; /* <<< dodatkowo */
    word-break: break-word;
    overflow-wrap: break-word;
  }
  
  #cursor {
    display: inline;
    font-weight: 100;
    font-size: inherit;
    background: none;
    color: white;
    margin: 0;
    padding: 0;
    width: auto;
    height: auto;
    animation: blink 1s steps(2, start) infinite;
}

#sect2h1{
    top: 20px;
    text-align: center;
}


.card-container {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
}

.card {
    background: rgb(255, 255, 255);
    border-radius: 20px;
    padding: 25px;
    max-width: 300px;
    width: 100%;
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
}

.card-icon {
    width: 60px;
    height: auto;
    margin-bottom: 20px;
}

.card h2 {
    font-size: 22px;
    margin-bottom: 15px;
    font-weight: 800;
}

.card p {
    font-size: 18px;
    margin-bottom: 20px;
    color: #333;
}


.wspolpraca {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 60px;
    flex-wrap: wrap;
    text-align: left;
    max-width: 1200px;
  }
  
  .wspolpraca-left {
    flex: 1 1 300px;
  }
  
  .wspolpraca-left h1 {
    font-size: 38px;
    font-weight: 900;
    line-height: 1.3;
    color: black;
    text-align: center;
  }
  
  .wspolpraca-steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 60px;
    flex: 2 1 600px;
  }
  
  .step {
    max-width: 400px;
  }
  
  .step-number {
    font-size: 36px;
    font-weight: bold;
    color: rgb(172, 172, 0);
    display: block;
    margin-bottom: 10px;
  }
  
  .step h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
  }
  
  .step p {
    font-size: 18px;
    color: #333;
  }
  

  #kontakt {
    background-color: #000000;
    color: rgb(0, 0, 0);
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 80px 20px;
    border-radius: 0;
}

.kontakt-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}


.kontakt-icon {
    width: 150px;
    height: auto;
    margin-top: 20px;
}

.kontakt-tekst {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.6;
    text-align: center;
}

.kontakt-tekst a {
    color: yellow;
    text-decoration: none;
    font-weight: 800;
}

.kontakt-tekst a:hover {
    text-decoration: underline;
}

  
  @keyframes blink {
    to { visibility: hidden; }
  }
  
  /* =========================================
   SEKCJA PROJEKTY (PORTFOLIO WIDEO)
   ========================================= */
.portfolio-container {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
    width: 100%;
}

.portfolio-card {
    background: #111111; /* Bardzo ciemny szary, elegancki */
    border-radius: 20px;
    max-width: 380px; /* Nieco szersze niż zwykłe kafelki, żeby wideo dobrze wyglądało */
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid #333; /* Delikatna ramka odcinająca od tła */
    box-shadow: 0 6px 15px rgba(0,0,0,0.5);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(255, 255, 0, 0.15); /* Żółty glow przy najechaniu */
}

/* Okienko z filmem */
.portfolio-video-wrapper {
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.portfolio-video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Wideo zachowuje proporcje i ucięte jest jak zdjęcie */
    transition: transform 0.6s ease;
}

/* Po najechaniu myszką wideo leciutko się przybliża */
.portfolio-card:hover .portfolio-video {
    transform: scale(1.05);
}

.portfolio-content {
    padding: 25px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1; /* Wypełnia resztę karty */
}

.portfolio-content h2 {
    font-size: 24px;
    margin-bottom: 12px;
    font-weight: 800;
    color: yellow;
}

.portfolio-content p {
    font-size: 16px;
    margin-bottom: 25px;
    color: #dddddd;
    line-height: 1.5;
}

/* Przycisk (na razie atrapa) */
.btn-live {
    display: inline-block;
    margin-top: auto; /* Zawsze spycha przycisk na sam dół kafelka */
    padding: 10px 25px;
    background-color: transparent;
    color: yellow;
    border: 2px solid yellow;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-live:hover {
    background-color: yellow;
    color: black;
}

    /* =========================================
   STOPKA (FOOTER)
   ========================================= */
footer {
    background-color: #050505; /* Prawie czarny, idealnie zgrywa się z sekcją kontakt */
    color: #888888;
    text-align: center;
    padding: 30px 20px;
    border-top: 1px solid #1a1a1a; /* Subtelna linia oddzielająca */
    width: 100%;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.footer-content p {
    font-size: 14px;
    margin: 0;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    color: #888888;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    color: yellow;
    transform: translateY(-2px);
}

    /* =========================================
   POPRAWKA MENU DLA TABLETÓW (iPady) i MAŁYCH LAPTOPÓW
   ========================================= */
@media only screen and (min-width: 769px) and (max-width: 1200px) {
    .categories {
        gap: 10px; /* Zmniejszamy odstępy między zakładkami */
    }

    .category, .active {
        font-size: 16px; /* Zmniejszamy czcionkę, 25px na tablet to za dużo */
        padding: 8px 12px; /* Zmniejszamy żółte/czarne "pudełko" wokół tekstu */
    }

    .headerlogoimg {
        width: 80px; /* Lekko zmniejszamy logo, żeby dać menu więcej oddechu */
    }
}

  @media only screen and (max-width: 768px) {
    .categories {
        display: none;
    }

    .headerlogoimg {
        width: 90px;
    }

    section h1 {
        font-size: 25px;
    }
    
    #sect1h2 {
        font-size: 34px;
    }

    .card-container {
        flex-direction: column;
        align-items: center;
    }


.wspolpraca {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 30px; /* Zmniejszamy przerwę między tytułem a krokami na telefonie */
    }
    
    /* TO JEST KLUCZOWE: zdejmujemy wymuszoną wysokość 300px/600px */
    .wspolpraca-left,
    .wspolpraca-steps {
        flex: 1 1 auto; 
    }

    .wspolpraca-steps {
        grid-template-columns: 1fr;
        gap: 30px; /* Trochę mniejsza przerwa między samymi krokami 1, 2, 3... */
    }
    
      .wspolpraca-left h1 {
        text-align: center;
      }
}

/* ANIMOWANA STRZAŁKA SCROLLOWANIA - WERSJA ŻÓŁTA (KONTRASTOWA) */
.scroll-arrow {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 65px;         /* Duże, widoczne kółko */
    height: 65px;
    background-color: yellow; /* Kolor z Twojego menu */
    border-radius: 50%;  /* Idealne koło */
    display: flex;       /* Używamy flexboxa do wyśrodkowania strzałki w kółku */
    justify-content: center;
    align-items: center;
    z-index: 10;
    animation: bounce 2s infinite;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8); /* Mocny czarny cień odcinający przycisk od tła */
    transition: transform 0.3s ease, background-color 0.3s ease;
}

/* Ustawienie rozmiaru samej ikony SVG wewnątrz kółka */
.scroll-arrow svg {
    width: 35px;
    height: 35px;
    display: block;
}

/* Efekt najechania myszką */
.scroll-arrow:hover {
    background-color: white; 
    transform: translateX(-50%) scale(1.1);
}

/* Animacja podskakiwania */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-15px);
    }
    60% {
        transform: translateX(-50%) translateY(-7px);
    }
}