/* ============================================
   STROJE SUWALSKIE - STYLE DEDYKOWANE
   ============================================ */

/* Sekcja logo partnera */
.partner_section {
    background: linear-gradient(135deg, rgba(114, 159, 182, 0.1) 0%, rgba(179, 208, 222, 0.1) 100%);
    padding: 60px 10%;
    margin: 40px 0;
    text-align: center;
}

.partner_logo_container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.nikidw_logo {
    max-width: 600px;
    width: 100%;
    height: auto;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: brightness(1);
}

.nikidw_logo:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.partner_subtitle {
    font-size: 1.2rem;
    color: #E5D283;
    margin: 0;
    font-weight: 500;
}

.partner_subtitle strong {
    color: #fff;
    font-weight: 700;
}

/* Sekcja treści projektu */
.column {
    margin: 0 10%;
    padding: 60px 0;
}

.project_description,
.project_details {
    margin: 40px 0;
}

.text_box {
    background-color: rgba(114, 159, 182, 0.3);
    padding: 40px;
    border-radius: 15px;
    border: 2px solid #B3D0DE;
    line-height: 1.8;
    color: #E5D283;
    font-size: 1.1rem;
}

.text_box p {
    margin-bottom: 1.5em;
}

.text_box p:last-child {
    margin-bottom: 0;
}

.text_box strong {
    color: #fff;
    font-weight: 600;
}

.text_box em {
    color: #B3D0DE;
    font-style: italic;
}

.nikidw-link {
    color: #B3D0DE;
    font-weight: 600;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.nikidw-link:hover {
    color: #fff;
}

/* Galeria zdjęć */
.gallery_section {
    margin: 80px 0 60px;
}

.gallery_title {
    font-family: 'MedievalSharp', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    color: #E5D283;
    text-align: center;
    margin-bottom: 50px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.photo_gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.gallery_item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    border: 3px solid #729fb6;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    aspect-ratio: 4/3;
}

.gallery_item:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 15px 40px rgba(229, 210, 131, 0.4);
    border-color: #E5D283;
}

.gallery_photo {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.6s ease;
}

.gallery_item:hover .gallery_photo {
    transform: scale(1.1);
}

/* Overlay z numerem zdjęcia (opcjonalnie) */
.gallery_item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(14, 52, 87, 0.7) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.gallery_item:hover::after {
    opacity: 1;
}

/* Link powrotny */
.back_link_section {
    text-align: center;
    margin: 60px 0 40px;
}

.back_button {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, #729fb6 0%, #0e3457 100%);
    color: #E5D283;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    border: 2px solid #B3D0DE;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.back_button:hover {
    background: linear-gradient(135deg, #0e3457 0%, #141527 100%);
    color: #fff;
    border-color: #E5D283;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(229, 210, 131, 0.3);
}

/* Responsywność */
@media (max-width: 1200px) {
    .photo_gallery {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .partner_section {
        padding: 40px 5%;
    }

    .nikidw_logo {
        max-width: 100%;
    }

    .partner_subtitle {
        font-size: 1rem;
    }

    .column {
        margin: 0 5%;
        padding: 40px 0;
    }

    .text_box {
        padding: 25px;
        font-size: 1rem;
    }

    .gallery_title {
        font-size: clamp(1.5rem, 5vw, 2rem);
        margin-bottom: 30px;
    }

    .photo_gallery {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .gallery_item {
        aspect-ratio: 16/9;
    }

    .back_button {
        padding: 12px 30px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .partner_section {
        padding: 30px 5%;
        margin: 20px 0;
    }

    .text_box {
        padding: 20px;
        font-size: 0.95rem;
    }

    .gallery_section {
        margin: 50px 0 40px;
    }
}

/* Dodatkowe efekty wizualne */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gallery_item {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

/* Opóźnienia dla kolejnych zdjęć */
.gallery_item:nth-child(1) { animation-delay: 0.1s; }
.gallery_item:nth-child(2) { animation-delay: 0.2s; }
.gallery_item:nth-child(3) { animation-delay: 0.3s; }
.gallery_item:nth-child(4) { animation-delay: 0.4s; }
.gallery_item:nth-child(5) { animation-delay: 0.5s; }
.gallery_item:nth-child(6) { animation-delay: 0.6s; }
.gallery_item:nth-child(7) { animation-delay: 0.7s; }
.gallery_item:nth-child(8) { animation-delay: 0.8s; }
.gallery_item:nth-child(9) { animation-delay: 0.9s; }
.gallery_item:nth-child(10) { animation-delay: 1s; }
.gallery_item:nth-child(11) { animation-delay: 1.1s; }

/* Lightbox hover efekt */
.gallery_item {
    cursor: pointer;
}

.gallery_item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 3rem;
    color: #E5D283;
    z-index: 10;
    transition: transform 0.3s ease;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

.gallery_item:hover::before {
    transform: translate(-50%, -50%) scale(1);
}
