@import url("https://fonts.googleapis.com/css2?family=Pixelify+Sans:wght@400..700&display=swap");
* {
  font-family: "Pixelify Sans", serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body,
html {
  max-width: 100%;
  overflow-x: hidden;
  background-color: #1a002b;
}

::selection {
  background-color: rgba(26, 0, 43, 0.4);
}
nav {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #1a002b;
  padding: 20px 0;
  margin: 0 auto;
  position: sticky;
  top: 0;
  z-index: 1000;
  /* Opcjonalnie: tło i cień */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

/* Efekt odpinania dla desktopu */
nav.detached {
  background-color: rgba(26, 0, 43, 0.97);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* Na telefonach wyłączamy efekt odpinania */
@media (max-width: 768px) {
  nav {
    position: static;
  }

  nav.detached {
    transform: translateY(0) !important;
    background-color: #1a002b !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3) !important;
  }
}

/* Wyłączamy sticky dla telefonów i tabletów */
@media (max-width: 1024px) {
  nav {
    position: static;
    /* Opcjonalnie możesz zmienić padding, margin, etc. */
  }

  nav.detached {
    transform: translateY(0) !important;
    background-color: #1a002b !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3) !important;
  }
}

/* Pozostałe reguły, np. linki */
nav > a {
  color: #cccccc;
  text-decoration: none;
  margin: 0 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  font-size: 1.7rem;
}

nav > a:hover {
  color: #33ff33;
  animation: glitch 0.2s;
  text-decoration: underline;
  text-underline-offset: 6px;
}

@keyframes glitch {
  0% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(-2px, 2px);
  }
  50% {
    transform: translate(2px, -2px);
  }
  75% {
    transform: translate(-2px, -2px);
  }
  100% {
    transform: translate(0, 0);
  }
}
#badge {
  color: #fff;
  background: rgba(26, 0, 43, 0.5);
  padding: 15px 30px;
  border-radius: 25px;
  box-shadow: 0 0 5px #8000ff;
  display: inline-block;
  animation: pulse 2s infinite;
  font-size: 0.65rem;
  margin: 20px;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 5px #8000ff;
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 0 20px #8000ff;
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 5px #8000ff;
  }
}
span {
  color: #33ff33;
}
header {
  padding: 70px;
  background-image: url(mainbgc.png);
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: row;
  width: 100%;
}

p {
  color: #fff;
  font-size: 1.4rem;
  background: rgba(26, 0, 43, 0.4);
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  line-height: 1.6;
  text-align: justify;
  margin: 20px 0;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}
a.button {
  display: inline-block;
  padding: 15px 30px;
  margin: 10px;
  font-size: 1.2rem;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  color: #fff;
  background-color: #1a002b;
  border: 2px solid #1a002b;
  border-radius: 25px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

a.button:hover {
  background-color: #33ff33;
  color: #1a002b;
  border-color: #33ff33;
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}
#image {
  transform: scale(1.3);
  transform-origin: center;
  animation: retro-glitch 1s;
}

@keyframes retro-glitch {
  0% {
    transform: scale(1.3) translate(0, 0);
    clip-path: inset(0 0 0 0);
  }
  20% {
    transform: scale(1.3) translate(-5px, 5px);
    clip-path: inset(10% 0 0 0);
  }
  40% {
    transform: scale(1.3) translate(5px, -5px);
    clip-path: inset(0 0 10% 0);
  }
  60% {
    transform: scale(1.3) translate(-5px, -5px);
    clip-path: inset(0 10% 0 0);
  }
  80% {
    transform: scale(1.3) translate(5px, 5px);
    clip-path: inset(0 0 0 10%);
  }
  100% {
    transform: scale(1.3) translate(0, 0);
    clip-path: inset(0 0 0 0);
  }
}

main {
  background-color: #1a002b;
  color: #fff;
  padding: 20px;
}

/* Styl sekcji narzędzi */
#tools {
  background-color: #33ff33; /* Tło sekcji */
  padding: 20px;
  border-radius: 15px;
  margin: 20px auto;
  max-width: 800px;
}

#tools > h2 {
  color: #1a002b;
  text-align: center;
  margin-bottom: 20px;
  font-size: 2rem;
}

/* Kontener na elementy technologii */
.toolscontent {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  padding: 0 20px;
}

/* Pojedynczy element technologii – ciemniejszy odcień */
.tech-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: rgba(26, 0, 43, 0.7);
  padding: 15px;
  border-radius: 10px;
  color: #fff;
  font-weight: bold;
  font-size: 16px;
  text-align: center;
}

/* Ikony SVG */
.tech-item img {
  width: 24px;
  height: 24px;
  margin-bottom: 8px;
  transition: transform 0.2s;
}

.tech-item img:hover {
  transform: scale(1.1);
}

/* Pasek postępu */
/* Pasek postępu – kontener */
.progress {
  position: relative;
  width: 100%;
  height: 12px;
  background-color: #444;
  border-radius: 6px;
  overflow: hidden;
  margin-top: 10px;
}

/* Bazowy styl dla pasków (bez animacji) */
.progress-bar {
  height: 100%;
  border-radius: 6px;
  background-image: linear-gradient(
    135deg,
    #2ecc2e 25%,
    #27ae60 25%,
    #27ae60 50%,
    #2ecc2e 50%,
    #2ecc2e 75%,
    #27ae60 75%,
    #27ae60
  );
  background-size: 20px 20px;
  width: 0;
}

/* Animacje – włączane po dodaniu klasy .animate */
.animate.progress-bar.html {
  animation: loadProgressHtml 2s forwards, moveStripes 2s linear infinite;
}

.animate.progress-bar.css {
  animation: loadProgressCss 2s forwards, moveStripes 2s linear infinite;
}

.animate.progress-bar.js {
  animation: loadProgressJs 2s forwards, moveStripes 2s linear infinite;
}

.animate.progress-bar.react {
  animation: loadProgressReact 2s forwards, moveStripes 2s linear infinite;
}

.animate.progress-bar.node {
  animation: loadProgressNode 2s forwards, moveStripes 2s linear infinite;
}

.animate.progress-bar.wordpress {
  animation: loadProgressWordPress 2s forwards, moveStripes 2s linear infinite;
}

.animate.progress-bar.AI {
  animation: loadProgressAI 2s forwards, moveStripes 2s linear infinite;
}

/* Kluczowe klatki animacji pozostają bez zmian */
@keyframes moveStripes {
  to {
    background-position: 20px 0;
  }
}

@keyframes loadProgressHtml {
  from {
    width: 0;
  }
  to {
    width: 85%;
  }
}

@keyframes loadProgressCss {
  from {
    width: 0;
  }
  to {
    width: 80%;
  }
}

@keyframes loadProgressJs {
  from {
    width: 0;
  }
  to {
    width: 65%;
  }
}

@keyframes loadProgressReact {
  from {
    width: 0;
  }
  to {
    width: 15%;
  }
}

@keyframes loadProgressNode {
  from {
    width: 0;
  }
  to {
    width: 10%;
  }
}

@keyframes loadProgressWordPress {
  from {
    width: 0;
  }
  to {
    width: 80%;
  }
}

@keyframes loadProgressAI {
  from {
    width: 0;
  }
  to {
    width: 35%;
  }
}

#tools > h2 {
  position: relative;
  font-size: 2.8rem;
  text-transform: uppercase;
  letter-spacing: 5px;
  color: #1a002b;
  overflow: hidden;
}

/* Pseudo-elementy do efektu glitch */
#tools > h2::before,
#tools > h2::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: inherit;
  color: inherit;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

/* Górna część - animacja raz, a na końcu zanika */
#tools > h2::before {
  left: 2px;
  text-shadow: -2px 0 red;
  clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
  animation: glitchTop 2s linear infinite;
}

/* Dolna część - animacja raz, a na końcu zanika */
#tools > h2::after {
  left: -2px;
  text-shadow: -2px 0 blue;
  clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
  animation: glitchBottom 2s linear infinite;
}

@keyframes glitchTop {
  0% {
    transform: translate(0);
    opacity: 1;
  }
  20% {
    transform: translate(-2px, -2px);
    opacity: 1;
  }
  40% {
    transform: translate(-2px, 2px);
    opacity: 1;
  }
  60% {
    transform: translate(2px, -2px);
    opacity: 1;
  }
  80% {
    transform: translate(2px, 2px);
    opacity: 1;
  }
  100% {
    transform: translate(0);
    opacity: 0;
  }
}

@keyframes glitchBottom {
  0% {
    transform: translate(0);
    opacity: 1;
  }
  20% {
    transform: translate(2px, 2px);
    opacity: 1;
  }
  40% {
    transform: translate(2px, -2px);
    opacity: 1;
  }
  60% {
    transform: translate(-2px, 2px);
    opacity: 1;
  }
  80% {
    transform: translate(-2px, -2px);
    opacity: 1;
  }
  100% {
    transform: translate(0);
    opacity: 0;
  }
}

/* Dostosowanie stopki */
footer {
  background-color: #33ff33;
  color: #fff;
  text-align: center;
  padding: 10px 0; /* zmniejszony padding */
}

footer > p,
footer > a.shoot-mail {
  margin: 0;
  padding: 0;
}

footer > a {
  color: #1a002b;
  text-decoration: none;
  font-size: 1.5rem;
}

.showroom {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  text-align: center;
  margin-top: 35px;
  /* Ustawienie domyślnego tła */
  --bg-image: url("casacvistas.png");
}

.showroom::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-image) no-repeat center center;
  background-size: cover;
  filter: blur(7px); /* Obraz jest rozmyty */
  z-index: -1;
}

.showroom .project-content {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 20px;
}

.showroom .card {
  width: 550px; /* Ustawienie mniejszej szerokości */
  background-color: #fff; /* Opcjonalnie, możesz zmienić kolor tła */
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  text-align: center;
}

.card img {
  width: 100%;
  height: auto;
  transform: scale(1);
  transition: transform 0.3s;
  border-bottom: 1px solid #eee;
  margin-bottom: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.card img:hover {
  transform: scale(1.2);
}

.card .card-content h3 {
  font-size: 1.2rem;
  margin: 10px 0;
}

.card .card-content p {
  font-size: 1rem;
  margin-bottom: 15px;
}

.card .card-content .button {
  padding: 8px 16px;
  background-color: #33ff33;
  color: #1a002b;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.2s;
}

.card .card-content .button:hover {
  background-color: #27ae60;
}

.showroom {
  position: relative;
  z-index: 0;
}

.showroom > h2 {
  color: #fff;
  font-size: 2.5rem;
  margin-bottom: 20px;
  background: rgba(26, 0, 43, 0.7);
}

.showroom > h2:hover {
  color: #33ff33;
  animation: glitch 0.2s;
}

.showroom {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  text-align: center;
  margin-top: 35px;
}

/* Style dla strzałek przewijania */
.scroll-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  color: #fff;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 15px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 1;
  user-select: none;
}

.scroll-arrow.left {
  left: 10px;
}

.scroll-arrow.right {
  right: 10px;
}
#pagename {
  color: #33ff33;
  font-size: 2.5rem;
  display: inline-block;
}
#pagename > p {
  text-align: center;
  padding: 10px;
  background: rgba(26, 0, 43, 0.7);
}
#tech > img {
  width: 75px;
  height: 75px;
  margin-bottom: 20px;
}
.card-content > p {
  margin: 0;
}

#cardheader:hover {
  color: #33ff33;
  animation: glitch 0.2s;
  background-color: #1a002b;
}
/* Dodaj pozycjonowanie i przejścia dla #pagename */
#pagename {
  position: relative;
  z-index: 1;
  overflow: hidden;
  transition: transform 0.5s ease;
}

/* Zapewniamy, że tekst w <p> pozostaje na wierzchu */
#pagename > p {
  position: relative;
  z-index: 2;
  transition: color 0.5s ease;
}

/* Pseudo-element z gradientem przesuwającym się przy hover */
#pagename::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(51, 255, 51, 0.2),
    rgba(51, 255, 51, 0.5)
  );
  transform: skewX(-20deg);
  transition: left 0.5s ease;
  z-index: 1;
}

/* Efekty przy hover */
#pagename:hover {
  transform: scale(1.1);
}

#pagename:hover::before {
  left: 100%;
}

#pagename:hover > p {
  color: #33ff33;
}

footer a.shoot-mail {
  position: relative;
  display: inline-block;
  overflow: hidden;
}

/* Używamy pseudo-elementu ::before do renderowania efektu fajerwerków */
footer a.shoot-mail::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  background-color: #ffea00;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
}

/* Efekt fajerwerków z wieloma cząsteczkami przy użyciu box-shadow */
footer a.shoot-mail:hover::before {
  animation: multiFirework 0.8s forwards;
}

@keyframes multiFirework {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    box-shadow: none;
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
    /* Box-shadow odpowiada za wiele cząsteczek rozchodzących się od środka */
    box-shadow: 5px 5px 0 0 #ffea00, -5px 5px 0 0 #ffea00, 5px -5px 0 0 #ffea00,
      -5px -5px 0 0 #ffea00, 8px 0 0 0 #ffea00, -8px 0 0 0 #ffea00,
      0 8px 0 0 #ffea00, 0 -8px 0 0 #ffea00;
  }
}
footer > p {
  text-align: center;
}
.heart {
  display: inline-block;
  animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
  0%,
  100% {
    transform: scale(1);
  }
  25% {
    transform: scale(1.2);
  }
  50% {
    transform: scale(0.9);
  }
  75% {
    transform: scale(1.1);
  }
}
/* ----------------------------------------------------
   Media Queries dla urządzeń mobilnych (max-width: 768px)
------------------------------------------------------- */
@media (max-width: 768px) {
  /* Nawigacja */
  nav {
    flex-direction: column;
    padding: 10px 0;
    position: static;
  }

  nav > a {
    margin: 5px 0;
    font-size: 1.5rem;
  }

  /* Header */
  header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 30px 20px;
  }

  header .content {
    width: 100%;
  }

  #image {
    margin-top: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  #image img {
    max-width: 90%;
    height: auto;
  }

  /* Główna treść */
  main {
    padding: 10px;
  }

  p {
    font-size: 1rem;
    padding: 10px;
  }

  a.button {
    padding: 10px 20px;
    margin: 5px;
    font-size: 1rem;
  }

  /* Sekcja narzędzi */
  #tools {
    padding: 20px 10px;
    margin: 20px 10px;
    max-width: 100%;
  }

  #tools > h2 {
    font-size: 2rem;
  }

  /* Kontener na elementy technologii */
  .toolscontent {
    /* Po zmianie na flexbox zapewniamy kolumnowy układ na mobilnych */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
  }

  .tech-item {
    width: 100%;
    max-width: 300px;
    margin-bottom: 15px;
    padding: 15px;
  }

  /* Pasek postępu */
  .progress {
    height: 10px;
  }
}

@media (max-width: 768px) {
  .card .card-content p {
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    font-size: 0.9rem;
    line-height: 1.4;
  }
}

/* ----------------------------------------------------
   Media Queries dla tabletów (max-width: 1024px)
------------------------------------------------------- */
@media (max-width: 1024px) and (min-width: 769px) {
  /* Nawigacja */
  nav {
    padding: 15px 0;
  }

  nav > a {
    margin: 0 8px;
    font-size: 1.6rem;
  }

  /* Header */
  header {
    padding: 50px 30px;
    flex-direction: column;
    text-align: center;
  }

  #image {
    width: 100%;
    margin-top: 15px;
    display: flex;
    justify-content: center;
  }

  #image img {
    max-width: 95%;
    height: auto;
  }

  /* Główna część */
  main {
    padding: 15px;
  }

  p {
    font-size: 1.2rem;
    padding: 12px;
  }

  a.button {
    padding: 12px 25px;
    font-size: 1.2rem;
  }

  /* Sekcja narzędzi */
  #tools {
    padding: 20px 15px;
    margin: 20px 15px;
    max-width: 90%;
  }

  #tools > h2 {
    font-size: 2.2rem;
  }

  /* Kontener na elementy technologii */
  .toolscontent {
    /* Zachowujemy układ flex, ale elementy mogą rozdzielać się na 2 kolumny, jeśli szerokość pozwala */
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 15px;
    padding: 0 15px;
  }

  .tech-item {
    flex: 1 1 200px;
    max-width: 250px;
    margin-bottom: 15px;
    padding: 15px;
  }

  /* Pasek postępu */
  .progress {
    height: 12px;
  }
}

/* Dodatkowa sekcja dla mniejszych urządzeń (np. telefony < 480px) */
@media (max-width: 480px) {
  /* Obrazy wypełniają szerokość rodzica */
  img {
    max-width: 100%;
    height: auto;
  }

  /* Nawigacja – linki jeszcze mniejsze, jeśli potrzeba */
  nav > a {
    padding: 8px 12px;
    font-size: 1.2rem;
  }

  header {
    padding: 20px;
  }

  /* Główna treść */
  main {
    padding: 10px;
  }

  p {
    font-size: 0.9rem;
    line-height: 1.4;
  }

  /* Przyciski mobilne */
  a.button {
    font-size: 1rem;
    padding: 10px 15px;
    margin: 5px;
  }

  /* Karty projektów w showroom mogą się ułożyć kolumnowo */
  .showroom .project-content {
    flex-direction: column;
    align-items: center;
  }

  .card {
    width: 90%;
    margin-bottom: 20px;
  }

  .card .card-content p {
    font-size: 0.8rem;
    line-height: 1.4;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    margin: 0 0 10px;
  }
  .showroom .project-content {
    width: 100%;
    max-width: 100%;
  }

  .showroom .card {
    width: 100%;
    max-width: 100%;
    margin: 0 auto 20px;
  }
}

/* Stylizacja dla strony error404 */
#error404 {
  background: linear-gradient(135deg, #1a002b, #330033);
  color: #fff;
  text-align: center;
  padding: 100px 20px;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: fadeInBounce 1s ease-out;
}

#error404 header h2 {
  font-size: 4rem; /* Większy rozmiar czcionki */
  margin-bottom: 30px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
  text-align: center;
  background: rgba(0, 0, 0, 0.5); /* Tło dla lepszej czytelności */
  padding: 30px 40px; /* Zwiększone paddingi */
  border-radius: 10px;
  letter-spacing: 2px;
  color: #ffea00; /* Zmieniony kolor nagłówka */
}

#error404 main p {
  font-size: 1.8rem; /* Większy rozmiar tekstu */
  margin-bottom: 40px;
  max-width: 600px;
  line-height: 1.6;
  text-align: center;
  color: #ffffff;
}

#error404 a.button {
  margin-top: 20px;
  padding: 15px 30px;
  font-size: 1.5rem; /* Większa czcionka przycisku */
  text-transform: uppercase;
  border: 2px solid #33ff33;
  background-color: transparent;
  color: #33ff33;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  display: inline-block;
}

#error404 a.button:hover {
  background-color: #33ff33;
  color: #1a002b;
}

/* Animacja fadeIn z lekkim efektem bounce */
@keyframes fadeInBounce {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.05);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Loader – pełnoekranowa nakładka */
#page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(26, 0, 43, 1); /* lekko przyciemnione tło */
  z-index: 9999; /* wyższy niż reszta elementów */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Element spinnera */
#page-loader .spinner {
  width: 80px;
  height: 80px;
  border: 10px solid #7b00b1; /* obramowanie spinnera */
  border-top: 10px solid #33ff33; /* wyróżnienie górnej części */
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Kluczowe klatki animacji – obrót 360° */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

#page-loader h2 {
  color: #33ff33;
  font-size: 2.5rem;
  display: inline-block;
  text-align: center;
  padding: 10px;
  background: rgba(26, 0, 43, 0.7);
}

/* Media queries dla urządzeń mobilnych */
@media (max-width: 768px) {
  #page-loader .spinner {
    width: 60px;
    height: 60px;
    border: 8px solid #7b00b1;
    border-top: 8px solid #33ff33;
  }

  #page-loader h2 {
    font-size: 2rem;
    padding: 8px;
  }
}

@media (max-width: 480px) {
  #page-loader .spinner {
    width: 40px;
    height: 40px;
    border: 6px solid #7b00b1;
    border-top: 6px solid #33ff33;
  }

  #page-loader h2 {
    font-size: 1.5rem;
    padding: 6px;
  }
}

/* Podstawowe style przycisku hamburgera */
#menu-toggle {
  display: none; /* Ukrywamy przycisk na desktopach */
  flex-direction: column;
  justify-content: space-around;
  width: 35px;
  height: 25px;
  background: transparent;
  border: none;
  cursor: pointer;
  margin-right: 10px;
  z-index: 1500;
}

#menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #ccc;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Pokazujemy hamburgera i ukrywamy linki na telefonach */
@media (max-width: 768px) {
  nav {
    position: relative;
  }

  #menu-toggle {
    display: flex;
  }

  /* Domyślnie linki ukryte */
  nav > a {
    display: none;
  }

  /* Kiedy nawigacja ma klasę .open, pokazujemy linki w formie pionowej */
  nav.open > a {
    display: block;
    background-color: #1a002b;
    margin: 10px 0;
    text-align: center;
  }
}

.aboutcontent {
  padding: 70px;
  background-image: url(aboutbgc.png);
  background-size: cover;
  background-position: center;
  flex-direction: row;
  width: 100%;
}

.abouttextcontent {
  padding: 70px;

  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: row;
  width: 100%;
}

.aboutcontent > #badge {
  display: inline-block;
  color: #fff;
  background: rgba(26, 0, 43, 0.5);
  padding: 15px 30px;
  border-radius: 25px;
  box-shadow: 0 0 5px #8000ff;
  animation: pulse 2s infinite;
  font-size: 1.4rem;
  margin: 20px;
  text-align: center;
}

/* Nowy kontener dla sekcji */
.about-sections {
  width: 100%;
}

/* Kontener dla PASSION oraz What I Bring */
.about-top {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  margin: 45px 0;
}

/* Style dla poszczególnych bloków PASSION oraz What I Bring */
.about-top > section {
  flex: 1 1 calc(50% - 20px);
  background-color: rgba(26, 0, 43, 0.5);
  color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  transform: perspective(800px) rotateY(12deg) translateZ(0);
  transition: transform 0.5s ease, box-shadow 0.3s ease;
}

.about-top > section:hover {
  transform: perspective(800px) rotateY(-5deg) translateZ(30px);
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.7);
}
/* Kontrastowy blok Quote */
#quote {
  background-color: #1a002b;
  color: #ffea00;
  padding: 20px;
  text-align: center;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}
#quote p {
  font-size: 1.2rem;
  font-style: italic;
  margin: 0;
  text-align: center;
}
/* Styl sekcji OFF TOPIC bez animacji */
#offtopic,
#whattolearn {
  background-color: rgba(26, 0, 43, 0.5);
  color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  margin-top: 40px; /* dodatkowy odstęp, jeśli potrzebny */
}

/* Usuń efekty hover, by nie występowały animacje */
#offtopic:hover,
#whattolearn:hover {
  transform: none;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}
#offtopic > h2,
#whattolearn > h2 {
  font-size: 2rem;
  text-align: center;
  margin: 0;
}
#whattolearn > p {
  font-size: 1.2rem;
  text-align: center;
}
li {
  list-style-type: none;
  font-size: 1.5rem;
}
li > img {
  width: 25px;
  height: 25px;
  margin-right: 10px;
}
#techskills {
  text-align: center;
  justify-content: center;
  padding: 20px;
  border-radius: 15px;
  margin: 20px auto;
  max-width: 800px;
  animation: pulseSkill 2s infinite ease-in-out;
}
li > span {
  color: #ffea00;
}

@keyframes pulseSkill {
  0% {
    transform: scale(1);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(51, 255, 51, 0.7);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
  }
}
/* Dostosowanie sekcji About Me dla urządzeń mobilnych */
@media (max-width: 768px) {
  /* Uproszczamy układ kontenerów About Me – zmieniamy kierunek na kolumnowy */
  .aboutcontent,
  .abouttextcontent {
    padding: 30px 20px;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  /* Sekcja About, w której znajdują się bloki PASSION oraz What I Bring */
  .about-top {
    flex-direction: column;
    gap: 20px;
    margin: 30px 0;
  }

  /* Uproszczamy transformacje i zmniejszamy efekt perspective */
  .about-top > section {
    transform: none;
    margin: 0 auto;
    width: 90%;
    max-width: 400px;
  }
}

#projectscontent > #badge {
  font-size: 1.3rem;
}
#projectscontent {
  padding: 70px;
  background-image: url(aboutbgc.png);
  background-size: cover;
  background-position: center;
  flex-direction: row;
  width: 100%;
}

#projectslist {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px;
}

.project-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 15px;
  border-radius: 8px;
  gap: 20px;
}

/* Kontener dla obrazka */
.project-image {
  flex: 0 0 50%;
}

.project-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  transform: perspective(800px) rotateY(5deg) translateZ(0);
  box-shadow: 0 7px 15px rgba(51, 255, 51, 0.5);
}

.project-image img:hover {
  transform: perspective(800px) rotateY(-10deg) translateZ(40px);
  box-shadow: 0 9px 27px rgba(51, 255, 51, 0.7);
}

/* Kontener dla opisu */
.project-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background-color: rgba(26, 0, 43, 0.9);
  border-radius: 10px;
  padding: 15px;
}

.project-info h3 {
  margin: 0;
  font-size: 1.6rem;
  color: #ffea00;
  text-align: center;
}

.project-info p {
  margin: 0;
  font-size: 1.2rem;
  color: #fff;
}

.project-info .button {
  align-self: center;
  padding: 15px 20px;
  background-color: #1a002b;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.project-info .button:hover {
  background-color: #33ff33;
}

/* Responsywne zmiany dla sekcji PROJECTS */
@media (max-width: 768px) {
  /* Uproszczenie układu całości sekcji */
  #projectscontent {
    flex-direction: column;
    align-items: center;
    padding: 30px 10px;
  }

  /* Upewnij się, że lista projektów zajmuje pełną szerokość */
  #projectslist {
    width: 100%;
    gap: 15px;
  }

  /* Każda karta projektu układa się pionowo */
  .project-card {
    flex-direction: column;
    width: 100%;
    padding: 10px;
  }

  /* Obrazek i opis zajmują pełną szerokość */
  .project-image,
  .project-info {
    width: 100%;
    flex: unset;
  }

  /* Opcjonalnie: zmniejsz efekt transformacji na mobile */
  .project-image img {
    transform: perspective(800px) rotateY(0deg) translateZ(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
}
.experiencecontent {
  padding: 70px;
  background-image: url(aboutbgc.png);
  background-size: cover;
  background-position: center;
  flex-direction: row;
  width: 100%;
}
/* Stylizacja sekcji #schoolblock */
#schoolblock {
  background-color: rgba(26, 0, 43, 0.8);
  padding: 30px;
  border-radius: 12px;
  margin: 20px 0;
  color: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
  border: 2px solid rgba(51, 255, 51, 0.5);
  animation: fadeInUp 1s ease-out both;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#schoolblock:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.8);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

#schoolblock h2 {
  margin-bottom: 10px;
  font-size: 2rem;
}

#schoolblock span {
  display: block;
  margin-bottom: 10px;
  font-style: italic;
  font-size: 1.1rem;

  display: inline-block;
}

#schoolblock p {
  margin-bottom: 15px;
  line-height: 1.5;
}

#schoolblock ul {
  list-style-type: disc;
  margin-left: 20px;
  margin-top: 10px;
}

#schoolblock li {
  margin-bottom: 5px;
  font-size: 1.2rem;
}
#schoolblock h4 {
  font-size: 1.5rem;
}

/* Kontener bloków EXPERIENCE ustawiony jako flex */
.experience {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

/* Ustawienia kontenera doświadczenia */
.experience {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

/* Bloki SCHOOL i WORK będą obok siebie */
#schoolblock,
#workblock {
  flex: 1 1 calc(50% - 10px);
}

/* Blok INTERNSHIP zajmuje cały rząd */
#internshipblock {
  flex: 1 1 100%;
}

.experiencecontent > #badge {
  font-size: 1.3rem;
}

/* Nowy styl dla bloku WORK */
#workblock {
  background-color: rgba(26, 0, 43, 0.8);
  padding: 30px;
  border-radius: 12px;
  margin: 20px 0;
  color: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
  border: 2px solid rgba(51, 255, 51, 0.5);
  animation: fadeInUp 1s ease-out both;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#workblock:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.8);
}

/* Stylizacja elementów wewnątrz bloku WORK */
#workblock h2 {
  margin-bottom: 10px;
  font-size: 2rem;
}

#workblock span {
  display: block;
  margin-bottom: 10px;
  font-style: italic;
  font-size: 1.1rem;
  color: #a0ffa0;
}

#workblock h4 {
  margin-top: 10px;
  font-size: 1.5rem;
  color: #33ff33;
}

#workblock p {
  margin: 15px 0;
  line-height: 1.5;
}

#workblock ul {
  list-style-type: circle;
  margin-left: 20px;
  margin-top: 10px;
}

#workblock li {
  margin-bottom: 5px;
  font-size: 1.2rem;
}

/* Stylizacja sekcji Internship */
#internshipblock {
  background-color: rgba(26, 0, 43, 0.8);
  padding: 30px;
  border-radius: 12px;
  margin: 20px 0; /* Odstęp od innych sekcji */
  color: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
  border: 2px solid #ffea00;
  animation: fadeInUp 1s ease-out both;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#internshipblock:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.8);
}

#internshipblock h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

#internshipblock span {
  display: block;
  font-size: 1.1rem;
  color: #ffea00;
  margin-bottom: 10px;
}

#internshipblock h4 {
  font-size: 1.5rem;
  color: #ffea00;
  margin-bottom: 15px;
}

#internshipblock p {
  line-height: 1.6;
  margin-bottom: 20px;
}

#internshipblock ul {
  list-style-type: circle;
  margin-left: 20px;
  margin-bottom: 20px;
}

#internshipblock ul li {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

@media (max-width: 768px) {
  .experience {
    flex-direction: column;
  }

  #schoolblock,
  #workblock,
  #internshipblock {
    flex: 1 1 100%;
  }
}

#internshipblock span,
#workblock span,
#schoolblock span {
  display: block;
  font-size: 1.1rem;
  color: #a0ffa0; /* Dopasowano kolor do bloku WORK */
  margin-bottom: 10px;
}
strong {
  color: #ffea00;
}

/* Dla urządzeń mobilnych (max-width: 768px) – podstawowe zmiany */
@media (max-width: 768px) {
  .experience {
    flex-direction: column;
    gap: 15px;
  }

  #schoolblock,
  #workblock,
  #internshipblock {
    flex: 1 1 100%;
    margin: 10px 0;
    padding: 20px;
  }

  /* Zmniejszone rozmiary czcionek w nagłówkach i tekstach */
  #schoolblock h2,
  #workblock h2,
  #internshipblock h2 {
    font-size: 1.8rem;
  }

  #schoolblock h4,
  #workblock h4,
  #internshipblock h4 {
    font-size: 1.3rem;
  }

  #schoolblock span,
  #workblock span,
  #internshipblock span {
    font-size: 1rem;
  }

  #schoolblock ul,
  #workblock ul,
  #internshipblock ul {
    margin-left: 15px;
  }

  #schoolblock li,
  #workblock li,
  #internshipblock li {
    font-size: 1rem;
  }
}

/* Dla bardzo małych urządzeń (max-width: 480px) – dodatkowe korekty */
@media (max-width: 480px) {
  #schoolblock,
  #workblock,
  #internshipblock {
    padding: 15px;
    margin: 8px 0;
  }

  #schoolblock h2,
  #workblock h2,
  #internshipblock h2 {
    font-size: 1.6rem;
  }

  #schoolblock h4,
  #workblock h4,
  #internshipblock h4 {
    font-size: 1.2rem;
  }

  #schoolblock span,
  #workblock span,
  #internshipblock span {
    font-size: 0.95rem;
  }

  #schoolblock li,
  #workblock li,
  #internshipblock li {
    font-size: 0.95rem;
    margin-bottom: 8px;
  }
}
