*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #1f2933 0, #050816 55%, #030712 100%);
    color: #e5e7eb;
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}
img {
    max-width: 100%;
    display: block;
}
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.lang-en {
    display: none;
}
html[data-lang="en"] .lang-pl {
    display: none;
}
html[data-lang="en"] .lang-en {
    display: inline;
}
.top-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    background: rgba(3, 7, 18, 0.9);
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}
.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}
.nav-logo {
    font-weight: 700;
    font-size: 1.1rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(96, 165, 250, 0.8);
    color: #f9fafb;
}
.nav-links {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.9rem;
}
.nav-links a {
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    color: #cbd5f5;
    transition: background 0.15s ease, color 0.15s ease;
}
.nav-links a:hover {
    background: rgba(59, 130, 246, 0.15);
    color: #f9fafb;
}
.lang-switch {
    display: flex;
    gap: 0.4rem;
}
.lang-btn {
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    background: #020617;
    color: #e5e7eb;
    padding: 0.2rem 0.75rem;
    font-size: 0.75rem;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.lang-btn-active {
    background: #2563eb;
    border-color: #2563eb;
    color: #f9fafb;
}
.hero {
    padding: 3rem 0 2.5rem;
}
.hero-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2.5rem;
}
.hero-text {
    flex: 1.4;
}
.hero-profile {
    flex: 0.8;
    display: flex;
    justify-content: center;
}
.tagline {
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #93c5fd;
    margin-bottom: 0.8rem;
}
h1 {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: #f9fafb;
}
.hero-subtitle {
    max-width: 34rem;
    font-size: 0.98rem;
    color: #cbd5f5;
    margin-bottom: 1.25rem;
}
.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    color: #9ca3af;
}
.hero-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}
.btn {
    border-radius: 999px;
    padding: 0.5rem 1.1rem;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 1px solid transparent;
    cursor: pointer;
}
.btn.primary {
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
    color: #f9fafb;
}
.btn.ghost {
    background: transparent;
    border-color: rgba(148, 163, 184, 0.6);
    color: #e5e7eb;
}
.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.6);
    transition: all 0.15s ease;
}
.tech-icons {
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
    font-size: 0.82rem;
    color: #9ca3af;
}
.hero-avatar {
    width: 190px;
    height: 190px;
    border-radius: 999px;
    overflow: hidden;
    border: 3px solid rgba(96, 165, 250, 0.9);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.8);
}
.hero-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
section {
    padding: 2.25rem 0;
}
#contact {
    margin-top: 1rem;
}
h2 {
    font-size: 1.5rem;
    margin-bottom: 1.1rem;
    color: #f9fafb;
}
section p {
    color: #cbd5f5;
    font-size: 0.95rem;
}
section p + p {
    margin-top: 1rem;
}
.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.2rem;
}
.experience-item {
    background: rgba(15, 23, 42, 0.9);
    border-radius: 1rem;
    padding: 1.2rem 1.3rem;
    border: 1px solid rgba(30, 64, 175, 0.7);
}
.experience-item h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #e5e7eb;
}
.skills-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 0.9rem;
    font-size: 0.95rem;
}
.skills-list li {
    background: rgba(15, 23, 42, 0.9);
    border-radius: 0.9rem;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(30, 64, 175, 0.6);
}
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.2rem;
}
.projects-link {
    margin-top: 1.2rem;
}
.project-card {
    background: rgba(15, 23, 42, 0.9);
    border-radius: 1rem;
    padding: 1.2rem 1.3rem;
    border: 1px solid rgba(55, 65, 81, 0.7);
}
.project-card h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #e5e7eb;
}
.timeline {
    position: relative;
    margin-top: 0.5rem;
    padding-left: 1.2rem;
}
.timeline::before {
    content: "";
    position: absolute;
    left: 0.45rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #2563eb, transparent);
}
.timeline-item {
    position: relative;
    padding-left: 1.3rem;
    margin-bottom: 1.1rem;
}
.timeline-dot {
    position: absolute;
    left: -0.05rem;
    top: 0.25rem;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.35);
}
.timeline-date {
    font-size: 0.8rem;
    color: #9ca3af;
}
.timeline-title {
    font-size: 0.98rem;
    margin: 0.15rem 0 0.25rem;
}
.stack-section {
    background: radial-gradient(circle at top, rgba(30, 64, 175, 0.3), rgba(15, 23, 42, 0.95));
}
.stack-desc {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    color: #cbd5f5;
}
.stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}
.stack-item {
    background: rgba(15, 23, 42, 0.9);
    border-radius: 0.9rem;
    padding: 0.9rem 0.9rem 0.95rem;
    border: 1px solid rgba(59, 130, 246, 0.5);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.9rem;
}
.stack-item img {
    width: 26px;
    height: 26px;
    margin-bottom: 0.3rem;
}
#homelab ul {
    margin-top: 0.8rem;
    padding-left: 1.1rem;
}
#homelab li {
    margin-bottom: 0.25rem;
}
.contact-list {
    list-style: none;
    margin-top: 0.7rem;
}
.contact-list li {
    margin-bottom: 0.25rem;
}
.footer {
    border-top: 1px solid rgba(31, 41, 55, 0.9);
    padding: 1.5rem 0 2rem;
    background: rgba(3, 7, 18, 0.95);
    margin-top: 1.5rem;
    color: #9ca3af;
    font-size: 0.85rem;
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.footer-links a {
    margin-left: 0.8rem;
    color: #9ca3af;
    font-size: 0.85rem;
}
.footer-links a:hover {
    color: #e5e7eb;
}
.footer-sub {
    font-size: 0.8rem;
    color: #6b7280;
}
@media (max-width: 860px) {
    .hero-inner {
        flex-direction: column-reverse;
        align-items: flex-start;
    }
    .nav-container {
        flex-wrap: wrap;
    }
    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}
