* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Quicksand", sans-serif;
}

body {
    margin: 0;
    background-repeat: no-repeat;
    background-color: #ffffff;
    background-size: cover;
    color: #fff;
    padding: 0;
    overflow-x: hidden;
}
 .text {
    text-align: center;
}

.specialist {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 15px;
}

.specialist__title {
    text-align: center;
    margin-bottom: 50px;
}

.specialist__title--accent {
    color: #333;
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.specialist__title--accent::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #333;
}

.specialist__card {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.card-wrapper {
    width: 350px;
    perspective: 1000px;
}

.card {
    position: relative;
    width: 100%;
    height: 450px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s;
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgb(253, 179, 64);
    border: 2px solid #FFA500
}

.card-image {
    width: 100%;
    height: 100%;
    transition: filter 0.5s;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card:hover .card-image img {
    filter: brightness(60%);
}

.social-icons {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    opacity: 0;
    transition: opacity 0.5s;
}

.card:hover .social-icons {
    opacity: 1;
}

.social-icons li {
    list-style: none;
    margin: 0 10px;
}

.social-icons li a {
    display: flex;
    width: 50px;
    height: 50px;
    background-color: white;
    border-radius: 50%;
    justify-content: center;
    align-items: center;
    color: #333;
    transition: all 0.3s;
}

.social-icons li a:hover {
    background-color: #333;
    color: white;
}

.social-icons li a i {
    font-size: 24px;
}

.details {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 15px;
    text-align: center;
    transition: transform 0.5s;
}
.details h2 {
    padding-bottom: 10px;
}

.card:hover .details {
    transform: translateY(70%);
}

.details h2 {
    color: #333;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.details .job-title {
    display: block;
    color: #666;
    font-size: 0.9rem;
    font-weight: 400;
    max-height: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-download {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 30px;
    background-color: #ffffff; /* Białe tło */
    color: #000000; /* Czarny tekst */
    text-decoration: none;
    border: 2px solid #000000; /* Czarne obramowanie */
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease; /* Płynna animacja */
    cursor: pointer;

}

.btn-download:hover {
    background-color: #000000; /* Czarne tło */
    color: #ffffff; /* Biały tekst */
}


body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: -1;
    pointer-events: none;
    padding: 0;
    margin: 0;
}


section {
    background-color: rgb(17, 16, 16);
    color: white;
    padding: 20px;
    margin: 0;
}

#map {
    height: 400px;
    width: 100%;
    margin: 0;
}

a {
    text-decoration: none;
    color: inherit;
}

a:focus,
a:active {
    outline: none;
}

.container {
    width: 50%;
    margin: 0 auto;
}
.container h2 {
    padding-bottom: 10px;
    font-size: 2rem;
}
.container__button {
    margin-top: 25px;
    padding: 0.8rem 1.6rem;
    background-color: transparent;
    color: #FFA500;
    border: 2px solid #FFA500;
    border-radius: 8px;
    font-size: 1.4rem;
    cursor: pointer;
    position: relative;
    z-index: 9999;
    transition: all 0.3s ease-in-out;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    overflow: hidden;
}

.container__button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 165, 0, 0.8), rgba(255, 210, 62, 0.8));
    transition: all 0.4s ease-in-out;
}

.container__button:hover {
    background-color: #FFA500;
    color: #131212;
    border-color: rgba(255, 165, 0, 0.8);
}

.container__button:hover::before {
    left: 100%;
}

.container__button:active {
    transform: scale(0.95);
}


.hero {
    position: relative;
    background: url('../img/backgrounds/background.jpeg') no-repeat center center/cover;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    font-family: 'CARMILA', sans-serif;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.5);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.btn {
    background-color: #ffffff;
    color: black;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 10px;
    font-weight: bold;
    transition: background-color 0.3s;
    margin-top: -10px;
}

.btn:hover {
    background-color: #3b3b3b;
}

.container {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}


.benefits__wrapper {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.benefits__item {
    flex: 1;
    min-width: 200px;
    max-width: 200px;
 
    text-align: center;
}

.benefits__item img {
    width: 150px;
    height: 150px;
   
    
    margin-bottom: 10px;
}


.benefits__item h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #000000;
    letter-spacing: 1px;
}

.benefits__item p {
    font-size: 16px;
    color: #181818;
    margin-bottom: 5px;
    margin: 10px;
    letter-spacing: 0.5px;
}
#benefits {
    background-color: #f5f5f5; /* Ustawienie tła sekcji */
    margin: 0;
}


.navbar {
    
    width: 100%;
    padding: 2rem 0;
    position: fixed;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
     background-color: rgba(0, 0, 0, 0.1);
}



/* Utrzymanie poprzedniego stylu menu */
.navbar ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
}

.navbar li {
    margin: 0 1rem;
}

.navbar a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
    font-size: 1.125rem;

}

.navbar a:hover {
    color: #FFA500;
}


section {
    padding: 5rem 0;
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.about,
.services,
.projects,
.contact {
    margin: 0;
    padding: 10vh 0;
    text-align: center;
    display: flex;
}

.image-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    z-index: 3;
}

.image-box {
    overflow: hidden;
    position: relative;
    width: 100%;
    height: 200px; 
    background-color: rgba(0, 0, 0, 0.44)
    
}

.image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: rgba(0, 0, 0, 0.44)
}


.overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.842);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: bottom 0.5s ease-in-out;
}

.image-box:hover .overlay {
    bottom: 0;
}


.project-item h3 a {
    text-decoration: none;
    color: inherit;
}

#cert {
    padding: 50px 0;
    background-color: #f9f9f9;
}



#cert h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #141414;
}


.text h2 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #141414;
    
}

.text p {
    font-size: 16px;
    color: #555;
}

/* Responsywność */
@media (max-width: 768px) {
    .navbar
    {
        font-size: 0.80rem;
    }
    .navbar a {
        font-size: 1rem;
    }
    .image-text
{
    font-size: 0.90rem;
}
    .cert-item {
        flex-direction: column;
        text-align: center;
    }
    .benefits__wrapper {
        justify-content: space-around;
    }
    .cert-images {
        flex-direction: column;
        gap: 10px;
    }

    .text {
        text-align: center;
    }
}


.opinions {
    padding: 60px 20px;
    background: rgb(138,144,143);
    background: radial-gradient(circle, rgba(138,144,143,1) 22%, rgba(122,126,123,1) 54%);
    margin:0;
}

.opinions h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
}

.opinions-wrapper {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.opinion-box {
    flex: 1 1 calc(33.333% - 20px);
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.opinion-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.opinion-text {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 15px;
    color: #333;
}

.opinion-author {
    font-weight: bold;
    color: #FFA500;
    font-size: 14px;
}

@media (max-width: 992px) {
    .opinion-box {
        flex: 1 1 100%;
    }
}

.contact {
    padding: 5rem 0;

    text-align: center;
    color: #222;
    background-color: #fff;
}

.contact-content {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    margin-top: 3rem;
    justify-content: center;
}

.contact-left {
    flex: 1;
    margin-right: 4rem;

}
.contact-left p{
   padding: 5px 0;

}

.contact-left img {
    max-width: 300px;
    max-height: 300px;

    border-radius: 5%;
    margin-top: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-left img:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

.contact-right {
    max-width: 600px;
    text-align: left;
}

.contact-right p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: #fff;
}

.contact-details {

    padding: 1rem;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-top: 1rem;
    text-align: center;
}

.contact-details p {
    margin: 0;
    font-size: 1.2rem;
    color: #fff;
}

.contact-details p strong {
    margin-right: 0.5rem;
}

.animate.animated {
    opacity: 1;
    transform: translateY(0);
}

.more-projects-section {

    display: flex;
    justify-content: center;
    align-items: center;
}

/* Styl dla większego przycisku */
.more-projects-button {
    font-size: 16px; /* Zwiększenie rozmiaru czcionki */
    color: #ffffff;
    background: linear-gradient(135deg, #141414, #0c0c0c); /* Gradient kolorów */
    border: none;
    border-radius: 50px; /* Zaokrąglone krawędzie */
    padding: 10px 20px; /* Zwiększenie rozmiaru przycisku */
    text-decoration: none;
    display: inline-block;
    transition: all 0.4s ease; /* Płynne przejście przy każdej zmianie */
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1); /* Dodanie większego cienia */
    font-weight: bold;
    cursor: pointer;
    min-width: 10px; /* Minimalna szerokość przycisku */
    min-height: 10px; /* Minimalna wysokość przycisku */
    text-align: center; /* Wyrównanie tekstu do środka */
}

/* Efekt na hover */
.more-projects-button:hover {
    background: linear-gradient(135deg, #bdbdbd, #ffffff); /* Zmiana kierunku gradientu */
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.2); /* Większy cień */
    transform: translateY(-5px); /* Przesunięcie przycisku w górę */
    color: #000000;
}

/* Efekt świetlisty */
.more-projects-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 300%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent 70%);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.5s ease;
    border-radius: 50%;
    z-index: 0; /* Element znajduje się za tekstem */
}

/* Aktywacja efektu świetlnego na hover */
.more-projects-button:hover::before {
    transform: translate(-50%, -50%) scale(1);
}

/* Stylowanie tekstu na przycisku */
.more-projects-button span {
    position: relative;
    z-index: 1; /* Tekst jest na wierzchu */
    display: inline-block;
}


#scrollToTopBtnWrapper {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

#scrollToTopBtn {
    background-color: #0f0f0f;
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#scrollToTopBtn:hover {
    background-color: #0f0f0f;
    box-shadow: 0px 8px 16px rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}


.arrow-up {
    width: 0;
    height: 0;
    border: solid white;
    border-width: 0 3px 3px 0;
    display: inline-block;
    padding: 3px;
    transform: rotate(-135deg);
    -webkit-transform: rotate(-135deg);
}

#scrollToTopText {
    margin-right: 10px;
    color: #555;
    font-size: 14px;
    display: inline-block;
    line-height: 40px;
}



.enlarged-img {
    max-width: 70%;
    max-height: 70%;
    object-fit: contain;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.7);
}


.about .rozwin {
    display: none;
    max-height: 0;

}

.about {
    text-align: left;
    padding: 60px 0;
    background: rgb(138,144,143);
    background: radial-gradient(circle, rgba(138,144,143,1) 22%, rgba(122,126,123,1) 54%);
}
.about-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 75px;
    max-width: 1200px;
    margin: 0 auto;
}

.about-text {
    flex: 1;
    max-width: 600px;
}
.about-text span {
    color: #FFA500;
}
.about-image {
    flex: 1;
    max-width: 500px;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.1);
}

.about h2, 
.about h3, 
.about p {
    text-align: left;
    letter-spacing: 1px;
}

.about .points {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 20px;
}

.about p {
    font-size: 16px;
    line-height: 1.6;
}

.about h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

.about h3 {
    font-size: 22px;
    margin-top: 30px;
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .about-wrapper {
        flex-direction: column;
        text-align: center;
    }
    
    .about-text, .about-image {
        max-width: 80%;
    }
    .about-text p {
        padding-top: 0.25rem;
    }
    .about-image img {
        width: 100%;
        margin: 0 auto;
    }
}



/* Styl dla sekcji "więcej projektów" */
.expand-section {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Styl dla większego przycisku */
.expand {
    font-size: 16px; /* Zwiększenie rozmiaru czcionki */
    color: #ffffff;
    background: linear-gradient(135deg, #141414, #0c0c0c); /* Gradient kolorów */
    border: none;
    border-radius: 50px; /* Zaokrąglone krawędzie */
    padding: 10px 20px; /* Zwiększenie rozmiaru przycisku */
    text-decoration: none;
    display: inline-block;
    transition: all 0.4s ease; /* Płynne przejście przy każdej zmianie */
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1); /* Dodanie większego cienia */
    font-weight: bold;
    cursor: pointer;
    min-width: 10px; /* Minimalna szerokość przycisku */
    min-height: 10px; /* Minimalna wysokość przycisku */
    text-align: center; /* Wyrównanie tekstu do środka */
}


/* Efekt po najechaniu */
.expand:hover {
    background: linear-gradient(135deg, #bdbdbd, #ffffff); /* Zmiana kierunku gradientu */
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.2); /* Większy cień */
    transform: translateY(-5px); /* Przesunięcie przycisku w górę */
    color: #000000;
}

.expand::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 300%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent 70%);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.5s ease;
    border-radius: 50%;
    z-index: 0; /* Element znajduje się za tekstem */
}

.expand:hover::before {
    transform: translate(-50%, -50%) scale(1);
}


.expand:active {
    background-color: #0d0d0d;
    color: #e0e0e0;
    transform: translate(-50%, -50%) scale(0.98);
}


.expandable {
    max-height: 500px;
    transition: max-height 2s ease-in-out;

}

.invest-images {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;

}

.invest-images img {
    width: 32%;
    margin: 0 1%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.8s ease, border-color 0.8s ease, box-shadow 0.8s ease;
}

.invest-images img:hover {
    transform: scale(1.1);
    box-shadow: 0px 0px 15px 5px rgba(10, 10, 10, 0.7);
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    .hero h2 {
        font-size: 1.5rem;
    }
    .hero p {
        font-size: 1.3rem;
    }
    .container__button {
        margin-top: 25px;
        padding: 0.7rem 1.5rem;
        border-radius: 6px;
        font-size: 1.1rem;
    }

    .navbar ul {
        flex-direction: row;

    }

    .navbar-logo img {
        left: 5px;
        height: 20%;
        margin-top: 100px;
        margin-left: 2px;
    }

    .navbar li {
        margin: 0 15px;
    }

    .container {
        width: 90%;
    }

    .service-item {
        flex-direction: column;
        text-align: center;
    }

    .project-images {
        flex-direction: column;
    }
    .container p {
        font-size: 0.9rem;
    }

    .project-images img {
        width: 100%;
    }
    .image__overlay p {
        font-size: 0.9rem;
    }
    .image-container {
        width: 90%;
        margin: 3vh auto;
    }

    .contact-content {
        flex-direction: column;
        align-items: center;
        font-size: 0.9rem;
    }

    .contact-left {
        margin-right: 0;
        margin-bottom: 2rem;
    }

    .contact-left img {
        max-width: 100%;
        height: auto;
    }
    .btn, .more-projects-button, .expand {
        font-size: 14px;
        padding: 8px 16px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .container {
        width: 95%;
    }

    .service-item {
        padding: 10px;
    }

    .project-images img {
        height: 200px;
    }

    .contact-content {
        margin-top: 2rem;
    }

    .contact-left {
        margin-bottom: 1rem;
    }
    .btn, .more-projects-button, .expand {
        font-size: 12px;
        padding: 6px 12px;
    }
}
