:root {
    --primary-color: #008080;
    --primary-dark: #005a5a;
    --secondary-color: #0a192f;
    --bg-dark: #0b111a;
    --bg-light: #151e2b;
    --text-light: #e6f1ff;
    --text-dim: #8892b0;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, var(--primary-color), #00d2d2);
    --shadow: 0 10px 30px -10px rgba(2,12,27,0.7);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* =========================================
   WCAG: SKIP LINK
   ========================================= */
.skip-link {
    position: absolute;
    top: -9999px;
    left: -9999px;
    background: var(--primary-color);
    color: var(--white);
    padding: 10px 20px;
    z-index: 9999;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 20px;
    left: 20px;
    outline: 3px solid var(--white);
}

/* =========================================
   WCAG: FOCUS VISIBILITY
   ========================================= */
/* Widoczny obrys dla nawigacji klawiaturą, ale ukryty dla myszki */
:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
}

/* Typography */
h1, h2, h3 {
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.highlight {
    color: var(--primary-color);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--gradient);
    margin: 10px auto 0;
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-dim);
    margin-top: -2rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-primary:hover {
    background: rgba(0, 128, 128, 0.1);
    transform: translateY(-3px);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 25, 47, 0.95);
    z-index: 1000;
    height: 100px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: all 0.4s ease-in-out;
}

.navbar.scrolled {
    background: rgba(10, 25, 47, 1);
    box-shadow: 0 10px 30px -10px rgba(2,12,27,0.7);
    height: 80px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: relative;
    z-index: 2;
}

.logo {
    display: flex;
    align-items: center;
    padding: 5px 0;
    z-index: 1001;
}

.logo a {
    display: block;
    line-height: 0;
}

.logo-img {
    height: 180px;
    width: auto;
    border-radius: 5px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    top: 55px;
    margin-left: 20px;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.5));
}

.navbar.scrolled .logo-img {
    height: 60px; 
    top: 0; 
    margin-left: 0; 
    filter: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
    position: relative;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.lang-switch,
.mobile-lang-switch {
    display: flex;
    align-items: center;
    gap: 5px;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 5px 10px;
    border-radius: 20px;
    background: rgba(0,0,0,0.3);
}

.mobile-lang-switch {
    display: none;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--text-dim);
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0;
    transition: color 0.3s;
}

.lang-btn:hover,
.lang-btn.active {
    color: var(--primary-color);
}

.lang-divider {
    color: rgba(255,255,255,0.2);
    font-size: 0.8rem;
}

.nav-bg-pulse {
    position: absolute;
    top: 50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 128, 128, 0.15) 0%, rgba(0, 128, 128, 0.0) 60%);
    border-radius: 50%;
    transform: translateY(-50%) scale(0.8);
    z-index: 1;
    pointer-events: none;
    animation: pulse 6s infinite ease-in-out;
    opacity: 0.6;
}

.nav-bg-pulse::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 70%;
    height: 70%;
    background: radial-gradient(circle, rgba(0, 128, 128, 0.2) 0%, rgba(0, 128, 128, 0.0) 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 6s infinite ease-in-out 1.5s;
}

@keyframes pulse {
    0% { transform: translateY(-50%) scale(0.8); opacity: 0.4; }
    50% { transform: translateY(-50%) scale(1.2); opacity: 0.7; }
    100% { transform: translateY(-50%) scale(0.8); opacity: 0.4; }
}

.burger {
    display: none;
    cursor: pointer;
    z-index: 1002;
    background: none; /* WCAG fix */
    border: none;     /* WCAG fix */
    padding: 0;       /* WCAG fix */
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--text-light);
    margin: 5px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: url('https://images.unsplash.com/photo-1541888946425-d81bb19240f5?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
    margin-top: -100px;
    padding-top: 100px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(10, 25, 47, 0.95), rgba(10, 25, 47, 0.7));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero h1 span:first-child {
    display: inline-block;
    opacity: 0; 
    animation: fadeInUp 0.8s cubic-bezier(0.2, 1, 0.3, 1) forwards;
    animation-delay: 0.2s; 
}

.hero h1 span.highlight {
    display: inline-block;
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.2, 1, 0.3, 1) forwards;
    animation-delay: 0.5s; 
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-dim);
    margin-bottom: 40px;
    max-width: 600px;
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.2, 1, 0.3, 1) forwards;
    animation-delay: 0.8s; 
}

.hero .btn {
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.2, 1, 0.3, 1) forwards;
    animation-delay: 1.0s; 
}

.section {
    padding: 100px 0;
}

.bg-darker {
    background-color: var(--bg-light);
}

/* O Nas */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-dim);
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr; 
    gap: 20px;
}

.stat-box {
    background: var(--bg-light);
    padding: 30px;
    text-align: center;
    border-radius: 4px;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
    border: 1px solid rgba(255,255,255,0.05);
}

.stat-box:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.stat-box i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Horizontal Carousels (Services) */
.carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
}

.carousel-container {
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
    margin: 0 auto;
}

.carousel-track {
    display: flex;
    gap: 30px;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.service-card {
    min-width: 300px;
    max-width: 300px;
    background: var(--bg-dark);
    padding: 40px 30px;
    border-radius: 4px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    flex-shrink: 0;
}

.service-card:hover {
    transform: translateY(-10px);
    border-bottom: 3px solid var(--primary-color);
}

.service-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-dim);
    font-size: 0.9rem;
}

.carousel-btn {
    background: rgba(0, 128, 128, 0.1);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.carousel-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.1);
}
.prev-btn { margin-right: 15px; }
.next-btn { margin-left: 15px; }

/* LOGOS GRID */
.logos-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding: 20px 0;
}

.logo-card {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    width: 200px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.logo-card:hover {
    transform: translateY(-5px);
}

.logo-card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Contact */
.contact-section {
    background: linear-gradient(rgba(10, 25, 47, 0.9), rgba(10, 25, 47, 0.9)), url('https://images.unsplash.com/photo-1503387762-592deb58ef4e?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    background: var(--bg-dark);
    padding: 50px;
    border-radius: 4px;
    box-shadow: var(--shadow);
}

.contact-info h3 {
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.contact-item {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-dim);
}

.contact-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
    min-width: 25px;
    text-align: center;
}

.contact-item a {
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: var(--primary-color);
}

.email-container {
    align-items: flex-start;
}

.email-links {
    display: flex;
    flex-direction: column;
}

.social-links {
    margin-top: 2rem;
    display: flex;
    gap: 20px;
}

.social-links a {
    color: var(--text-light);
    font-size: 1.5rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--primary-color);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    padding: 15px;
    background: var(--bg-light);
    border: 1px solid #233554;
    color: var(--text-light);
    border-radius: 4px;
    font-family: inherit;
    outline: none; /* WCAG: Replaced with :focus-visible above */
    transition: border 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
}

.form-checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.8rem;
    color: var(--text-dim);
}

.form-checkbox-group input {
    margin-top: 5px;
    cursor: pointer;
    width: 20px;
    height: 20px;
    background: var(--bg-light);
}

.form-checkbox-group label {
    cursor: pointer;
    line-height: 1.4;
}

/* Footer */
footer {
    background: #020c1b;
    padding: 20px 0;
    text-align: center;
    color: var(--text-dim);
    font-size: 0.8rem;
}

footer a {
    transition: color 0.3s;
}

footer a:hover {
    color: var(--primary-color) !important;
}

.privacy-note {
    margin-bottom: 10px;
    font-size: 0.7rem;
    opacity: 0.6;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background-color: var(--bg-light);
    border-top: 2px solid var(--primary-color);
    padding: 20px;
    z-index: 2000;
    transition: bottom 0.5s ease-in-out;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.5);
}

.cookie-banner.active {
    bottom: 0;
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-content p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* PRIVACY MODAL */
.privacy-modal {
    display: none; 
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
}

.privacy-modal.active {
    display: block;
}

.privacy-content {
    background-color: var(--bg-light);
    color: var(--text-light);
    margin: 5% auto;
    padding: 40px;
    border: 1px solid var(--primary-color);
    width: 80%;
    max-width: 800px;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 5px 30px rgba(0,0,0,0.5);
}

.close-privacy {
    color: var(--text-dim);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    background: none; /* WCAG fix */
    border: none;     /* WCAG fix */
}

.close-privacy:hover,
.close-privacy:focus {
    color: var(--primary-color);
    text-decoration: none;
}

.privacy-text h3 {
    margin-top: 20px;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.privacy-text ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.privacy-text li {
    margin-bottom: 5px;
    color: var(--text-dim);
}

/* Mobile Responsive */
@media screen and (max-width: 768px) {
    .navbar { height: 100px; }
    .navbar.scrolled { height: 80px; }
    
    .logo-img { 
        height: 120px; 
        top: 20px; 
        margin-left: 10px; 
        filter: drop-shadow(0 5px 15px rgba(0,0,0,0.5));
    }
    
    .navbar.scrolled .logo-img {
        height: 60px;
        top: 0;
        margin-left: 0;
        filter: none;
    }

    .nav-bg-pulse { display: none; }

    .mobile-lang-switch {
        display: flex;
        margin-left: auto; 
        margin-right: 15px;
    }

    .nav-links {
        position: absolute;
        right: 0px;
        height: 100vh;
        top: 80px;
        background-color: var(--bg-light);
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 70%; 
        box-shadow: -5px 0 20px rgba(0,0,0,0.5);
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        padding-top: 50px;
        z-index: 1000;
    }
    .nav-links li { opacity: 0; }
    .burger { display: block; }
    .nav-active { transform: translateX(0%); }

    @keyframes navLinkFade {
        from { opacity: 0; transform: translateX(50px); }
        to { opacity: 1; transform: translateX(0px); }
    }

    .hero h1 { font-size: 2.5rem; }
    .about-grid, .contact-wrapper { grid-template-columns: 1fr; }
    .contact-wrapper { padding: 30px; }

    .carousel-wrapper { padding: 0; }
    .carousel-btn {
        width: 40px; height: 40px; position: absolute; top: 50%; transform: translateY(-50%);
        background: rgba(10, 25, 47, 0.8);
    }
    .prev-btn { left: 0; }
    .next-btn { right: 0; }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .privacy-content {
        width: 95%;
        margin: 10% auto;
        padding: 20px;
    }
}