body {
    font-family: Helvetica, Arial, sans-serif;
    background-color: #f5f5f5;
    background-image: url("images/bg.svg");
    background-repeat: repeat-y;
    background-attachment: fixed;
    background-position: right;
    color: #000000;
    margin: 0;
    padding: 0;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    /*background-color: rgba(245, 245, 245, 0.8);*/
    background: linear-gradient(to bottom, rgba(245, 245, 245, 0.95), rgba(245, 245, 245, 0.85));
    padding: 16px 24px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #c5c5c5;
}

.splash {
    width: 100%;
    background-color: #000;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 350;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 2em;
    text-align: center;
}

.splash h1 {
    font-size: 3em;
    margin-bottom: 0.5em;
}

.splash p {
    font-size: 1.2em;
    display: flex;
}

.splash a {
    color: white;
    text-decoration: underline;
}
a:hover {
    color: #1976d2;
}

.header-title {
    font-size: 24px;
    font-weight: 400;
    letter-spacing: -0.03em;
    margin: 0;
    color: #000000;
}
.header-title a {
    text-decoration: none;
    color: #000000;
}
.header-title a:hover {
    color: #333333;
}

.header-menu {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.header-menu ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.header-menu li {
    margin: 0 16px; /* Odstęp między punktami menu */
}

.header-menu a {
    text-decoration: none;
    color: #000;
    font-size: 16px; /* Rozmiar czcionki zgodnie z Twoim życzeniem */
}

.header-menu a:hover {
    color: #1976d2; /* Niebieski kolor na hover */
}

a span {
    font-size: 12px; /* Mniejszy rozmiar ikony */
    vertical-align: middle; /* Wyrównanie z tekstem */
    margin-left: 4px; /* Odstęp od tekstu linku */
}

footer {
    color: slategrey;
    font-size: 14px;
    text-align: center;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 349;
    background: linear-gradient(to top, rgba(245, 245, 245, 0.7), transparent);
    padding: 16px 24px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #cccccc;
}

#project-navigation {
    display: flex;
    justify-content: space-between;
    width: 85%;
    padding: 0 20px;
}

#prev-project, #next-project {
    flex: 1;
    text-align: right;
    padding-right: 20px;
}

#next-project {
    text-align: left;
    padding-left: 20px;
}
.ne_pr {
    font-size: 17px;
}
/*.my_project_name {
    display: ;
}*/

footer a {
    color: slategrey;
    text-decoration: none;
}

footer a:hover {
    color: #1976d2;
}

h1 {
    display: block;
    font-size: 1.3em;
    font-weight: bold;
    unicode-bidi: isolate;
}
h2 {
    display: block;
    font-size: 2.3em;
    letter-spacing: -0.1;
    font-weight: bold;
    unicode-bidi: isolate;
}


.container {
    display: flex;
    margin-top: 35px;
    min-height: calc(100vh - 70px);
}
.paragrafy {
    color: #5e5e60; /* Apple's preferred gray */
    line-height: 1.47059;
    letter-spacing: -0.022em;
    max-width: 850px;
    margin: 0 auto;
}

.paragrafy h1 {
    font-size: 48px;
    font-weight: 600;
    line-height: 1.08349;
    letter-spacing: -0.003em;
    margin-bottom: 0.4em!important;
    margin-top: 1em!important;
}

.paragrafy h2 {
    font-size: 2em!important;
    font-weight: 600!important;
    line-height: 1.1;
    letter-spacing: 0;
    margin-bottom: 0.4em!important;
    margin-top: 1em!important;
}

.paragrafy h3 {
    font-size: 28px!important;
    font-weight: 600!important;
    line-height: 1.14286;
    letter-spacing: 0.007em;
    margin-bottom: 0.3em!important;
    margin-top: 1em!important;
}

.paragrafy h4 {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.16667;
    letter-spacing: 0.009em;
    margin-bottom: 0.3em!important;
    margin-top: 1em!important;
}

.paragrafy h5, .paragrafy h6 {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.011em;
    margin-bottom: 0.3em;
}

.paragrafy p {
    font-size: 17px;
    margin-bottom: 1em;
}

.paragrafy strong, .paragrafy b {
    font-weight: 600;
    color: #1d1d1f; /* Darker color for emphasis, Apple style */
}

.paragrafy em, .paragrafy i {
    font-style: italic;
}

.paragrafy a {
    color: #0066cc; /* Apple's link blue */
    text-decoration: none;
}

.paragrafy a:hover {
    text-decoration: underline;
}

.paragrafy ul, .paragrafy ol {
    margin: 0 0 1em 1.2em;
}

.paragrafy li {
    margin-bottom: 0.5em;
    font-size: 17px;
}

.paragrafy small {
    font-size: 12px;
    line-height: 1.33337;
    letter-spacing: -0.01em;
}
.paragrafy img {
    width: 100%;
}

/* Apple often uses subtle transitions */
.paragrafy * {
    transition: color 0.9s ease;
}


#left-menu {
    width: 20%;
    padding: 16px;
    background-color: #fafafa;
    overflow-y: auto;
}

#content {
    margin-left: 21%;
    padding: 77px;
    /*width: 59%;*/
    width: 65%;
    z-index: 1;
}

.menu-item {
    cursor: pointer;
    padding: 8px 16px;
    font-size: 19px;
    line-height: 24px;
}

.submenu {
    display: none;
    padding-left: 24px;
}

.submenu-item {
    cursor: pointer;
    padding: 5px 30px;
    font-size: 14px;
    line-height: 20px;
    border-bottom: 1px solid lightgray;
}

.active {
    font-weight: bold;
    color: #1976d2;
}
#content h1 {
    font-size: 1.1em;
    letter-spacing: -0.025em;
    font-weight: 900;
    margin-bottom: 0.01em;
}

#content h2 {
    font-size: 2.3em;
    letter-spacing: -0.03em;
    font-weight: 900;
    margin-top: 0.2em;
    margin-bottom: 0.1em;

}

#content h3 {
    font-size: 1.5em;
    font-weight: 400;
    margin-top: 0.3em;
}

#content h4 {
    font-size: 21px;
    font-weight: 600;
    margin-bottom: -35px;
    font-variant: all-small-caps;
}

#content p {
    font-size: 1.2em;
    line-height: 1.5em;
    margin-top: 1.5em;
    margin-bottom: 8px;
}

/* Domyślnie 2 kolumny dla desktopa */
.photos-container {
    column-count: 2;
    column-gap: 16px;
    width: 100%;
}

/* Tylko 1 kolumna gdy jest pojedyncze zdjęcie */
.photos-container.single-photo {
    column-count: 1;
}

/* Obrazy wypełniają całą szerokość kolumny */
.content-image {
    width: 100%;
    margin-bottom: 16px;
    display: block;
}

.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1010; /* Wyższy niż nagłówek, żeby był zawsze widoczny */
}

/* Styl dla linii w hamburgerze */
.hamburger span {
    display: block;
    width: 24px;
    height: 3px;
    background-color: #000000;
    margin: 4px 0;
    transition: all 0.3s ease;
}

.desktop-menu {
    position: fixed;
    top: 56px;
    left: 0;
    width: 20%;
    height: calc(100vh - 136px);
    overflow-y: auto;
    background-color: #fafafa;
    padding: 16px;
    padding-bottom: 66px;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #ffffff;
    z-index: 2500;
    overflow-y: auto;
    display: none;
    padding-top: 30px;

    /*padding: 70px 20px 120px 20px;*/
}

.mobile-menu.active {
    display: block;
    font-weight: 200;
    color: black;
}

.mobile-menu .menu-item,
.mobile-menu .submenu-item {
    margin-bottom: 0px;
}

.mobile-menu .submenu:last-child {
    margin-bottom: 205px;
}

.mobile-menu-content {
    padding: 0px 10px 150px 10px;
    box-sizing: border-box;
}

.close-button {
    position: fixed;
    top: 20px;
    font-size: 32px;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background-color: #fff;
    color: #000;
    cursor: pointer;
    z-index: 3000;
    display: none;
}

.mobile-menu.active .close-button {
    display: flex;
    align-items: center;
    justify-content: center;
}

.radio-indicator {
    position: fixed;
    top: 150px;
    right: 0.3%;
    width: 15.5%;
    height: 17px;
    border-radius: 2px;
    box-shadow: 0 0 35px rgba(255, 104, 0, 0.5);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 99;
    pointer-events: none;
    transition: top 0.9s ease;
    text-align: center;
    font-size: 8px;
    padding-top: 6px;
    letter-spacing: 5px;
}

.radio-indicator::before {
    content: '';
    text-align: center;
    font-size: 7px;
    color: #ff6700;
    position: absolute;
    top: 0;
    left: -5px;
    width: 5px;
    height: 25px;
    background: linear-gradient(to right, #ff6700, transparent);
}

.radio-indicator::after {
    content: '';
    position: absolute;
    top: 0;
    right: -5px;
    width: 7px;
    height: 25px;
    background: linear-gradient(to left, #ff6700, transparent);
}

/* Responsywność dla urządzeń mobilnych */
@media screen and (max-width: 960px) {
    .photos-container {
        column-count: 1; /* Zawsze 1 kolumna na mobile */
    }
    
    header {
        /*padding: 16px 24px;*/
        position: fixed; /* Zmiana z relative na fixed */
        top: 0;
        left: 0;
        width: 100%; /* Pełna szerokość ekranu */
        z-index: 1000; /* Zapewnienie, że header jest zawsze na wierzchu */
                padding: 12px 16px; /* Nieco mniejszy padding dla oszczędności miejsca */
        background: rgba(245, 245, 245, 0.7); /* Bardziej jednolite tło */
        backdrop-filter: blur(11px);
        -webkit-backdrop-filter: blur(11px);
    }
    
    .header-menu {
        display: none; /* Ukrywamy menu w headerze */
    }
    .container {
    
    margin-top: 56px;
    
}
    
    .hamburger {
        display: block; /* Pokazujemy hamburger */
        position: absolute; /* Absolutne pozycjonowanie względem nagłówka */
        right: 24px; /* Przysunięcie do prawej strony nagłówka */
        top: 50%; /* Wyśrodkowanie w pionie */
        transform: translateY(-50%); /* Dokładne wyśrodkowanie */
    }
    
    /* Poprawki dla mobilnego menu po otwarciu */
    .mobile-menu.active {
        display: block;
    }
    
    .close-button {
        right: 24px; /* Upewniamy się, że przycisk zamykania jest widoczny */
        top: 24px;
    }
    
    .desktop-menu {
        display: none;
    }
    
    #content {
        margin-left: 0;
        width: 100%;
        padding: 22px;
        z-index: 1;

    }
    #content h2 {
        font-size: 2.2em;
        letter-spacing: -0.03em;
}
    .radio-indicator {
        letter-spacing: 0px;
    }

}

@media (max-width: 1600px) {
    .radio-indicator {
        letter-spacing: 3px;
    }
        .paragrafy h1 {
    font-size: 35px;
    }

    .paragrafy h2 {
        font-size: 29px;
    }
    .paragrafy h3 {
    font-size: 1.55em !important;
    font-weight: 400 !important;
    line-height: 1.4em;

    }
    .paragrafy h4 {
        font-size: 21px;
    }
    .paragrafy img {
        width: 100%;
    }
}

/* Add these styles to style.css */
.language-switcher {
    display: flex;
    align-items: center;
    margin-right: 36px;
    cursor: pointer;
}

.lang-option {
    padding: 4px 6px;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    transition: color 0.3s ease;
}

.lang-option.active {
    color: #000;
    font-weight: 700;
}

.lang-option:hover {
    color: #1976d2;
}

.lang-separator {
    margin: 0 4px;
    color: #999;
}

/* Update responsive styles to account for language switcher */
@media screen and (max-width: 960px) {
    .language-switcher {
        position: absolute;
        right: 28px;
        top: 50%;
        transform: translateY(-50%);
    }
}

/* Poprzedni kod CSS pozostaje bez zmian, dodaję tylko styl dla loadera na końcu */

/* Loader */
.loader {
    display: none; /* Domyślnie ukryty */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    color: #1976d2;
    text-align: center;
    z-index: 2000;



    
    padding: 20px;
 
}

.loader.active {
    display: block;
}

/* Poprzedni kod CSS... */

.startinfo {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Efekt starego TV z zewnętrznym plikiem SVG */
.video-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url(images/pixel.svg);
  background-repeat: repeat;
  background-size: auto 38px; /* ustawienie wysokości elementu na 8px */
  opacity: 0.4;
  pointer-events: none;
  z-index: 2;
  mix-blend-mode: multiply;
}

/* Linie skanowania */
.video-container::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0px,
    rgba(0, 0, 0, 0) 1px,
    rgba(0, 0, 0, 0.1) 1px,
    rgba(0, 0, 0, 0.1) 2px
  );
  pointer-events: none;
  z-index: 3;
  opacity: 0.3;
}

.textinfo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 4; /* nad efektami TV */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8), 0 0 5px rgba(255, 255, 255, 0.4);
}

/* Dodatkowy efekt migotania */
@keyframes flicker {
  0% { opacity: 0.97; }
  5% { opacity: 0.95; }
  10% { opacity: 0.97; }
  15% { opacity: 0.96; }
  20% { opacity: 0.97; }
  25% { opacity: 0.96; }
  30% { opacity: 0.97; }
  35% { opacity: 0.95; }
  40% { opacity: 0.98; }
  45% { opacity: 0.96; }
  50% { opacity: 0.98; }
  55% { opacity: 0.95; }
  60% { opacity: 0.97; }
  65% { opacity: 0.96; }
  70% { opacity: 0.99; }
  75% { opacity: 0.95; }
  80% { opacity: 0.97; }
  85% { opacity: 0.95; }
  90% { opacity: 0.98; }
  95% { opacity: 0.96; }
  100% { opacity: 0.97; }
}

.video-container {
  animation: flicker 0.5s infinite alternate;
}
.textinfo h1 {
  margin-bottom: 20px;
  font-size: 4.5em;
}

.textinfo p {
  /*margin-bottom: 25px;*/
  font-size: 1.8em;
}

.textinfo button {
  padding: 10px 20px;
  font-size: 1rem;
  background-color: #000;
  color: white;
  border: 1px solid white;
  border-radius: 35px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.textinfo button:hover {
  background-color: #fff;
  color: #000;
}

/* Poprawka dla urządzeń mobilnych */
@media (max-width: 1024px) {
  .textinfo h1 {
    font-size: 2.8rem;
  }
  
  .textinfo p {
    font-size: 1.7rem;
  }
  .my_project_name {
    display: none;
  }
  .radio-indicator {
    display: none;
  }
  #project-navigation {
    width: 100%;
  }
}

/* Ustawienie box-sizing dla spójności */
* {
  box-sizing: border-box;
}

/* Kontener kart z układem flexbox */
.cards-container {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}

/* Styl dla pojedynczej karty */
.card {
  position: relative;
  width: 33.3%; /* 4 karty w rzędzie na dużych ekranach */
  margin: 0;
  padding: 0;
  opacity: 0.95; /* Start z niewidocznym dla efektu fade-in */
  transition: opacity 0.5s ease-in-out; /* Płynny efekt fade-in */
}

/* Utrzymanie kwadratowego kształtu i wypełnienie zdjęciem */
.aspect-ratio-box {
  display: block;
  padding-bottom: 100%; /* Tworzy kwadrat (wysokość = szerokość) */
  background-size: cover;
  background-position: center;
  transition: transform 0.3s ease; /* Płynne powiększenie przy hover */
}

/* Efekt hover: powiększenie */
.card:hover .aspect-ratio-box {
  transform: scale(1.01); /* Powiększenie o 1% */
}

/* Wyśrodkowanie tekstu i strzałki */
.content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none; /* Kliknięcia przechodzą na link poniżej */
}

/* Styl dla tekstu */
.text {
  color: white;
  text-shadow: 1px 1px 2px black;
  font-size: 18px;
}

/* Styl dla strzałki */
.arrow {
  color: white;
  font-size: 24px;
  margin-top: 5px;
}

/* Responsywność */
@media (max-width: 1200px) {
  .card {
    width: 33.33%; /* 3 karty w rzędzie */
  }
}

@media (max-width: 768px) {
  .card {
    width: 50%; /* 2 karty w rzędzie */
  }
}

@media (max-width: 480px) {
  .card {
    width: 100%; /* 1 karta w rzędzie */
  }
}

/* Efekt fade-in dla kart w polu widzenia */
.card.visible {
  opacity: 1;
}
