/* Reset i podstawy */
html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;

    /* Tło obrazkowe pod całością */
    background: url('https://wp.itelade.pl/bg.jpg') no-repeat center center fixed;
    background-size: cover;

    min-height: 100vh;
    margin: 0;
}

/* Header */
header {
    background: linear-gradient(to right, #0d1b2a, #1b263b);
    color: white;
    padding: 1.5rem 1rem;
    text-align: center;
    animation: slideDown 1s ease-out;
}

header h1 {
    margin: 0;
    font-size: 2rem;
    letter-spacing: 2px;
}

header p {
    margin-top: 0.5rem;
    font-size: 1rem;
}

/* Kontener centralny */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 1rem;
}

/* Sekcje */
section {
    background: white;
    margin: 2rem 1rem;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

section:hover {
    transform: translateY(-5px);
}

/* Nagłówki sekcji */
h2 {
    margin-top: 0;
    color: #0d1b2a;
    text-align: center;
    font-size: 2rem;
}

/* Lista usług */
.services ul {
    list-style: none;
    padding: 0;
}

.services li {
    padding: 0.7rem 0;
    border-bottom: 1px solid #eee;
    font-size: 1.1rem;
}

.services li:last-child {
    border-bottom: none;
}

/* Kontakt */
.contact p {
    font-size: 1.1rem;
    text-align: center;
}

.contact a {
    color: #0077b6;
    text-decoration: none;
    transition: color 0.3s;
}

.contact a:hover {
    color: #023e8a;
    text-decoration: underline;
}

/* Footer */
footer {
    background: #0d1b2a;
    color: white;
    text-align: center;
    padding: 1rem;
    font-size: 0.9rem;
}

/* Animacje */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards;
}

.fade-in:nth-child(2) {
    animation-delay: 0.3s;
}

.fade-in:nth-child(3) {
    animation-delay: 0.6s;
}

.fade-in:nth-child(4) {
    animation-delay: 0.9s;
}

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

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

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

/* Logo */
.logo {
    max-width: 120px;
    margin-bottom: 1rem;
}

/* Popup */
.popup {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
    animation: fadeInPopup 0.5s ease;
}

.popup-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 2rem;
    border: 1px solid #888;
    width: 90%;
    max-width: 500px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    animation: slideDown 0.4s ease-out;
}

.popup-content h2 {
    color: #0d1b2a;
    margin-bottom: 1rem;
}

.popup-content p {
    font-size: 1.1rem;
    color: #333;
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
    color: black;
}

@keyframes fadeInPopup {
    from { opacity: 0; }
    to { opacity: 1; }
}
