:root {
    /* Kolory */
    --primary-color: #5c4033;
    --secondary-color: #FFD700;
    --background-color: #f4f4f4;
    --text-color: #333;
    --light-text-color: #ecf0f1;
    --footer-bg-color: #4B3621;
    --header-bg-color: #5C4033;
    --cta-bg-color: #FFD700;

    /* 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;
    --spacing-xl: 32px;

    /* 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);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Domyślne ustawienia menu - tryb desktop */
#menu-toggle {
    display: none; /* Hamburger domyślnie ukryty */
}

nav {
    display: block; /* Zwykłe menu widoczne */
    
}



/* Przycisk CTA */
.cta-button {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: var(--primary-color);
    color: white;
    padding: 15px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
    background-color: #555;
}



/* Sekcje */
section {
    padding: var(--spacing-large) var(--spacing-medium);
    background-color: #fff;
    margin: var(--spacing-large) auto;
    max-width: 800px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

section h2 {
    margin-bottom: var(--spacing-large);
    color: var(--primary-color);
    font-size: 2rem;
}

section p {
    margin-bottom: var(--spacing-medium);
    color: var(--text-color);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Opinie klientów */
.testimonials-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    padding: 0 80px;
}

.testimonials-track {
    position: relative;
    height: 200px;
}

blockquote {
    position: absolute;
    width: 100%;
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: var(--border-radius);
    margin: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

blockquote.active {
    opacity: 1;
    transform: translateX(0);
}

blockquote.prev {
    transform: translateX(-100%);
}

.testimonials-nav {
    position: absolute;
    top: 50%;
    left: 10px;
    right: 10px;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.testimonials-nav button {
    pointer-events: all;
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonials-nav button:hover {
    background-color: var(--secondary-color);
}

/* Procesy */
.process-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-medium);
    margin-top: var(--spacing-large);
    flex-wrap: wrap;
}

.step {
    text-align: center;
    flex: 1 1 200px;
}

.step img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 20%;
}

.step p {
    margin-top: var(--spacing-small);
    color: #555;
}

/* CTA */
#cta {
    background: linear-gradient(135deg, #ffcc00, #ff9900);
    padding: 60px 20px;
    text-align: center;
    border-radius: var(--border-radius);
    margin: 40px auto;
}

#cta h2 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 2.5rem;
}

#cta p {
    color: #555;
    margin-bottom: 20px;
    font-size: 1.2rem;
}



/* Pełnoekranowy overlay */
.fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 0;
    margin: 0;
}

.slideshow {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
}

.slideshow-image {
    display: none;
    max-width: 100vw;
    max-height: 100vh;
    width: auto;
    height: auto;
    object-fit: contain;
    animation: fadeIn 0.3s ease-in;
    margin: 0;
    padding: 0;
}


.image-counter {
    position: fixed;
    bottom: 15px;
    color: white;
    font-size: 1.2em;
    text-align: center;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.5);
    padding: 5px 15px;
    border-radius: 20px;
}

.prev-button,
.next-button {
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    padding: 12px;
    font-size: 28px;
    cursor: pointer;
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10001;
    touch-action: manipulation;
}

/* Styl chmurki (komunikatu) */
.message-bubble {
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    padding: 10px 15px;
    border-radius: 10px;
    font-size: 1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    animation: fadeInBubble 0.5s ease;
}

/* Animacja pojawiania się chmurki */
@keyframes fadeInBubble {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}



.prev-button {
    left: 10px;
}

.next-button {
    right: 10px;
}

/* Responsywność dla urządzeń mobilnych */
@media (max-width: 768px) {
    .slideshow-image {
        object-fit: cover;
        width: 100%;
        height: 100%;
    }
    
    .prev-button,
    .next-button {
        width: 35px;
        height: 35px;
        font-size: 24px;
        background-color: rgba(255, 255, 255, 0.9);
    }
    
    .image-counter {
        bottom: 10px;
        font-size: 1em;
    }
}

@media (max-width: 480px) and (orientation: portrait) {
    .slideshow-image {
        object-fit: contain;
    }
    
    .prev-button,
    .next-button {
        top: auto;
        bottom: 20px;
        transform: none;
        background-color: rgba(0, 0, 0, 0.5);
        color: white;
    }
    
    .prev-button {
        left: 20px;
    }
    
    .next-button {
        right: 20px;
    }
}

@media (max-width: 480px) and (orientation: landscape) {
    .slideshow-image {
        object-fit: contain;
        max-width: 100vw;
        max-height: 100vh;
    }
}

.rating-stars {
    color: gold;
    font-size: 1.2em;
    margin-top: 10px;
}



@media (max-width: 968px) {
    /* Nagłówek */
    header {
      height: 1000px;
      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);
    }
    #menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 12px 20px;
        /* Używamy przezroczystej wersji koloru podstawowego */
        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;
        /* Efekt glass - rozmycie tła */
        backdrop-filter: blur(5px);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
      }
      
      #menu-toggle:hover {
        /* Podmieniamy kolor tła na przezroczystą wersję koloru akcentowego */
        background-color: rgba(255, 215, 0, 0.8); /* var(--secondary-color) z 80% opacity */
        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;
    }
  
}
  
  .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;
}

@media (max-width: 768px) {
    /* Zwiększamy minimalną wysokość kontenera opinii */
    .testimonials-container {
      min-height: 250px; /* lub więcej, w zależności od potrzeb */
      padding: 10px;
    }
    
    /* Zwiększamy wielkość gwiazdek i przestrzeń wokół nich */
    .rating-stars {
      font-size: 1.8rem;    /* zwiększona wielkość ikon */
      line-height: 2;       /* wyższa linia, żeby gwiazdki nie były przycinane */
      min-height: 2em;      /* minimalna wysokość kontenera gwiazdek */
      padding: 0.5em 0;     /* dodatkowy odstęp */
    }
    
    /* Opcjonalnie: Zwiększenie przestrzeni w blockquote */
    #testimonials blockquote {
      padding: 10px;
      margin-bottom: 20px;
    }
  }
  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 */
  }
  
