@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Montserrat", sans-serif;
    background: radial-gradient(circle at top, #0a0f25, #000);
    color: #e5e5e5;
    font-size: 36px;
}

#email,
#tooltip {
    font-size: 36px;
}

/* Pasek */
#pasek {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.9);
    border-bottom: 3px solid #0ff;
    padding: 15px 40px;
    z-index: 1000;
    display: flex;
    justify-content: center;
}

#pasek img {
    flex-wrap: nowrap;
    max-height: 100px;
    border: 2px solid rgba(0, 0, 0, 0);
    transition: 0.3s;
    border-radius: 10px;
}

#pasek img:hover {
    border-color: #f0f;
    box-shadow: inset 0 0 15px #f0f, 0 0 20px #f0f;
}

/* Treść */
#strona {
    max-width: 1400px;
    margin: 210px auto 50px auto;
    padding: 0 20px;
}

#sub-strona {
    max-width: 1300px;
    margin: 210px auto 50px auto;
    padding: 0 20px;
}

h1 {
    font-size: 64px;
    text-align: center;
    margin: 10px 0 50px 0;
    padding: 10px;
    border: 2px solid #0ff;
    border-radius: 10px;
    font-family: "Montserrat", sans-serif;
}

h2 {
    font-size: 52px;
    text-align: center;
    margin: 50px 0 25px 0;
    padding: 10px;
    border: 2px solid #0ff;
    border-radius: 10px;
    scroll-margin-top: 180px;
    font-family: "Montserrat", sans-serif;
}

h3 {
    font-size: 42px;
}

p,
li {
    margin: 10px;
}

/* Panele sekcji */
.panel {
    background: rgba(0, 15, 30, 0.8);
    border: 2px solid #0ff;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 0 20px #0ff4;
    transition: 0.3s;
}

.panel:hover {
    box-shadow: 0 0 30px #0ff8;
}

/* Spis treści */
.grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px 0;
    justify-content: center;
}

.tile {
    border: 2px solid #0ff;
    border-radius: 12px;
    text-align: center;
    padding: 15px;
    background: rgba(0, 0, 20, 0.7);
    transition: 0.3s;
    color: #0ff;
    text-decoration: none;
    min-width: 290px;
    flex: 0.25 0 18.5%;
}

.tile:hover {
    border-color: #f0f;
    transform: translateY(-5px);
    box-shadow: 0 0 20px #f0f;
    color: #f0f;
}

.tile img {
    width: 100%;
    border-radius: 10px;
    border: 2px solid #0ff;
    margin-bottom: 10px;
}

/* Zespół */
.about {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    text-align: center;
}

.about-text {
    flex: 2 1 750px;
}

.about-img {
    flex: 1 1 200px;
    margin: 15px;
}

.about-img img {
    width: 360px;
    height: 360px;
    border-radius: 50%;
    border: 3px solid #0ff;
    object-fit: cover;
    box-shadow: 0 0 20px #0ff6;
    transition: 0.3s;
}

.about-img img:hover {
    transform: scale(1.2);
    border-color: #f0f;
    animation: scaleUpDown 0.7s;
}

@keyframes scaleUpDown {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.5);
    }

    100% {
        transform: scale(1.2);
    }
}

#wiecej-lk {
    text-decoration: none;
    color: #0ff;
}

#wiecej-lk:hover {
    color: #f0f;
}

/* Social */
.socials {
    display: flex;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    flex-wrap: wrap;
    justify-content: center;
}

.social {
    flex: 0.5 0 33%;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 12px;
    border: 2px solid #0ff;
    border-radius: 10px;
    background: rgba(0, 0, 20, 0.7);
    transition: 0.3s;
    color: #0ff;
    text-decoration: none;
    transition: 0.3s;
}

.social:hover {
    border-color: #f0f;
    box-shadow: 0 0 20px #f0f;
    color: #f0f;
    background: rgba(0, 0, 20, 1);
}

.social img {
    width: 50px;
    border-radius: 10px;
}

#email {
    user-select: text;
}

#tooltip {
    position: fixed;
    background: #0ff;
    color: #000;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.2s ease;
    transform: translate(-50%, -150%);
}

#tooltip.show {
    opacity: 1;
}

/* Podstrony */
.sub-about-img {
    width: 90%;
    margin: 0px auto;
    border-radius: 50%;
    border: 3px solid #0ff;
    object-fit: cover;
    box-shadow: 0 0 20px #0ff6;
    transition: 0.3s;
}

.sub-about-img:hover {
    transform: scale(1.2);
    border-color: #f0f;
    animation: scaleUpDown 0.7s;
}

.center {
    display: flex;
    justify-content: center;
}

/* Poprawa błędów */
.list {
    padding-left: 40px;
}

/* Kolory */
h1.c1 {
    background: linear-gradient(to right, #0ff33d44, #0ff33d77, #0ff33d44);
}

h2.c1 {
    background: linear-gradient(to right, #0ff33d11, #0ff33d44);
}

h1.c2 {
    background: linear-gradient(to right, #3df30f44, #3df30f77, #3df30f44);
}

h2.c2 {
    background: linear-gradient(to right, #3df30f11, #3df30f44);
}

h1.c3 {
    background: linear-gradient(to right, #ccf30f44, #ccf30f77, #ccf30f44);
}

h2.c3 {
    background: linear-gradient(to right, #ccf30f11, #ccf30f44);
}

h1.c4 {
    background: linear-gradient(to right, #f3a20f44, #f3a20f77, #f3a20f44);
}

h2.c4 {
    background: linear-gradient(to right, #f3a20f11, #f3a20f44);
}

h1.c5 {
    background: linear-gradient(to right, #f30f0f44, #f30f0f77, #f30f0f44);
}

h2.c5 {
    background: linear-gradient(to right, #f30f0f11, #f30f0f44);
}

h1.c6 {
    background: linear-gradient(to right, #9b0ff344, #9b0ff377, #9b0ff344);
}

h2.c6 {
    background: linear-gradient(to right, #9b0ff311, #9b0ff344);
}

h1.c7 {
    background: linear-gradient(to right, #0f66f344, #0f66f377, #0f66f344);
}

h2.c7 {
    background: linear-gradient(to right, #0f66f311, #0f66f344);
}



/* Responsywność */
@media (min-width: 1200px) {

    #email,
    body {
        font-size: 20px;
    }

    h1 {
        font-size: 44px;
    }

    h2 {
        scroll-margin-top: 160px;
        font-size: 32px;
    }

    h3 {
        font-size: 25px;
    }

    #pasek {
        padding: 0;
    }

    #pasek img {
        max-height: 120px;
        padding: 10px;
        margin: 5px;
    }

    .tile {
        min-width: 150px;
    }

    .about {
        text-align: left;
    }

    .about-img {
        margin: 15px;
    }

    .about-img img {
        width: 300px;
        height: 300px;
    }

    #strona {
        margin-top: 180px;
        padding: 0 20px;
    }

    #sub-strona {
        margin-top: 180px;
        padding: 0 20px;
    }

    p {
        margin: 10px 0;
    }

    .social {
        flex: 1.5 0 10%;
    }

    .sub-about-img {
        width: 85%;
    }

    .side {
        width: 66%;
        display: inline-block;
    }

    .center {
        width: 33%;
        display: inline-block;
    }

    .flex {
        display: flex;
    }

}