@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    font-family: 'Poppins', sans-serif;
}

html{
    font-size: 62.5%;
}

body{
    width: 100%;
    overflow-x: clip;
    color: white;
    padding-top: 100px;
    background: radial-gradient(circle at 50% 20%, #1e2330, #080a0f 60%);
}

main {
    
}

.hero {
            width: 100%;               /* nie 100vw, żeby nie było poziomego scrolla */
            height: 100vh;             /* zawsze równo wysokości okna przeglądarki */
            background-image: url('img/main.png');
            background-repeat: no-repeat;
            background-size: 100% 100%;
            background-position: center;
            background-attachment: fixed; /* opcjonalnie: tło “zostaje” przy scroll’u */
            
            /* centrowanie zawartości */
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            
            position: relative;
            overflow: hidden;
            color: white;
          }

          .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Zmniejsz, jeśli za ciemne */
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
}

.hero h1 {
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    padding: 1rem 9%;
    background: rgba(0, 0, 0, 0.5); /* Zmniejsz, jeśli za ciemne */
    filter: drop-shadow(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.logo{
    font-size: 3rem;
    color: #b74b4b;
    font-weight: 800;
    cursor: pointer;
    transition: 0.5s ease;
}
.logo img {
            height: 50px;
            /* ZMIANA HEADERA PO SCROLLOWANIU (opcjonalne) */
        .scrolled {
        background: rgba(0, 0, 0, 0.8); /* Ciemne, półprzezroczyste */
        backdrop-filter: blur(10px); /* Efekt szkła */
        }
        }

.logo:hover{
    transform: scale(1.1);
}

/*HEADER*/
nav a{
    font-size: 1.8rem;
    color: white;
    margin-left: 4rem;
    font-weight: 500;
    transition: 0.3s ease;
    border-bottom: 3px solid transparent;
}

nav a:hover,
nav a.active{
    color: lightblue;
    border-bottom: 3px solid lightblue;
}

@media(max-width:995px){
    nav{
        position: absolute;
        display: none;
        top: 0;
        right: 0;
        width: 40%;
        border-left: 3px solid lightblue;
        border-bottom: 3px solid lightblue;
        border-bottom-left-radius: 2rem;
        padding: 1rem solid;
        background-color: #161616;
        border-top: 0.1rem solid rgba(0,0,0,0.1);
    }

    nav.active{
        display: block;
    }

    nav a{
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
    }

    nav a:hover,
    nav a.active{
        padding: 1rem;
        border-radius: 0.5rem;
        border-bottom: 0.5rem solid #b74b4b;
    }
}
/* Ukrycie hamburgera na dużych ekranach */
.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 2.4rem;
    color: white;
}

/* Panel menu w wersji mobilnej */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -250px; /* schowane poza ekranem */
    width: 250px;
    height: 100vh;
    background: rgba(20, 20, 40, 0.98);
    display: flex;
    flex-direction: column;
    padding-top: 6rem;
    padding-left: 2rem;
    gap: 2rem;
    transition: right 0.3s ease;
    z-index: 1000;
}

.mobile-menu.open {
    right: 0;
}

/* Linki w panelu mobilnym */
.mobile-menu a {
    font-size: 1.8rem;
    margin: 0;
}

/* Przyciemnienie tła */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,.5);
    display: none;
    z-index: 900;
}

.menu-overlay.show {
    display: block;
}

/* Mobilny widok */
@media (max-width: 900px) {

    nav { display: none; } /* ukryj zwykłe menu */

    .menu-toggle {
        display: block; 
        position: absolute;
        right: 2rem;
        font-size: 3rem;
        color: white;
        z-index: 1100;
    }

    .hamburger { display: block; }
    .close { display: none; }
}

/*///////////////////////////////////////////////////////////////////////*/
section{
    padding: 15rem 5% 5rem;
    width: 100%;
}

.number-img {
    max-width: 80px;  /* or use 50% if you prefer relative sizing */
  height: auto;
  display: block;
}

/*Stylizacja dla kolumn i wierszy*/
.about__column {
  display: flex;
  flex-direction: column;
  align-items: center;      /* vertically center text next to image */
  justify-content: center;  /* center the whole row in the container */
  gap: 2rem;                /* space between image and text */
  margin-bottom: 2rem;
}
.about__row {
  display: flex;
  align-items: center;      /* vertically center text next to image */
  justify-content: center;  /* center the whole row in the container */
  gap: 2rem;                /* space between image and text */
  margin-bottom: 2rem;
}
.about__text {
  display: flex;
  flex-direction: column;   /* h2 nad p */
  max-width: 800px;
  font-size: 2rem;
  text-align: center;
}
  .about__benefits {
    list-style: disc inside;
    margin: 1rem 0 2rem;
    line-height: 1.6;
    font-size:large;
  }
/*//////////////////////////////////////////////////////////////////////////////*/

  /* --- Formularz propozycji --- */
  .services__proposal {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
  }
  .proposal__title {
    font-size: 1.75rem;
    margin-bottom: 1rem;
  }
  .services__form {
    display: grid;
    gap: 1rem;
    text-align: left;
  }
  .form-group {
    display: flex;
    flex-direction: column;
  }
  .form-group label {
    margin-bottom: 0.5rem;
    font-weight: 500;
  }
  .form-control {
    padding: 0.75rem 1rem;
    border: 1px solid #ccc;
    border-radius: 0.5rem;
    font-size: 1rem;
  }

/*karuzela IMG*/
.carousel{
    position: relative;
    max-width: 800px;
    margin: 40px auto;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,.3);
}

.carousel-track{
    display: flex;
    transition: transform .4s ease;
}

.slide{
    min-width: 100%;
}

.slide img{
    width: 100%;
    height: auto;
    display: block;
}

/* Strzałki */
.carousel-btn{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: rgba(0,0,0,.4);
    padding: 10px 14px;
    cursor: pointer;
    font-size: 24px;
    color: #fff;
    border-radius: 50%;
    z-index: 2;
}

.carousel-btn:hover{
    background: rgba(0,0,0,.7);
}

.carousel-btn.prev{ left: 10px; }
.carousel-btn.next{ right: 10px; }

/* Kropeczki */
.carousel-dots{
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.dot{
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,.6);
    cursor: pointer;
    transition: transform .2s, background .2s;
}

.dot.active{
    background: #fff;
    transform: scale(1.2);
}

/* Na telefonach – mniejszy cień, pełna szerokość */
@media (max-width: 600px){
    .carousel{
        max-width: 100%;
        border-radius: 0;
    }
}
/*////////////////////////////////////////////////////////////////////////////////////*/

.naglowek{
    font-size: 6rem;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
}

.content{
    justify-content: center;
    align-items: center;
    gap: 8rem;
}

.home{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8rem;
}

.home .home-content h1{
    font-size: 6rem;
    font-weight: 700;
    line-height: 1.3;
}

span{
    color: lightblue;
}

.home-content h3{
    font-size: 4rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.home-content p{
    font-size: 1.6rem;
}

.home-img {
    position: relative;
    width: 40vw;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* domyślnie pierwszy na lewo */
    gap: 20px; /* odstęp między obrazkami */
}

/* Wspólne style obrazków */
.home-img img {
    width: 100%;
    box-shadow: 0 0 25px #b74b4b;
    transition: 0.2s linear;
}

/* Górny obrazek – lekko w lewo */
.home-img .img-top-left {
    align-self: flex-start;
    transform: translateX(-20px);
}

/* Dolny obrazek – lekko w prawo */
.home-img .img-bottom-right {
    align-self: flex-end;
    transform: translateX(20px);
}

.home-img img:hover {
    transform: scale(1.05);
}


.social-icons a{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background-color: transparent;
    border: 0.2rem solid lightblue;
    font-size: 2rem;
    border-radius: 50%;
    margin: 3rem 1.5rem 3rem 0;
    transition: 0.3s ease;
    color: lightblue;
}

.social-icons a:hover{
    color: black;
    transform: scale(1.3) translateY(-5px);
    background-color: lightblue;
    box-shadow: 0  0 25px lightblue;
}

.btn{
    display: inline-block;
    padding: 1rem 2.8rem;
    background-color: transparent;
    border-radius: 4rem;
    font-size: 1.6rem;
    color: lightblue;
    letter-spacing: 0.3rem;
    font-weight: 600;
    border: 2px solid lightblue;
    transition: 0.3s ease;
    cursor: pointer;
}

.btn:hover{
    transform: scale3d(1.03);
    background-color: lightblue;
    color: black;
    box-shadow: 0 0 25px lightblue;
}

.typing-text{
    font-size: 34px;
    font-weight: 600;
    min-width: 280px;
    overflow: hidden;
}

.typing-text span{
    position: relative;
}

.typing-text span::before{
    content: "usługi";
    color: lightblue;
    animation: words 10s infinite;
}

.typing-text span::after{
    content: "";
    background-color: transparent;
    position: absolute;
    width: calc(100% + 8px);
    height: 100%;
    right: -8;
}


@keyframes words{
    0%, 25%{
        content: "Koncerty";
    }
    31%, 50%{
        content: "Kino plenerowe";
    }
    51%, 75%{
        content: "Spektakle profilaktyczne";
    }
    81%, 100%{
        content: "Spektakle teatralne dla szkół";
    }
}

@media (max-width: 1000px){
    .home{
        gap: 4rem;
    }
}

@media(max-width:995px){
    .home{
        flex-direction: column;
        width: 100%;
    }

     /* Zmiana kolejności */
    .home-img {
        order: 2; /* przenosi obrazek na dół */
    }

    .home-content {
        order: 1; /* treść idzie na górę */
    }

    .carousel{
        order: 2; /* treść idzie na górę */
    }

    .home .home-content h3{
        font-size: 2rem;
        width: 70vw;
    }

    .home .home-content h1{
        font-size: 4rem;
        width: 70vw;
    }

    .home-img {
        width: 100%;            /* << tu jest klucz */
        align-items: center;    /* wycentruje zawartość */
    }

    .home-img img {
        width: 70vw;
        margin-top: 4rem;
    }

    .about__row {
              flex-direction: column;  /* obrazek nad tekstem */
              align-items: center;    /* wyrównaj tekst do środka */
              gap: 1rem;
            }
}