body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    /* Ruchome, animowane tło gradientowe */
    background: linear-gradient(-45deg, #f9f6f2, #f3ece6, #fff4e6, #fdecd8);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: #444;
    scroll-behavior: smooth;
    overflow-x: hidden; /* Zapobiega paskom przewijania przy animacjach */
    scroll-padding-top: 20px;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* MAGICZNY PYŁ (pływające kropki w tle) */
.magic-dust {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; /* Kliknięcia przechodzą przez warstwę */
    z-index: 0;
}
.magic-dust span {
    position: absolute;
    display: block;
    width: 5px; height: 5px;
    background: rgba(200, 169, 126, 0.5);
    box-shadow: 0 0 10px rgba(200, 169, 126, 0.8);
    border-radius: 50%;
    animation: floatUp 10s linear infinite;
}
/* Różne opóźnienia i pozycje dla kropek */
.magic-dust span:nth-child(1) { left: 10%; animation-duration: 12s; animation-delay: 0s; }
.magic-dust span:nth-child(2) { left: 30%; animation-duration: 8s; animation-delay: 2s; width: 8px; height: 8px; }
.magic-dust span:nth-child(3) { left: 50%; animation-duration: 15s; animation-delay: 4s; }
.magic-dust span:nth-child(4) { left: 70%; animation-duration: 10s; animation-delay: 1s; width: 6px; height: 6px; }
.magic-dust span:nth-child(5) { left: 90%; animation-duration: 14s; animation-delay: 3s; }
.magic-dust span:nth-child(6) { left: 20%; animation-duration: 11s; animation-delay: 5s; }
.magic-dust span:nth-child(7) { left: 60%; animation-duration: 9s; animation-delay: 2s; width: 7px; height: 7px; }
.magic-dust span:nth-child(8) { left: 80%; animation-duration: 13s; animation-delay: 6s; }

@keyframes floatUp {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateY(-10vh) scale(1.5); opacity: 0; }
}

/* HERO */
.hero {
    height: 100vh;
    background: url('logo.png') center/contain no-repeat fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-overlay {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    padding: 60px 50px;
    border-radius: 30px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.1), inset 0 0 0 1px rgba(255,255,255,0.5);
}

.logo {
    width: 500px; /* Zwiększone logo */
    margin-bottom: 10px;
    filter: drop-shadow(0px 10px 15px rgba(200, 169, 126, 0.4));
    animation: floatLogo 4s ease-in-out infinite; /* Animacja lewitowania */
}

@keyframes floatLogo {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

h1 {
    font-family: 'Playfair Display', serif;
    font-size: 52px;
    margin: 10px 0;
    letter-spacing: 2px;
    color: #333;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.05);
}

.subtitle {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
    font-weight: 300;
}

h2 {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    margin-bottom: 20px;
    color: #222;
}

section {
    padding: 100px 20px;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* GLASS CARD - ulepszona */
.glass-card {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(15px);
    padding: 50px;
    border-radius: 30px;
    max-width: 750px;
    margin: auto;
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
    border: 1px solid rgba(255,255,255,0.8);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.5s ease;
}

.glass-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 60px rgba(200, 169, 126, 0.2);
}

/* FORMULARZE */
form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

.input-group input, .input-group textarea {
    width: 100%;
    padding: 15px;
    border-radius: 15px;
    border: 2px solid transparent;
    background: rgba(255, 255, 255, 0.8);
    font-size: 15px;
    font-family: 'Montserrat', sans-serif;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.input-group input:focus, .input-group textarea:focus {
    outline: none;
    border: 2px solid #c8a97e;
    background: #fff;
    box-shadow: 0 0 15px rgba(200, 169, 126, 0.3);
    transform: scale(1.01);
}

.file-upload {
    font-size: 15px;
    cursor: pointer;
    background: #fff;
    padding: 15px;
    border-radius: 15px;
    border: 2px dashed #c8a97e;
    transition: 0.3s;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.file-upload:hover {
    background: #fdfaf6;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(200, 169, 126, 0.2);
}

.file-upload input {
    display: none;
}

/* PREMIUM BUTTON - z animacją przelatującego światła */
.btn-premium {
    background: linear-gradient(45deg, #c8a97e, #b28c6e, #c8a97e);
    background-size: 200% auto;
    padding: 16px 35px;
    border-radius: 30px;
    color: white;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.4s ease;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-size: 14px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(178,140,110,0.3);
    display: inline-block;
}

.btn-premium:hover {
    background-position: right center;
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 15px 25px rgba(178,140,110,0.5);
}

/* Przelatujący błysk na przycisku */
.btn-premium::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    animation: shine 4s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    20% { left: 200%; }
    100% { left: 200%; }
}

.btn-fb {
    display: inline-block;
    margin-top: 25px;
    padding: 15px 30px;
    background: linear-gradient(45deg, #3b5998, #4c70ba);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: 0.4s;
    box-shadow: 0 10px 20px rgba(59, 89, 152, 0.3);
}

.btn-fb:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(59, 89, 152, 0.5);
}

.btn-premium:active { 
    transform: scale(0.98); 
}

/* ANIMACJE WEJŚCIA (Scroll Reveal) */
.reveal { opacity: 0; transform: translateY(50px); transition: all 1s cubic-bezier(0.5, 0, 0, 1); }
.reveal-left { opacity: 0; transform: translateX(-50px); transition: all 1s cubic-bezier(0.5, 0, 0, 1); }
.reveal-right { opacity: 0; transform: translateX(50px); transition: all 1s cubic-bezier(0.5, 0, 0, 1); }
.reveal-scale { opacity: 0; transform: scale(0.9); transition: all 1s cubic-bezier(0.5, 0, 0, 1); }

.reveal.show, .reveal-left.show, .reveal-right.show, .reveal-scale.show {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* PORTFOLIO */
.portfolio {
    padding: 100px 20px;
    text-align: center;
}

.portfolio-sub {
    margin-bottom: 60px;
    font-style: italic;
    color: #8a7a6a;
    font-size: 18px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 35px;
    max-width: 1200px;
    margin: auto;
}

.gallery-item {
    overflow: hidden;
    border-radius: 25px;
    position: relative;
    cursor: pointer;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    background: #fff;
    transition: all 0.5s ease;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

/* Nakładka na zdjęcie (przyciemnienie i tekst) */
.gallery-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(178,140,110,0.9), transparent 60%);
    opacity: 0;
    z-index: 1;
    transition: opacity 0.5s ease;
}

.gallery-item::after {
    content: "Kliknij, by powiększyć";
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    color: white;
    z-index: 2;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    font-weight: 600;
    letter-spacing: 1px;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 45px rgba(200, 169, 126, 0.4);
}

.gallery-item:hover img {
    transform: scale(1.15) rotate(2deg); /* Efekt uniesienia i obrotu */
}

.gallery-item:hover::before { opacity: 1; }
.gallery-item:hover::after {
    opacity: 1;
    transform: translateY(0);
}

/* LIGHTBOX (Ulepszony i naprawiony) */
#lightbox {
    display: none; /* Domyślnie ukryty */
    position: fixed;
    z-index: 9999;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(15px);
    cursor: zoom-out;
}

#lightbox img {
    max-width: 90%;
    max-height: 85vh;
    border-radius: 20px;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
    /* Początkowy stan do animacji */
    transform: scale(0.8);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

footer {
    padding: 30px;
    background: #fff;
    text-align: center;
    color: #888;
    font-size: 14px;
    border-top: 1px solid rgba(200, 169, 126, 0.2);
}
/*Mobilki


*/
/* --- PODSTAWOWA OPTYMALIZACJA --- */
body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(135deg, #f9f6f2, #f3ece6);
    color: #444;
    scroll-behavior: smooth;
    overflow-x: hidden; /* Zapobiega przewijaniu na boki na telefonach */
}

/* --- HERO (Dostosowanie do mobile) --- */
.hero {
    height: 100vh;
    background: url('logo.png') center/contain no-repeat fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 15px;
    overflow: hidden;
}

.hero-overlay {
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(8px);
    padding: 40px 20px;
    border-radius: 20px;
    width: 100%;
    max-width: 500px;
}

.logo {
    width: 150px; /* Zwiększone logo zgodnie z prośbą */
    max-width: 60%;
    margin-bottom: 20px;
}

h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(32px, 8vw, 48px); /* Elastyczna czcionka */
    margin: 10px 0;
}

/* --- KARTY I SEKCJE --- */
section {
    padding: 60px 15px;
    text-align: center;
}

.glass-card {
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(10px);
    padding: clamp(20px, 5vw, 40px);
    border-radius: 25px;
    max-width: 700px;
    margin: auto;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

/* --- FORMULARZ (Poprawka na telefon) --- */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

input, textarea {
    padding: 12px;
    border-radius: 12px;
    border: 1px solid #ddd;
    font-size: 16px; /* 16px zapobiega automatycznemu przybliżaniu na iPhone */
    width: 100%;
    box-sizing: border-box;
}

.file-upload {
    display: block;
    padding: 15px;
    border: 2px dashed #c8a97e;
    border-radius: 12px;
    cursor: pointer;
    background: rgba(255,255,255,0.5);
}

/* --- GALERIA --- */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); /* 2 kolumny na małych telefonach */
    gap: 15px;
    padding: 10px;
}

@media (min-width: 600px) {
    .gallery {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 30px;
    }
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 1/1; /* Kwadratowe kafelki wyglądają czyściej */
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* NAPRAWA KLIKNIĘCIA: pointer-events: none sprawia, że warstwa nie blokuje dotyku */
.gallery-item::after {
    content: "Kliknij, by powiększyć";
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(178,140,110,0.8), transparent);
    color: white;
    padding: 15px;
    opacity: 0;
    transition: 0.4s;
    pointer-events: none; 
}

@media (hover: hover) {
    .gallery-item:hover::after { opacity: 1; }
    .gallery-item:hover img { transform: scale(1.1); }
}

/* --- LIGHTBOX --- */
#lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
}

#lightbox img {
    max-width: 95%;
    max-height: 90vh;
    border-radius: 10px;
    object-fit: contain;
}