@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&family=Outfit:wght@500;700;900&display=swap');

:root {
    /* --- PALETA KOLORÓW --- */
    
    /* TŁA */
    --bg-body: #FDFDFD;      
    --bg-surface: #FFFFFF;   
    
    /* TEKST */
    --text-main: #121212;    
    --text-muted: #555555;   
    
    /* DESIGN SYSTEM: RAMKA = CIEŃ */
    --border-color: #AAAAAA; 
    --shadow-color: #AAAAAA; 
    
    --shadow-offset: 4px;
    --radius: 12px;
    
    --font-head: 'Outfit', sans-serif;
    --font-body: 'DM Sans', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-body);
    line-height: 1.6;
    padding-top: 20px;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* --- NEO-BOX (GŁÓWNY STYL KART) --- */
.neo-box {
    background: var(--bg-surface);
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    /* Ramka i cień mają ten sam kolor */
    box-shadow: var(--shadow-offset) var(--shadow-offset) 0px 0px var(--shadow-color);
    transition: all 0.2s ease;
}

.neo-box-hover:hover {
    transform: translate(-2px, -2px);
    /* Na hoverze przyciemniamy ramkę i cień dla feedbacku */
    border-color: #777777; 
    box-shadow: 6px 6px 0px 0px #777777;
}

/* --- PRZYCISKI --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--bg-surface);
    color: var(--text-main);
    border: 2px solid var(--border-color);
    border-radius: 50px;
    box-shadow: 3px 3px 0px 0px var(--shadow-color);
    transition: all 0.2s ease;
    cursor: pointer;
    font-weight: 700;
    font-family: var(--font-body);
}

.btn:hover {
    transform: translate(-2px, -2px);
    border-color: #777777;
    box-shadow: 5px 5px 0px 0px #777777;
}

.btn:active {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0px 0px #777777;
}

/* Przycisk Primary (Ciemny) */
.btn-primary {
    background: var(--text-main);
    color: var(--bg-surface);
    border-color: var(--text-main);
    /* Cień jaśniejszy, żeby odcinał się od ciemnego przycisku */
    box-shadow: 3px 3px 0px 0px #999999; 
}
.btn-primary:hover {
    background: #000000;
    border-color: #000000;
    box-shadow: 5px 5px 0px 0px #777777;
}

/* --- UKŁAD I KONTENERY --- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* --- NAVBAR --- */
nav {
    position: sticky;
    top: 20px;
    z-index: 1000;
    width: 95%;
    max-width: 1000px;
    margin: 0 auto 60px auto;
    
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 15px 30px;
    box-shadow: 6px 6px 0px 0px var(--shadow-color);
    
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.2rem;
    text-transform: uppercase;
}

.nav-right { display: flex; align-items: center; gap: 25px; }
.nav-links { display: flex; gap: 25px; }
.nav-links a {
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    color: var(--text-muted);
}
.nav-links a.active, .nav-links a:hover { color: var(--text-main); }

.nav-links a:hover::after, .nav-links a.active::after {
    content: ''; position: absolute; bottom: -4px; left: 0; width: 100%; height: 3px; background: var(--border-color);
}

.nav-icons { display: flex; gap: 15px; padding-left: 20px; border-left: 2px solid #eee; }
.hamburger { display: none; font-size: 1.5rem; cursor: pointer; border: none; background: none; color: var(--text-main); }

/* --- HERO SECTION --- */
.hero { padding: 40px 0 80px 0; max-width: 800px; margin: 0 auto; text-align: center; }
.hero h1 { font-family: var(--font-head); font-size: 3.5rem; line-height: 1.1; margin-bottom: 20px; color: var(--text-main); }
.hero p { font-size: 1.2rem; color: var(--text-muted); margin-bottom: 40px; max-width: 600px; margin-left: auto; margin-right: auto; }

/* --- NOWY UKŁAD 2-KOLUMNOWY (EXPERIENCE & EDUCATION) --- */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Dwie równe kolumny */
    gap: 40px;
    margin-bottom: 80px;
    align-items: stretch; /* Karty będą tej samej wysokości */
}

/* Globalny styl nagłówków sekcji (Experience, Education, Projects) */
.section-header-group {
    display: flex; 
    align-items: center; 
    gap: 15px; 
    margin-bottom: 25px; /* Standardowy odstęp */
}

.section-header-group h2 {
    font-family: var(--font-head); 
    font-size: 1.8rem;
    padding-bottom: 3px; /* Minimalne wyrównanie z linią */
}

.section-header-group .divider {
    height: 2px; 
    background: var(--border-color); 
    flex-grow: 1; 
    opacity: 0.1;
}

.exp-card {
    padding: 30px;
    display: flex;
    flex-direction: column;
    height: 100%; /* Wypełnia wysokość */
    justify-content: space-between;
}

.exp-role { font-family: var(--font-head); font-size: 1.3rem; font-weight: 700; margin-bottom: 5px; }
.exp-place { font-size: 1rem; color: #444; font-weight: 500; }
.exp-date { 
    font-size: 0.85rem; font-weight: 600; font-family: monospace; 
    background: #F0F0F0; padding: 4px 10px; 
    border: 2px solid var(--border-color); border-radius: 6px; 
    color: var(--text-main);
}

/* --- PROJECTS GRID --- */
.grid-projects { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; padding-bottom: 60px; }
.project-card { padding: 30px; display: flex; flex-direction: column; height: 100%; }
.card-badge { 
    display: inline-block; background: #F0F0F0; color: var(--text-main); 
    padding: 6px 12px; border-radius: 8px; font-weight: 700; font-size: 0.75rem; 
    margin-bottom: 20px; width: fit-content; text-transform: uppercase; 
    border: 2px solid var(--border-color); 
}

/* --- NOWA SEKCJA "GET IN TOUCH" (CIEMNE TŁO, PEŁNA SZEROKOŚĆ) --- */
.full-width-dark-cta {
    background: var(--text-main); /* Ciemne tło */
    color: var(--bg-surface); /* Jasny tekst */
    padding: 80px 20px; /* Duże paddingi */
    text-align: center;
    margin-bottom: -20px; /* Zniwelowanie padding-top z body, żeby była na styk */
    
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    
    /* Wszystkie dzieci dziedziczą jasny kolor, ale możemy go później nadpisać */
    & * { color: var(--bg-surface); }
}

.full-width-dark-cta h2 {
    font-family: var(--font-head); 
    font-size: 2.8rem; /* Większy nagłówek */
    margin-bottom: 20px; 
    line-height: 1.2;
}

.full-width-dark-cta p {
    max-width: 600px; /* Ograniczenie szerokości tekstu */
    margin-bottom: 40px; 
    font-size: 1.2rem;
    opacity: 0.9; /* Delikatne ściemnienie akapitu */
}

/* Przycisk w sekcji CTA */
.full-width-dark-cta .btn-primary {
    background: var(--bg-surface); /* Białe tło przycisku */
    color: var(--text-main); /* Ciemny tekst przycisku */
    border-color: var(--bg-surface); /* Biała ramka */
    box-shadow: 3px 3px 0px 0px rgba(0,0,0,0.3); /* Ciemny cień */
    font-size: 1.2rem;
    padding: 16px 35px;
}
.full-width-dark-cta .btn-primary:hover {
    background: #EEEEEE; /* Lekko szary na hover */
    border-color: #EEEEEE;
    box-shadow: 5px 5px 0px 0px rgba(0,0,0,0.5);
}


/* --- PROJECTS PAGE (SIDEBAR) --- */
.projects-layout { display: grid; grid-template-columns: 280px 1fr; gap: 40px; margin-top: 20px; align-items: start; }
aside { 
    position: sticky; top: 120px; padding: 30px; 
    background: var(--bg-surface);
    border: 2px solid var(--border-color); border-radius: var(--radius); 
    box-shadow: var(--shadow-offset) var(--shadow-offset) 0px 0px var(--shadow-color); 
}
.category-header { font-family: var(--font-head); font-weight: 800; text-transform: uppercase; font-size: 0.8rem; color: var(--text-muted); margin: 20px 0 10px 0; letter-spacing: 1px; }

.project-btn {
    display: block; width: 100%; text-align: left; padding: 12px 15px; 
    background: transparent; border: 2px solid transparent; border-radius: 8px; 
    margin-bottom: 5px; font-family: var(--font-body); font-weight: 500; 
    cursor: pointer; color: var(--text-muted); transition: all 0.2s; 
}
.project-btn:hover { background: #F0F0F0; color: var(--text-main); border-color: #777777; }
.project-btn.active { 
    background: var(--bg-surface); color: var(--text-main); 
    border: 2px solid var(--border-color); 
    box-shadow: 3px 3px 0px var(--shadow-color); 
    font-weight: 700; transform: translate(-2px, -2px); 
}

/* Details & Tech */
.detail-container { padding: 40px 50px; background: var(--bg-surface); min-height: 60vh; }
.tech-stack { display: flex; flex-wrap: wrap; gap: 8px; margin: 25px 0; }
.tech-pill { 
    background: #FAFAFA; border: 1px solid var(--border-color); 
    padding: 5px 12px; border-radius: 20px; font-size: 0.85rem; font-weight: 600; color: #333; 
}

/* --- CONTACT PAGE --- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; margin-top: 40px; }
.contact-card { padding: 40px 20px; text-align: center; cursor: pointer; }
.contact-card i { font-size: 2.5rem; margin-bottom: 15px; color: var(--text-main); }

/* --- RESPONSIVE (MOBILE) --- */
@media(max-width: 768px) {
    body { padding-top: 10px; } /* Mniejszy odstęp na górze */
    nav { padding: 15px 20px; width: 90%; margin-bottom: 40px; }
    .hamburger { display: block; }
    .nav-right { 
        position: absolute; top: 110%; left: 0; width: 100%; 
        background: var(--bg-surface); border: 2px solid var(--border-color); 
        border-radius: 12px; box-shadow: 6px 6px 0px 0px var(--shadow-color); 
        flex-direction: column; padding: 30px; display: none; 
    }
    .nav-right.active { display: flex; }
    .nav-links { flex-direction: column; align-items: center; gap: 20px; width: 100%; }
    .nav-icons { border-left: none; border-top: 2px solid #eee; padding-top: 20px; padding-left: 0; width: 100%; justify-content: center; }
    
    .hero { padding: 30px 0 60px 0; }
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1.05rem; margin-bottom: 30px; }

    /* Mobile Layout Fixes */
    .split-layout { grid-template-columns: 1fr; gap: 40px; margin-bottom: 60px; } /* Experience pod Education na telefonie */
    .projects-layout { grid-template-columns: 1fr; }
    aside { position: relative; top: 0; margin-bottom: 30px; border: 2px solid var(--border-color); box-shadow: 4px 4px 0px 0px var(--shadow-color); }
    
    .section-header-group { margin-bottom: 20px; } /* Mniejszy odstęp nagłówków na mobie */
    .section-header-group h2 { font-size: 1.5rem; }

    .grid-projects { padding-bottom: 40px; }

    .full-width-dark-cta {
        padding: 60px 20px; /* Mniejsze paddingi na mobie */
        margin-bottom: -10px; /* Zniwelowanie padding-top z body */
    }
    .full-width-dark-cta h2 { font-size: 2rem; margin-bottom: 15px; }
    .full-width-dark-cta p { font-size: 1rem; margin-bottom: 30px; }
    .full-width-dark-cta .btn-primary { font-size: 1.05rem; padding: 14px 28px; }
}