/* --- ZMIENNE I BAZA --- */
:root {
    --bg-color: #0a0a0f;
    --text-main: #f4f4f5;
    --accent-gold: #d4af37;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glow-blue: rgba(0, 195, 255, 0.4);
    --glow-red: rgba(255, 50, 50, 0.4);
    --glow-green: rgba(50, 255, 100, 0.4);
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 { font-family: 'Cinzel', serif; font-weight: 600; }

/* --- GLASSMORPHISM --- */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* --- NAWIGACJA --- */
nav {
    position: fixed; top: 0; width: 100%; padding: 20px 50px;
    display: flex; justify-content: space-between; align-items: center;
    z-index: 1000; transition: all 0.4s ease;
}
nav.scrolled {
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(15px); padding: 15px 50px; border-bottom: 1px solid var(--glass-border);
}
.logo { font-family: 'Cinzel', serif; font-size: 1.5rem; color: var(--accent-gold); text-decoration: none; letter-spacing: 2px; }
.nav-right { display: flex; align-items: center; gap: 25px; }
.nav-links { list-style: none; display: flex; gap: 20px; }

/* Socials in Nav */
.nav-socials { display: flex; gap: 12px; border-right: 1px solid var(--glass-border); padding-right: 20px; }
.nav-socials a {
    width: 32px; height: 32px; display: flex; justify-content: center; align-items: center;
    border: 1px solid var(--glass-border); border-radius: 50%;
    transition: all 0.3s ease; background: rgba(255, 255, 255, 0.03);
}
.nav-socials a svg { width: 14px; height: 14px; fill: var(--text-main); }
.nav-socials a:hover { background: var(--accent-gold); border-color: var(--accent-gold); transform: translateY(-2px); }
.nav-socials a:hover svg { fill: var(--bg-color); }

/* Language Flags */
.lang-switcher { display: flex; gap: 12px; }
.lang-btn { 
    font-size: 1.4rem; text-decoration: none; line-height: 1;
    filter: grayscale(100%) opacity(0.6); transition: all 0.3s ease; 
}
.lang-btn.active { filter: grayscale(0%) opacity(1); transform: scale(1.2); }
.lang-btn:hover { filter: grayscale(0%) opacity(1); transform: scale(1.1); }
.nav-links a { color: var(--text-main); text-decoration: none; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; transition: color 0.3s; }
.nav-links a:hover { color: var(--accent-gold); text-shadow: 0 0 10px rgba(212, 175, 55, 0.5); }

/* --- HERO --- */
#hero {
    height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center;
    text-align: center; position: relative;
    background-color: var(--bg-color);
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
    background-repeat: no-repeat;
}
#hero h1 { font-size: 5rem; letter-spacing: 5px; margin-bottom: 10px; text-shadow: 0 0 20px rgba(255, 255, 255, 0.2); animation: fadeInDown 1.5s ease; }
#hero p { font-size: 1.5rem; color: var(--accent-gold); letter-spacing: 3px; margin-bottom: 40px; animation: fadeInUp 1.5s ease 0.5s both; }

.cta-btn {
    padding: 15px 40px; background: transparent; color: var(--text-main); border: 1px solid var(--accent-gold);
    font-family: 'Montserrat', sans-serif; text-transform: uppercase; letter-spacing: 2px; cursor: pointer;
    transition: all 0.4s ease; text-decoration: none; animation: fadeInUp 1.5s ease 1s both;
}
.cta-btn:hover { background: var(--accent-gold); color: var(--bg-color); box-shadow: 0 0 20px rgba(212, 175, 55, 0.6); }

/* --- GALERIA Z GOOGLE SHEETS --- */
#gallery { padding: 100px 5vw; }
.section-title { text-align: center; font-size: 3rem; margin-bottom: 60px; color: var(--text-main); }
.section-title span { color: var(--accent-gold); }

.grid-container {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px;
}

.gallery-item {
    position: relative; height: 400px; border-radius: 10px; overflow: hidden; cursor: pointer; transition: all 0.5s ease;
}
.gallery-item img {
    width: 100%; height: 100%; object-fit: contain; transition: transform 0.7s ease, filter 0.5s ease;
    padding: 10px;
}
.gallery-item:hover img { transform: scale(1.05); filter: drop-shadow(0 0 15px rgba(255,255,255,0.2)); }

/* Dynamiczne poświaty witraży */
.gallery-item:nth-child(3n+1):hover { box-shadow: 0 0 30px var(--glow-blue); border: 1px solid rgba(0, 195, 255, 0.5); }
.gallery-item:nth-child(3n+2):hover { box-shadow: 0 0 30px var(--glow-red); border: 1px solid rgba(255, 50, 50, 0.5); }
.gallery-item:nth-child(3n+3):hover { box-shadow: 0 0 30px var(--glow-green); border: 1px solid rgba(50, 255, 100, 0.5); }

.item-overlay {
    position: absolute; bottom: -80px; left: 0; width: 100%; padding: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.95)); transition: bottom 0.4s ease;
}
.gallery-item:hover .item-overlay { bottom: 0; }
.item-overlay h3 { font-size: 1.2rem; color: white; margin-bottom: 5px; }
.item-overlay p { font-size: 0.8rem; color: var(--accent-gold); }

/* --- MANIFEST / O ARTYSTCE --- */
#about { padding: 100px 10vw; display: flex; align-items: center; gap: 60px; overflow: hidden; }
.about-text { flex: 1.5; padding: 50px 60px; } /* Zwiększone marginesy wewnętrzne */
.about-text p { margin-bottom: 25px; font-size: 1.15rem; color: #ccc; text-align: justify; }

#about-img {
    flex: 1; min-height: 550px; 
    background-position: center;
    background-size: contain; /* Dopasowanie bez wycinania dla PNG */
    background-repeat: no-repeat;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    filter: drop-shadow(0 0 20px rgba(255,255,255,0.05)); /* Delikatna poświata zamiast twardego cienia */
}
#about-img::after {
    display: none; /* Usunięcie obramowania */
}
#about-img:hover { transform: scale(1.03); }

/* --- WYDARZENIA (BLOG) --- */
#events { padding: 50px 10vw 100px; }
.event-card { padding: 30px; margin-bottom: 20px; border-left: 4px solid var(--accent-gold); }
.event-card h3 { color: var(--accent-gold); margin-bottom: 10px; }
.event-card .date { font-size: 0.8rem; color: #888; margin-bottom: 15px; text-transform: uppercase; }

/* --- KONTAKT --- */
#contact { display: none; } /* Ukrycie sekcji kontaktu */
.nav-links li:last-child { display: none; } /* Ukrycie linku Kontakt w menu */
.contact-form { max-width: 600px; margin: 0 auto; padding: 40px; display: flex; flex-direction: column; gap: 20px; }
.contact-form input, .contact-form textarea {
    width: 100%; padding: 15px; background: rgba(255,255,255,0.05); border: 1px solid var(--glass-border);
    color: white; font-family: 'Montserrat', sans-serif; border-radius: 5px; outline: none; transition: border 0.3s;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--accent-gold); background: rgba(255,255,255,0.1); }

/* --- LIGHTBOX --- */
#lightbox {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px); z-index: 2000; display: flex; flex-direction: column; justify-content: center; align-items: center;
    opacity: 0; pointer-events: none; transition: opacity 0.4s ease;
}
#lightbox.active { opacity: 1; pointer-events: all; }

.nav-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    font-size: 3rem; color: white; cursor: pointer; padding: 20px;
    transition: all 0.3s ease; user-select: none; z-index: 2100;
}
.nav-arrow:hover { color: var(--accent-gold); text-shadow: 0 0 10px var(--accent-gold); }
.nav-arrow.left { left: 5vw; }
.nav-arrow.right { right: 5vw; }

#lightbox-image-container {
    position: relative;
    width: 85vw;
    height: 70vh;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1200px;
}

#lightbox img {
    position: absolute;
    max-width: 100%;
    max-height: 100%;
    border: 1px solid var(--glass-border);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8);
    border-radius: 8px;
    object-fit: contain;
    will-change: transform, opacity, filter;
}

/* --- EKSTRAORDYNARYJNE ANIMACJE --- */

@keyframes extraordinaryNextIn {
    0% { opacity: 0; transform: translateX(150px) translateY(20px) scale(1.1) rotateY(-25deg); filter: blur(15px) brightness(1.5); }
    100% { opacity: 1; transform: translateX(0) translateY(0) scale(1) rotateY(0); filter: blur(0) brightness(1); }
}

@keyframes extraordinaryNextOut {
    0% { opacity: 1; transform: translateX(0) translateY(0) scale(1) rotateY(0); filter: blur(0) brightness(1); }
    100% { opacity: 0; transform: translateX(-150px) translateY(-20px) scale(0.85) rotateY(25deg); filter: blur(15px) brightness(0.5); }
}

@keyframes extraordinaryPrevIn {
    0% { opacity: 0; transform: translateX(-150px) translateY(20px) scale(1.1) rotateY(25deg); filter: blur(15px) brightness(1.5); }
    100% { opacity: 1; transform: translateX(0) translateY(0) scale(1) rotateY(0); filter: blur(0) brightness(1); }
}

@keyframes extraordinaryPrevOut {
    0% { opacity: 1; transform: translateX(0) translateY(0) scale(1) rotateY(0); filter: blur(0) brightness(1); }
    100% { opacity: 0; transform: translateX(150px) translateY(-20px) scale(0.85) rotateY(-25deg); filter: blur(15px) brightness(0.5); }
}

.img-incoming-next { animation: extraordinaryNextIn 0.9s cubic-bezier(0.23, 1, 0.32, 1) both; z-index: 2; }
.img-outgoing-next { animation: extraordinaryNextOut 0.9s cubic-bezier(0.23, 1, 0.32, 1) both; z-index: 1; }

.img-incoming-prev { animation: extraordinaryPrevIn 0.9s cubic-bezier(0.23, 1, 0.32, 1) both; z-index: 2; }
.img-outgoing-prev { animation: extraordinaryPrevOut 0.9s cubic-bezier(0.23, 1, 0.32, 1) both; z-index: 1; }

#lightbox-info {
    margin-top: 30px;
    text-align: center;
    animation: fadeInUp 0.5s ease both;
}
.close-btn { position: absolute; top: 30px; right: 40px; font-size: 3rem; color: white; cursor: pointer; transition: color 0.3s; }
.close-btn:hover { color: var(--accent-gold); }

/* --- FOOTER & SOCIALS --- */
footer { text-align: center; padding: 50px 30px; background: #020203; font-size: 0.9rem; color: #666; border-top: 1px solid var(--glass-border); }
.footer-content { display: flex; flex-direction: column; align-items: center; gap: 20px; }

.social-links { display: flex; gap: 25px; margin-bottom: 10px; }
.social-links a {
    width: 45px; height: 45px; display: flex; justify-content: center; align-items: center;
    border: 1px solid var(--glass-border); border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: rgba(255, 255, 255, 0.03);
}
.social-links a svg { width: 20px; height: 20px; fill: var(--text-main); transition: fill 0.3s; }
.social-links a:hover {
    transform: translateY(-5px); background: var(--accent-gold); border-color: var(--accent-gold);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}
.social-links a:hover svg { fill: var(--bg-color); }

@keyframes fadeInDown { from { opacity: 0; transform: translateY(-30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1024px) { 
    #about { flex-direction: column; padding: 60px 5vw; }
    #about-img { display: none; } /* Chowanie zdjęcia przy mniejszej przestrzeni poziomej */
    .about-text { flex: 1; padding: 40px 30px; } /* Zachowanie marginesów wewnętrznych na mobile */
    .nav-links { gap: 15px; }
}

@media (max-width: 768px) { 
    #hero h1 { font-size: 3rem; } 
    .nav-links { display: none; } 
    .nav-socials { border-right: none; padding-right: 0; }
}
