:root {
    --primary: #fa9c3f; /* Pomarańczowy akcent */
    --text: #222; /* Ciemnoszary tekst dla lepszej czytelności */
    --background-start: #f5e8d0; /* Ciepły beż */
    --background-end: #f5f5f0; /* Ciepły jasnoszary */
    --section-bg: rgba(255, 255, 255, 0.92); /* Bardziej nieprzezroczyste tło sekcji */
    --text-light: #444; /* Nieco jaśniejszy tekst dla mniej ważnych elementów */
}

/* Główne tło strony */
body {
    background: linear-gradient(
        135deg,
        var(--background-start),
        var(--background-end)
    ) fixed;
    color: var(--text);
    min-height: 100vh;
    margin: 0;
    font-family: 'Segoe UI', Roboto, sans-serif;
    line-height: 1.7;
    font-size: 1.05rem;
    overflow-x: hidden; /* Zapobiega przewijaniu w poziomie */
}

.accordion details summary {
    font-weight: 600; /* semi-bold (bardziej eleganckie niż standardowe bold) */
    font-size: 1.25rem; /* większy rozmiar */
    color: #1f272f; /* ciemny kolor */
    letter-spacing: 0.5px; /* lekko rozsunięte litery */
    padding: 0.75rem 0; /* większy padding */
    line-height: 1.2;
}

/* Panel boczny */
#sidebar {
    position: fixed;
    left: -250px;
    top: 0;
    width: 250px;
    height: 100vh;
    background: rgba(255, 253, 250, 0.95);
    backdrop-filter: blur(8px);
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    padding: 2rem 1.5rem;
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 100;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

#sidebar nav {
    flex: 1;
}

#sidebar .language-switcher {
    margin-top: auto;
    padding-top: 1rem;
}

#sidebar.active {
    transform: translateX(250px);
}

/* Główna zawartość */
#content {
    padding: 3rem;
    width: 100%;
    transition: transform 0.3s ease;
    min-width: 0; /* Zapobiega rozszerzaniu poza viewport */
}

body.sidebar-open #content {
    transform: translateX(250px);
    width: calc(100% - 250px); /* Zmniejsza szerokość przy otwartym pasku */
}

/* Sekcje */
.section {
    background: var(--section-bg);
    border-radius: 12px;
    padding: 2rem;
    margin: 0 auto 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    max-width: 900px; /* Ograniczenie szerokości dla lepszej czytelności */
    border: 1px solid rgba(0, 0, 0, 0.05);
}
h1, h2, h3 {
    color: #111;
    font-weight: 600;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}
/* Lista punktowana */
li {
    color: #222222;
    font-weight: 400;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 1.8rem;
    border-bottom: 2px solid #fa9c3f;
    padding-bottom: 0.5rem;
}

/* Poprawiona czytelność tekstu */
p {
    margin-bottom: 1.2rem;
    color: var(--text);
}
/* Przycisk menu */
.menu-toggle {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 101;
    background: #fa9c3f;
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(250, 156, 63, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.menu-toggle:hover {
    background: #e68b2c;
}

body.sidebar-open .menu-toggle {
    transform: translateX(250px);
}

/* Linki w menu */
#sidebar a {
    display: block;
    padding: 0.75rem 0;
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

#sidebar a:hover {
    color: var(--primary);
    padding-left: 10px;
}

/* Responsywność */
@media (max-width: 768px) {
    body.sidebar-open #content,
    body.sidebar-open .menu-toggle {
        transform: translateX(200px);
    }
    
    #sidebar {
        width: 200px;
    }
    
    #sidebar.active {
        transform: translateX(200px);
    }
    
    .menu-toggle {
        width: 40px;
        height: 40px;
    }
    
    #content {
        padding: 1.5rem;
    }
}

/* Rozwijane listy */
.accordion details {
    margin-bottom: 1rem;
    border-left: 3px solid #fa9c3f;
    padding-left: 1rem;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 6px;
    padding: 1rem;
}

/* Przełącznik języków */
.language-switcher button {
    min-width: 70px;  /* Zwiększona szerokość */
    padding: 0.5rem 1.2rem;
    background: var(--primary) !important;  /* Pomarańczowy kolor */
    color: white !important;
    border: none;
    font-weight: 600;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.language-switcher button {
    background: rgba(255, 255, 255, 0.314);
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    min-width: 40px;
}


.language-switcher button:hover {
    background: #f3a867 !important; /* Ciemniejszy pomarańcz */
    transform: scale(1.05);
}

.language-switcher button.active-lang {
    background: #eb7d33 !important; /* Najciemniejszy pomarańcz */
    box-shadow: 0 0 10px rgba(235, 125, 51, 0.5); /* ZMIENIONO: pomarańczowy cień */
}

.lang-content {
    display: none;
    width: 100%;
}
.lang-content.active {
    display: block;
}

.skills-tabs {
    margin-top: 2rem;
}

.tab-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.7);
    border: none;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: #fa9c3f;
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Styl karuzeli */
.carousel {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.carousel-items {
    display: flex;
    overflow: hidden;
    gap: 1.5rem;
    scroll-behavior: smooth;
    flex: 1;
    padding: 1rem 0;
}

.skill-card {
    min-width: 300px;
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-5px);
}

.carousel-btn {
    background: #fa9c3f !important;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    color: white;
    transition: all 0.3s ease;
    opacity: 0.9;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.carousel-btn:hover {
    background: #e68b2c !important;
    transform: translateY(-50%) scale(1.1);
}

/* Poprawki dla zakładek */
.tab-btn:not(.active) {
    background: rgba(255, 255, 255, 0.4) !important;
    color: #555 !important;
}

.tab-btn:not(.active):hover {
    background: rgba(255, 255, 255, 0.7) !important;
}

.carousel-items {
    scrollbar-width: none; /* Ukryj pasek przewijania w Firefox */
}

.carousel-items::-webkit-scrollbar {
    display: none; /* Ukryj pasek przewijania w Chrome/Safari */
}

/* Upewnij się, że karuzele są widoczne */
.tab-content.active {
    display: flex !important;
    justify-content: center;
}

.skills-grid, .carousel {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.skills-grid {
    opacity: 0;
    transform: translateY(20px);
}

.skills-grid.active-grid {
    opacity: 1;
    transform: translateY(0);
}
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.skills-grid .skill-card {
    min-width: auto;
    height: auto;
}

/* Widoczność tylko 3 kart w karuzeli */
.carousel-items {
    width: calc(3 * (300px + 1.5rem)); /* 3 karty + odstępy */
    margin: 0 auto;
}



.carousel-btn:hover {
    opacity: 1;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

/* Ukryj karuzele w zakładkach miękkie i języki */
#soft .carousel,
#languages .carousel {
    display: none !important;
}

/* Pokazuj siatkę tylko w odpowiednich zakładkach */
#soft .skills-grid,
#languages .skills-grid {
    display: grid !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
}

#technical .carousel {
    display: flex !important;
}

#technical .skills-grid {
    display: none !important;
}

/* Domyślnie ukryj siatkę */
.skills-grid:not(.active-grid) {
    display: none;
}

/* Responsywność siatki */
@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .carousel-items {
        width: calc(100vw - 100px); /* Mniejsza szerokość na małych ekranach */
    }
}
carousel-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.indicator.active {
    background: #fa9c3f;
}

#soft.active .skills-grid,
#languages.active .skills-grid {
    display: grid !important;
    opacity: 1;
    transform: translateY(0);
}
#soft.active .carousel,
#languages.active .carousel {
    display: none !important;
}
#technical.active .carousel {
    display: flex !important;
}

@keyframes slideDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.slide-down {
    animation: slideDown 0.5s ease-out forwards;
}

/* Styl przycisku kontaktowego */
#contact-toggle {
    background: #fa9c3f;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

#contact-toggle:hover {
    background: #e68b2c;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

#contact-details {
    margin-top: 1.5rem;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 12px;
    padding: 1.5rem;
    border-left: 4px solid #fa9c3f;
}

#contact-content p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 1rem 0;
    font-size: 1.1rem;
}

#click-counter {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}
/* Kontener sekcji "O mnie" - ZAKTUALIZOWANY */
.about-container {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    align-items: flex-start;
}

/* Ramka na zdjęcie - ZAKTUALIZOWANA */
.photo-frame {
    border: 5px solid #fa9c3f;
    border-radius: 10px;
    padding: 0; /* USUNIĘTO PADDING */
    background-color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    overflow: hidden; /* ZAPEWNIA, ŻE ZDJĘCIE NIE WYCHODZI POZA RAMKĘ */
    transition: transform 0.3s ease;
}

.photo-frame:hover {
    transform: scale(1.03);
}

.photo-frame img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    display: block; /* USUWA DODATKOWY MARGINES */
    margin: 0; /* ZAPEWNIA BRAK MARGINESU */
}