*{
    padding:0;
    margin:0;
    box-sizing: border-box;
}

html{
    font-size: 10px;
    font-family: "Montserrat", sans-serif;
    scroll-behavior: smooth;

}
.toast {
  position: fixed; bottom: 30px; right: 30px;
  background: #4ade80; color: #111;
  padding: 14px 22px; border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
}
.toast.show { opacity: 1; pointer-events: auto; }
section { scroll-margin-top: 8vh; }
a{
    text-decoration: none;
}
.container{
    min-height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.cta {
  display: block;
  padding: 10px 20px;
  color: lightblue;
  background-color: transparent;
  border: 2px solid lightblue;
  font-size: 1.6rem;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  margin: 30px auto 0 auto;
  border-radius: 10px;
  transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  text-align: center;
  white-space: normal;
  line-height: 1.4;
  width: auto;                  /* szerokość = szerokość treści */
  max-width: 90%;               /* zabezpieczenie na mobilkach */
  box-sizing: border-box;       /* żeby padding nie zwiększał borderu */
}
.cta:hover{
    background-color: lightblue;
    color: black;
      box-shadow: 0 6px 14px rgba(0,0,0,0.2);
}
.brand h1{
    font-size: 2.5rem;
    text-transform: uppercase;
    color: white;
    text-align: center;
    letter-spacing: .1rem;
}
.brand h1 span{
    color: rgb(92, 207, 245);
}

/* Header Section */
#header{
    position: fixed;
    width: 100vw;
    height: auto;
    top: 0;
    left: 0;
    z-index: 100;
}
#header .header{
    min-height: 8vh;
    background-color: rgba(31,30,30,0.24);
}
#header .brand h1 {
  font-size: 2rem; /* lub 1.4rem jeśli chcesz jeszcze mniejsze */
  text-transform: uppercase;
  letter-spacing: 1px;
}
#header .nav-bar{
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: 1300px;
    padding: 0 10px;
}
#header .nav-list ul{
    list-style: none;
    position: absolute;
    background-color: rgb(31,30,30);
    width: 100vw;
    height: 100vh;
    left: 100%;
    top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    overflow-x: hidden;
    flex-direction: column;
    transition: .5s ease left;
}
#header .nav-list ul.active{
    left: 0;
}
#header .nav-list ul a{
    font-size: 2rem;
    font-weight: 500;
    letter-spacing: .2rem;
    text-decoration: none;
    color: white;
    text-transform: uppercase;
    display: block;
    padding: 20px;
    white-space: nowrap;
}
#header .nav-list ul a::after{
    content:attr(data-after);
    position: absolute;
    top: 50%;
    left: 50%;
    font-size: 13rem;
    transform: translate(-50%,-50%) scale(0);
    color:rgb(240,248,255,0.021);
    letter-spacing: 15px;
    z-index: -1;
    transition: .3s ease letter-spacing;
}
#header .nav-list ul li:hover a{
    color: lightblue;
}
#header .nav-list ul li:hover a::after{
    transform: translate(-50%,-50%) scale(1);
    letter-spacing: initial;
}
#header .hamburger{
    z-index: 100;
    height: 40px;
    width: 40px;
    display: inline-block;
    border: 3px solid white;
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-right: 2vw;
}
#header .hamburger .bar{
    height: 2px;
    width: 20px;
    background-color: white;
    position: relative;
}
#header .hamburger .bar::after, #header .hamburger .bar::before{
    content: '';
    position: absolute;
    height: 100%;
    width: 100%;
    left:0;
    background-color: white;
    transition: .3s ease;
    transition-property: top, bottom;
}
#header .hamburger .bar::after{
    top: 8px;
}
#header .hamburger .bar::before{
    bottom: 8px;
}
#header .hamburger.active .bar::after{
    top: 0;
}
#header .hamburger.active .bar::before{
    bottom: 0;
}
/* End Header Section */

/* Hero Section */
#hero{
    background-image: url("./img/img_start.webp");
    background-size: 250%;  
    background-position: center center;
    position: relative;
    z-index: 1;
    background-attachment: scroll; 
    background-repeat: no-repeat;
}
/* fallback dla starszych przeglądarek */
@supports not (background-image: url("image.webp")) {
  #hero {
    background-image: url("./img/img_start.jpg");
  }
}
#hero::after{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    opacity: 0.7;
    z-index: -1;
}
#hero .hero {
    display: flex;
    flex-direction: column;
    justify-content: center;   /* wyśrodkuj pionowo */
    align-items: center;       /* wyśrodkuj poziomo */
    text-align: center;
    margin: 0 auto;
    padding: 0 16px;
    max-width: none;           /* usuń ograniczenie szerokości */
    width: 100%;
    padding-top: 35vh;
  }
#hero .btn{
  display:flex;
  justify-content:center;
}
#hero h1{
    display: block;
    width: fit-content;
    font-size: 2.5rem;
    position: relative;
    text-align: left; 
    color: transparent;
    animation: text_reveal 0.5s ease forwards;
    margin-left: 2vw;
}
#hero h1:nth-child(1){
    animation-delay: 1.5s;
    
}
#hero h1:nth-child(2){
    animation-delay: 2.5s;
    
}
#hero h1:nth-child(3){
    animation-delay: 3.5s;
    
}
#hero h1 span{
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: white;
    animation: text_reveal_box 1s ease;
}
#hero h1:nth-child(1) span{
    animation-delay: 1s;
    
}
#hero h1:nth-child(2) span{
    animation-delay: 2s;
    
}
#hero h1:nth-child(3) span{
    animation-delay: 3s;
    
}
#hero .cta {
  display: block;
  justify-content: center;
  align-items: center;
  margin: 24px auto 0;  /* auto po bokach = środek */
  width: auto;          /* tylko szerokość tekstu + padding */
  max-width: calc(100% - 32px);
}
/* End Hero Section */

/* About Section */
#about .about{
    flex-direction: column-reverse;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 20px;
}
#about .col-left{
  width: 100%;
  max-width: 60vw;
  height: 60vh;
  margin: 0 auto;
}
.about-img{
    height: 100%;
}
.about-img img{
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 10px; /* opcjonalnie – zaokrąglenie rogów */
  object-fit: cover;
}
#about .col-right{
    width: 100%;
}
#about .cta{
    margin-bottom: 50px;
    padding: 10px 20px;
}
#about p{
    color: black;
    font-size: 1.6rem;
    line-height: 1.6;
    margin: 30px 0;
}
#about h1{
    color: black;
    font-size: 2.5rem;
}
/* End About Section */

/* Contact Section */
#contact {
  background-color: white;
  padding: 20px 20px;
  min-height: 100vh;
  align-items: center;;
}

#contact .contact {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

#contact h1 {
  color: #29323c;
  font-size: 2rem;
  line-height: 1.3;
  margin-bottom: 8px;
}

#contact textarea {
  width: 100%;
  min-height: 220px;
  padding: 14px;
  font-size: 1.6rem;
  border: 2px solid lightblue;
  border-radius: 12px;
  resize: none;
  outline: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  background: #fff;
}

#contact textarea:focus {
  border-color: rgb(92, 207, 245);
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

#contact .cta {
  width: 100%;
  max-width: 100%;
  padding: 14px 20px;
  font-size: 1.7rem;
  border-radius: 10px;
  background-color: lightblue;
  color: #111;
  border-color: lightblue;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  transition: background-color .3s ease, color .3s ease, box-shadow .3s ease;
}

#contact .cta:hover {
  background-color: rgb(92, 207, 245);
  color: #111;
  box-shadow: 0 6px 14px rgba(0,0,0,0.2);
}

/* Place the email hint under the button and keep it readable */
#contact .contact-info {
  margin-top: 4px;
  font-size: 1.3rem;
  color: #333;
  text-align: center;
  word-break: break-word;
}

#contact .contact-info a {
  color: rgb(92, 207, 245);
  text-decoration: none;
}
#contact .contact-info a:hover { 
    text-decoration: underline; 
}
#contact input[type="email"] {
  width: 100%;
  padding: 14px;
  font-size: 1.6rem;
  border: 2px solid lightblue;
  border-radius: 10px;
  margin-bottom: 16px;
  outline: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

#contact input[type="email"]:focus {
  border-color: rgb(92, 207, 245);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
/* End Contact Section */

/* Footer Section */
#footer{
    background-image: linear-gradient(60deg,#29323c 0%,#485563 100%);
}
#footer .footer{
    min-height: 200px;
    flex-direction: column;
    padding-top: 30px;
    padding-bottom: 10px;
    text-align: center;
}
#footer h2{
    color: white;
    font-weight: 500;
    font-size: 1.8rem;
    letter-spacing: 0.1rem;
    margin-bottom: 10px;
}
#footer h3{
    color: white;
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 0.1rem;
}
#footer p{
    display: block;
    color: white;
    font-size: 1rem;
    margin-top: 40px;
}
#footer a{
    color: white;
    font-size: 1rem;
    text-decoration: underline;
}
/* End Footer Section */

/*Keyframes*/
@keyframes text_reveal_box{
    50%{
        width:100%;
        left:0;
    }
    100%{
        width: 0;
        left:100%;
    }
}
@keyframes text_reveal{
    100%{
        color: white;
        border-right: none;
    }
}
/*End Keyframes*/

/* DOMYŚLNIE: zostaje jak masz na mobile (overlay + hamburger) */
:root{
  --content-max: 1100px;
  --gutter: 16px;
  --header-h: 64px; /* mobilny header */
}

/* 🔹 TABLET — od 768px */
@media (min-width: 768px) {
  /* Od tabletu w górę – gwarantowane wyłączenie */
  #header .nav-list ul a::after { content: none !important; }

  html {
    font-size: 12px; /* całe skalowanie tekstu w górę o ~10% */
  }

  /* Układ nagłówka — chowamy hamburgera, pokazujemy menu poziome */
  #header .hamburger {
    display: none;
  }
  /* Logo trochę większe */
  #header .brand h1 {
    font-size: 1.9rem;
    letter-spacing: 0.1rem;
  }

  #header .nav-list ul {
    position: static;
    width: auto;
    height: auto;
    background: transparent;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    gap: 16px;
    transition: none;
  }

  #header .nav-list ul li a {
    font-size: 1.4rem;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background-color 0.3s ease;
  }

  #header .nav-list ul li a:hover {
    background-color: rgba(255,255,255,0.1);
    color: lightblue;
  }
  #hero{
    background-size: 180%;  
    background-position: 20% center;
  }
  #hero .hero{
    transform: translateX(-8%);
    padding-top: 0vh;
  }
  /* Sekcje – trochę większy tekst i spacing */
  h1 { font-size: clamp(2.8rem, 3.5vw, 3.6rem); }
  h2 { font-size: clamp(2.0rem, 2.8vw, 2.8rem); }
  p  { font-size: 1.7rem; }
  .cta { font-size: 1.8rem; }
}

/* 🔹 LAPTOP / MONITOR — od 1200px */
@media (min-width: 1200px) {
  :root {
    --gutter: 20px; /* wcześniej było 32px – redukcja o ~1/3 */
  }
  #contact form{
    width: 50vw;
}
  #about, #contact {
    display: flex;
    justify-content: center; /* wyśrodkowuje całość */
  }
  #hero{
    background-size: 150%;  
    background-position: left 45%;
  }
  section:not(#header),
  #hero .hero,
  #about .about,
  #contact .contact {
    padding-left: var(--gutter);
    padding-right: var(--gutter);
  }
  #header .nav-list ul li a:hover {
    background-color: transparent !important; /* brak tła */
    color: lightblue; /* tylko zmiana koloru tekstu */
  }  
  html {
    font-size: 10px; /* jeszcze większe skalowanie */
  }
  /* Logo trochę większe */
  #header .brand h1 {
    font-size: 3rem;
    letter-spacing: 0.1rem;
  }
  #hero h1 {
    font-size: clamp(3rem, 4vw, 4rem); /* było ok. 2.5–3rem */
    line-height: 1.25;
    text-align: center;   /* opcjonalnie, żeby zachować balans */
  }

  /* Jeszcze większe fonty dla sekcji */
  h1 { font-size: clamp(3.2rem, 3vw, 4.2rem); }
  h2 { font-size: clamp(2.4rem, 2vw, 3.2rem); }
  p  { font-size: 1.9rem; line-height: 1.8; }
  .cta { font-size: 2rem; padding: 14px 28px; }

  #header .nav-list ul li a {
    font-size: 1.8rem;
    padding: 10px 16px;
  }
  #about .about {
    display: grid;
    grid-template-columns: 1fr 2.8fr;
    gap: 200px; /* było 60px → większa przerwa między kolumnami */
    text-align: left;
    align-items: stretch; /* klucz — obie kolumny mają tę samą wysokość */

  }
  #about .about,
  #contact .contact {
    margin-left: 40px;   /* było np. 80px – teraz mniejsze odstępy */
    margin-right: 40px;
    max-width: 1800px;  /* pozwala sekcji być nieco szerszą */
  }
  
  #contact .contact{
    max-width: 1200px; /* było 800px */
    gap: 24px
  }
  /* Nagłówek „O mnie” wyśrodkowany */
  #about .section-title {
    grid-column: 1 / -1;  /* rozciąga się na obie kolumny */
    text-align: center;   /* wyśrodkowanie tekstu */
    margin-bottom: 40px;  /* lekki oddech pod tytułem */
    font-size: clamp(3rem, 3vw, 3.6rem);
  }

  /* Obrazek po lewej */
  #about .col-left {
    justify-self: end;
    max-width: 600px;
  }

  /* Tekst po prawej */
  #about .col-right {
    display: flex;            /* <- klucz */
    flex-direction: column;
    justify-content: center;  /* środek w pionie */
    align-items: flex-start;  /* tekst zostaje do lewej */
    min-height: 100%;
  }
  #about .col-right p{
    margin: 10px 0;
  }
  #about .col-right .cta{
    margin-bottom: 0px;
  }
  #about p {
    text-align: justify;
  }
}




