/* --- Zmienne kolorystyczne (na podstawie Logo) --- */
:root {
    --primary-blue: #004e7c;   /* Granat */
    --accent-orange: #f15a29;  /* Pomarańcz */
    --text-dark: #333333;
    --bg-light: #ffffff;
    --gray-light: #f4f4f4;
}

/* --- Ogólne ustawienia --- */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- Nagłówek i Nawigacja --- */
header {
    padding: 20px 40px;
    display: flex;
    justify-content: flex-end; /* Menu po prawej */
    align-items: center;
    background-color: #fff;
    border-bottom: 1px solid #eee;
}

nav a {
    text-decoration: none;
    color: var(--primary-blue);
    font-weight: 600;
    margin-left: 30px;
    transition: color 0.3s;
    font-size: 1rem;
}

nav a:hover, nav a.active {
    color: var(--accent-orange);
}

/* --- Główna sekcja (Main) --- */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* Centrowanie w pionie */
    padding: 40px 20px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

/* --- Elementy wspólne --- */
.logo-container img {
    max-width: 250px;
    height: auto;
    margin-bottom: 20px;
}

h1 {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 30px;
}

/* --- Przyciski (Buttony) --- */
.cta-button, button[type="submit"] {
    background-color: var(--accent-orange);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
    box-shadow: 0 4px 15px rgba(241, 90, 41, 0.3);
    display: inline-block;
}

.cta-button:hover, button[type="submit"]:hover {
    background-color: #d14010;
    transform: translateY(-2px);
}

/* --- Formularz Kontaktowy --- */
.contact-form-container {
    width: 100%;
    max-width: 500px; /* Ograniczenie szerokości formularza */
    text-align: left;
    background: var(--gray-light);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 8px;
}

input[type="email"], textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    box-sizing: border-box; /* Ważne, żeby padding nie rozpychał inputa */
    transition: border-color 0.3s;
}

textarea {
    min-height: 150px;
    resize: vertical;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--accent-orange);
}

/* --- Stopka --- */
footer {
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
    color: #888;
    border-top: 1px solid #eee;
    background-color: #fff;
}

/* --- Responsywność --- */
@media (max-width: 600px) {
    h1 { font-size: 1.8rem; }
    .logo-container img { max-width: 180px; }
    header { justify-content: center; }
    nav a { margin: 0 10px; }
}

/* --- Style specyficzne dla Portfolio --- */

/* Kontener dla kart pracy */
.portfolio-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 20px;
}

/* Wygląd pojedynczej karty pracy */
.job-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-left: 5px solid var(--primary-blue); /* Akcent kolorystyczny */
    text-align: left;
    transition: transform 0.2s;
}

.job-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* Nagłówek w karcie (Stanowisko i Data) */
.job-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.job-title {
    font-size: 1.3rem;
    color: var(--primary-blue);
    font-weight: bold;
    margin: 0;
}

.job-date {
    font-size: 0.9rem;
    color: #888;
    background-color: #f0f0f0;
    padding: 4px 10px;
    border-radius: 15px;
}

/* Nazwa firmy */
.company-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
    display: block;
}

.company-desc {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 15px;
    font-style: italic;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

/* Lista obowiązków */
.job-details ul {
    list-style-type: none;
    padding-left: 0;
}

.job-details li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    color: #444;
}

.job-details li::before {
    content: "•";
    color: var(--accent-orange);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Tagi umiejętności (Badge) */
.skills-tags {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tag {
    background-color: #eef4f8;
    color: var(--primary-blue);
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Sekcja Hobby */
.hobby-container {
    background-color: var(--primary-blue);
    color: white;
    border-radius: 8px;
    padding: 30px;
    margin-top: 40px;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}

.hobby-container h2 {
    color: white; /* Nadpisanie koloru nagłówka */
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.hobby-icons {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    font-weight: bold;
}

/* --- Dodatki do Portfolio (Loga i Klienci) --- */

/* Modyfikacja nagłówka karty pracy, aby pomieścił logo */
.job-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* Zmieniono na start, żeby logo nie uciekało */
    margin-bottom: 20px;
    gap: 20px;
}

.job-info {
    flex: 1;
}

/* Styl dla logo pracodawcy wewnątrz karty */
.company-logo-img {
    width: 80px;       /* Stała szerokość */
    height: 80px;      /* Stała wysokość */
    object-fit: contain; /* Skalowanie bez zniekształceń */
    background: #fff;
    border-radius: 8px;
    padding: 5px;
    border: 1px solid #eee;
}

/* --- Nowa sekcja: Marki współpracujące --- */
.clients-section {
    margin-top: 60px;
    text-align: center;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 30px;
    align-items: center;
    margin-top: 30px;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.client-logo {
    width: 100%;
    max-width: 100px;
    height: auto;
    filter: grayscale(100%); /* Efekt czarno-biały */
    opacity: 0.6;
    transition: all 0.3s ease;
    margin: 0 auto;
}

.client-logo:hover {
    filter: grayscale(0%); /* Kolor po najechaniu */
    opacity: 1;
    transform: scale(1.1);
}