html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #0f172a;
    color: white;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    padding-bottom: 5rem;
}

header {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(to bottom, #1e293b, #0f172a);
}

header h1 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: #38bdf8;
}

.main-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.main-nav a {
    text-decoration: none;
    color: #94a3b8;
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.main-nav a:hover {
    color: white;
    background: #38bdf8;
    border-color: #38bdf8;
    transform: translateY(-2px);
}

section {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #94a3b8;
    border-left: 4px solid #38bdf8;
    padding-left: 1rem;
}

/* Lokalizacja & Rozkład - Image Content */
.pdf-container {
    background: #1e293b;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
}

.content-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Zdjęcia - 13 Photos Premium Grid */
.zdjęcia-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    grid-auto-rows: 280px;
    gap: 1.5rem;
}

.zdjęcia-grid a {
    display: block;
    width: 100%;
    height: 100%;
}

.zdjęcia-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), filter 0.4s ease;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

.zdjęcia-grid a:hover img {
    transform: scale(1.02);
    filter: brightness(1.1);
}

/* Lightbox Styling */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    text-align: center;
}

.lightbox:target {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox img {
    max-width: 90%;
    max-height: 80%;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.lightbox .close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 50px;
    text-decoration: none;
    font-weight: 200;
    line-height: 1;
    transition: color 0.3s;
}

.lightbox .close:hover {
    color: #38bdf8;
}

.zdjęcia-grid .span-2 {
    grid-column: span 2;
}

.zdjęcia-grid .row-2 {
    grid-row: span 2;
}

/* Kontakt Section */
.kontakt-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.kontakt-card {
    background: #1e293b;
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.kontakt-card:hover {
    transform: translateY(-5px);
    border-color: #38bdf8;
    box-shadow: 0 10px 30px -10px rgba(56, 189, 248, 0.2);
}

.kontakt-card h3 {
    color: #38bdf8;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.kontakt-card p {
    color: #94a3b8;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.kontakt-btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: rgba(56, 189, 248, 0.1);
    color: #38bdf8;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    border: 1px solid #38bdf8;
    cursor: pointer;
    font: inherit;
    width: 200px;
    /* Fixed width for consistency */
    transition: all 0.3s ease;
}

.kontakt-btn:hover {
    background: #38bdf8;
    color: white;
}

.kontakt-btn.copied {
    background: #10b981;
    border-color: #10b981;
    color: white;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .rozkład-grid {
        grid-template-columns: 1fr;
    }

    .zdjęcia-grid .span-2 {
        grid-column: span 1;
    }

    .kontakt-container {
        grid-template-columns: 1fr;
    }
}