* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #0f172a;
    color: #f1f5f9;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1000px;
    margin: auto;
    padding: 60px 0;
}

header {
    text-align: center;
    padding: 100px 0;
    background: linear-gradient(135deg, #1e293b, #0f172a);
}

header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

header p {
    font-size: 1.2rem;
    color: #94a3b8;
}

.btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 25px;
    background: #3b82f6;
    color: white;
    text-decoration: none;
    border-radius: 6px;
}

section h2 {
    margin-bottom: 20px;
    border-left: 4px solid #3b82f6;
    padding-left: 10px;
}

.skills ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.skills li {
    background: #1e293b;
    padding: 8px 15px;
    border-radius: 5px;
}

.project-card {
    background: #1e293b;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
}

.project-card h3 {
    margin-bottom: 10px;
}

.contact a {
    color: #3b82f6;
}

footer {
    text-align: center;
    padding: 30px 0;
    background: #0b1220;
    font-size: 0.9rem;
}

/* Animacje */

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hover subtle glow */
.project-card:hover {
    transform: translateY(-5px);
    transition: 0.3s ease;
    box-shadow: 0 0 20px rgba(59,130,246,0.3);
}

.poem {
    margin-top: 30px;
}

.poem-line {
    opacity: 0;
    transform: translateY(10px);
    animation: fadeUp 0.8s ease forwards;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.navbar {
    background: #111318;
    border-bottom: 1px solid #1f2937;
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: bold;
    font-size: 18px;
    text-decoration: none;
    color: #e5e7eb;
}

.nav-links a {
    margin-left: 20px;
    text-decoration: none;
    color: #9ca3af;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: #ffffff;
}

.nav-links a.active {
    color: #ffffff;
    border-bottom: 2px solid #3b82f6;
}

.nav-links a.active {
    color: #ffffff;
    border-bottom: 2px solid #3b82f6;
}

.navbar {
    background: #111318;
    border-bottom: 1px solid #1f2937;
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-item {
    margin-left: 20px;
    text-decoration: none;
    color: #9ca3af;
    transition: 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-item:hover {
    color: #ffffff;
}

.nav-item.active {
    color: #ffffff;
    border-bottom: 2px solid #3b82f6;
}

.icon {
    font-size: 14px;
}

/* Hamburger */

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #e5e7eb;
    margin: 4px 0;
}

/* MOBILE */

@media (max-width: 768px) {

    .nav-links {
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: #111318;
        flex-direction: column;
        align-items: center;
        display: none;
        padding: 20px 0;
        border-top: 1px solid #1f2937;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-item {
        margin: 12px 0;
    }

    .hamburger {
        display: flex;
    }
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: bold;
    font-size: 18px;
    text-decoration: none;
    color: #e5e7eb;
}

.logo-mark {
    background: #3b82f6;
    color: white;
    font-size: 14px;
    padding: 4px 8px;
    border-radius: 6px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #e5e7eb;
    margin: 4px 0;
    transition: 0.3s ease;
}

/* ANIMACJA W X */

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.container img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.container img:hover {
    transform: scale(1.01);
    transition: 0.3s ease;
}

.hero {
    padding: 120px 20px 80px;
    text-align: center;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
    color: #9ca3af;
    max-width: 700px;
    margin: 0 auto 30px;
}

.hero-buttons {
    margin-top: 30px;
}

.btn-primary {
    background: #3b82f6;
    color: white;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    margin: 0 10px;
}

.btn-secondary {
    border: 1px solid #3b82f6;
    color: #3b82f6;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    margin: 0 10px;
}

.home-latest {
    padding: 60px 20px;
    max-width: 900px;
    margin: 0 auto;
}

.latest-item {
    margin-bottom: 30px;
}

.post-date {
    color: #6b7280;
    font-size: 14px;
}

.home-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 60px 20px;
    flex-wrap: wrap;
}

.home-card {
    background: #111318;
    padding: 20px 40px;
    border-radius: 10px;
    text-decoration: none;
    color: #e5e7eb;
    transition: 0.3s ease;
}

.home-card:hover {
    background: #1f2937;
}

.home-header {
    padding: 120px 20px 80px;
    text-align: center;
}

.home-header h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.home-header p {
    font-size: 20px;
    color: #9ca3af;
}

.home-latest {
    padding: 80px 20px;
}

.latest-item {
    margin-bottom: 30px;
}

.post-excerpt {
    color: #9ca3af;
    margin-top: 8px
}
  
pre {
    background: #0f172a;
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
}
     
code {
    font-family: monospace;
    font-size: 14px;
}
     
pre code {
    color: #e5e7eb;
    line-height: 1.5;
}

.codehilite {
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
}

.codehiltie table {
    width: 100%;
}

.codehilite td.code {
    white-space: pre;
}

.codehilite pre {
    padding: 16px;
}

.copy-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #3b82f6;
    color: white;
    border: none;
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0.8;
}

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



.code-wrapper {
    margin: 20px 0;
    border: 1px solid #30363d;
    border-radius: 8px;
    overflow: hidden;
    background: #0d1117;
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #161b22;
    padding: 8px 14px;
    font-size: 13px;
    color: #c9d1d9;
    border-bottom: 1px solid #30363d;
}
     
.code-lang {
    background: #21262d;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 12px;
    color: #8b949e;
}
     
.codehilite {
    margin: 0;
    transition: max-height 0.3s ease;
}
     
.codehilite pre {
    margin: 0;
    padding: 16px;
    background: #0d1117;
    transition: height 0.35s ease;
}
   
.codehilite code {
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 14px;
}

.collapse-btn {
    background: transparent;
    border: 1px solid #30363d;
    color: #8b949e;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
}
     
.collapse-btn:hover {
    background: #21262d;
}
/*     
.codehilite {
    overflow: hidden;
}

.codehilite pre {
    transition: height 0.35s ease;
}
*/

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin: 20px 0;
    border-radius: 8px;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.post-type {
    display: inline-block;
    margin-top: 6px;
    padding: 2px 8px;
    font-size: 12px;
    border-radius: 6px;
    background: #21262d;
    color: #8b949e;
}

.code-wrapper.collapsed .codehilite {
    max-height: 0;
    overflow: hidden;
}

.filters {
    margin: 30px 0;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;    
}
    
.filters a {
    padding: 6px 12px;
    border: 1px solid #30363d;
    border-radius: 6px;
    text-decoration: none;
    color: #8b949e;
    font-size: 14px;
    display: inline-block;
    align-items: center;
    flex: 0 0 auto;
    width: auto !important;
    font-weight: 500;
}

.filters a:hover {
    background: #21262d;
    color: #c9d1d9;
}

.filters a.active-filter {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}
