/* --- 🚀 Kompletny Reset i Podstawowe Style --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    min-width: 0;
}

body, html {
    font-family: Arial, sans-serif;
    background: url('tlo.svg'), linear-gradient(to bottom right, #0a0a0a, #171717);
    background-size: cover;
    background-color: #0a0a0a;
    color: white;
    text-align: center;
    min-height: 100%;
    overflow-x: hidden;
}

/* --- Sekcja Home (Profil) --- */
.home {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    flex-direction: column;
    position: relative;
}

.profile-container {
    max-width: 1100px;
    width: 90%;
    padding: 40px; /* Domyślny padding */
    margin: 0 auto;
    background-color: rgba(34, 34, 34, 0.8);
    border-radius: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 1;
    clip-path: ellipse(75% 70% at 50% 50%);
}

.profile {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.profile-image img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
}

.profile-info h1 {
    margin-top: 20px;
    font-size: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.verify-gif {
    margin-left: 10px;
    width: 20px;
    height: 20px;
}

/* --- CTA Przyciski (Zmodyfikowane: mniejsze i obok siebie) --- */
.cta {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    background-color: #161c22;
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 5px;
    font-size: 16px;
    margin: 8px;
    transition: background-color 0.3s ease;
    display: inline-block;
}

.cta-button:hover {
    background-color: #161c22;
}

/* --- Projekty / Portfolio / Zdjęcia i Wideo --- */
.projects, .project-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 50px;
}

.project {
    text-align: center;
    margin-bottom: 30px;
    width: 90%;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.project h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #ffffff;
    transition: transform 0.3s ease;
}

.project img {
    display: block;
    margin: 0 auto;
    max-width: 70%;
    height: auto;
    border-radius: 20px;
    border: 3px solid #333;
    object-fit: cover;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: black;
}

.project:hover img, .project:hover .projekt-video {
    transform: scale(1);
    box-shadow: 0 1px 9px rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    border: 4px solid #444444;
    background-color: #6a0dad;
}

.project:hover h3 {
    transform: translateY(-50px);
}

.video-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2%;
    margin-top: 50px;
    max-width: 1100px;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.video {
    text-align: center;
    flex: 0 1 48%;
    margin-bottom: 20px;
}

.video h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #ffffff;
    transition: transform 0.3s ease;
}

.video img, .video .projekt-video, .video video {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    border: 3px solid #333333;
    transition: transform 0.1s ease, box-shadow 0.1s ease, border 0.1s ease, background-color 0.1s ease;
    object-fit: cover;
    cursor: pointer;
    background-color: black;
}

.video:hover img, .video:hover .projekt-video, .video:hover video {
    transform: scale(1);
    box-shadow: 0 1px 9px rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    border: 4px solid #444444;
    background-color: #6a0dad;
}

/* --- 🤝 Partnerzy (POPRAWIONY ROZMIAR I UKŁAD) --- */
.partners-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 30px; /* Zmniejszona odległość między elementami */
    flex-wrap: wrap;
    margin-top: 50px;
    max-width: 1100px;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.partner-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 0 0 auto;
    width: auto;
    margin-bottom: 15px; /* Mniejszy margines na dole */
}

/* Zmniejszenie rozmiaru do 40px */
.partner-img {
    width: 70px; 
    height: 70px; 
    object-fit: cover;
    border: none; /* Usuwa obramowania */
    transition: opacity 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

/* Właściwości tworzące koło */
.circle {
    border-radius: 50%;
}

.partner-name {
    margin-top: 5px; /* Mniejszy odstęp od obrazka */
    font-size: 0.8em; 
    font-weight: bold;
    text-align: center;
}

/* Styl dla linku (element <a>) - Zapewnienie klikalności */
.partner-item a {
    display: block; 
    text-decoration: none; 
    border: none;
    position: relative; 
    z-index: 10; /* Kluczowe dla klikalności */
    transition: transform 0.3s ease-in-out; 
}

/* Efekt najechania myszką (HOVER) */
.partner-item a:hover {
    transform: scale(1.2); /* Powiększenie, które działa */
}

.partner-item a:hover .partner-img {
    opacity: 0.8;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); 
}
}/* --- Stopka --- */
.site-footer {
    margin-top: 40px;
    margin-bottom: 10px;
    font-weight: bold;
    text-shadow: 0 0 1px rgba(255,255,255,0.7), 0 0 15px rgba(255,255,255,0.5);
}

/* --- Responsywność --- */

/* Telefon/Tablet (<= 1024px) */
@media (max-width: 1024px) {
    .video {
        flex: 0 1 100%;
        margin: 10px 0;
    }
    
    /* Zmiana: Profil na górze z dużą przestrzenią na dole */
    .home {
        height: auto;
        min-height: 60vh;
        padding-top: 50px;
        padding-bottom: 50px;
        align-items: flex-start;
    }

    /* KLUCZOWA ZMIANA! Wymuszamy, by 'wyspa' była większa na dole, 
       co zepchnie element WSPÓŁPRACE w dół. */
    .profile-container {
        padding: 20px;
        /* ZWIĘKSZONY DOLNY PADDING */
        padding-bottom: 100px !important; 
    }

    .profile-info h1 {
        font-size: 30px;
    }

    /* Resetowanie nadmiernych marginesów z sekcji Partnerów, by działał padding */
    .projects, .project-container {
        margin-top: 20px; 
    }
    
    /* Ustawiamy minimalny margines dla nagłówka WSPÓŁPRACE, bo całą robotę robi padding w górze */
    .projects h3:first-child, .project-container h3:first-child {
        margin-top: 5px; 
        margin-bottom: 5px; 
    }
}

/* Telefon (<= 768px): PARTNERZY */
@media (max-width: 768px) {
    .cta-button {
        padding: 10px 15px;
        font-size: 14px;
        margin: 5px;
    }
    
    /* PARTNERZY: Mniejsze, poziome z zawijaniem, bez nachodzenia */
    .partners-container {
        /* Wymuś mniejszy margines na górze kontenera partnerów (bo już mamy duży padding na profilu) */
        margin-top: 30px !important; 

        width: 100%;
        gap: 15px;
        padding: 0 5px;
    }

    .partner-item {
        flex-basis: 30%;
        min-width: 60px;
        margin-bottom: 15px;
        padding: 0;
    }
    
    .partner-img {
        width: 50px;
        height: 50px;
        display: block;
        margin: 0 auto;
    }

    .partner-name {
        font-size: 10px;
        word-break: break-all;
    }
    
    /* Ustawiamy marginesy nagłówka (WSPÓŁPRACE), które teraz będą bardziej przewidywalne */
    .projects h3:first-child, .project-container h3:first-child, h3 {
        margin-bottom: 20px !important;
        margin-top: 20px !important;
    }
}

