/* ====== 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;
}

/* ====== EFEKTY SCROLL REVEAL ====== */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ====== TOPBAR CONTAINER ====== */
.menu-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 20px 60px 20px 80px;
}

/* ====== 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;
    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;
}

/* ====== MINI MENU - TYLKO NA DESKTOP ====== */
.art-container {
    position: relative;
    display: inline-block;
}

/* ====== GALERIA KARUZELA ====== */
.gallery-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 85vh;
    padding: 20px 0;
    flex: 1;
    width: 100%;
}

.gallery-carousel {
    position: relative;
    width: 75%;
    max-width: 1600px;
    height: 100vh;
    overflow: hidden; /* TYLKO DLA DESKTOPA */
    background-color: #000; /* CZARNE TŁO */
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    border: 1px solid #444;
}

.carousel-slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
    width: 100%;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* OBRAZY WYPEŁNIAJĄCE CAŁY BOX - BEZ BIAŁYCH PRZESTRZENI */
.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* WYPEŁNIA CAŁY BOX, PRZYCINA JEŚLI TRZEBA */
    display: block;
}

/* Opis tylko na pierwszym slajdzie */
.slide-info {
    position: absolute;
    bottom: 50px;
    left: 0;
    right: 0;
    color: white;
    padding: 65px 25px 25px;
    text-align: center;
    z-index: 2;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

.carousel-slide:not(:first-child) .slide-info {
    display: none;
}

.slide-info h3 {
    font-size: 32px;
    margin-bottom: 15px;
    color: #fff;
    font-weight: 700;
}

.slide-info p {
    margin: 8px 0;
    font-size: 18px;
    color: rgba(255,255,255,0.95);
}

/* Przyciski desktop */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.7);
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255,255,255,0.3);
}

.carousel-btn:hover {
    background-color: rgba(0,0,0,0.9);
    transform: translateY(-50%) scale(1.15);
}

.prev-btn {
    left: 25px;
}

.next-btn {
    right: 25px;
}

/* Kropki desktop */
.carousel-dots {
    position: absolute;
    bottom: 25px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 15px;
    z-index: 10;
}

.dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.4);
    border: 2px solid rgba(255,255,255,0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: #fff;
    transform: scale(1.3);
}

/* Desktop - mini menu */
@media (min-width: 769px) {
    .art-menu {
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%) translateY(-10px);
        background: white;
        border-radius: 4px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        padding: 10px 0;
        min-width: 150px;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 1000;
        text-align: center;
    }
    
    .art-menu a {
        display: block;
        padding: 10px 20px;
        color: #333;
        text-decoration: none;
        transition: background-color 0.3s;
        font-size: 16px;
        white-space: nowrap;
    }
    
    .art-menu a:hover {
        background-color: #f5f5f5;
        color: #000;
    }
    
    .art-container:hover .art-menu {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }
}

/* ====== IMAGES SECTION ====== */
.images {
    justify-content: center;
    flex-wrap: wrap;
    display: flex;
    gap: 20px;
    padding: 0 20px;
}

.images img {
    display: inline-block;
    width: 100%;
    max-width: 1450px;
    margin-bottom: 80px;
    margin-left: auto;
    margin-right: auto;
}

.image1, .image2, .image3 {
    position: relative;
    cursor: pointer;
    display: inline-block;
    width: 100%;
}

.image1 img, .image2 img, .image3 img {
    display: block;
    width: 100%;
    height: auto;
    position: relative;
    z-index: 1;
}

/* ====== AVAILABLE PRINTS SECTION ====== */
.available-prints {
    scroll-margin-top: 20px;
    padding: 60px 20px;
    background-color: #2a2a2a;
    margin: 40px 0;
    width: 100%;
}

.prints-container {
    max-width: 1200px;
    margin: 0 auto;
}

.prints-title {
    text-align: center;
    color: #ffffff;
    font-size: 36px;
    margin-bottom: 40px;
    font-weight: 700;
}

.prints-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.print-item {
    background: #3a3a3a;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
}

.print-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.print-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.print-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.print-item:hover .print-image img {
    transform: scale(1.05);
}

.print-info {
    padding: 20px;
    color: #ffffff;
}

.print-info h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #ffffff;
}

.print-info p {
    font-size: 16px;
    color: #b0b0b0;
    margin-bottom: 15px;
    line-height: 1.4;
}

.print-price {
    font-size: 18px;
    font-weight: 700;
    color: #ACFF99;
    margin-bottom: 15px;
}

.print-button {
    display: inline-block;
    background: #ACFF99;
    color: #000;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.print-button:hover {
    background: #88ff66;
    transform: translateY(-2px);
}

/* ====== SEKCJA CONTACT ====== */
#contact-section {
    scroll-margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 800px;
    margin: 40px auto;
    background: #ACFF99;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

#contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 12px;
    pointer-events: none;
}

.contact-text {
    width: 50%;
    margin: 20px;
    font-size: 20px;
    color: #2d2d2d;
    line-height: 1.4;
    padding-right: 20px;
    border-right: 1px solid rgba(0,0,0,0.1);
}

.contact-text p {
    margin-bottom: 15px;
}

.contact-text b p {
    font-size: 22px;
    color: #000;
    margin: 20px 0;
}

.contact-form {
    width: 40%;
    padding: 20px 30px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 0;
    margin-bottom: 25px;
    border: none;
    border-bottom: 2px solid rgba(0,0,0,0.1);
    font-size: 16px;
    background: transparent;
    outline: none;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-bottom-color: #000;
    padding-left: 10px;
}

.contact-form textarea {
    resize: vertical;
    min-height: 100px;
}

.contact-form button {
    background: #000;
    color: white;
    border: none;
    padding: 14px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 10px;
    border: 1px solid #000;
}

.contact-form button:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* ====== SEKCJA ABOUT ====== */
.about1-section {
    scroll-margin-top: 20px;
    display: flex;
    gap: 60px;
    margin: 80px auto;
    padding: 60px;
    background-color: #2a2a2a;
    max-width: 1200px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

.image4 {
    width: 45%;
    flex-shrink: 0;
}

.image4 img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    transition: transform 0.5s ease;
}

.image4 img:hover {
    transform: scale(1.02);
}

#about-tekst {
    width: 55%;
    font-size: 20px;
    color: #f0f0f0;
    line-height: 1.6;
    text-align: left;
    padding-left: 20px;
}

#about-tekst b {
    display: block;
    font-size: 28px;
    color: #ffffff;
    margin-bottom: 25px;
    font-weight: 700;
}

#about-tekst p {
    margin-bottom: 18px;
    position: relative;
    padding-left: 15px;
    color: #e0e0e0;
}

/* ====== 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);
    border: 1px solid rgba(255,255,255,0.1);
}

.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);
}

.scroll-top:active {
    transform: translateY(-1px) scale(0.98);
}

/* ====== FOOTER ====== */
.footer {
    background-color: #2a2a2a;
    color: #e0e0e0;
    padding: 40px 20px;
    width: 100%;
    position: relative;
    z-index: 10;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: auto;
}

.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 DESKTOPOWA - HOVER EFEKTY DLA OBRAZKÓW ====== */
@media (min-width: 769px) {
    .image1:hover {
        opacity: 0.65;
        filter: sepia(100%) hue-rotate(40deg) saturate(180%) contrast(1.1);
    }
    
    .image1:hover::after {
        content: "PAINTINGS";
        position: absolute;
        left: 125px;
        bottom: 125px;
        color: black;
        font-weight: 600;
        font-size: clamp(24px, 4vw, 70px);
        white-space: nowrap;
        pointer-events: none;
        z-index: 2;
    }
    
    .image2:hover {
        opacity: 0.65;
        filter: sepia(100%) hue-rotate(40deg) saturate(180%) contrast(1.1);
    }
    
    .image2:hover::after {
        content: "DIGITAL";
        position: absolute;
        left: 125px;
        bottom: 125px;
        color: black;
        font-weight: 600;
        font-size: clamp(24px, 4vw, 70px);
        white-space: nowrap;
        pointer-events: none;
        z-index: 2;
    }
    
    .image3:hover {
        opacity: 0.65;
        filter: sepia(100%) hue-rotate(40deg) saturate(180%) contrast(1.1);
    }
    
    .image3:hover::after {
        content: "INK";
        position: absolute;
        left: 125px;
        bottom: 125px;
        color: black;
        font-weight: 600;
        font-size: clamp(24px, 4vw, 70px);
        white-space: nowrap;
        pointer-events: none;
        z-index: 2;
    }
    
    .image1, .image2, .image3 {
        opacity: 1;
        filter: none;
    }
    
    .image1::after, .image2::after, .image3::after {
        content: none;
    }
}

/* ====== WERSJA MOBILNA ====== */
@media (max-width: 768px) {
    body {
        border-width: 8px;
    }
    
    /* MENU CONTAINER - JEDNA LINIA */
    .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: 18px;
        order: 2;
        margin-left: 10px;
    }
    
    /* GALERIA KARUZELA NA MOBILNYCH */
    .gallery-container {
        padding: 15px;
        min-height: 70vh;
    }
    
    .gallery-carousel {
        width: 100%;
        height: 70vh;
        max-width: 100%;
        overflow-x: auto; /* SCROLL NA MOBILNYCH */
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        border-radius: 10px;
    }
    
    .carousel-slides {
        display: flex;
        height: 100%;
        width: auto;
        min-width: 100%;
        transition: none;
    }
    
    .carousel-slide {
        min-width: 100vw; /* PEŁNA SZEROKOŚĆ EKRANU */
        height: 100%;
    }
    
    .carousel-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    /* UKRYWAMY PRZYCISKI I KROPKI NA MOBILNYCH */
    .carousel-btn,
    .carousel-dots {
        display: none !important;
    }
    
    .slide-info {
        padding: 20px 15px 15px;
        bottom: 20px;
        border-radius: 0 0 10px 10px;
    }
    
    .slide-info h3 {
        font-size: 20px;
    }
    
    .slide-info p {
        font-size: 14px;
    }
    
    /* IMAGES */
    .images {
        gap: 10px;
        padding: 0 10px;
        margin-top: 20px;
    }
    
    .images img {
        margin-bottom: 40px;
    }
    
    .image1, .image2, .image3 {
        opacity: 0.65;
        filter: sepia(100%) hue-rotate(40deg) saturate(180%) contrast(1.1);
    }
    
    .image1::after {
        content: "PAINTINGS";
        position: absolute;
        left: 50%;
        bottom: 55px;
        transform: translateX(-50%);
        color: black;
        font-weight: 600;
        font-size: clamp(18px, 5vw, 30px);
        white-space: nowrap;
        pointer-events: none;
        z-index: 2;
    }
    
    .image2::after {
        content: "DIGITAL";
        position: absolute;
        left: 50%;
        bottom: 55px;
        transform: translateX(-50%);
        color: black;
        font-weight: 600;
        font-size: clamp(18px, 5vw, 30px);
        white-space: nowrap;
        pointer-events: none;
        z-index: 2;
    }
    
    .image3::after {
        content: "INK";
        position: absolute;
        left: 50%;
        bottom: 55px;
        transform: translateX(-50%);
        color: black;
        font-weight: 600;
        font-size: clamp(18px, 5vw, 30px);
        white-space: nowrap;
        pointer-events: none;
        z-index: 2;
    }
    
    /* AVAILABLE PRINTS NA MOBILNYCH */
    .available-prints {
        padding: 40px 15px;
        margin: 30px 0;
    }
    
    .prints-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    
    .prints-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .print-image {
        height: 200px;
    }
    
    .print-info {
        padding: 15px;
    }
    
    .print-info h3 {
        font-size: 18px;
    }
    
    .print-info p {
        font-size: 14px;
    }
    
    .print-price {
        font-size: 16px;
    }
    
    .print-button {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    /* CONTACT SECTION */
    #contact-section {
        margin: 20px;
        padding: 25px;
        flex-direction: column;
        max-width: 95%;
    }
    
    .contact-text {
        width: 100%;
        margin: 0 0 25px 0;
        padding-right: 0;
        border-right: none;
        border-bottom: 1px solid rgba(0,0,0,0.1);
        padding-bottom: 25px;
        font-size: 18px;
    }
    
    .contact-form {
        width: 100%;
        padding: 0;
    }
    
    /* ABOUT SECTION */
    .about1-section {
        margin: 40px 20px;
        padding: 25px;
        flex-direction: column;
        gap: 30px;
        max-width: 95%;
        background-color: #2a2a2a;
    }
    
    .image4 {
        width: 100%;
        order: -1;
    }
    
    .image4 img {
        width: 100%;
        height: auto;
    }
    
    #about-tekst {
        width: 100%;
        font-size: 18px;
        padding-left: 0;
        text-align: center;
        color: #f0f0f0;
    }
    
    #about-tekst b {
        font-size: 24px;
        text-align: center;
        color: #ffffff;
    }
    
    #about-tekst p {
        padding-left: 0;
        text-align: center;
        color: #e0e0e0;
    }
    
    /* SCROLL TO TOP */
    .scroll-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
    
    /* UKRYWAMY MINI MENU NA MOBILNYCH */
    .art-menu {
        display: none !important;
    }
    
    /* FOOTER NA MOBILNYCH */
    .footer {
        padding: 30px 15px;
        margin-top: 40px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 25px;
    }
    
    .footer-section {
        min-width: 100%;
    }
}

/* ====== MAŁE TELEFONY ====== */
@media (max-width: 480px) {
  .logo {
        font-size: 18px;
        order: 2;
        margin-left: 10px;
    }   

   .gallery-carousel {
        height: 60vh;
    }
    
    .slide-info {
        padding: 15px 10px 10px;
        bottom: 15px;
    }
    
    .slide-info h3 {
        font-size: 18px;
    }
    
    .slide-info p {
        font-size: 12px;
    }
    
    .image1::after,
    .image2::after,
    .image3::after {
        bottom: 40px;
        font-size: 16px;
    }
    
    .available-prints {
        padding: 30px 10px;
    }
    
    .prints-grid {
        grid-template-columns: 1fr;
    }
    
    .prints-title {
        font-size: 24px;
    }
}