@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600;700&display=swap');

:root {
    color-scheme: dark;
    --bg: #080b0a;
    --bg-soft: #0d1110;
    --surface: #101513;
    --text: #e7eee9;
    --muted: #9aa9a0;
    --line: #34443a;
    --accent: #30abfc;
    --accent-soft: #73c5ff;
    --max: 1180px;
    --mono: "Berkeley Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

body[data-theme="light"] {
    color-scheme: light;
    --bg: #f4f7f4;
    --bg-soft: #e9efea;
    --surface: #ffffff;
    --text: #17221a;
    --muted: #536257;
    --line: #aab9ac;
    --accent: #30abfc;
    --accent-soft: #1689d8;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--mono);
    line-height: 1.6;

}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(calc(100% - 48px), var(--max));
    margin-inline: auto;
}

/* ============================================
   NAWIGACJA
   ============================================ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: color-mix(in srgb, var(--bg) 94%, transparent);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
}

.nav {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    font-size: 25px;
    font-weight: 600;
    letter-spacing: -.04em;
}

.brand-logo {
    display: block;
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.brand-name span,
.section-label,
.eyebrow,
.main-nav a:hover,
.main-nav a.active {
    color: var(--accent);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 42px;
}

.main-nav a {
    position: relative;
    color: var(--text);
    font-size: 15px;
    transition: color .2s ease;
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 0;
    background: var(--surface);
    color: var(--accent);
    font: 600 12px/1 var(--mono);
    cursor: pointer;
}

.theme-toggle:hover { border-color: var(--accent); }

.main-nav a.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -28px;
    height: 2px;
    background: var(--accent);
}

/* ============================================
   PRZYCISKI
   ============================================ */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 27px;
    border: 1px solid transparent;
    border-radius: 0;
    font-weight: 600;
    cursor: pointer;
    transition:
            transform .2s ease,
            background .2s ease,
            border-color .2s ease,
            color .2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    background: var(--accent);
    color: #03100e;
}

.button-primary:hover {
    background: var(--accent-soft);
}

.button-secondary {
    border-color: rgba(48, 171, 252, .65);
    color: var(--accent);
}

.button-secondary:hover {
    border-color: var(--accent);
    background: rgba(48, 171, 252, .06);
}

/* ============================================
   HERO
   ============================================ */

.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: calc(78vh - 82px);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 50px;
    padding: 80px 0 110px;
}

.eyebrow,
.section-label {
    margin: 0 0 18px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .18em;
}

.hero h1 {
    margin: 0;
    font-size: clamp(44px, 5.2vw, 74px);
    line-height: 1.08;
    letter-spacing: -.04em;
    font-weight: 600;
}

.hero h1 span {
    color: var(--accent);
}

.hero-text {
    max-width: 610px;
    margin: 28px 0 0;
    color: var(--muted);
    font-size: 18px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 38px;
}

.hero-visual {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 520px;
}

.hero-logo {
    position: relative;
    z-index: 2;
    width: min(82%, 700px);
    height: auto;
    filter: drop-shadow(0 0 16px rgba(48, 171, 252, .2));
}

.glow {
    position: absolute;
    bottom: 16%;
    left: 23%;
    width: 55%;
    height: 18%;
    background: rgba(48, 171, 252, .35);
    filter: blur(45px);
    border-radius: 50%;
}

.scroll-down {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--accent);
    font-size: 34px;
    line-height: 1;
}

/* Terminal surface and crisp, square framing */
.hero-copy,
.projects-header,
.project-card,
.footer-main > div,
.footer-bottom .container {
    position: relative;
}

/* ============================================
   SEKCJE OGÓLNE
   ============================================ */

.section {
    padding: 120px 0;
    border-top: 1px solid var(--line);
}

.section-dark {
    background: var(--bg-soft);
}

.section h2 {
    margin: 0;
    font-size: clamp(36px, 4vw, 54px);
    line-height: 1.1;
    letter-spacing: -.045em;
}

.section-text {
    max-width: 680px;
    margin: 24px 0 0;
    color: var(--muted);
    font-size: 18px;
}

.narrow {
    max-width: 780px;
}

/* ============================================
   PROJEKTY — NAGŁÓWEK I TŁO
   ============================================ */

.projects-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 100px 0;
    background: var(--bg-soft);
}

.projects-section::before,
.projects-section::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(110px);
    pointer-events: none;
}

.projects-section::before {
    top: 0;
    left: -180px;
    background: rgba(48, 171, 252, .055);
}

.projects-section::after {
    right: -180px;
    bottom: -100px;
    background: rgba(48, 171, 252, .035);
}

.projects-header {
    max-width: 760px;
    margin: 0 auto 55px;
    text-align: center;
}

.projects-header .eyebrow {
    margin-bottom: 18px;
    color: var(--accent);
}

.projects-header h2 {
    margin: 0;
    color: var(--text);
    font-size: clamp(36px, 4vw, 54px);
    line-height: 1.1;
    letter-spacing: -.045em;
}

.projects-header .section-text {
    max-width: 650px;
    margin: 24px auto 0;
}

/* ============================================
   PROJEKTY — SIATKA KART
   ============================================ */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 28px;
}

.project-card {
    --project-accent: var(--accent);

    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;

    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 0;

    transition:
            border-color .25s ease,
            transform .25s ease,
            background-color .25s ease;
}

/* Kolor Typster */

.project-card-typster {
    --project-accent: #ff3548;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--project-accent);
    background: var(--surface);
}

/* Obsługa delikatniejszego koloru obramowania */

@supports (color: color-mix(in srgb, white, black)) {
    .project-card:hover {
        border-color: color-mix(
                in srgb,
                var(--project-accent) 65%,
                transparent
        );
    }
}

/* Kolor Review Transparency */

.project-card-rt {
    --project-accent: #d2a46a;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--project-accent);
    background: #0e1111;
}

/* Obsługa delikatniejszego koloru obramowania */

@supports (color: color-mix(in srgb, white, black)) {
    .project-card:hover {
        border-color: color-mix(
                in srgb,
                var(--project-accent) 65%,
                transparent
        );
    }
}
/* ============================================
   PROJEKTY — GRAFIKI
   ============================================ */

.projects-section .project-visual {
    position: relative;
    display: block;
    width: 100%;
    min-height: 0;
    overflow: hidden;
    background: #101313;
}

.projects-section .project-visual::after {
    content: "";
    position: absolute;
    inset: 45% 0 0;
    background: linear-gradient(
            to bottom,
            transparent,
            rgba(5, 6, 6, .28)
    );
    pointer-events: none;
}

.projects-section .project-visual img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .4s ease;
}

.project-card:hover .project-visual img {
    transform: scale(1.035);
}

/* ============================================
   PROJEKTY — TREŚĆ KART
   ============================================ */

.projects-section .project-copy {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    max-width: none;
    padding: 30px;
}

.projects-section .project-copy .eyebrow {
    margin: 0 0 17px;
    color: var(--project-accent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .16em;
    line-height: 1.6;
}

.projects-section .project-copy h3 {
    margin: 0;
    color: var(--text);
    font-size: clamp(23px, 2.3vw, 30px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.045em;
    overflow-wrap: anywhere;
}

.projects-section .project-copy h4 {
    margin: 15px 0 0;
    color: var(--text);
    font-size: 17px;
    font-weight: 500;
    line-height: 1.5;
}

.projects-section .project-copy .section-text {
    max-width: none;
    margin: 17px 0 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.85;
}

.projects-section .project-status {
    margin: 23px 0 0;
    padding-left: 12px;
    border-left: 2px solid var(--project-accent);
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

/* ============================================
   PROJEKTY — PRZYCISKI
   ============================================ */

.projects-section .project-copy .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    min-height: 0;
    margin-top: auto;
    padding: 27px 0 0;

    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--project-accent);

    font-size: 14px;
    font-weight: 600;

    transform: none;
}

.projects-section .project-copy .button:hover {
    border-color: transparent;
    background: transparent;
    color: var(--text);
}

.projects-section .project-copy .button span {
    display: inline-block;
    font-size: 20px;
    line-height: 1;
    transition: transform .2s ease;
}

.projects-section .project-copy .button:hover span {
    transform: translateX(5px);
}

/* Typster — czerwony przycisk */

.project-card-typster .button-secondary {
    border-color: transparent;
    color: #ff3548;
}

.project-card-typster .button-secondary:hover {
    border-color: transparent;
    background: transparent;
    color: #fff;
}

/* ============================================
   FUNKCJE
   ============================================ */

.feature-grid {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 100px;
}

.feature-list {
    border-top: 1px solid var(--line);
}

.feature {
    display: grid;
    grid-template-columns: 50px 1fr;
    gap: 20px;
    padding: 28px 0;
    border-bottom: 1px solid var(--line);
}

.feature > span {
    padding-top: 4px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
}

.feature h3 {
    margin: 0;
    font-size: 20px;
}

.feature p {
    margin: 8px 0 0;
    color: var(--muted);
}

/* ============================================
   KONTAKT
   ============================================ */

.contact .button {
    margin-top: 32px;
}

/* ============================================
   STOPKA
   ============================================ */

.site-footer {
    border-top: 1px solid var(--line);
    background: var(--bg);
}

.projects-section .project-visual { background: var(--bg-soft); }

body[data-theme="light"] .projects-section::before,
body[data-theme="light"] .projects-section::after { opacity: .35; }

body[data-theme="light"] .projects-section .project-visual::after {
    background: linear-gradient(to bottom, transparent, rgba(244, 247, 244, .18));
}

body[data-theme="light"] .project-card:hover { background: var(--surface); }

/* Keep the requested presentation consistent with any older component rules. */
body,
body * {
    font-family: "Berkeley Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace !important;
}

.project-card,
.project-card * ,
.theme-toggle,
.button {
    border-radius: 0 !important;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.3fr .7fr;
    gap: 80px;
    padding: 70px 0;
}

.footer-brand .brand {
    font-size: 23px;
}

.footer-brand .brand-logo {
    width: 43px;
    height: 43px;
}

.footer-brand p {
    max-width: 330px;
    margin: 18px 0 0;
    color: var(--muted);
}

.site-footer h3 {
    margin: 0 0 18px;
    font-size: 15px;
}

.footer-links {
    display: grid;
    gap: 9px;
}

.footer-links a {
    color: var(--muted);
    transition: color .2s ease;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    padding: 20px 0;
    border-top: 1px solid var(--line);
    color: #717a78;
    font-size: 13px;
}

/* ============================================
   RESPONSYWNOŚĆ — TABLETY
   ============================================ */

@media (max-width: 800px) {
    .container {
        width: min(calc(100% - 32px), var(--max));
    }

    .nav {
        min-height: 72px;
    }

    .main-nav {
        display: none;
    }

    .hero-grid,
    .feature-grid,
    .footer-main {
        grid-template-columns: 1fr;
    }

    .hero-grid {
        padding: 65px 0 90px;
    }

    .hero-visual {
        min-height: 360px;
        order: -1;
    }

    .hero-logo {
        width: min(72%, 360px);
    }

    .hero h1 {
        font-size: clamp(42px, 11vw, 64px);
    }

    .section {
        padding: 85px 0;
    }

    .feature-grid {
        gap: 45px;
    }

    .footer-main {
        gap: 45px;
    }

    /* Karty projektów */

    .projects-section {
        padding: 80px 0;
    }

    .projects-header {
        margin-bottom: 40px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        max-width: 600px;
        margin-inline: auto;
    }

    .projects-section .project-copy {
        padding: 28px;
    }

    .projects-section .project-copy h3 {
        font-size: 28px;
    }
}

/* ============================================
   RESPONSYWNOŚĆ — TELEFONY
   ============================================ */

@media (max-width: 480px) {
    .projects-section {
        padding: 65px 0;
    }

    .projects-header {
        margin-bottom: 32px;
    }

    .projects-header h2 {
        font-size: 36px;
    }

    .projects-header .section-text {
        font-size: 16px;
    }

    .projects-grid {
        gap: 20px;
    }

    .projects-section .project-visual {
        aspect-ratio: 4 / 3;
    }

    .projects-section .project-copy {
        padding: 23px;
    }

    .projects-section .project-copy h3 {
        font-size: 24px;
    }

    .projects-section .project-copy h4 {
        font-size: 16px;
    }

    .projects-section .project-copy .section-text {
        font-size: 14px;
    }

    .hero-visual {
        min-height: 280px;
    }

    .hero-actions {
        gap: 12px;
    }

    .button {
        padding-inline: 20px;
    }
}

/* ============================================
   DOSTĘPNOŚĆ — OGRANICZENIE ANIMACJI
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .button,
    .project-card,
    .projects-section .project-visual img,
    .projects-section .project-copy .button span,
    .main-nav a,
    .footer-links a {
        transition: none;
    }

    .button:hover,
    .project-card:hover {
        transform: none;
    }

    .project-card:hover .project-visual img {
        transform: none;
    }
}
