/* --- 1. RESET I STYLE BAZOWE --- */
*, *::before, *::after {
    box-sizing: border-box;    
}

body, h1, h2, h3, h4, p, figure, blockquote, dl, dd {
    margin: 0;
    padding: 0;
}

input, button, textarea, select {
    font: inherit;
}

body {
    min-height: 100vh;
    text-rendering: optimizeSpeed;
    line-height: 1.5;
    background-color: #000000;
    font-family: arial, sans-serif; 
    font-weight: 400;   
}

ul, ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}

p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
}

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

/* --- 2. NAWIGACJA I TRANSPARENTNY HEADER --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    transition: background-color 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}

header.scrolled {
    background-color: rgba(0, 0, 0, 0.033);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
}

.logo {
    color: #f3e3e3;
    font-size: 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 0.8;
}

.contact {
    display: flex;
    align-items: center;
    gap: 20px;
}

.phone-number {
    color: #f3e3e3;
    font-weight: bold;
    transition: opacity 0.3s ease;
}

.phone-number:hover {
    opacity: 0.7;
}

/* Przycisk kontakt i rozwijane menu */
.contact-dropdown-wrapper {
    position: relative;
}

.contact-btn {
    background: transparent;
    color: #f3e3e3;
    border: 1px solid #f3e3e3;
    padding: 10px 20px;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
}

.contact-btn:hover {
    background: #f3e3e3;
    color: #000000;
}

.contact-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background-color: #000000;
    border: 1px solid rgba(243, 227, 227, 0.589);
    border-radius: 6px;
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 180px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.contact-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.contact-menu a {
    color: #f3e3e3;
    font-size: 0.95rem;
    font-weight: normal;
    transition: opacity 0.3s ease;
}

.contact-menu a:hover {
    opacity: 0.7;
}

/* --- 3. SEKCJA HERO --- */
.hero-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: fadeInVideo 1.3s ease-in-out forwards; 
}

@keyframes fadeInVideo {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hero-box {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: #000000;
    color: #f3e3e3;
    padding: 40px 60px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    opacity: 0;
    animation: fadeInBox 2s ease-out 1s forwards;
}

.hero-box h1 {
    font-size: 2rem;
    font-weight: normal;
}

.scroll-down {
    background: transparent;
    color: #f3e3e3;
    border: none;
    border-bottom: 1px solid #f3e3e3;
    padding-bottom: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: opacity 0.3s ease;
}

.scroll-down:hover {
    opacity: 0.6;
}

/* --- 4. SEKCJA GALERII --- */
.gallery-section {
    padding: 120px 3%;
    background-color: #000000;
    color: #f3e3e3;
}

.gallery-section h2 {
    font-size: 2.8rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 70px;
    letter-spacing: 1px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    max-width: 1920px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    aspect-ratio: 4 / 3;
    background-color: #000000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    will-change: transform, opacity;
    transition: box-shadow 0.4s ease;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover {
    box-shadow: 5px 3px 6px rgb(255, 255, 255);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

/* --- 5. MODAL PEŁNOEKRANOWY ZE STRZAŁKAMI --- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(15px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-img {
    max-width: 85%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    transform: scale(0.9);
    transition: transform 0.4s ease;
}

.modal.active .modal-img {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 25px;
    right: 35px;
    background: transparent;
    border: none;
    color: #f3e3e3;
    font-size: 3rem;
    cursor: pointer;
    line-height: 1;
    z-index: 2010;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.modal-close:hover {
    opacity: 0.7;
    transform: scale(1.1);
}

.modal-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(243, 227, 227, 0.3);
    color: #f3e3e3;
    font-size: 2rem;
    padding: 15px 20px;
    cursor: pointer;
    z-index: 2010;
    border-radius: 4px;
    transition: background 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
}

.modal-arrow:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.05);
}

.modal-prev {
    left: 30px;
}

.modal-next {
    right: 30px;
}

/* --- 6. STOPKA --- */
footer {
    background-color: #000000;
    color: #f3e3e3;
    padding: 40px 20px 6rem 20px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

footer .phone-number, .rwd {
    font-size: 1.3rem;
    font-weight: bold;
    color: #f3e3e3;
    transition: opacity 0.3s ease;
}

footer .phone-number:hover {
    opacity: 0.7;
}

footer p {
    font-size: 1rem;
    color: #f3e3e3;
    opacity: 0.8;
    margin: 0;
}

/* --- 7. ANIMACJE KEYFRAMES --- */
@keyframes fadeInBox {
    from { 
        opacity: 0; 
        transform: translate(-50%, 50px); 
    }
    to { 
        opacity: 1; 
        transform: translate(-50%, 0); 
    }
}

/* --- 8. LENIS SMOOTH SCROLL --- */
html.lenis, html.lenis body {
    height: auto;
}
.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}
.lenis.lenis-stopped {
    overflow: hidden;
}
.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

/* --- 9. MEDIA QUERIES --- */
@media (max-width: 1400px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 900px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .gallery-section {
        padding: 50px 20px;
    }
    
    .gallery-section h2 {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .modal-close {
        top: 15px;
        right: 20px;
        font-size: 2.5rem;
    }

    .modal-arrow {
        padding: 10px 14px;
        font-size: 1.5rem;
    }
    .modal-prev {
        left: 10px;
    }
    .modal-next {
        right: 10px;
    }
}