/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0a0f1a;
    --bg-secondary: #111827;
    --bg-card: #1a2234;
    --bg-card-hover: #1f2a40;
    --accent: #22d3ee;
    --accent-dim: rgba(34, 211, 238, 0.15);
    --accent-glow: rgba(34, 211, 238, 0.25);
    --accent-warm: #f5b870;
    --text-primary: #f1f5f9;
    --text-secondary: #a0adc1;
    --text-muted: #8b96ac;
    --border: #1e293b;
    --border-accent: rgba(34, 211, 238, 0.3);
    --gradient-start: #22d3ee;
    --gradient-end: #818cf8;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
    --max-width: 1120px;
    --section-padding: 6rem 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    position: relative;
}

/* Subtle film-grain overlay přes celou stránku — zlomí ploché barvy */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.05;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* WCAG 2.3.3 — respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--gradient-end);
}

/* Keyboard focus — WCAG 2.4.7 */
a:focus-visible,
button:focus-visible,
.nav__lang-btn:focus-visible,
.nav__hamburger:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ===== BUTTONS (shared) ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
    padding: 0.75rem 1.5rem;
    font-size: 0.85rem;
    line-height: 1.2;
}

.btn--sm {
    padding: 0.5rem 1.1rem;
    font-size: 0.75rem;
}

.btn--lg {
    padding: 0.9rem 2rem;
    font-size: 0.9rem;
}

.btn--primary {
    background: var(--accent);
    color: var(--bg-primary);
    box-shadow: 0 2px 12px rgba(34, 211, 238, 0.18);
}

.btn--primary:hover {
    color: var(--bg-primary);
    background: #67e8f9;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(34, 211, 238, 0.28);
}

.btn--secondary {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
}

.btn--secondary:hover {
    background: var(--accent-dim);
    color: var(--accent);
    transform: translateY(-1px);
}

.btn:disabled {
    opacity: 0.6;
    cursor: wait;
    transform: none;
    box-shadow: none;
}

img {
    max-width: 100%;
    display: block;
}

/* ===== LAYOUT ===== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: var(--section-padding);
}

/* ===== NAVIGATION ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
    transition: background 0.3s;
}

/* Backdrop-filter v pseudo-elementu — na .nav by vytvořil containing
   block pro fixed descendants a rozbil mobilní overlay. */
.nav::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10, 15, 26, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: -1;
}

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.nav__logo {
    font-family: var(--font-mono);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

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

.nav__links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav__links a {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: color 0.2s;
}

.nav__links a:hover {
    color: var(--text-primary);
}

.nav__lang-btn {
    background: var(--accent-dim);
    color: var(--accent);
    border: 1px solid var(--border-accent);
    padding: 0.35rem 0.85rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: var(--font-mono);
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.05em;
}

.nav__lang-btn:hover {
    background: var(--accent);
    color: var(--bg-primary);
}

/* Mobile hamburger */
.nav__hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav__hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text-secondary);
    border-radius: 2px;
    transition: all 0.3s;
}

/* ===== HERO ===== */
.hero {
    min-height: calc(100vh - 4rem);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -25%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.12) 0%, transparent 65%);
    pointer-events: none;
    opacity: 0.7;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 3.5rem;
    align-items: center;
}

.hero__content {
    position: relative;
    z-index: 1;
    max-width: 640px;
}

.hero__greeting {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--accent);
    margin-bottom: 0.75rem;
    letter-spacing: 0.05em;
}

.hero__name {
    font-size: clamp(2.75rem, 7vw, 4.75rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.025em;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.hero__name-accent {
    color: var(--accent);
}

.hero__tagline {
    font-size: clamp(1.15rem, 2.6vw, 1.5rem);
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.hero__description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 540px;
    margin-bottom: 2.25rem;
    line-height: 1.8;
}

.hero__ctas {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

/* Dev info panel — pravá strana hero, vyplňuje prázdnotu */
.hero__panel {
    position: relative;
    background: linear-gradient(160deg, rgba(26, 34, 52, 0.85), rgba(17, 24, 39, 0.9));
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.5rem 1.6rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.65;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

.hero__panel::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    border-top: 1px solid var(--border-accent);
    opacity: 0.5;
}

.hero__panel-titlebar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: -0.4rem -0.4rem 1rem;
    padding: 0.45rem 0.6rem;
    border-bottom: 1px solid var(--border);
}

.hero__panel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #4b5563;
}

.hero__panel-dot--green { background: #4ade80; }
.hero__panel-dot--amber { background: var(--accent-warm); }

.hero__panel-path {
    margin-left: auto;
    color: var(--text-muted);
    font-size: 0.72rem;
    letter-spacing: 0.04em;
}

.hero__panel-row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.85rem;
    padding: 0.35rem 0;
}

.hero__panel-row + .hero__panel-row {
    border-top: 1px dashed rgba(160, 173, 193, 0.08);
}

.hero__panel-label {
    color: var(--accent);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding-top: 0.15rem;
    white-space: nowrap;
}

.hero__panel-value {
    color: var(--text-primary);
    font-family: var(--font-mono);
    word-break: break-word;
}

.hero__panel-value--muted {
    color: var(--text-secondary);
}

.hero__panel-value a {
    color: var(--text-primary);
    border-bottom: 1px dashed var(--border-accent);
    transition: color 0.2s;
}

.hero__panel-value a:hover {
    color: var(--accent);
}

.hero__panel-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
}

.hero__panel-status::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.18);
    animation: heroStatusPulse 2.4s ease-in-out infinite;
}

@keyframes heroStatusPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.35); }
    50% { box-shadow: 0 0 0 6px rgba(74, 222, 128, 0); }
}

.hero__panel-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.hero__panel-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.55rem;
    background: rgba(34, 211, 238, 0.08);
    border: 1px solid var(--border-accent);
    border-radius: 999px;
    font-size: 0.72rem;
    color: var(--accent);
    letter-spacing: 0.02em;
}

/* ===== SECTION HEADERS ===== */
.section-header {
    margin-bottom: 3.5rem;
    position: relative;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.65rem;
}

.section-label::before {
    content: '';
    width: 28px;
    height: 1px;
    background: var(--accent);
    opacity: 0.6;
}

.section-title {
    font-size: clamp(1.85rem, 4.2vw, 2.65rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

/* ===== ABOUT ===== */
.about {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.about__text {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 680px;
    margin-bottom: 1rem;
    line-height: 1.8;
}

.about__cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.about-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.about-card::after {
    content: '';
    position: absolute;
    inset: auto -1px -1px -1px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    transform: scaleX(0.3);
    transform-origin: left center;
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.3s ease;
}

.about-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.about-card:hover::after {
    transform: scaleX(1);
    opacity: 1;
}

.about-card__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-dim);
    border-radius: 10px;
    margin-bottom: 1.25rem;
    color: var(--accent);
    font-size: 1.25rem;
}

.about-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.about-card__text {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ===== SERVICES ===== */
.services__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 1fr;
    gap: 1.5rem;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 2.25rem;
    transition: border-color 0.3s, transform 0.2s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    opacity: 0;
    transition: opacity 0.3s;
}

.service-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card__icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-dim);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.service-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.service-card__head .service-card__icon {
    margin-bottom: 0;
}

.service-card__title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.service-card__text {
    font-size: 0.925rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.service-card--featured {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.10), rgba(129, 140, 248, 0.06));
    border-color: var(--border-accent);
    box-shadow: 0 8px 32px rgba(34, 211, 238, 0.10);
}

.service-card--featured::before {
    opacity: 1;
    height: 4px;
}

.service-card--featured .service-card__icon {
    background: var(--accent);
    color: var(--bg-primary);
}

.service-card--featured .service-card__icon svg {
    stroke: var(--bg-primary);
}

.service-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.65rem;
    background: rgba(245, 184, 112, 0.12);
    border: 1px solid rgba(245, 184, 112, 0.4);
    border-radius: 999px;
    color: var(--accent-warm);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.service-card__badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent-warm);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(245, 184, 112, 0.5);
    animation: heroStatusPulse 2.4s ease-in-out infinite;
}

.service-card__actions {
    display: flex;
    gap: 0.85rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.service-card--featured .service-card__actions {
    margin-top: 0;
    margin-bottom: 0;
}

/* ===== ANNOUNCEMENT BAR ===== */
.announcement {
    margin-top: 4rem;
    padding: 0.85rem 0;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.12), rgba(129, 140, 248, 0.08));
    border-bottom: 1px solid var(--border-accent);
    position: relative;
    z-index: 10;
}

.announcement__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.announcement__icon {
    color: var(--accent);
    flex-shrink: 0;
}

.announcement__text {
    font-size: 0.9rem;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.5;
}

.announcement__text strong {
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-right: 0.6rem;
}

.announcement__links {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
    justify-content: center;
}

@media (max-width: 640px) {
    .announcement__inner {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 0.65rem;
        justify-content: space-between;
        text-align: left;
    }

    .announcement__text span {
        display: none;
    }

    .announcement__text strong {
        margin-right: 0;
    }
}

/* ===== CASE STUDY ===== */
.casestudy__subtitle {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2.5rem;
}

.casestudy__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.casestudy__block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.75rem;
    transition: border-color 0.3s;
}

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

.casestudy__label {
    display: inline-block;
    margin-bottom: 0.85rem;
    padding: 0.25rem 0.65rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--accent);
    background: var(--accent-dim);
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.casestudy__text {
    color: var(--text-secondary);
    line-height: 1.7;
}

.casestudy__metrics {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 1.25rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.casestudy__metric {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem 1.25rem;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.casestudy__metric--hero {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.16), rgba(129, 140, 248, 0.06));
    border-color: var(--border-accent);
    padding: 1.85rem 1.6rem;
    box-shadow: 0 8px 32px rgba(34, 211, 238, 0.12);
}

.casestudy__metric--hero::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
}

.casestudy__metric-value {
    display: block;
    font-family: var(--font-mono);
    font-size: clamp(1.6rem, 2.6vw, 2rem);
    font-weight: 800;
    color: var(--accent);
    line-height: 1.05;
    margin-bottom: 0.4rem;
    letter-spacing: -0.02em;
}

.casestudy__metric--hero .casestudy__metric-value {
    font-size: clamp(2.5rem, 4.5vw, 3.5rem);
}

.casestudy__metric-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 1.4;
}

.casestudy__metric--hero .casestudy__metric-label {
    color: var(--text-secondary);
    font-size: 0.78rem;
}

@media (max-width: 960px) {
    .casestudy__grid,
    .casestudy__metrics {
        grid-template-columns: 1fr;
    }
}

/* ===== EXPERIENCE ===== */
.experience {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.timeline {
    position: relative;
    padding-left: 2.5rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--accent), var(--gradient-end), var(--border));
}

.timeline__item {
    position: relative;
    padding-bottom: 3rem;
}

.timeline__item:last-child {
    padding-bottom: 0;
}

.timeline__dot {
    position: absolute;
    left: -2.5rem;
    top: 0.4rem;
    width: 12px;
    height: 12px;
    background: var(--accent);
    border-radius: 50%;
    transform: translateX(-5px);
    box-shadow: 0 0 0 4px var(--bg-secondary), 0 0 0 5px var(--border-accent);
}

.timeline__item:first-child .timeline__dot {
    box-shadow: 0 0 0 4px var(--bg-secondary), 0 0 0 5px var(--accent);
}

.timeline__item:first-child .timeline__dot::after {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 1px solid var(--accent);
    opacity: 0.6;
    animation: timelinePulse 2.4s ease-out infinite;
}

@keyframes timelinePulse {
    0% { transform: scale(0.8); opacity: 0.6; }
    100% { transform: scale(1.6); opacity: 0; }
}

.timeline__period {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--accent);
    margin-bottom: 0.4rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.timeline__role {
    font-size: clamp(1.3rem, 2vw, 1.55rem);
    font-weight: 700;
    margin-bottom: 0.2rem;
    letter-spacing: -0.01em;
    line-height: 1.25;
}

.timeline__company {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
}

.timeline__desc {
    font-size: 0.925rem;
    color: var(--text-secondary);
    max-width: 600px;
    line-height: 1.7;
}

/* ===== TECH STACK ===== */
.tech__categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

@media (max-width: 960px) {
    .tech__categories {
        grid-template-columns: repeat(2, 1fr);
    }
}

.tech-category {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.6rem 1.5rem;
    transition: border-color 0.25s, transform 0.25s, background 0.25s;
}

.tech-category:hover {
    border-color: var(--border-accent);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
}

.tech-category__title {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.tech-category__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.tech-category__list li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding-left: 1rem;
    position: relative;
}

.tech-category__list li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.75rem;
}

/* ===== CONTACT ===== */
.contact {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
}

.contact__text {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 2.25rem;
    max-width: 560px;
}

.contact__items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 3rem;
}

@media (max-width: 720px) {
    .contact__items {
        grid-template-columns: 1fr;
    }
}

.contact__item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.1rem 1.25rem;
    transition: border-color 0.25s, background 0.25s;
}

.contact__item:hover {
    border-color: var(--border-accent);
    background: var(--bg-card-hover);
}

.contact__item-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-dim);
    border-radius: 10px;
    color: var(--accent);
    flex-shrink: 0;
}

.contact__item-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-family: var(--font-mono);
}

.contact__item-value {
    font-size: 1.05rem;
    color: var(--text-primary);
    font-weight: 500;
}

.contact__item-value a {
    color: var(--text-primary);
}

.contact__item-value a:hover {
    color: var(--accent);
}

.contact__schedule {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.4rem;
}

/* ===== CONTACT FORM ===== */
.contact-form {
    margin: 3rem auto 0;
    padding: 2.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 720px;
    scroll-margin-top: 5rem;
}

.contact-form__title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.contact-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.contact-form__field {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.contact-form__label {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.contact-form input,
.contact-form textarea {
    font-family: var(--font-body);
    font-size: 0.975rem;
    padding: 0.75rem 0.9rem;
    color: var(--text-primary);
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-muted);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-dim);
}

.contact-form textarea {
    resize: vertical;
    min-height: 140px;
    font-family: var(--font-body);
}

.contact-form__honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.contact-form__actions {
    display: flex;
    justify-content: flex-start;
}

.contact-form__flash {
    min-height: 0;
}

.flash {
    padding: 0.85rem 1.1rem;
    border-radius: 10px;
    font-size: 0.95rem;
    line-height: 1.5;
    border: 1px solid transparent;
    animation: flashIn 0.25s ease-out;
}

.flash--success {
    background: rgba(34, 211, 238, 0.08);
    border-color: var(--border-accent);
    color: var(--accent);
}

.flash--error {
    background: rgba(248, 113, 113, 0.08);
    border-color: rgba(248, 113, 113, 0.35);
    color: #fca5a5;
}

@keyframes flashIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 640px) {
    .contact-form {
        padding: 1.5rem;
    }

    .contact-form__row {
        grid-template-columns: 1fr;
    }
}

/* ===== FOOTER ===== */
.footer {
    padding: 2.5rem 1.5rem 2rem;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
    text-align: center;
}

.footer__brand {
    color: var(--text-secondary);
    font-weight: 500;
}

.footer__contact {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem 1rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

.footer__contact a {
    color: var(--text-secondary);
    border-bottom: 1px dashed transparent;
    transition: color 0.2s, border-color 0.2s;
}

.footer__contact a:hover {
    color: var(--accent);
    border-bottom-color: var(--border-accent);
}

.footer__meta {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.03em;
}

.footer__meta a {
    color: var(--text-muted);
    transition: color 0.2s;
}

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

.footer__sep {
    margin: 0 0.5rem;
    opacity: 0.5;
}

.footer__top {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.4rem;
    padding: 0.45rem 0.95rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: border-color 0.2s, color 0.2s;
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    :root {
        --section-padding: 4rem 0;
    }

    .nav__links {
        position: fixed;
        top: 4rem;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--bg-primary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        padding: 2rem 1rem;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s;
        z-index: 99;
        overflow-y: auto;
    }

    .nav__links.active {
        opacity: 1;
        pointer-events: all;
    }

    .nav__links a {
        font-size: 1.25rem;
    }

    .nav__hamburger {
        display: flex;
    }

    .nav__hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav__hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .nav__hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .about__cards {
        grid-template-columns: 1fr;
    }

    .services__grid {
        grid-template-columns: 1fr;
    }

    .tech__categories {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 960px) {
    .hero__layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .hero__panel {
        max-width: 480px;
    }
}

@media (max-width: 768px) {
    /* Na mobilu CTA nesmí vypadnout pod fold — vypneme full-viewport centrování
       a necháme hero flow přirozeně od vrchu. */
    .hero {
        min-height: auto;
        align-items: flex-start;
        padding-top: 2.5rem;
        padding-bottom: 3rem;
    }

    .hero__panel {
        font-size: 0.78rem;
        padding: 1.25rem 1.35rem;
    }
}

@media (max-width: 480px) {
    .hero__name {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.5rem;
    }
}
