/* ==================================== */
/* ZMIENNE I GŁÓWNE STYLE */
/* ==================================== */

:root {
  --bg-color: #1a1a1a;
    --text-color: #e0e0e0;
    --muted-text-color: #a0a0a0;
    --primary-color: #f7ca18; /* <-- NOWY, musztardowy kolor */
    --border-color: #2c2c2c;
 /*   --bg-color: #212121; /* Bardzo ciemny grafit */
 /*  --surface-color:#212121; /* #2d2d2d;  Trochę jaśniejszy do kart */



    --surface-color: #212121; /* Dodajemy surface-color, będzie używany do kart */

    /* ... reszta zmiennych ... */


}

body.light-mode {
    --bg-color: #ffffff;
    --text-color: #1a1a1a;
    --muted-text-color: #4a4a4a;
    --border-color: #e0e0e0;
    --header-bg-opacity: 0.9;


    --surface-color: #f7f7f7; /* Jasna powierzchnia dla kart */




}

body {
    font-family: 'Inter', 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    transition: background-color 0.3s ease;
}



.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 100px 0;
}

.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
    text-align: center; /* <<< TO JEST KLUCZOWA LINIA */
}

.section-subtitle {
    font-size: 18px;
    color: var(--muted-text-color);
    max-width: 700px;
    margin: 0 auto 50px;
    text-align: center; /* <<< ORAZ TA LINIA */
    line-height: 1.6;
}


/* ==================================== */
/* NAGŁÓWEK I NAWIGACJA */
/* ==================================== */
/* ... reszta kodu CSS ... */

/* GŁÓWNY STYL DLA NAGŁÓWKA */

/* ==================================== */
/* NAGŁÓWEK I NAWIGACJA */
/* ==================================== */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

body.light-mode .header {
    background-color: rgba(255, 255, 255, 0.9);
}

.nav {
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Styl dla Twojego logo w obrazku */
.logo-image {
    height:30px; /* Możesz dostosować wysokość, jeśli trzeba */
    width: auto;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 32px;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    text-decoration: none;
    color: var(--muted-text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.theme-toggle {
    background-color: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-color);
    font-size: 20px;
}

.theme-toggle .fa-sun { display: none; }
body.light-mode .fa-moon { display: none; }
body.light-mode .fa-sun { display: inline-block; }


/* ==================================== */
/* SEKCJA HERO */
/* ==================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 70px; /* Wysokość nagłówka */
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-text-content {
    order: 1; /* Tekst po lewej na dużych ekranach */
}

.status-badge {
    background-color: rgba(247, 202, 24, 0.1); /* Używamy koloru --primary-color */
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
    display: inline-block;
}

.hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: 72px; /* Większy tytuł, jak w projekcie */
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
    line-height: 1.1;
}

.hero-subtitle-highlight {
    color: var(--primary-color);
}

.hero-description {
    font-size: 18px;
    color: var(--muted-text-color);
    margin: 24px 0 32px;
    max-width: 500px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

/* Nowe, dopracowane style przycisków */
.cta-button {
    font-family: 'Poppins', sans-serif;
    padding: 14px 28px;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.cta-button.primary {
    background-color: var(--primary-color);
    color: #121212; /* Ciemny kolor tekstu dla kontrastu */
}
.cta-button.primary:hover {
    background-color: #ffde59; /* Jaśniejszy odcień żółtego */
    transform: translateY(-3px);
}

.cta-button.secondary {
    background-color: transparent;
    color: var(--text-color);
    border: 2px solid var(--border-color);
}

.cta-button.secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 60px;
}

.hero-stats h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 36px;
    font-weight: 600;
    margin: 0 0 4px 0;
}

.hero-stats p {
    font-size: 16px;
    color: var(--muted-text-color);
    margin: 0;
}

.hero-image-content {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    order: 2; /* Obrazek po prawej */
}

.image-glow-wrapper {
    position: relative;
    display: inline-block;
}

.hero-image {
    max-width: 100%;
    height: 450px; /* Dostosuj wysokość zdjęcia, jeśli trzeba */
    width: auto;
    display: block;
    position: relative;
    z-index: 2;
}

/* Nowy, ładniejszy efekt poświaty */
.image-glow-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--primary-color) 0%, rgba(247, 202, 24, 0) 70%);
    opacity: 0.25;
    z-index: 1;
}

/* Style dla przycisku przewijania */
.scroll-down-btn {
    position: absolute;
    bottom: -30px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: #121212;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    text-decoration: none;
    z-index: 3;
    animation: bounce 2s infinite; /* Dodajemy animację */
}

/* Animacja "podskakiwania" dla przycisku */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* ==================================== */
/* SEKCJA PORTFOLIO */
/* ==================================== */
.portfolio {
    padding: 100px 0;
}



.filter-buttons {
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

/* Nowe style przycisków filtrowania */
.filter-btn {
    font-family: 'Poppins', sans-serif;
    background-color: var(--surface-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn.active {
    background-color: var(--primary-color);
    color: #121212;
    border-color: var(--primary-color);
}

.filter-btn:not(.active):hover {
    background-color: var(--border-color);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

/* Kluczowe, nowe style dla kart projektów */
.project-card {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
	
	
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.project-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.project-content {
    padding: 25px;
}

.project-title {
    font-family: 'Poppins', sans-serif;
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 10px 0;
}

.project-description {
    font-size: 15px;
    color: var(--muted-text-color);
    margin-bottom: 20px;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tag {
    background-color: var(--border-color);
    color: var(--muted-text-color);
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.btn-details {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-details:hover {
    text-decoration: underline;
}

/* ==================================== */
/* MEDIA QUERIES */
/* ==================================== */
@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
        max-width: 90%;
    }

    .hero-text-content {
        order: 2;
    }

    .hero-image-content {
        order: 1;
    }

    .hero-title {
        font-size: 40px;
    }

    .hero-description {
        font-size: 16px;
    }
}
/* ==================================== */
/* SEKCJA O MNIE */
/* ==================================== */
.about {
    background-color: var(--surface-color); /* Dodajemy lekko inne tło dla sekcji */
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    text-align: left;
}

.about-left-col p {
    color: var(--muted-text-color);
    line-height: 1.7;
    margin-bottom: 20px;
}

.about-section-heading {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 20px;
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Nowe style dla tagów */
.skill-tag {
    background-color: var(--bg-color); /* Ciemniejsze tło tagu */
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background-color: var(--primary-color);
    color: var(--bg-color);
    border-color: var(--primary-color);
}

.about-right-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Nowe, kluczowe style dla kart z ikonami */
.feature-card {
    background-color: var(--surface-color); /* Ciemniejsze tło karty */
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.feature-icon-wrapper {
    color: var(--primary-color);
    width: 50px;
    height: 50px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 24px;
}

.feature-card h4 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 10px 0;
}

.feature-card p {
    color: var(--muted-text-color);
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}
/* ==================================== */
/* SEKCJA OFERTA (SERVICES) */
/* ==================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    display: flex; /* Ustawiamy flexbox, aby stopka była zawsze na dole */
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.service-header {
    text-align: center;
    margin-bottom: 20px;
}

.service-icon {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-title {
    font-family: 'Poppins', sans-serif;
    font-size: 22px;
    font-weight: 600;
    margin: 0;
}

.service-features {
    list-style-type: none;
    padding: 0;
    margin: 0 0 20px 0;
    flex-grow: 1; /* Ten trik sprawia, że lista "rośnie" i pcha stopkę na dół */
}

.service-features li {
    color: var(--muted-text-color);
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

/* Tworzymy niestandardowy, żółty punktor */
.service-features li::before {
    content: '•';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-size: 18px;
}

.service-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    margin-top: auto; /* Stopka trzyma się dołu */
}

.service-price {
    font-weight: 500;
    color: var(--muted-text-color);
}

.btn-quote {
    background-color: var(--primary-color);
    color: #121212;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.btn-quote:hover {
    background-color: #ffde59;
}
/* Style dla wezwania do akcji na końcu sekcji Oferta */
.custom-project-cta {
    text-align: center;
    margin-top: 60px; /* Odstęp od siatki z usługami */
}

.custom-project-cta p {
    color: var(--muted-text-color);
    margin-bottom: 20px;
}

/* ==================================== */
/* SEKCJA KONTAKT */
/* ==================================== */
.contact {
    padding-bottom: 100px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 50px;
    margin-top: 50px;
}

.contact-heading {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    margin: 0 0 20px 0;
}

.contact-details p {
    color: var(--muted-text-color);
    line-height: 1.7;
}

.contact-details ul {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.contact-details li {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
    color: var(--muted-text-color);
}

.contact-details li i {
    color: var(--primary-color);
    font-size: 24px;
    margin-top: 5px;
}

.contact-details li strong {
    color: var(--text-color);
    font-weight: 500;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--muted-text-color);
}

.form-group input,
.form-group textarea {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 14px;
    color: var(--text-color);
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact-form button.full-width {
    width: 100%;
    justify-content: center;
}
/* Style dla komunikatu z formularza */
#form-status {
    margin-top: 20px;
    padding: 10px;
    border-radius: 6px;
    text-align: center;
    font-weight: 500;
}

#form-status.success {
    background-color: rgba(46, 204, 113, 0.2);
    color: #2ecc71; /* Zielony */
}

#form-status.error {
    background-color: rgba(231, 76, 60, 0.2);
    color: #e74c3c; /* Czerwony */
}

/* ==================================== */
/* STOPKA (FOOTER) */
/* ==================================== */
.footer {
    background-color: var(--surface-color);
    padding-top: 60px;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-col h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    margin-top: 0;
}

.footer-col h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-col p {
    color: var(--muted-text-color);
    line-height: 1.7;
    max-width: 300px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    color: var(--muted-text-color);
    font-size: 20px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul a {
    color: var(--muted-text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col ul a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 25px 0;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--muted-text-color);
    font-size: 14px;
}

/* Upewnij się, że ten kod jest w bloku @media na końcu pliku */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    .footer-col p {
        margin-left: auto;
        margin-right: auto;
    }
    .social-icons {
        justify-content: center;
    }
    .footer-bottom .container {
        flex-direction: column;
        gap: 10px;
    }
}
/* =======================================
 * SEKCJA WYZWANIA - ROZWIĄZANIA (Challenges)
 * ======================================= */

.challenges-solutions-section {
    padding: 100px 0;
    /* Używamy koloru powierzchni, jeśli jest zdefiniowany, lub podstawowego tła */
    background-color: var(--bg-color); 
    color: var(--text-color);
}

.challenges-solutions-section .section-title {
    color: var(--primary-color); /* Tytuł akcentujący */
    margin-bottom: 10px;
}

.challenges-solutions-section .section-subtitle {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
    font-size: 1.1em;
    color: var(--muted-text-color);
}

.challenge-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 równe kolumny */
    gap: 30px;
}

/* Styl dla pojedynczej karty */
.challenge-item {
    /* Używamy powierzchni, ale w przypadku braku zmiennej, fallback na #2c2c2c */
    background-color: var(--surface-color, #2c2c2c); 
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.challenge-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color); /* Podświetlenie krawędzi przy najechaniu */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.challenge-item .icon {
    font-size: 2.5em;
    color: var(--primary-color); /* Żółty akcent dla ikony */
    margin-bottom: 15px;
}

.challenge-item h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.4em;
    margin-top: 5px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.challenge-item p {
    flex-grow: 1; /* Wypełnia przestrzeń, by stopki były na jednym poziomie */
    margin-bottom: 20px;
    line-height: 1.6;
    color: var(--muted-text-color);
}

/* Styl dla podsumowania korzyści (stopka karty) */
.challenge-item .benefit {
    margin-top: auto; /* Wypycha element na dół */
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    font-size: 1em;
    font-weight: 600;
    color: var(--primary-color); /* Używamy primary color do podkreślenia korzyści */
    display: flex;
    align-items: center;
}

.challenge-item .benefit i {
    margin-right: 10px;
    color: var(--primary-color);
    font-size: 1.2em;
}

/* Responsywność dla sekcji Wyzwania */
@media (max-width: 992px) {
    .challenge-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 kolumny na tabletach */
    }
}

@media (max-width: 650px) {
    .challenge-grid {
        grid-template-columns: 1fr; /* 1 kolumna na telefonach */
    }
    .challenges-solutions-section {
        padding: 60px 0;
    }
}
/* Wewnątrz pliku style2.css, w bloku .light-mode */

.light-mode .challenges-solutions-section .challenge-item {
    /* Zmieniamy tło kart na jaśniejszy kolor (zmienna surface-color-light) */
    background-color: var(--surface-color-light); 
    /* Domyślny tekst staje się ciemny */
    color: var(--text-color-dark); 
    /* Upewniamy się, że cień jest widoczny na jasnym tle */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); 
    border-color: var(--border-color-light); /* Lżejsza ramka */
}

.light-mode .challenges-solutions-section .challenge-item h3 {
    /* Upewniamy się, że nagłówki są ciemne */
    color: var(--heading-color-dark);
}

.light-mode .challenges-solutions-section .challenge-item .benefit strong {
    /* Zapewniamy, że pogrubiony tekst jest czytelny */
    color: var(--heading-color-dark); 
}
/* Nowy styl dla logo w stopce */
.footer-logo {
    max-width: 200px; /* Dyskretny, mały rozmiar */
    height: auto;
    margin-bottom: 15px;
    opacity: 0.8; /* Lekka przezroczystość dla subtelności */
}
/* Warstwa tła (ciemny overlay) */
.modal {
    display: none; /* Domyślnie ukryty */
    position: fixed; 
    z-index: 2000; /* Upewnij się, że jest nad wszystkim */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
}



/* Główne okno modala */
.modal-content {
    background-color: var(--bg-color);
    margin: 5% auto; 
    padding: 40px;
    border-radius: 12px;
    width: 80%; /* Szerokość na dużych ekranach */
    max-width: 900px;
    position: relative;
    border: 1px solid var(--primary-color);
}

/* Styl dla przycisku zamknięcia */
.close-btn {
    color: var(--muted-text-color);
    float: right;
    font-size: 36px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.close-btn:hover {
    color: var(--primary-color);
}

/* Wnętrze modala */
.modal-body {
    padding-top: 20px;
    line-height: 1.7;
    color: var(--text-color);
}

/* Możesz tu dodać style dla tytułów/podtytułów wewnątrz modala */
.modal-body h3 {
    font-family: 'Poppins', sans-serif;
    color: var(--primary-color);
    margin-top: 30px;
}

/* ==================================== */
/* STYLE DLA GALERII W MODALU */
/* ==================================== */

.modal-gallery {
    display: grid;
    /* Domyślnie 2 kolumny na dużych ekranach, co zapewnia ładny balans */
    grid-template-columns: repeat(2, 1fr); 
    gap: 20px;
    margin: 30px 0;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.modal-gallery-item img {
    width: 100%;
    height: auto;
    border-radius: 8px; /* Zaokrąglenie dla estetyki */
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

/* Możesz dodać subtelny efekt po najechaniu, jeśli chcesz */
.modal-gallery-item img:hover {
    transform: scale(1.02);
    opacity: 0.95;
}

/* Responsywność dla małych ekranów: jedna kolumna */
@media (max-width: 600px) {
    .modal-gallery {
        grid-template-columns: 1fr;
    }
}
/* ==================================== */
/* KONTROLA ROZMIARU OBRAZÓW W MODALU */
/* ==================================== */

/* Ogranicza WSZYSTKIE obrazy wewnątrz modala, w tym główne mockupy */
.modal-details-content img,
.modal-main-image {
    max-width: 100%; /* Obraz nigdy nie wyjdzie poza szerokość swojego rodzica */
    height: auto;    /* Zachowuje proporcje, aby nie było zniekształceń */
    display: block;  /* Ułatwia kontrolę marginesów */
    margin: 30px 0;  /* Dodaje pionowy odstęp, by zdjęcia 'oddychały' */
    border-radius: 8px; /* Dla estetyki */
}

/* ==================================== */
/* STYLE DLA SEKCJI OPINIE (TESTIMONIALS) */
/* ==================================== */

.testimonials-section {
    padding: 80px 0;
    /* Delikatnie ciemniejsze tło, jeśli surface-color jest używany w portfolio, aby wizualnie oddzielić sekcje */
    background-color: var(--surface-color); 
}

.testimonials-section .section-title {
    text-align: center;
    margin-bottom: 50px;
}

.testimonials-grid {
    display: grid;
    /* Domyślnie 3 kolumny na dużych ekranach */
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    background-color: var(--bg-color); /* Ciemne tło karty */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border-top: 5px solid var(--primary-color); /* Akcent kolorystyczny */
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.quote-icon {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: block;
}

.testimonial-text {
    font-size: 16px;
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 25px;
    /* Kursywa może dodać stylu */
    font-style: italic; 
}

.testimonial-author h4 {
    margin: 0;
    font-size: 18px;
    color: var(--primary-color);
    font-weight: 700;
}

.testimonial-author p {
    margin: 5px 0 0 0;
    font-size: 14px;
    color: var(--muted-text-color);
}

/* Responsywność dla Tabletów i Telefonów */
@media (max-width: 992px) {
    .testimonials-grid {
        /* Na tabletach 2 kolumny */
        grid-template-columns: repeat(2, 1fr); 
    }
}

@media (max-width: 600px) {
    .testimonials-grid {
        /* Na telefonach 1 kolumna */
        grid-template-columns: 1fr; 
    }
    .testimonials-section {
        padding: 50px 0;
    }
}
/* ==================================== */

/* ==================================== */
/* ZMODYFIKOWANE STYLE DLA SEKCJI OPINIE (DODANIE DUŻEGO CUDZYSŁOWU) */
/* ==================================== */

/* ==================================== */
/* ZMODYFIKOWANE STYLE DLA SEKCJI OPINIE (FINALNA KOREKTA) */
/* ==================================== */

.testimonial-card {
    position: relative; 
    background-color: var(--surface-color); 
    padding: 35px;
    border-radius: 5px; 
    border: 1px solid var(--border-color); 
    transition: transform 0.3s ease, background-color 0.3s ease;
    overflow: hidden; 

    /* KLUCZOWE ZMIANY DLA WYŚRODKOWANIA W PIONIE */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Rozkłada treść (text + autor) na pełną wysokość karty */
    height: 100%; /* Upewnia się, że karty mają równą wysokość */
}

.testimonial-card:hover {
    background-color: #2a2a2a; 
}

/* STYL DUŻEGO CUDZYSŁOWU */
.quote-icon {
    position: absolute; 
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); 
    font-size: 200px; 
    color: var(--primary-color);
    opacity: 0.15; /* ZMNIEJSZONE OPACITY: 15% */
    z-index: 0; 
    margin: 0; 
    pointer-events: none; /* Dodajemy to, by nie blokowało kliknięć jeśli by były */
}

/* Upewnienie się, że tekst jest zawsze widoczny na wierzchu */
.testimonial-text {
    position: relative; 
    z-index: 1; 
    font-size: 17px;
    color: var(--text-color);
    line-height: 1.6;
    /* Zmniejszamy margines na dole, bo flexbox zajmie się odstępem */
    margin-bottom: 15px; 
    font-style: normal; 
    font-weight: 300;
}

/* Upewnienie się, że wrapper autora ma odpowiedni z-index */
.testimonial-author-wrapper {
    position: relative;
    z-index: 1;
    display: block; 
    margin-top: 10px; /* Zmniejszamy margines z góry, resztę kontroluje flexbox */
}

/* ... Reszta stylów sekcji opinii, bez zmian ... */

/* STYL DUŻEGO CUDZYSŁOWU */
.quote-icon {
    position: absolute; /* KLUCZOWE: Umożliwia nakładanie się na inne elementy */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* KLUCZOWE: Idealne wyśrodkowanie */
    font-size: 200px; /* BARDZO DUŻY ROZMIAR */
    color: var(--primary-color);
    opacity: 0.5; /* WYMAGANA PRZEZROCZYSTOŚĆ 50% */
    z-index: 0; /* KLUCZOWE: Ustawia ikonę za tekstem */
    margin: 0; /* Usuwa poprzednie marginesy */
}

/* Upewnienie się, że tekst jest zawsze widoczny na wierzchu */
.testimonial-text {
    position: relative; /* Upewnia się, że tekst ma swój własny kontekst nałożony */
    z-index: 1; /* KLUCZOWE: Ustawia tekst na wierzchu cudzysłowu */
    font-size: 17px;
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 30px;
    font-style: normal; 
    font-weight: 300;
}

/* ZModyfikowany Wrapper dla tekstu: WRACAMY DO UKŁADU BEZ ZDJĘĆ */
.testimonial-author-wrapper {
    /* Ustawiamy na blok, aby tekst był podrzędny do kontenera */
    display: block; 
    margin-top: 20px;
}

/* USUŃ LUB ZIGNORUJ PONIŻSZE STYLE: Nie są już potrzebne */
/* .author-avatar {
    display: none;
} */


.testimonial-author h4 {
    margin: 0;
    font-size: 16px;
    color: var(--text-color); 
    font-weight: 600;
}

.testimonial-author p {
    margin: 2px 0 0 0;
    font-size: 13px;
    color: var(--muted-text-color);
}