.bg-custom {
    background-color:#390067 !important;
}

.bg-accent {
    background-color: #E47BE0 !important;
}

.bg-white {
    background-color: white !important;
}

.bg-grey{
    background-color: #E8E8E8;
}

.text-color-white{
    color: white;
}

.text-color-black{
  color: #16012B;
}
.text-color-violet{
    color: #390067;
}

.text-color-pink{
    color: #E47BE0;
}


body{
    font-family:"Poppins";
    line-height: 1.6;
    font-weight: 400;
    font-size: 22px;
}



h1{
     font-family:"Space Grotesk";
    font-weight: 700;
    font-size: 2.8rem;
}

h2{
     font-family:"Space Grotesk";
    font-weight: 700;
    font-size:2.4rem;
}

h3{
     font-family:"Space Grotesk";
    font-weight: 700;
    font-size: 1.9rem;
}

h4{
     font-family:"Space Grotesk";
    font-weight: 700;
    font-size: 1.6rem;
}

h5{
    font-family:"Space Grotesk";
    font-weight: 700;
    font-size: 1.5rem;
} 

h6{
     font-family:"Space Grotesk";
    font-weight: 700;
    font-size:1.4rem;
}

p{
    font-family: "Poppins";
    font-weight: 400;
    font-size: 1.1rem;
}

.nav-container {
  margin-top: 10px;
  margin-left: 12%;
  margin-right: 12%;
}

.head{
 background: #E47BE0 ;
background: radial-gradient(circle,rgba(228, 123, 224, 1) 20%, #E8E8E8 70%);
}

.head2{
 background: #390067 ;
background: radial-gradient(circle,rgba(228, 123, 224, 1) 15%, #390067 70%);
}



select{
  font-family:"Poppins" ;
    font-weight: 400;
    font-size: 1.1rem;
}


ul{
    font-family: "Poppins";
    font-weight: 400;
    font-size: 1.1rem;
}

#navbarNav > ul{
    font-family:"Space Grotesk";
    font-weight: 700;
    font-size: 1.3rem;
    
}

.nav-item a{
    color: #390067;
}


a{
  font-size: 1rem;
    color: #390067;
}

a:hover,
a:active {
    color: #E47BE0!important;
}


.navbar-light .navbar-nav .nav-link.active,
.navbar-light .navbar-nav .nav-link.show {
    color: #E47BE0!important;
}
/* index*/
.indexcard{
 
  background-color: #E8E8E8;
  border-radius: 30px;
}

.indexcardaccent{
  background-color: #390067;
  border-radius: 30px;
}

img{
  width: 60%;
}

#logo{
  width:60%;
}


/* o mnie */
.zdjomnie{
    width: 70%;
     border-radius: 45%;
 }


  .btn.toggle-btn:hover {
    color: #E47BE0;
  }

  .collapse-text {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.5s ease;
    opacity: 0;
  }

  .collapse-text.show {
    max-height: 500px; /* wystarczająco duża wartość */
    opacity: 1;
  }

  .section-title {
    transition: color 0.3s;
  }

  .section-container{
    border-radius: 30px;
    box-shadow: 1px 2px 4px 1px #390067;
     transition: box-shadow 0.4s ease;
  }

   .section-container.active {
    box-shadow: 1px 2px 4px 1px #E47BE0;
  }

  /* Styl obrazków z linkami */
  .image-link {
    display: inline-block;
    overflow: hidden; 
    padding: 30px;
    
  }

  .call {
    padding: 10px;
    width: 80%;
    transition: transform 0.4s ease, box-shadow 0.3s ease;
    border-radius: 50%;
    box-shadow: 1px 2px 4px 1px #390067;
  }

  
  .call:hover {
    transform: scale(1.1);
    box-shadow: 2px 4px 8px 2px #E47BE0; 
  }
  /* o mnie koniec  */

  /*oferta*/
 
  .package-card, .addon-card {
      border-radius: 20px;
      box-shadow: 1px 2px 4px 1px #390067;
      transition: transform 0.4s ease, box-shadow 0.3s ease;
      background-color: white;
      margin-bottom: 20px;
      padding: 20px;
    }
    .package-card:hover, .addon-card:hover {
      transform: scale(1.05);
      box-shadow: 2px 4px 8px 2px #E47BE0;
    }
    .package-card h3, .addon-card h4 {
    
      color: #390067;
      font-family: "Poppins";
    }
    .package-card:hover h3, .addon-card:hover h4 {
     transform: scale(1.1);
     transition: transform 0.4s ease, box-shadow 0.3s ease;
      color: #E47BE0;
    }
    
    .btn {
      color: #390067;
      background-color: #E47BE0;
      border-radius: 25px;
      font-family: "Poppins";
      font-size: 1.2rem;
      padding: 10px 15px;
      transition: background-color 0.3s ease, transform 0.3s ease;
    }
     .btn:hover {
      color: #E47BE0;
      background-color: #390067;
      transform: scale(1.1);
      

    }
    .btn:active{
      border: none;
    }

     
    
    .accentbtn{
      background-color: white;
      color: #390067;
      border-radius: 25px;
      font-family: "Poppins";
      font-size: 1.2rem;
      padding: 10px 15px;
      transition: background-color 0.3s ease, transform 0.3s ease;
    }

    .accentbtn:hover{
    background-color: #E47BE0;
    color: #390067;
    transform: scale(1.1);
    }

    
    a.accentbtn:hover {
      background-color: #E47BE0;
      color: #390067 !important;
      transform: scale(1.1);
    }


    .highlight {
      font-weight: 600;
      color: #16012B;
    }
    .feature-list {
      list-style: none;
      padding-left: 0;
      text-align: left;
    }
    .feature-list li:before {
      content: "✓ ";
      color: #E47BE0;
      font-weight: bold;
    }
    /*os czasu */
    .timeline-card {
      border-radius: 20px;
      box-shadow: 1px 2px 4px 1px #16012B;
      transition: transform 0.6s ease, box-shadow 0.3s ease;
      background-color: white;
      margin-bottom: 20px;
      padding: 20px;
      box-sizing: border-box;
      max-width: 500px; /* Ograniczenie szerokości dla bezpieczeństwa */
    }
    .timeline-card:hover {
      transform: scale(1.05);
      box-shadow: 2px 4px 8px 2px #E47BE0;
    }
    .timeline-card h4 {
      color: #390067;
      font-family: "Poppins";
    }
    .timeline-card:hover h4 {
      color: #E47BE0;
    }
    .timeline-card p {
      font-family: "Poppins";
    }
    /* Oś czasu */
    .timeline {
      position: relative;
      padding: 20px 0;
    }
    .timeline::before {
      content: '';
      position: absolute;
      top: 0;
      bottom: 0;
      left: 50%;
      width: 4px;
      background: #E47BE0;
      transform: translateX(-50%);
    }
    .timeline-item {
      position: relative;
      margin-bottom: 40px;
      opacity: 0;
      transition: opacity 1.2s ease, transform 3s ease; /* Wolniejsza animacja */
    }
    .timeline-item.visible {
      opacity: 1;
      transform: translateX(0);
    }
    .timeline-item:nth-child(odd) .timeline-card {
      width: 40%;
      margin-left: 57%; /* 7% odstęp od linii (50% + 7%) */
      margin-right: 3%;
    }
    .timeline-item:nth-child(even) .timeline-card {
      width: 40%;
      margin-left: 3%; /* 7% odstęp od linii (50% - 40% - 7%) */
      margin-right: 57%;
    }
    .timeline-item:nth-child(odd) {
      transform: translateX(50px);
    }
    .timeline-item:nth-child(even) {
      transform: translateX(-50px);
    }
    /*oferta koniec */

    
 /* === Portfolio sekcja === */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  justify-items: center;
  align-items: start;
  padding: 2rem;
  margin: 0 auto; 
  max-width: 1300px; 
  box-sizing: border-box;
}


.portfolio-item {
  text-align: center;
  text-decoration: none;
  color:#390067;
  transition: transform 0.3s ease;
  width: 100%;
  
  
}

.portfolio-item:hover {
  transform: translateY(-5px);
  
}


.portfolio-image {
  width: 100%;
  max-height: 550px;
  overflow: hidden;
  border-radius: 1rem;
  box-shadow: 1px 2px 4px 1px #390067;
}


.portfolio-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: top; 
  transition: transform 0.4s ease;
}

.portfolio-image:hover{
  box-shadow: 1px 3px 6px 1px #E47BE0;
}

.portfolio-image:hover img {
   
  transform: scale(1.08);
}
    
    /* koniec portfolio */

    /* kontakt */

     .hero-contact {
      padding-top: 7%;
      padding-bottom: 7%;
  background: 
    linear-gradient(
      rgba(232, 232, 232, 1), 
         rgba(232, 232, 232, 0.8), 
      rgba(232, 232, 232, 0.7), 
       rgba(232, 232, 232, 0.7), 
      rgba(232, 232, 232, 0.7), 
      rgba(232, 232, 232, 0.8)
    ),
    url("img/telefon2.jpg");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.contact-icon {
  font-size: 2rem;
 padding-right:10px;
  
}

.contact-text p {
  margin: 0;
  line-height: 1.2;
}

.contact-text a {
  text-decoration: none;
  color: inherit;
}

.contact-text a:hover {
  color:#E47BE0
}


form#contactForm input.form-control,
form#contactForm select.form-select,
form#contactForm textarea.form-control {
  font-family: "Poppins";
  font-weight: 400;
  font-size: 1.1rem;
  border: 1px solid #390067;
  border-radius: 30px;
  box-shadow: none; 
  transition: all 0.3s ease; 
}


form#contactForm input.form-control:focus,
form#contactForm select.form-select:focus,
form#contactForm textarea.form-control:focus {
  border-color:#E47BE0;
   box-shadow: 0 0 0 0.25rem rgba(228, 123, 224, 0.45);
  outline: none; 
}

    /* koniec kontakt */
   
      
    


/* ========== TABLETY (<= 768px) ========== */
@media (max-width: 768px) {


  body {
    font-size: 18px;
  }

  .head{
 background: #E47BE0 ;
background: radial-gradient(circle,rgba(228, 123, 224, 1) 10%, #E8E8E8 50%);
}

.head > img {
  width:60%;
}

img{
  width: 80%;
    margin: 0 auto; 
}

  .zdjomnie{
    width: 90%;
     border-radius: 45%;
 }

 .call {
    
    width: 100%;
    
  }

  .package-card, .addon-card {
        margin: 10px 0;
      }
      .package-card .btn {
        font-size: 1rem;
      }

     .timeline::before {
        left: 20px;
      }
      .timeline-item:nth-child(odd) .timeline-card,
      .timeline-item:nth-child(even) .timeline-card {
        width: 90%;
        margin-left: 50px; /* Odstęp 30px od linii (20px + 30px) */
        margin-right: 10px; /* Równowaga z prawej */
        max-width: none; /* Usunięcie ograniczenia na urządzeniach mobilnych */
      }
      .timeline-item:nth-child(odd),
      .timeline-item:nth-child(even) {
        transform: translateX(0);
        opacity: 0;
      }
      .timeline-item.visible {
        opacity: 1;
      }

    .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 2rem 3rem; 
  }
}

/* ========== TELEFONY (<= 576px) ========== */
@media (max-width: 576px) {


  body {
    font-size: 14px;
  }

   .head{
 background: #E47BE0 ;
background: radial-gradient(circle,rgba(228, 123, 224, 1) 5%, #E8E8E8 65%);
}

img{
  width: 90%;
    margin: 0 auto; 
}

.head > img {
  width:85%;
}

  .zdjomnie{
    width: 60%;
     border-radius: 45%;
 }

.call {
   
    width: 85%;
    
  }
  .package-card, .addon-card {
        margin: 10px 0;
      }
      .package-card h3 {
        font-size: 1.8rem;
      }
      .addon-card h4 {
        font-size: 1.5rem;
      }
      .package-card .btn {
        font-size: 0.9rem;
}
   .timeline-card {
        margin: 10px 0;
      }
      .timeline-card h4 {
        font-size: 1.6rem; /* Mniejszy font dla telefonów */
      }
      .timeline-card p {
        font-size: 0.9rem;
      }
      .timeline-item:nth-child(odd) .timeline-card,
      .timeline-item:nth-child(even) .timeline-card {
        width: 90%;
        margin-left: 48px; /* Odstęp 28px od linii (20px + 28px) */
        margin-right: 8px;
      }

    .portfolio-grid {
    grid-template-columns: 1fr;
    padding: 1rem 1.5rem; /* 🔹 mniejsze, ale równe odstępy */
  }
}