
body {
    --bs-primary-rgb: 52, 77, 153;
    --bs-mid-rgb: 111, 136, 196;;
    --bs-secondary-rgb: 170, 195, 239;
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-weight: bold;
    gap: 10px; /* Odstęp między logo a tekstem */
}

.navbar-logo {
    height: 25px; /* Dopasowanie wysokości logo */
    width: auto;
    transition: all 0.3s ease-in-out;
}

.navbar-nav .nav-link {
    font-weight: bold;
    color: #344d99;
    transition: color 0.3s ease-in-out, border-bottom 0.3s ease-in-out;
    padding-bottom: 5px;
    position: relative;
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link:hover {
    color: #1d2d66;
}

.navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 100%;
    height: 3px;
    background: rgb(var(--bs-primary-rgb));
    transform: scaleX(0);
    transition: transform 0.3s ease-in-out;
}

.navbar-nav .nav-link.active::after,
.navbar-nav .nav-link:hover::after {
    transform: scaleX(1);
}

.navbar-toggler {
    border: none;
    background: transparent;
    outline: none;
}

.navbar-toggler-icon {
    width: 30px;
    height: 3px;
    background-color: rgb(var(--bs-primary-rgb));
    display: block;
    transition: transform 0.3s ease-in-out;
}

.navbar-toggler span {
    display: block;
    width: 30px;
    height: 3px;
    background: rgb(var(--bs-primary-rgb));
    margin: 6px 0;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.navbar-toggler.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.navbar-toggler.open span:nth-child(2) {
    opacity: 0;
}

.navbar-toggler.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.nav-link-flag {
    position: absolute;
    right: 30px;  /* Przesunięcie na maxa w prawo */
    top: 50%;
    transform: translateY(-50%); /* Wycentrowanie w pionie */
}

.nav-flag-toggler {
    visibility: hidden;
}

@media (max-width: 1199px) {
    .nav-link-flag {
        visibility: hidden;
    }

    .nav-flag-toggler {
        visibility: visible;
    }
}

@media (max-width: 1199px) {

}

.flag-icon {
    border: 0.5px solid rgb(var(--bs-primary-rgb)); /* Szary obrys, żeby flaga nie znikała */
    border-radius: 1px; /* Zaokrąglenie krawędzi */
    height: 15px;
}



.parallax {
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    height: 300px;
}

.info-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease-in-out;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}
.info-card:hover {
    transform: translateY(-10px);
}
.info-card i {
    font-size: 2rem;
    margin-bottom: 15px;
    color: rgb(var(--bs-primary-rgb));
    background: rgba(var(--bs-secondary-rgb), 0.1);
    padding: 20px;
    border-radius: 50%;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.info-card h4 {
    color: rgb(var(--bs-primary-rgb));
}

.equal-height {
    display: flex;
}
.section-image {
    background-size: cover;
    background-position: center;
    height: 300px;
}

@media (max-width: 1199px) {
    .section-image {
        height: 100px;
    }
}

.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: start;
    padding-left: 5%;
    position: relative;
    color: white;
    overflow: hidden;
}
.hero-content {
    z-index: 2;
    max-width: 50%;
    position: relative;
    white-space: nowrap; /* Zapobiega przenoszeniu do nowej linii */
    display: inline-block;
}
@media (max-width: 768px) {

    .hero-section .hero-content {
        white-space: normal;
        max-width: 75%;
    }

    .hero-section .tsd-title {
        font-size: 2rem;
        white-space: nowrap;
    }

    .hero-section h1 {
        font-size: 1.5rem;
    }

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

    .hero-background::after {
        background: linear-gradient(to left, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.5) 75%, rgba(0, 0, 0, 0.2) 100%) !important;
    }

}
.hero-background {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: url('../imgs/hero.jpg') no-repeat center center/cover;
    transform: scaleX(-1);
}
.hero-background::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to left, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
}

.scroll-down {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    z-index: 1000; /* Ensure it appears above other elements */
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
    }
    40% {
    transform: translateX(-50%) translateY(-10px);
    }
    60% {
    transform: translateX(-50%) translateY(-5px);
    }
}

.tsd-title {
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: rgb(var(--bs-secondary-rgb));
}

/* Typing effect */
.typing-animation {
    display: inline-block;
    white-space: nowrap;
    border-right: 0.15em solid rgb(var(--bs-secondary-rgb)); /* Cursor */
    padding-right: 4px;
    font-size: inherit;
    vertical-align: baseline
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: rgb(var(--bs-secondary-rgb)); }
}

#start .lead {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
}

#start .lead.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.scroll-down {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 2s ease-in-out, transform 2s ease-in-out;
}

.scroll-down.fade-in {
    opacity: 1;
    transform: translateY(0);
}


/* About headers */

.about-header {
    border-radius: 5px 5px 0px 0px;
    background: rgb(var(--bs-primary-rgb));
    padding: 20px 0px 20px 0px;
    text-align: center;
    
}

.about-header h2 {
    font-size: 2.5rem;
    font-weight: bold;
}

.about-header i {
    margin-top: 10px;
}

.subheading {
    font-style: italic;
    margin: 0px;
}

/* Kontener główny */
#about .about-content {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background: white;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    border-radius: 8px;
    overflow: hidden;
    
    padding: 20px;
}

.tab-section {
    background: white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.tab-list {
    display: flex;
    justify-content: space-around;
    width: 100%;
    margin-top: 50px;
    padding-top: 20px;
}

.tab-content {
    display: none;
    padding: 50px 100px 50px 100px;
    width: 100%;
    text-align: center;
    font-size: 1.2rem;
    opacity: 0;
    transition: opacity 0.15s ease-in-out;
}

.tab-content.active {
    display: flex;
    opacity: 1;
}

.tab-icon {
    flex: 1;
}
.tab-icon i {
    font-size: 4rem;
    text-align: center;
    color: rgb(var(--bs-primary-rgb));
    background: rgba(var(--bs-secondary-rgb), 0.1);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    padding: 50px;

}

.tab-text {
    flex: 4;
    text-align: center;
    font-size: 1.2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.tab-content blockquote {
    font-style: italic;
    border-left: 4px solid rgb(var(--bs-secondary-rgb));
    padding-left: 15px;
    margin: 20px 0;
    color: gray;
}

.tab-button {
    padding: 10px;
    cursor: pointer;
    border: none;
    background: none;
    font-size: 1.6rem;
    font-weight: bold;
    color: rgb(var(--bs-mid-rgb));
    position: relative;
    transition: color 0.3s ease-in-out;
}

.tab-button::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -5px; /* Odstęp od tekstu */
    width: 0;
    height: 3px;
    background: rgb(var(--bs-secondary-rgb));
    transition: width 0.3s ease-in-out, left 0.3s ease-in-out;
}

.tab-button.active {
    color: rgb(var(--bs-primary-rgb));
}

.tab-button.active::after {
    width: 80%; /* Pełna szerokość podkreślenia */
    left: 10%; /* Centrowanie */
}

/* Nagłówki */
#about h3 {
    font-size: 1.6rem;
    font-weight: bold;
    text-align: center;
    color: rgb(var(--bs-primary-rgb));
    position: relative;
    padding-bottom: 10px;
}

/* Podkreślenie nagłówka */
#about h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 2px;
    background: rgb(var(--bs-secondary-rgb));
    border-radius: 2px;
}

/* Cytaty */
#about .about-content blockquote {
    font-style: italic;
    border-left: 4px solid rgb(var(--bs-secondary-rgb));
    padding-left: 15px;
    margin: 20px 0;
    color: gray;
}

/* Responsywność */
@media (max-width: 1199px) {

    .tab-button {
        width: 100%;
        text-align: center;
        font-size: 1rem;
    }

    .tab-content {
        padding: 20px;
    }

    .tab-icon {
        display: none;
    }

    .tab-list {
        padding-top: 0px;
    }
}

@media (max-width: 768px) {

}

/*
    What we do
*/

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Dwie kolumny */
    gap: 20px 20px; /* Większy odstęp między elementami */
    margin-top: 50px;
    text-align: left; /* Utrzymuje czytelność tekstu */
    padding-left: 0px;
}

.services-grid li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    list-style: none;
    padding: 30px;

    background: white;
    transition: transform 0.2s ease-in-out;

    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.services-grid li:hover {
    transform: translateY(-3px);
}

.services-grid li i {
    color: rgb(var(--bs-secondary-rgb));
    font-size: 2.5rem !important;
    flex-shrink: 0;
    margin-top: 5px;
}

.service-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.services-grid h4 {
    font-weight: bold;
    text-align: center;
    position: relative;
    padding-bottom: 0px;
    margin-bottom: 0px;
    color: rgb(var(--bs-primary-rgb));
}

.services-grid h5 {
    font-style: italic;
    text-align: center;
    position: relative;
    padding-bottom: 10px;
    color: rgb(var(--bs-primary-rgb));
}

.service-text p {
    font-size: 1rem;
    color: #555;
    line-height: 1.5;
    margin: 0;
    text-align: justify;
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr; /* Jedna kolumna na mobilnych */
    }
}

/*
    Footer
*/

footer {
    background: #131a22;
    color: white;
    padding: 50px 0;
}

footer h5 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

footer p {
    margin-bottom: 5px;
}

footer blockquote {
    border-left: 4px solid rgba(255, 255, 255, 0.2);
    padding-left: 10px;
    margin-top: 10px;
    font-style: italic;
}

@media (max-width: 768px) {
    footer .footer-2 {
        padding-top: 30px;
        padding-bottom: 30px;
    }
}

@media (max-width: 1199px) {
    .hide-responsive {
        display: none;
    }
}