body {
    margin: 0;
    font-family: Arial, sans-serif;
    background:linear-gradient(180deg,#1350b1,#46076b);
    color: white;
}


/* NAVBAR */

.navbar {

    box-sizing: border-box;
    min-height: 60px;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;

    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 60px;

    background: #222;

    display: flex;
    align-items: center;

    padding-left: 5px;

    z-index: 1000;

    box-shadow: 0 3px 10px black;

    box-shadow: 0 5px 20px rgb(110, 5, 172);

}


/* LOGO */

.logo img {

    width: 80%;
    
    height: 45px;

    margin-right: 5px;
    margin-top: 5px;

    animation:
    logoStart 1s ease-out,
    logoFloat 3s infinite ease-in-out;

    transition: 0.3s;

}


.logo img:hover {

    transform: scale(1.15) rotate(5deg);

}

/* ANIMACJA THINK EMOJI */

.think_emoji_anim {
    display: inline-block;
    transition: transform 0.2s;
    cursor: pointer;
}


.think_emoji_anim:hover {

    animation: thinkShake 0.3s infinite;

}



@keyframes thinkShake {


0% {

transform: rotate(0deg) scale(1);

}


25% {

transform: rotate(-8deg) scale(1.15);

}


50% {

transform: rotate(8deg) scale(0.9);

}


75% {

transform: rotate(-5deg) scale(1.25);

}


100% {

transform: rotate(0deg) scale(1);

}


}


@keyframes logoStart {

0% {

opacity:0;
transform: translateY(-30px) scale(.5);

}


100% {

opacity:1;
transform: translateY(0) scale(1);

}

}



@keyframes logoFloat {


0%,100% {

transform: translateY(0);

}


50% {

transform: translateY(-5px);

}


}



/* MENU */


.menu-item {

    position: relative;

    margin-right: 5%;

    max-width: 15%;
}



.menu-button {

    background:none;

    border:none;

    color:white;

    font-size:16px;

    cursor:pointer;

    padding:10px 2%;

    border-radius:12px;


    transition:

    background 0.3s ease,
    transform 0.25s ease,
    box-shadow 0.3s ease;


}



.menu-button:hover {


    background:#0066ff;


    transform:translateY(-2px);


    box-shadow:

    0 5px 15px rgba(0,102,255,0.4);


}



.menu-item:hover .menu-button {

    animation: none;

}


.menu-item:hover .menu-button::first-letter {

    animation: thinkShake 3s infinite;

}




/* DROPDOWN */


.dropdown {

    opacity:0;

    visibility:hidden;

    position:absolute;

    top:45px;

    left:0;


    background:rgb(171, 64, 241);

    min-width:160px;


    border-radius:10px;


    overflow:hidden;


    transform:translateY(-15px) scale(0.95);


    transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    visibility 0.25s;


    box-shadow:
    0 8px 25px rgb(145, 23, 226);


}


/* po otwarciu */

.show {

    opacity:1;

    visibility:visible;

    transform:translateY(0) scale(1);

}



.dropdown a {


    display:block;

    padding:12px;

    color:black;

    text-decoration:none;

    transition:.3s;


}



.menu-item:hover {


    background:#0066ff;

    color:white;


}




.show {


    opacity:1;

    visibility:visible;

    transform:translateY(0);

}



/* CONTENT */


.body_content {


    padding-top:100px;

    text-align:center;

}



.body_content img {


    width:250px;

    animation: logoFloat 3s infinite;


}



h6 {


    font-size:20px;

}

.card {
    background: #1c1c1c;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    border: 1px solid #333;

}

.shadown_card {
    background: #1c1c1c;
    padding: 0px;
    border-radius: 15px;

    margin-top: 20px;
    margin-left: 5%;
    margin-right: 5%;

    border: 4px solid #6602c4;

    box-shadow:
    0 15px 100px rgb(109, 9, 172);
}

p {
    line-height: 1.6;
    color: #ccc;
}

.site-button {
    
    background:none;

    border:none;

    color:white;

    font-size:16px;

    cursor:pointer;

    padding:10px 15px;

    border-radius:12px;


    transition:

    background 0.3s ease,
    transform 0.25s ease,
    box-shadow 0.3s ease;
}

.site-button:hover {
    
    background:#0066ff;

    transform:translateY(-2px);

    box-shadow:

    0 5px 15px rgba(0,102,255,0.4);


}

footer{
    margin-top:60px;
    text-align:center;
    padding:20px;
    background:#111827;
    color:#94a3b8;
}

.rainbow {
  /* Repeat the first color at the end to make the loop seamless */
  background: linear-gradient(to right, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #9400d3, #ff0000);
  
  /* Make the background wider than the text so it has room to move */
  background-size: 200% auto;
  
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-family: sans-serif;
  font-weight: bold;

  /* Apply the animation loop */
  animation: shine 4s linear infinite;
}

/* Shift the background position from right to left */
@keyframes shine {
  to {
    background-position: 200% center;
  }
}


/* Shift the background position from right to left */
@keyframes shine {
  to {
    background-position: 200% center;
  }
}

.page {
width: min(1400px, 92%);
margin: 0 auto;
padding: 80px 0;
}

/* HEADER */

.page-header {
margin-bottom: 45px;
}

.small-title {
display: block;
margin-bottom: 10px;
color: #4287ff;
font-size: 12px;
font-weight: 700;
letter-spacing: 3px;


}

.page-header h1 {
margin-bottom: 12px;
font-size: clamp(36px, 5vw, 64px);
line-height: 1;
font-weight: 800;
}

.page-header p {
max-width: 600px;
color: #888;
font-size: 16px;
line-height: 1.6;
}

/* GRID */

.grid {
display: grid;
grid-template-columns:
    repeat(4, 1fr);

grid-auto-rows: 260px;
gap: 18px;
}

/* PODSTAWOWY KAFEL */

.tile {
position: relative;
display: block;
overflow: hidden;
border: 1px solid #242424;
background: #111;
color: white;
text-decoration: none;
isolation: isolate;
transition:
    transform 0.4s cubic-bezier(.2,.8,.2,1),
    border-color 0.4s ease,
    box-shadow 0.4s ease;
}

/* ROZMIARY */

/* 1 × 1 */

.tile-1x1 {
grid-column: span 1;
grid-row: span 1;
}

/* 2 × 1 */

.tile-2x1 {
grid-column: span 2;
grid-row: span 1;
}

/* 2 × 2 */

.tile-2x2 {
grid-column: span 2;
grid-row: span 2;
}

/* OBRAZ */

.tile-image {
position: absolute;
inset: 0;
z-index: -3;
overflow: hidden;
}

.tile-image img {
width: 100%;
height: 100%;
display: block;
object-fit: cover;
transform: scale(1.01);
filter:
    brightness(0.72)
    saturate(0.85);
transition:
    transform 0.7s cubic-bezier(.2,.8,.2,1),
    filter 0.5s ease;


}

/* CIEMNY GRADIENT */
.tile-overlay {
position: absolute;
inset: 0;
z-index: -2;
background:
    linear-gradient(
        to top,
        rgba(0,0,0,0.95) 0%,
        rgba(0,0,0,0.55) 40%,
        rgba(0,0,0,0.05) 75%
    );

transition:
    background 0.5s ease;
}

/* TREŚĆ */
.tile-content {
position: absolute;
left: 25px;
right: 25px;
bottom: 25px;
z-index: 2;
transform: translateY(5px);
transition:
    transform 0.4s ease;
}

.tile-category {
display: inline-block;
margin-bottom: 9px;
color: #5b96ff;
font-size: 10px;
font-weight: 800;
letter-spacing: 2px;
}

.tile h2 {
margin: 0;
font-size: 25px;
line-height: 1.1;
font-weight: 800;
}

.tile p {
max-width: 600px;
margin-top: 10px;
color: #c0c0c0;
font-size: 14px;
line-height: 1.5;
}

/* HOVER */

.tile:hover {

transform:
    translateY(-7px)
    scale(1.01);

border-color: #4287ff;

box-shadow:
    0 20px 45px rgba(0,0,0,0.5),
    0 0 25px rgba(66,135,255,0.12);

}

.tile:hover .tile-image img {

transform: scale(1.08);

filter:
    brightness(0.82)
    saturate(1);

}

.tile:hover .tile-content {

transform: translateY(0);

}

.tile:hover .tile-overlay {

background:
    linear-gradient(
        to top,
        rgba(0,0,0,0.96) 0%,
        rgba(0,0,0,0.45) 55%,
        rgba(30,90,180,0.12) 100%
    );

}

/* ANIMACJA PO ZAŁADOWANIU */

.tile {

animation:
    tileAppear 0.7s ease both;

}

.tile:nth-child(1) {
animation-delay: 0.05s;
}

.tile:nth-child(2) {
animation-delay: 0.10s;
}

.tile:nth-child(3) {
animation-delay: 0.15s;
}

.tile:nth-child(4) {
animation-delay: 0.20s;
}

.tile:nth-child(5) {
animation-delay: 0.25s;
}

.tile:nth-child(6) {
animation-delay: 0.30s;
}

.tile:nth-child(7) {
animation-delay: 0.35s;
}

@keyframes tileAppear {

from {

    opacity: 0;

    transform:
        translateY(25px)
        scale(0.97);

}

to {

    opacity: 1;

    transform:
        translateY(0)
        scale(1);

}

}

/*TABLET*/

@media (max-width: 1000px) {

.grid {

    grid-template-columns:
        repeat(3, 1fr);

    grid-auto-rows: 240px;

}

.tile-2x2 {

    grid-column: span 2;
    grid-row: span 2;

}

.tile-2x1 {

    grid-column: span 2;

}

}

/*MAŁY TABLET*/

@media (max-width: 750px) {

.page {

    width: 94%;

    padding: 60px 0;

}

.grid {

    grid-template-columns:
        repeat(2, 1fr);

    grid-auto-rows: 220px;

    gap: 14px;

}

.tile-2x2 {

    grid-column: span 2;
    grid-row: span 2;

}

.tile-2x1 {

    grid-column: span 2;

}

.tile-content {

    left: 18px;
    right: 18px;
    bottom: 18px;

}

.tile h2 {

    font-size: 21px;

}

}

/* TELEFON */

@media (max-width: 520px) {

.page {

    width: 92%;

    padding: 45px 0;

}

.page-header {

    margin-bottom: 30px;

}

.page-header h1 {

    font-size: 38px;

}

.grid {

    grid-template-columns: 1fr;

    grid-auto-rows: 250px;

    gap: 12px;

}

/*Na telefonie wszystkie kafelki stają się pełną szerokością.*/
.tile-1x1,
.tile-2x1,
.tile-2x2 {

    grid-column: span 1;
    grid-row: span 1;

}

/*Featured pozostaje trochę większy*/
.tile-2x2 {

    grid-row: span 2;

}


.tile-2x2 .tile-content {

    bottom: 25px;

}


.tile-2x2 h2 {

    font-size: 28px;

}


}

/* REDUKCJA ANIMACJI */
@media (prefers-reduced-motion: reduce) {


* {

    animation: none !important;

    transition: none !important;

    scroll-behavior: auto !important;

}


}