/* ========================= */
/* RESET */
/* ========================= */

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

html{
    scroll-behavior:smooth;
}

body{

    font-family:"Poppins",sans-serif;

    overflow-x:hidden;

    background:#08091a;

    color:white;

    min-height:100vh;

}

/* ========================= */
/* TŁO */
/* ========================= */

#background{

    position:fixed;

    inset:0;

    z-index:-4;

    background:
            radial-gradient(circle at 15% 20%,#ff4ecd55 0%,transparent 25%),
            radial-gradient(circle at 85% 15%,#4f7dff55 0%,transparent 25%),
            radial-gradient(circle at 50% 85%,#8b5cf655 0%,transparent 30%),
            linear-gradient(135deg,#070b1b,#111936,#1c1350);

    background-size:200% 200%;

    animation:bgMove 18s ease infinite;

}

/* ========================= */
/* GWIAZDKI */
/* ========================= */

#stars{

    position:fixed;

    inset:0;

    pointer-events:none;

    z-index:-3;

}

#stars::before{

    content:"";

    position:absolute;

    inset:0;

    background-image:
            radial-gradient(white 1px,transparent 1px);

    background-size:35px 35px;

    opacity:.18;

}

/* ========================= */
/* SERCA */
/* ========================= */

#hearts{

    position:fixed;

    inset:0;

    overflow:hidden;

    pointer-events:none;

    z-index:-2;

}

/* ========================= */
/* MENU */
/* ========================= */

#menu{

    position:fixed;

    top:0;

    right:-100%;

    width:100%;

    max-width:380px;

    height:100vh;

    padding:30px;

    background:rgba(15,18,40,.82);

    backdrop-filter:blur(25px);

    transition:.45s;

    overflow-y:auto;

    z-index:999;

}

#menu.open{

    right:0;

}

#menu h2{

    text-align:center;

    margin-bottom:25px;

    font-size:30px;

}

/* ========================= */
/* PRZYCISK MENU */
/* ========================= */

#menuButton{

    position:fixed;

    top:18px;

    right:18px;

    width:58px;

    height:58px;

    border:none;

    border-radius:18px;

    cursor:pointer;

    color:white;

    font-size:26px;

    background:rgba(255,255,255,.12);

    backdrop-filter:blur(18px);

    box-shadow:0 10px 30px rgba(0,0,0,.3);

    transition:.3s;

    z-index:1000;

}

#menuButton:hover{

    transform:scale(1.05);

}

/* ========================= */
/* STRONA GŁÓWNA */
/* ========================= */

#home{

    min-height:100vh;

    display:flex;

    justify-content:center;

    align-items:center;

    padding:20px;

}

.glass{

    width:100%;

    max-width:760px;

    padding:35px;

    border-radius:30px;

    background:rgba(255,255,255,.10);

    backdrop-filter:blur(25px);

    border:1px solid rgba(255,255,255,.15);

    box-shadow:0 20px 60px rgba(0,0,0,.35);

    text-align:center;

}

.badge{

    display:inline-block;

    padding:10px 18px;

    border-radius:999px;

    background:#ffffff22;

    margin-bottom:20px;

    font-size:14px;

}

#title{

    font-size:clamp(40px,8vw,80px);

    line-height:1.1;

    font-weight:800;

}

#subtitle{

    margin-top:20px;

    font-size:clamp(18px,4vw,24px);

    opacity:.9;

}

#openButton{

    margin-top:35px;

    width:100%;

    padding:18px;

    border:none;

    border-radius:18px;

    background:white;

    color:#1c1350;

    font-size:18px;

    font-weight:700;

    cursor:pointer;

    transition:.3s;

}

#openButton:hover{

    transform:translateY(-3px);

}

/* ========================= */
/* ANIMACJE */
/* ========================= */

@keyframes bgMove{

    0%{
        background-position:0% 50%;
    }

    50%{
        background-position:100% 50%;
    }

    100%{
        background-position:0% 50%;
    }

}

/* ========================= */
/* WIDOK WIADOMOŚCI */
/* ========================= */

#messageView{

    display:none;

    min-height:100vh;

    padding:90px 18px 35px;

    justify-content:center;

    align-items:flex-start;

}

#messageView.active{

    display:flex;

}

.card{

    width:100%;

    max-width:900px;

    background:rgba(255,255,255,.10);

    backdrop-filter:blur(25px);

    border:1px solid rgba(255,255,255,.15);

    border-radius:30px;

    padding:28px;

    box-shadow:
            0 20px 60px rgba(0,0,0,.35);

    animation:fadeUp .5s ease;

}

#personImage{

    width:120px;

    height:120px;

    object-fit:cover;

    border-radius:50%;

    display:block;

    margin:0 auto 25px;

    border:4px solid rgba(255,255,255,.25);

    box-shadow:0 10px 30px rgba(0,0,0,.35);

}

#personName{

    text-align:center;

    font-size:clamp(28px,6vw,46px);

    margin-bottom:30px;

    font-weight:700;

}

#personMessage{

    white-space:pre-wrap;

    font-size:clamp(18px,4vw,22px);

    line-height:1.9;

    text-align:left;

}

/* ========================= */
/* NAWIGACJA */
/* ========================= */

.navigation{

    margin-top:45px;

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:15px;

}

.navigation button{

    border:none;

    border-radius:18px;

    background:rgba(255,255,255,.12);

    color:white;

    padding:18px;

    font-size:18px;

    font-weight:700;

    cursor:pointer;

    transition:.25s;

    backdrop-filter:blur(15px);

}

.navigation button:hover{

    background:rgba(255,255,255,.22);

    transform:translateY(-4px);

}

.navigation button:active{

    transform:scale(.96);

}

/* ========================= */
/* OSOBY W MENU */
/* ========================= */

.person{

    display:flex;

    align-items:center;

    gap:15px;

    padding:18px;

    border-radius:18px;

    margin-bottom:12px;

    cursor:pointer;

    background:rgba(255,255,255,.08);

    transition:.25s;

}

.person:hover{

    background:rgba(255,255,255,.18);

    transform:translateX(-5px);

}

.person img{

    width:55px;

    height:55px;

    border-radius:50%;

    object-fit:cover;

}

.person span{

    font-size:18px;

    font-weight:600;

}

/* ========================= */
/* RESPONSYWNOŚĆ */
/* ========================= */

@media (min-width:900px){

    .glass{

        padding:55px;

    }

    .card{

        padding:50px;

    }

}

@media (max-width:650px){

    .navigation{

        grid-template-columns:1fr;

    }

    #personImage{

        width:95px;

        height:95px;

    }

    #personMessage{

        font-size:18px;

        line-height:1.8;

    }

}

/* ========================= */
/* ANIMACJE */
/* ========================= */

@keyframes fadeUp{

    from{

        opacity:0;

        transform:translateY(30px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}

/* ========================= */
/* EKRANY */
/* ========================= */

.screen{

    position:absolute;

    inset:0;

    display:flex;

    justify-content:center;

    align-items:center;

    padding:20px;

    opacity:0;

    visibility:hidden;

    transform:scale(.98);

    transition:
            opacity .45s ease,
            transform .45s ease,
            visibility .45s;

}

.screen.active{

    opacity:1;

    visibility:visible;

    transform:scale(1);

}

/* ========================= */

.fadeOut{

    animation:fadeOut .35s forwards;

}

.fadeIn{

    animation:fadeIn .35s forwards;

}

@keyframes fadeOut{

    to{

        opacity:0;

        transform:translateY(20px);

    }

}

@keyframes fadeIn{

    from{

        opacity:0;

        transform:translateY(20px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}