:root {
    --accent: #ffffff;
    --card-bg: rgba(255, 255, 255, 0.15);
    --transition: all 0.3s ease;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    color: white;
    background-image: url('tlo.jpg'); /* Upewnij się, że plik tlo.jpg jest w tym samym folderze */
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;
    background-size: cover;
    background-color: #333; 
    min-height: 100vh;
}

/* Przyciemnienie tła dla lepszego kontrastu */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

header { 
    height: 50vh; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    text-align: center; 
    padding: 20px;
}

header h1 { 
    font-family: 'Fuzzy Bubbles', cursive;
    font-size: clamp(2.5rem, 8vw, 4.5rem); /* Płynne skalowanie fontu */
    color: var(--accent); 
    margin-bottom: 0.5rem; 
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.subtitle { 
    font-size: clamp(1.2rem, 4vw, 2.4rem); 
    color: #f0f0f0; 
}

.container { 
    max-width: 800px; 
    margin: 2rem auto; 
    padding: 0 20px; 
}

/* Akordeon */
.accordion {
    background: var(--card-bg);
    color: white;
    cursor: pointer;
    padding: 20px;
    width: 100%;
    border: 1px solid rgba(255,255,255,0.3);
    text-align: left;
    font-size: 1.4rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.accordion:hover {
    background: rgba(255, 255, 255, 0.25);
}

.panel {
    padding: 0 18px;
    background: rgba(0,0,0,0.3);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    border-radius: 0 0 10px 10px;
}

.panel p {
    line-height: 1.6;
    padding: 15px 0;
}

/* Karty kompetencji */
.cards { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); 
    gap: 20px; 
    margin-top: 30px;
}

.card {
    background: var(--card-bg);
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
}

.card h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 400;
}

footer { 
    text-align: center; 
    padding: 40px 20px; 
    margin-top: 50px; 
    background: rgba(0,0,0,0.6); 
}

footer p {
    margin: 5px 0;
}

/* Poprawki dla małych ekranów (poniżej 600px) */
@media (max-width: 600px) {
    header { height: 40vh; }
    .container { margin: 1rem auto; }
    .accordion { font-size: 1.1rem; padding: 15px; }
    .card { padding: 20px; }
    footer { padding: 30px 10px; }
}