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

::-webkit-scrollbar {
    width: 12px; 
}

::-webkit-scrollbar-thumb {
    background-color: #CC050D; 
    border-radius: 4px; 
    border: 3px solid #ffffff; 
}

::-webkit-scrollbar-track {
    background-color: #e7e5e5;
}

::-webkit-scrollbar-horizontal {
    height: 12px;
}

::-webkit-scrollbar-thumb:horizontal {
    background-color: #CC050D;
    border-radius: 10px;
}

::-webkit-scrollbar-track:horizontal {
    background-color: #f1f1f1;
}

html {
    scroll-behavior: smooth; 
}

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    background-color: #f4f4f4;
}

.firm-queue-slider {
  padding: 60px 20px;
  text-align: center;
  background: #f5f5f5;
}

.firm-queue-title {
  font-size: 32px;
  margin-bottom: 20px;
}

.firm-queue-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 30px;
}

.firm-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
  transition: background 0.3s;
}

.firm-dot.active {
  background: #333;
}

.firm-queue-list {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.firm-box {
  display: none;
  background: white;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.firm-box.active {
  display: block;
}

.main-image-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

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

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.6);
}

.logo-container {
    position: absolute;
    width: 100%; 
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
}

.logo-container img {
    max-width: 100%;
    height: auto;
}

.text-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    color: rgb(0, 0, 0);
    text-align: center;
    font-family: Arial, sans-serif;
    animation: slide-in 2s ease-out;
}

.text-container h1 {
    font-size: 3rem;
    margin: 0;
}

.text-container p {
    font-size: 1.5rem;
    margin: 0;
}

@keyframes slide-in {
    from {
        transform: translate(-50%, 50%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%);
        opacity: 1;
    }
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(204, 5, 13, 0.8); 
    padding: 15px 50px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s, color 0.3s;
}

.navbar.scrolled {
    background-color: rgba(0, 0, 0, 0); 
}

.navbar.scrolled a {
    color: black; 
}

.navbar.scrolled a::after {
    background-color: #CC050D; 
}

.navbar a {
    color: white;
    padding: 14px 20px;
    text-decoration: none;
    text-align: center;
    position: relative;
}

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

.navbar a::after {
    content: '';
    display: block;
    height: 4px; 
    background-color: #ffffff; 
    position: absolute;
    left: 0;
    right: 0;
    bottom: -5px;
    transform: scaleX(0);
    transition: transform 0.3s ease, background-color 0.3s;
}

.navbar-links a:last-child {
    border-bottom: none; /* Brak linii pod ostatnim linkiem */
}

.navbar a:hover::after,
.navbar a.active::after {
    transform: scaleX(1); 
}

.logo img {
    height: 40px;
    transition: filter 0.3s ease;
}

.navbar.scrolled .logo img {
    filter: invert(1); 
}

.navbar-links {
    display: flex;
    flex-direction: row;
    transition: transform 0.3s ease;
}

.navbar-links a {
    margin-right: 10px;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    height: 20px;
    width: 30px;
    cursor: pointer;
    z-index: 1100;
    margin-left: auto; 
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 768px) {
    .logo {
        display: none;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px 20px;
        background-color: rgba(204, 5, 13, 0.8); 
    }

    .hamburger {
        display: flex;
    }

    .navbar-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: rgba(204, 5, 13, 0.8);
        position: absolute;
        top: 39.5px;
        left: 0;
        z-index: 999;
    }

    .navbar-links.open {
        display: flex;
    }

    .navbar.scrolled {
        background-color: rgba(204, 5, 13, 0.8); 
    }
    
    .navbar.scrolled a {
        color: rgb(255, 255, 255); 
    }

    .navbar.scrolled a::after {
        background-color: #ffffff; 
    }

    .navbar a:hover::after,
    .navbar a.active::after {
        display: none;
    }

    .navbar-links a {
        margin: 10px 0;
        text-align: left;
        padding: 10px 20px;
    }
}

.about-section {
    padding: 50px 20px;
    background-color: #ffffff;
    width: 100%;
    max-width: 1200px;
    margin: 100px auto 50px;
    text-align: center;
    border-radius: 8px;
}

.about-section p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #333;
}

.fleet-section {
    padding: 60px 20px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.fleet-category {
    margin-bottom: 70px;
}

.fleet-category h3 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: #333;
    font-weight: 500;
}

.fleet-category i {
    font-size: 2rem;
    color: #CC050D;
    margin-bottom: 15px;
}

.fleet-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 20px;
    justify-content: center;
}

.fleet-item {
    background-color: #ffffff;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center; 
}

.fleet-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.15);
}

.fleet-bar {
    background-color: #CC050D;
    height: 4px; 
    margin-top: 0px; 
}

.fleet-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    margin-bottom: 15px;
    border-radius: 8px;
}

.fleet-item h4 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: #333;
}

.fleet-item p {
    font-size: 1rem;
    color: #666;
    margin-top: 12px;
}

.fleet-count {
    font-size: 2rem; 
    font-weight: bold;
    color: #CC050D; 
    margin: 10px 0; 
}

.recruitment-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 0 20px;
}

.recruitment-column {
    flex: 1 1 200px;
    max-width: 400px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

#recruitment {
    text-align: center;
}

.column-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
    text-align: center;
    font-weight: bold;
}

.recruitment-column p {
    margin: 5px 0;
    padding: 7px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    display: flex;
    align-items: center;
    font-size: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.recruitment-column p i {
    margin-right: 10px;
    color: #CC050D; 
}

.recruitment-column p:not(:last-child) {
    margin-bottom: 8px;
}

.recruitment-button {
    margin-top: 30px;
    text-align: center;
}

.discord-button {
    display: inline-flex;
    align-items: center;
    background-color: #CC050D; 
    color: white;
    font-size: 1.2rem;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.discord-button:hover {
    background-color: rgb(150, 45, 45); 
}

.discord-button i {
    margin-right: 10px;
    font-size: 1.5rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
    margin: 0 auto; 
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #CC050D; 
}

.gallery-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 50px 20px;
    text-align: center;
}

.gallery-description {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #333;
}

.gallery-preview {
    position: relative;
    margin-bottom: 30px;
    overflow: hidden;
}

.gallery-preview img {
    max-width: 100%;
    position: relative;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: block;
    z-index: 1;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
    z-index: 10; 
}

.button {
    font-size: 1.5rem;
    padding: 15px 30px;
    background-color: #333;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    z-index: 11;
}

.button:hover {
    background-color: #CC050D;
}

.contact-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 50px 20px;
    text-align: center;
}

.contact-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.contact-icon {
    font-size: 2rem;
    color: #333;
    transition: color 0.3s ease;
}

.contact-icon:hover {
    color: #CC050D;
}

.contact-location {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 1.8rem;
    color: #333;
}

#contact-form {
    max-width: 600px;
    margin: 40px auto;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: left; 
}

.contact-section p {
    font-family: 'Poppins', sans-serif; 
    font-size: 1.2rem; 
    font-weight: 600; 
    color: #333; 
    margin-top: 20px; 
    margin-bottom: 30px; 
    line-height: 1.5; 
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    font-size: 1rem;
    color: #333;
    display: block;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    margin-top: 5px; 
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #CC050D;
    outline: none;
    box-shadow: 0 0 5px rgba(204, 5, 13, 0.5);
}

.form-group textarea {
    resize: vertical;
}

button[type="submit"] {
    background-color: #CC050D;
    color: #fff;
    font-size: 1.2rem;
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 20px; 
}

button[type="submit"]:hover {
    background-color: #9b040b;
}

button[type="submit"]:active {
    background-color: #7a0309;
}

@media (max-width: 767px) {
    #contact-form {
        padding: 20px;
    }

    .form-group label {
        font-size: 0.9rem; 
    }

    button[type="submit"] {
        padding: 12px 20px; 
    }
}

@media (max-width: 1024px) {
    #contact-form {
        width: 80%; 
    }
}

.statistics-section {
    text-align: center;
    margin-top: 50px;
    margin-bottom: 50px; 
}

.statistics-section .container {
    display: flex;
    justify-content: center; 
    align-items: center;
    gap: 50px; 
    width: 100%;
}

.statistic-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 200px;
    height: 200px;
    border: 2px solid #ccc;
    border-radius: 10px;
    background-color: #f9f9f9;
}

.stat-icon {
    font-size: 3rem;
    color: #333;
    margin-bottom: 10px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #CC050D;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1rem;
    color: #777;
}

@media (max-width: 767px) {
    .statistics-section .container {
        display: block;
        text-align: center;
    }

    .statistic-item {
        margin-bottom: 20px; 
        width: 80%; 
        max-width: 400px; 
        margin-left: auto; 
        margin-right: auto; 
    }
}

.footer {
    background-color: #333;
    color: white;
    padding: 20px 0;
    text-align: center;
    font-size: 1rem;
}

.footer p {
    margin: 5px 0;
}

.footer p:first-of-type {
    font-weight: bold;
}

.footer a {
    text-decoration: none;
    color: #9b9b9b;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

.footer a:hover {
    color: #CC050D;
    text-decoration: underline;
}

.footer a:focus {
    outline: none;
    text-decoration: underline;
}

#history {
    background-color: #f4f4f4;
    padding: 40px 0;
    text-align: center;
    overflow-x: hidden; 
}

.history-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-sizing: border-box;
}

.history-tagline {
    font-size: 1.4rem;
    color: #000000;
    font-weight: bold;
    margin-bottom: 30px;
}

.timeline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    width: 100%;
    margin-top: 40px;
    padding: 0 20px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #ddd;
    transform: translateY(-50%);
}

.timeline-event {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    max-width: 200px; 
    text-align: center; 
}

.dot {
    width: 20px;
    height: 20px; 
    border-radius: 50%;
    background-color: #CC050D; 
    border: 3px solid #fff; 
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); 
    position: relative; 
    z-index: 1; 
    flex-shrink: 0; 
}


.event-description {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #555;
    text-align: center;
    word-wrap: break-word;
}

@media (min-width: 769px) {
    .logo-container img {
        width: 800px; 
    }
}

@media (max-width: 768px) {
    .logo-container img {
        width: 100%;
    }
    
    .timeline {
        flex-direction: column;
        align-items: flex-start;
        margin-left: 30px; 
        padding: 0;
    }

    .timeline::before {
        top: 0;
        left: 25px;
        width: 2px;
        height: 100%;
        background-color: #ddd;
        transform: none;
    }

    .timeline-event {
        flex-direction: row;
        align-items: center;
        margin-bottom: 30px;
        position: relative;
        text-align: left;
    }

    .dot {
        margin-right: 15px; 
        position: relative;
        z-index: 1; 
    }

    .event-description {
        text-align: left;
        font-size: 0.78rem;
    }
}

.section {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

.logo-link {
    text-decoration: none; 
}

