/* --- reset --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

html,
body {
    height: 100%
}

/* fonts */
body {
    font-family: 'Rajdhani', sans-serif;
    color: #fff;
    background: #000;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

canvas#bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* biała linia */
.separator {
    height: 2px;
    background-color: #fff;
    margin: 30px 0;
}

/* background */
.bg-fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -10;
    overflow: hidden;
}

.bg-fixed .bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.85);
}

/* global hover */
.global-hover {
    display: inline-block;
    transition: transform 0.9s ease;
}

.global-hover:hover {
    transform: scale(1.03);
}

.global-hover-txt {
    display: inline-block;
    transition: transform 0.9s ease;
}

.global-hover-txt:hover {
    transform: scale(1.08);
    color: #6cf;
}

/* hover wariacje */
.heading-line {
    /* display: flex; */
    gap: 1.5rem;
    font-size: 2rem;
}

.heading-line span {
    position: relative;
    cursor: default;
    transition: color 0.2s ease;
}

.heading-line span:hover {
    color: #6cf;
}

/* header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2000;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 32px
}

.logo {
    font-family: 'Rajdhani', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none
}

.main-nav a {
    color: #ffffff;
    text-decoration: none;
    margin-left: 22px;
    font-weight: 700;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer
}

/* MOBILE MENU */

.mobile-menu {
    position: fixed;
    width: 100%;
    top: 80px;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(6px);
    box-shadow: 0 4px 5px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 20px;

    /* ANIMACJA */
    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none;
    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}

.mobile-menu a {
    width: 100%;
    margin: 0 auto;
    font-size: 20px;
    font-weight: 800;
    color: #000000;
    text-decoration: none;
    padding: 8px;
    text-align: center;
}

.glow-text {
    
    text-shadow:
        0 0 8px #6cf,
        /* pierwszy glow */
        0 0 16px #6cf,
        /* drugi glow */
        0 0 24px #6cf;
    /* trzeci glow */
}

.mobile-menu a span {
    display: inline-flex;
    width: 100%;
    padding: 0px;
    justify-content: center;
}

/* PO OTWARCIU */
.mobile-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

/* hero */
.hero {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding-top: 50px
}

.hero-inner {
    text-align: center;
    max-width: 1000px;
    padding: 20px
}

.hero-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 48px;
    line-height: 1.05;
    margin-bottom: 12px
}

.hero-sub {
    font-size: 18px;
    opacity: .95;
    margin-bottom: 0px
}

.hero-ctas {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 10vh;
}

/* buttons */
.btn {
    width: 230px;
    display: inline-block;
    padding: 12px 18px;
    /* border-radius: 20px; */
    backdrop-filter: blur(2px);
    background: rgba(230, 230, 230, 0.1);
    box-shadow: 0 4px 5px rgba(0, 0, 0, 0.2);
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    margin-top: 0;
}

.btn-contact {
    font-family: 'Rajdhani', sans-serif;
    width: 230px;
    display: inline-block;
    padding: 10px 16px;
    /* border-radius: 8px; */
    backdrop-filter: blur(2px);
    background: rgba(230, 230, 230, 0.1);
    box-shadow: 0 4px 5px rgba(0, 0, 0, 0.2);
    color: #fff;
    border: none;
    text-decoration: none;
    font-weight: 500;
    margin-top: 0;
    cursor: pointer;
}

.btn-contact {
    display: inline-block;
    transition: transform 0.9s ease;
}

.btn-contact:hover {
    transform: scale(1.03);
    background: rgba(255, 255, 255, 0.15);
    /* jaśniejsze tło przy hover/ focus */
    box-shadow: 0 0 8px rgba(108, 204, 255, 0.6);
    /* delikatny glow */
}

#toTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: none;
    padding: 10px 15px;
    font-size: 18px;
    cursor: pointer;
    backdrop-filter: blur(2px);
    background: rgba(230, 230, 230, 0.1);
    box-shadow: 0 4px 5px rgba(0, 0, 0, 0.2);
    color: #fff;
    border: none;
    z-index: 2100;
}

/* content containers */
.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 80px 20px;
    color: #fff
}

.content h2,
.info-page h2 {
    font-size: 24px;
    margin-bottom: 18px;
    text-align: center;
}

.products-head {
    font-size: 24px;
    margin-bottom: 18px;
    text-align: center;
}

.products-title {
    font-size: 24px;
    margin-bottom: 30px;
    text-align: left;
}

.products-description {
    margin-bottom: 30px;
    text-align: left;
}

.content h3,
.products-page h3,
.info-page h3 {
    font-size: 18px;
    margin-bottom: 12px;
    font-weight: 400;
}

.content {
    min-height: 105vh;
    display: flex;
    flex-direction: column;
    padding-top: 4vh;
    text-align: left;
}

.content-info-page {
    min-height: 105vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.content-contact {
    min-height: 105vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

h3+h3 {
    margin-top: 25px;
}

/* grid for products */
.grid {
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 24px;
    margin-top: 28px
}

.card {
    background: rgba(230, 230, 230, 0.1);
    box-shadow: 0 4px 5px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(2px);
    padding: 18px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.card-media img {
    width: 100%;
    height: auto;
    z-index: 150;
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.card-media img:hover {
    transform: scale(1.03);
}

.card-content {
    text-align: center;
}

.product-params {
    list-style: disc;
    margin: 12px auto;
    padding-left: 18px;
    text-align: left;
    margin-bottom: 6px;
}

.param-label {
    font-weight: 600;
    font-size: 18px;
    color: #ffffff;
}

.param-value {
    font-size: 15px;
    color: #ffffff;
}

.product-summary {
    font-style: italic;
    margin-top: 26px;
    text-align: left;
    opacity: 0.8;
}

/* contact form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    resize: none;
    max-width: 100%;
    box-sizing: border-box;
}

.contact-head {
    font-size: 24px;
    margin-bottom: 18px;
    text-align: center;
}

.success {
    font-size: 16px;
    margin-bottom: 18px;
    text-align: center;
    overflow-wrap: break-word;
    word-break: break-word;
}

.contact-form input,
.contact-form textarea {
    font-family: 'Rajdhani', sans-serif;
    font-size: 16px;
    padding: 12px;
    /* border-radius: 8px; */
    border: none;
    backdrop-filter: blur(2px);
    background: rgba(230, 230, 230, 0.1);
    color: #fff;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    font-family: 'Rajdhani', sans-serif;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
}

/* hover */
.contact-form input:hover,
.contact-form textarea:hover,
.contact-form input:focus,
.contact-form textarea:focus {
    background: rgba(255, 255, 255, 0.15);
    /* jaśniejsze tło przy hover/ focus */
    box-shadow: 0 0 8px rgba(108, 204, 255, 0.6);
    /* delikatny glow */
    outline: none;
    /* usuwa domyślne obramowanie focus */
}

.contact-form textarea {
    resize: vertical;
}

/* contact-form szerokość */
@media (orientation: landscape) or (min-width:768px) {
    .btn-contact {
        width: 380px;
    }
}

/* footer */
.site-footer {
    margin-top: 40px;
    padding: 18px 20px;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    /* backdrop-filter: blur(8px) */
}

.footer-inner {
    font-family: 'Rajdhani', sans-serif;
    font-size: 14px;
    color: #fff;
    text-decoration: none
}

/* responsive */
@media (max-width:900px) {
    .main-nav {
        display: none
    }

    .hamburger {
        display: block
    }

    .hero-title {
        font-size: 36px
    }

    .hero-sub {
        font-size: 16px
    }

    .header-inner {
        padding: 12px 18px
    }

    .bg-fixed .bg-img {
        height: 110vh
    }
}

/* domyślnie - duże ekrany (lg) */
.bg-fixed .bg-img {
    height: 101vh;
}

/* średnie ekrany - md (tablet, 768px - 1023px) */
@media (min-width:768px) and (max-width:1023px) {
    .bg-fixed .bg-img {
        height: 102vh;
    }
}

/* małe ekrany - sm (640px - 767px) */
@media (min-width:640px) and (max-width:767px) {
    .bg-fixed .bg-img {
        height: 104vh;
    }
}

/* mobile <640px */
@media (max-width:639px) {
    .bg-fixed .bg-img {
        height: 106vh;
    }


}

/* produkty kolumna - ułożenie */
@media (orientation: landscape) {
    .card {
        flex-direction: row;
        align-items: flex-start;
    }

    .card-media {
        flex: 0 0 40%;
    }

    .card-media img {
        width: 100%;
        height: auto;
    }

    .card-content {
        flex: 1;
        text-align: left;
        padding-left: 20px;
    }

    .product-params {
        margin-left: 0;
    }
}

/* modal zoom */
.img-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.img-modal.open {
    display: flex;
}

.img-modal img {
    max-width: 90%;
    max-height: 90%;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
}

/* pętla przewijana */

.projects-strip {
    width: 100vw;
    overflow: hidden;
    padding: 1rem 0;
}

.strip-track {
    display: flex;
    gap: 3rem;
    width: max-content;
    animation: scroll-left 40s linear infinite;
}

.strip-item {
    white-space: nowrap;
    text-decoration: none;
    color: #fff;
    opacity: 0.7;
    flex-shrink: 0;
}

.strip-item:hover {
    opacity: 1;
}

.strip-item img {
    height: 32px;
    width: auto;
    flex-shrink: 0;
}

@keyframes scroll-left {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@media (hover: hover) {
    .projects-strip:hover .strip-track {
        animation-play-state: paused;
    }
}

/* scroll border */

.scroll-border {
    transition: filter 0.2s ease;
}

.scroll-border::before {
    content: "";
    position: fixed;
    /* przyklejone do góry ekranu */
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    /* strefa pod header */
    backdrop-filter: blur(6px);
    /* rozmycie treści pod headerem */
    pointer-events: none;
    /* nie blokuje kliknięć */
    z-index: 150;
    /* między header a main */
    opacity: 0;
    /* start – brak efektu */
    transition: opacity 0.2s ease;
}

.scroll-border.blur-top::before {
    opacity: 1;
    /* włącz efekt */
}

/* project grid */
.projects {
    min-height: 105vh;
    display: flex;
    flex-direction: column;
    padding-top: 100px;
    text-align: left;
}

.card-inner {
    padding: 16px;
}

.projects-container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px;
    color: #fff;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.project-card {
    position: relative;
    background: rgba(230, 230, 230, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.card-details {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.99);
    padding: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.card-media img {
    max-height: 100px;
    /* maksymalna wysokość obrazka */
    width: auto;
    /* zachowuje proporcje */
    display: block;
    /* usuwa odstępy pod obrazkiem */
    margin: 0 auto;
    /* centruje obrazek w kontenerze */
}


.project-card:hover {
    transform: translateY(-4px);
}

.project-card:hover .card-details {
    opacity: .9;
    pointer-events: auto;
}



