/* -------------MAIN PAGE----------------- */

@font-face {
    font-family: 'MojaCzcionka';
    src: url('../font/uni-sans.heavy-caps.otf') format('opentype');
}
body {
    font-family: 'MojaCzcionka';
    background-color: rgb(13, 13, 13);
}
/* -------------SEKCJA 1----------------- */
.container-fluid {
    padding-left: 0;
    padding-right: 0;
}
.carousel-inner img {
    max-height: 800px; 
    object-fit: cover;
    width: 100%; 
}
section:first-of-type {
    position: relative;
    top: 0;
    margin-top: 0;
    padding-top: 0;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5); 
}
.custom-navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.3s ease; 
    background-color: transparent; 
}
.custom-navbar.scrolled {
    background-color: rgba(3, 3, 3, 0.562); 
}
.custom-navbar .navbar-nav {
    text-align: center;
}
.custom-navbar .nav-link {
    padding: 0 15px;
    font-weight: 500;
    color: white !important;
}
.custom-navbar .navbar-brand {
    color: white !important;
}
.custom-navbar h2 {
    color: white;
    font-size: 24px;
    text-align: center;
    flex-grow: 1; 
    padding-left: 155px;
}
.custom-navbar .d-flex{
    margin-right: 15px;
}
.custom-navbar .d-flex img {
    width: 25px; 
    height: 25px; 
    transition: transform 0.3s ease;
}
.custom-navbar .d-flex img:hover {
    transform: scale(1.2); 
}
@media (max-width: 576px) {
  .custom-navbar h2 {
    font-size: 18px;
    text-align: left;
    padding-left: 15px;
    flex-grow: 0;  
  }

  .custom-navbar .d-flex img {
    width: 22px;
    height: 22px;
  }
}

/* -------------SEKCJA 2 (ABOUT ME)----------------- */

section.py-3 .container h2 {
    text-align: left; 
    font-size: 70px;
    color: royalblue;
}
section.py-3 .container p {
    text-align: left; 
}
section.py-3{
    background-color: rgb(13, 13, 13);
    color: rgba(190, 188, 188, 0.856);
    margin-top: 100px;
    margin-bottom: 100px;
}
.about-me-text {
  background: linear-gradient(135deg, rgba(33, 38, 60, 0.103), rgba(15, 15, 19, 0.257)); 
  padding: 30px; 
  border-radius: 15px; 
  color: white;
  box-shadow: 0 20px 35px rgb(0, 0, 0);
}

/* -------------SEKCJA 4 (3 IMAGES)----------------- */

.image-buttons {
    display: flex;
    flex-direction: row;
    width: 100%;
  }
  
  .image-container {
    position: relative;
    width: 50%;
    overflow: hidden;
    display: block;
    text-decoration: none;
    color: white;
    margin-top: 30px;
    box-shadow: 0 -5px 10px rgba(0, 0, 0, 0.5); 
  }
  
  .image-container img {
    width: 100%;
    height: 800px;
    object-fit: cover;
    transition: opacity 0.4s ease;
  }
  
  .overlay-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 12px 24px;
    font-weight: bold;
    font-size: 24px;
    text-transform: uppercase;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-size: 40px;
    white-space: nowrap; 
  }
  
  .image-container:hover img {
    opacity: 0.6;
  }
  
  .image-container:hover .overlay-label {
    opacity: 1;
  }

  @media (max-width: 991px) {
    .image-buttons {
      flex-direction: column;
    }
  
    .image-container {
      width: 100%;
      margin-top: 0px;
    }
  
    .image-container img {
      height: 600px; 
    }
  
    .overlay-label {
      font-size: 24px;
    }
  }


@media (min-width: 768px) and (max-width: 1024px) {
  .image-container {
    position: relative;
  }

  .image-container img {
    opacity: 0.5;
    transition: opacity 0.3s ease;
  }

  .image-container:hover img {
    opacity: 1; 
  }

  .overlay-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 1; 
    transition: opacity 0.3s ease;
  }

  .image-container:hover .overlay-label {
    opacity: 0; 
  }
}


@media (min-width: 1023px) and (max-width: 1367px) and (orientation: landscape) {
  .image-container {
    position: relative;
  }

  .image-container img {
    opacity: 0.5;
    transition: opacity 0.3s ease;
  }

  .image-container:hover img {
    opacity: 1; 
  }

  .overlay-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 1; 
    transition: opacity 0.3s ease;
  }

  .image-container:hover .overlay-label {
    opacity: 0; 
  }
}


@media (max-width: 767px) {
  .image-container {
    position: relative;
  }

  .image-container img {
    opacity: 0.5; 
    transition: opacity 0.3s ease;
  }

  .image-container:hover img {
    opacity: 1; 
  }

  .overlay-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 1; 
    transition: opacity 0.3s ease;
  }

  .image-container:hover .overlay-label {
    opacity: 0; 
  }
}
  
/* -------------SEKCJA 6 (LOGO SLIDER)----------------- */

.logo-slider {
    position: relative;
    overflow: hidden;
    background-color: rgb(13, 13, 13);
    padding: 40px 0 20px;
    max-width: 70%; 
    margin: 0 auto;
    z-index: 1;
  }
  
  .logo-slider::before,
  .logo-slider::after {
    content: "";
    position: absolute;
    top: 0;
    width: 80px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
  }
  
  .logo-slider::before {
    left: 0;
    background: linear-gradient(to right, rgb(13, 13, 13) 0%, transparent 100%);
  }
  
  .logo-slider::after {
    right: 0;
    background: linear-gradient(to left, rgb(13, 13, 13) 0%, transparent 100%);
  }
  
  .logo-slider h2 {
    text-align: center;
    color: white;
    margin-top: 80px;
    margin-bottom: 80px;
    font-size: 36px;
    letter-spacing: 2px;
    text-transform: uppercase;
  }
  
  .logo-track {
    display: flex;
    width: max-content;
    animation: scrollLeft 40s linear infinite;
    align-items: center;
  }
  
  .logo-track img {
    height: 80px;
    margin: 0 40px;
    opacity: 1.0;
    transition: opacity 1.3s ease-in-out;
  }
  
  @keyframes scrollLeft {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(-50%);
    }
  }

  @media (max-width: 767px) {
    .logo-slider {
      max-width: 90%; /* Zmniejszenie szerokości */
      padding: 20px 0; /* Zmniejszenie paddingu */
    }
  
    .logo-slider h2 {
      font-size: 24px; /* Zmniejszenie rozmiaru nagłówka */
      margin-top: 40px;
      margin-bottom: 40px;
    }
  
    .logo-track {
      display: flex;
      animation: scroll 25s linear infinite; /* Skrócenie czasu animacji */
    }
  
    .logo-track img {
      height: 50px; /* Zmniejszenie wysokości logo */
      margin: 0 20px; /* Zmniejszenie odstępów między logo */
    }
  }
  
  /* Animacja przewijania logo */
  @keyframes scroll {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(-100%);
    }
  }
  
  /* ------------- SEKCJA 7 (FOOTER) ----------------- */
  footer {
    text-align: center; 
    color: white; 
    position: relative; 
    width: 100%;
    padding-top: 25px;
    padding-bottom: 1px;
    font-size: 10px;
}

.apex-button {
  display: inline-block;
  border: none;
  background: none;
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
  cursor: pointer;
}

.apex-button:hover {
  color: royalblue; 
}

/* ------------- (DYMEK) ----------------- */
.chat-bubble-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  font-family: 'MojaCzcionka', sans-serif;
}

.chat-toggle {
  background-color: #3d5afe;
  color: white;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
}

.chat-toggle:hover {
  transform: scale(1.1);
}
.chat-form {
  position: relative; 
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.5s ease;
  flex-direction: column;
  background-color: #1e1e1e;
  padding: 30px;
  width: 400px;
  max-height: 90vh;           
  overflow-y: auto; 
  border-radius: 20px;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
  position: fixed;              
  bottom: 90px;
  right: 20px;
  max-width: 90vw;               
  box-sizing: border-box;      
  overflow: hidden; 
  z-index: 1000;
}


.chat-form.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  display: flex;
}
.chat-form input,
.chat-form textarea {
  background-color: #2a2a2a;
  border: none;
  border-radius: 2px;
  padding: 10px;
  margin-bottom: 10px;
  color: #fff;
  font-size: 14px;
  width: 100%;
}
.chat-form textarea {
  background-color: #2a2a2a;
  border: none;
  border-radius: 2px;
  padding: 10px;
  margin-bottom: 10px;
  color: #fff;
  font-size: 14px;
  width: 100%;
  height: 140px; 
  resize: vertical; 
}
.chat-form form button {
  background-color: #3d5afe;
  color: white;
  border: none;
  padding: 14px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
  width: 80%;
  margin: 20px auto 0 auto;
  display: block;
}

.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  color: white;
}

.chat-header button {
  background: none;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
}
.chat-phone {
  position: fixed;
  bottom: 100px;
  right: 20px;
  background-color: #3d5afe;
  color: white;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
  cursor: pointer;
  z-index: 9999;
  flex-direction: column;
  overflow: visible;
}

.phone-number {
  opacity: 0; 
  transform: translateY(20px); 
  pointer-events: none; 
  transition: opacity 0.3s ease, transform 0.3s ease; 
  position: absolute;
  bottom: 70px;
  right: 0;
  background-color: #1e1e1e;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 30px;
  white-space: nowrap;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
}

.phone-number a {
  color: white;
  text-decoration: none;
}

.phone-number a:hover {
  text-decoration: none;
}
.chat-phone:hover {
  transform: scale(1.1);
}
.phone-number.open {
  opacity: 1; 
  transform: translateY(0); 
  pointer-events: auto; 
}


.popup {
  display: none; 
  position: absolute; 
  top: 50%; 
  left: 50%; 
  transform: translate(-50%, -50%); 
  width: 80%;
  max-width: 300px;
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  text-align: center;
  z-index: 1001; 
  animation: fadeIn 0.5s ease-out; 
}

.popup-content {
  padding: 20px;
  border-radius: 10px;
  position: relative;
}

.popup-content .close {
  font-size: 30px;
  position: absolute;
  top: -20px;
  right: -10px;
  cursor: pointer;
  color: white;
  transition: transform 0.3s ease;
}

.popup-content .close:hover {
  transform: scale(1.2); 
}

#popup-message {
  font-size: 18px;
  font-weight: bold;
}


@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

.grecaptcha-badge { 
  left: 20px !important; 
  bottom: 20px !important; 
  right: auto !important; 
}
