@import url('https://fonts.googleapis.com/css2?family=Alan+Sans:wght@300..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Alan+Sans:wght@300..900&family=Bitcount+Ink:wght@100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Karla:ital,wght@0,200..800;1,200..800&display=swap');

:root{
  --bg: #5e17eb;
  --box: #4a12bb;
  --box-hover: #431f8a;
  --text: #f6f5f5;
  --muted: #d0d0d0;
  --transition-duration: 450ms;
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family: "Karla", sans-serif;
  background:#fff;
  color:var(--text);
}

header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height:50px;
  background:var(--bg);
  padding:6px 2vw;
}
header h1{
  color:white;
  margin:0;
  font-family: "Alan Sans", sans-serif;
  font-weight:800;
  font-size:clamp(0.9rem,2vw,2rem);
}
nav{ display:flex; gap:1vw; }
nav .options{
  color:white;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:6px 10px;
  font-weight:500;
  cursor:pointer;
}
nav .options:hover{ color:#eed3f8; }

#first{
  min-height:calc(50dvh - 50px);
  background:var(--bg);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:3vh 2vw;
  text-align:center;
}
#first h1{ color:white; margin:0; font-size:clamp(1.2rem,2.6vw,2.8rem); font-weight:500; }
#first p{ color:#f6f5f5; margin-top:1rem; font-size:clamp(0.9rem,1.6vw,1.2rem); }

#blog{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(20vw,1fr));
  gap:8vw;
  padding-left: 10vw;
  padding-right: 10vw;
  background:var(--bg);
  transform:translateX(0);
  opacity:1;
  transition:transform var(--transition-duration) ease, opacity var(--transition-duration) ease;
  padding-top:3.2rem;
  padding-bottom:2rem;
  min-height: 200px;     
}
#blog.slide-out{
  transform:translateX(-50px);
  opacity:0;
}
#blog.slide-in{
  transform:translateX(50px);
  opacity:0;
}

.blogbox{
  width:100%;
  background:var(--box);
  border-radius:6px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  min-height:150px;
  overflow:hidden;
  box-shadow:0 6px 16px rgba(0,0,0,0.15);
  transform:translateY(12px);
  opacity:0;
  transition:transform 420ms cubic-bezier(.2,.9,.2,1), opacity 420ms ease;
}
.blogbox.enter{
  transform:translateY(0);
  opacity:1;
}
.blogimg img{
  width:100%;
  object-fit:cover;
  display:block;
}
.blogheader{
  text-align:center;
  padding:1em 0.8em 0;
  color:var(--text);
  font-size:clamp(1rem,1.9vw,1.4rem);
  font-weight:600;
}
.blogdesc{
  padding:0.6em 0.9em 1em;
  text-align:center;
  color:var(--muted);
  font-size:clamp(0.85rem,1vw,1.1rem);
}
.blogbuttons{
  display:flex;
  justify-content:center;
  gap:0.6rem;
  padding:0.8rem 0 1rem;
}
.custom-btn{
  padding:0.45em 0.9em;
  border-radius:30px;
  border:1.5px solid white;
  background:var(--box);
  color:white;
  cursor:pointer;
  font-weight:600;
}
.custom-btn:hover{ background:var(--box-hover); }

.blogbox:hover{ transform:scale(1.03); }

#pagination{
  padding-top:2vh;
  padding-bottom:2vh;
  display:flex;
  gap:8px;
  justify-content:center;
  align-items:center;
  background:var(--bg);
}
.pagination-btn{
  background:transparent;
  border:1px solid rgba(255,255,255,0.12);
  color:white;
  padding:6px 10px;
  border-radius:6px;
  cursor:pointer;
  min-width:36px;
}
.pagination-btn:hover{ background:rgba(255,255,255,0.06); }
.pagination-btn.active{
  background:white;
  color:var(--bg);
  border-color:transparent;
  font-weight:700;
}

#whatwedo {
  padding-left: 10vw;
  padding-right: 10vw;
  background:var(--bg);
  min-height:20vh;
  box-sizing: border-box;
  padding-top: 15vh;
  box-sizing: border-box;

  display: flex;
  justify-content: space-between;
  align-items: center
}

.leftsidearticle {
    width: 30%;
    font-weight: 900;
    font-size:clamp(0.9rem,2vw,2rem);
    display: flex;
    align-items: center;
    justify-content: center;
}

#tools{
    padding-left: 10vw;
    padding-right: 10vw;
    background:var(--bg);
    min-height:20vh;
    box-sizing: border-box;
    padding-top: 15vh;
    box-sizing: border-box;
    padding-bottom: 10vh;
    display: flex;
    flex-direction: column;

}

.rightsidearticle {
padding: 1rem;
    align-items: center;
    display: flex;
    flex-direction: column;
    width: 70%;
    font-size: clamp(0.5rem,2vw, 1.6rem);
}

.section_header {
  background: var(--bg);          /* tło sekcji */
  padding: 3rem 2vw;
  display: grid;
  align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* responsywny grid */
  gap: 2rem;
  justify-items: center;
}

.section_boxs {
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(0.4vw,1fr));
    gap:2vw;
    justify-items: center;
}


#tools .tools {
  background: var(--box);         
  color: var(--text);
  border-radius: 12px;
  padding: 1.5rem 1rem;
  width: 100%;
  max-width: 350px;               
  text-align: center;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, background 0.3s ease;
}

#tools .tools:hover {
  transform: translateY(-6px) scale(1.03);
  background: var(--box-hover);
}

#tools .tools i {
  font-size: 2rem;
  color: white;
}

#tools .tools span {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.9rem;
  color: #f1b3b3; /* lekko czerwony */
}


footer{
  background-color:var(--bg);
  padding:1.4rem 2vw;
  font-size:0.9rem;
  color:#ffff;

  border-top: solid 1px black;
}

.blogarticle {
    min-height: 50vh;
    background-color:var(--bg);
    padding-left: 10vw;
    padding-right: 10vw;
}

.blogarticle h1 {
    margin: 0;
}

@media (max-width:900px){
  #blog{ gap:6vw; padding-left:6vw; padding-right:6vw; }
  .blogimg img{ height:120px; }
}
@media (max-width:520px){
  #blog{ gap:4vw; padding-left:4vw; padding-right:4vw; grid-template-columns:1fr; }
  .blogimg img{ height:160px; }
}


a {
    color: white;
    text-decoration: none;
}

a:hover {
    color: #eae6e6;
}