/* ==========================================================================
   Jakub Terejlis — Portfolio Fotograficzne (style.css)
   Wersja: W pełni spójna z głównym stylem CV (Zmienne i paleta kolorów)
   ========================================================================== */

:root {
    --bg: #0f0f0f;
    --bg2: #1a1a1a;
    --text: #e1e1e1;
    --accent: #3bd1ff;
    --card: #181818;
    --border: #2a2a2a;
}

/* --- Reset i Podstawowe Stylizowanie --- */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    font-family: Arial, sans-serif;
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* --- Kontener Główny --- */
.container {
    width: 90%;
    max-width: 900px; /* Spójne z szerokością Twojego głównego CV */
    margin: auto;
    padding: 0 20px 40px;
}

/* --- Hero / Nagłówek --- */
header {
    text-align: center;
    padding: 70px 20px 40px;
    background: #101010;
    margin-bottom: 20px;
}

header h1 {
    margin: 0;
    font-size: 2.6rem;
    color: #ffffff;
}

header p {
    color: #bbb;
    margin: 8px 0 18px;
}

/* --- Nawigacja Filtrująca --- */
/* --- Stylizacja listy rozwijanej wydarzeń --- */
.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.event-dropdown-container {
    position: relative;
}

.event-select {
    background: var(--card);
    color: var(--text);
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.95rem;
    cursor: pointer;
    outline: none;
    transition: 0.3s ease;
    -webkit-appearance: none; /* Ukrycie domyślnej strzałki systemowej */
    appearance: none;
    padding-right: 35px; /* Przestrzeń na własną strzałkę */
}

.event-select:hover {
    border-color: var(--accent); /* Twój niebieski akcent z CV */
}

/* Dodanie delikatnej własnej strzałki do selecta */
.event-dropdown-container::after {
    content: "▼";
    font-size: 0.7rem;
    color: var(--text-muted);
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.filter-btn {
    background: none;
    border: none;
    color: #777;
    font-size: 0.95rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    padding: 6px 0;
    transition: 0.2s;
    border-bottom: 2px solid transparent;
}

.filter-btn.active, .filter-btn:hover {
    color: var(--accent);
    border-bottom: 2px solid var(--accent);
}

/* --- Siatka Galerii (Zoptymalizowana pod CSS Grid) --- */
/* --- Zmiana siatki na dynamiczną wysokość kolumn --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
    align-items: start; /* Ważne: zapobiega rozciąganiu niższych kadrów */
}

.gallery-item {
    position: relative;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    /* aspect-ratio: 3 / 2; <-- USUNIĘTE lub zakomentowane */
    cursor: pointer;
    transition: 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* Dodatkowa inżynierska flaga dla przeglądarek mobilnych, 
       która poprawia algorytm skalowania obrazów w dół: */
    image-rendering: -webkit-optimize-contrast; 
    transition: transform 0.4s ease;
}

.gallery-item.hidden {
    display: none;
}


.gallery-item:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 6px 20px rgba(59, 209, 255, 0.1);
}

.gallery-item:hover img {
    transform: scale(1.03);
}

/* --- Sekcja O mnie & Kontakt (Wizualne Karty) --- */
.profile-section {
    margin: 45px 0;
}

.profile-layout {
    display: flex;
    gap: 20px;
}

.profile-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    flex: 1;
}

h2 {
    font-size: 1.4rem;
    margin-top: 0;
    margin-bottom: 14px;
    color: var(--accent);
}

.profile-card p {
    color: var(--text);
    margin: 0 0 14px 0;
    font-size: 15px;
}

.profile-card p:last-child {
    margin-bottom: 0;
}

/* --- Układ Bio ze zdjęciem w kółku --- */
.bio-layout {
    display: flex;
    align-items: center
    ;
    gap: 20px;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(59, 209, 255, 0.35);
    box-shadow: 0 0 0 1px rgba(59, 209, 255, 0.12);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.bio-text {
    flex-grow: 1;
}

/* --- Lista Kontaktowa --- */
.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-list li {
    font-size: 15px;
    margin-bottom: 10px;
    color: var(--text);
}

.contact-list a {
    color: var(--accent);
    text-decoration: none;
    transition: 0.2s;
}

.contact-list a:hover {
    text-decoration: underline;
}

/* --- Stopka --- */
footer {
    text-align: center;
    padding: 20px;
    color: #777;
    border-top: 1px solid var(--border);
    font-size: 0.9rem;
}

/* --- Ultralekki Lightbox --- */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 15, 15, 0.96);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    cursor: zoom-out;
}

.lightbox-overlay img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 6px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

/* --- Responsywność --- */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    .profile-layout {
        flex-direction: column;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .bio-layout {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .profile-avatar {
        margin-bottom: 5px;
    }
    .filters {
        gap: 10px;
    }
    .filter-btn {
        font-size: 0.85rem;
    }
}