/* Reset i podstawowe style */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Source Code Pro', monospace;
    background-color: #FFFFFF;
    color: #000000;
    line-height: 1.6;
}

/* Kolory zgodne z WCAG 2.1 */
.primary-color { color: #DC2626; } /* Czerwony, kontrast 7.5:1 */
.accent-color { color: #EAB308; } /* Żółty, kontrast 5.2:1 */
.success-color { color: #16A34A; } /* Zielony, kontrast 6.8:1 */

/* Header */
header {
    padding: 20px 0;
    background: linear-gradient(135deg, #DC2626 0%, #EAB308 100%);
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.logo {
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
}

svg {
    display: block;
    margin: 10px auto;
}

/* Nawigacja */
nav {
    background-color: transparent;
}

.navbar-nav {
    display: flex;
    justify-content: center;
    align-items: center;
}

.navbar-nav .nav-link {
    color: #FFFFFF;
    font-size: 1.2rem;
    padding: 10px 20px;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #EAB308;
}

.languages {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.languages a {
    color: #FFFFFF;
    text-decoration: none;
    margin: 0 10px;
    font-size: 1rem;
}

.languages a:hover {
    color: #EAB308;
}

/* Animacje tekstu */
.animation-code {
    animation: typing 3s steps(40, end), blink-caret 0.75s step-end infinite;
    white-space: nowrap;
    overflow: hidden;
    border-right: 0.15em solid #EAB308;
    display: inline-block;
    width: 100%;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: #EAB308; }
}

/* Hero Section */
.hero {
    background: url('/images/background.png') repeat; /* Umieść plik background.png w /images/ */
    padding: 60px 20px;
    text-align: center;
    border: 2px solid #16A34A;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 30px;
}

.btn-primary {
    background-color: #DC2626;
    border-color: #DC2626;
    padding: 10px 20px;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-primary:hover {
    background-color: #EAB308;
    border-color: #EAB308;
    transform: scale(1.05);
}

/* Services Section */
.services {
    padding: 40px 20px;
    text-align: center;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.service-card {
    background: #FFFFFF;
    border: 2px solid #16A34A;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: none; /* Dla animacji fadeIn */
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.pixel-icon {
    width: 50px;
    height: 50px;
    background-size: cover;
    margin: 0 auto 15px;
}

/* Ikony w stylu pixel art (odwołania do plików w /images/) */
.service-icon {
    background-image: url('/images/service-icon.png'); /* Umieść plik service-icon.png w /images/ */
}

.plugin-icon {
    background-image: url('/images/plugin-icon.png'); /* Umieść plik plugin-icon.png w /images/ */
}

.seo-icon {
    background-image: url('/images/seo-icon.png'); /* Umieść plik seo-icon.png w /images/ */
}

.ai-icon {
    background-image: url('/images/ai-icon.png'); /* Umieść plik ai-icon.png w /images/ */
}

/* Responsywność */
@media (max-width: 768px) {
    .logo {
        font-size: 2rem;
    }

    .hero {
        padding: 40px 15px;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .navbar-nav {
        flex-direction: column;
    }

    .navbar-nav .nav-link {
        padding: 10px 0;
    }

    .languages {
        position: static;
        transform: none;
        margin-top: 10px;
        text-align: center;
    }

    .languages a {
        display: inline-block;
        margin: 5px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 30px 10px;
    }

    .hero h2 {
        font-size: 1.8rem;
    }

    .btn-primary {
        padding: 8px 16px;
        font-size: 1rem;
    }
}

/* Dodatkowe animacje i pixel art vibe */
.service-card {
    border-style: dotted; /* Lekki pixel art efekt ramki */
}

.pixel-icon {
    image-rendering: pixelated; /* Zachowuje pixel art ostrość */
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}