/* ==========================================================================
   1. ZMIENNE GLOBALNE I RESET
   ========================================================================== */

:root {
    --bg-color: #ffffff;
    --text-primary: #000000;
    --text-secondary: #666666;
    
    /* Glassmorphism Variables */
    --glass-bg: rgba(255, 255, 255, 0.4);
    --glass-border: rgba(0, 0, 0, 0.05);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.05);

    /* NOWA PALETA (PROFIL Studio) */
    --brand-black: #000000;
    --brand-red: #D40000;
    --brand-graphite: #666666;
    
    --font-main: 'Montserrat', sans-serif;
    --spacing-section: 120px;
    --h2-main-size: clamp(1.5rem, 2.5vw, 2.5rem);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* ==========================================================================
   GLOBALNA NAPRAWA ROZPYCHANIA EKRANU (HORIZONTAL OVERFLOW)
   ========================================================================== */
html, body {
    overflow-x: clip !important;
    width: 100%;
    position: relative;
}

/* Naprawa kontenera karuzeli - wymuszenie ukrywania elementów wychodzących poza ekran */
.my-swiper-1x2 {
    width: 100%;
    overflow: hidden !important; 
    position: relative;
}

/* ==========================================================================
   KLASY UŻYTKOWE: STRUKTURA I TŁA (FULL-WIDTH PARALLAX)
   ========================================================================== */

.light-section {
    background: url('../img/bg-page-light.webp') no-repeat center center fixed;
    background-size: cover;
    width: 100%;
}

.dark-section {
    background: url('../img/bg-page-dark.webp') no-repeat center center fixed;
    background-size: cover;
    width: 100%;
    color: #ffffff;
}

.dark-section .section-desc {
    color: var(--gold-accent);
    opacity: 0.9;
}

.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
}

section {
    padding: var(--spacing-section) 0;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}


.section-header {
    margin-bottom: 60px;
}

.section-title {
    font-size: var(--h2-main-size);
    margin-bottom: 20px;
    text-align: center;
    font-weight: 800;
}

.section-desc {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
}

.text-center { text-align: center; }
.mt-4 { margin-top: 1.5rem; }
.mb-4 { margin-bottom: 1.5rem; }

/* ==========================================================================
   2. KOMPONENTY GLASSMORPHISM
   ========================================================================== */

.glass-card, .glass-section {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--glass-shadow);
}

.glass-card-simple {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
}

.btn-glass {
    /* Zmiana display na inline-flex wymusi perfekcyjne centrowanie osiowe */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    line-height: 1; /* Reset wysokości linii tekstu */
}

.btn-glass.primary {
    background: var(--brand-graphite);
    color: #ffffff;
    border: none;
}

.btn-glass.primary:hover {
    background: var(--brand-red);
    color: #ffffff;
}

/* ==========================================================================
   3. NAWIGACJA (FULL WIDTH & LIGHT)
   ========================================================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 5%;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    background: rgba(255, 255, 255, 0.4); 
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.logo img {
    height: 35px;
}

.nav-links {
    margin-left: auto;
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    color: #000;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    width: 30px; height: 3px;
    background: #000;
    transition: 0.3s;
}

/* ==========================================================================
   4. SEKCJA HERO (DESKTOP)
   ========================================================================== */

#hero {
    background: url('../img/bg-hero.webp') no-repeat center center;
    background-size: cover;
    padding: 120px 5% 60px 5%; 
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr; 
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    gap: 40px;
}

.hero-left { grid-column: 1; display: flex; justify-content: flex-start; }
.hero-center { grid-column: 2; display: flex; justify-content: center; }
.hero-right { grid-column: 3; text-align: right; color: #fff; }

.hero-logo { max-width: 500px; margin-right: -100px; }
.hero-center img { max-height: 50vh; }

.hero-right h1 {
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 20px;
    font-size: clamp(1.5rem, 2.5vw, 2.5rem);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: flex-end;
    margin-top: 40px;
}
s
.hero-mobile-btn {
    display: none !important;
}

.mobile-only-content { display: none; }
.desktop-logo { display: block; }
.mobile-logo { display: none; }

/* ==========================================================================
   5. ZAUFALI MI (GRID 5x2)
   ========================================================================== */

.clients-section {
    background: #ffffff;
    width: 100%;
    padding: 100px 0;
    border-top: 1px solid rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    position: relative;
}

.clients-carousel-container {
    /* width: 100%; */
    max-width: 1400px; 
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.clients-desc {
    color: var(--text-secondary);
    max-width: 600px; 
    margin: 0 auto 60px auto;
    font-size: 1.1rem;
    line-height: 1.6;
    text-align: center;
}

.clients-carousel-container::before,
.clients-carousel-container::after {
    content: ''; position: absolute; top: 0; bottom: 0;
    width: 120px; z-index: 10; pointer-events: none;
}
.clients-carousel-container::before { left: 0; background: linear-gradient(to right, #ffffff, transparent); }
.clients-carousel-container::after { right: 0; background: linear-gradient(to left, #ffffff, transparent); }

.clients-responsive-wrapper {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding: 0 160px;
    align-items: center;
    justify-items: center;
}

.clients-title {
    font-size: var(--h2-main-size);
    margin-bottom: 15px;
    font-weight: 800;
    color: #000;
}

.client-logo-item img {
    width: 100%;
    max-width: 250px;
    max-height: 250px;
    aspect-ratio: 1/1;
    object-fit: contain;
}

/* ==========================================================================
   6. OFERTA (MAKIETA POPRAWIONA)
   ========================================================================== */

.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    align-items: stretch;
}

.makieta-card {
    position: relative;
    display: flex;
    flex-direction: column;
    margin-top: 40px; 
    border-radius: 24px;
    overflow: hidden;
    height: 100%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.makieta-header {
    height: 140px;
    position: relative;
    padding: 30px;
    display: flex;
    align-items: flex-start;
    clip-path: polygon(0 0, 100% 0, 100% 70%, 0 100%);
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.makieta-header-overlay {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6); 
}

.makieta-title {
    position: relative;
    color: #ffffff; 
    z-index: 2;
    font-size: 1.2rem;
    font-weight: 800;
    padding-right: 120px;
}

.makieta-icon {
    position: absolute;
    top: 20px; 
    right: 20px;
    width: 120px;
    height: 120px;
    z-index: 3;
}

.makieta-icon img { 
    width: 100%; 
    height: 100%; 
    object-fit: contain;
}

.makieta-body {
    flex-grow: 1;
    padding: 70px 30px 30px 30px;
    margin-top: -60px;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    z-index: 0;
}

.makieta-item-title { color: #000; font-weight: 700; margin-bottom: 4px; } 
.makieta-item-desc { color: #444; font-size: 0.85rem; line-height: 1.5; margin-bottom: 15px; }

/* ==========================================================================
   7. POZOSTAŁE SEKCJE (PORTFOLIO, O MNIE, STOPKA)
   ========================================================================== */

.portfolio-gallery { 
    margin-bottom: 30px;
    /* margin-bottom: var(--spacing-section); */
}
.gallery-title { font-size: 2.2rem; margin-bottom: 45px; font-weight: 800; }

.about-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 60px; }
.about-content .glass-card, .timeline-content { padding: 50px; }

/* ==========================================================================
   STOPKA (DARK & PREMIUM - PARALLAX BACKGROUND)
   ========================================================================== */

.dark-footer {
    background: url('../img/bg-page-dark.webp') no-repeat center center fixed;
    background-size: cover;
    color: #ffffff;
    padding: 120px 0 40px 0;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-contact {
    text-align: center;
    max-width: 1000px;
    margin: 0 auto 80px auto;
}

.footer-contact h2 {
    font-size: var(--h2-main-size);
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--gold-accent);
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
}

.footer-lead {
    font-size: 1.1rem;
    color: #cccccc;
    margin-bottom: 50px;
    opacity: 0.9;
}

.footer-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.footer-info-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px 20px;
    border-radius: 16px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.footer-info-item h3 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--gold-accent);
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.footer-info-item p {
    font-size: 0.95rem;
    color: #e0e0e0;
    line-height: 1.6;
}

.footer-link {
    color: #e0e0e0;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--gold-accent);
}

/* Przyciski w stopce */
.footer-contact .contact-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-contact .btn-glass.primary {
    background: var(--gold-accent) !important;
    color: #000000 !important;
    box-shadow: 0 10px 25px var(--gold-glow);
}

.footer-contact .btn-glass.primary:hover {
    background: #ffffff !important;
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 40px;
}

.footer-bottom .copyright p {
    font-size: 0.85rem;
    color: #888888;
}

.footer-bottom .legal-links {
    display: flex;
    gap: 25px;
}

.footer-bottom .legal-links a {
    font-size: 0.85rem;
    color: #aaaaaa;
    transition: color 0.3s ease;
}

.footer-bottom .legal-links a:hover {
    color: var(--gold-accent);
}

/* ==========================================================================
   RESPONSYWNOŚĆ STOPKI
   ========================================================================== */

@media (max-width: 768px) {
    .footer-info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footer-bottom .legal-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px 20px;
    }
}

/* ==========================================================================
   8. O MNIE & TIMELINE (DARK THEME)
   ========================================================================== */

.dark-section {
    width: 100%;
    margin: 0;
    padding: 100px 0;
    position: relative;
    color: #ffffff;
}

.dark-glass {
    background: rgba(15, 15, 20, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #e0e0e0;
}

.dark-glass h2, .dark-glass h3 { color: #ffffff; }
.dark-glass p { color: #cccccc; }

.about-grid { 
    display: grid; 
    grid-template-columns: 1.2fr 0.8fr; 
    gap: 60px; 
}

.about-content .glass-card, .timeline-content { padding: 50px; }

.about-header-with-photo {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
}

.profile-photo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.achievements-list {
    padding-left: 20px;
    color: #cccccc;
}
.achievements-list li { margin-bottom: 10px; }

.achievements-section-title {
    font-size: var(--h2-main-size) !important;
    font-weight: 800;
    text-transform: uppercase;
    margin-top: 50px;
    margin-bottom: 35px;
    letter-spacing: 1px;
    color: #ffffff;
    text-align: left;
}

.timeline {
    position: relative; 
    padding-left: 35px; 
    margin-top: 40px;
    border-left: 3px solid rgba(255, 255, 255, 0.1); 
}

.timeline-item { margin-bottom: 70px; position: relative; }
.timeline-item:last-child { margin-bottom: 0; }

.timeline-dot {
    position: absolute; left: -44.5px; top: 5px;
    width: 20px; height: 20px; 
    background: var(--gold-accent); 
    border-radius: 50%; border: 4px solid #1a1a1a; 
    box-shadow: 0 0 15px var(--gold-glow); 
}

.timeline-date { 
    background: var(--gold-bg); 
    color: var(--gold-accent); 
    border: 1px solid var(--gold-glow); 
    display: inline-block; margin-bottom: 15px;
    padding: 3px 8px;
}

.timeline-content h2 {
    font-size: var(--h2-main-size);
    margin-bottom: 25px;
    font-weight: 800;
}

.timeline-company { font-size: 1.2rem; color: #ffffff; margin-bottom: 4px;}
.timeline-role { font-size: 1rem; color: #aaaaaa; margin-bottom: 15px; font-weight: 500; }

.about-card-split {
    display: flex;
    overflow: hidden;
    padding: 0 !important;
    min-height: 480px;
}

.about-text-side {
    flex: 1;
    padding: 50px 40px 50px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-text-side h2 {
    margin-bottom: 25px;
    font-size: var(--h2-main-size);
    font-weight: 800;
}

.about-text-side p {
    margin-bottom: 15px;
    font-size: 1rem;
    line-height: 1.6;
}
.about-text-side p:last-child { margin-bottom: 0; }

.about-image-side {
    width: 38%;
    position: relative;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-photo-full {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right top;
}

.achievement-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.achievements-modern-grid {
    display: flex;
    flex-direction: column;
}

.achievement-icon-wrapper {
    min-width: 65px;
    max-width: 65px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-top: 5px;
}

.achievement-trophy-img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.achievements-modern-module {
    padding: 50px;
    width: 100%;
}

.achievement-modern-card {
    display: flex;
    align-items: flex-start;
    gap: 25px; 
    padding: 25px 0;
    margin-bottom: 0; 
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.3s ease;
}

.achievement-modern-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.achievement-modern-card:first-child {
    padding-top: 0;
}

.achievement-modern-card:hover {
    transform: translateX(8px);
}

.achievements-section-title {
    font-size: var(--h2-main-size) !important;
    font-weight: 800;
    text-transform: none !important;
    margin-top: 0; 
    margin-bottom: 40px;
    letter-spacing: 0;
    color: #ffffff;
    text-align: left;
}

.achievement-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--gold-accent);
    line-height: 1;
    min-width: 50px; 
}

.achievement-card-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gold-accent); 
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.achievement-text {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #cccccc;
}

/* ==========================================================================
   SEKCJA B2B
   ========================================================================== */

.b2b-white-section {
    padding: 120px 0;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.b2b-content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.b2b-white-section .btn-glass.primary {
    background: #000000 !important;
    color: #ffffff !important;
}

.b2b-white-section .btn-glass.primary:hover {
    background: #222222 !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.b2b-title {
    font-size: var(--h2-main-size);
    font-weight: 800;
    color: #000000;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.b2b-desc {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 40px;
}

.b2b-top-icon-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
}

.b2b-top-icon {
    height: 150px;
    width: auto;
    object-fit: contain;
}


/* ==========================================================================
   9. MEDIA QUERIES (MOBILE)
   ========================================================================== */

@media (max-width: 768px) {
    .nav-links {
        display: flex !important;
        position: absolute;
        top: 60px; left: 0; width: 100%;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        align-items: center;
        padding: 40px 0;
        transform: translateY(-150%);
        transition: transform 0.4s ease-in-out;
    }
    .nav-links.active { transform: translateY(0); }
    .hamburger { display: flex; }

    #hero {
        height: auto;
        padding: 100px 5% 40px 5%;
    }

    .hero-grid {
        display: grid;
        grid-template-columns: 1fr 1fr !important;
        gap: 20px;
    }

    .hero-center { 
        grid-column: 1 / -1 !important;
        grid-row: 1 !important;
        display: flex;
        justify-content: center;
        width: 100%;
        margin-bottom: 20px;
    }
    .hero-center img { 
        max-height: 250px; 
        margin: 0 auto; 
    }

    .hero-left { 
        grid-column: 1 !important;
        grid-row: 2 !important;
        display: flex;
        flex-direction: column;
        align-items: flex-end; 
        text-align: right;
        width: 100%;
    }

    .hero-right { 
        grid-column: 2 !important;
        grid-row: 2 !important;
        color: #ffffff; 
        text-align: left;
    }
    
    .hero-mobile-headline {
        color: #000000; 
        font-size: 1rem;
        font-weight: 800;
        line-height: 1.2;
        margin: 15px 0 0 0;
        text-transform: uppercase;
        text-align: right; 
    }

    .hero-mobile-btn {
        grid-column: 1 / -1 !important;
        grid-row: 3 !important;
        display: inline-block !important; 
        justify-self: center !important;
        margin-top: 25px; 
        white-space: nowrap !important;
        width: max-content !important;
        padding: 12px 28px !important;
        font-size: 0.75rem !important;
        letter-spacing: 1px;
    }

    .hero-description {
        color: #ffffff;
        font-size: 0.75rem;
        line-height: 1.4;
    }

    .hero-logo { max-width: 90px; margin-right: 0px; margin-top: -35px}

    .desktop-logo { display: none !important; }
    .mobile-logo { 
        display: block !important; 
        width: 100%;
        max-width: 150px; 
        height: auto;
    }

    .mobile-only-content {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        width: 100%;
    }

    .clients-responsive-wrapper {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 30px;
        padding: 0 40px;
        scrollbar-width: none;
    }
    .clients-responsive-wrapper::-webkit-scrollbar { display: none; }
    .client-logo-item { flex: 0 0 auto; }
    .client-logo-item img { max-width: 150px; }

    .about-grid { grid-template-columns: 1fr; }

    .about-header-with-photo {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .about-card-split {
        flex-direction: column-reverse !important;
        min-height: auto;
    }

    .about-image-side {
        width: 100%;
        height: 350px;
        border-left: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .about-text-side {
        padding: 35px 25px;
    }

    .achievements-modern-module {
        padding: 35px 25px;
    }

    .achievement-modern-card {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 15px;
        padding: 25px 0;
    }

    .achievement-icon-wrapper {
        min-width: auto;
        max-width: 70px;
        margin-top: 0;
    }
    
    .achievements-section-title {
        text-align: center !important;
        margin-bottom: 30px;
    }
}

/* ==========================================================================
   PORTFOLIO PAGE - GRID & SKELETON LOADER
   ========================================================================== */

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.gallery-title {
    font-size: var(--h2-main-size);
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 40px;
    letter-spacing: 1px;
}

.portfolio-item-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.portfolio-item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.img-skeleton-wrapper {
    position: relative;
    width: 100%;
    background: rgba(255, 255, 255, 0.15);
    border: 2px dashed rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.img-skeleton-wrapper.ratio-1x2 { aspect-ratio: 1 / 2; }
.img-skeleton-wrapper.ratio-2x1 { aspect-ratio: 21 / 9; }
.img-skeleton-wrapper.ratio-1x1 { aspect-ratio: 1 / 1; }
.img-skeleton-wrapper.ratio-a4  { aspect-ratio: 1.414 / 1; }

.img-skeleton-wrapper.loading-skeleton {
    animation: portfolio-skeleton-pulse 1.5s infinite alternate ease-in-out;
}
@keyframes portfolio-skeleton-pulse {
    0% { background-color: rgba(255, 255, 255, 0.1); }
    100% { background-color: rgba(255, 255, 255, 0.3); }
}

.skeleton-spinner {
    width: 35px; height: 35px;
    border: 3px solid rgba(0,0,0,0.05);
    border-top-color: var(--gold-accent);
    border-radius: 50%;
    animation: portfolio-spin 0.8s linear infinite;
    position: absolute;
    z-index: 1;
}
@keyframes portfolio-spin { to { transform: rotate(360deg); } }

.lazy-thumb {
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute; top: 0; left: 0;
    z-index: 2;
}
.lazy-thumb.is-loaded { opacity: 1; }

.img-skeleton-wrapper:not(.loading-skeleton) { border: none; background: transparent; }
.img-skeleton-wrapper:not(.loading-skeleton) .skeleton-spinner { display: none; }


/* ==========================================================================
   UKŁAD GALERII 1X2 (SWIPER)
   ========================================================================== */

.my-swiper-1x2 .swiper-wrapper {
    display: flex !important;
    flex-wrap: nowrap;
}

.swiper-slide.glass-slide {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    height: auto;
}

.swiper-slide.glass-slide:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.glass-slide > a {
    display: block;
    width: 100%;
    height: 100%;
}

/* ==========================================================================
   UKŁAD GALERII 2X1
   ========================================================================= */

.gallery-2x1-stacked .stacked-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.gallery-item-2x1 {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
    width: 100%;
}

.gallery-item-2x1:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.gallery-item-2x1 > a {
    display: block;
    width: 100%;
    height: 100%;
}

/* ==========================================================================
   UKŁAD GALERII 1X1
   ========================================================================= */

.gallery-1x1-grid .grid-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.gallery-item-1x1 {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
    width: 100%;
}

.gallery-item-1x1:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.gallery-item-1x1 > a {
    display: block;
    width: 100%;
    height: 100%;
}

@media (max-width: 992px) {
    .gallery-1x1-grid .grid-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 576px) {
    .gallery-1x1-grid .grid-wrapper {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   RESPONSYWNOŚĆ DLA GALERII 2X1
   ========================================================================= */

@media (max-width: 992px) { 
    .gallery-2x1-stacked .stacked-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .img-skeleton-wrapper.ratio-2x1 {
        aspect-ratio: 16 / 9 !important;
    }
}

/* ==========================================================================
   STYLOWANIE NAKŁADKI Z TEKSTEM
   ========================================================================== */

.glass-overlay {
    position: absolute !important;
    top: 0 !important;         
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;    
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.4) 40%, transparent 70%) !important;
    padding: 25px !important; 
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important; 
    z-index: 5 !important;
    pointer-events: none !important;
}

.glass-overlay h3 {
    color: #ffffff;
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.glass-overlay p {
    color: #dddddd;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0;
}

/* ==========================================================================
   STYLOWANIE ZŁOTYCH TAGÓW
   ========================================================================== */

.glass-pill {
    display: inline-block !important; 
    background: rgba(197, 160, 89, 0.15) !important; 
    border: 1px solid rgba(197, 160, 89, 0.4) !important; 
    color: var(--gold-accent) !important; 
    padding: 6px 14px !important;
    border-radius: 20px !important; 
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    backdrop-filter: blur(5px) !important;
    -webkit-backdrop-filter: blur(5px) !important;
}

.glass-slide .tags-wrapper,
.gallery-item-2x1 .tags-wrapper,
.gallery-item-1x1 .tags-wrapper {
    position: absolute !important;
    top: 20px !important;    
    right: 20px !important;  
    display: flex !important;
    flex-direction: row !important;
    justify-content: flex-end !important;
    gap: 6px !important;
    z-index: 10 !important; 
    margin-bottom: 0 !important;
}

.glass-slide .glass-pill,
.gallery-item-2x1 .glass-pill,
.gallery-item-1x1 .glass-pill {
    background: rgba(0, 0, 0, 0.5) !important; 
    border: 1px solid rgba(255, 255, 255, 0.15) !important; 
    color: #ffffff !important; 
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.swiper-slide.glass-slide:hover .glass-pill,
.gallery-item-2x1:hover .glass-pill,
.gallery-item-1x1:hover .glass-pill {
    border-color: rgba(197, 160, 89, 0.5) !important;
    color: var(--gold-accent) !important;
}

/* ==========================================================================
   UKŁAD GALERII SPLIT A4
   ========================================================================== */

.gallery-split-rows { 
    margin-bottom: 30px; 
}

.split-rows-wrapper { 
    display: flex; 
    flex-direction: column; 
    gap: 60px; 
}

.gallery-item-split {
    display: flex; 
    align-items: stretch; 
    border-radius: 16px;
    overflow: hidden;
    background: transparent; 
    border: 1px solid rgba(0, 0, 0, 0.05); 
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); 
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
}

.gallery-item-split:hover { 
    transform: translateY(-6px); 
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.split-image-side { 
    width: 55%; 
    overflow: hidden; 
}

.split-image-side .img-skeleton-wrapper { 
    border-radius: 0; 
    height: 100%; 
}

.split-image-side img {
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.gallery-item-split:hover .split-image-side img {
    transform: scale(1.05); 
}

/* ---------------------------------------------------
   JASNE SZKŁO I WYRÓWNANIE DO GÓRY
   --------------------------------------------------- */

.split-text-side {
    width: 45%; 
    padding: 50px 60px 40px 60px; 
    display: flex; 
    flex-direction: column; 
    justify-content: flex-start !important; 
    gap: 20px; 
    text-align: left;
    
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    
    border-left: 1px solid rgba(0, 0, 0, 0.05); 
}

.split-text-side h3 { 
    font-size: 1.8rem; 
    font-weight: 800; 
    color: #111111;
    margin-bottom: 0;
}

.split-text-side p { 
    font-size: 1rem; 
    line-height: 1.7; 
    color: #444444;
    margin-bottom: 0;
}

.split-text-side .tags-wrapper {
    justify-content: flex-start !important;
}

.gallery-item-split.row-reversed { 
    flex-direction: row-reverse; 
}
.gallery-item-split.row-reversed .split-text-side { 
    text-align: right; 
    border-left: none;
    border-right: 1px solid rgba(0, 0, 0, 0.05);
}
.gallery-item-split.row-reversed .tags-wrapper {
    justify-content: flex-end !important;
}

/* ==========================================================================
   RESPONSYWNOŚĆ DLA SPLIT A4
   ========================================================================== */

@media (max-width: 992px) {
    .gallery-item-split, .gallery-item-split.row-reversed { 
        flex-direction: column !important; 
    }
    .split-image-side, .split-text-side { 
        width: 100% !important; 
    }
    .split-image-side {
        order: 1; 
    }
    .split-text-side { 
        order: 2; 
        padding: 40px 30px; 
        text-align: center !important; 
        border-left: none !important;
        border-right: none !important;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
    }
    .split-text-side .tags-wrapper,
    .gallery-item-split.row-reversed .tags-wrapper {
        justify-content: center !important;
    }
}

/* ==========================================================================
   SIATKA GALERII WIDEO (YOUTUBE)
   ========================================================================== */

.gallery-video-module { margin-bottom: 40px; }
.video-grid-wrapper { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 30px; }
.portfolio-video-card { padding: 20px !important; display: flex; flex-direction: column; gap: 20px; }
.yt-facade { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; cursor: pointer; background: #000; }
.yt-thumbnail { width: 100%; height: 100%; object-fit: cover; opacity: 0.65; transition: opacity 0.3s ease, transform 0.4s ease; }
.yt-facade:hover .yt-thumbnail { opacity: 0.9; transform: scale(1.02); }
.yt-play-btn {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 65px; height: 65px; background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 50%;
    display: flex; justify-content: center; align-items: center; transition: all 0.3s ease;
}
.yt-play-btn::after {
    content: ''; display: block; margin-left: 4px; border-style: solid; border-width: 10px 0 10px 16px; border-color: transparent transparent transparent var(--gold-accent);
}
.yt-facade:hover .yt-play-btn { background: var(--gold-accent); border-color: var(--gold-accent); transform: translate(-50%, -50%) scale(1.08); }
.yt-facade:hover .yt-play-btn::after { border-color: transparent transparent transparent #000; }

.video-card-body { text-align: left; }
.video-card-body h3 { font-size: 1.2rem; color: #ffffff; margin-bottom: 8px; font-weight: 700; }
.video-card-body p { font-size: 0.9rem; color: #aaaaaa; line-height: 1.5; }

/* ==========================================================================
   RESPONSYWNOŚĆ NOWYCH GALERII
   ========================================================================== */
   
@media (max-width: 992px) {
    .gallery-item-split, .gallery-item-split.row-reversed { flex-direction: column !important; }
    .split-image-side, .split-text-side { width: 100% !important; }
    .split-text-side { padding: 40px 25px; text-align: center !important; align-items: center !important; }
}
@media (max-width: 576px) {
    .video-grid-wrapper { grid-template-columns: 1fr; }
}

/* ==========================================================================
   SWIPER UI - STRZAŁKI I PAGINACJA (GLASSMORPHISM)
   ========================================================================== */
/* Zrobienie miejsca na kropki paginacji na dole */
.my-swiper-1x2 {
    padding-bottom: 50px !important; 
}

/* STRZAŁKI NAWIGACYJNE */
.swiper-button-next,
.swiper-button-prev {
    color: var(--gold-accent) !important; /* Złote ikony */
    background: rgba(15, 15, 15, 0.6) !important; /* Ciemne szkło */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(197, 160, 89, 0.3) !important; /* Złota ramka */
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important; /* Okrągłe przyciski */
    transition: all 0.3s ease;
    margin-top: -25px !important; /* Poprawka na pionowe centrowanie */
}

/* Zachowanie strzałek przy najechaniu myszką */
.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: rgba(197, 160, 89, 0.9) !important; /* Złote wypełnienie */
    color: #111111 !important; /* Ciemna ikona */
    transform: scale(1.1);
}

/* Pomniejszenie domyślnej, gigantycznej ikony Swipera */
.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 1.2rem !important;
    font-weight: 800;
}

/* Ukrycie strzałek na telefonach (tam działa naturalny gest przesuwania palcem) */
@media (max-width: 768px) {
    .swiper-button-next,
    .swiper-button-prev {
        display: none !important;
    }
}

/* PAGINACJA (KROPKI NA DOLE) */
.swiper-pagination-bullet {
    background: rgba(0, 0, 0, 0.2) !important; /* Subtelne, ciemne kropki dla jasnego tła sekcji */
    opacity: 1 !important;
    width: 10px !important;
    height: 10px !important;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: var(--gold-accent) !important; /* Aktywna kropka jest złota */
    transform: scale(1.3);
}

/* ==========================================================================
   HERO (MINIMALIST)
   ========================================================================== */

.hero-minimal {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Tło dodasz później, na razie jasny szary dla widoczności */
    background-color: #f4f4f4; 
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 120px 5% 60px 5%;
}

.hero-compact {
    height: auto !important;
    min-height: auto !important;
    padding-top: 180px !important; 
    padding-bottom: 80px !important;
}

.hero-content-wrapper {
    position: relative;
    z-index: 2;
    max-width: 1100px; /* BYŁO 900px - teraz treść ma więcej oddechu na szerokość */
    margin: 0 auto;
}

.hero-logo-center {
    max-width: 300px; /* BYŁO 220px - solidniejsze logo */
    margin: 0 auto 35px auto;
    display: block;
}

.hero-greeting {
    color: var(--brand-red);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.hero-headline {
    font-size: clamp(2rem, 4vw, 3.8rem); /* BYŁO 4.5rem - nagłówek jest teraz nieco subtelniejszy */
    font-weight: 800;
    margin-bottom: 25px;
    color: var(--brand-black);
    line-height: 1.15;
    text-transform: uppercase;
}

.hero-subheadline {
    max-width: 700px;
    margin: 0 auto 40px auto;
    color: var(--text-secondary);
    font-size: 1.15rem;
    line-height: 1.7;
}

.hero-cta-group {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn-glass.secondary-outline {
    background: transparent;
    color: var(--brand-black);
    border: 2px solid var(--brand-black);
}

.btn-glass.secondary-outline:hover {
    background: var(--brand-black);
    color: #ffffff;
}

/* ==========================================================================
   OFERTA (STICKY SCROLL)
   ========================================================================== */

.offer-sticky-section {
    background: #ffffff; /* Czysta biel */
    padding: 150px 0;
}

.offer-sticky-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr; /* Prawa kolumna nieco szersza */
    gap: 80px;
    align-items: start; /* KLUCZOWE: Pozwala lewej kolumnie być przyklejoną */
}

/* Lewa przyklejona strona */
.offer-sticky-left {
    position: sticky;
    top: 120px; /* Jak wysoko od góry ma się zatrzymać */
}

.sticky-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 800;
    color: var(--brand-black);
    margin-bottom: 20px;
    text-transform: uppercase;
    line-height: 1.1;
}

.sticky-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Prawa przewijana strona */
.offer-sticky-right {
    display: flex;
    flex-direction: column;
    gap: 120px; /* Większy dystans między dużymi kategoriami */
    margin-top: 300px; /* TO TWORZY OPÓŹNIENIE - Treść zaczyna wyjeżdżać z dołu później */
    padding-bottom: 100px; /* Oddech na samym końcu po przewinięciu całości */
}

.category-main-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 800;
    color: var(--brand-black);
    margin-bottom: 30px; /* Zmniejszony margines, bo możemy mieć podtytuł */
    padding-bottom: 0;
    border-bottom: none; /* Linia usunięta */
    text-transform: uppercase;
    line-height: 1.1;
}

.category-sub-title {
    font-size: 1.25rem;
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 50px;
}

.category-items-grid {
    display: flex;
    flex-direction: column;
    gap: 50px; /* Zwiększony dystans między poszczególnymi usługami */
}

/* Minimalistyczny akcent graficzny na liście */
.offer-detail-item {
    display: block; 
    position: relative;
    padding-left: 30px; /* Miejsce na nasz akcent graficzny */
}

/* Tworzymy elegancką, pionową czerwoną linię z boku każdego opisu */
.offer-detail-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px; /* Wyśrodkowanie względem nagłówka */
    width: 3px;
    height: 25px; /* Krótki akcent, a nie na całą wysokość */
    background: var(--brand-red);
}

.offer-detail-text h4 {
    font-size: 1.6rem; 
    color: var(--brand-black); /* Zmieniono z czerwonego na czarny, skoro mamy czerwoną linię */
    margin-bottom: 12px;
    font-weight: 700;
}

.offer-detail-text p {
    color: var(--text-secondary);
    font-size: 1.15rem; /* BYŁO 1.0rem - dużo bardziej czytelny opis */
    line-height: 1.7;
}

/* Responsywność dla Sticky Scroll */
@media (max-width: 992px) {
    .offer-sticky-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .offer-sticky-left {
        position: relative;
        top: 0;
    }
    
    .hero-cta-group {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-glass {
        width: 100%;
        text-align: center;
    }
}

/* ==========================================================================
   SEKCJA PROCESU (WORKFLOW - OBRAZY I GRID)
   ========================================================================== */

.workflow-section {
    background-color: #fafafa;
    padding: 150px 0;
    border-top: 1px solid rgba(0,0,0,0.03);
}

.workflow-grid {
    display: grid;
    /* Tworzy 3 kolumny na desktopie */
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 80px;
}

.workflow-step-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    overflow: hidden; /* Obrazki u góry mają zaokrąglone rogi dzięki temu */
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 5px 20px rgba(0,0,0,0.02);
}

.workflow-step-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.06);
}

/* Krok 1 - Rozciągnięty i wyrózniony */
.step-full-width {
    grid-column: 1 / -1; /* Rozciągnięcie na wszystkie 3 kolumny */
}

/* Obrazki */
.workflow-step-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1200 / 643; /* Idealne proporcje dla wskazanych obrazów */
    overflow: hidden;
    background: #eaeaea; /* Fallback w przypadku braku załadowania */
}

.workflow-step-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.workflow-step-card:hover .workflow-step-img {
    transform: scale(1.05);
}

/* Numer w narożniku obrazu */
.workflow-step-number {
    position: absolute;
    bottom: -17px;
    right: 15px;
    font-size: 7rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1;
    pointer-events: none;
    z-index: 2;
}

.workflow-step-content {
    padding: 30px 30px 40px 30px;
    flex-grow: 1;
}

.workflow-step-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--brand-black);
    margin-bottom: 15px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 15px;
}

.workflow-step-title::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--brand-red);
    border-radius: 50%;
}

.workflow-step-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

/* Akcent dla Kroku 1 */
.contact-highlight {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--brand-black);
}

/* Responsywność */
@media (min-width: 993px) {
    /* Na dużych ekranach pierwszy krok układa się horyzontalnie! (Obraz po lewej, tekst po prawej) */
    .step-full-width {
        flex-direction: row;
        align-items: center;
    }
    .step-full-width .workflow-step-img-wrapper {
        width: 60%; /* Zdjęcie zajmuje 60% */
    }
    .step-full-width .workflow-step-content {
        width: 40%;
        padding: 50px;
    }
}

@media (max-width: 992px) {
    .workflow-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   PORTFOLIO - GALERIE (Siatka 3-kolumnowa)
   ========================================================================== */

.portfolio-gallery-section {
    padding: 120px 0;
    background: #ffffff;
}

.portfolio-grid-modern {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.portfolio-item-card {
    cursor: pointer;
    /* Upewniamy się, że nie ma żadnego cienia, zachowujemy "flat design" */
    box-shadow: none !important;
}

.portfolio-item-card:hover {
    box-shadow: none !important;
}

/* Wymuszenie stałych proporcji 16:9 dla kafelków */
.portfolio-thumb-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #eaeaea;
    border-radius: 8px; /* Delikatne zaokrąglenie samych zdjęć */
}

.portfolio-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.portfolio-item-card:hover .portfolio-thumb {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.portfolio-item-card:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay-icon {
    color: #ffffff;
    font-size: 3rem;
    font-weight: 300;
    transform: scale(0.5);
    transition: transform 0.4s ease;
}

.portfolio-item-card:hover .portfolio-overlay-icon {
    transform: scale(1);
}

/* Stylizacja informacji pod obrazkiem (Tytuł, Opis, Tagi) */
.portfolio-item-info {
    padding-top: 15px; 
}

.portfolio-item-info h4 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--brand-black);
    margin-bottom: 8px;
    text-transform: uppercase;
    line-height: 1.2;
}

.portfolio-item-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.5;
}

.portfolio-item-tags {
    font-size: 0.8rem;
    color: var(--brand-red); /* Czerwony kolor dla tagline'u dodaje charakteru */
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

/* ==========================================================================
   PORTFOLIO - LIGHTBOX (Natywny)
   ========================================================================== */

.custom-lightbox {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(10px);
}

.custom-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    width: 90%;
    max-width: 1400px;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.lightbox-content iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 3rem;
    cursor: pointer;
    line-height: 1;
    z-index: 2;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: var(--brand-red);
}

/* Responsywność dla siatki na mniejszych ekranach */
@media (max-width: 992px) {
    .portfolio-grid-modern {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .portfolio-grid-modern {
        grid-template-columns: 1fr;
    }
    .lightbox-close {
        top: 15px;
        right: 20px;
        font-size: 2.5rem;
    }
}

#portfolio-hero {
    background: url('../img/bg-hero.webp') no-repeat center center;
    /* inne style tła */
}

/* ==========================================================================
   POPRAWKI DLA LAPTOPÓW (EKRANY O WYSOKOŚCI PONIŻEJ 850PX)
   ========================================================================== */
@media (max-height: 850px) {
    .hero-minimal {
        /* Zmiana zachowania Flexboxa, aby nie obcinał góry przy nadmiarze treści */
        align-items: flex-start;
        padding-top: 160px; /* Zapas na górne menu */
        padding-bottom: 60px;
    }
    
    .hero-content-wrapper {
        /* Przy align-items: flex-start, margin: auto przywraca wyśrodkowanie pionowe, 
           ale pozwala na normalne scrollowanie w dół, jeśli brakuje miejsca */
        margin-top: auto;
        margin-bottom: auto;
    }

    .hero-logo-center {
        max-width: 230px; /* Delikatne pomniejszenie logo */
        margin-bottom: 25px;
    }

    .hero-headline {
        font-size: clamp(2.2rem, 4vw, 3rem); /* Skalowanie nagłówka */
        margin-bottom: 15px;
    }

    .hero-subheadline {
        font-size: 1.05rem;
        margin-bottom: 30px;
        line-height: 1.5;
    }
}