@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;600;700;800;900&display=swap');

* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


:root {
    --primary-color: #694bea;
    --secondary-color: #f8cf46;
}

::-moz-selection {
    color: #fff;
    background: var(--primary-color)
}

::selection {
    color: #fff;
    background: var(--primary-color)
}

::-moz-selection {
    color: var;
    background: var(--primary-color)
}

body, * {
    font-family: 'Poppins', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
     letter-spacing: 0.2px;
}

h1, .h1 {
    font-weight: 700;
    font-size: 2.6rem;
    letter-spacing: -0.5px;
}

h2, .h2 {
    font-weight: 600;
    font-size: 2rem;
    letter-spacing: -0.3px;
}

h3, .h3 {
    font-weight: 600;
    font-size: 1.6rem;
}

h4, .h4 {
    font-weight: 700;
    font-size: 1.3rem;
}

p {
    font-weight: 300;
    font-size: 1rem;
    line-height: 1.8;
    color: #e5e5e5;   /* lekkie rozjaśnienie do dark UI */
}

.sidebar .info p {
    color: #ddd;
}

a {
    font-weight: 400;
    text-decoration: none;
    transition: 0.3s;
}

a:hover {
    opacity: 0.7;
}

a.link {
    position: relative;
    -webkit-transition: all .2s ease-in-out;
    transition: all .2s ease-in-out
}

a.link::before {
    content: '';
    width: 100%;
    height: 2px;
    background: #d9d9d9;
    position: absolute;
    bottom: -4px;
    left: 0;
    -webkit-transition: all .2s ease-in-out;
    transition: all .2s ease-in-out
}

a.link:hover {
    color: #000
}

a.link:hover::before {
    background: #000
}

.space-md {
    padding-top: 50px;
    padding-bottom: 30px
}

#preloader {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 999;
    background: #fff;
    -webkit-transition: all .3s ease-in-out;
    transition: all .3s ease-in-out
}

#preloader.hide {
    visibility: hidden;
    opacity: 0
}

#loader {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -30px 0 0 -30px;
    -webkit-animation: loader 1s infinite linear;
    animation: loader 1s infinite linear
}

@-webkit-keyframes loader {
    0% {
        -webkit-transform: scale(1);
        border: 5px solid #222
    }
    50% {
        -webkit-transform: scale(0);
        border: 30px solid #222
    }
    100% {
        -webkit-transform: scale(1);
        border: 10px solid #222
    }
}

@keyframes loader {
    0% {
        -webkit-transform: scale(1);
        transform: scale(1);
        border: 5px solid #222
    }
    50% {
        -webkit-transform: scale(0);
        transform: scale(0);
        border: 30px solid #222
    }
    100% {
        -webkit-transform: scale(1);
        transform: scale(1);
        border: 10px solid #222
    }
}


/*/////////////////////
  Container tweak
///////////////////////*/

.container {
    max-width: 1440px
}


/*/////////////////////
Navigation
///////////////////////*/

#mainNav {
  background: white;
}

/* animowany pasek jako dolna kreska */
#mainNav::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 10px; /* grubość separatora */
    background: linear-gradient(270deg, #ff7e5f, #feb47b, #86a8e7, #91eae4);
    background-size: 800% 800%;
    animation: navGradient 8s ease infinite;
}

.navbar-light .navbar-nav .nav-link {
    color: rgb(0, 0, 0);
    font-weight: 700;
    letter-spacing: 0.04rem;
    transition: color 0.3s ease, transform 0.3s ease; /* smooth transition */
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link:focus {
    color: #ff5e5e; /* przykładowy kolor przy najechaniu */
    transform: translateY(-2px); /* lekki efekt „unoszenia” */
}


.navbar-brand {
    display: inline-block;
    padding-top: .3125rem;
    padding-bottom: .3125rem;
    margin-right: 1rem;
    font-size: 1.25rem;
    line-height: inherit;
    white-space: nowrap;
    font-weight: 900;
    text-transform: capitalize;
}


/*/////////////////////
Header intro 
///////////////////////*/

.headline {
    position: relative;
    margin-bottom: 50px;
    margin-top: 100px;
}

.headline-content {
    display: block;
    position: relative;
}

.headline-content .headline-title {
    font-weight: 900
}

.headline-subtitle {
    font-size: 24px
}


/* Portfolio */

#portfolio-filters {
    margin-bottom: 50px
}


/* portfolio filter */

#filters li {
    display: inline-block;
    margin-right: 100px
}

#filters li:last-child {
    margin-right: 0
}

#filters li a {
    font-size: 18px;
    font-weight: 600;
    position: relative;
    -webkit-transition: all .2s ease-in-out;
    transition: all .2s ease-in-out;
    text-decoration: none;
}

#filters li a::after {
    content: '';
    width: 0;
    height: 3px;
    position: absolute;
    bottom: -6px;
    left: 0;
    background: #000;
    -webkit-transition: all .2s ease-in-out;
    transition: all .2s ease-in-out;
}

#filters li a:hover,
#filters li a.active {
    color: #000
}

#filters li a:hover::after,
#filters li a.active::after {
    width: 100%
}
/* Mobile adjustments */
@media (max-width: 767px) {
    #filters li {
        display: inline-block;
        margin-right: 20px; /* mniejsze odstępy */
        margin-bottom: 10px; /* odstęp w dół, gdy złamie się linia */
    }

    #filters {
        display: flex;
        flex-wrap: wrap;
        justify-content: center; /* wyśrodkowanie filtrów */
    }

    #filters li a::after {
        bottom: -4px; /* mniejsze przesunięcie */
    }
}

/* Portfolio items */

/* Grid portfolio */
.grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px; /* odstęp między kafelkami */
}
.grid .entry {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.grid .entry.show {
    opacity: 1;
    transform: translateY(0);
}


.entry {
  flex: 1 0 23%; /* ~4 kafelki w rzędzie na desktopie */
  box-sizing: border-box;
  cursor: pointer;
}

.entry-image {
  width: 100%;
  padding-top: 100%; /* kwadrat */
  background-size: cover;
  background-position: center;
  border-radius: 6px;
  position: relative;
}

.work-entry-hover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

@media (max-width: 992px) {
  .entry {
    flex: 1 0 31%; /* 3 w rzędzie tablet */
  }
}

@media (max-width: 768px) {
  .entry {
    flex: 1 0 48%; /* 2 w rzędzie mobile */
  }
}

@media (max-width: 480px) {
  .entry {
    flex: 1 0 100%; /* 1 w rzędzie mały ekran */
  }
}


.entry {
    overflow: hidden
}

.entry-image {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    -webkit-transition: all .3s ease-in-out;
    transition: all .3s ease-in-out
}

.entry:hover .entry-image {
    -webkit-transform: scale(1.1);
    transform: scale(1.1)
}

.work-entry-hover {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    background: linear-gradient(135deg,
  #8e095d80,
  #64a7ff80,
  #64d40380
);
background-size: 400% 400%;
animation: gradientMove 10s ease infinite;
    opacity: 0;
    visibility: hidden;
    -webkit-transition: all .2s ease-in-out;
    transition: all .2s ease-in-out
}
@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.entry:hover .work-entry-hover {
    opacity: 1;
    visibility: visible
}

.work-entry-content {
    position: absolute;
    bottom: 50px;
    left: 50px
}

.work-entry-title {
    font-size: 22px;
    font-weight: 600;
    color: #fff;
    opacity: 0;
    position: relative;
    top: 15px;
    -webkit-transition: all .5s cubic-bezier(0.4, .2, 0, 1) .2s;
    transition: all .5s cubic-bezier(0.4, .2, 0, 1) .2s
}

.work-entry-cat {
    font-size: 14px;
    opacity: 0;
    position: relative;
    top: 15px;
    -webkit-transition: all .5s cubic-bezier(0.4, .2, 0, 1) .3s;
    transition: all .5s cubic-bezier(0.4, .2, 0, 1) .3s;
    color: #fff;
}

.entry:hover .work-entry-title,
.entry:hover .work-entry-cat {
    opacity: 1;
    top: 0
}



.project-intro li {
    font-size: 18px;
    color: #000000;
    padding: 12px 0 13px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    max-width: 200px
}

.project-intro li.title {
    font-weight: 700;
    padding: 0px 0 22px;
}


/* Footer */



.footer {
    margin-top: 15px;
}

.footer .footer-title {
    margin-bottom: 10px
}

.footer ul {
    margin-top: 10px
}

.footer ul li {
    margin-bottom: 10px
}

.copy {
    font-weight: 600;
    color: #000;
    padding-top: 10px;
}
/* Footer - mobile */
@media (max-width: 767px) {
    .footer {
        text-align: center;  /* centrowanie tekstu */
    }

    .footer ul {
        padding: 0;
        list-style: none;
        display: flex;
        flex-direction: column;  /* ustawione w kolumnę */
        align-items: center;     /* centrowanie elementów */
    }

    .footer ul li {
        margin-bottom: 10px;
    }

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

    .copy {
        text-align: center;
        padding-top: 10px;
    }
}


.social-icons {
    display: flex;
    gap: 20px; /* odległość między ikonami */
    margin-top: 10px; /* opcjonalnie odstęp od reszty stopki */
}

.social-icons a {
    color: #000;
    font-size: 24px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-icons a:hover {
    transform: scale(1.2);
    color: #ff6f61;
}

/* Mobile */
@media (max-width: 767px) {
    .social-icons {
        justify-content: center; /* wyśrodkowanie całego rzędu */
        flex-wrap: wrap;         /* w razie bardzo małego ekranu mogą się złamać w nowy wiersz */
    }
}


/* Sidebar */

.sidebar {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 0;               /* start schowany */
  background-color: rgba(0,0,0,0.95);
  color: white;
  overflow: hidden;       /* WAŻNE! */
  padding: 0;             /* usuń padding przy zamknięciu */
  z-index: 10000;
  box-shadow: none;       /* usuń cień przy zamknięciu */
  transition: width 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}

/* Sidebar otwarty */
.sidebar.open {
  width: 50%;             /* desktop */
  padding: 20px;
  box-shadow: -4px 0 12px rgba(0,0,0,0.5);
}

@media (max-width: 767px) {
  .sidebar.open {
    width: 100%;       /* wypełnia cały ekran */
    padding: 20px;
    box-shadow: none;  /* cień można opcjonalnie wyłączyć na mobile */
  }
}

#sidebar-content img {
  width: 100%;
  margin-top: 20px;
  border-radius: 5px;
}

#sidebar-content .category {
    font-weight: bold;
    margin-top: 10px;
}

#sidebar-content .info {
    margin-top: 10px;
    color: #ddd;
}
.sidebar-img {
    width: 100%;
    margin: 15px 0;
    border-radius: 6px;
    display: block;
}

/* WEWNĘTRZNY SCROLL */
#sidebar-content {
    height: calc(100vh - 40px); /* zostawia miejsce na X */
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 10px; /* żeby scroll nie nachodził na content */
}


/* Odstęp między ikonami i linkami menu */



.iframe-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* Proporcje 16:9 */
    height: 0;
    margin-bottom: 15px;
}

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


.div-separator {
    height: 10px;                /* grubość paska */
    width: 100%;                 /* pełna szerokość */
    background: linear-gradient(270deg, #ff7e5f, #feb47b, #86a8e7, #91eae4);
    background-size: 800% 800%;
    animation: gradientAnim 8s ease infinite;
    border-radius: 2px;          /* lekko zaokrąglone końce */
}

@keyframes gradientAnim {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}





#loadMore {
    display: inline-block;
    cursor: pointer;
    font-weight: 700;
    font-size: 2.2rem;
    color: #000;
    transition: color 0.3s ease, transform 0.3s ease; /* animacja koloru i lekkiego unoszenia */
 margin: 30px 0;
    text-align: center;
    padding-bottom: 30px
}

#loadMore:hover,
#loadMore:focus {
    color: #ff5e5e; /* kolor przy najechaniu */
    transform: translateY(-2px); /* lekki efekt unoszenia */
}

.animated-text {
  background: linear-gradient(270deg, #ff5e5e, #ff9f5e, #5eff7e, #5ed0ff);
  background-size: 1000% 1000%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientAnimation 15s ease infinite;
}

@keyframes gradientAnimation {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}