/* =======================================
1. Ustawienia Bazowe i Reset
======================================= */
:root {
    --color-dark: #1e1e2d;
    --color-primary: #8c7ae6;
    --color-secondary: #f4f4ff;
    --color-text-light: #f4f4ff;
    --color-text-muted: #b5b5c5;
    --font-main: 'Arial Black', Gadget, sans-serif;
    --transition-speed: 0.3s;
    --gradient-fiolet: #9966CC;
    --gradient-granat: #303F9F;
    --color-bg-deep: #101018;
    --pattern-size: 150px;
    --color-glow-fiolet: rgba(140, 122, 230, 0.25);
    --color-glow-niebieski: rgba(48, 63, 159, 0.20);
}
/* Uniwersalny Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    background-color: var(--color-bg-deep);
    font-size: 0; /* Resetuje font-size dla html, body dziedziczy i ustawia własny */
    height: 100%;
    margin: 0;
    padding: 0;
}
body {
    /* Układ */
    display: block;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    /* Reset */
    height: 100%;
    margin: 0;
    padding: 0;
    /* Typografia */
    font-size: 16px; 
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--color-text-light);
    /* Tło/Wizualne */
    background-color: var(--color-bg-deep);
    background-attachment: fixed;
    background-image:
        radial-gradient(circle at 10% 10%, var(--color-glow-fiolet) 0%, transparent 45%),
        radial-gradient(circle at 90% 90%, var(--color-glow-niebieski) 0%, transparent 45%),
        radial-gradient(circle at 50% 50%, rgba(140, 122, 230, 0.05) 0%, transparent 80%);
}
body.loaded {
    display: block;
    overflow-y: auto;
}
.hidden {
    display: none !important;
}
/* =======================================
2. Ekran Powitalny (Welcome Screen)
======================================= */
#welcome-screen {
    /* Pozycja i Wymiary */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Układ */
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 0 5%;
    /* Wizualne */
    background-color: var(--color-bg-deep);
    background-image: radial-gradient(circle at center, #1e1e2d 20%, #101018 70%, #000000 100%);
    box-shadow: none;
    overflow: hidden;
    /* Inne */
    z-index: 100;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}
#welcome-screen.faded-out { 
    pointer-events: none; 
    visibility: hidden; 
    z-index: -10; 
}
/* Animowany Wzór Tła */
#welcome-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 300%;
    height: 300%;
    z-index: -1;
    opacity: 0.3;
    background-image: radial-gradient(circle, var(--color-text-muted) 1px, transparent 1px);
    background-size: var(--pattern-size) var(--pattern-size);
    transform: translate(-50%, -50%);
    animation: backgroundPan 60s linear infinite;
}
#welcome-text.banner {
    /* Układ */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: flex-start;
    position: relative;
    /* Model Pudełkowy */
    padding: 10px;
    padding-bottom: 20px;
    margin-right: 50px;
    margin-bottom: 0;
    /* Typografia/Inne */
    font-size: 100% !important;
    font-weight: 900 !important;
    letter-spacing: 1px !important;
    z-index: 10;
}
.line-one, .line-two {
    display: block !important;
    line-height: 1.1;
    margin-bottom: 5px;
}
.line-one {
    font-size: clamp(30px, 5vw, 70px) !important;
    color: white !important;
    text-shadow:
        2px 2px 5px rgba(0, 0, 0, 0.6),
        0 0 15px rgba(255, 255, 255, 0.3);
}
.line-two {
    font-size: clamp(25px, 4.5vw, 60px) !important;
    margin-top: 5px;
    display: flex !important;
    justify-content: flex-start !important;
    gap: 1.2vw !important;
    text-shadow: 0px 5px 8px rgba(0, 0, 0, 0.5);
}
.word-reveal {
    opacity: 0;
    display: inline-block;
    transform: none;
    animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
/* Gradient Tekstu */
.word-portfolio, .word-website {
    background: linear-gradient(to right, var(--gradient-fiolet), var(--gradient-granat));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: none !important;
    display: inline-block;
}
/* Linia Animowana */
.animated-underline {
    position: absolute;
    bottom: 0;
    left: 10px;
    height: 3px;
    width: 200px;
    display: block;
    border-radius: 1.5px;
    background: linear-gradient(to right, var(--gradient-fiolet), var(--gradient-granat));
    transition: none;
    transform: none;
}
/* Pasek Ładowania */
.progress-bar {
    width: 70%;
    max-width: 500px;
    height: 10px;
    background-color: #333;
    border-radius: 5px;
    margin-top: 0;
    overflow: visible;
    position: relative;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
    z-index: 10;
}
#progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    border-radius: 5px;
    background: linear-gradient(
        90deg,
        #9966FF 0%,
        #5544FF 50%,
        #3322CC 100%
    );
    box-shadow: 0 0 5px #7777FF, 0 0 10px #7777FF;
    overflow: visible;
    transition: width 0.1s ease-out;
}
/* Cząsteczki (Bąbelki) */
.particle {
    position: absolute;
    bottom: 0;
    background: radial-gradient(circle, white 50%, rgba(255, 255, 255, 0.5) 100%);
    border-radius: 50%;
    opacity: 0.7;
    z-index: 2;
    animation: rise var(--animation-duration, 3s) ease-out forwards;
}
/* =======================================
3. Główna Treść Portfolio
======================================= */
.hidden {
    display: none !important;
}
#main-header {
    /* Pozycja */
    position: sticky;
    top: 0;
    width: 100%;
    height: 70px;
    z-index: 50;
    /* ... */
}
/* KLUCZOWA POPRAWKA 1: Wymuszenie stałej pozycji na samej górze */
#main-header.header-fixed-top {
    position: fixed; /* Zmieniamy na fixed, aby zniwelować marginesy/odstępy viewportu */
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.7); /* Zawsze włączony cień */
}
#main-content {
    min-height: 100vh;
    padding: 0;
    font-size: 16px;
    line-height: 1.6;
    background-color: var(--color-bg-deep);
    background-image: none;
    opacity: 0;
    transition: opacity 0.8s ease-in;
    pointer-events: none;
}
#main-content:not(.hidden) {
    opacity: 1;
}
#main-content.loaded-active {
    opacity: 1;
    pointer-events: auto; /* Włącz interakcje */
}
header {
    /* Pozycja */
    position: sticky;
    top: 0;
    z-index: 50;
    /* Styl */
    text-align: center;
    margin: 0;
    padding: 0;
}
header h2 {
    color: var(--color-primary);
    font-size: 1.5em;
}
.page-section {
    padding: 60px 6%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0;
    max-width: 1400px;
    scroll-margin-top: 100px;
}
.page-section h3 {
    font-size: 2em;
    margin-bottom: 20px;
    padding-bottom: 10px;
    width: 100%;
    text-align: center;
    display: block;
    /* Wizualne */
    background: linear-gradient(to right, var(--gradient-fiolet), var(--gradient-granat));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    border-bottom: 3px solid rgba(140, 122, 230, 0.4);
}
section p {
    color: var(--color-text-light);
    margin-bottom: 15px;
}
/* === GLOBALNE STYLE PRZYCISKÓW === */
.project-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}
.project-btn {
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9em;
    display: inline-block;
    transition: all 0.3s ease-out;
}
.project-btn.primary {
    background: linear-gradient(to right, var(--gradient-fiolet), var(--gradient-granat));
    color: white;
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}
.project-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(140, 122, 230, 0.5);
}
.project-btn.secondary {
    background-color: transparent;
    border: 2px solid var(--color-text-muted);
    color: var(--color-text-light);
    box-shadow: 0 0 5px rgba(181, 181, 197, 0.2);
}
.project-btn.secondary:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background-color: rgba(140, 122, 230, 0.1);
}
/* =======================================
4. Animacje
======================================= */
@keyframes slideInLeft {
    0% { opacity: 0; transform: translateX(-50px); }
    100% { opacity: 1; transform: translateX(0); }
}
@keyframes slideInUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}
@keyframes backgroundPan {
    0% { transform: translate(-50%, -50%); }
    100% { transform: translate(-100%, -100%); }
}
@keyframes rise {
    0% { transform: translateY(0); opacity: 0.7; }
    100% { transform: translateY(-200%); opacity: 0; }
}
@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--color-primary); } /* Użycie głównego koloru */
}
@keyframes pulse {
    0% { opacity: 0.8; }
    100% { opacity: 1.0; }
}
/* =======================================
5. Responsywność (Media Queries)
======================================= */
@media (max-width: 992px) {
    .page-section {
        padding: 40px 6%;
    }
    .progress-bar {
        height: 8px;
    }
}
@media (max-width: 576px) {
    /* Ekran Powitalny */
    #welcome-screen {
        flex-direction: column;
        justify-content: center;
    }
    #welcome-text.banner { /* Używam .banner jako precyzyjniejszego selektora */
        margin-right: 0;
        align-items: center;
        text-align: center;
    }
    .progress-bar {
        height: 6px;
        margin-top: 20px;
        width: 80%;
    }
    .animated-underline {
        left: 50%; /* Przesunięcie na środek (jeśli tekst też jest scentrowany) */
        transform: translateX(-50%);
    }
    /* Treść Główna */
    .page-section {
        padding: 30px 4%;
        margin-bottom: 20px;
    }
    .page-section h3 {
        font-size: 1.6em;
    }
    header h2 {
        font-size: 1.3em;
    }
}
/* Plik: style/about.css (FINALNA WERSJA ESTETYCZNA I WYŚRODKOWANA) */
/* =======================================
1. Kontener Sekcji O Mnie (About Me)
======================================= */
#about {
min-height: 100vh;
display: flex;
flex-direction: column;
justify-content: center;
padding-top: 20px;
padding-bottom: 80px;
scroll-margin-top: 70px;
}
/* W pliku style.css upewnij się, że .page-section ma scroll-margin-top: 70px */
/* --- Nagłówek sekcji (H3) --- */
/* --- 2. Kontener główny (Układ) --- */
.about-container {
display: flex;
justify-content: center;
align-items: center;
gap: 60px;
max-width: 1000px;
margin: 0 auto;
width: 100%;
}
/* --- 3. Strefa Lewa: Wizualizacja --- */
.about-visual-column {
flex: 0 0 250px;
display: flex;
flex-direction: column;
align-items: center;
position: relative;
margin-top: -80px;
}
.about-photo-wrapper {
position: relative;
padding: 10px;
box-shadow: 0 0 0 4px var(--color-bg-deep), 0 0 0 6px var(--color-primary);
border-radius: 50%;
margin-bottom: 20px;
overflow: hidden;
transition: transform 0.3s ease-out;
}
.about-photo-wrapper:hover {
transform: scale(1.03);
}
.about-photo-placeholder {
width: 180px;
height: 180px;
border-radius: 50%;
object-fit: cover;
display: block;
background-color: transparent; 
z-index: 5;
}
/* Kółko statusu/opisu pod zdjęciem */
.photo-caption {
display: flex;
align-items: center;
gap: 10px;
padding: 10px 20px;
border-radius: 25px;
font-size: 0.9em;
font-weight: 600;
color: var(--color-text-light);
background-color: var(--color-dark);
border: 1px solid var(--color-primary);
box-shadow: 0 0 10px rgba(140, 122, 230, 0.3),
            0 2px 5px rgba(0, 0, 0, 0.6);
transition: all 0.3s ease-out;
margin-bottom: 30px;
}
.photo-caption:hover {
box-shadow: 0 0 15px var(--color-primary),
            0 2px 8px rgba(0, 0, 0, 0.8);
transform: translateY(-1px);
cursor: default;
}
.caption-dot {
width: 10px;
height: 10px;
border-radius: 50%;
background-color: var(--color-primary);
box-shadow: 0 0 8px var(--color-primary);
}
/* --- 4. Strefa Prawa: Tekst i Nagłówki --- */
.about-text-content {
flex: 1;
max-width: 650px;
}
/* NOWY KONTENER GŁÓWNY (H2) */
.about-main-title {
font-size: 3.2em;
font-weight: 900;
line-height: 1.1;
margin-bottom: 5px; /* Przestrzeń do subtitle */
}
/* ZMIANA 1: GREETING (Jak Tagline w Home - BIAŁY) */
.greeting-white {
font-size: 0.35em;
font-weight: 500;
display: block;
color: var(--color-text-light); /* BIAŁY */
margin-bottom: 5px;
}
/* ZMIANA 2: NAME (BIAŁY SUBTELNY NEON) */
.name-glow {
font-size: 1em; /* Dziedziczy rozmiar z about-main-title */
font-weight: 900;
color: var(--color-text-light); /* BIAŁY */
display: block;
text-shadow: 
    0 0 5px rgba(255, 255, 255, 0.4), /* Biały blask dla czystości (mniej intensywny niż 0.9) */
    0 0 10px rgba(140, 122, 230, 0.2); /* Subtelny fioletowy "back glow" (mniej intensywny niż 0.4) */
}
/* ZMIANA 3: SUBTITLE (FIOLETOWY AKCENT Z GRADIENTEM) */
.about-subtitle {
font-size: 1.1em;
font-weight: 600;
/* Dodanie gradientu jak w sekcji Home */
background: linear-gradient(to right, var(--gradient-fiolet), var(--gradient-granat));
-webkit-background-clip: text;
background-clip: text;
color: transparent; /* Umożliwia widoczność gradientu */
text-shadow: none; /* Usuń cień, aby nie konkurował z gradientem */
margin-bottom: 10px; 
}
.about-description {
font-family: Arial, sans-serif;
font-size: 0.95em;
line-height: 1.6;
color: var(--color-text-muted);
margin-bottom: 15px;
text-align: justify;
}
.about-description.description-style-home {
border-left: 3px solid var(--color-primary);
padding-left: 15px;
margin-left: -15px; 
}
.about-skill-grid {
display: flex;
flex-wrap: wrap;
gap: 12px;
margin-bottom: 40px;
margin-top: 20px;
}
.skill-pill {
padding: 8px 15px;
border-radius: 20px;
font-size: 0.8em;
font-weight: 600;
background-color: rgba(140, 122, 230, 0.15);
color: var(--color-primary);
border: 1px solid var(--color-primary);
transition: all 0.3s ease;
}
.skill-pill:hover {
background-color: var(--color-primary);
color: var(--color-dark);
}
/* --- STYLE ANIMACJI --- */
/* Nowa animacja dla tekstu */
@keyframes slideInX {
    0% { opacity: 0; transform: translateX(-50px); }
    100% { opacity: 1; transform: translateX(0); }
}
.animated-item {
opacity: 0;
transform: translateY(20px);
transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.animated-item.is-visible {
opacity: 1;
transform: translateY(0);
}
.animated-item.is-visible.about-main-title,
.animated-item.is-visible.about-subtitle {
    animation: slideInX 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) both; 
    transform: none; 
}
/* =======================================
5. Responsywność
======================================= */
@media (max-width: 1100px) {
    .about-container {
        max-width: 95%; /* Zapewnienie marginesów na mniejszych ekranach */
    }
}
@media (max-width: 992px) {
#about {
min-height: auto;
padding-top: 50px; 
padding-bottom: 50px;
}
.about-container {
flex-direction: column;
gap: 30px;
}
.about-visual-column {
order: 1;
flex: none;
margin-top: 0;
}
.about-text-content {
order: 2;
text-align: center;
max-width: 90%; 
margin-left: auto;
margin-right: auto;
}
.about-skill-grid {
justify-content: center;
}
.project-links {
justify-content: center;
}
.about-description.description-style-home {
margin-left: auto; 
margin-right: auto;
padding-left: 15px;
text-align: left;
max-width: 100%;
}
}
@media (max-width: 576px) {
.about-main-title {
    font-size: 2.2em;
}
.about-photo-placeholder {
width: 150px;
height: 150px;
}
}
/* =======================================
style/contact.css (WERSJA FINALNA: NAPRAWIONA WERSJA)
======================================= */
#contact {
    /* Utrzymanie nagłówka na górze, gdy content jest mniejszy */
    min-height: auto; /* Zmiana z 80vh na 100vh dla centrowania w pełnym widoku */
    display: block;
    flex-direction: column;
    /* Centrowanie kontenera w pionie (działa tylko jeśli min-height jest większe niż zawartość) */
    justify-content: flex-start; 
    padding-top: 50px; 
    padding-bottom: 50px;
    /* ZMIANA: Używamy większej wartości, aby przeglądarka przewinęła się dalej niż tylko 70px */
    scroll-margin-top: 100px; 
}
#contact h3 {
    /* Nadpisanie globalnego stylu, dodanie głębszego cienia/blasku */
    text-shadow: 
        0 0 10px rgba(140, 122, 230, 0.5), /* Neonowy blask */
        0 0 20px rgba(140, 122, 230, 0.3);
    /* Zapewnienie, że kolor tła dla tekstu jest zdefiniowany (odziedziczony z globalnego CSS) */
    background: linear-gradient(to right, var(--gradient-fiolet), var(--gradient-granat));
    -webkit-background-clip: text;
    background-clip: text;
    color: var(--color-text-light);
    /* Poprawka dolnej linii: Zmiękczenie */
    border-bottom: 2px solid rgba(140, 122, 230, 0.2);
}
/* Tytuł bloku informacyjnego (Znajdź mnie online) */
.info-title {
    font-size: 1.4em;
    background: linear-gradient(to right, var(--gradient-fiolet), var(--gradient-granat));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 800;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(140, 122, 230, 0.6);
}
.contact-container {
    display: flex;
    justify-content: center; 
    align-items: flex-start;
    gap: 60px;
    padding-top: 30px;
    max-width: 1000px; /* Lekkie zwiększenie szerokości kontenera */
    margin: 0 auto;
}
/* --- LEWA STRONA: FORMULARZ --- */
.contact-form-wrapper {
    flex: 1;
    max-width: 550px; /* Lekkie zwiększenie formularza dla lepszego wyglądu */
}
/* Naprawa problemu z tekstem pionowym */
.contact-lead {
    font-size: 1.1em;
    color: var(--color-text-muted);
    margin-bottom: 30px;
    border-left: 3px solid var(--color-primary); 
    padding-left: 15px;
    line-height: 1.6;
    display: block; /* Zapewnienie, że jest to blokowy element */
}
.contact-form .form-group {
    margin-bottom: 20px;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 15px;
    background-color: #2a2a3a;
    border: 1px solid rgba(140, 122, 230, 0.4);
    border-radius: 8px;
    color: var(--color-text-light);
    font-size: 1em;
    font-family: Arial, sans-serif;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-shadow: inset 0 1px 5px rgba(0, 0, 0, 0.7);
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 15px rgba(140, 122, 230, 0.8), inset 0 1px 5px rgba(0, 0, 0, 0.7);
}
.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}
.submit-btn {
    width: 100%;
    padding: 15px;
    border: none;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 700;
    margin-top: 10px;
}
/* --- PRAWA STRONA: IKONY SPOŁECZNOŚCIOWE (NOWY WYGLĄD) --- */
/* Ten kontener (contact-info) jest animowany i pełni rolę wizualnego otoczenia siatki */
.contact-info {
    flex-basis: 350px; 
    flex-shrink: 0;
    padding: 30px;
    border-radius: 10px;
    background-color: #1e1e2d;
    border: 1px solid var(--color-primary); 
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.9), 0 0 20px rgba(140, 122, 230, 0.6);
    /* Ustawienie Flex/Grid dla wyrównania wewnętrznego, jeśli zajdzie potrzeba */
    display: flex; 
    flex-direction: column;
}
.social-links-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    width: 100%;
    margin-top: 10px;
}
.social-link-item a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 8px 15px; /* ZMNIEJSZONO PADDING */
    text-decoration: none;
    border-radius: 6px;
    font-size: 1em;
    font-weight: 600;
    color: var(--color-text-light);
    background-color: #1e1e2d; /* Ciemniejszy, aby kontrastował z contact-info */
    border: 1px solid rgba(140, 122, 230, 0.2);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease-out;
}
.social-link-item a:hover {
    transform: translateY(-2px);
    border-color: var(--color-primary);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5), 0 0 10px var(--color-primary);
}
.social-icon-svg {
    height: 20px; /* ZMNIEJSZONO ROZMIAR IKONY */
    width: 20px; /* ZMNIEJSZONO ROZMIAR IKONY */
    fill: currentColor;
    color: var(--color-primary);
    transition: color 0.3s;
}
.contact-info .social-link-item .social-icon-svg {
    height: 20px;
    width: 20px;
}
#project-detail-body {
    background-image:
        radial-gradient(circle at 10% 10%, var(--color-glow-fiolet) 0%, transparent 45%),
        radial-gradient(circle at 90% 90%, var(--color-glow-niebieski) 0%, transparent 45%),
        radial-gradient(circle at 50% 50%, rgba(140, 122, 230, 0.05) 0%, transparent 80%);
}
/* --- STYLE ANIMACJI SCROLL REVEAL (dla kontaktu) --- */
.animated-item {
    opacity: 0; 
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.animated-item.is-visible {
    opacity: 1 !important; 
    transform: none !important; 
}
/* Responsive dla Contact */
@media (max-width: 992px) {
    .contact-container {
        flex-direction: column;
        gap: 40px;
    }
    #contact {
        min-height: auto; 
        padding-top: 50px;
        padding-bottom: 50px;
        justify-content: flex-start;
    }
    .contact-form-wrapper {
        max-width: 100%;
        order: 2; /* Formularz na dole */
    }
    .contact-info {
        flex-basis: auto;
        padding: 20px;
        order: 1; /* Informacje na górze */
    }
    .social-links-grid {
        max-width: 400px; 
        margin: 0 auto;
    }
}
@media (max-width: 576px) {
    .contact-form-wrapper {
        padding: 0 15px; /* Dodatkowe zabezpieczenie marginesów na małych ekranach */
    }
}
/* =======================================
style/footer.css (Profesjonalna Stopka)
======================================= */
#main-footer {
    background-color: var(--color-bg-deep);
    border-top: 1px solid rgba(140, 122, 230, 0.15);
    padding: 30px 6%;
    text-align: center;
    font-size: 0.9em;
    color: var(--color-text-muted);
}
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}
.footer-social-links {
    display: flex;
    gap: 20px;
    margin-bottom: 5px;
}
.social-icon {
    display: block;
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}
.social-icon-svg {
    fill: var(--color-text-muted);
    width: 100%;
    height: 100%;
    transition: fill 0.3s ease-out, box-shadow 0.3s ease-out;
}
.social-icon:hover {
    transform: scale(1.1);
}
.social-icon:hover .social-icon-svg {
    fill: var(--color-primary);
    filter: drop-shadow(0 0 5px rgba(140, 122, 230, 0.8));
}
.footer-content p {
    margin: 0;
    font-size: 0.9em;
}
.footer-links {
    margin-top: 5px;
    font-size: 0.85em;
    display: flex;
    gap: 10px;
    align-items: center;
}
.footer-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.3s ease-out;
}
.footer-links a:hover {
    color: var(--color-primary);
}
.footer-links span {
    color: rgba(181, 181, 197, 0.5);
}
/* === Responsywność Stopki === */
@media (max-width: 576px) {
    #main-footer {
        padding: 20px 4%;
    }
    .footer-content {
        gap: 10px;
    }
}
/* Plik: style/home.css (PEŁNY, WERSJA POPRAWIONA) */
/* =======================================
1. Nagłówek i Nawigacja (Navbar) - Tylko style specyficzne dla Home/Navbar
======================================= */
#main-header {
    /* Pozycja i Wymiary */
    position: sticky;
    top: 0;
    width: 100%;
    height: 70px;
    z-index: 50;
    /* Wizualne */
    background-color: transparent;
    box-shadow: 0 0px 0px rgba(0, 0, 0, 0);
    border-bottom: 1px solid rgba(140, 122, 230, 0);
    transition: background-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out, border-bottom 0.3s ease-in-out;
}
#main-header.scrolled {
    background-color: rgba(16, 16, 24, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.7);
    border-bottom: 1px solid rgba(140, 122, 230, 0.2);
}
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 3% !important; 
}
/* --- Logo --- */
.navbar-logo a {
    font-size: 1.5em;
    font-weight: 900;
    text-decoration: none;
    background: linear-gradient(to right, var(--gradient-fiolet), var(--gradient-granat));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 1px white, 0 0 15px rgba(140, 122, 230, 1.0);
    transition: text-shadow 0.3s;
}
/* --- Linki Nawigacyjne --- */
.navbar-links {
    list-style: none;
    display: flex;
    gap: 30px;
}
.navbar-links li a {
    color: var(--color-text-light);
    font-size: 1.1em;
    font-weight: 600;
    text-decoration: none;
    padding-bottom: 5px;
    position: relative;
    transition: color var(--transition-speed);
}
.navbar-links li a.active {
    background: linear-gradient(to right, var(--gradient-fiolet), var(--gradient-granat));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.navbar-links li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: linear-gradient(to right, var(--gradient-fiolet), var(--gradient-granat));
    transition: width var(--transition-speed) ease-out;
}
.navbar-links li a.active::after,
.navbar-links li a:hover::after {
    width: 100%;
}
/* =======================================
2. Sekcja HERO / HOME (Układ Flexbox)
======================================= */
#home {
    min-height: calc(100vh - 70px); /* Minimalna wysokość widoku minus wysokość nagłówka */
    display: flex;
    align-items: center;
    padding-top: 50px;
    padding-bottom: 50px;
}
.hero-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    /* Zapewnienie minimalnej wysokości dla układu bocznego */
    min-height: 500px; 
}
/* --- Lewa Strona (Tekst) --- */
.hero-text-content {
    flex: 1 1 50%; 
    max-width: 600px;
    padding-right: 40px; 
}
.tagline {
    font-size: 1.1em;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 10px;
    display: block;
}
.main-title {
    font-size: clamp(2.5em, 5vw, 4.2em);
    font-weight: 900;
    line-height: 1.05;
    color: var(--color-text-light);
    margin-bottom: 5px;
}
.developer-gradient {
    background: linear-gradient(to right, var(--gradient-fiolet), var(--gradient-granat));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
    text-shadow: 0 0 15px rgba(140, 122, 230, 0.4);
}
.subtitle {
    display: inline-block;
    font-size: clamp(0.9em, 1.6vw, 1.3em);
    font-weight: 700;
    color: var(--color-text-muted);
    margin-bottom: 5px;
    /* Typewriter effect styles: kluczowe ustawienia */
    overflow: hidden; 
    border-right: 0.15em solid var(--color-primary); /* Kursor */
    white-space: nowrap; 
    /* DODANE: Pulsowanie (dla lepszego efektu Typewriter) */
    animation-name: pulse;
    animation-duration: 2s;
    animation-iteration-count: infinite;
    /* DODANE: Zapobiega widoczności pustej linii przed startem JS */
    min-width: 5px; 
    min-height: 1.3em; /* Dodaj minimalną wysokość czcionki */
}
.subtitle:empty {
    /* Zapobiega widoczności tekstu przed animacją */
    opacity: 0; 
}
.subtitle.typing-done {
    /* TYLKO po zakończeniu pisania: ukrywa kursor */
    border-right-color: transparent !important;
}
.description {
    /* ZGODNIE Z PROŚBĄ: MNIEJSZY ROZMIAR TEKSTU */
    font-size: 1.0em; 
    line-height: 1.7;
    color: var(--color-text-muted);
    max-width: 650px;
    margin-bottom: 10px;
    /* FINALNA KOREKTA: Zapewnienie, że tekst nie jest pogrubiony */
    font-family: Arial, sans-serif !important; 
    font-weight: normal !important;
    hyphens: auto;
}
/* --- Boxy Technologii (Tech Pills) --- */
.tech-stack-pills {
    display: flex;
    flex-wrap: nowrap;
    gap: 15px;
    margin-top: 10px;
    margin-bottom: 30px; /* Dodane, aby oddzielić od przycisków */
}
.tech-stack-pills span {
    padding: 10px 18px;
    border-radius: 8px;
    background-color: #1e1e2d;
    border: 1px solid rgba(140, 122, 230, 0.2);
    box-shadow: 0 0 10px rgba(140, 122, 230, 0.4);
    font-size: 0.8em;
    font-weight: 700;
    color: var(--color-text-light);
    cursor: pointer;
    transition: all 0.3s ease-out;
}
.tech-stack-pills span:hover {
    transform: translateY(-2px);
}
/* --- Przyciski Akcji (CTA) --- */
.hero-actions {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}
.hero-btn {
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease-out;
}
.primary-btn {
    background: linear-gradient(to right, var(--gradient-fiolet), var(--gradient-granat));
    color: white;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5), 0 0 10px rgba(140, 122, 230, 0.4);
}
.primary-btn:hover {
    transform: translateY(-3px);
}
.secondary-btn {
    background-color: transparent;
    border: 2px solid var(--color-text-muted);
    color: var(--color-text-light);
    box-shadow: 0 0 5px rgba(181, 181, 197, 0.2);
}
.secondary-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background-color: rgba(140, 122, 230, 0.1);
}
/* --- Prawa Strona (Wizualizacja) --- */
.hero-visual-content {
    flex: 1 1 60%; 
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    aspect-ratio: 1 / 1; 
    max-width: 510px; 
    margin: 0 auto; 
    background: transparent;
    border-radius: 0px;
    overflow: visible;
    box-shadow: none;
}
#nodeGraphCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}
/* =======================================
3. Responsywność
======================================= */
@media (max-width: 993px) {
    #home {
        min-height: auto;
    }
    .hero-container {
        flex-direction: column; /* Tekst na górze, animacja na dole */
        text-align: center;
        min-height: 0;
    }
    .hero-text-content {
        text-align: justify;
        max-width: 100%;
        padding-right: 0;
        padding-bottom: 40px;
    }
    .main-title, .subtitle, .tagline, .description {
        text-align: center;
    }
    .tech-stack-pills{
        flex-wrap: wrap;
    }
    .tech-stack-pills, .hero-actions {
        justify-content: center; /* Centrowanie elementów */
    }
    .hero-visual-content {
        min-height: 350px;
        width: 100%;
        max-width: 450px; 
    }
}
@media (max-width: 576px) {
    .main-title {
        font-size: 2.8em;
    }
    .hero-actions {
        flex-direction: column;
        gap: 15px;
    }
    .hero-btn {
        width: 100%;
    }
    .hero-visual-content {
        min-height: 250px;
        max-width: 300px; 
    }
}
/* =======================================
style/portfolio.css (Prezentacja Projektów - WERSJA 3.3 FINALNA KOREKTA)
======================================= */
#portfolio {
    padding-top: 0px; 
    padding-bottom: 60px;
    min-height: auto; 
    display: block; 
}
#portfolio h3 {
    font-size: 2.3em;
    font-weight: 700; 
    line-height: 1.1;
    text-align: center;
    padding-bottom: 5px; 
    margin-bottom: 5px;
    /* Neonowy gradient tekstu (ZACHOWANY) */
    background: linear-gradient(to right, #b5b5c5 10%, var(--gradient-fiolet) 50%, var(--gradient-granat) 90%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    /* STONOWANY CIEŃ (delikatne świecenie) */
    text-shadow: 
        0 0 5px rgba(140, 122, 230, 0.4),
        0 0 10px rgba(140, 122, 230, 0.2);
    border-bottom: none; 
}
/* NOWY PASEK ODDZIELAJĄCY (pod nagłówkiem H3) */
.page-section .section-separator {
    display: block;
    width: 800px;
    height: 1px;
    background: rgba(140, 122, 230, 0.4);
    margin: 0 auto 10px; /* Ustawiamy go centralnie z małym marginesem */
    border-radius: 1px;
}
/* DODATKOWY OPIS POD TYTUŁEM DLA KONTEKSTU (BARDZIEJ KOMPAKTOWY) */
.portfolio-intro {
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.85em; /* Zmniejszony rozmiar */
    font-weight: 400;
    max-width: 700px;
    /* MNIEJSZY ODSTĘP PRZED FILTRAMI */
    margin: 0 auto 15px; 
    line-height: 1.6;
}
/* --- KONTROLKI / FILTRY (Tabs) --- */
.portfolio-controls {
    display: block;
    text-align: center;
    margin-bottom: 15px; /* MNIEJSZY ODSTĘP przed siatką kart */
}
.filter-tabs {
    display: inline-flex;
    flex-wrap: wrap; /* Zezwolenie na łamanie dla małych ekranów */
    gap: 8px; 
    padding: 6px; /* Zmniejszony padding */
    background-color: var(--color-bg-deep); 
    border-radius: 10px;
    border: 1px solid rgba(140, 122, 230, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}
.filter-btn {
    padding: 8px 18px; 
    border: none;
    border-radius: 8px;
    font-size: 0.9em; 
    font-weight: 600;
    cursor: pointer;
    background-color: transparent;
    color: var(--color-text-muted);
    transition: all 0.3s ease-out;
}
.filter-btn:hover {
    color: var(--color-text-light);
    background-color: rgba(140, 122, 230, 0.1);
}
.filter-btn.active {
    background: var(--color-primary);
    color: var(--color-bg-deep);
    box-shadow: 0 0 15px rgba(140, 122, 230, 0.8);
    transform: translateY(0); 
    animation: none;
}
/* --- SIATKA PROJEKTÓW (Zachowany poprzedni styl, który się podobał) --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px; 
    padding-top: 0px;
    max-width: 1400;
    margin: 0 auto;
}
.project-card {
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background-color: var(--color-bg-deep); 
    border: 1px solid rgba(140, 122, 230, 0.1);
    border-radius: 12px; 
    padding: 0; 
    overflow: hidden; 
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5); 
    opacity: 0;
    transform: translateY(20px);
}
.project-card.hidden {
    display: none; 
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s, transform 0.5s; 
}
.project-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.project-card:hover {
    transform: translateY(-5px); 
    border-color: var(--color-primary); 
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7), 0 0 20px rgba(140, 122, 230, 0.7); 
}
.project-preview-placeholder {
    width: 100%;
    height: 150px; 
    background: radial-gradient(circle at center, rgba(140, 122, 230, 0.15) 0%, rgba(16, 16, 24, 0.8) 100%);
    border-bottom: 3px solid var(--color-primary); 
    border-radius: 0; 
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9em;
    font-weight: 700;
    position: relative;
    overflow: hidden; /* Ukrywa wystające części zdjęcia */
    background: #1a1a2e;
}
.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    object-position: top; 
    transition: transform 0.5s ease; 
}
.project-card:hover .project-img {
    transform: scale(1.1);
}
.project-card-content {
    padding: 10px 15px; 
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.project-card.large .project-preview-placeholder {
    height: 250px;
}
.project-title {
    font-size: 1.1em; /* ZMIENIONO: Z 1.3em na 1.1em, aby mieścił się w 1 linii */ 
    font-weight: 800; /* Poprawiono na 800 dla większej czytelności */
    color: var(--color-text-light);
    margin-bottom: 5px; /* Zmniejszono z 8px na 5px */
    text-shadow: 0 0 5px rgba(140, 122, 230, 0.2); 
    white-space: nowrap; /* Dodano: Wymuszenie 1 linii, jeśli tytuł jest naprawdę krótki */
    overflow: hidden;
    text-overflow: ellipsis; /* Dodano: Wytnij i dodaj wielokropek jeśli się nie mieści */
}
.project-description {
    color: var(--color-text-muted);
    font-size: 0.8em; 
    flex-grow: 1; 
    margin-bottom: 5px;
    /* === KLUCZOWE ZMIANY DLA PRAWIDŁOWEJ WAGI CZCIONKI === */
    /* Nadpisujemy rodzinę czcionek na lżejszą oraz wymuszamy normalną wagę */
    font-family: Arial, Verdana, sans-serif !important; /* ZMIENIONE: Używamy lżejszej rodziny czcionek */
    font-weight: 450 !important; /* ZMIENIONE: Wymuszamy normalną wagę czcionki */
    text-align: justify; /* DODANE: Wyrównanie tekstu */
    display: -webkit-box;
    -webkit-line-clamp: 5; /* Zachowujemy 4 linie dla kompaktowości */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2; 
    /* ========================================================== */
}
.project-tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 6px; 
    margin-top: 10px; 
    padding-top: 10px;
    border-top: 1px dashed rgba(140, 122, 230, 0.2); 
}
.project-tech-stack span {
    background-color: rgba(140, 122, 230, 0.1); 
    color: var(--color-primary);
    padding: 4px 10px;
    border-radius: 4px; 
    font-size: 0.7em;
    font-weight: 600;
    border: none;
}
.project-links {
    display: flex;
    gap: 15px;
    margin-top: 0px; 
    padding: 0 20px 15px; 
}
.project-btn {
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 700;
    transition: all 0.3s ease;
    text-align: center;
    flex-grow: 1;
    font-size: 0.9em;
}
.project-btn.primary {
    background: linear-gradient(to right, var(--gradient-fiolet), var(--gradient-granat));
    color: white;
    border: 1px solid transparent;
}
.project-btn.primary:hover {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
    box-shadow: 0 0 15px rgba(140, 122, 230, 0.9);
    transform: translateY(-2px);
}
.project-btn.secondary {
    background-color: transparent;
    color: var(--color-text-light);
    border: 1px solid var(--color-text-muted);
}
.project-btn.secondary:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    box-shadow: 0 0 10px rgba(140, 122, 230, 0.5);
    background-color: rgba(140, 122, 230, 0.1);
    transform: translateY(-2px);
}
/* === Responsywność === */
@media (max-width: 992px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 30px; 
    }
    .project-card.large {
        grid-column: span 1;
    }
    .project-links {
        padding: 0 20px 20px;
    }
}
@media (min-width: 1200px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr); 
    }
}

/* ============================================================
   5. OSTATECZNA RESPENSYWNOŚĆ I POPRAWKA NAWIGACJI (MOBILE)
   ============================================================ */

@media (max-width: 768px) {
    /* Sekcja About - Naprawa zdjęcia i tekstu */
    .about-container {
        flex-direction: column !important; /* Wszystko w pionie */
        gap: 20px !important;
        text-align: center;
    }

    .about-visual-column {
        flex: none !important;
        margin-top: 0 !important; /* Usuwamy przesunięcie w górę */
    }

    .about-photo-wrapper {
        width: 180px !important; /* Mniejsze zdjęcie na telefonie */
        height: 180px !important;
    }

    .about-photo-placeholder {
        width: 100% !important;
        height: 100% !important;
    }

    .about-main-title {
        font-size: 2.2em !important;
    }

    .about-description {
        text-align: center !important; /* Wyśrodkowanie tekstu opisu */
        padding: 0 10px;
    }

    /* Sekcja Kontakt - Naprawa rozjeżdżania */
    .contact-container {
        flex-direction: column !important; /* Blok info nad formularzem */
        align-items: center !important;
        gap: 30px !important;
    }

    .contact-info {
        width: 100% !important;
        max-width: 100% !important;
        flex-basis: auto !important;
        padding: 20px !important;
    }

    .contact-form-wrapper {
        width: 100% !important;
        max-width: 100% !important;
    }

    .social-links-grid {
        grid-template-columns: 1fr !important; /* Jedna kolumna ikon */
        width: 100% !important;
    }

    .social-link-item a {
        justify-content: center; /* Wyśrodkowanie ikon społecznościowych */
    }

    /* Naprawa nawigacji mobilnej */
    .navbar {
        flex-direction: column;
        height: auto;
        padding: 10px !important;
    }

    .navbar-links {
        gap: 15px;
        margin-top: 10px;
    }
}

/* Dodatkowa precyzja dla bardzo małych telefonów */
@media (max-width: 576px) {
    #contact {
        scroll-margin-top: 80px !important;
    }
    
    .navbar-links {
        gap: 12px !important;
    }
    
    .navbar-links a {
        font-size: 0.85rem; 
    }

    .page-section h3 {
        font-size: 1.6em;
    }
}