/* Reset i podstawowe style */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #222;
    background-color: #ffffff;
    overflow-x: hidden;
}

.container {
    display: flex;
    min-height: 100vh;
}

/* Hamburger menu dla mobile */
.mobile-menu-btn {
    display: none;
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 1000;
    background: #fff;
    border: 2px solid #000;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.mobile-menu-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Stałe logo w lewym górnym rogu */
.fixed-logo {
    position: fixed;
    top: 30px;
    left: 40px;
    z-index: 90;
    display: flex;
    flex-direction: column;
    pointer-events: none;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    opacity: 1;
    max-width: 220px;
}

/* Efekt przy scrollowaniu - LOGO ZANIKA */
body.scrolled .fixed-logo {
    opacity: 0.3;
    transform: translateY(-10px);
}

/* Gdy najedziemy na logo - pojawia się ponownie */
.fixed-logo:hover {
    opacity: 1 !important;
    transform: translateY(0) !important;
    background: rgba(255, 255, 255, 0.98) !important;
}

.logo-name {
    font-size: 1.8rem;
    font-weight: 800;
    color: #000;
    letter-spacing: -1px;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

.logo-subtitle {
    font-size: 0.7rem;
    font-weight: 600;
    color: #666;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 5px;
    opacity: 0.8;
    white-space: nowrap;
}

/* ============ PRZYCISK ANGIELSKIEJ WERSJI ============ */
.language-switcher-top {
    position: fixed;
    top: 30px;
    right: 40px;
    z-index: 91;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    max-width: 100px;
}

.language-switcher-top:hover {
    background: rgba(255, 255, 255, 0.98);
    transform: scale(1.05);
    border-color: rgba(0, 0, 0, 0.1);
}

.language-switcher-top a {
    text-decoration: none;
    color: #000;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.flag-icon {
    font-size: 1.2rem;
}

.language-text {
    letter-spacing: 1px;
}

/* Efekt przy scrollowaniu dla przycisku języka */
body.scrolled .language-switcher-top {
    opacity: 0.5;
    transform: translateY(-10px);
}

.language-switcher-top:hover {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Minimalny wskaźnik navbar-a */
.navbar-trigger {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 120px;
    z-index: 80;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.navbar-trigger:hover {
    left: 5px;
}

.trigger-line {
    width: 3px;
    height: 50px;
    background: #000;
    position: relative;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.navbar-trigger:hover .trigger-line {
    opacity: 1;
    height: 60px;
    width: 4px;
}

.trigger-line::before,
.trigger-line::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 3px;
    background: #000;
    border-radius: 2px;
}

.trigger-line::before {
    top: 0;
    transform: translateX(-50%) rotate(45deg);
    transform-origin: left top;
}

.trigger-line::after {
    bottom: 0;
    transform: translateX(-50%) rotate(-45deg);
    transform-origin: left bottom;
}

/* Obszar aktywacji navbar-a */
.nav-activation-area {
    position: fixed;
    left: 0;
    top: 0;
    width: 30px;
    height: 100vh;
    z-index: 79;
    cursor: pointer;
    display: none;
}

@media (min-width: 769px) {
    .nav-activation-area {
        display: block;
    }
}

/* Panel boczny - navbar */
.sidebar {
    width: 300px;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 120px 50px 50px;
    position: fixed;
    height: 100vh;
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-100%);
    top: 0;
    border-right: 2px solid #000;
    box-shadow: 5px 0 40px rgba(0, 0, 0, 0.1);
}

/* Kiedy navbar widoczny */
.sidebar.visible {
    transform: translateX(0);
}

.sidebar-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.sidebar .logo {
    font-size: 2.5rem;
    font-weight: 800;
    color: #000;
    margin-bottom: 80px;
    letter-spacing: -2px;
    line-height: 1;
    position: relative;
    padding-bottom: 25px;
    text-transform: uppercase;
}

.sidebar .logo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: #000;
}

.main-nav ul {
    list-style: none;
}

.main-nav li {
    margin-bottom: 15px;
}

.main-nav a {
    color: #666;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    padding: 8px 0;
    letter-spacing: -0.5px;
}

.main-nav a:hover {
    color: #000;
    transform: translateX(8px);
}

.main-nav a.active {
    color: #000;
    font-weight: 700;
}

.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #000;
    animation: underlineExpand 0.3s ease forwards;
}

@keyframes underlineExpand {
    from { width: 0; }
    to { width: 100%; }
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    color: #888;
    font-size: 0.9rem;
    font-weight: 400;
}

/* Główna zawartość */
.main-content {
    flex: 1;
    padding: 140px 100px 100px;
    max-width: 100%;
    transition: padding-left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Kiedy navbar widoczny, przesuwamy treść */
.sidebar.visible ~ .main-content {
    padding-left: calc(100px + 300px);
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { 
        opacity: 0;
        transform: translateY(30px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

.main-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 80px;
    color: #000;
    letter-spacing: -2px;
    line-height: 1;
    position: relative;
    display: inline-block;
}

.main-title::after {
    content: '';
    position: absolute;
    bottom: -25px;
    left: 0;
    width: 80px;
    height: 5px;
    background: #000;
}

.section-content {
    max-width: 1600px;
    margin: 0 auto;
}

/* Sekcja "Wybrane prace" - 3 KOLUMNY CENTROWANE */
.works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    margin-top: 40px;
}

.work-item {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.work-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.1);
}

.work-img {
    width: 100%;
    height: 350px;
    overflow: hidden;
    position: relative;
    background: #f5f5f5;
}

.work-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.work-item:hover .work-img img {
    transform: scale(1.05);
}

.work-info {
    flex: 1;
    padding: 25px;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.work-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #000;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

.work-category {
    color: #777;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

/* ============ 3 KOLUMNY DLA DODATKOWYCH PRAC ============ */
.section-subtitle {
    margin: 100px 0 40px;
    padding-top: 40px;
    border-top: 2px solid rgba(0, 0, 0, 0.1);
}

.subtitle {
    font-size: 2.5rem;
    font-weight: 700;
    color: #000;
    letter-spacing: -1px;
    margin-bottom: 20px;
}

/* Domyślnie 3 kolumny na desktop */
.additional-works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

/* ============ DODATKOWE PRACE - NOWA STRUKTURA ============ */
.additional-work-item {
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: #fff;
}

.additional-work-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.1);
}

/* Kontener na obraz */
.additional-work-item .work-img {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #f5f5f5;
}

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

.additional-work-item:hover .work-img img {
    transform: scale(1.05);
}

/* Informacje o pracy */
.additional-work-item .work-info {
    padding: 20px;
    background: #fff;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100px;
}

.additional-work-item .work-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #000;
    line-height: 1.3;
    letter-spacing: -0.3px;
}

.additional-work-item .work-category {
    color: #777;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* Na mniejszych ekranach 2 kolumny */
@media (max-width: 900px) {
    .additional-works-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Na telefonach 1 kolumna */
@media (max-width: 768px) {
    .additional-works-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .additional-work-item .work-img {
        height: 220px;
    }
    
    .additional-work-item .work-info {
        padding: 15px;
        min-height: 90px;
    }
    
    .additional-work-item .work-title {
        font-size: 1rem;
    }
    
    .additional-work-item .work-category {
        font-size: 0.75rem;
    }
}

/* ============ SEKCJA "O MNIE" - ZDJĘCIE Z PRAWEJ ============ */
.about-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 80px;
    align-items: start;
}

.about-text-column {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.about-image-column {
    position: sticky;
    top: 140px;
}

.about-image {
    width: 100%;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

.about-text {
    margin-bottom: 0;
}

.about-text p {
    margin-bottom: 25px;
    font-size: 1.2rem;
    color: #444;
    line-height: 1.8;
    font-weight: 300;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 80px;
    margin-top: 0;
}

.detail-block {
    margin-bottom: 0;
}

.detail-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: #000;
    position: relative;
    padding-bottom: 15px;
    letter-spacing: -0.5px;
}

.detail-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: #000;
}

.detail-list {
    list-style: none;
}

.detail-list li {
    padding: 12px 0;
    color: #444;
    position: relative;
    padding-left: 30px;
    font-size: 1.1rem;
    font-weight: 300;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.detail-list li:last-child {
    border-bottom: none;
}

.detail-list li::before {
    content: '—';
    color: #999;
    position: absolute;
    left: 0;
    font-weight: 400;
    font-size: 1.2rem;
}

/* Sekcja "Kontakt" */
.contact-content {
    max-width: 700px;
}

.contact-info p {
    margin-bottom: 30px;
    font-size: 1.2rem;
    color: #444;
    line-height: 1.8;
    font-weight: 300;
}

.contact-details {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 2px solid rgba(0, 0, 0, 0.1);
}

.contact-details p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    display: flex;
    gap: 15px;
    align-items: center;
}

.contact-details strong {
    min-width: 140px;
    font-weight: 700;
    color: #000;
    letter-spacing: -0.5px;
}

/* ============ LIGHTBOX - POPRAWIONY (ORYGINALNE PROPORCJE) ============ */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.98);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 0;
    animation: fadeIn 0.3s ease;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 100vw;
    max-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    background: #000;
    overflow: hidden;
}

/* OBRAZ W ORYGINALNYCH PROPORCJACH - BEZ PRZYCINANIA */
.lightbox-img-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    overflow: hidden;
}

.lightbox-content img {
    max-width: 90vw;
    max-height: 80vh;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
    background: #000;
}

/* INFO POD OBRAZEM - minimalne */
.lightbox-info {
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.8);
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.lightbox-title {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 5px;
    color: #fff;
    letter-spacing: -0.3px;
}

.lightbox-category {
    color: #aaa;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 400;
}

/* PRZYCISKI - minimalne, przezroczyste */
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #fff;
    z-index: 10;
    font-weight: 300;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #fff;
    z-index: 10;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* Dla bardzo wysokich obrazów */
@media (max-height: 800px) {
    .lightbox-img-container {
        padding: 20px;
    }
    
    .lightbox-content img {
        max-height: 70vh;
    }
}

/* Dla bardzo szerokich obrazów */
@media (max-width: 1200px) {
    .lightbox-content img {
        max-width: 85vw;
    }
}

/* Responsywność mobile */
@media (max-width: 768px) {
    .lightbox-img-container {
        padding: 15px;
    }
    
    .lightbox-content img {
        max-width: 95vw;
        max-height: 70vh;
    }
    
    .lightbox-info {
        padding: 10px 15px;
    }
    
    .lightbox-title {
        font-size: 1rem;
    }
    
    .lightbox-category {
        font-size: 0.7rem;
    }
    
    .lightbox-close {
        width: 30px;
        height: 30px;
        top: 15px;
        right: 15px;
        font-size: 1.1rem;
    }
    
    .lightbox-prev,
    .lightbox-next {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .lightbox-prev {
        left: 15px;
    }
    
    .lightbox-next {
        right: 15px;
    }
}

/* Responsywność */
@media (max-width: 1400px) {
    .additional-works-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .main-content {
        padding: 140px 80px 80px;
    }
    
    .sidebar.visible ~ .main-content {
        padding-left: calc(80px + 300px);
    }
    
    .about-layout {
        grid-template-columns: 1fr 350px;
        gap: 60px;
    }
}

@media (max-width: 1200px) {
    .main-content {
        padding: 120px 60px 60px;
    }
    
    .sidebar.visible ~ .main-content {
        padding-left: calc(60px + 300px);
    }
    
    .main-title {
        font-size: 3.5rem;
    }
    
    .works-grid {
        gap: 40px;
    }
    
    .additional-works-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-layout {
        grid-template-columns: 1fr 300px;
        gap: 50px;
    }
    
    .about-details {
        gap: 60px;
    }
}

@media (max-width: 1024px) {
    .main-content {
        padding: 120px 40px 60px;
    }
    
    .sidebar.visible ~ .main-content {
        padding-left: calc(40px + 300px);
    }
    
    .main-title {
        font-size: 3rem;
    }
    
    .fixed-logo {
        left: 30px;
        top: 25px;
    }
    
    .language-switcher-top {
        right: 30px;
        top: 25px;
    }
}

@media (max-width: 900px) {
    .works-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .about-layout {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .about-image-column {
        position: static;
        order: -1;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .about-image {
        max-width: 100%;
    }
    
    .additional-works-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .subtitle {
        font-size: 2rem;
    }
    
    .about-details {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
        top: 25px;
        right: 25px;
        width: 45px;
        height: 45px;
    }
    
    .fixed-logo {
        top: 25px;
        left: 25px;
        padding: 12px 16px;
        max-width: 180px;
    }
    
    .logo-name {
        font-size: 1.5rem;
    }
    
    .language-switcher-top {
        top: 90px;
        right: 25px;
        padding: 8px 12px;
    }
    
    .language-switcher-top a {
        font-size: 0.85rem;
    }
    
    .navbar-trigger {
        display: none;
    }
    
    .sidebar {
        transform: translateX(-100%);
        width: 100%;
        max-width: 350px;
        padding: 100px 40px 40px;
    }
    
    .sidebar.mobile-visible {
        transform: translateX(0);
        box-shadow: 10px 0 50px rgba(0, 0, 0, 0.2);
    }
    
    .main-content {
        padding: 100px 30px 40px !important;
    }
    
    .main-title {
        font-size: 2.5rem;
        margin-bottom: 60px;
    }
    
    .main-title::after {
        bottom: -20px;
        height: 4px;
    }
    
    .about-text p {
        font-size: 1.1rem;
    }
    
    .additional-works-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .additional-work-item .work-img {
        height: 220px;
    }
    
    .subtitle {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .fixed-logo {
        top: 20px;
        left: 20px;
        padding: 10px 14px;
        max-width: 160px;
    }
    
    .logo-name {
        font-size: 1.3rem;
    }
    
    .logo-subtitle {
        font-size: 0.65rem;
    }
    
    .language-switcher-top {
        top: 85px;
        right: 20px;
    }
    
    .main-content {
        padding: 90px 20px 40px !important;
    }
    
    .main-title {
        font-size: 2.2rem;
    }
    
    .work-img {
        height: 280px;
    }
    
    .work-info {
        padding: 20px;
    }
    
    .about-image-column {
        max-width: 100%;
    }
    
    .additional-work-item .work-img {
        height: 200px;
    }
    
    .additional-work-item .work-info {
        padding: 12px 15px;
        min-height: 85px;
    }
    
    .additional-work-item .work-title {
        font-size: 0.95rem;
    }
    
    .additional-work-item .work-category {
        font-size: 0.7rem;
    }
}