/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

html, body {
    font-family: 'Poppins', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

header {
    position: fixed;
    top: 5%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center; /* wycentrowanie wszystkiego razem */
    padding: 30px 5% 10px 5%;
    background-color: transparent;
    z-index: 1000;
}

.headercontent {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.headerlogo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.categories {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 20px;
}

.headerlogoimg {
    width: 100px;
    height: auto;
    cursor: pointer;
    transition: transform 0.5s ease-in-out;
}

.headerlogoimg:hover {
    transform: rotate(360deg);
    transition: transform 0.8s ease-in-out;
}



.category {
    position: relative;
    font-size: 25px;
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    transition: color 0.3s ease-in-out;
}

/* Podkreślenie */
.category::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 5px; 
    width: 0%;
    height: 3px;
    background: #ffffff; 
    transition: width 0.4s ease-in-out;
}


.category:hover::after {
    width: 100%;
}


.category.active::after {
    width: 100%;
}

/* SECTIONS */
section {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    padding-top: 80px;
    scroll-margin-top: 80px;
    position: relative;
}

section .content {
    margin: 0 auto;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

section .content.visible {
    opacity: 1;
    transform: translateY(0);
}

section h1 {
    font-size: 40px;
    border-radius: 30px;
    padding: 10px;
}


#sect1text{
    color: white;
}

#sect1img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        z-index: -1;
        filter: brightness(0.4);
}

.hide-logo {
    transform: translate(-50%, -200%);
}

.headerlogo {
    transition: transform 0.5s ease-in-out;
}

.navbar-dark {
    background-color: transparent;
}

.navbar-dark .category {
    color: black;
}

.navbar-dark .category::after {
    background: black;
}

.categories-wrapper {
    position: absolute;
    right: 5%;
    display: flex;
    align-items: center;
    background: transparent;
    padding: 5px 20px;
    border-radius: 30px;
    transition: background 0.5s ease-in-out;
    transition: background 0.5s ease, border 0.5s ease;
}

.categories {
    display: flex;
    align-items: center;
    gap: 20px;
}
.categories-wrapper.scrolled {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.categories-wrapper.scrolled .category {
    color: rgb(0, 0, 0);
}

.categories-wrapper.scrolled .category::after {
    background: rgb(0, 0, 0);
}

.hero-stack {
    position: relative;
    text-align: left;
    color: white;
    font-size: 130px;
    font-weight: 1000;
    line-height: 0.8;
    letter-spacing: -6px;
    text-transform: uppercase;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.7);
    margin-left: -80px; /* lekko do boku */
}

.hero-stack span {
    display: block;
}

@keyframes spin-on-load {
    from { transform: rotate(0deg); }
    to { transform: rotate(720deg); }
}

.spin-on-load {
    animation: spin-on-load 0.8s ease-in-out forwards;
}

@media only screen and (min-width: 768px) and (max-width: 1024px) {
 .hero-stack {
        font-size: 70px;
        margin-left: 0;
        text-align: center;
        line-height: 1;
        letter-spacing: 0px;
    }
    .headerlogoimg {
        display: none;
    }
}

@media only screen and (max-width: 768px) {
    .categories {
        display: none;
    }

    .categories-wrapper {
        display: none;
    }

    .headerlogoimg {
        width: 100px;
    }

    section h1 {
        font-size: 25px;
    }
    .hero-stack {
        font-size: 40px;
        margin-left: 0;
        text-align: center;
        line-height: 1;
        letter-spacing: 1px;
    }

}

/* ANIMOWANA STRZAŁKA SCROLLOWANIA */
.scroll-arrow {
    position: absolute;
    bottom: 40px;       /* Odległość od dolnej krawędzi */
    left: 50%;
    transform: translateX(-50%); /* Idealne wyśrodkowanie */
    width: 45px;
    height: 45px;
    z-index: 10;
    animation: bounce 2s infinite; /* Nieskończona animacja co 2 sekundy */
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.scroll-arrow:hover {
    opacity: 1;
}

.scroll-arrow svg {
    width: 100%;
    height: 100%;
}

/* Klatki kluczowe dla animacji podskakiwania */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-15px);
    }
    60% {
        transform: translateX(-50%) translateY(-7px);
    }
}

