/* General Resets & Base Styles */
:root {
    --color-primary: #0056b3; /* Darker blue for corporate feel */
    --color-secondary: #007bff; /* Brighter blue for accents */
    --color-text-dark: #333;
    --color-text-light: #555;
    --color-background-light: #f9f9f9;
    --color-background-dark: #eee;
    --color-white: #fff;
    --color-border: #e0e0e0;
    --font-family-sans: 'Inter', sans-serif;
    --max-width: 1200px;
    --padding-section: 60px;
    --shadow-light: 0 4px 12px rgba(0, 0, 0, 0.08);
}

body {
    font-family: var(--font-family-sans);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: var(--color-text-dark);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    margin-bottom: 0.8em;
    color: var(--color-text-dark);
    font-weight: 700;
}

h1 { font-size: 2.8em; line-height: 1.2; }
h2 { font-size: 2.2em; line-height: 1.3; }
h3 { font-size: 1.6em; line-height: 1.4; }
p { margin-bottom: 1em; }

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-secondary);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn--primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn--primary:hover {
    background-color: #004499; /* Slightly darker primary */
    color: var(--color-white);
}

.btn--secondary {
    background-color: var(--color-white);
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn--secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* Header & Navigation */
.header {
    background-color: var(--color-white);
    padding: 15px 0;
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav__logo {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--color-text-dark);
}

.nav__links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.nav__links li {
    margin-left: 30px;
}

.nav__links a {
    color: var(--color-text-light);
    font-weight: 600;
    font-size: 0.95em;
}

.nav__links a:hover {
    color: var(--color-primary);
}

/* Hero Section */
.hero {
    background-color: var(--color-background-light);
    padding: 100px 0;
    text-align: center;
}

.hero__intro {
    font-size: 1.2em;
    color: var(--color-secondary);
    font-weight: 600;
    margin-bottom: 15px;
}

.hero__title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: var(--color-primary);
}

.hero__subtitle {
    font-size: 1.3em;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: var(--color-text-light);
}

.hero__actions .btn {
    margin: 0 10px;
}

/* About Section */
.about-section {
    padding: var(--padding-section) 0;
    background-color: var(--color-white);
}

.about-section h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--color-primary);
}

.about__content {
    display: flex;
    align-items: center; /* Centrowanie pionowe zdjęcia względem tekstu */
    justify-content: center;
    gap: 50px; /* Odstęp między zdjęciem a tekstem */
    flex-wrap: nowrap; /* Wymusza bycie w jednej linii na desktopie */
    margin-top: 30px;
}

.about__image {
    width: 280px; /* Nieco większe, by lepiej wyglądało obok tekstu */
    height: 280px;
    border-radius: 15px; /* Delikatnie zaokrąglone rogi zamiast koła - bardziej nowoczesne */
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--color-border);
}

.about__text {
    flex: 1;
    text-align: left; /* Tekst wyrównany do lewej */
}

/* Process Section */
.process-section {
    padding: var(--padding-section) 0;
    background-color: var(--color-background-dark);
    text-align: center;
}

.process-section h2 {
    color: var(--color-primary);
    margin-bottom: 20px;
}

.process__description {
    font-size: 1.1em;
    max-width: 700px;
    margin: 0 auto 50px auto;
    color: var(--color-text-light);
}

.process__steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.step {
    background-color: var(--color-white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow-light);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.step__icon {
    font-size: 2.5em;
    margin-bottom: 15px;
    display: block;
}

.step h3 {
    color: var(--color-primary);
    margin-bottom: 10px;
    font-size: 1.4em;
}

.step p {
    color: var(--color-text-light);
    font-size: 0.95em;
}

/* Tech Stack Section - Grouped Version */
.tech-stack-section {
    padding: var(--padding-section) 0;
    background-color: #ffffff;
}

.tech-stack-section h2 {
    text-align: center;
    margin-bottom: 50px;
    color: var(--color-primary);
}

.tech-stack__groups {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.tech-group {
    background: #fcfcfc;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
    transition: box-shadow 0.3s ease;
}

.tech-group:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.tech-group h3 {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    color: #666;
    border-bottom: 2px solid var(--color-secondary);
    display: inline-block;
    padding-bottom: 5px;
}

.tech-items {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.tech-items img {
    height: 32px; /* Nieco mniejsze, by wyglądały bardziej profesjonalnie w grupach */
    width: auto;
    filter: grayscale(20%);
    transition: all 0.3s ease;
}

.tech-items img:hover {
    filter: grayscale(0%);
    transform: translateY(-3px);
}

/* Responsywność */
@media (max-width: 768px) {
    .tech-stack__groups {
        grid-template-columns: 1fr;
    }
}

/* Portfolio Section */
.portfolio-section {
    padding: var(--padding-section) 0;
    background-color: var(--color-background-dark);
}

.portfolio-section h2 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--color-primary);
}

.portfolio__intro {
    text-align: center;
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto 50px auto;
    color: var(--color-text-light);
}

.portfolio__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.portfolio__item {
    background-color: var(--color-white);
    border-radius: 8px;
    box-shadow: var(--shadow-light);
    overflow: hidden;
    display: block; /* Make the whole card clickable */
    text-decoration: none;
    color: var(--color-text-dark);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio__item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.portfolio__image-placeholder {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    background-color: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.portfolio__image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image covers the area */
    display: block;
}

.portfolio__item h3 {
    font-size: 1.4em;
    margin: 20px 20px 10px 20px;
    color: var(--color-primary);
}

.portfolio__item p {
    font-size: 0.95em;
    color: var(--color-text-light);
    padding: 0 20px;
    margin-bottom: 15px;
}

.portfolio__item .tag {
    display: inline-block;
    background-color: #e0f2f7; /* Light blue tag background */
    color: #007bff; /* Primary blue tag text */
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: 600;
    margin: 0 5px 15px 20px;
}

/* Contact Section */
.contact-section {
    padding: var(--padding-section) 0;
    background-color: var(--color-white);
    text-align: center;
}

.contact-section h2 {
    color: var(--color-primary);
    margin-bottom: 20px;
}

.contact-section p {
    font-size: 1.1em;
    max-width: 700px;
    margin: 0 auto 40px auto;
    color: var(--color-text-light);
}

.contact__links .btn {
    margin: 0 10px;
}

/* Footer */
.footer {
    background-color: var(--color-primary);
    color: var(--color-white);
    text-align: center;
    padding: 30px 0;
    font-size: 0.9em;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .nav {
        flex-direction: column;
    }
    .nav__links {
        margin-top: 15px;
        justify-content: center;
        flex-wrap: wrap;
    }
    .nav__links li {
        margin: 0 10px 10px 10px;
    }
    .hero {
        padding: 80px 0;
    }
    .hero__title {
        font-size: 2.5em;
    }
    .hero__subtitle {
        font-size: 1em;
    }
    .about__content {
        flex-direction: column;
        text-align: center;
    }
    .about__image {
        margin-bottom: 20px;
    }
    .process__steps, .portfolio__grid {
        grid-template-columns: 1fr;
    }
    .step, .portfolio__item {
        margin: 0 auto;
        max-width: 400px;
    }
    .hero__actions .btn, .contact__links .btn {
        display: block;
        margin: 15px auto;
        width: 80%;
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2em; }
    h2 { font-size: 1.8em; }
    h3 { font-size: 1.3em; }
    .hero { padding: 60px 0; }
    .nav__logo { font-size: 1.2em; }
    .nav__links { font-size: 0.85em; }
}

/* Featured Portfolio Item */
.portfolio__featured-item {
    display: flex;
    background-color: var(--color-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
    border: 1px solid var(--color-border);
}

.portfolio__featured-item:hover {
    transform: translateY(-5px);
}

.portfolio__featured-image {
    flex: 1.2; /* Dajemy obrazkowi nieco więcej przestrzeni niż tekstowi */
    background-color: #f4f7f9; /* Delikatne tło, jeśli proporcje się nie zgrają */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px; /* Odstęp, żeby dashboard nie dotykał krawędzi karty */
}

.portfolio__featured-image img {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain; /* WYŚWIETLA CAŁY OBRAZ bez ucinania */
    border-radius: 4px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15); /* Efekt "uniesienia" raportu */
    border: 1px solid #ddd; /* Delikatna ramka wokół screena */
}

.portfolio__featured-content {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.portfolio__meta {
    margin-bottom: 15px;
    font-size: 0.85em;
    color: var(--color-text-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.portfolio__date {
    margin-right: 15px;
}

.portfolio__status {
    color: #28a745; /* Green for active */
    background: #e8f5e9;
    padding: 2px 8px;
    border-radius: 4px;
}

.portfolio__featured-content h3 {
    font-size: 2em;
    margin-bottom: 20px;
}

.portfolio__tags {
    display: flex;
    flex-wrap: wrap; /* Pozwala tagom przejść do nowej linii na mobile */
    gap: 10px;       /* Robi odstępy między tagami */
    margin: 20px 0;
}

.tag {
    background-color: #edf2f7; /* Jasny szary/niebieski */
    color: #4a5568;           /* Ciemniejszy tekst dla kontrastu */
    padding: 6px 14px;
    border-radius: 20px;       /* Zaokrąglone rogi - pigułka */
    font-size: 0.8em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.tag:hover {
    background-color: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

/* Responsywność dla Portfolio */
@media (max-width: 992px) {
    .portfolio__featured-item {
        flex-direction: column;
    }
    .portfolio__featured-image {
        height: 250px;
    }
}


/* Case Study Specifics */
.container--wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.case-study-hero {
    padding: 60px 0 40px;
    background: #fff;
    text-align: center;
}

.case-study__meta {
    font-size: 0.9em;
    font-weight: 600;
    color: var(--color-secondary);
    margin-bottom: 10px;
}

/* Power BI Container - Zachowuje proporcje 16:9 */
.report-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding-top: 56.25%; /* Aspect Ratio 16:9 */
    background: #000;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.report-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.report-instruction {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9em;
    color: var(--color-text-light);
}

/* Details Grid */
.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    padding: 80px 0;
    border-top: 1px solid var(--color-border);
    margin-top: 40px;
}

.brief-info {
    margin-top: 30px;
    background: var(--color-background-light);
    padding: 25px;
    border-radius: 8px;
}

.info-item {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

.info-item strong {
    font-size: 0.8em;
    text-transform: uppercase;
    color: var(--color-text-light);
    margin-bottom: 4px;
}

.pipeline-step {
    margin-bottom: 25px;
}

.pipeline-step strong {
    color: var(--color-primary);
    display: block;
    margin-bottom: 5px;
}

/* Responsive Case Study */
@media (max-width: 992px) {
    .details-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}





/* Kontener pomocniczy, by wyrównać wskazówkę do prawej krawędzi raportu */
.hint-wrapper {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px; /* Odstęp od dolnej krawędzi iframe */
    padding-right: 5px; /* Delikatne przesunięcie, by celować w róg */
}

.fullscreen-hint-below {
    display: flex;
    align-items: center;
    background-color: var(--color-background-light); /* Subtelniejsze tło niż czysta biel */
    padding: 6px 15px;
    border-radius: 20px;
    border: 1px solid var(--color-border);
    animation: pulse-subtle 2s infinite ease-in-out;
}

.hint-text {
    font-size: 0.85em;
    font-weight: 600;
    color: var(--color-primary);
    margin-right: 10px;
}

.hint-arrow-up {
    stroke: var(--color-primary);
    width: 20px;
    height: 20px;
    /* Obrót o -135 stopni sprawia, że strzałka celuje w górę i w prawo */
    transform: rotate(-80deg); 
}

/* Subtelniejsza animacja dla elementu poza raportem */
@keyframes pulse-subtle {
    0% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
    100% { transform: translateY(0); }
}

/* Ukrywamy na mobile, bo tam i tak zazwyczaj nie ma przycisku full-screen w tym samym miejscu */
@media (max-width: 768px) {
    .hint-wrapper { display: none; }
}



.step__icon-container {
    background-color: #f0f7ff; /* Bardzo jasny niebieski */
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--color-primary);
}

.step__icon-container i {
    width: 32px;
    height: 32px;
    stroke-width: 1.5px; /* Cieńsze linie wyglądają bardziej elegancko */
}

/* Zmieniamy siatkę na 4 kolumny dla większych ekranów */
@media (min-width: 992px) {
    .process__steps {
        grid-template-columns: repeat(4, 1fr);
    }
}






/* --- Profesjonalna Ciemna Stopka --- */
.footer {
    background-color: #1a202c; /* Głęboki granat / ciemny antracyt */
    color: #e2e8f0; /* Jasnoszary tekst dla czytelności */
    padding: 80px 0 40px;
    border-top: none;
}

.footer__col h3 {
    font-size: 1.1em;
    color: #ffffff; /* Białe nagłówki w stopce */
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.footer__col p, .footer__col a {
    color: #cbd5e0; /* Przygaszony kolor tekstu */
    line-height: 1.7;
    text-decoration: none;
}

.footer__col a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1); /* Bardzo delikatna linia */
    margin-top: 50px;
    padding-top: 30px;
    color: #a0aec0;
}

.footer__privacy p {
    font-size: 0.8em;
    line-height: 1.5;
}

/* Sekcja Contact - upewnijmy się, że jest czysta i biała */
.contact-section {
    background-color: #ffffff;
    padding: 100px 0;
}