/* Hero Section z mozaiką zdjęć */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 80px 0;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 600px;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    color: #1e293b;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.highlight {
    color: #3b82f6;
    position: relative;
}

.hero-description {
    font-size: 1.125rem;
    color: #64748b;
    margin-bottom: 40px;
    line-height: 1.7;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.3);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px 0 rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #475569;
    border: 2px solid #e2e8f0;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-secondary:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.1);
}

/* Mozaika zdjęć */
.hero-images {
    position: relative;
    height: 600px;
}

.image-grid {
    position: relative;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(12, 1fr);
    gap: 12px;
}

.image-item {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    position: relative;
}

.image-item:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

/* Pozycjonowanie obrazków w siatce */
.image-item.large {
    grid-column: 1 / 8;
    grid-row: 3 / 10;
}

.image-item.medium.top {
    grid-column: 8 / 12;
    grid-row: 1 / 6;
}

.image-item.small.top-right {
    grid-column: 9 / 12;
    grid-row: 6 / 8;
}

.image-item.medium.bottom {
    grid-column: 6 / 11;
    grid-row: 8 / 13;
}

.image-item.small.bottom-right {
    grid-column: 10 / 12;
    grid-row: 9 / 11;
}

.image-item.small.left-top {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
}

.image-item.small.left-bottom {
    grid-column: 1 / 4;
    grid-row: 11 / 13;
}

/* Efekty świetlne */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(147, 197, 253, 0.1) 100%);
    z-index: 1;
}

/* Animacje pojawiania się */
.hero-content > * {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.hero-title {
    animation-delay: 0.2s;
}

.hero-description {
    animation-delay: 0.4s;
}

.hero-buttons {
    animation-delay: 0.6s;
}

.image-item {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.image-item.large {
    animation-delay: 0.3s;
}

.image-item.medium.top {
    animation-delay: 0.5s;
}

.image-item.small.top-right {
    animation-delay: 0.7s;
}

.image-item.medium.bottom {
    animation-delay: 0.9s;
}

.image-item.small.bottom-right {
    animation-delay: 1.1s;
}

.image-item.small.left-top {
    animation-delay: 0.4s;
}

.image-item.small.left-bottom {
    animation-delay: 1.3s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsywność */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }
    
    .hero-images {
        height: 500px;
    }
    
    .image-grid {
        grid-template-columns: repeat(8, 1fr);
        grid-template-rows: repeat(8, 1fr);
    }
    
    .image-item.large {
        grid-column: 1 / 6;
        grid-row: 2 / 7;
    }
    
    .image-item.medium.top {
        grid-column: 6 / 9;
        grid-row: 1 / 4;
    }
    
    .image-item.small.top-right {
        grid-column: 7 / 9;
        grid-row: 4 / 6;
    }
    
    .image-item.medium.bottom {
        grid-column: 4 / 8;
        grid-row: 6 / 9;
    }
    
    .image-item.small.bottom-right {
        grid-column: 8 / 9;
        grid-row: 6 / 8;
    }
    
    .image-item.small.left-top {
        grid-column: 1 / 3;
        grid-row: 1 / 2;
    }
    
    .image-item.small.left-bottom {
        grid-column: 1 / 3;
        grid-row: 8 / 9;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .hero-container {
        padding: 0 20px;
        gap: 40px;
    }
    
    .hero-images {
        height: 400px;
    }
    
    .image-grid {
        grid-template-columns: repeat(6, 1fr);
        grid-template-rows: repeat(6, 1fr);
        gap: 8px;
    }
    
    .image-item.large {
        grid-column: 1 / 5;
        grid-row: 2 / 5;
    }
    
    .image-item.medium.top {
        grid-column: 5 / 7;
        grid-row: 1 / 3;
    }
    
    .image-item.small.top-right {
        grid-column: 5 / 7;
        grid-row: 3 / 5;
    }
    
    .image-item.medium.bottom {
        grid-column: 3 / 6;
        grid-row: 5 / 7;
    }
    
    .image-item.small.bottom-right {
        grid-column: 6 / 7;
        grid-row: 5 / 6;
    }
    
    .image-item.small.left-top {
        grid-column: 1 / 2;
        grid-row: 1 / 2;
    }
    
    .image-item.small.left-bottom {
        grid-column: 1 / 3;
        grid-row: 6 / 7;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

/* Dodatkowe efekty dla lepszego wyglądu */
.image-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(147, 197, 253, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-item:hover::after {
    opacity: 1;
}

/* Floating animation dla niektórych elementów */
.image-item.small {
    animation: float 6s ease-in-out infinite;
}

.image-item.small.top-right {
    animation-delay: -2s;
}

.image-item.small.bottom-right {
    animation-delay: -4s;
}

.image-item.small.left-top {
    animation-delay: -1s;
}

.image-item.small.left-bottom {
    animation-delay: -3s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}