/* ========================================
   POZDROO CSS - Uporządkowane style
   ======================================== */

/* ----------------------------------------
   ZMIENNE - ŁATWA PERSONALIZACJA
   ---------------------------------------- */
:root {
    /* Zegar - zmień tutaj kolor i czcionkę */
    --zegar-kolor: rgba(0, 0, 0, 0.418);
    --zegar-tlo: #1a1a1a3f;
    --zegar-czcionka: 'Courier New', monospace;
    --zegar-rozmiar: 2rem;
}

/* ----------------------------------------
   1. RESET I PODSTAWY
   ---------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: Arial, sans-serif;
    background: linear-gradient(to bottom, #F5FBE6, #215E61, #233D4D);
    background-attachment: fixed;
    background-size: 100% 100%;
    min-height: 100vh;
}

/* ----------------------------------------
   2. NAWIGACJA (NAVBAR)
   ---------------------------------------- */
.navbar {
    background-color: #154352c4;
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.navbar-container {
    display: flex;
    justify-content: space-between; /* logo lewa, reszta prawa */
    align-items: center;
    width: 100%;
}

.navbar-logo {
    color: #fff;
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    padding: 15px 0;
}

.navbar-logo:hover {
    color: #000000a4;
}

.navbar-menu {
    display: flex;
    flex-direction: column;
    list-style: none;
    gap: 5px;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background-color: #0f4c64;
    padding: 0;
    /* Animacja wysuwania */
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-20px);
    transition:
        max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.3s ease,
        transform 0.3s ease,
        padding 0.3s ease;
}

.navbar-menu.active {
    max-height: 500px;
    opacity: 1;
    transform: translateY(0);
    padding: 10px 0;
}

/* Animacja kaskadowa dla elementów menu */
.navbar-menu li {
    opacity: 0;
    transform: translateX(-30px);
    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}

.navbar-menu.active li {
    opacity: 1;
    transform: translateX(0);
}

/* Opóźnienia dla każdego elementu (efekt kaskadowy) */
.navbar-menu.active li:nth-child(1) { transition-delay: 0.1s; }
.navbar-menu.active li:nth-child(2) { transition-delay: 0.2s; }
.navbar-menu.active li:nth-child(3) { transition-delay: 0.3s; }
.navbar-menu.active li:nth-child(4) { transition-delay: 0.4s; }
.navbar-menu.active li:nth-child(5) { transition-delay: 0.5s; }
.navbar-menu.active li:nth-child(6) { transition-delay: 0.6s; }
.navbar-menu.active li:nth-child(7) { transition-delay: 0.7s; }
.navbar-menu.active li:nth-child(8) { transition-delay: 0.8s; }

.navbar-menu li a {
    display: block;
    color: #f2f2f2;
    text-align: center;
    padding: 15px 20px;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
    border-radius: 5px;
    position: relative;
    overflow: hidden;
}

/* Efekt podświetlenia przy hover */
.navbar-menu li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.5s ease;
}

.navbar-menu li a:hover::before {
    left: 100%;
}

.navbar-menu li a:hover {
    background-color: #0000004f;
    color: #fff;
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(0, 195, 255, 0.2);
}

.navbar-menu li a.active {
    background-color: #20687a;
    color: #0077ff;
}

/* Hamburger menu - zawsze widoczny */
.navbar-toggle {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
}

.navbar-toggle span {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 3px 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
    transform-origin: center;
}

/* Animacja hamburgera w X */
.navbar-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.navbar-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.navbar-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Responsive navbar */
@media (max-width: 768px) {
    .navbar-menu li a {
        padding: 15px 20px;
        border-radius: 0;
    }
}

/* ----------------------------------------
   3. PRZYCISKI
   ---------------------------------------- */
.przycisk-custom {
    background-color: #ffffff;
    color: rgb(0, 0, 0);
    padding: 15px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px 0 rgba(119, 119, 119, 0.5);
}

.przycisk-custom:hover {
    background-color: #6b6b6b;
    color: #fff;
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
    transform: scale(1.05);
}

.przycisk-custom:active {
    background-color: #3e8e41;
    box-shadow: 0 5px #666;
    transform: translateY(4px);
}

/* Rozmiary przycisków */
.button-sm { font-size: 10px; padding: 10px 15px; }
.button-md { font-size: 16px; padding: 15px 25px; }
.button-lg { font-size: 20px; padding: 20px 35px; }

/* ----------------------------------------
   4. LINKI
   ---------------------------------------- */
a {
    color: rgb(255, 0, 0);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: rgb(247, 0, 255);
}

/* ----------------------------------------
   5. LAYOUTY I KONTENERY
   ---------------------------------------- */
.kontener {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.kontener-left {
    justify-content: flex-start;
}

.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* ----------------------------------------
   6. ODSTEPY (UTILITY)
   ---------------------------------------- */
.odstep { margin-bottom: 40px; }
.odstep-sm { margin-bottom: 20px; }
.odstep-lg { margin-bottom: 80px; }
.spacer-100 { height: 100px; }
.spacer-50 { height: 50px; }

/* ----------------------------------------
   7. ZEGAR
   ---------------------------------------- */
#zegar,
#zegar-pelny {
    font-family: var(--zegar-czcionka);
    font-size: var(--zegar-rozmiar);
    background: var(--zegar-tlo);
    color: var(--zegar-kolor);
    padding: 1rem 2rem;
    border-radius: 8px;
    display: inline-block;
}

/* ----------------------------------------
   8. TYPOGRAFIA
   ---------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    color: #000;
    margin-bottom: 1rem;
}

.text-center { text-align: center; }
.text-white { color: #fff; }

/* ----------------------------------------
   9. FOOTER
   ---------------------------------------- */
.footer {
    background-color: #1a1a2e;
    color: #fff;
    text-align: center;
    padding: 20px;
    margin-top: auto;
}

.footer a {
    color: #000000;
}

.footer a:hover {
    color: #fff;
}
/*------------------------------------------
    10 moje napis witam strona glowna
    --------------------------------------*/
.witam {
  font-size: 4rem;
  font-weight: 300;
  color: #222;
  position: relative;
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 0.5em;
}

.witam::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  animation: underline-grow 1.5s ease forwards;
}

@keyframes underline-grow {
  to { width: 100%; }
}

/* 11. Wygląd text-boxa */

.glass-box {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 24px;
  color: white;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}



