:root {
    /* Kolory */
    --primary-color: #2a628f;
    --secondary-color: #40c9a2;
    --background-color: #eef4f7;
    --footer-bg-color: #1d3557;
    --button-color: #2a628f;
    --text-color: #333d42; /* Ciemniejszy tekst dla czytelności */
    --light-text-color: #6a7f8e;
    --accent-color: #e07a5f; /* Dodatkowy akcent */

    /* Kolory tła sekcji */
    --section-bg-1: #ffffff;
    --section-bg-2: #f4f9fB;
    --section-bg-3: #eef4f7;
    --section-bg-4: #f8fbfd;

    /* Typografia */
    --font-body: 'Lato', sans-serif;
    --font-heading: 'Montserrat', sans-serif;
    --font-size-base: 1rem;
    --line-height-base: 1.7;
    --letter-spacing-heading: 0.03em;

    /* Zaokrąglenia */
    --border-radius-sm: 0.375rem; /* 6px */
    --border-radius-md: 0.75rem;  /* 12px */
    --border-radius-lg: 1.25rem; /* 20px */

    /* Cienie */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-card: 0 8px 20px rgba(42, 98, 143, 0.1); /* Cień z kolorem primary */
}

/* Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--text-color);
    background-color: var(--background-color);
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    line-height: 1.2;
    margin-top: 1.5em;
    margin-bottom: 0.8em;
    letter-spacing: var(--letter-spacing-heading);
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    font-weight: 600;
}

h3 {
    font-size: 1.8rem;
    font-weight: 600;
}

h4 {
    font-size: 1.4rem;
    font-weight: 500;
}

p {
    margin-bottom: 1em;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease, border-bottom 0.3s ease;
}

a:hover {
    color: var(--primary-color);
    border-bottom: 1px solid var(--primary-color);
}

ul, ol {
    margin-left: 1.5rem;
    margin-bottom: 1em;
}

/* Header - Glassmorphism */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.05); /* Bardzo lekka przezroczystość */
    backdrop-filter: blur(8px); /* Efekt rozmycia */
    -webkit-backdrop-filter: blur(8px);
    padding: 1rem 2rem;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.8); /* Większa przezroczystość po scrollu */
    box-shadow: var(--shadow-md);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.header-logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.05em;
}

.nav-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 2rem;
}

.nav-menu a {
    color: var(--primary-color);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    border-bottom: none;
    font-size: 1.05rem;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    left: 0;
    bottom: 0;
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    border-radius: var(--border-radius-md);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.btn-primary {
    background: linear-gradient(135deg, var(--button-color) 0%, #3a7fae 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(42, 98, 143, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #3a7fae 0%, var(--button-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(42, 98, 143, 0.6);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(64, 201, 162, 0.4);
}

.btn-secondary:hover {
    background-color: #5dcab2;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(64, 201, 162, 0.6);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: none;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* Card Design */
.card {
    background-color: var(--section-bg-1);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-card);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden; /* Dla geometrycznych wzorów */
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(42, 98, 143, 0.15);
}

/* Geometryczne wzory w tle kart - przykład */
.card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 10% 10%, rgba(64, 201, 162, 0.05) 5%, transparent 10%),
                radial-gradient(circle at 90% 90%, rgba(42, 98, 143, 0.05) 5%, transparent 10%);
    z-index: 0;
    opacity: 0.6;
    pointer-events: none;
    transition: transform 0.5s ease;
}

.card:hover::before {
    transform: rotate(5deg);
}

.card-content {
    position: relative;
    z-index: 1;
}

/* Section Backgrounds */
.section-bg-1 { background-color: var(--section-bg-1); }
.section-bg-2 { background-color: var(--section-bg-2); }
.section-bg-3 { background-color: var(--section-bg-3); }
.section-bg-4 { background-color: var(--section-bg-4); }

/* Footer */
.footer {
    background-color: var(--footer-bg-color);
    color: rgba(255, 255, 255, 0.8);
    padding: 3rem 2rem;
    text-align: center;
    font-size: 0.9rem;
}

.footer a {
    color: var(--secondary-color);
    margin: 0 0.5rem;
}

.footer a:hover {
    color: white;
    border-bottom: 1px solid white;
}

/* Utility Classes (przykład, jeśli nie ma Tailwind) */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center {
    text-align: center;
}

.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-8 { margin-top: 2rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }

/* Micro-interactions: Form Elements (przykład dla inputów) */
input[type="text"],
input[type="email"],
input[type="password"],
textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #d1d9e6;
    border-radius: var(--border-radius-sm);
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    color: var(--text-color);
    background-color: var(--section-bg-1);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(42, 98, 143, 0.2);
}

/* Scroll Animations (Placeholder dla AOS) */
[data-aos] {
    opacity: 0;
    transition-property: opacity, transform;
    transition-duration: 0.8s;
    transition-timing-function: ease-out;
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translate(0);
}

[data-aos="fade-up"] {
    transform: translateY(20px);
}

[data-aos="fade-left"] {
    transform: translateX(20px);
}

[data-aos="fade-right"] {
    transform: translateX(-20px);
}

/* Media Queries */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    h3 {
        font-size: 1.4rem;
    }

    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .header {
        padding: 1rem;
    }

    .container {
        padding: 0 1rem;
    }

    .py-16 { padding-top: 2rem; padding-bottom: 2rem; }
    .py-24 { padding-top: 3rem; padding-bottom: 3rem; }

    .card {
        padding: 1.5rem;
    }
}

/* Ikony - placeholder dla spójnego stylu */
.icon {
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    stroke-width: 2;
    stroke: currentColor;
    fill: none;
    vertical-align: middle;
}

/* Neofuturystyczne akcenty: lekkie, czyste linie, subtelne gradienty */
/* Brak jawnych "neonów", ale subtelne cienie i gradienty nadają nowoczesny szlif */
/* Geometryczne wzory w tle kart to jeden z elementów "laboratorium" i "nowoczesności" */
/* Czysta typografia jest kluczem do naukowego, nowoczesnego wyglądu */
/* Przezroczysty nagłówek z blur to glassmorphism, element neofuturyzmu */


/* Cookie Banner Additional Styles for Tailwind */
.cookie-banner-hover-effect:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

@media (prefers-reduced-motion: reduce) {
    .cookie-banner-hover-effect:hover {
        transform: none;
    }
}