* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
@font-face {
  font-family: 'Poppins-Bold';
  src: url('/Assets/Fonts/Poppins-Bold.woff2') format('woff2'),
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins-Regular';
  src: url('/Assets/Fonts/Poppins-Regular.woff2') format('woff2'),
  font-weight: normal;
  font-style: normal;
  font-display: swap;

}

:root {
    /* Kolory */
    --primary-color: #0A58BF;
    --header-color: #323232;
    --normaltext-color: #6E6E73;
    --background-color: #fafafa;
    --white-color: #ffffff;
    --shadow-color: rgba(0, 0, 0, 0.05);
    /* Cienie */
    --shadow-offset-x: 0px;
    --shadow-offset-y: 2px;
    --shadow-blur: 4px;
    --text-shadow: 0px 0px 4px rgba(0, 0, 0, 0.2);
    /* Tekst */
    --heading-font: 'Poppins-Bold', sans-serif; /* Poprawiona wartość */
    --heading-weight: bold;
    --heading-size: 24px;
    --heading-color: var(--header-color);

    --text-font: 'Poppins-Regular', sans-serif; /* Poprawiona wartość */
    --text-weight: 400;
    --text-size: 16px;
    --text-color: var(--normaltext-color);
    /* Zaokrąglenia */
    --border-radius: 28px;
    /* Przejrzystość i efekty */
    --nav-background-opacity: rgba(255, 255, 255, 0.4);
    --background-blur: 10px;
    --hover-blur: 6px;
    --hover-overlay: rgba(255, 255, 255, 0.5);
    /* Layout */
    --gap-size: 40px;
    --max-width: 600px;
    --click-scale: 0.95;
    --click-duration: 0.15s;
    --fade-duration: 0.3s; /* Czas animacji zmiany tekstu */

}
body {
    font-family: var(--font-primary);
    background-color: var(--background-color);
    text-align: center;
}
html, body {
    overflow-x: hidden;
    width: 100%;
}
h1, h2, h3 {
    font-family: var(--heading-font);
    font-weight: var(--heading-weight);
    font-size: var(--heading-size);
    color: var(--heading-color);
    margin-bottom: 10px;

}
span {
    color: var(--primary-color);
}
p {
    font-family: var(--text-font);
    font-weight: var(--text-weight);
    font-size: var(--text-size);
    color: var(--text-color);
    max-width: var(--max-width);
    margin: auto;
    text-align:center;  
}
section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
    padding: 100px 16px;
}
  /* Nawigacja */
.navbar {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 1000;
  }
  
  .navbar .container {
    position: relative; /* ważne dla wyśrodkowania nav-menu */
    max-width: 1200px;
    width: 100%;
    height: 56px;
    background: rgba(226, 226, 226, 0.5); /* półprzezroczyste tło */
    backdrop-filter: blur(6px); /* efekt blur */
    box-shadow: var(--shadow-offset-x) var(--shadow-offset-y) var(--shadow-blur) var(--shadow-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    margin: 0 16px;
  }
  
  /* Logo */
  .logo {
    width: 80px;
    height: 26px;
  }
  
  /* Wyśrodkowane menu */
  .nav-menu {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--text-font);
    font-weight: var(--text-weight);
    font-size: var(--text-size);
    color: #464648;
  }
  
  .nav-menu ul {
    list-style: none;
    display: flex;
    align-items: center;
  }
  
  .nav-menu ul li {
    margin: 0 15px;
    position: relative;
  }
  
  .nav-menu ul li a {
    font-family: var(--text-font);
    font-weight: var(--text-weight);
    font-size: var(--text-size);
    color: #464648;
    text-decoration: none;
    padding: 8px 0;
  }
  
  .nav-menu ul li a:hover {
    color: var(--primary-color);
  }
  
  /* Desktop: Ukrywanie podmenu */
  .navbar .nav-menu ul li.dropdown .dropdown-menu {
    display: none;
    position: absolute;
    left: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    list-style: none;
    padding: 10px 10px;
    min-width: 150px;
    z-index: 10;
  }

  .navbar .nav-menu ul li.dropdown .dropdown-menu li a {
    padding: 8px 32px;
    display: block;
    font-family: var(--text-font);
    font-weight: var(--text-weight);
    font-size: var(--text-size);
    color: var(--text-color);
    white-space: nowrap;
    width: 100%;
  }
  
  .navbar .nav-menu ul li.dropdown .dropdown-menu li a:hover {
    background: rgba(0,0,0,0.05);
    color: var(--primary-color);
    border-radius: 10px;
    width: 100%;
  }
  
  /* Dodanie strzałeczki przy opcji "Oferta" */
  .dropdown-arrow {
    width: 12px;
    height: 12px;
    margin-left: 8px;
    vertical-align: middle;
    transition: transform 0.3s ease;
  }
  
  .dropdown.active > a.dropdown-toggle .dropdown-arrow {
    transform: rotate(180deg);
  }
  
  /* Desktop: Pokaż podmenu przy najechaniu */
  @media (min-width: 769px) {
    .navbar .nav-menu ul li.dropdown:hover .dropdown-menu {
      display: block;
    }
    .navbar .nav-menu ul li.dropdown .dropdown-menu {
        left: 50%;
        transform: translateX(-50%);
      }
  }
  
  /* Burger menu */
  .burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    cursor: pointer;
  }
  
  .burger-menu span {
    display: block;
    height: 3px;
    background: #333;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  /* Gdy burger menu ma klasę "open", animujemy paski, aby utworzyły krzyżyk */
.burger-menu.open span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
  }
  
  .burger-menu.open span:nth-child(2) {
    opacity: 0;
  }
  
  .burger-menu.open span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
  }
  
  /* Stylizacja dla urządzeń mobilnych */
  /* Stylizacja dla urządzeń mobilnych */
@media (max-width: 768px) {
    .nav-menu {
      position: fixed;
      top: 66px; /* poniżej głównej nawigacji */
      left: 0;
      width: 100%;
      background: rgba(244, 244, 244, 0.95);
      z-index: 999;
      border-radius: 10px;
      max-height: calc(100vh - 56px); /* Maksymalna wysokość menu = wysokość widoku minus wysokość nagłówka */
      overflow-y: auto;
      /* Początkowy stan animowany */
      visibility: hidden;
      opacity: 0;
      transform: translateY(-20px);
      transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    }
    .nav-menu.active {
      visibility: visible;
      opacity: 1;
      transform: translateY(0);
    }
  
    .nav-menu ul {
      flex-direction: column;
      padding: 10px 0;
    }
  
    .nav-menu ul li {
      margin: 16px 0;
      text-align: center;
    }
  
    /* Burger menu widoczny na urządzeniach mobilnych */
    .burger-menu {
      display: flex;
    }
    .navbar .nav-menu ul li.dropdown.active {
        width: 100%;
    }
    /* Podmenu "Oferta" – usuwamy display: none, ustawiamy zawsze block,
       aby animacja (przez max-height i opacity) działała poprawnie */
    .navbar .nav-menu ul li.dropdown .dropdown-menu {
      position: static;
      display: none; /* Ważne: zawsze block, aby móc animować */
      flex-direction: column;
      box-shadow: none;
      max-height: 0;
      overflow: hidden;
      opacity: 0;
      padding: 0;
      margin: 16px 0 0 0;
      transition: opacity 0.3s ease, max-height 0.3s ease;
    }
    .navbar .nav-menu ul li.dropdown.active .dropdown-menu {
      /* Rozwinięte: dostosuj max-height do zawartości */
      display: block; /* Ważne: zawsze block, aby móc animować */
      max-height: 500px;
      opacity: 1;
    }
    
  }
  
  
  
.contact-section {
    text-align: center;
    padding: 100px 16px 64px 16px;
    max-width: 1200px;
    width: 100%;
    gap: 24px;
}
/* Stylizacja formularza */
.contact-form {
    display: flex;
    flex-direction: column;
    align-items:end;
    gap: 16px;
    width: 100%;
}
.contact-form input,
.contact-form textarea,
.contact-form button {
    padding: 16px 24px;
    border: none;
    border-radius: 16px;
    box-shadow: var(--shadow-offset-x) var(--shadow-offset-y) var(--shadow-blur) var(--shadow-color);
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    background: var(--white-color);
    font-size: var(--text-size);
    font-family: var(--text-font);
    color: var(--text-color);
}
.contact-form textarea {
    height: 200px;
}
.contact-form button {
    background: var(--primary-color);
    color: var(--white-color);
    font-size: var(--text-size);
    font-family: var(--text-font);
    font-weight: var(--text-weight);
    cursor: pointer;
    transition: 0.3s;
    width: auto;
    scale: 1;
    transition: transform 0.2s ease, box-shadow 0.2s ease; 
}
.contact-form button:hover{
    transform: scale(1.05);
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.15);
}
.contact-links {
    display: flex;
    gap: 40px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
    width: 100%;
}
.contact-box {
    width: 100%;
    min-width: 300px;
    max-width: 560px;
    height: 340px;
    background: var(--primary-color);
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    text-decoration: none;
    overflow: hidden; 
    transition: transform 0.2s ease, box-shadow 0.2s ease; 
}
.contact-box:hover{
    transform: scale(1.02);
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.15);
}
.contact-box img {
    width: 64px;
    height: 64px;
}
.contact-box p {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: var(--white-color);
    font-size: var(--text-size);
    font-weight: 200;
    display: flex;
    align-items: center;
    transition: opacity var(--fade-duration) ease;
}
.contact-box p img {
    width: 23px;
    height: 22px;
    margin-left: 4px;
}
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}
/* Stylizacja modala reCAPTCHA */
#recaptcha-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  z-index: 1000;
  text-align: center;
}

#recaptcha-modal .modal-content {
  background: #fff;
  margin: 15% auto;
  padding: 20px;
  width: 320px;
  border-radius: 8px;
  position: relative;
}

#recaptcha-modal h3 {
  margin-top: 0;
}

#recaptcha-cancel {
  margin-top: 10px;
}

#form-message {
    font-family: var(--text-font);
    font-weight: var(--text-weight);
    font-size: var(--text-size);
    color: var(--primary-color);
}
#copy-text {
    transition: opacity 0.3s ease-in-out;
}
.hidden {
    opacity: 0;
}
.footer {
    text-align: center;
    padding: 40px;
}
.footer img {
    width: 100px;
    height: auto;
}
.back-button img {
    transition: transform 0.6s ease, box-shadow 0.2s ease; 
}
.back-button img:hover{
    transform: scale(1.05);
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.15);
}

@keyframes ripple-animation {
    from {
        transform: scale(0);
        opacity: 1;
    }
    to {
        transform: scale(4);
        opacity: 0;
    }
}
@media (max-width: 640px) {
    .contact-links {
        flex-direction: column;
        align-items: center;
    }
}
@media (max-width: 750px) {
    .project-section {
        flex-direction: column;
        align-items: center;
    }

    .project-box {
        width: 100%;
        min-width: unset;
    }
}


