.outfit {
    font-family: "Outfit", sans-serif;
    font-weight: 100;
    font-style: normal;
}
html, body {
    overflow-x: hidden;
}
.main-container,
.second-container,
.about-me-container {
    height: auto;
    min-height: 100svh; /* lepsze niż 100vh na telefonach */
}
* {
    font-family: "Outfit", sans-serif;
    font-weight: 300;
}
body {
    background-color: #212126 !important;
    color: #F2F2F2 !important;
}
.text-muted {
    color: #808080 !important;
}
.bg-primary {
    background-color: #39FF14;
}
.bg-base {
    background-color: #00C853;
}
.bg-secondary {
    background-color: #00C853;
}
.main-container {
    height: 100vh;
}
.second-container {
    height: 100vh;
    background-color: #212126;
}
.about-me-container{
    height: 101vh;
    background-color: #141417;
}
.about-me-text {
    font-size: 2rem;
}
.project-description-text {
    font-size: 1.4rem;
}
.home-page-name {
    font-size: 7rem;
    letter-spacing: 10px;
    font-weight: 600;
    margin: 0;
    padding: 0;
    line-height: 0.9;
}
.home-page-title {
    font-size: 7rem;
    letter-spacing: 10px;
    font-weight: 600;
    margin: 0;
    padding: 0;
}
.middle-title {
    font-size: 3rem;
    letter-spacing: 5px;
    font-weight: 400;
}
.line-decoration {
    margin-top: 2rem;
    width: 10%;
    height: 20px;
    background-color: #39FF14;
}
.header-main-text {
    font-size: 3rem;
    font-weight: 300;
}
.bottom-main-text {
    font-size: 1.4rem;
    color: #808080
}
.about-me-link {
    font-size: 1.4rem;
    color: #39FF14;
    text-decoration: none;
    text-align: left;
}
.about-me-link:hover {
    color: #00C853;
}
.nav-element {
    font-size: 2rem;
    font-weight: 500;
    text-decoration: none;
    color: #F2F2F2;
}
.nav-element:hover {
    color: #00C853;
}
.header-logo {
    height: 90px;
}
.portfolio-category-wrap{
    border-top: 1px solid #F2F2F2;
    border-bottom: 1px solid #F2F2F2;
}

.portfolio-category{
    width: 100%;
    background: transparent;
    border: 0;
    color: #F2F2F2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 6vh 1rem;
    font-size: 2rem;
    cursor: pointer;
}

.category-icon{
    font-size: 1.5rem;
    transition: transform .35s ease;
}

.portfolio-reveal{
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: max-height .45s ease, opacity .3s ease, transform .35s ease;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    padding: 0 1rem;
}

.work-item{
    color: #F2F2F2;
    position: relative;
    text-decoration: none;
    border: 1px solid #39FF14;
    border-radius: 999px;
    padding: .45rem .9rem;
    font-size: .95rem;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .25s ease, transform .25s ease, background .2s ease, color .2s ease;
}
.no-border-top {
    border-top: 0;
}

.hover-preview{
    position: fixed;
    z-index: 9999;
    width: 600px;
    aspect-ratio: 16/9;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #39FF14;
    background: #111;
    box-shadow: 0 16px 40px rgba(0,0,0,.45);

    opacity: 0;
    transform: translateY(8px) scale(.98);
    pointer-events: none;
    transition: opacity .18s ease, transform .22s ease;
}

.hover-preview.show{
    opacity: 1;
    transform: translateY(0) scale(1);
}

.hover-preview img,
.hover-preview video{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

@media (max-width: 991.98px){
    .hover-preview{ display:none !important; }
}

.work-item:hover{
    background: #39FF14;
    color: #212126;
}

.portfolio-category-wrap:hover .portfolio-reveal{
    max-height: 220px;
    opacity: 1;
    transform: translateY(0);
    padding-bottom: 5vh;
}

.portfolio-category-wrap:hover .category-icon{
    transform: rotate(45deg);
}

.portfolio-category-wrap:hover .work-item{
    opacity: 1;
    transform: translateY(0);
}
.portfolio-category-wrap:hover .work-item:nth-child(1){ transition-delay: .05s; }
.portfolio-category-wrap:hover .work-item:nth-child(2){ transition-delay: .10s; }
.portfolio-category-wrap:hover .work-item:nth-child(3){ transition-delay: .15s; }

@media (max-width: 991.98px) {
    .home-page-title {
        font-size: 4rem;
    }
    .home-page-name {
        font-size: 4rem;
    }
    .main-container {
        padding-top: 1rem !important;
        padding-bottom: 2rem !important;
    }

    .second-container,
    .about-me-container {
        padding-top: 1rem;
        padding-bottom: 2rem;
    }

    .main-container .row.h-100 {
        height: auto !important;
        row-gap: 1.25rem;
        margin-top: 1rem;
    }

    .header-main-text,
    .about-me-link {
        text-align: left;
    }
    .bottom-main-text {
        font-size: 1.2rem;
    }

    /* nav pod logo */
    .nav-element {
        display: inline-block;
        padding: .35rem .15rem;
    }

    /* portfolio categories */
    .portfolio-category {
        font-size: 1.35rem;
        padding: 3.5vh 0.5rem;
    }

    .category-icon {
        font-size: 1.1rem;
    }

    /* hover nie działa na mobile - pokazuj od razu listę */
    .portfolio-reveal {
        max-height: none !important;
        opacity: 1 !important;
        transform: none !important;
        padding-bottom: 2.2vh !important;
        overflow: visible;
    }

    .work-item {
        opacity: 1 !important;
        transform: none !important;
    }

    .portfolio-category-wrap:hover .category-icon {
        transform: none;
    }

    /* preview zawsze off na mobile */
    .hover-preview {
        display: none !important;
    }
}