/* --- Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    height: 100%;
    font-family: 'Montserrat', sans-serif;
    overflow: hidden;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

/* Slider tła */
#hero-slider {
    position: absolute;
    width: 120%;
    height: 120%;
    top: -10%;
    left: -10%;
    background-size: cover;
    background-position: center;
    z-index: 1;            /* slider w tle */
    pointer-events: none;   /* ignoruje kliknięcia */
    filter: brightness(1);
    transition: transform 12s linear, background-image 1.5s ease-in-out;
}

/* Gradient diagonalny + grain overlay */
#hero-slider::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    filter: brightness(0.5) saturate(10);
    background: linear-gradient(135deg, rgba(255,216,0,0.2), rgba(0,12,256,0.3));
    pointer-events: none;
    z-index: 2;
}

#hero-slider::after {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: url('images/grain.png');
    opacity: 0.12;
    pointer-events: none;
    z-index: 3;
}

/* Floating Glass Panel */
#hero-panel {
    position: absolute;
    z-index: 4; /* panel nad sliderem */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -36%);
    background: rgba(204, 0, 255, 0.0); /* calkowita przezroczystosc */
    backdrop-filter: blur(0px);
    border-radius: 16px;
    padding: 50px 40px;
    text-align: center;
    animation: fadeIn 2s ease forwards;
}

/* Tytuły */
#hero-panel h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
    opacity: 0;
    animation: textFadeIn 1.5s forwards 0.5s;
}

#hero-panel h2 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 30px;
    opacity: 0;
    animation: textFadeIn 1.5s forwards 1s;
}

/* Przycisk */
#cta-buttons button {
    font-size: 1rem;
    color: #fff;
    background: transparent;
    border: 2px solid #fff;
    padding: 12px 30px;
    margin: 0 10px;
    border-radius: 8px;
    cursor: pointer;
    z-index: 5; /* przyciski nad sliderem */
    transition: all 0.5s ease;
}

#cta-buttons button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

#kontakt {
    display: flex;
    flex-direction: column;
    align-items: flex-center;  
    gap: 8px;
    color: #000000;
    font-size: 1.4rem;   /* <- tutaj jest wielkość liter */
}


/* Nowe tło dla kontaktu */
#kontakt.show {
    background-image: url('images/kontakt-tlo.jpg'); /* nowe zdjęcie */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
                /* jeśli tło ciemniejsze */
}

#kontakt .close-hint-text {
    position: absolute;
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1rem;
    color: #fff;
    opacity: 0.8;
    text-align: center;
    pointer-events: none; /* tylko wskazówka */
    z-index: 6;
}

/* Nowe tło dla kontaktu */
#oferta.show {
    background-image: url('images/kontakt-tlo.jpg'); /* nowe zdjęcie */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
                /* jeśli tło ciemniejsze */
}



#oferta {
    display: flex;
    flex-direction: column;
    align-items: flex-center;  /* wyrównanie do lewej */
    gap: 8px;
    color: #000000;
    font-size: 1.2rem;   /* <- tutaj jest wielkość liter */
}

#oferta .close-hint-text {
    position: absolute;
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1rem;
    color: #fff;
    opacity: 0.8;
    text-align: center;
    pointer-events: none; /* tylko wskazówka */
    z-index: 6;
}




#logo {
    position: absolute;
    top: 19%;              /* zamiast 100px – logo zawsze 5% od góry ekranu */
    left: 50%;            /* środek ekranu */
    transform: translateX(-50%); /* przesunięcie środka logo do środka ekranu */
    z-index: 5;          /* nad sliderem */
    width: 90px;        /* szerokość logo */
    height: auto;
}


#slider-dots {
    position: absolute;
    bottom: 70px;      /* 70px od dołu hero */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;          /* odstęp między kropkami */
    z-index: 5;
}

#slider-dots .dot {
    width: 10px;
    height: 10px;
    background-color: rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

#slider-dots .dot.active {
    background-color: rgba(255,255,255,1); /* aktualna kropka */
}


@keyframes bounce {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.5); }
    100% { transform: scale(1); }
}

#slider-dots .dot.active {
    background-color: rgba(255,255,255,1);
    animation: bounce 0.3s ease;
}


/* Strzałki */
.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;       /* okrągły przycisk */
    height: 60px;      /* równa szerokości */
    font-size: 2rem;
    padding: 0;
    border-radius: 50%;
    background: rgba(0,0,0,0.3);
    color: white;
    border: none;
    cursor: pointer;
    z-index: 5;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.3s ease;
}

.arrow:hover {
    background: rgba(0,0,0,0.6);
}

.arrow.left { left: 20px; }
.arrow.right { right: 20px; }

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(199,174,203,0.98), rgba(174,195,203,0.98));
    color: #000000;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px;
    z-index: 6;
    overflow-y: auto;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.modal ul, .modal p {
    margin-bottom: 1rem;
}

#kontakt p {
    margin: 0.5rem 0; /* każda linia osobno */
}

.modal.show {
    opacity: 1;
    pointer-events: auto;
}

/* Animacje */
@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

@keyframes textFadeIn {
    from {opacity: 0; transform: translateY(20px);}
    to {opacity: 1; transform: translateY(0);}
}

/* Responsywność */
@media (max-width: 768px) {
   

   #hero-panel {
        padding: 20px 15px;   /* mniej miejsca dookoła */
    }
    #hero-panel h1 {
        font-size: 2rem;      /* zmniejszone z 3rem */
    }
    #hero-panel h2 {
        font-size: 1.2rem;    /* zmniejszone z 1.5rem */
    }
    #cta-buttons button {
        margin: 8px 5px;
        padding: 8px 15px;
        font-size: 0.9rem;    /* mniejsze przyciski */
    }
}

/* Telefon – przesunięcie tytułu i gwiazdek do góry */
@media (max-width: 768px) {
    #hero-panel {
        transform: translate(-50%, -78%);
    }
}


@media (max-width: 768px) {
    #logo {
        width: 80px;   /* mniejsze logo na telefonach */
        top: 7%;       /* trochę bliżej góry, żeby nie przesłaniało panelu */
    }
}

@media (max-width: 768px) {
    .arrow {
        top: 49%;  /* przesunięcie w dół, aby nie nachodziły na napis */
        transform: translateY(-50%);
    }
}


@media (max-width: 768px) {
    #oferta p {
        padding-top: clamp(12px, 4vw, 20px);
        font-size: clamp(0.85rem, 3.5vw, 0.95rem);
        line-height: 1.4;
    }
}
@media (max-width: 768px) {
    #oferta .close-hint-text,
    #kontakt .close-hint-text {
        font-size: clamp(0.8rem, 3vw, 0.9rem);
        opacity: 0.75;
    }
}
