/* ---- reset ---- */
body {
  margin: 0;
  color: var(--white);
}
canvas {
  display: block;
  vertical-align: bottom;
} /* ---- particles.js container ---- */
:root{
  --bg-color-light: #d3d3d3;
  --bg-color-dark: #030512;
  --white :#d1d1d1;
}
#particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: var(--bg-color-dark);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 50% 50%;
} /* ---- stats.js ---- */
#stats,
.count-particles {
  -webkit-user-select: none;
  margin-top: 5px;
  margin-left: 5px;
}
#stats {
  border-radius: 3px 3px 0 0;
  overflow: hidden;
}
.count-particles {
  border-radius: 0 0 3px 3px;
}
nav {
  font-family: 'Source Sans 3', sans-serif;
}
.logo {
  font-family: 'Goldman', sans-serif;
}
.napisz-btn {
  font-family: 'Goldman', sans-serif;
}
div.content-kontakt h2 {
  font-family: 'Goldman', sans-serif;
  font-size: x-large;
  font-weight: bold;
}
.nav-link {
  text-decoration: none;
  transition: color 0.3s ease;
}
nav.scrolled {
  backdrop-filter: blur(12px);
  background: rgba(0, 38, 255, 0);
  padding: 16px 24px 16px !important;
  transition: all 0.6s cubic-bezier(0.4, 0.0, 0.2, 1); /* bardziej smooth */
}
nav.scrolled .logo {
  font-size: 2.5rem !important;
  transition: font-size 0.6s cubic-bezier(0.4, 0.0, 0.2, 1); /* smooth */
}
nav.scrolled .nav-link {
  font-size: 1.2rem !important;
  transition: font-size 0.6s cubic-bezier(0.4, 0.0, 0.2, 1); /* smooth */
}
:root {
            --primary: rgb(59 130 246);
            --primary-dark: #4D44DB;
            --primary-light: rgb(59 130 246);
            --secondary: #FF6584;
            --dark: #1A1A2E;
            --darker: #0F0F1B;
            --light: #F8F9FA;
            --lighter: #FFFFFF;
            --gray: #ADB5BD;
            --dark-gray: #495057;
            --success: #28A745;
            --warning: #FFC107;
            --danger: #DC3545;
            --info: #17A2B8;
            --light-theme: #242529;
            --gray: #ADB5BD;

            --font-main: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
            --font-heading: 'Playfair Display', Georgia, serif;

            --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
            --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.15);
            --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.2);
            --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
        }


.nav-link:hover::after {
  width: 100%;
}
#oferta h2 {
  font-size: 28px;
  margin-bottom: 1rem;
  font-weight: bold;
}
#oferta li {
  font-family: 'Goldman', sans-serif;
}



        /* Reset moderne */
        *,
        *::before,
        *::after {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        html {
            scroll-behavior: smooth;
        }

      

        /* Layout */
        .container {
            width: 100%;
            max-width: 1440px;
            margin: 0 auto;
            padding: 0 2rem;
        }

        /* Footer */
        footer::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 4px;
        }

        .footer-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 3rem;
            margin-bottom: 3rem;
        }

        .footer-column {
            position: relative;
            z-index: 1;
        }

        .footer-column h3 {
            font-size: 1.5rem;
            font-weight: 600;
            margin-bottom: 1.5rem;
            position: relative;
            display: inline-block;
        }

      

        .footer-links {
            list-style: none;
        }

        .footer-links li {
            margin-bottom: 0.75rem;
        }

           .footer-links a{
            text-decoration: none;
            font-size: 0.95rem;
            font-weight: 500;
            display: inline-block;
            transition: var(--transition);
            position: relative;
            padding-left: 1rem;
        }


        .footer-links a::before {
            content: '→';
            position: absolute;
            left: -5px;
            opacity: 0;
            transition: var(--transition);
        }

      

        .footer-links a:hover::before {
            left: 0;
            opacity: 1;
        }

        /* Contact Info */
        .contact-info {
            margin-top: 1rem;
        }

        .contact-item {
            display: flex;
            align-items: flex-start;
            margin-bottom: 1rem;
        }

        .contact-item i {
            margin-right: 0.75rem;
            font-size: 1.1rem;
            margin-top: 3px;
        }

        .contact-item span {
            font-size: 0.95rem;
            line-height: 1.5;
        }
        /* Copyright */
        .copyright {
            text-align: center;
            padding-top: 2rem;
            margin-top: 3rem;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            font-size: 0.85rem;
        }

        



        /* Animations */
        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(20px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .footer-links a:hover {
            color: rgb(59 130 246);
            font-weight: bold;
            font-size: large /* Tailwind's blue-500 */
        }
/* ...existing code... */
.container-kontakt {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  padding: 40px 0;
}

.box-kontakt {
  position: relative;
  width: 320px;
  height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 40px 30px;
  transition: 0.5s;
}

.box-kontakt::before {
  content:' ';
  position: absolute;
  top: 0;
  left: 50px;
  width: 50%;
  height: 100%;
  background: #fff;
  border-radius: 8px;
  transform: skewX(15deg);
  transition: 0.5s;
}

.box-kontakt::after {
  content:'';
  position: absolute;
  top: 0;
  left: 50px;
  width: 50%;
  height: 100%;
  background: #fff;
  border-radius: 8px;
  transform: skewX(15deg);
  transition: 0.5s;
  filter: blur(30px);
}

.box-kontakt:hover:before,
.box-kontakt:hover:after {
  transform: skewX(0deg);
  left: 20px;
  width: calc(100% - 90px);
}

.box-kontakt:nth-child(1):before,
.box-kontakt:nth-child(1):after,
.box-kontakt:nth-child(2):before,
.box-kontakt:nth-child(2):after,
.box-kontakt:nth-child(3):before,
.box-kontakt:nth-child(3):after {
  background: linear-gradient(315deg, #000657, #3b82f6);
}
.oferta-list-item {
  position: relative;
  cursor: pointer;
  transition: background 0.3s ease;
}

.oferta-list-item .oferta-desc {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0.0, 0.2, 1), opacity 0.5s cubic-bezier(0.4, 0.0, 0.2, 1), padding 0.5s cubic-bezier(0.4, 0.0, 0.2, 1);
  background: rgba(59, 130, 246, 0.08);
  font-size: 1.2rem;
  padding: 0 1rem;
  border-radius: 0 0 12px 12px;
}

.oferta-list-item:hover .oferta-desc,
.oferta-list-item:focus .oferta-desc {
  max-height: 140px;
  opacity: 1;
  padding: 1rem;
}

/* Ensure no interference with other animations */
.oferta-list-item .oferta-desc.in-view {
  transition: max-height 0.5s cubic-bezier(0.4, 0.0, 0.2, 1), opacity 0.5s cubic-bezier(0.4, 0.0, 0.2, 1), padding 0.5s cubic-bezier(0.4, 0.0, 0.2, 1);
}
#kontakt .content-kontakt h2 {
  font-weight: bold;
}
.box-kontakt:hover p {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: #3b82f6;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
}

.box-kontakt span {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  pointer-events: none;
}

.box-kontakt span::before {
  content:'';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: 0.1s;  
  animation: animate-kontakt 2s ease-in-out infinite;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.box-kontakt:hover span::before {
  top: -50px;
  left: 50px;
  width: 100px;
  height: 100px;
  opacity: 1;
}

.box-kontakt span::after {
  content:'';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: 0.5s;
  animation: animate-kontakt 2s ease-in-out infinite;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  animation-delay: -1s;
}

.box-kontakt:hover span:after {
  bottom: -50px;
  right: 50px;
  width: 100px;
  height: 100px;
  opacity: 1;
}

@keyframes animate-kontakt {
  0%, 100% {
    transform: translateY(10px);
  }
  50% {
    transform: translate(-10px);
  }
}

.content-kontakt {
  position: relative;
  left: 0;
  padding-left: 20px;
  padding-right: 20px;
  height: 200px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  z-index: 1;
  transition: 0.5s;

.box-kontakt:hover .content-kontakt {
  left: -25px;
  padding: 60px 40px;
}

.content-kontakt h2 {
  font-size: 2em;
  margin-bottom: 10px;
}

.content-kontakt p {
  font-size: 1.1em;
  margin-bottom: 10px;
  line-height: 1.4em;
}

.content-kontakt a {
  display: inline-block;
  font-size: 1.1em;
  background: #fff;
  padding: 10px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 700;
  margin-top: 5px;
}
.content-kontakt a:hover {
  background: #3b82f6;
  border: 1px solid rgba(255, 0, 88, 0.4);
  box-shadow: 0 1px 15px rgba(1, 1, 1, 0.2);
}
#oferta {
  margin-top: 10%;
  margin-bottom: 10%;
}


  /* Sekcja O nas */
  #onas {
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
  }

  #onas-content {
    margin-top: 0;
    text-align: center;
  }

  .pulsing-grid-parent {
    display: none;
  }

  /* Sekcja Oferta */
  #oferta {
    padding: 2rem 1rem;
  }

  .oferta-list-item {
    font-size: 1.2rem;
    text-align: center;
  }

  .oferta-desc {
    font-size: 1rem;
  }

  /* Sekcja Kontakt */
  .container-kontakt {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .box-kontakt {
    width: 100%;
    max-width: 300px;
    margin: 1rem 0;
  }

  /* Footer */
  .footer-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }

  .footer-column {
    text-align: center;
  }

  footer {
    padding: 2rem 1rem;
  }
}
/* Styl dla nawigacji po otwarciu menu */

/* Styl dla mobilnego menu */
/* MOBILE MENU */
.mobile-menu {
  position: fixed;
  top: 60px; /* dopasuj do wysokości nav */
  left: 0;
  width: 100%;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background-color: rgba(0, 38, 255, 0);
  padding-bottom: 1rem;
  color: white;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  margin-top: 13px;
   transform: translateY(-20px);
  opacity: 0;
  pointer-events: none;
  transition: transform 2.3s ease, opacity 0.3s ease;
}
.mobile-menu.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.transition-ready {
  transition: transform 2.3s ease, opacity 0.3s ease;
}
.mobile-menu.hidden {
 opacity: 0;
  transform: translateY(-20px);
  pointer-events: none;
}

.mobile-menu:not(.hidden) {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
#mobile-menu a {
  color: white;
  text-align: center;
  padding:0;
  font-size: 1.2rem; /* Normalny rozmiar tekstu */
  font-weight: bold;
  width: 100%;
}

#mobile-menu hr {
  width: 100%; /* Węższe linie */
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}
@media (max-width: 768px) {
#onas{
  margin-top: -25%;
}
#oferta{
  margin-top: 8%;
}
#log span {
  margin-right:40px;
}
nav {
  transform: none !important;
}
  nav {

  display: flex; /* Ustawia elementy w wierszu */
  justify-content: space-between; /* Rozdziela elementy nawigacji */
  align-items: center; /* Wyśrodkowuje elementy w pionie */
  position: sticky; /* Przykleja navbar do góry */
  top: 0;
  left: 0;
  width: 100%;
  padding: 16px 24px 16px; /* Dodaj wewnętrzne odstępy */
  z-index: 1000; /* Ustaw wysoki z-index */
  backdrop-filter: blur(12px); /* Rozmycie tła */
  background: rgba(0, 38, 255, 0); /* Półprzezroczyste tło */
}
  
  nav .logo {
  font-size: 2.5rem !important;
  transition: font-size 0.6s cubic-bezier(0.4, 0.0, 0.2, 1); /* smooth */
}
  nav .nav-link {
      align-items: center;
  font-size: 1.2rem !important;
  transition: font-size 0.6s cubic-bezier(0.4, 0.0, 0.2, 1); /* smooth */
}
nav.scrolled {
    align-items: center;
  backdrop-filter: blur(12px);
  background: rgba(0, 38, 255, 0);
  padding: 16px 24px 16px !important;
  transition: all 0.6s cubic-bezier(0.4, 0.0, 0.2, 1); /* bardziej smooth */
}
nav.scrolled .logo {
  font-size: 2.5rem !important;
  transition: font-size 0.6s cubic-bezier(0.4, 0.0, 0.2, 1); /* smooth */
}
nav.scrolled .nav-link {
    align-items: center;
  font-size: 1.2rem !important;
  transition: font-size 0.6s cubic-bezier(0.4, 0.0, 0.2, 1); /* smooth */

}
}
@media (min-width: 768px) and (max-width: 853px){
  nav {
  backdrop-filter: blur(12px);
  background: rgba(0, 38, 255, 0);
  padding: 16px 24px 16px !important;
  transition: all 0.6s cubic-bezier(0.4, 0.0, 0.2, 1); /* bardziej smooth */
}
nav .logo {
  font-size: 2.5rem !important;
  transition: font-size 0.6s cubic-bezier(0.4, 0.0, 0.2, 1); /* smooth */
}
nav .nav-link {
  font-size: 1.2rem !important;
  transition: font-size 0.6s cubic-bezier(0.4, 0.0, 0.2, 1); /* smooth */
}
#pulsing-grid {
  margin-left: 10rem;
}
}
