@font-face {
    font-family: 'Montserrat';
    src: url('/fonts/montserrat/Montserrat-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900; /* Zmienna waga od 100 do 900 */
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('/fonts/montserrat/Montserrat-Italic-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}
:root {
    font-size: 10px;
    --black: #0a0a0a;
    --shadow: #9e9e9e;
    --white: #ffffff;
    --blue: hsl(220 65% 69% / 1);
    --blue-saturated: hsl(220 64% 63% / 1);
    --blue-dark: hsl(220 100% 50% / 1);
    --blue-transparent: hsl(220deg 44% 11% / 15%);
    --gradient-start: hsl(220deg 40.91% 25.88%);
    --gradient-end: #000000;
    --contact-bg: #161616;
}
html {
    scroll-behavior: smooth;
    width: 100vw;
}
.material-icons {
    font-size: 1em!important;
    margin-right: 0.3em;
    color: var(--blue-saturated);
    text-shadow: 0 0 4px var(--blue-dark);
}
img {
    max-width: 100%;
    height: auto;
}
body {
    font-family: 'Montserrat', Arial;
    background-color: var(--black);
    color: var(--white);
    margin: 0;
    overflow-x: hidden;
    overflow-y: scroll;
    scroll-behavior: smooth;
    width: 100vw;
}
.fade-in {
    opacity: 0;
    transform: translateY(4%);
    transition: opacity 600ms, transform 1s;
}
section {
    padding: 0 10rem;
}
header {
    display: flex;
    align-items: center;
    padding: 1.5rem 10rem;
}
header img {
    height: 6.5rem;
    filter: invert(1);
}
header nav {
    margin-left: auto;
}
header nav ul {
    list-style: none;
    display: flex;
}
header nav ul li {
    font-size: 2.8rem;
    margin-left: 4rem;
}
header nav ul li a {
    text-decoration: none;
    color: var(--white);
    transition: color 200ms;
}
header nav ul li a:hover {
    color: var(--blue);
}

#welcome {
    display: flex;
    align-items: top;
    padding-top: 11rem;
    min-height: calc(80vmin - 6.5rem);
    background: linear-gradient(-45deg, var(--gradient-start), var(--gradient-end));
    background-size: cover;
    background-position: bottom;
    position: relative;
}
#welcome svg {
    position: absolute;
    bottom: 0;
    left: -20%;
    fill: var(--black);
    z-index: 1;
    width: 120vw;
    transform: scaleY(0.75) translateY(39.75%);

    -ms-transform: scaleY(0.75) translateY(39.75%);
    -webkit-transform: scaleY(0.75) translateY(39.75%);
    -moz-transform: scaleY(0.75) translateY(39.75%);
    -o-transform: scaleY(0.75) translateY(39.75%);
}
#welcome h1 {
    font-size: 8rem;
    margin: 0;
}
#welcome h2 {
    font-size: 3.5rem;
    font-weight: normal;
    margin: 0;
    color: var(--blue);
}
#welcome img {
    height: 30vw;
    margin-left: auto;
}
#uslugi {
    z-index: 2;
    position: relative;
    display: flex;
    justify-content: space-around;
    margin-top: 9rem;

}
#uslugi article {
    width: 22%;
    display: flex;
    flex-flow: column;
    background-color: var(--contact-bg);
    padding: 5rem 2.5rem;
    border-radius: 3rem;
}
#uslugi article img {
    height: 26rem;
    padding-bottom: 4rem;
    margin: 0 auto;
}
#uslugi article h3 {
    font-size: 3rem;
    font-weight: 600;
    margin: 0;
    position: relative;
    margin-bottom: 0;
}
#uslugi article .underline {
    margin: 1rem 0;
    height: 0.4rem;
    min-height: 3px;
    width: 25%;
    background-color: var(--blue-saturated);
    box-shadow: 0 0 3px var(--blue-dark);
    border-radius: 10px;
    
    transition: max-width 500ms ease-in;
    max-width: 0;
}
#uslugi article p {
    font-size: 1.7rem;
    margin: 0;
    line-height: 160%;
    color: var(--shadow);
}
#portfolio {
    background-color: var(--light-blue);
    padding: 10rem;
    padding-bottom: 25rem;
    margin-top: 30rem;
    position: relative;
    display:none;
}
#portfolio svg, #opinie svg, #kontakt svg {
    position: absolute;
    bottom: 100%;
    left: -20%;
    fill: var(--black);
    z-index: 1;
    width: 120vw;
    transform: scaleY(0.75) translateY(39.75%);
    -ms-transform: scaleY(0.75) translateY(39.75%);
    -webkit-transform: scaleY(0.75) translateY(39.75%);
    -moz-transform: scaleY(0.75) translateY(39.75%);
    -o-transform: scaleY(0.75) translateY(39.75%);
}
#portfolio h2 {
    font-size: 6rem;
    font-weight: 600;
    text-align: left;
    margin: 0;
    transform: translateY(-110%);
    -ms-transform: translateY(-110%);
    -webkit-transform: translateY(-110%);
    -moz-transform: translateY(-110%);
    -o-transform: translateY(-110%);
    z-index: 2;
    position: relative;
}
#portfolio div {
    display: flex;
    overflow-x: scroll;
    padding: 3rem;
    border-radius: 2rem;
    background-color: var(--white);
}
#portfolio div::-webkit-scrollbar {
    height: 22px;
}
#portfolio div::-webkit-scrollbar-track {
    border-radius: 15px;
    background: rgba(255, 255, 255,0.9);
}

#portfolio div::-webkit-scrollbar-thumb {
    background-color: var(--scrollbar-thumb);
    border-radius: 15px;
    border: 5px solid rgba(255, 255, 255,0.9);
    width: 1px;
}
#portfolio div::-webkit-scrollbar-thumb:hover {
    cursor: grab;
}
#portfolio article {
    margin-right:  3rem;
    position: relative;
    border-radius: 1rem;
}
#portfolio img{
    width: 20vw;
    position: relative;
}
#portfolio h3 {
    position: absolute;
    left: 4%;
    bottom: 2%;
    font-size: 1.6vw;
    margin: 0;
    font-weight: normal;
    z-index: 2;
}
#portfolio article::before {
    content: '';
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(190deg,transparent 65%, var(--black) 100%);
}
#portfolio h3 a {
    text-decoration: none;
    color: var(--white);
}
#kontakt, #kontakt div, #kontakt img {
    position: relative;
    z-index: 2;
}
#kontakt svg {
    fill: var(--contact-bg);
}
#kontakt {
    margin-top: 30rem;
    background-color: var(--contact-bg);
    display: flex;
    padding-top: 5rem;
    padding-bottom: 20rem;
    align-items: center;
}
#kontakt div {
    width: 50%
}
#kontakt h2 {
    font-size: 6rem;
    margin: 0;
}
#kontakt a {
    color: inherit;
    text-decoration: none;
    display: block;
    margin-top: 7rem;
    width: max-content;
    transition: color 200ms;
    font-size: 4rem;
    position: relative;
    padding-left: 1rem;
    margin-left: 5rem
}
#kontakt a span {
    position: absolute;
    top: 50%;
    right: 100%;
    transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
    -moz-transform: translateY(-50%);
    -o-transform: translateY(-50%);
}
#kontakt a:hover {
    color: #ffffff;
}
#kontakt img {
    height: 25vw;
    margin: 0 auto;
}
footer {
    background-color: var(--footer-bg);
}
footer p {
    margin: 0;
    color: var(--white);
    text-align: center;
    font-size: 1.5rem;
    padding: 3rem 0;
}
@media screen and (max-width:1600px) {
    #welcome h1 {
        font-size: 7rem;
    }
    #welcome h2 {
        font-size: 3rem;
    }
}
@media screen and (max-width:1400px) {
    :root {
        font-size: 8px;
    }
    #welcome {
        min-height: calc(60vmin - 6.5rem);
    }
    #welcome h1 {
        font-size: 7.5rem;
    }
}
@media screen and (max-width:1255px) {
    :root {
        font-size: 6px;
    }
    #welcome {
        min-height: calc(55vmin - 6.5rem);
    }
}
@media screen and (max-width:950px) {
    :root {
        font-size: 5px;
    }
    #welcome {
        min-height: calc(42vmin - 6.5rem);
    }
}

@media screen and (max-width:800px) {
    :root {
        font-size: 4px;
    }
    #welcome {
        min-height: calc(42vmin - 6.5rem);
    }
}

@media screen and (max-width:640px) {
    :root {
        font-size: 3px;
    }
    #welcome {
        min-height: calc(30svh - 6.5rem);
    }
}

@media screen and (max-width:500px) {
    :root {
        font-size: 4px;
    }
    header nav ul li {
        font-size: 3rem
    }
    #welcome, #uslugi {
        flex-flow: column;
    }
    #welcome {
        padding-bottom: 18rem;
        text-align: center;
    }
    #welcome h1 br {
        display: none;
    }
    #welcome h1 {
        font-size: 8rem;
    }
    #welcome h2 {
        font-size: 3.3rem;
    }
    #welcome img {
        margin-left: auto;
        margin-right: auto;
        margin-top: 10rem;
        height: 45vw;
    }
    #uslugi article {
        min-width: 230px;
        width: calc(100% - 20rem);
        margin: 5rem auto;
        padding: 7rem 5rem;
    }
    #uslugi article img {
        height: 40rem;
    }
    #uslugi article h3 {
        font-size: 5rem;
    }
    #uslugi article .underline {
        margin: 2rem 0;
        width: 33%;
    }
    #uslugi article p {
        font-size: 3rem;
    }
    #kontakt {
        padding-top: 10rem;
        margin-top: 20rem;
    }
    #kontakt div {
        width: max-content;
        max-width: 80%;
    }
    #kontakt img {
        display: none;
    }
    #kontakt a {
        font-size: 4.15rem;
        margin-top: 10rem;
    }
    footer p {
        font-size: 2rem;
    }
}
@media screen and (max-width:400px) {
    #welcome h1 {
        font-size: 7rem;
    }
}
@media screen and (max-width:365px) {
    #welcome h1 {
        font-size: 6.5rem;
    }
}
@media screen and (max-width:340px) {
    :root {
        font-size: 3.5px;
    }
    #uslugi article h3 {
        font-size: 5rem;
    }
    #uslugi article p {
        font-size: 3rem;
    }
}