/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #0c0c0c;
    color: #e5e5e5;
    font-family: "Inter", sans-serif;
}

/* NAVIGATION */
.nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    z-index: 100;
}

.nav a {
    margin-left: 30px;
    color: #aaa;
    text-decoration: none;
    transition: 0.2s;
}

.nav a:hover {
    color: #fff;
}

/* HERO */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px;
}

.hero h1 {
    font-size: 56px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
    color: #bbb;
    margin-bottom: 40px;
}

.btn {
    padding: 14px 32px;
    border-radius: 6px;
    background: #1e88e5;
    color: #fff;
    text-decoration: none;
    margin: 10px;
    display: inline-block;
    transition: 0.2s;
}

.btn.secondary {
    background: transparent;
    border: 2px solid #1e88e5;
    color: #1e88e5;
}

.btn:hover {
    background: #42a5f5;
}

/* SECTIONS */
.section {
    padding: 120px 40px;
}

.section-title {
    font-size: 36px;
    margin-bottom: 40px;
}

/* PROJECT GRID */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(460px, 1fr));
    gap: 40px;
    max-width: 4 * 460px; /* opcjonalnie ograniczenie szerokości */
}



.project-card {
    background: #141414;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #222;
    cursor: pointer;
    transition: 0.25s;
}

.project-card:hover {
    transform: translateY(-6px);
    border-color: #1e88e5;
}

.thumb {
    width: 100%;
    aspect-ratio: 3440 / 1440;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 15px;
}

/* MODAL */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.95);
}

.mySlides {
    display: none;
    text-align: center;
}

.slide-img {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 6px;
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    padding: 16px;
    color: #fff;
    font-size: 40px;
    transform: translateY(-50%);
}

.prev { left: 20px; }
.next { right: 20px; }

/* FOOTER */
.footer {
    text-align: center;
    padding: 40px;
    color: #666;
}

.slide-video {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 6px;
}

.mySlides-blue,
.mySlides-mat,
.mySlides-opt,
.mySlides-env,
.mySlides-vehicles {
    display: flex !important;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 80vh; /* lub auto, jeśli wolisz */
}
.slide-img,
.slide-video {
    max-width: 90%;
    max-height: 80vh;
    margin: 0 auto;
    display: block;
}
