:root {
  /* Kolory */
  --primary-color: #5C4033; /* Ciemny brąz (nawiązanie do drewna) */
  --secondary-color: #FFD700; /* Żółty (złoty) jako akcent */
  --background-color: #f4f4f4; /* Tło strony */
  --text-color: #333; /* Kolor tekstu */
  --light-text-color: #ecf0f1; /* Jasny tekst na ciemnym tle */
  --footer-bg-color: #4B3621; /* Ciemny brąz dla stopki */
  --header-bg-color: #5C4033; /* Ciemny brąz dla nagłówka */
  --cta-bg-color: #FFD700; /* Żółty tło dla sekcji CTA */

  /* Typografia */
  --font-family: 'Roboto', sans-serif;
  --font-size-small: 14px;
  --font-size-medium: 16px;
  --font-size-large: 20px;

  /* Odstępy */
  --spacing-small: 8px;
  --spacing-medium: 16px;
  --spacing-large: 24px;

  /* Inne */
  --border-radius: 8px;
}

/* Reset domyślnych stylów przeglądarki */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  line-height: 1.6;
  background-color: var(--background-color);
  color: var(--text-color);
}


  /* Animacje */

  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateX(-20px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
  /* Animacje */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}


@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes jump {
  0% { transform: translateY(0); }
  30% { transform: translateY(-15px); }
  50% { transform: translateY(0); }
  70% { transform: translateY(-8px); }
  100% { transform: translateY(0); }
}

/* Klasa, która uruchamia animację */
.jump {
  animation: jump 3.6s ease-out;
}
/* ====================================================
 HEADER SECTION
==================================================== */
header.glass-header {
position: relative;
min-height: 700px; /* Minimalna wysokość, która może się zwiększyć */
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;
color: white;
font-size: 2rem;
text-shadow: 1px 1px 2px black;
border-bottom: 10px solid transparent;
border-image: linear-gradient(to right, var(--primary-color), var(--secondary-color)) 1;
padding: 20px; /* Zapewnia miejsce dla zawartości */
}

/* Tło obrazu nagłówka */
.header-background {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
overflow: hidden;
z-index: -1;
}

.header-background img {
width: 100%;
height: 100%;
object-fit: cover;
}

/* Zawartość nagłówka */
.header-content {
position: relative;
z-index: 2;
text-align: center;
background: rgba(0, 0, 0, 0.5);
border-radius: var(--border-radius);
margin: 5vh;
}

header h1 {
  font-size: 4.5rem;
  padding: 20px;
  color: var(--light-text-color);
  text-shadow: 4px 4px 15px rgb(0, 0, 0); 
}

header p {
  font-size: 1.2rem;
  color: var(--light-text-color);
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9);
}

/* ====================================================
 NAWIGACJA (NAVIGATION)
==================================================== */
nav ul {
list-style: none;
display: flex;
justify-content: center;
gap: var(--spacing-medium);
margin-top: var(--spacing-small);
animation: fadeIn 1.5s ease-in-out;
}

nav ul li a {
position: relative;
display: flex;
align-items: center;
gap: var(--spacing-small);
color: #fff;
text-decoration: none;
font-size: var(--font-size-large);
padding: 15px 25px;
background-color: rgba(0, 0, 0, 0.3);
border-radius: var(--border-radius);
transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
overflow: hidden;
}

nav ul li a.active {
background-color: rgba(255, 215, 0, 0.6);
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

nav ul li a:not(.snake-button)::after {
content: "";
position: absolute;
bottom: 0;
left: 0;
height: 2px;
width: 0%;
background-color: var(--secondary-color);
transition: width 0.3s ease;
}

nav ul li a:hover::after {
width: 100%;
}

/* ====================================================
 LOGO
==================================================== */
.logo {
position: absolute;
top: 20px;
left: 20px;
width: 100px;
height: auto;
animation: fadeIn 2s forwards, float 3s ease-in-out infinite;
transition: all 0.4s ease;
}

/* ====================================================
 FOOTER SECTION
==================================================== */
footer {
background: linear-gradient(135deg, var(--footer-bg-color) 0%, #2a1a0f 100%);
color: var(--light-text-color);
padding: var(--spacing-large) 0;
margin-top: var(--spacing-xl);
border-top: 8px solid transparent;
border-image: linear-gradient(to right, var(--secondary-color), var(--primary-color)) 1;
box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
position: relative;
overflow: hidden;
}


.footer-content {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: var(--spacing-large);
max-width: 1400px;
margin: 0 auto var(--spacing-large);
padding: 0 var(--spacing-medium);
position: relative;
z-index: 1;
}

.footer-section {
padding: var(--spacing-large);
background: rgba(255, 255, 255, 0.03);
border-radius: 15px;
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.1);
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
transform-style: preserve-3d;
text-align: center;
}

.footer-section:hover {
transform: translateY(-5px) rotateX(5deg) rotateY(-1deg);
box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
background: rgba(255, 255, 255, 0.05);
}

.footer-section h3 {
font-size: 1.5rem;
font-weight: 600;
margin-bottom: var(--spacing-medium);
position: relative;
display: inline-block;
padding-bottom: var(--spacing-small);
}

.footer-section h3::after {
content: '';
position: absolute;
bottom: 0;
left: 50%;
transform: translateX(-50%);
width: 95%;
height: 3px;
background: var(--secondary-color);
transition: width 0.2s ease;
}

.footer-section p,
.footer-section ul {
line-height: 1.6;
font-size: 0.95rem;
list-style: none;
padding: 0;
}

.footer-section a {
color: rgba(255, 255, 255, 0.8);
display: inline-block;
padding: 0.2rem 0;
transition: color 0.2s ease;
}

.footer-section a:hover {
color: var(--secondary-color);
text-decoration: underline;
}

.social-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
  gap: var(--spacing-medium);
  margin-top: var(--spacing-large);
  list-style: none;
  padding: 0;
}
.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  padding: 0.7rem;
  border-radius: 10%;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.social-links a:hover {
box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

.social-links img {
width: 54px;
height: auto;
vertical-align: middle;
margin-right: 0px;
}

.footer-bottom {
position: relative;
padding-top: var(--spacing-large);
margin-top: var(--spacing-xl);
text-align: center;
border-top: 1px solid rgba(255, 255, 255, 0.1);
max-width: 1200px;
margin: 15px auto 0;
}

.footer-bottom p {
font-size: 0.85rem;
color: rgba(255, 255, 255, 0.7);
}

.footer-bottom .author-info {
font-style: normal;
position: relative;
cursor: pointer;
color: var(--secondary-color);
}

/* ====================================================
 SCROLL TO TOP BUTTON
==================================================== */
.scroll-to-top {
position: fixed;
bottom: 20px;
right: 20px;
width: 50px;
height: 50px;
background-color: var(--secondary-color);
color: #fff;
border: none;
border-radius: 50%;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
cursor: pointer;
display: flex;
justify-content: center;
align-items: center;
font-size: 24px;
transition: opacity 0.3s ease, transform 0.3s ease;
z-index: 1000;
transform: scale(0);
}

.scroll-to-top.hidden {
opacity: 0;
pointer-events: none;
transform: scale(0);
}

.scroll-to-top.visible {
opacity: 1;
pointer-events: auto;
transform: scale(1);
}

.scroll-to-top:hover {
background-color: rgba(255, 204, 0, 0.8);
}

/* ====================================================
 GLOBAL SELECTION
==================================================== */
::selection {
background-color: #ffcc00;
color: black;
}

/* ====================================================
 RESPONSYWNOŚĆ / MEDIA QUERIES
==================================================== */

/* Dostosowanie nagłówka dla urządzeń mobilnych */
@media screen and (max-width: 968px) {
header.glass-header {
  min-height: 120vh;
  padding-top: 60px; /* Miejsce na menu */
  padding-bottom: 20px;
}
}

/* Dodatkowe dostosowanie nagłówka przy bardzo małych urządzeniach */
@media screen and (max-width: 400px) {
header.glass-header {
  min-height: 1500px;
  padding-top: 60px;
  padding-bottom: 20px;
}
}

/* Dostosowanie układu stopki dla tabletów i mniejszych urządzeń */
@media (max-width: 968px) {
.footer-content {
  grid-template-columns: 1fr;
  text-align: center;
}

.footer-section {
  text-align: center;
  padding: var(--spacing-medium) 0;
}

.social-links {
  justify-content: center;
}

.footer-bottom {
  text-align: center;
  align-items: center;
}
}

/* Dostosowanie elementów mobilnych (nagłówek, nawigacja, projekty, galeria, itd.) */
@media (max-width: 968px) {
/* Nagłówek */
header {
  height: 1200px;
  font-size: 1.5rem;
}

header h1 {
  font-size: 3rem;
}

header p {
  font-size: 1rem;
}

.logo {
  width: 60px;
  top: 15px;
  left: 15px;
  z-index: 1;
}

/* Nawigacja i przycisk mobilnego menu */
nav {
  display: none; /* Domyślnie ukryte menu mobilne */
  margin-bottom: var(--spacing-medium);
}

nav.active {
  display: block;
}

nav ul {
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-small);
  padding: 0;
}

nav ul li {
  margin: 10px 0;
  width: 100%;
  text-align: center;
}

nav ul li a {
  font-size: 1.3rem;
  padding: 10px;
  display: block;
  text-decoration: none;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: var(--secondary-color);
}

/* Przycisk toggle menu */
#menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  background-color: rgba(92, 64, 51, 0.1); /* #5C4033 z 80% opacity */
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
  cursor: pointer;
  border-radius: 25px;
  margin: 20px auto;
  font-size: 1.2rem;
  font-weight: bold;
  text-transform: uppercase;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px); /* Efekt glass */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

#menu-toggle:hover {
  background-color: rgba(255, 215, 0, 0.8);
  color: var(--primary-color);
  border-color: var(--primary-color);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
}

#menu-toggle:active {
  transform: scale(0.97);
}

.fas.fa-bars {
  font-size: 1.5rem;
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0.9;
}

#menu-toggle:hover .fa-bars {
  transform: rotate(90deg);
  opacity: 1;
}

.menu-label {
  font-size: 1.2rem;
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Projekty i Galeria */
.project-section h2 {
  font-size: 1.5rem;
}

.project-section p {
  font-size: var(--font-size-small);
}

.gallery {
  grid-template-columns: 1fr;
}

.gallery-item {
  margin-bottom: var(--spacing-medium);
}

#caption {
  font-size: 1rem;
}

.scroll-to-top {
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1.25rem;
}

.slider-container {
  padding: var(--spacing-small);
}

.close,
.prev,
.next {
  font-size: 1.5rem;
  width: 2rem;
  height: 2rem;
}

.counter {
  font-size: 1rem;
  padding: 0.25rem 0.5rem;
}

/* Stopka – układ kolumnowy */
.footer-content {
  flex-direction: column;
  align-items: center;
}

.footer-section {
  flex: 1 1 100%;
  text-align: center;
}

.social-links {
  flex-direction: column;
  align-items: center;
}

.social-links a {
  padding: 10px;
}

.footer-bottom .author-info {
  display: block;
  margin-top: 10px;
  text-align: center;
}
}


nav ul li a:not(.snake-button):hover {
  background-color: rgba(0, 0, 0, 0.5);
  color: var(--secondary-color);
  transform: translateY(-5px);
}


.language-switch {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 5px;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  transition: all 0.3s ease;
}
.language-switch a {
  font-size: 0.9rem;
  padding: 3px 7px;
  text-decoration: none;
  color: white;
  border-radius: 3px;
  transition: background 0.3s;
}
.language-switch a:hover {
 
  background: rgba(255, 215, 0, 0.);
  transform: translateY(-2px);
}

/* Stylizacja banera cookies */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-color);
  color: var(--light-text-color);
  padding: 15px 30px;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  text-align: center;
  font-size: var(--font-size-small);
  display: flex;
  align-items: center;
  gap: 15px;
  opacity: 1;
  transition: opacity 0.5s ease-in-out;
  z-index:1;
}

/* Ukrycie banera po akceptacji */
.cookie-banner.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Stylowanie przycisków */
.cookie-button {
  background: var(--secondary-color);
  color: var(--primary-color);
  border: none;
  padding: 8px 15px;
  cursor: pointer;
  border-radius: var(--border-radius);
  font-weight: bold;
  transition: background 0.3s ease;
}

.cookie-button:hover {
  background: #ffbf00;
}

/* Przycisk odrzucenia cookies */
.cookie-button.decline {
  background: #d9534f;
  color: white;
}

.cookie-button.decline:hover {
  background: #c9302c;
}

/* Styl linku */
.cookie-banner a {
  color: var(--secondary-color);
  text-decoration: underline;
}

.cookie-banner a:hover {
  text-decoration: none;
}

/* Responsywność - dostosowanie banera na urządzenia mobilne */
@media (max-width: 600px) {
  .cookie-banner {
      flex-direction: column;
      gap: 10px;
      padding: 15px;
      width: 90%;
      left: 50%;
      transform: translateX(-50%);
  }
  
  .cookie-banner p {
      margin: 0;
      text-align: center;
      font-size: calc(var(--font-size-small) * 0.9);
  }
  
  .cookie-button {
      width: 100%;
      padding: 10px;
      margin: 0;
  }

  
}

.flag-icon {
  font-size: 24px; /* zmień rozmiar flagi */
  margin-right: 8px;
  vertical-align: middle;
}

nav ul li a.snake-button:hover {
  background-color: rgba(0, 0, 0, 0.5);
  animation: textColorChange 3s ease-in-out infinite;
  transform: scale(1.05);
}

    .snake-button .fa-pencil-alt {
      margin-right: 5px;
    }
    /* Pozycjonowany SVG jako nakładka */
    .snake-border {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      pointer-events: none;
    }
    .snake-border rect {
  fill: none;
  stroke-linecap: round;
  stroke-width: 5;
  /* Wszystkie animacje używają ease-in-out dla bardziej naturalnych przejść */
  animation: snake 16s ease-in-out infinite,
             colorChange 24s ease-in-out infinite,
             dashPattern 32s ease-in-out infinite;
}

/* Animacja przesuwania kreski – zmieniamy wartości w równomiernych odstępach */
@keyframes snake {
  0%   { stroke-dashoffset: 0; }
  20%  { stroke-dashoffset: -56; }
  40%  { stroke-dashoffset: -112; }
  60%  { stroke-dashoffset: -168; }
  80%  { stroke-dashoffset: -224; }
  100% { stroke-dashoffset: -280; }
}

/* Animacja zmieniająca wzór kreski – stosujemy mniej drastyczne zmiany, ale wystarczające by nadać dynamikę */
@keyframes dashPattern {
  0%   { stroke-dasharray: 15 5; }
  20%  { stroke-dasharray: 14 7; }
  40%  { stroke-dasharray: 10 10; }
  60%  { stroke-dasharray: 8 8; }
  80%  { stroke-dasharray: 10 5; }
  100% { stroke-dasharray: 15 5; }
}

/* Animacja zmiany kolorów – przejście od żółtego przez jasne tony do białego i z powrotem */
@keyframes colorChange {
  0%   { stroke: #ffff00; }   /* Żółty (255,255,0) */
  5%   { stroke: #ffe500; }   /* (255,229,0) */
  10%  { stroke: #ffcc00; }   /* (255,204,0) */
  15%  { stroke: #ffb200; }   /* (255,178,0) */
  20%  { stroke: #ff9900; }   /* (255,153,0) */
  25%  { stroke: #ff7f00; }   /* Pomarańczowy (255,127,0) */
  30%  { stroke: #cc6600; }   /* (204,102,0) */
  35%  { stroke: #994c00; }   /* (153,76,0) */
  40%  { stroke: #663300; }   /* (102,51,0) */
  45%  { stroke: #331900; }   /* (51,25,0) */
  50%  { stroke: #000000; }   /* Czarny */
  55%  { stroke: #331900; }   /* Odbicie etapów przed 50% */
  60%  { stroke: #663300; }
  65%  { stroke: #994c00; }
  70%  { stroke: #cc6600; }
  75%  { stroke: #ff7f00; }
  80%  { stroke: #ff9900; }
  85%  { stroke: #ffb200; }
  90%  { stroke: #ffcc00; }
  95%  { stroke: #ffe500; }
  100% { stroke: #ffff00; }   /* Powrót do żółtego */
}
