/* style.css - Wersja Finalna (Z naprawionym Selectem) */

:root {
    /* Paleta kolorów: Deep Space & Neon */
    --bg-dark: #0b0f19;      /* Bardzo ciemny granat/czerń */
    --bg-card: #151a25;      /* Tło kart */
    
    --primary: #6366f1;      /* Indigo */
    --accent: #06b6d4;       /* Cyan/Turkus */
    --glow: rgba(6, 182, 212, 0.4);
    
    --text-main: #f1f5f9;    /* Złamana biel */
    --text-muted: #94a3b8;   /* Szary */
    
    --nav-glass: rgba(11, 15, 25, 0.7);
    --border-color: rgba(255, 255, 255, 0.08);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.7;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(99, 102, 241, 0.08) 0%, transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(6, 182, 212, 0.08) 0%, transparent 25%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- NAWIGACJA --- */
header {
    position: sticky;
    top: 20px;
    z-index: 1000;
    padding: 0 20px;
    margin-bottom: 40px;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
}

.navbar {
    background: var(--nav-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5);
}

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    text-decoration: none;
    color: white;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo::after {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 5px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 10px 20px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: white;
    background: rgba(255,255,255,0.05);
}

.nav-links a.active {
    color: white;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

.hamburger {
    display: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- TREŚĆ --- */
main {
    flex: 1;
    padding-bottom: 4rem;
    animation: fadeUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

article {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 4rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.02), 0 20px 40px -10px rgba(0,0,0,0.4);
}

article::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.5;
}

/* TYPOGRAFIA */
h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1.5px;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

strong, em {
    color: var(--accent);
    font-style: normal;
}

h2 {
    font-size: 2rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: white;
}

h3 {
    font-size: 1.3rem;
    color: var(--primary);
    margin-top: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    max-width: 70ch; 
}

ul, ol {
    color: var(--text-muted);
    padding-left: 1.5rem;
    margin-bottom: 2rem;
}

li {
    margin-bottom: 0.8rem;
}

li::marker {
    color: var(--accent);
}

/* --- ZDJĘCIA --- */
figure {
    margin: 3rem 0;
    text-align: center;
}

img {
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.15);
    transition: transform 0.4s ease;
    max-width: 100%;
    height: auto;
}

img:hover {
    transform: scale(1.01);
}

figcaption {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 1rem;
    opacity: 0.7;
}

/* --- FORMULARZ --- */
.contact-form {
    width: 100%;
    max-width: 600px;
    background: rgba(255,255,255,0.02);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    margin: 3rem auto; /* Centrowanie formularza */
}

label {
    display: block;
    color: white;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.8rem;
    font-weight: 700;
}

input, textarea, select {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    color: white;
    padding: 15px;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s;
    appearance: none; /* Reset stylu systemowego */
    -webkit-appearance: none;
}

/* --- POPRAWKA DLA LISTY ROZWIJANEJ (SELECT) --- */
select {
    /* Dodajemy strzałkę ręcznie, bo appearance:none ją usuwa */
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%2300d2ff%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 0.65em auto;
    padding-right: 2.5rem;
    cursor: pointer;
}

/* TO NAPRAWIA BIAŁE TŁO NA OPCJACH */
select option {
    background-color: var(--bg-dark);
    color: white;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 15px var(--glow);
    background-color: rgba(6, 182, 212, 0.05);
}

button[type="submit"] {
    width: 100%;
    background: var(--text-main);
    color: var(--bg-dark);
    font-weight: 800;
    padding: 16px;
    border-radius: 12px;
    border: none;
    margin-top: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
}

button[type="submit"]:hover {
    background: var(--accent);
    box-shadow: 0 0 25px var(--glow);
    transform: translateY(-2px);
}

/* --- FOOTER --- */
footer {
    border-top: 1px solid var(--border-color);
    padding: 3rem 0;
    margin-top: auto;
    background-color: #080b12;
}

footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
    max-width: 100%;
    margin-bottom: 0.5rem;
    text-align: center;
}

/* --- RWD (Mobile) --- */
@media (max-width: 768px) {
    header { top: 0; margin-bottom: 20px; padding: 0; }
    
    .navbar {
        border-radius: 0; border: none;
        border-bottom: 1px solid var(--border-color);
        padding: 15px 20px;
    }

    h1 { font-size: 2.2rem; }
    article { padding: 1.5rem; }

    .hamburger { display: block; }

    .nav-links {
        position: fixed;
        top: 65px; left: 0; width: 100%;
        flex-direction: column;
        background: var(--bg-dark);
        padding: 20px; gap: 10px;
        height: 0; overflow: hidden;
        opacity: 0; transition: all 0.3s ease;
        z-index: 999;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-links.active { height: auto; opacity: 1; }
    
    .nav-links a {
        width: 100%; display: block;
        text-align: center;
        background: rgba(255,255,255,0.03);
    }
    
    .contact-form { padding: 1.5rem; }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}