:root {
    /* 🎨 TWOJA UNIKALNA PALETA KOLORÓW */
    --blue-trust: #1d4ed8;
    --blue-trust-light: #2563eb;
    --amber-creative: #f59e0b;
    --navy-professional: #1e293b;
    --gray-soft: #f8fafc;
    --text-primary: var(--navy-professional);
    --text-secondary: #475569;

    /* ✅ Typografia zgodna ze stylem */
    --font-main: 'IBM Plex Sans', sans-serif;
    --font-header: 'Space Grotesk', sans-serif;
    --font-data: 'JetBrains Mono', monospace;

    /* ✅ Przestrzeń i oddech w designie */
    --space-base: 1rem;
    --space-md: 1.75rem;
    --space-lg: 3.75rem;
    --space-xl: 4.25rem;
}

/* --- Reset & Podstawowe Style --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-primary);
    background-color: var(--gray-soft);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    padding-top: 80px; /* Dodatkowe miejsce na stałe menu */
}

/* --- MENU NAWIGACYJNE --- */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid #e2e8f0;
    transition: box-shadow 0.2s;
}

.main-nav.scrolled {
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.nav-logo {
    font-family: var(--font-header);
    font-weight: 700;
    font-size: 1.25rem;
    text-decoration: none;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--blue-trust);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
}

.hamburger-icon {
     width: 24px;
     height: 2px;
     background-color: var(--text-primary);
     position: relative;
     transition: background-color 0.2s;
}

.hamburger-icon::before, .hamburger-icon::after {
    content: '';
    position: absolute;
    left: 0;
    width: 24px;
    height: 2px;
    background-color: var(--text-primary);
    transition: transform 0.3s, top 0.3s;
}

.hamburger-icon::before { top: -8px; }
.hamburger-icon::after { top: 8px; }

.nav-open .hamburger-icon { background-color: transparent; }
.nav-open .hamburger-icon::before { transform: rotate(45deg); top: 0; }
.nav-open .hamburger-icon::after { transform: rotate(-45deg); top: 0; }


/* --- Layout & Kontenery --- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: var(--space-lg) 1.5rem var(--space-xl);
}


/* --- Typografia --- */
h1, h2, h3 {
    font-family: var(--font-header);
    font-weight: 700;
    line-height: 1.2;
    color: var(--navy-professional);
}

h1 {
    font-size: 2.5rem; /* Mobile first */
    margin-bottom: var(--space-base);
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2.5rem;
}

p {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text-secondary);
}

.hero-subheadline {
    font-size: 1.25rem;
    max-width: 550px;
    margin-bottom: 2rem;
    font-weight: 300;
}

.highlight-data {
    font-family: var(--font-data);
    font-weight: 500;
    color: var(--blue-trust);
}

.highlight-amber {
    color: var(--amber-creative);
}

/* --- Komponenty --- */
.cta-button {
    display: inline-block;
    background-color: var(--blue-trust);
    color: white;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-family: var(--font-header);
    font-weight: 500;
    font-size: 1rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.cta-button:hover {
    background-color: var(--blue-trust-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(29, 78, 216, 0.2);
}

.card-grid {
    display: grid;
    gap: 1.75rem;
}

.trust-card {
    background-color: #fff;
    padding: 2rem 1.5rem;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(29, 78, 216, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.trust-card::before {
    content: "";
    position: absolute;
    left: var(--mouse-x, 0);
    top: var(--mouse-y, 0);
    width: 150px;
    height: 150px;
    background: radial-gradient(circle at center, rgba(37, 99, 235, 0.15) 0%, rgba(37, 99, 235, 0) 70%);
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.trust-card:hover::before {
    opacity: 1;
}

.trust-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(29, 78, 216, 0.1);
}

.trust-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.trust-card .icon {
    display: block;
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    color: var(--blue-trust);
}

/* --- Sekcje --- */
.hero {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-text {
    max-width: 650px;
}

.profile-image-wrapper {
    margin-bottom: 2rem;
    max-width: 260px; /* trochę większe, lepsze dopasowanie do layoutu */
}

.profile-image {
    width: 100%;
    height: auto;
    border-radius: 12px; /* prostokąt z delikatnie zaokrąglonymi rogami */
    border: 8px solid #fff; /* nieco grubsza ramka dla lepszej kompozycji */
    box-shadow: 0 12px 36px rgba(0,0,0,0.12);
    object-fit: cover; /* przytnie obrazkę, jeżeli proporcje się różnią */
    transition: transform 0.3s ease-in-out; /* płynne powiększenie */
    display: block;
}

/* NOWA ZMIANA: Efekt powiększenia zdjęcia po najechaniu */
.profile-image:hover {
    transform: scale(1.05);
}

#trust {
    position: relative;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23e2e8f0' fill-opacity='0.4'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

#testimonials {
    background-color: #fff;
}
.testimonial-grid {
    display: grid;
    gap: 1.75rem;
}
.testimonial-card {
    background: var(--gray-soft);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}
.testimonial-card blockquote {
    margin: 0 0 1.5rem 0;
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-secondary);
    border-left: 3px solid var(--blue-trust);
    padding-left: 1.5rem;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}
.author-info strong {
    display: block;
    color: var(--text-primary);
}
.author-info span {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

#certs {
    background-color: var(--gray-soft);
}

.certs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 400px;
    margin: 0 auto;
}

.cert-image {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.cert-image:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

#portfolio {
    background-color: #fff;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 100%;
}

.portfolio-card {
    background-color: var(--gray-soft);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(29, 78, 216, 0.1);
}

.portfolio-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.portfolio-image:hover {
    opacity: 0.9;
}

.portfolio-content {
    padding: 1.5rem;
}

.portfolio-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--navy-professional);
}

.portfolio-description {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.portfolio-description:last-child {
    margin-bottom: 0;
}

/* Puste karty - powiększone zdjęcia bez treści */
.portfolio-card-empty {
    background-color: transparent;
    border: none;
}

.portfolio-card-empty:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.portfolio-card-empty .portfolio-image {
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#cooperation {
    background-color: #fff;
}
.cooperation-grid {
    display: grid;
    gap: 1.75rem;
}
.cooperation-card {
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
}
.cooperation-card .icon {
    width: 48px;
    height: 48px;
    color: var(--blue-trust);
    margin-bottom: 1rem;
}
.cooperation-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.cooperation-card p {
    margin-bottom: 1.5rem;
    flex-grow: 1;
}
.cooperation-card ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 2rem;
    flex-grow: 1;
}
.cooperation-card li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}
.cooperation-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--blue-trust);
    font-weight: bold;
}


.contact-section {
    background: linear-gradient(135deg, var(--navy-professional) 0%, #334155 100%);
    text-align: center;
    border-radius: 16px;
    padding: 3rem 1.5rem;
    margin-top: 3rem;
    border: 1px solid #0f172a;
}

.contact-section h2, .contact-section p {
    color: white;
}

.contact-section p {
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

.calendly-inline-widget {
    transform: scale(0.7);
    transform-origin: top center;
    margin-bottom: -160px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 450px;
    margin: 0 auto;
}

.contact-input {
    padding: 14px;
    border-radius: 28px;
    border: 1px solid transparent;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-input::placeholder {
    color: #94a3b8;
}

.contact-input:focus {
    outline: none;
    border-color: var(--blue-trust-light);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.5);
}

.contact-button {
    background-color: var(--navy-professional);
    border-radius: 28px;
}

.contact-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#form-status {
    margin-top: 1rem;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 0.95rem;
    text-align: center;
    font-weight: 500;
    transition: all 0.3s ease;
}

#form-status.success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

#form-status.error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.contact-button:hover {
     background-color: #334155;
     box-shadow: 0 4px 15px rgba(30, 41, 59, 0.2);
}

.footer {
    background-color: var(--navy-professional);
    color: #cbd5e1;
    padding: 4rem 1.5rem 2rem;
}
.footer-container {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}
.footer-top {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}
.footer-brand h3 {
    font-family: var(--font-header);
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}
.footer-brand p {
    font-size: 0.9rem;
    color: #94a3b8;
}
.footer-nav ul, .footer-social ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}
.footer-nav a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-nav a:hover {
    color: #fff;
}
.footer-social a {
    color: #cbd5e1;
    transition: color 0.2s;
}
.footer-social a:hover {
    color: #fff;
}
.footer-social svg {
    width: 24px;
    height: 24px;
}
.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 2rem;
    font-size: 0.85rem;
    color: #94a3b8;
}

/* --- 📱 RESPONSIVE Z CHARAKTEREM (Mobile First) --- */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding: 1rem 0;
        box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    }
    .nav-links li {
        width: 100%;
        text-align: center;
    }
    .nav-links a {
        display: block;
        padding: 1rem;
        width: 100%;
    }
    .nav-open .nav-links {
        display: flex;
    }

    /* Responsywny kalendarz Calendly */
    .calendly-inline-widget {
        transform: scale(0.82) translateX(-2%);
        transform-origin: center center;
        margin-bottom: -70px;
        margin-left: auto;
        margin-right: auto;
        width: 100%;
        position: relative;
    }

    .contact-section {
        padding: 2rem 0.5rem;
        overflow-x: hidden;
    }

    /* Zmniejsz nagłówek w sekcji kontakt na mobile */
    .contact-section h2 {
        font-size: 1.5rem;
        line-height: 1.3;
    }
}

@media (min-width: 768px) {
    h1 { font-size: 3.25rem; }
    .card-grid, .testimonial-grid, .cooperation-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-top { flex-direction: row; }
    .footer-container { text-align: left; }

    /* Certyfikaty - 3 obok siebie na tabletach i desktopach */
    .certs-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 1000px;
        gap: 2.5rem;
    }

    /* Portfolio - 2 kolumny na tabletach */
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }

    /* Większy odstęp między liniami nagłówka w sekcji kontakt na desktop */
    .contact-section h2 {
        line-height: 1.5;
    }
}

@media (min-width: 1024px) {
    .hero .container {
        flex-direction: row-reverse;
        justify-content: space-between;
        gap: 3rem;
        text-align: left;
    }
    .profile-image-wrapper {
        margin-bottom: 0;
        min-width: 340px; /* większe na szerokich ekranach */
    }
    .card-grid, .testimonial-grid, .cooperation-grid { grid-template-columns: repeat(3, 1fr); }

    /* Portfolio - 3 kolumny na desktopach */
    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Lightbox Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.lightbox-modal.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    animation: zoomIn 0.3s ease;
}

.lightbox-image {
    width: 100%;
    height: auto;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
    transition: opacity 0.3s ease;
}

.lightbox-close:hover {
    opacity: 0.7;
}

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

@keyframes zoomIn {
    from { transform: scale(0.8); }
    to { transform: scale(1); }
}

/* --- SEKCJA VIDEO --- */
.video-section {
    background: linear-gradient(135deg, var(--gray-soft) 0%, #e0f2fe 100%);
}

.video-section h2 {
    text-align: center;
    margin-bottom: 2.5rem;
    color: var(--navy-professional);
    font-family: var(--font-header);
}

.video-wrapper {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    background: #000;
}

.invitation-video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
}

/* Responsywność dla video */
@media (max-width: 768px) {
    .video-section h2 {
        font-size: 1.75rem;
    }

    .video-wrapper {
        border-radius: 12px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
    }
}