:root {
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --text-main: #0f172a;
    --text-muted: #475569;
    --primary: #0f766e;
    --secondary: #0ea5e9;
    --gradient: linear-gradient(135deg, #0f766e 0%, #0e7490 100%);
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-main);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
}

nav {
    position: sticky;
    top: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: center;
    padding: 1rem;
    gap: 2rem;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    align-items: center;
}

.nav-link {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--primary);
}

header {
    text-align: center;
    padding: 8rem 1rem 6rem;
    background: var(--gradient);
    color: white;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

header h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: -1px;
}

header .subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.4rem;
    font-weight: 500;
    margin-top: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

section {
    max-width: 1000px;
    margin: 5rem auto;
    padding: 0 1.5rem;
    scroll-margin-top: 100px;
}

h2 {
    font-size: 2.2rem;
    color: var(--text-main);
    position: relative;
    display: inline-block;
    margin-bottom: 2.5rem;
}

h2::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 5px;
    bottom: -5px;
    left: 0;
    background: var(--gradient);
    border-radius: 5px;
}

.skills-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1.5rem;
}


#umiejetnosci {
    max-width: 1000px;
    margin: 5rem auto;
    padding: 0 1.5rem;
    background: none; 
    box-shadow: none;
    width: auto;
    position: static;
}

#umiejetnosci h2 {
    color: var(--text-main); 
    margin-bottom: 2.5rem;
    border: none;
}

#umiejetnosci h2::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 5px;
    bottom: -5px;
    left: 0;
    background: var(--gradient);
    border-radius: 5px;
}

#umiejetnosci ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

#umiejetnosci li {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0; 
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); 
    transition: transform 0.3s, border-color 0.3s;
}

#umiejetnosci li:hover {
    transform: translateY(-5px);
    border-color: var(--primary); 
}

#umiejetnosci li i {
    color: var(--primary); 
    font-size: 1.2em;
    margin-right: 5px;
}

.btn {
    display: inline-block;
    background: var(--gradient);
    color: white;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 1.5rem;
    box-shadow: 0 4px 15px rgba(15, 118, 110, 0.4);
    transition: transform 0.2s;
}

.btn:hover {
    transform: scale(1.05);
}

/* --- STOPKA --- */
footer {
    background-color: #0f172a;
    color: #94a3b8;
    margin-top: 6rem;
    padding-top: 1rem;
    border-top: 1px solid #1e293b;
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-section h3 {
    color: white;
    border-left: 3px solid var(--primary);
    padding-left: 15px;
    margin-bottom: 1.5rem;
}

footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

footer li {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    margin-bottom: 8px;
}

footer a {
    color: #cbd5e1 !important;
    text-decoration: none;
    transition: all 0.3s;
    display: block;
}

footer a:hover {
    color: var(--secondary) !important;
    transform: translateX(5px);
}

.btn-footer {
    display: inline-block;
    background: var(--gradient);
    color: white !important;
    padding: 10px 24px !important;
    border-radius: 50px;
    font-weight: bold;
    margin-top: 1rem;
    box-shadow: 0 4px 15px rgba(15, 118, 110, 0.4);
}

.footer-bottom {
    background-color: #020617;
    text-align: center;
    padding: 1.5rem;
    font-size: 0.85rem;
    border-top: 1px solid #1e293b;
}

@media (max-width: 768px) {
    header h1 { font-size: 2.5rem; }
    nav { gap: 1rem; flex-wrap: wrap; }
    header { clip-path: polygon(0 0, 100% 0, 100% 95%, 0 100%); }
}

.lang-switcher {
    display: flex; 
    gap: 8px; 
    align-items: center; 
    border: 1px solid #ccc; 
    padding: 5px 12px; 
    border-radius: 20px; 
}


.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background-color: var(--bg-card);
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}


.carousel-container {
    width: 100%;
    height: 220px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #e2e8f0;
}

.carousel-slide {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.8s ease-in-out; 
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain; 
    flex-shrink: 0; 
    transition: transform 0.5s;
    background-color: var(--bg-main); 
}

.project-card:hover .carousel-slide img {
    transform: scale(1.05);
}


.project-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1; 
}

.project-content h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    color: var(--text-main);
}

.project-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex-grow: 1; 
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 1.5rem;
}

.project-tags span {
    background: #e0f2fe;
    color: #0284c7;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: bold;
}

.card-actions {
    display: flex;
    gap: 10px;
}

.btn-card {
    display: inline-block;
    background: var(--gradient);
    color: white;
    padding: 8px 0;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    text-align: center;
    flex: 1; 
    transition: transform 0.2s, filter 0.2s;
}

.btn-card:hover {
    transform: scale(1.03);
    color: white;
}

.btn-card.secondary {
    background: #334155; 
}