/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap");

/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3.5rem;

  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  /*
        Purple: hsl(250, 66%, 75%)
        Blue: hsl(207, 90%, 72%)
        Pink: hsl(356, 66%, 75%)
        Teal: hsl(174, 63%, 62%)
  */
  --first-hue: 220; /* Przesuwamy w stronę niebieskiego */
  --sat: 100%;      /* Nasycenie na pełne 100% dla efektu elektrycznego */
  --lig: 60%;       /* Jasność na poziomie 60% dla stonowanego efektu */
  --second-hue: 219;
  --first-color: hsl(var(--first-hue), var(--sat), var(--lig));
  --first-color-alt: hsl(var(--first-hue), var(--sat), 68%); /* -4% */
  --title-color: hsl(var(--second-hue), 15%, 95%);
  --text-color: hsl(var(--second-hue), 8%, 75%);
  --text-color-light: hsl(var(--second-hue), 4%, 55%);
  --body-color: hsl(var(--second-hue), 48%, 8%);
  --container-color: hsl(var(--second-hue), 32%, 12%);

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: 'Poppins', sans-serif;
  --biggest-font-size: 1.75rem;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1rem;
  --normal-font-size: .938rem;
  --small-font-size: .813rem;
  --smaller-font-size: .75rem;
  --tiny-font-size: .625rem;

  /*========== Font weight ==========*/
  --font-medium: 500;
  --font-semibold: 600;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
  --z-modal: 1000;
}

/* Responsive typography */
@media screen and (min-width: 968px) {
  :root {
    --biggest-font-size: 2.5rem;
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: .875rem;
    --smaller-font-size: .813rem;
  }
}

/*=============== BASE ===============*/
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body,
button,
input,
textarea {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
}

body {
  background-color: var(--body-color);
  color: var(--text-color);
  transition: .4s; /* for light mode animation */
}

body::before {
  content: "";
  position: fixed; /* Fixed, aby tło pozostało na swoim miejscu */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("../img/paralax_back.png") no-repeat center center fixed;
  background-size: cover;
  opacity: 0.2; /* Tutaj ustawiasz przezroczystość obrazu tła */
  z-index: -1; /* Upewnia się, że tło pozostaje za zawartością strony */
  pointer-events: none; /* Zapobiega interakcji z tłem */
}

h1, h2, h3 {
  color: var(--title-color);
  font-weight: var(--font-semibold);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
}

/*=============== LANGUAGE SWITCH ===============*/
.language-switch {
  position: relative;
  display: inline-flex;
  padding: 0.5rem 1rem;
  background-color: var(--container-color);
  color: var(--first-color);
  font-weight: 600;
  border-radius: .5rem;
  box-shadow: 0 4px 12px hsla(var(--second-hue), 32%, 16%, .3);
  transition: all .3s;
}

.language-switch::before {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  background-color: var(--first-color);
  border-radius: 50%;
  left: 0.35rem;
  top: 50%;
  transform: translateY(-50%);
}

.language-switch:hover {
  background-color: var(--first-color);
  color: var(--body-color);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px hsla(var(--second-hue), 32%, 16%, .5);
}

.language-switch:hover::before {
  background-color: var(--body-color);
}

@media screen and (max-width: 768px) {
  .language-switch {
    padding: 0.3rem 0.7rem;
    font-size: 0.9rem;
  }
}

img {
  max-width: 100%;
  height: auto;
}

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  max-width: 968px;
  margin-left: 1rem;
  margin-right: 1rem;
}

.grid {
  display: grid;
  gap: 1.25rem;
}

.main {
  overflow: hidden;
}

.section {
  padding: 4.5rem 0 1rem;
}

.section__title, 
.section__subtitle {
  text-align: center;
}

.section__title {
  font-size: var(--h2-font-size);
  color: var(--first-color);
  margin-bottom: 2rem;
}

.section__subtitle {
  display: block;
  font-size: var(--smaller-font-size);
  color: var(--text-color-light);
}

.subsection__title{
  font-size: var(--h2-font-size);
  color: var(--first-color);
  padding: 2rem 2rem 2rem 0rem;
}

/*=============== HEADER & NAV===============*/


.header {
  position: fixed;
  top: 0;
  left : 0;
  width: 100%;
  background-color: var(--body-color);
  z-index: var(--z-fixed);
  transition: .4s; /* for light mode animation */
}

.nav {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo {
  color: var(--first-color);
  font-weight: var(--font-medium);
  transition: .4s;
}

.nav__logo:hover{
  color: var(--first-color-alt);
}

.nav__logo img {
  width: 250px;
  height: auto; /* zachowuje proporcje */
}


.nav__menu 
{
  position: fixed;
  bottom: 1rem;
  background-color: hsla(var(--second-hue), 32%, 16%, .8);
  width: 90%;
  border-radius: 4rem;
  padding: 1rem 2.25rem;
  backdrop-filter: blur(10px);
  transition: .4s; /* for light mode animation */
}
.nav__list 
{
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav__link
{
  color: var(--text-color);
  font-size: 1.25rem;
  padding: .4rem;
  display: flex;
  border-radius: 5rem;
}



/* Active link */

.active-link {
  background: linear-gradient(180deg, 
    hsla(var(--first-hue),var(--sat), var(--lig), 1),
    hsla(var(--first-hue), var(--sat), var(--lig), .2));

    box-shadow: 0 0 16px hsla(var(--first-hue), var(--sat), var(--lig), .4);
    color: var(--title-color);
}

/* Change background header */

.scroll-header
{
  box-shadow: 0 4px 4px hsla(0, 0%, 4%, .3);
}

/*=============== HOME ===============*/

.home__container 
{
  position: relative;
  row-gap: 4.5rem;
  padding-top: 2rem;
}

.home__data
{
  text-align: center;
}

.home__greeting 
.home__education
{
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
}

.home__greeting
{
  display: block;
  color: var(--title-color);
  margin-bottom: .25rem;  
}

.home__education
{
  color: var(--text-color);
  margin-bottom: 2.5rem;
}

.home__name 
{
  font-size: var(--h2-font-size);
}

.home__handle {
  justify-self: center;
  width: 240px !important; /* Dostosuj szerokość */
  height: 400px !important; /* Dostosuj wysokość */
  background: linear-gradient(180deg, hsla(var(--first-hue), var(--sat), var(--lig), 1), hsla(var(--first-hue), var(--sat), var(--lig), .2));
  border-radius: 10rem 10rem 1rem 1rem;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.home__img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}



.home__buttons
{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
}

.home__social,
.home__scroll
{
    position: absolute;
}

.home__social-link
{
    width: max-content;
    background-color: var(--container-color);
    color: var(--first-color);
    padding: .25rem;
    border-radius: .25rem;
    display: flex;
    font-size: 1rem;
    transition: .4s; 
}

.home__social-link:hover
{
  background-color: var(--first-color);
  color: #fff;
}

.home__social
{
  bottom: 5rem;
  left: 0;
  display: grid;
  row-gap: .5rem;
}

.home__social::after
{
  content: '';
  width: 32px;
  height: 2px;
  background-color: var(--first-color);
  transform: rotate(90deg) translate(16px,3px);
}

.home__scroll
{
  color: var(--first-color) ;
  right: -1.5rem;
  bottom: 4rem;
  display: grid;
  row-gap: 2.25rem;
  justify-items: center;
}

.home__scroll-icon
{
  font-size: 1.25rem;
}
.home__scroll-name
{
  font-size: var(--smaller-font-size);
  transform: rotate(-90deg);
}

/*=============== BUTTONS ===============*/

.button 
{
  display : block;
  background-color : var(--first-color);
  color : var(--body-color);
  padding : .75rem 1rem;
  border-radius: .5rem;
  font-weight: var(--font-medium);
  transition: .4s;


}

.button:hover 
{
  background-color: var(--first-color-alt);
  color : var(--body-color);
}

.button--ghost
{
  background-color: transparent;
  border : 2px solid var(--first-color);
  color: var(--first-color);
}

.about__button 
{
  display : block;
  background-color : var(--first-color);
  color : var(--body-color);
  padding :.75rem 1rem;
  border-radius: .5rem;
  font-weight: var(--font-medium);
  transition: .4s;
  margin-top: 2rem;


}

#see-more-btn{
  display : block;
  background-color : var(--first-color);
  color : var(--body-color);
  padding :.75rem 1rem;
  border-radius: .5rem;
  font-weight: var(--font-medium);
  transition: .4s;
  margin: 2rem auto;
}

/*=============== ABOUT ===============*/

.about__container 
{
    row-gap: 2.5rem;
}
.about__img
{
  filter: blur(5px);
  opacity: 0.3;
  width: 220px;
  border-radius: 1.5rem;
  justify-self: center;
}
.about__data
{
  text-align: center;
}
.about__info
{
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: .5rem;
  margin-bottom: 2rem;
}
.about__box
{
  background-color: var(--container-color);
  border-radius: .75rem;
  padding: .75rem .5rem;
}
.about__icon
{
  font-size: 1.5rem;
  color: var(--first-color);
  margin-bottom: .5rem;
}

.about__title
{
  font-size: var(--small-font-size);
}
.about__subtitle
{
  font-size: var(--tiny-font-size);
}
.about__description
{
  margin-bottom: 2rem;
}





/*=============== SKILLS ===============*/
.skills__container
{
  row-gap: 2rem;
  padding-top: 1rem;
}
.skills__content
{
  background-color: var(--container-color);
  padding: 1.5rem;
  border-radius: 1.25rem;
}
.skills__title
{
  font-size: var(--normal-font-size);
  font-weight: var(--font-medium);
  color: var(--first-color);
  text-align: center;
  margin-bottom: 1.5rem;
}
.skills__box
{
  display: flex;
  justify-content: center;
  column-gap: 2.5rem;
}
.skills__group
{
  display: grid;
  align-content: flex-start;
  row-gap: 1rem;
}

.skills__data
{
  display: flex;
  column-gap: .5rem;
}
.skills .bxs-badge-check
{
  font-size: 1rem;
  color: var(--first-color);
}
.skills__name
{
  font-size: var(--normal-font-size);
  font-weight: var(--font-medium);
  line-height: 18px;
}

.skills__level
{
  font-size: var(--tiny-font-size);
}



/*=============== SERVICES ===============*/
.services__container
{
  grid-template-columns: repeat(2,1fr);
  gap: 1.5rem;
  padding-top: 1rem;
}

.services__card
{
  background-color: var(--container-color);
  padding: 3rem 1.5rem 1.5rem;
  border-radius: 1rem;
}

.services__title
{
  font-size: var(--h3-font-size);
  margin-bottom: 2.5rem;

}

.services__button
{
  color: var(--first-color);
  font-size: var(--small-font-size);
  display: flex;
  align-items: center;
  column-gap: .25rem;
  cursor: pointer;
}

.services__button:hover .services__icon
{
  transform: translateX(.25rem);
}

.services__icon
{
  font-size: 1rem;
  transition: .4s;
}

/* Services modal */

.services__modal
{
  position: fixed;
  inset: 0;
  background-color: hsl(var(--second-hue), 28%, 16%, .7);
  padding: 2rem 1rem;
  display: grid;
  place-items: center;
  visibility: hidden;
  opacity: 0;
  transition: .4s;
  z-index: var(--z-modal);
}

.services__modal-content
{
  position: relative;
  background-color: var(--body-color);
  padding: 4.5rem 1.5rem 2.5rem;
  border-radius: 1.5rem;
}
.services__modal-title,
.services__modal-description
{
  text-align: center;
}

.services__modal-title
{
  font-size: var(--h3-font-size);
  color: var(--first-color);
  margin-bottom: 1rem;
}

.services__modal-description
{
  font-size: var(--small-font-size);
  margin-bottom: 2rem;
}
.services__modal-list
{
  display: grid;
  row-gap: .75rem;
}

.services__modal-item
{
  display: flex;
  align-items: flex-start;
  column-gap: .5rem;

}
.services__modal-icon
{
  font-size: 1.5rem;
  color: var(--first-color);
}

.services__modal-info
{
  font-size: var(--small-font-size);
}
.services__modal-close
{
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 1.5rem;
  color: var(--first-color);
  cursor: pointer;
}

/*Active modal*/

.active-modal
{
  opacity: 1;
  visibility: visible;
}

/*=============== WORK ===============*/

.work__container
{
  padding-top: 1rem;
}

.work__filters
{
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: .75rem;
  margin-bottom: 2rem;
}

.work__item
{
  cursor: pointer;
  color: var(--title-color);
  padding: .25rem .75rem;
  font-weight: var(--font-medium);
  border-radius: .5rem;
}

.work__card
{
  background-color: var(--container-color);
  padding: 1rem;
  border-radius: 1rem;
}

.work__img
{
  border-radius: 1rem;
  margin-bottom: .75rem;
}

.work__title
{
  font-size: var(--normal-font-size);
  font-weight: var(--font-medium);
  margin-bottom: .25rem;
}

/* Stylizacja przycisku w sekcji work */
.work__button {
  color: var(--first-color); /* Kolor tekstu */
  font-size: var(--small-font-size);
  display: flex;
  align-items: center;
  column-gap: .25rem;
  background-color: var(--container-color); /* Tło przycisku */
  padding: 0.5rem 1rem; 
  border-radius: 0.5rem;
  border: 2px solid transparent; /* Brak obramowania */
  transition: background-color 0.3s ease, color 0.3s ease; /* Płynne przejście */
}

/* .work__button:hover {
  background-color: var(--first-color); /* Tło przycisku po najechaniu */
  /* color: var(--body-color); Kolor tekstu po najechaniu */
/* } */

.work__button i {
  transition: transform 0.3s ease; /* Animacja ikony */
}

.work__button:hover i {
  transform: translateX(0.25rem); /* Przesunięcie ikony po najechaniu */
}

.work__icon
{
  font-size: 1rem;
  transition: .4s;
}


/* Stylizacje modalów w sekcji work */
/* Stylizacja modalów */

.modal__button {
  background-color: #007bff; /* Elektryczny niebieski z Twojej identyfikacji */
  color: var(--body-color);
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s;
}

.modal__button:hover {
  background-color: var(--first-color-alt);
}


.work__modal {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.7);
  padding: 2rem 1rem;
  display: grid;
  place-items: center;
  visibility: hidden;
  opacity: 0;
  transition: 0.3s;
  z-index: 1000;
}

.work__modal-content {
  position: relative;
  background-color: var(--body-color);
  padding: 2rem 1rem;
  border-radius: 1.5rem;
  max-width: 800px; /* Zwiększona szerokość */
  text-align: center;
  max-height: 90vh; /* Maksymalna wysokość */
  overflow: auto; /* Pozwala na przewijanie, jeśli zawartość jest zbyt duża */
}

.work__modal-title {
  font-size: var(--h3-font-size);
  color: var(--first-color);
  margin-bottom: 1rem;
}

.work__modal-description {
  font-size: var(--normal-font-size);
  margin-bottom: 1rem;
}

.work__modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--first-color);
}

/* Aktywacja modalu */
.work__modal.active-modal {
  visibility: visible;
  opacity: 1;
}

/* Swiper Styles for Work Modals */
.work__swiper {
  width: 100%;
  height: auto; /* Automatyczna wysokość dopasowująca się do zawartości */
  max-height: 500px; /* Ustawienie maksymalnej wysokości dla Swipera */
}

.work__modal-img {
  max-width: 100%;
  height: auto; /* Ustawia wysokość obrazka w zależności od proporcji */
  max-height: 400px; /* Maksymalna wysokość obrazka */
  object-fit: contain; /* Utrzymuje proporcje obrazka */
  cursor: pointer;
  border-radius: 1rem; /* Dostosowuje zaokrąglenie */
}

.work__slide-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.work__slide-title {
  font-size: var(--small-font-size); /* Rozmiar czcionki tytułu */
  color: var(--text-color);
  /*margin-top: 0.5rem;  Odstęp między obrazem a tytułem */
  display: block;
  text-align: center;
  margin-top: 1rem;
}

.work__video-container {
  text-align: center;
  margin: 1rem 0; /* Zmiana marginesu na rem */
  position: relative;
  padding-bottom: 50%; /* Proporcje 16:9 */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  max-height: 22rem; /* Ograniczenie maksymalnej wysokości do rem */
}

.work__video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}



/* Stylizacja overlay dla pełnego widoku */
.full-view-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.full-view-img {
    max-width: 90%;
    max-height: 90%;
    box-shadow: 0px 0px 10px #fff;
    border-radius: 1rem;
}




/* Active item work*/
.active-work 
{
  background-color: var(--first-color);
  color: var(--body-color);
}

/*=============== TESTIMONIAL ===============*/

.testimonial__card
{
  background-color: var(--container-color);
  padding: 1.25rem 1.5rem;
  border-radius: 1.5rem;
  margin-bottom: 3rem;
}

.testimonial__img
{
  width: 60px;
  border-radius: 3rem;
  margin-bottom: 1rem;
}

.testimonial__name
{
  font-size: var(--normal-font-size);
  font-weight: var(--font-medium);
  margin-bottom: .25rem
}

.testimonial__rank{
  font-size: var(--smaller-font-size);
  margin-bottom: 0.75rem;
}

.testimonial__description
{
  font-size: var(--small-font-size);
}

/* Swiper class */
/* Ustawienie stylu paginacji Swipera w sekcji work */
.swiper-pagination {
  bottom: 30px; /* Zwiększamy odstęp od dołu */
}

.swiper-pagination-bullet {
  background-color: var(--text-color-light); /* Ustawienie koloru kropki */
  opacity: 0.5;
  transition: opacity 0.3s;
}

.swiper-pagination-bullet-active {
  background-color: var(--first-color); /* Kolor aktywnej kropki */
  opacity: 1;
}

.work__slide-title {
  font-size: var(--small-font-size); /* Rozmiar czcionki tytułu */
  color: var(--text-color);
  margin-top: 1rem; /* Zwiększenie odstępu między obrazem a tytułem */
  margin-bottom: 1.5rem; /* Odstęp między tytułem a paginacją */
}


/*=============== CONTACT ===============*/

.contact__container
{
  row-gap: 3rem;
  padding-bottom: 3rem;
}
.contact__title
{
  text-align: center;
  font-size: var(--h3-font-size);
  margin-bottom: 1.5rem;
}
.contact__info
{
  display: grid;
  gap: 1rem;
}
.contact__card
{
  background-color: var(--container-color);
  padding: 1rem;
  border-radius: .75rem;
  text-align: center;
}
.contact__card-icon
{
  font-size: 2rem;
  color: var(--title-color);
  margin-bottom: .25rem;
}
.contact__card-title,
.contact__card-data
{
  font-size: var(--small-font-size);
}

.contact__card-title
{
  font-weight: var(--font-medium);
}
.contact__card-data
{
  display: block;
  margin-bottom: .75rem;
}
.contact__button
{
  color: var(--first-color);
  font-size: var(--small-font-size);
  display: flex;
  align-items: center;
  justify-content: center;
  column-gap: .25rem;
}

.contact__button:hover .contact__button-icon
{
  transform: translateX(.25rem);
}
.contact__button-icon
{
  font-size: 1rem;
  transition: .4s;
}

.contact__form-div
{
  position: relative;
  margin-bottom: 2rem;
  height: 4rem;
}

.contact__form-input
{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 2px solid var(--text-color-light);
  background: none;
  color: var(--text-color);
  padding: 1.5rem;
  border-radius: .75rem;
  z-index: 1;
}

.contact__form-tag
{
  position: absolute;
  top: -.75rem;
  left: 1.25rem;
  font-size: var(--smaller-font-size);
  padding: .25rem;
  background-color: var(--body-color);
  z-index: 10;
}

.contact__form-area
{
  height: 11rem;

}
.contact__form-area textarea 
{
  resize: none;
}
/*=============== FOOTER ===============*/
.footer
{
  background-color: var(--first-color);

}
.footer__container
{
  padding: 2rem 0 6rem;
}

.footer__title,
.footer__link
{
  color: var(--body-color);
}

.footer__title
{
  text-align: center;
  margin-bottom: 2rem;
}

.footer__list
{
  display: flex;
  justify-content: center;
  column-gap: 1.5rem;
  margin-bottom: 2rem;
}

.footer__social
{
  display: flex;
  justify-content: center;
  column-gap: 1.25rem;
}
.footer__social-link
{
  background-color: var(--body-color);
  color: var(--first-color);
  padding: .25rem;
  border-radius: .25rem;
  font-size: 1rem;
  display: inline-flex;
}

.footer__copy
{
  display: block;
  margin-top: 4.5rem;
  color: var(--container-color);
  text-align: center;
  font-size: var(--smaller-font-size);
}
/*=============== SCROLL BAR ===============*/
::-webkit-scrollbar
{
  width: .6rem;
  border-radius: .5rem;
  background-color: hsl(var(--second-hue), 8%, 38%);
}

::-webkit-scrollbar-thumb
{
  background-color: hsl(var(--second-hue), 8%, 26%);
  border-radius: .5rem;
}

::-webkit-scrollbar-thumb:hover
{
  background-color: hsl(var(--second-hue), 8%, 20%);
}

#cookieyes {
  position: fixed !important;  /* Fixed position to place it in a specific corner */
  bottom: 100px;  /* Adjust this value to move it up/down */
  right: 20px;   /* Adjust this value to move it left/right */
  z-index: 9999; /* Ensures it stays above other elements */
}



/*=============== BREAKPOINTS ===============*/
/* Dla małych ekranów (max-width: 430px) */
@media screen and (max-width: 590px) {

  .about__img{
    display: none;
  }

  /* Dostosowanie kontenera modali */
  .work__modal-content {
    padding: 1rem;
    max-width: 100vw;
    height: auto;
    max-height: 85vh; /* Maksymalna wysokość, aby zmieścić treści */
    overflow-y: auto;
  }

  /* Dopasowanie obrazów w modalach */
  .work__modal-img {
    width: 100%;
    max-height: 200px; /* Maksymalna wysokość obrazów */
    object-fit: contain; /* Utrzymanie proporcji obrazów */
  }

  /* Dostosowanie kontenera dla video */
  .work__video-container {
    max-width: 100%;
    height: auto;
    max-height: 180px; /* Ograniczenie maksymalnej wysokości dla video */
  }

  .work__video-container iframe {
    width: 100%;
    height: 180px; /* Dopasowanie wysokości dla video */
  }

  /* Dostosowanie tekstu w modalach */
  .work__modal-title {
    font-size: var(--h3-font-size);
  }

  .work__modal-description {
    font-size: var(--smaller-font-size); /* Zmniejszenie tekstu dla wąskich ekranów */
    margin-bottom: 1rem;
  }

  /* Zmniejszenie rozmiaru przycisków */
  .work__button {
    font-size: var(--smaller-font-size);
    padding: 0.5rem;
  }

  /* Dostosowanie Swipera */
  .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
  }

  .swiper-pagination {
    bottom: 15px;
  }

  /* Zmniejszenie przycisków filtrowania */
  .work__filters {
    display: flex;
    flex-wrap: wrap; /* Pozwoli na przełamanie linii przycisków */
    justify-content: center;
    gap: 0.5rem; /* Zwiększamy odstępy między przyciskami */
    padding: 1rem; /* Dodajemy trochę miejsca wokół przycisków */
  }

  .work__item {
    font-size: var(--small-font-size); /* Zmniejszamy rozmiar czcionki */
    padding: 0.4rem 0.8rem; /* Zmniejszamy rozmiar przycisków */
    text-align: center;
    width: auto; /* Dostosowujemy szerokość do treści */
  }

  /* Dostosowanie obrazków w kartach pracy */
  .work__img {
    max-width: 100%; /* Zmniejszamy szerokość obrazu na mniejszych ekranach */
    margin: 0 auto;
    object-fit: contain;
    border-radius: 0.5rem;
  }
}


/* For medium devices */
@media screen and (min-width : 576px) {
  .nav__menu
  {
    width: 328px;
    left: 0;
    right: 0;
    margin: 0 auto;
  }
  .about__info
  {
    grid-template-columns: repeat(3,140px);
    justify-content: center;
  }
  .about__description
  {
    padding: 0 5rem;
  }
  .skills__container
  {
    justify-content: center;
  }
  .skills__content
  {
    padding: 2rem 4rem;
  }
  .services__container
  {
    grid-template-columns: repeat(2,160px);
    justify-content: center;
  }
  .services__modal-content
  {
    width: 500px;
    padding: 4.5rem 2.5rem 2.5rem;
  }
  .services__modal-description
  {
    padding: 0 3.5rem;
  }
  .work__container
  {
    justify-content: center;
  }
  .work__img
  {
    width: 295px;
  }
  .contact__info
  {
    grid-template-columns: 300px;
    justify-content: center;
  }
  .contact__form
  {
    width: 360px;
    margin: 0 auto;
  }
}

@media screen and (min-width : 767px) {
  .work__container
  {
    grid-template-columns: repeat(2,max-content);
  }
  .contact__container
  {
    grid-template-columns: repeat(2,max-content);
    justify-content: center;
    column-gap: 3rem;
  }
}

/* For large devices */
@media screen and (min-width : 992px) {
  .container 
  {
    margin-left: auto;
    margin-right: auto;
  }
  .section
  {
    padding: 6.5rem 0 1rem;
  }
  .section__title
  {
    margin-bottom: 3.5rem;
  }
  .nav
  {
    height: calc(var(--header-height) + 1rem);
  }
  .home__handle
  {
    width: 290px;
    height: 400px;
  }
  .home__img
  {
    width: 220px;
  }
  .home__social-link
  {
    padding: .4rem;
    font-size: 1.25rem;
  }
  .home__social::after
  {
    transform: rotate(90deg) translate(16px, 0);
  }
  .home__scroll-icon
  {
    font-size: 2rem;
  }
  .about__container
  {
    grid-template-columns: repeat(2,1fr);
    align-items: center;
    column-gap: 4rem;
  }
  .about__img
  {
    width: 350px;
  }
  .about__data
  {
    text-align: initial;
  }
  .about__info
  {
    justify-content: initial;
  }
  .about__box
  {
    text-align: center;
    padding: 1rem 1.25rem;
  }
  .about__description
  {
    padding: 0 4rem 0 0;
    margin-bottom: 2.5rem;
  }
  .skills__container
  {
    grid-template-columns: repeat(2,350px);
    column-gap: 3rem;
  }
  .services__container
  {
    grid-template-columns: repeat(3,192px);
    column-gap: 3rem;
  }
  .services__card
  {
    padding: 5rem 2rem 1.5rem;
  }
  .work__container
  {
    gap: 3rem;
  }
  .work__card
  {
    padding: 1.25rem;
  }
  .work__img
  {
    margin-bottom: 1rem;
  }
  .work__title
  {
    margin-bottom: .5rem;
  }
  .testimonial__container
  {
    width: 750px;
  }
  .testimonial__card
  {
    padding: 1.5rem 2rem;
  }
  .contact__container
  {
    column-gap: 6rem;
  }
  .footer__social-link
  {
    font-size: 1.25rem;
    padding: .4rem;
    border-radius: .5rem;
  }
}

/*=============== SCROLL UP ===============*/
.scrollup {
  position: fixed;
  right: 1rem;
  bottom: -20%;
  background-color: var(--container-color);
  box-shadow: 0 8px 24px hsla(var(--second-hue), 72%, 35%, .3);
  display: inline-flex;
  padding: .5rem;
  border-radius: .25rem;
  z-index: 10;
  opacity: .8;
  transition: .4s;
}

.scrollup:hover {
  opacity: 1;
  transform: translateY(-5px);
}

.scrollup__icon {
  font-size: 1.5rem;
  color: var(--first-color);
}

/* Pokaż scroll up */
.show-scroll {
  bottom: 3rem;
}

/* Dla urządzeń mobilnych */
@media screen and (max-width: 350px) {
  .scrollup {
    right: .5rem;
  }
}

/* Dla tabletów */
@media screen and (min-width: 576px) {
  .scrollup {
    right: 1.5rem;
  }
}

/* Dla desktopów */
@media screen and (min-width: 992px) {
  .scrollup {
    right: 2.5rem;
  }
}