/* ====== PODSTAWOWE USTAWIENIA ====== */
html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Beiruti', sans-serif;
}

body {
    min-height: 100vh;
    background: linear-gradient(to bottom, #C4C4C4, #3B3B3B);
    border: 10px solid #2a2a2a;
    position: relative;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, #C4C4C4, #3B3B3B);
    z-index: -1;
}

/* ====== TOPBAR CONTAINER ====== */
.menu-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 20px 60px 20px 80px;
    background-color: transparent;
}

/* ====== MENU ====== */
.menu {
    display: flex;
    align-items: center;
    gap: 40px;
    font-size: 20px;
    font-weight: 700;
}

.menu a {
    padding: 5px 10px;
    transition: color 0.3s ease, transform 0.2s ease;
    text-decoration: none;
    color: #000000;
    position: relative;
    white-space: nowrap;
}

.menu a:hover {
    color: #555;
}

/* ====== LOGO ====== */
.logo {
    font-size: 35px;
    font-family: 'Cabin Sketch', sans-serif;
    text-decoration: none;
    color: #000000;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.logo:hover {
    color: #555;
}

/* ====== GALERIA PAINTINGS ====== */
.paintings-gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px;
    padding: 60px 40px;
    margin: 0 auto;
    width: 100%;
    max-width: 1400px;
    flex: 1;
}

/* GŁÓWNY OBRAZEK - DIGITAL7 */
.painting-main {
    position: relative;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: all 0.4s ease;
    background-color: transparent;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

/* KONTENER DLA DWÓCH OBRAZKÓW OBOK SIEBIE - WIĘKSZE */
.side-by-side-container {
    display: flex;
    gap: 30px;
    width: 100%;
    max-width: 1000px;
    justify-content: center;
    align-items: stretch;
    margin: 0 auto;
}

/* OBRAZKI BOCZNE - DUŻO WIĘKSZE */
.painting-side {
    position: relative;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: all 0.4s ease;
    background-color: transparent;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

/* DUŻY OBRAZEK - DIGITAL5 NA CAŁĄ STRONĘ */
.painting-large {
    position: relative;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: all 0.4s ease;
    background-color: transparent;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

/* WSPÓLNE STYLE DLA WSZYSTKICH OBRAZKÓW */
.painting-item {
    transition: all 0.4s ease;
    height: 100%;
}

.painting-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

/* ====== STYLE DLA LINKÓW OBRAZKÓW ====== */
.painting-link {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
    height: 100%;
}

/* UKRYWAMY TYTUŁ I OPIS */
.painting-title,
.painting-info {
    display: none;
}

/* STYLE DLA OBRAZKÓW WEWNĄTRZ KONTENERÓW - WYPEŁNIAJĄCE */
.gallery-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    opacity: 1;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Specjalne ustawienia wysokości dla różnych kontenerów */
.painting-main {
    height: 400px;
}

.painting-side {
    height: 450px;
}

.painting-large {
    height: 500px;
}

/* ====== PRZYCISK SCROLL TO TOP ====== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #ACFF99;
    color: black;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.scroll-top.visible {
    opacity: 0.8;
    visibility: visible;
}

.scroll-top:hover {
    opacity: 1;
    background-color: #222;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* ====== FOOTER ====== */
.footer {
    background-color: #2a2a2a;
    color: #e0e0e0;
    padding: 30px 20px;
    width: 100%;
    position: relative;
    margin-top: auto;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
}

.copyright {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 10px;
}

.footer-text {
    font-size: 14px;
    color: #b0b0b0;
    line-height: 1.5;
}

.footer-contact {
    font-size: 15px;
    margin-bottom: 8px;
}

.footer-contact a {
    color: #ACFF99;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: #88ff66;
    text-decoration: underline;
}

.footer-location {
    font-size: 14px;
    color: #b0b0b0;
}

/* ====== WERSJA MOBILNA ====== */
@media (max-width: 768px) {
    body {
        border-width: 8px;
    }
    
    .menu-container {
        flex-direction: row;
        padding: 15px 20px;
        align-items: center;
        justify-content: space-between;
    }
    
    .menu {
        gap: 15px;
        font-size: 16px;
        margin: 0;
        order: 1;
    }
    
    .menu a {
        padding: 8px 10px;
        font-size: 16px;
    }
    
    .logo {
        font-size: 22px;
        order: 2;
        margin-left: 10px;
    }
    
    .paintings-gallery {
        gap: 40px;
        padding: 30px 20px;
    }
    
    .painting-main {
        max-width: 100%;
        height: 300px;
    }
    
    .side-by-side-container {
        flex-direction: column;
        gap: 40px;
        max-width: 100%;
    }
    
    .painting-side {
        width: 100%;
        height: 300px;
        margin: 0 !important;
    }
    
    .painting-large {
        max-width: 100%;
        height: 350px;
    }
    
    .scroll-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 20px;
    }

    .footer {
        padding: 30px 15px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 25px;
    }
    
    .footer-section {
        min-width: 100%;
    }
}

/* ====== WERSJA TABLET ====== */
@media (min-width: 769px) and (max-width: 1200px) {
    .paintings-gallery {
        max-width: 95%;
        padding: 40px 20px;
    }
    
    .painting-main {
        max-width: 700px;
        height: 350px;
    }
    
    .side-by-side-container {
        max-width: 800px;
        gap: 30px;
    }
    
    .painting-side {
        height: 400px;
    }
    
    .painting-large {
        max-width: 900px;
        height: 450px;
    }
}

/* ====== WERSJA DESKTOP DUŻY ====== */
@media (min-width: 1201px) {
  .logo {
        font-size: 18px;
        order: 2;
        margin-left: 10px;
    }    
	
	.painting-large {
        max-width: 1400px;
        height: 600px;
    }
    
    .side-by-side-container {
        max-width: 1200px;
    }
    
    .painting-side {
        height: 500px;
    }
    
    .painting-main {
        height: 450px;
    }
}