body {

    background: url("assets/background.webp") no-repeat center center fixed;
    background-size: cover;
    background-color: #0d0d0d;
}


body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: #e6e6e6;
}

header {
    padding: 120px 20px;
    text-align: center;
    background: linear-gradient(135deg, #0d0d0d, #1a1a1a);
}

h1 {
    font-size: 48px;
    margin-bottom: 10px;
}

h2 {
    font-size: 22px;
    font-weight: 300;
    color: #ffffff;
}

.btn {
    display: inline-block;
    margin-top: 30px;
    padding: 12px 28px;
    background: #0078ff;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 18px;
}

section {
    padding: 60px 20px;
    max-width: 900px;
    margin: auto;
}

h3 {
    font-size: 28px;
    margin-bottom: 20px;
}

p {
    line-height: 1.6;
    color: #e6e6e6;
}
body {
    color: #e6e6e6;
}

p {
    color: #e6e6e6;
}

h1, h2, h3 {
    color: #ffffff;
}

body, p, h1, h2, h3 {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.75);
}
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.55); /* 0.55 = stopień przyciemnienia */
    z-index: -1;
}
header h2 i {
    margin-right: 8px;
    color: #e6e6e6;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.75);
}
header h2 i {
    font-size: 22px;
}
/* Pasek za nagłówkiem */
.hero {
    position: relative;
    padding: 10px 20px;
    text-align: center;
    color: #fff;
    z-index: 1;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.55); /* półprzezroczysty pasek */
    backdrop-filter: blur(2px);   /* delikatny blur */
    z-index: -1;
    border-radius: 0 0 10px 10px;
}

/* Ikony */
.hero-sub .icons {
    margin-right: 10px;
}

.hero-sub i {
    margin: 0 6px;
    font-size: 22px;
    color: #e6e6e6;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.75);
}

/* Animacja wejścia */
.hero h1, .hero h2, .hero .btn {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1s ease forwards;
}

.hero h1 {
    animation-delay: 0.1s;
}

.hero h2 {
    animation-delay: 0.3s;
}

.hero .btn {
    animation-delay: 0.5s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Domyślny nagłówek — przezroczysty */
.hero {
    position: sticky;
    top: 0;
    padding: 120px 20px;
    text-align: center;
    z-index: 10;
    transition: background 0.4s ease, backdrop-filter 0.4s ease;
}

/* Podświetlenie po scrollu */
.hero.scrolled {
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(4px);
}
.hero {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 120px 20px;
    text-align: center;
    z-index: 10;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Gdy przewijamy — nagłówek znika */
.hero.hidden {
    opacity: 0;
    transform: translateY(-40px);
    pointer-events: none;
}
.hero h1 {
    opacity: 0.75; /* 0.5 = bardziej przezroczysty, 1 = pełny */
    transition: opacity 0.3s ease;
}

.hero h2 {
    opacity: 0.75;
    transition: opacity 0.3s ease;
}

.hero:hover h1,
.hero:hover h2 {
    opacity: 1; /* po najechaniu wraca pełna widoczność */
}
section {
    margin-top: 40px; /* możesz zmienić na 150, 250, 300 */
}
.hero {
    position: relative;
    padding: 140px 20px;
    text-align: center;
    z-index: 1;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 180px;
    background: url("assets/server.jpg") center/cover no-repeat;
    opacity: 0.25; /* regulujesz przezroczystość */
    z-index: -2;
}
section.fade-in {
    padding-top: 20px;
}
.top-nav {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 50;
}

.top-nav ul {
    list-style: none;
    display: flex;
    gap: 15px;
    margin: 0;
    padding: 0;
}

.nav-btn {
    padding: 8px 16px;
    background: #007bff;
    border-radius: 6px;
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.2s ease; 
    display: inline-block;
    transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
    backdrop-filter: blur(3px);
}

.nav-btn:hover {
    background: #3399ff;
    transform: translateY(-2px);
}
.hero-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}
.top-nav ul {
    list-style: none;
    display: flex;
    gap: 15px;
    margin: 0;
    padding: 0;
}
.contact-btn {
    padding: 10px 18px;
    background: #007bff;
    border-radius: 6px;
    color: #ffffff;
    front-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.2s ease;
}

.contact-btn:hover {
    background: #3399ff;
    transform: translateY(-2px);
}
/* ============================
   POPRAWIONY NAGŁÓWEK
============================ */

.hero {
    position: relative;
    padding: 80px 20px 60px;
    text-align: center;
    z-index: 10;
    overflow: hidden;
}

/* Tło serwerowe */
.hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 180px;
    background: url("assets/server.jpg") center/cover no-repeat;
    opacity: 0.25;
    z-index: -1;
}

/* Pasek przyciemnienia */
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(2px);
    z-index: -1;
}

/* ============================
   MENU + PRZYCISK W JEDNEJ LINII
============================ */

.hero-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

/* Usuwamy absolutne pozycjonowanie */
.top-nav {
    position: static !important;
}

/* Lista menu */
.top-nav ul {
    list-style: none;
    display: flex;
    gap: 15px;
    margin: 0;
    padding: 0;
}

/* Kafelki menu */
.nav-btn {
    padding: 10px 18px;
    background: #007bff;
    border-radius: 6px;
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.2s ease;
}

.nav-btn:hover {
    background: #3399ff;
    transform: translateY(-2px);
}

/* Przycisk kontaktowy */
.contact-btn {
    padding: 10px 18px;
    background: #007bff;
    border-radius: 6px;
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.2s ease;
}

.contact-btn:hover {
    background: #3399ff;
    transform: translateY(-2px);
}
.nav-btn,
.contact-btn {
    padding: 10px 20px;
    background: #007bff;
    border-radius: 6px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;   /* klucz! wyrównuje pionowo */
    justify-content: center;
    height: 42px;          /* identyczna wysokość */
    transition: background 0.3s ease, transform 0.2s ease;
}

.nav-btn:hover,
.contact-btn:hover {
    background: #3399ff;
    transform: translateY(-2px);
}
