/* ==========================================
   1. ZMIENNE & RESET
   ========================================== */
:root {
    /* Kolory */
    --bg-primary: #0d0d0d;
    --bg-card: #161616;
    --bg-footer: #050505;
    --text-main: #f5f5f7;
    --text-muted: #a1a1a6;
    --text-secondary: #d1d1d6;
    --accent: #FFA259;
    
    /* Typografia */
    --font-heading: 'Syne', sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;

    /* Zaokrąglenia i efekty */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --shadow-main: 0 -10px 40px rgba(0, 0, 0, 0.6);
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: auto;
}

html, body {
    width: 100%;
    background-color: var(--bg-primary);
    color: var(--text-main);
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img, video {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    color: inherit;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

main {
    width: 100%;
}

.nav-link--accent {
    color: var(--accent);
}

/* ==========================================
   2. NAWIGACJA
   ========================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.2rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: linear-gradient(to bottom, rgba(13, 13, 13, 0.95), rgba(13, 13, 13, 0));
    backdrop-filter: blur(10px);
}

.navbar__logo {
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: 2px;
    font-size: 1.1rem;
    z-index: 102;
    text-transform: uppercase;
}

/* Przycisk Hamburger */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 102;
    padding: 0;
}

.hamburger span {
    width: 100%;
    height: 2px;
    background-color: var(--accent);
    border-radius: 2px;
    transition: transform var(--transition-base), opacity var(--transition-base);
}

.hamburger.is-active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.is-active span:nth-child(2) {
    opacity: 0;
}

.hamburger.is-active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Menu Pełnoekranowe (Mobile) */
.navbar__menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    background-color: rgba(13, 13, 13, 0.98);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    z-index: 101;
}

.navbar__menu.is-active {
    opacity: 1;
    visibility: visible;
}

.navbar__menu ul {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    list-style: none;
    text-align: center;
}

.navbar__menu a {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    opacity: 0.8;
    transition: opacity var(--transition-base);
}

.navbar__menu a:hover,
.navbar__menu a:focus {
    opacity: 1;
}

/* ==========================================
   3. HERO, PARALLAX & TEXT SECTIONS
   ========================================== */
.video__section {
    height: 100dvh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.video__container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(0.3);
    will-change: transform;
}

.text__overlay__left,
.text__overlay__right {
    position: absolute;
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 7vw, 6rem);
    font-weight: 800;
    text-transform: lowercase;
    white-space: nowrap;
    z-index: 2;
    pointer-events: none;
    letter-spacing: -1px;
}

.text__overlay__left { top: 30%; left: 5%; }
.text__overlay__right { bottom: 30%; right: 5%; }

.scroll__down__arrow {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: bounce 2s infinite;
    transition: background-color var(--transition-base);
}

.scroll__down__arrow:hover {
    background-color: rgba(255, 255, 255, 0.25);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

.text__container {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 2rem 1rem;
    text-align: center;
}

.text__wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
}

.text__down {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6.5vw, 5.5rem);
    font-weight: 800;
    white-space: nowrap;
    will-change: transform;
}

.text__up {
    font-size: clamp(2rem, 5vw, 4rem);
    will-change: transform;
    color: #FFA259;
}

.text__reveal-scroll {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: clamp(1.4rem, 3.5vw, 2.2rem);
    font-weight: 400;
    color: var(--text-muted);
}

/* ==========================================
   4. PROJEKTY (HORIZONTAL SCROLL)
   ========================================== */
.projects__sticky {
    height: 100dvh;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.projects__slider {
    display: flex;
    height: 100%;
    width: max-content;
    align-items: center;
    gap: 6vw;
    padding: 0 5vw;
    will-change: transform;
}

.project {
    width: 82vw;
    height: 58vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-shrink: 0;
}

.image__container {
    width: 100%;
    height: 75%;
    overflow: hidden;
    border-radius: var(--radius-md);
    position: relative;
    display: block;
}

.project__image {
    width: 100%;
    height: 120%;
    object-fit: cover;
    transform: translateY(-10%);
    will-change: transform;
}

.project__details {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 0.8rem;
}

.project__info {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    font-weight: 600;
}

.project__info span:first-child {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
}

.project__link-btn {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all var(--transition-base);
}

.project__link-btn:hover {
    background-color: var(--accent);
    color: var(--bg-primary);
    border-color: var(--accent);
}

/* ==========================================
   5. BLOG & MODALE
   ========================================== */
.blog__wrapper {
    position: relative;
    width: 100%;
    z-index: 1;
}

.blog__header {
    position: absolute;
    top: 6vh;
    left: 0;               
    right: 0;              
    margin: 0 auto;        
    text-align: center;
    z-index: 5;
    pointer-events: none;
    width: 90%;
    max-width: 1200px;
    will-change: transform, opacity, filter;
}

.blog__subtitle {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.2rem;
}

.blog__title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: 2px;
}

.blog__container {
    height: 100dvh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.blog__post {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 92%;
    max-width: 900px;
    height: 58vh;
    display: flex;
    justify-content: center;
    align-items: center;
    will-change: transform;
}

.post {
    width: 100%;
    height: 100%;
    background-color: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.2rem;
    box-shadow: var(--shadow-main);
}

.post__image__container {
    width: 100%;
    height: 52%;
    overflow: hidden;
    border-radius: 12px;
    flex-shrink: 0;
}

.blog__post__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post__details {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 48%;
    padding-top: 1rem;
    gap: 0.5rem;
}

.post__header-info {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.post__header-info h3 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post__header-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.btn-read-more {
    align-self: flex-start;
    background-color: var(--accent);
    color: var(--bg-primary);
    border: none;
    padding: 0.65rem 1.4rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: auto;
    transition: background-color var(--transition-base), transform var(--transition-fast);
}

.btn-read-more:hover {
    background-color: #e0e0e0;
    transform: translateY(-2px);
}

/* Okna Modalne */
.modal {
    border: none;
    background-color: var(--bg-primary);
    color: var(--text-main);
    width: 100vw;
    height: 100dvh;
    max-width: 100vw;
    max-height: 100dvh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    overflow-y: auto !important;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y !important;
}

.modal::backdrop {
    background-color: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(12px);
}

.modal__fullscreen-container {
    width: 100%;
    min-height: 100%;
    padding: 6rem 1.5rem;
}

.modal__fullscreen-content {
    max-width: 760px;
    margin: 0 auto;
}

.modal__date {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 0.5rem;
}

.modal__title-large {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 4vw, 2.6rem);
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 1.2rem;
}

.modal__figure {
    width: 100%;
    margin-bottom: 1.5rem;
}

.modal__img-full {
    width: 100%;
    max-height: 45vh;
    object-fit: cover;
    border-radius: var(--radius-md);
}

.modal__body-large {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
    padding-bottom: 5rem;
    overflow-wrap: break-word;
}

.modal__close {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--accent);
    font-size: 1.8rem;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1100;
    backdrop-filter: blur(8px);
    transition: background-color var(--transition-base), transform var(--transition-fast);
}

.modal__close:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

/* Lightbox Modal */
.modal--photo {
    background: transparent;
    overflow: hidden !important;
}

.modal__content--photo {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.modal__content--photo img {
    max-width: 90vw;
    max-height: 80vh;
    border-radius: 10px;
    object-fit: contain;
}

.photo-close-btn {
    top: 20px;
    right: 20px;
}

.photo-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--accent);
    font-size: 1.4rem;
    width: 46px;
    height: 46px;
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(6px);
    transition: background-color var(--transition-base), transform var(--transition-fast);
    z-index: 1100;
}

.photo-nav-btn:hover {
    background: var(--accent);
    color: var(--bg-primary);
}

.photo-nav-prev { left: 15px; }
.photo-nav-next { right: 15px; }

/* ==========================================
   6. FOTOGRAFIA & DISCOVER
   ========================================== */
.photography__section {
    min-height: 100dvh;
    width: 100%;
    padding: 8vh 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    position: relative;
    z-index: 2;
}

.photography__header {
    text-align: center;
}

.photography__header h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 0.6rem;
}

.photography__header p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.photography__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    width: 100%;
}

.photo__item {
    position: relative;
    width: 100%;
    height: 320px;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.photo__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.photo__zoom-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background-color: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--accent);
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: background-color var(--transition-base), transform var(--transition-base);
}

.photo__zoom-btn:hover {
    background-color: var(--accent);
    color: var(--bg-primary);
    transform: scale(1.08);
}

.discover__container {
    height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    overflow: hidden;
    position: relative;
    z-index: 2;
    background-color: var(--bg-primary);
}

.discover__txt__left,
.discover__txt__right {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 7vw, 6rem);
    font-weight: 800;
    will-change: transform;
}

/* ==========================================
   7. FOOTER & COOKIES
   ========================================== */
.footer {
    background-color: var(--bg-footer);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 4rem 1.5rem 2rem 1.5rem;
    position: relative;
    z-index: 2;
}

.footer__container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.footer__brand {
    font-style: normal;
}

.footer__brand p:first-child {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 0.8rem;
}

.footer__brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer__nav h2 {
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    margin-bottom: 1rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.footer__nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer__nav a {
    font-size: 0.95rem;
    transition: opacity var(--transition-fast);
}

.footer__nav a:hover,
.footer__nav a:focus {
    opacity: 0.6;
}

.back-to-top-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background-color: var(--bg-card);
    color: var(--accent);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.8rem 1.4rem;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 700;
    transition: background-color var(--transition-base), border-color var(--transition-base);
}

.back-to-top-btn:hover {
    background-color: #252525;
    border-color: rgba(255, 255, 255, 0.3);
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1.5rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Powiadomienie Cookie */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background-color: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 1rem 1.2rem;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    z-index: 999;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.cookie-banner p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.cookie-banner button {
    align-self: flex-end;
    background-color: var(--accent);
    color: var(--bg-primary);
    border: none;
    padding: 0.5rem 1.1rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
}

/* ==========================================
   8. MEDIA QUERIES (> 768px DESKTOP)
   ========================================== */
@media (min-width: 768px) {
    .navbar {
        padding: 2rem 4rem;
    }

    .hamburger {
        display: none;
    }

    .navbar__menu {
        position: static;
        width: auto;
        height: auto;
        background: transparent;
        opacity: 1;
        visibility: visible;
    }

    .navbar__menu ul {
        flex-direction: row;
        gap: 2.5rem;
    }

    .navbar__menu a {
        font-size: 0.95rem;
    }

    .video {
        transform: scale(0.2);
    }

    .text__overlay__left,
    .text__overlay__right {
        top: auto;
        bottom: auto;
    }

    .text__overlay__left { left: 5%; }
    .text__overlay__right { right: 5%; }

    .text__container {
        padding: 4rem 0;
    }

    .text__wrapper {
        margin-bottom: 4rem;
    }

    .projects__slider {
        gap: 5vw;
        padding: 0 10vw;
    }

    .project {
        width: 40vw;
        height: 62vh;
    }

    .project.start { align-self: flex-start; margin-top: 5vh; }
    .project.mid { align-self: center; }
    .project.end { align-self: flex-end; margin-bottom: 5vh; }

    .image__container { height: 80%; }
    .project__details { margin-top: 1rem; }

    .blog__header { top: 8vh; }
    .blog__subtitle { font-size: 1.1rem; }
    .blog__post { height: 60vh; }

    .post {
        padding: 2rem;
        flex-direction: row;
        gap: 2rem;
    }

    .post__image__container {
        width: 45%;
        height: 100%;
    }

    .post__details {
        width: 55%;
        height: 100%;
        padding-top: 0;
    }

    .post__header-info h3 {
        font-size: 1.6rem;
        -webkit-line-clamp: 4;
    }

    .photography__section {
        padding: 12vh 5vw;
    }

    .photography__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }

    .photo__item {
        height: 450px;
    }

    .photo__item:hover img {
        transform: scale(1.05);
    }

    .discover__container {
        flex-direction: row;
        gap: 2rem;
    }

    .footer {
        padding: 6rem 5vw 3rem 5vw;
    }

    .footer__container {
        grid-template-columns: 2fr 1fr 1fr;
        gap: 4rem;
    }

    .cookie-banner {
        left: auto;
        right: 30px;
        bottom: 30px;
        width: 380px;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}