.navbar{
    background-color: white;
    height:80px;
    margin:1%;
    border-radius: 16px;
    z-index: 1030;
}
.navbar-toggler
{
    border: none;
    font-size:1.25rem;
}
.navbar-toggler:focus{
    box-shadow:none;
    outline:none;
}
.nav-link {
    position: relative;
    color: #6b6c7a;
    font-weight: 500;
    display: inline-block; /* <- ważne */
    text-decoration: none;
}
.nav-link:hover, .nav-link.active
{
    color:#000000;
    font-weight: 550;
}
@media (min-width:991px){
.nav-link::before
{
    content: "";
    position: absolute;
    bottom:0;
    left:50%;
    transform: translateX(-50%);
    width:50%;
    height:2px;
    background-color: rgb(11, 67, 186);
    visibility: hidden;
    transition: 0.3s ease-in-out;
}
.nav-link:hover::before, .nav-link.active::before{
    width:70%;
    visibility: visible;
}
}
.hero-section
{
    background: url('img/IMG_20240329_233922767.webp') no-repeat center;
    background-size: cover;
    width:100%;
    height:100vh;
    position: relative;
}
.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0; /* <-- dodane */
    background-color: rgba(0, 0, 0, 0.6); /* <-- cień, półprzezroczysty */
    z-index: 1;
}
.overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 900px;
    padding: 40px 30px;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.banner-content {
    text-align: center;
    padding: 0;
}

.banner-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.3;
}

.banner-content p {
    font-size: 1.125rem;
    font-weight: 400;
    color: #e0e0e0;
    margin-bottom: 30px;
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    padding: 10px 24px;
    background-color: #003080;
    color: white;
    font-size: 1rem;
    text-decoration: none;
    font-weight: 600;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #003080;
    color:white;
}
.overlay:hover {
    background: rgba(0, 0, 0, 0.85);
}

/* Hero mobilne  */
@media (max-width:991px){
    .cta-button {
    display: inline-block;
    padding: 10px 24px;
    background-color: #073df1;
    color: white;
    font-size: 1rem;
    text-decoration: none;
    font-weight: 600;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}
.hero-section
{
    background: url('IMG_20240329_233922767.jpg') no-repeat center;
    background-size: cover;
    width:100%;
    height:50vh;
    position: relative;
}
.overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 1200px;
    padding: 40px 30px;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    z-index: 2;
}
}
/* content */
.services-section {
  padding: 60px 20px;
  background: #f9fafb;
  text-align: center;
}

.services-section h2 {
  font-size: 2rem;
  color: #004d66;
  margin-bottom: 20px;
}

.services-section .intro {
  font-size: 1.1rem;
  color: #333;
  max-width: 800px;
  margin: 0 auto 40px;
}

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

.service-box {
  background: white;
  padding: 30px 20px;
  border-radius: 15px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s forwards;
}

.service-box:nth-child(2) { animation-delay: 0.2s; }
.service-box:nth-child(3) { animation-delay: 0.4s; }
.service-box:nth-child(4) { animation-delay: 0.6s; }


.service-box h3 {
  color: #004b63;
  margin-bottom: 10px;
}

.service-box:hover {

  transform: scale(1.35) translateY(-30px);
  box-shadow: 0 12px 20px rgba(0,0,0,0.9);
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.service-box i {
  font-size: 2.5rem;
  color: #d3bd17;
  margin-bottom: 15px;
  display: block;
}

.service-box p {
  color: #555;
  font-size: 0.95rem;
}
.promo-section {
  padding: 60px 20px;
  background: #fff;
}

.promo-section .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Tekst lewa strona */
.promo-text {
  flex: 1 1 500px;
}

.promo-text h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  line-height: 1.3;
  color: #111;
}

.promo-text h2 .highlight {
  color: #ff6600;
  font-weight: bold;
}

.promo-text p {
  font-size: 1.05rem;
  margin-bottom: 30px;
  color: #333;
}

/* Specjalizacje */
.services {
  display: flex;
  gap: 25px;
  margin-bottom: 35px;
  flex-wrap: wrap;
}

.service-item {
  text-align: center;
  max-width: 150px;
}

.icon-circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-size: 28px;
  color: #fff;
}
.icon-circle.blue { background: #0077b6; }
.icon-circle.orange { background: #ff6600; }
.icon-circle.green { background: #6cbf40; }

.service-item p {
  font-weight: 600;
  font-size: 0.95rem;
}

/* Przycisk */
.btn-cta {
 
  background: #0a44c2;
  color: #fff;
  padding: 14px 32px;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  transition: 0.3s;
  justify-content: center;
}

.btn-cta:hover {
  background: #0836a2;
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
  transform: translateY(-3px);
  color:white;
}
.promo-image {
  flex: 1 1 450px;
  text-align: center;
}

.promo-image img {
  max-width: 100%;
  border-radius: 12px;
}
.text-container {
    flex: 1;
    padding-left: 30px;
}
.text-content {
  flex: 1;
}

.text-content h2 {
  font-size: 2rem;
  margin-bottom: 16px;
  color: #0a2540;
}

.text-content p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #333;
  margin-bottom: 24px;
}

.text-content .btn {
  display: inline-block;
  background: #0a44c2;
  color: #fff;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s ease;
}

.text-content .btn:hover {
   background: #0836a2;
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
  
  color:white;
}

/* prawa kolumna - siatka obrazów */
.image-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.image-grid img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  transition: transform 0.25s ease;
}

.image-grid img:hover {
  transform: scale(1.03);
}
.text-container2 .text-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  color: #222;
  position: relative;
  padding-left: 28px;
}
.content-with-images {
  padding: 60px 20px;
  background: #f9fafc;
}

.content-with-images .container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 40px;
}
.text-container2 .text-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  color: #222;
  position: relative;
  padding-left: 28px;
}

.text-container2 .text-item::before {
  content: "\f058"; /* Font Awesome check-circle */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  color: #003080;
  font-size: 1.2rem;
}
.text-container2 {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 30px;
}
.modal {
    display: none; /* Domyślnie ukryte */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex; /* Widoczne, gdy aktywne */
}

.modal-content {
    background-color: #fff;
    margin: auto;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 1200px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    display: flex;
    flex-direction: column;
}

.close-btn {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 25px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close-btn:hover,
.close-btn:focus {
    color: #333;
}

/* Układ portfolio */
.portfolio-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (min-width: 768px) {
    .portfolio-container {
        flex-direction: row;
    }
}

.categories {
    flex: 0 0 250px; /* Stała szerokość na desktopie */
    padding-right: 20px;
    border-right: 1px solid #eee;
}

.categories h2 {
    border-bottom: 2px solid #007BFF;
    padding-bottom: 10px;
}

.categories ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-item {
    padding: 10px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    border-radius: 5px;
    margin-bottom: 5px;
}

.category-item:hover {
    background-color: #e9ecef;
}

.category-item.active {
    background-color: #007BFF;
    color: white;
}

.portfolio-gallery {
    flex: 1; /* Zajmuje resztę dostępnego miejsca */
    padding-left: 20px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* Responsywność dla urządzeń mobilnych */
@media (max-width: 767px) {
    .modal-content {
        width: 95%;
        padding: 10px;
    }

    .portfolio-container {
        flex-direction: column;
    }

    .categories {
        border-right: none;
        border-bottom: 1px solid #eee;
        padding: 0 0 20px 0;
    }

    .categories ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .category-item {
        flex: 1 1 auto;
        text-align: center;
    }
}
.modal-content {
    margin-top: 80px; /* odstęp od górnej krawędzi, dopasuj do wysokości navbara */
    max-height: calc(100vh - 100px); /* niech modal nie wychodzi poza ekran */
    overflow-y: auto; /* umożliwia przewijanie */
}
.footer {
  background: #0c0c0c;
  color: #ffffff;
  padding: 70px 20px 30px;
  font-family: "Inter", sans-serif;
  margin-top: 30px;
}

.footer-container {
  display: flex;
  justify-content: center;
  gap: 80px;
  flex-wrap: wrap;
  text-align: center;
}

.footer-column h3 {
  font-size: 18px;
  margin-bottom: 20px;
  font-weight: 600;
}

.footer-column p,
.footer-menu li {
  font-size: 15px;
  margin: 6px 0;
  color: #dcdcdc;
}

.footer-column a {
  color: #ffffff;
  text-decoration: none;
  transition: 0.3s;
}

.footer-column a:hover {
  opacity: 0.6;
}

.footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid #555;
  border-radius: 50%;
  font-size: 16px;
  transition: 0.3s;
}

.icon:hover {
  border-color: #fff;
  opacity: 0.6;
}

/* Dolna linia */
.footer-bottom {
  margin-top: 50px;
  border-top: 1px solid #222;
  padding-top: 20px;
  text-align: center;
  font-size: 14px;
  color: #888;
}


/* Reset box-sizing */

.aboutus-mission {
    position: relative;
    background-image: url("/mechanical-engineering-2993233_1920.jpg");
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
    text-align: center;
    color: white;
    z-index: -5; text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.2); /* Dodajemy cień tekstu */
    font-size: 1.1rem; /* Zwiększamy rozmiar tekstu */
    font-weight: bold; /* Zwiększamy wagę czcionki */
    text-align: center; /* Wyrównujemy tekst na środku */
    margin-bottom: 20px; /* Dodajemy odstęp pod nagłówkiem */
  }
  .aboutus-mission i {
    margin-bottom: 18px; /* Odstęp między ikoną a tekstem */
    color: #082f88; /* Kolor ikon na szary */
    font-size: 30px;
    margin: 3%; /* Rozmiar ikon */
}
.underline {
    margin: 0 auto 40px;
    width: 60px;
    height: 4px;
    background-color: #ff6600;
  }
  .aboutus-shadow {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: -5;
  }
  .gallery-item img {
    width: 100%;
    height: auto;
    display: block;
  aspect-ratio: 4 / 3; /* proporcja zdjęcia */
  object-fit: cover;
  }
  .icon {
  font-size: 2.5rem; /* większa ikona */
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto; /* wyśrodkowanie w poziomie */
  width: auto; /* usuwa ustaloną szerokość */
  height: auto; /* usuwa wysokość */
  background: none; /* usuwa tło */
  border: none; /* usuwa obramowanie/okrąg */
  box-shadow: none; /* usuwa cień */
}
.navbar.scrolled a.nav-link,
.navbar.scrolled .navbar-brand {
  color: #fff !important;
}
.navbar.scrolled {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  background-color: rgba(0, 0, 0, 0.8); /* opcjonalnie — ciemne tło przy scrollu */
  backdrop-filter: blur(6px); /* fajny efekt szkła */
  font-weight: 600;
}
section[id] {
  scroll-margin-top: 100px; /* dostosuj wysokość do swojego menu */
}
/* klasa do ukrywania nav (można też użyć .d-none, tu mamy łagodne przejście) */
.hide-nav {
  display: none !important;
}

/* opcjonalne łagodne pojawianie/zanikanie */
.fade-nav {
  transition: opacity .25s ease;
  opacity: 1;
}
.fade-nav.hide-nav {
  opacity: 0;
  pointer-events: none;
}
