:root {
    --primary-color: #3a3c41;
    --secondary-color: #1e293b;
    --text-color: #000000;
    --hero-text-color: #000000;
    --light-bg: #f8fafc;
    --white: #ffffff; 
    --container-width: 1100px;
}

html, body {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE i Edge */
}

/* Ukrycie paska w Chrome, Safari i nowym Edge */
html::-webkit-scrollbar, body::-webkit-scrollbar {
    display: none;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", "Lucida Sans", Arial, sans-serif;
  
    line-height: 1.6;
    color: var(--text-color);
    background-image: url('../img/bg2.jpg'); /* Upewnij się, że plik istnieje w folderze img */
    text-shadow: 0 0 10px rgba(216, 201, 201, 0.5); /* Subtelna poświata dla całego tekstu na stronie */
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
 
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0;
}

/* Header & Navigation */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.1); /* Zwiększono widoczność paska menu */
    backdrop-filter: blur(2px); /* Mocniejsze rozmycie tła pod menu */
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-navigation.nav-hidden {
    transform: translateY(-100%);
    pointer-events: none;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--hero-text-color);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--hero-text-color);
    font-weight: 500;
    font-size: 0.95rem;
    transition: opacity 0.3s;
}

.menu-toggle, .menu-close {
    display: none; /* Ukryte na komputerach */
    background: none;
    border: none;
    cursor: pointer;
}

.nav-links a:hover {
    opacity: 0.7;
}

/* Hero Content */
.hero-content {
    flex: 1;
    display: grid;
    place-items: center;
    padding-top: 0; /* Usunięto padding, aby podnieść slider i wycentrować go w pionie */
    position: relative;
    overflow: hidden;
}

.slide {
    grid-area: 1 / 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    pointer-events: none;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
}

.hero-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr; /* Zmieniono kolejność: obrazek (0.8fr) po lewej, tekst (1.2fr) po prawej */
    gap: 40px;
    align-items: center;
    text-align: left;
}

.hero-text {
    max-width: 650px;
    border-left: 2px solid rgba(0, 0, 0, 0.1);
    padding-left: 40px;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 15px; /* Zaokrąglone narożniki */
    border: 1px solid rgba(0, 0, 0, 0.1); /* Subtelne obramowanie */
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.15));
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 15px;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 35px;
    font-weight: 300;
}

/* Hero Navigation Thumbs */
.hero-nav-thumbs {
    position: absolute;
    bottom: 30px;
    display: flex;
    gap: 15px;
    z-index: 10;
}

.nav-thumb {
    width: 90px;
    height: 80px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border-radius: 15px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.nav-thumb img {
    max-width: 30px;
    max-height: 30px;
    object-fit: contain;
    opacity: 0.5;
    border-radius: 5px;
    transition: opacity 0.3s;
}

.nav-thumb span {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.nav-thumb:hover img,
.nav-thumb.active img,
.nav-thumb:hover span,
.nav-thumb.active span {
    opacity: 1;
}

.nav-thumb.active {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color) 0%, #232529 100%);
    color: #fff;
    padding: 14px 32px;
    text-decoration: none;
    border-radius: 15px;
    font-weight: 600;
    text-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #4a4c52 0%, #3a3c41 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Typografia sekcji */
h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    color: var(--secondary-color);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.8), 0 0 5px rgba(255, 255, 255, 0.5);
}

.content-wrapper {
    max-width: 800px;
}

/* Sekcja O mnie - układ z grafiką */
.about-grid {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-text {
    flex: 1;
    text-align: justify;
}

.about-image {
    flex: 0 0 350px;
    display: flex;
    justify-content: center;
}

.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    padding: 30px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card h3 {
    margin-bottom: 15px;
}

.project-item {
    margin-bottom: 20px;
    padding-left: 15px;
    border-left: 3px solid var(--primary-color);
}

.projects-list {
    list-style: none;
}

/* Kontakt - Formularz i Dane */
.contact-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 40px;
}

.contact-details {
    margin-top: 25px;
}

.contact-details p {
    margin-bottom: 15px;
}

.contact-details a {
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: var(--primary-color);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
    width: 100%;
    max-width: 500px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px 0;
    border: none;
    border-bottom: 2px solid var(--primary-color);
    background: transparent;
    border-radius: 0;
    backdrop-filter: none;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-color);
    outline: none;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-bottom-color: #000;
}

/* Footer */
.main-footer {
    background-color: rgba(30, 32, 35, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 50px 0;
    text-align: center;
    text-shadow: none; /* Usunięto globalną poświatę tekstu dla stopki */
}

.footer-sub {
    margin-top: 10px;
    font-size: 0.85rem;
    opacity: 0.6;
}

/* Custom Scroll Indicator - Desktop Default */
.custom-scrollbar {
    position: fixed;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    height: 70vh;
    width: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    z-index: 2000;
    cursor: pointer;
}

.custom-scrollbar::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    width: 2px; /* Zwiększono grubość linii dla lepszej widoczności */
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2); /* Zwiększono kontrast linii */
    transform: translateX(-50%);
}

.scroll-label {
    position: relative;
    right: 50px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #000;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
    white-space: nowrap;
    pointer-events: none;
    cursor: pointer;
    text-shadow: 0 0 20px #fff, 0 0 10px #fff, 0 0 10px #fff; /* Wzmocniony biały cień dla czytelności na ciemnym tle */
}

.custom-scrollbar.is-scrolling .scroll-label {
    opacity: 0.5; /* Zwiększono bazową widoczność etykiet */
    pointer-events: auto;
}

.custom-scrollbar.is-scrolling .scroll-label.active {
    opacity: 1;
}

.scroll-dot {
    position: absolute;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background-color: #000;
    border-radius: 50%;
    transition: top 0.1s ease-out;
}

/* Responsywność */
@media (max-width: 768px) {
    .hero-section {
        height: 100vh;
        height: 100dvh; /* Dynamic viewport height dla nowszych przeglądarek */
        min-height: auto;
    }

    .section-padding {
        padding: 60px 0; /* Mniejszy margines góra-dół na mobile */
    }

    .container {
        padding-right: 40px; /* Zwiększony odstęp od prawej krawędzi, aby treść nie nachodziła na suwak i etykiety */
        padding-left: 20px;
    }

    /* Styl przycisku hamburgera */
    .menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
        z-index: 1001;
    }

    .menu-toggle span {
        display: block;
        width: 25px;
        height: 2px;
        background-color: var(--text-color);
        transition: 0.3s;
    }

    /* Nakładka menu na cały ekran */
    .nav-links {
        position: fixed;
        display: flex;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateY(-100%); /* Menu schowane u góry */
        transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 1002;
        gap: 20px;
        margin-left: 0;
    }

    .nav-links.active {
        transform: translateY(0); /* Pokazanie menu */
    }

    .nav-links a {
        font-size: 1.5rem;
        color: #000;
    }

    .nav-links li {
        margin: 0;
    }

    /* Przycisk zamknięcia X */
    .menu-close {
        display: block;
        position: fixed;
        top: 25px;
        right: 5%;
        font-size: 3rem;
        font-weight: 300;
        line-height: 1;
        color: #000;
        z-index: 1003;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s;
    }

    body.menu-open .menu-close {
        opacity: 1;
        pointer-events: auto;
    }

    /* Blokada skrolowania strony przy otwartym menu */
    body.menu-open {
        overflow: hidden;
    }

    .hero-content {
        padding-top: 60px; 
        padding-bottom: 110px; /* Zredukowano, aby zwolnić miejsce */
        justify-content: center; /* Wyśrodkowanie pionowe treści */
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 15px;
    }

    .hero-content h1 {
        font-size: 1.8rem; /* Zmniejszenie fontu na mobile */
        margin-bottom: 10px;
    }

    .hero-content p {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .hero-image {
        max-width: 160px; /* Jeszcze mniejszy obrazek na mobile */
        margin: 0 auto;
    }

    .hero-text {
        border-left: none;
        padding-left: 0;
    }

    .hero-nav-thumbs {
        bottom: 15px;
        gap: 10px;
    }

    .nav-thumb {
        width: 65px;
        height: 55px;
        padding: 5px;
    }

    .nav-thumb img {
        max-width: 20px;
        max-height: 20px;
    }

    .nav-thumb span {
        font-size: 0.55rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .about-grid {
        flex-direction: column-reverse;
        gap: 30px;
    }
    
    .about-text {
        text-align: left; /* Rezygnacja z justowania dla lepszego światła na brzegach */
    }

    .about-image {
        flex: 0 0 auto;
        width: 100%;
        max-width: 150px; /* Zmniejszono obrazek person na małych ekranach dla lepszego balansu */
    }

    .contact-grid {
        padding: 0 10px;
    }

    /* Poprawki suwaka na urządzenia mobilne */
    .custom-scrollbar {
        right: 10px !important; /* Wymuszamy pozycję przy krawędzi */
        height: 60vh; /* Nieco krótszy suwak, by nie kolidował z dłońmi trzymającymi telefon */
        width: 15px;
    }

    .scroll-label {
        right: 47px; /* Przybliżamy etykietę do linii na mobile */
    }
}

/* Poprawka dla dużego skalowania (zoom) i małych wysokości ekranu */
@media (max-height: 850px) and (min-width: 769px) {
    .nav-thumb {
        width: 75px;
        height: 65px;
    }

    .nav-thumb span {
        font-size: 0.55rem;
    }

    .hero-nav-thumbs {
        bottom: 15px;
    }
}
