* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    font-family: "Poppins", sans-serif;
}
.container {
    
    background: linear-gradient(to right, #e2e2e2, #555);
}

.loader-wrapper {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
}
.loader {
    display: inline-block;
    width: 30px;
    height: 30px;
    position: relative;
    border: 4px solid #37a1f2;
    /* border-radius: 45%; */
    top: 50%;
    animation: loader 2s infinite ease;
}

.loader-inner {
    vertical-align: top;
    display: inline-block;
    width: 100%;
    background-color: #37a1f2;
    animation: loader-inner 2s infinite ease-in;
}

@keyframes loader {
    0% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(180deg);
    }
    50% {
        transform: rotate(180deg);
    }
    75% {
        transform: rotate(360deg);
    }
    100% {
        transform: rotate(360deg);
    }
} 

@keyframes loader-inner {
    0% {
        height: 0%;
    }
    25% {
        height: 0%;
    }
    50% {
        height: 100%;
    }
    75% {
        height: 100%;
    }
    100% {
        height: 0%;
    }
}

.service {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
    padding: 20px 9%;
    text-align: center;
    color: #333;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px 10%;
    display: flex;
    background: transparent;
    align-items: center;
    z-index: 100;
}

.logo {
    font-size: 26px;
    color: #333;
    font-weight: 600;
    margin-right: auto;
}

.logo:hover {
    cursor: wait;
}

.logo img {
    margin-right: auto;
    height: 100px;
    margin-bottom: -50px;
    background-color: rgba(3, 3, 3, .5);
    border-radius: 15px;
}
.toggle-icon {
    font-size: 24px;
    cursor: pointer;
    margin-left: 10px;
}

.navbar {
    padding: 10px;
    border-radius: 8px;
    background-color: rgba(0, 0, 0, .2);
    border: 2px solid #37a1f2;
}

.navbar a {
    font-size: 18px;
    color: #111;
    font-weight: 500;
    margin-right: 35px;
    transition: .3s;
}

.navbar.active {
    display: flex;
}

.navbar a:first-child {
    margin-left: 35px;
}

.navbar a:hover,
.navbar a.active {
    color: #59b1f2;
}

.service .heading {
    font-size: 40px;
    margin-bottom: 20px;
}

.service .wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.wrapper .box {
    padding: 30px 20px;
    background: #e2e2e2;
    border-radius: 10px;
}

.wrapper .box:hover {
    transform: scale(1.03);
    box-shadow: 0 0 20px rgba(0, 0, 0, 2);
    transition: .4s;
}

.box i {
    font-size: 60px;
    color: #37a1f2;
}

.box h2 {
    font-size: 25px;
}

.box p {
    margin: 10px 0 18px;
    text-align: justify;
}

.menu-icon {
    display: none;
    font-size: 30px;
    cursor: pointer;
    color: white;
    position: absolute;
    right: 10px;
    top: 15px;
}

.box .btn {
    display: inline-block;
    padding: 8px 20px;
    background: #37a1f2;
    border: 2px solid #37a1f2;
    border-radius: 6px;
    color: #fff;
    font-weight: 500;
    transition: .3s;
}

.box .link {
    text-decoration: none;
}

.box .btn:hover {
    background-color: transparent;
    color: #37a1f2;
    cursor: pointer;
}

/* dark mode */

#dark-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to right, #000, #15202b);
    color: #f0f3fd;
}

#dark-container .logo,
#dark-container .home-content p a,
#dark-container .navbar a {
    color: #f0f3fd;
}

#dark-container .navbar a:hover,
#dark-container .navbar a.active {
    color: #37a1f2;
}

#dark-container .navbar {
    border: 2px solid #37a1f2;
}

#dark-container .service h1 {
    color: #fff;
}

#dark-container .service .box {
    color: #fefefe;
    background-color: #222;
}

#dark-container .service .box i {
    color: #37a1f2;
}

#dark-container .service .box .btn {
    background-color: #37a1f2;
    border:2px solid #37a1f2;
    color: #111;
}

/* #container, */
#dark-container {
    clip-path: circle(0% at 0 0);
    transition: 1.5s;
}

#dark-container .navbar.active {
    display: flex;
    z-index: 2;
}


.active#container,
.active#dark-container {
    z-index: 1;
    clip-path: circle(150% at 0 0);
    transition: 1.5s cubic-bezier(0.645, 0.045, 0.355, 1);
    transition-delay: 0s;
}

/* dostosowanie ekranu */

@media screen and (max-width: 1160px) {
    .menu-icon {
        display: block;
    }

    .toggle-icon {
        position: absolute;
        top: 15px;
        left: 10px;
    }

    .navbar {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.9);
        padding: 10px;
        text-align: center;
        z-index: 10;
    }

    .navbar a {
        display: block;
        margin: 10px 0;
        color: #f0f3fd;
    }

    #check:checked ~ .navbar {
        display: flex;
    }

    .header {
        flex-direction: column;
        align-items: center;
        padding: 15px 5%;
    }

    .logo img {
        height: 80px;
        margin-bottom: 0;
    }
}
@media screen and (max-width: 992px) {
    .service {
        padding: 20px 5%;
    }
    .logo {
        visibility: hidden;
    }
    .header {
        margin-bottom: 10px;
    }

    .navbar {
        display: none; /* Domyślnie ukryte */
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.9);
        padding: 10px;
        text-align: center;
        z-index: 10;
    }
    
    .navbar a {
        display: block;
        margin: 10px 0;
        color: #f0f3fd;
    }
}

@media screen and (max-width: 350px) {
    .service .wrapper {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
        .header {
            padding: 10px 5%;
        }

        .logo {
            display: none;
        }
        
        .social-media {
            gap: 10px;
        }
        
        .social-media a {
            width: 35px;
            height: 35px;
            font-size: 18px;
        }
        
        .home-img img {
            width: 80%;
        }
}