/* --- CSS VARIABLES & RESET --- */
:root {
    --bg-main: #ffffff;
    --bg-light: #f7f7f7;
    --text-dark: #111111;
    --text-muted: #555555;
    --accent: #0056b3; 
    --whatsapp: #25D366;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-main);
    line-height: 1.6;
}

/* --- LANGUAGE TOGGLE LOGIC --- */
body.lang-en .pl { display: none !important; }
body.lang-pl .en { display: none !important; }

/* --- TYPOGRAPHY & UTILITIES --- */
h1, h2, h3 {
    font-weight: 800;
    margin-bottom: 1rem;
}
h1 { font-size: 3.5rem; line-height: 1.1; }
h2 { font-size: 2.5rem; }
.subtitle { font-size: 1.2rem; color: var(--text-muted); margin-bottom: 2rem; }
.text-center { text-align: center; }
.mb-2 { margin-bottom: 2rem; }
.mt-4 { margin-top: 4rem; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}
.section-padding { padding: 6rem 0; }
.bg-light { background-color: var(--bg-light); }

.shadow-img {
    width: 100%;
    border-radius: 8px;
    display: block;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* --- NAVIGATION --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.70);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid #eaeaea;
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
}
.logo {
    font-weight: 800;
    font-size: 1.2rem;
    text-decoration: none;
    color: var(--text-dark);
    letter-spacing: 1px;
}
.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    margin: 0 1rem;
    font-weight: 600;
    transition: color 0.3s ease;
}
.nav-links a:hover { color: var(--accent); }

.lang-switcher button {
    background: none;
    border: none;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-muted);
    margin-left: 0.5rem;
    transition: color 0.3s ease;
}
.lang-switcher button.active {
    color: var(--accent);
    text-decoration: underline;
}

/* --- HERO SECTION --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    text-align: center;
    background-color: #222;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-image: url('hero-bg.webp');
}
.hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0);
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    color: #ffffff;
}
.hero-content .subtitle { color: #dddddd; }

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    transition: transform 0.3s ease, background 0.3s ease;
}
.btn:hover { transform: translateY(-3px); }
.btn-primary {
    background: var(--bg-main);
    color: var(--text-dark);
}
.btn-primary {
    background: var(--bg-main);
    color: var(--text-dark);
}
.btn-primary:hover { 
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.btn-whatsapp {
    background: var(--whatsapp);
    color: #fff;
    gap: 10px;
    font-size: 1.1rem;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}
.btn-whatsapp:hover { background: #20b858; }

/* --- DESKTOP LAYOUTS --- */
/* About Section Split */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* --- ACHIEVEMENTS SECTION --- */
.achievements {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('background-carrer.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 8rem 0; /* Więcej miejsca na górze i dole sekcji */
}

.achievements h2 {
    color: #ffffff;
    text-align: center;
    margin-bottom: 4rem; /* Większy odstęp pod nagłówkiem głównym */
    font-size: 2.8rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem; /* Zwiększony odstęp między kolumnami */
}

.achievement-col {
    display: flex;
    flex-direction: column;
    gap: 2.5rem; /* Zwiększony odstęp między tabelką a zdjęciem pod nią */
}

/* KARTY APPLE STYLE (BEZ ANIMACJI HOVER) */
.card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 3rem; /* Więcej oddechu wewnątrz tabelki */
    border-radius: 24px; /* Bardziej nowoczesne, obłe rogi */
    box-shadow: 0 15px 35px rgba(0,0,0,0.2); /* Stały, elegancki cień */
    border: 1px solid rgba(255, 255, 255, 0.5);
    flex-grow: 1;
    /* Usunięto transition i transform (brak animacji ruchu) */
}

.card h3 {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.card ul { 
    list-style: none; 
    margin-top: 1rem; 
}

.card ul li { 
    margin-bottom: 1rem; 
    position: relative; 
    padding-left: 1.5rem; 
    color: var(--text-dark);
    line-height: 1.4;
}

.card ul li::before {
    content: "•";
    color: var(--accent);
    position: absolute;
    left: 0;
    font-size: 1.2rem;
    line-height: 1;
}

/* ZDJĘCIA POD TABELKAMI */
.desktop-only-img {
    width: 100%;
    height: 280px; /* Nieco wyższe dla lepszych proporcji */
    object-fit: cover;
    border-radius: 20px; /* Dopasowane do stylu kart */
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.mobile-only-img {
    display: none;
}

/* Location Split */
.location-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    margin-top: 3rem;
    text-align: left; /* Wymuszenie tekstu od lewej */
}
.map-container {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.loc-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}
.loc-item h4 {
    color: var(--accent);
    margin-bottom: 0.5rem;
}

/* Contact Split */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 3rem;
}
.contact-left {
    display: flex;
    justify-content: center; /* Guzik na środku lewej kolumny */
}

/* --- FOOTER --- */
footer {
    padding: 2rem 0;
    background: var(--accent);
    color: #fff;
    font-size: 0.9rem;
}

/* --- ANIMATIONS --- */
.fade-in {
    animation: fadeIn 1s ease-in-out forwards;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- MOBILE QUERIES (Nie ruszane, jedynie dostosowane do nowych klas) --- */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    .nav-links { display: none; }
    
    /* Zwijanie siatek do 1 kolumny */
    .split-layout, 
    .grid-3, 
    .location-content, 
    .contact-content { 
        grid-template-columns: 1fr; 
        gap: 2rem;
    }
    
    /* Wymuszenie wysokości dla mapy na mobile */
    .map-container { height: 300px; min-height: 300px; }

    /* Osiągnięcia Mobile */
    .desktop-only-img { display: none !important; }
    .mobile-only-img {
        display: block;
        width: 100%;
        height: 220px;
        object-fit: cover;
        border-radius: 6px;
        margin-top: 1.5rem;
    }

    /* Lokalizacja i Kontakt Mobile */
    .loc-mobile-fix { text-align: left !important; }
    .contact-left { justify-content: center; margin-bottom: 2rem; }
}