/* Reset i zmienne */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary-color: #ff6b00;    /* Energetyczny pomarańcz */
    --primary-dark: #cc5500;     /* Głęboki pomarańcz do gradientów */
    --primary-gradient: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    
    --bg-dark: #0f1115;      /* Antracyt / Głęboka czerń */
    --bg-card: #1a1d24;      /* Jaśniejsze tło kart */
    --text-light: #f0f2f5;   
    --text-muted: #a0aabf;   
}

body {
    color: var(--text-light);
    line-height: 1.6;
    background-image: 
        radial-gradient(circle at 15% 20%, rgba(255, 107, 0, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 85% 80%, rgba(255, 107, 0, 0.08) 0%, transparent 40%),
        linear-gradient(135deg, #0f1115 0%, #1a1d24 100%);
    background-attachment: fixed;
    min-height: 100vh;
}

.glass-effect {
    background: rgba(26, 29, 36, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 107, 0, 0.2);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(255, 107, 0, 0.05); 
}

/* Nawigacja i przyciski językowe */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: rgba(15, 17, 21, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 107, 0, 0.15); 
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo { display: flex; align-items: center; cursor: pointer; }
.nav-logo { height: 50px; width: auto; object-fit: contain; }

.nav-links { display: flex; gap: 25px; margin-left: auto; margin-right: 30px; }
.nav-link-item { color: var(--text-light); text-decoration: none; font-weight: 500; font-size: 1.05rem; transition: color 0.3s ease; }
.nav-link-item:hover { color: var(--primary-color); }

.lang-switch { display: flex; gap: 10px; align-items: center; }
.lang-switch .lang-btn {
    cursor: pointer;
    padding: 6px 14px;
    font-size: 0.95rem;
    font-weight: bold;
    color: var(--text-light);
    background: rgba(255, 107, 0, 0.05); 
    border: 1px solid rgba(255, 107, 0, 0.3); 
    border-radius: 6px;
    transition: all 0.3s ease;
}

.lang-switch .lang-btn:hover {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 10px rgba(255, 107, 0, 0.3); 
    transform: translateY(-2px); 
}

/* Sekcje i Nagłówki */
section { padding: 6rem 5%; }
.section-heading { text-align: center; font-size: 2.5rem; margin-bottom: 3rem; position: relative; }
.section-heading::after {
    content: ''; display: block; width: 60px; height: 4px; background: var(--primary-gradient); margin: 15px auto 0; border-radius: 2px;
}

/* Hero z Crossfade */
.hero {
    position: relative;
    padding: 12rem 5% 14rem;
    text-align: center;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
    border-bottom: 2px solid rgba(255, 107, 0, 0.2);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    overflow: hidden; 
}

.hero-bg-layer {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center; z-index: 1; transition: opacity 1.5s ease-in-out; 
}

.hero-bg-layer::after {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(15, 17, 21, 0.88), rgba(15, 17, 21, 0.78));
}

.hero-content { position: relative; z-index: 2; }
.hero h1 { font-size: 3.5rem; margin-bottom: 0.5rem; line-height: 1.2; }

/* Maszyna do pisania */
.typewriter-container {
    font-size: 2.2rem; font-weight: 600; color: var(--primary-color); margin-bottom: 2rem; min-height: 3.5rem;       
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;  
}

.txt-cursor { margin-left: 2px; animation: blink 0.7s infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.hero p { font-size: 1.2rem; color: var(--text-muted); margin-bottom: 3rem; max-width: 600px; margin-left: auto; margin-right: auto; }
.btn {
    display: inline-block; padding: 1rem 2.5rem; background: var(--primary-gradient); color: white; text-decoration: none; border-radius: 8px; font-weight: bold; cursor: pointer; border: none; transition: transform 0.3s, box-shadow 0.3s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(255, 107, 0, 0.4); }

/* Grids */
.services-grid, .gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.service-card {
    background: var(--bg-card); padding: 2.5rem; border-radius: 12px; border-top: 3px solid rgba(255, 107, 0, 0.1); 
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s; box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}
.service-card:hover { transform: translateY(-5px); border-top: 3px solid var(--primary-color); box-shadow: 0 10px 30px rgba(255, 107, 0, 0.15); }
.service-card h3 { margin-bottom: 1rem; font-size: 1.4rem; }
.service-card p { color: var(--text-muted); }

/* Galeria Hub */
.category-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2.5rem; margin-top: 3rem; }
.category-card {
    position: relative; border-radius: 16px; overflow: hidden; box-shadow: 0 6px 20px rgba(0,0,0,0.4); height: 380px; display: block; border: 1px solid rgba(255, 255, 255, 0.05); transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.category-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.category-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, rgba(15, 17, 21, 0.9) 0%, rgba(15, 17, 21, 0.3) 100%); display: flex; align-items: flex-end; padding: 2rem; transition: background 0.4s ease;
}
.category-card:hover { transform: translateY(-5px); border-color: rgba(255, 107, 0, 0.3); box-shadow: 0 12px 30px rgba(255, 107, 0, 0.15); }
.category-card:hover img { transform: scale(1.06); }
.category-card:hover .category-overlay { background: linear-gradient(to top, rgba(204, 85, 0, 0.85) 0%, rgba(15, 17, 21, 0.2) 100%); }
.category-overlay span { color: white; font-size: 2rem; font-weight: bold; letter-spacing: 1px; text-shadow: 0 2px 8px rgba(0,0,0,0.6); }

#gallery-page { padding: 4rem 5%; }
.gallery-item { border-radius: 12px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.3); transition: transform 0.3s ease, box-shadow 0.3s ease; border: 1px solid transparent; }
.gallery-item:hover { transform: scale(1.03); border: 1px solid rgba(255, 107, 0, 0.3); box-shadow: 0 10px 25px rgba(255, 107, 0, 0.2); }
.gallery-item img { width: 100%; height: 300px; object-fit: cover; display: block; cursor: pointer; }

/* Kontakt i Formularz */
#contact { display: flex; justify-content: center; }
.contact-card { padding: 4rem; text-align: center; max-width: 600px; width: 100%; }
.contact-info { margin-top: 2rem; font-size: 1.2rem; }
.contact-info p { margin: 10px 0; }

.whatsapp-container { display: flex; justify-content: center; margin-top: 20px; }
.whatsapp-link { display: inline-flex; align-items: center; gap: 12px; color: var(--primary-color); text-decoration: none; font-weight: bold; font-size: 1.2rem; padding: 12px 24px; border: 1px solid rgba(255, 107, 0, 0.3); border-radius: 8px; transition: all 0.3s ease; background: rgba(255, 107, 0, 0.05); }
.whatsapp-icon-wrapper { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; flex-shrink: 0; }
.whatsapp-icon-wrapper svg { width: 100%; height: 100%; fill: var(--primary-color); transition: fill 0.3s ease; display: block; }
.whatsapp-text { flex-grow: 1; text-align: left; white-space: nowrap; }
.whatsapp-link:hover { background: var(--primary-gradient); color: white; border-color: transparent; box-shadow: 0 5px 15px rgba(255, 107, 0, 0.3); transform: translateY(-2px); }
.whatsapp-link:hover .whatsapp-icon-wrapper svg { fill: white; }

.contact-form { margin-top: 3rem; display: flex; flex-direction: column; gap: 1.5rem; text-align: left; }
.contact-form input, .contact-form textarea { width: 100%; padding: 1rem; background: rgba(15, 17, 21, 0.6); border: 1px solid rgba(255, 107, 0, 0.2); border-radius: 8px; color: var(--text-light); font-size: 1rem; transition: border-color 0.3s, box-shadow 0.3s; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 10px rgba(255, 107, 0, 0.2); }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--text-muted); }

/* Lightbox */
.lightbox { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(15, 17, 21, 0.85); backdrop-filter: blur(10px); justify-content: center; align-items: center; opacity: 0; transition: opacity 0.3s ease; }
.lightbox.show { display: flex; opacity: 1; }
.lightbox img { max-width: 90%; max-height: 90vh; border-radius: 8px; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8); user-select: none; border: 1px solid rgba(255, 107, 0, 0.2); }
.close-lightbox, .lightbox-prev, .lightbox-next { position: absolute; color: var(--text-muted); font-size: 3rem; cursor: pointer; user-select: none; transition: color 0.3s, transform 0.2s, text-shadow 0.3s; padding: 20px; }
.close-lightbox:hover, .lightbox-prev:hover, .lightbox-next:hover { color: var(--primary-color); transform: scale(1.1); text-shadow: 0 0 15px rgba(255, 107, 0, 0.5); }
.close-lightbox { top: 10px; right: 20px; font-size: 4rem; line-height: 1; }
.lightbox-prev { left: 20px; } .lightbox-next { right: 20px; }

/* Animacje scrollowania */
.fade-in-scroll { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.fade-in-scroll.is-visible { opacity: 1; transform: translateY(0); }