/* --- Styl ogólny --- */
body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    color: #333;
    background-color: #f4f4f4;
}

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
}

/* --- Nagłówek i Nawigacja --- */
header {
    background-color: #fff;
    padding: 1rem 2rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav .logo {
    font-size: 1.5rem;
    font-weight: 700;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.5rem;
}

nav a {
    text-decoration: none;
    color: #333;
    font-weight: 700;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #007BFF;
}

/* --- Sekcja Hero --- */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://via.placeholder.com/1920x600') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 6rem 1rem;
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-text p {
    font-size: 1.2rem;
}

/* --- Główna treść --- */
main {
    padding: 2rem;
    max-width: 1200px;
    margin: auto;
}

section {
    margin-bottom: 4rem;
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #007BFF;
    margin: 0.5rem auto 0;
}

/* --- Sekcja Portfolio --- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.portfolio-item img {
    width: 100%;
    display: block;
}

.portfolio-item h3 {
    font-size: 1.5rem;
    margin: 1rem 1.5rem;
}

.portfolio-item p {
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 1.5rem 1.5rem;
}

.btn {
    display: inline-block;
    background-color: #007BFF;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    margin: 0 1.5rem 1.5rem;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #0056b3;
}

/* --- Sekcja O mnie --- */
.about-section {
    background: #fff;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-align: center;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

/* --- Stopka --- */
footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 2rem;
}

footer a {
    color: #007BFF;
    text-decoration: none;
}

/* --- Responsywność --- */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }
}