:root {
    --bg: #151225;
    --surface: linear-gradient(145deg, #111111, #1e1e1e);
    --glass: rgba(30, 30, 30, 0.45);
    --text: #ffffff;
    --text-secondary: #aaaaaa;
    --text-tertiary: #666666;
    --radius: 28px;
    --radius-small: 20px;
    --transition: all 0.5s cubic-bezier(0.17, 0.67, 0.12, 0.99);
    --transition-fast: all 0.3s cubic-bezier(0.17, 0.67, 0.12, 0.99);
    --glow: 0 0 20px rgba(255, 255, 255, 0.1);
    --glow-hover: 0 0 30px rgba(255, 255, 255, 0.2);
}

[data-theme="light"] {
    --bg: #ffffff;
    --surface: linear-gradient(145deg, #f5f5f5, #e8e8e8);
    --glass: rgba(255, 255, 255, 0.7);
    --text: #000000;
    --text-secondary: #555555;
    --text-tertiary: #999999;
    --glow: 0 0 20px rgba(0, 0, 0, 0.1);
    --glow-hover: 0 0 30px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .noise-overlay {
    opacity: 0.05;
}

[data-theme="light"] a,
[data-theme="light"] button {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
}

@keyframes rainbow {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Lepší dotykové ovládání na mobilu */
a, button {
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.15);
    touch-action: manipulation;
}

/* Noise texture overlay */
.noise-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='https://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='256' height='256' filter='url(%23noise)' opacity='0.12'/%3E%3C/svg%3E");
    z-index: 1;
}

/* Scroll progress indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    z-index: 1000;
    transition: width 0.1s ease-out;
}

/* Sticky navigation – Liquid Glass Effect */
.sticky-nav {
    position: fixed;
    top: -100px;
    left: 0;
    right: 0;
    z-index: 999;
    transition: top 0.3s ease;
    overflow: hidden;
}

.sticky-nav.visible {
    top: 0;
}

.glass-nav {
    --glass-bg: rgba(0, 0, 0, 0.25);
    --glass-highlight: rgba(255, 255, 255, 0.15);
}

[data-theme="light"] .glass-nav {
    --glass-bg: rgba(255, 255, 255, 0.4);
    --glass-highlight: rgba(255, 255, 255, 0.6);
}

.glass-filter,
.glass-overlay,
.glass-specular {
    position: absolute;
    inset: 0;
}

.glass-filter {
    z-index: 1;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    filter: url(#glass-distortion) saturate(120%) brightness(1.1);
}

.glass-overlay {
    z-index: 2;
    background: var(--glass-bg);
}

.glass-specular {
    z-index: 3;
    box-shadow: inset 1px 1px 1px var(--glass-highlight);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

.glass-nav-content {
    position: relative;
    z-index: 4;
    padding: 1rem 0;
}

.glass-nav-content .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.theme-toggle {
    background: rgba(30, 30, 30, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
    position: relative;
}

.theme-toggle:hover {
    background: rgba(30, 30, 30, 0.8);
    border-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.theme-icon {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    position: absolute;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.moon-icon {
    opacity: 0;
    transform: rotate(90deg);
}

[data-theme="light"] .sun-icon {
    opacity: 0;
    transform: rotate(90deg);
}

[data-theme="light"] .moon-icon {
    opacity: 1;
    transform: rotate(0deg);
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -1px;
    transition: var(--transition-fast);
}

.nav-logo:hover {
    opacity: 1;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--text);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text);
}

.nav-link.active::after,
.nav-link:hover::after {
    width: 100%;
}

@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
        font-size: 0.85rem;
    }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.header {
    padding: 3rem 0 1rem;
    text-align: center;
}

.logo {
    font-size: 0;
    line-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Logo – bílé (s gradient efektem při hoveru) */
.logo-chrome {
    display: block;
    -webkit-mask: url('data/img/delan_logo.svg') center/contain no-repeat;
    mask: url('data/img/delan_logo.svg') center/contain no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-position: center;
    mask-position: center;
    background: #ffffff;
    transition: background 0.3s ease;
}

[data-theme="light"] .logo-chrome {
    background: #000000;
}

.logo-chrome:hover,
.nav-logo:hover .logo-chrome {
    background: linear-gradient(135deg, #440066, #0b8793, #440066, #0b8793);
    background-size: 300% 300%;
    animation: logoGradient 3s ease infinite;
}

@keyframes logoGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.logo-chrome-main {
    width: 200px;
    height: 56px;
}

.logo-chrome-nav {
    width: 90px;
    height: 26px;
}

.nav-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-logo .logo-chrome {
    flex-shrink: 0;
}

/* Sociální sítě – Uiverse tlačítkový efekt */
.socials {
    padding: 2rem 0 6rem;
}

.social-grid {
    display: flex;
    justify-content: center;
    gap: 5.5rem;
    flex-wrap: wrap;
}

.social-card {
    cursor: pointer;
    width: 100px;
    height: 100px;
    border-radius: var(--radius-small);
    color: white;
    background: #212121;
    outline: 0.1em solid #353535;
    border: 0;
    box-shadow: 0 0 1em 1em rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out, background 0.4s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    overflow: hidden;
}

.social-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #440066, #0b8793, #440066, #0b8793);
    background-size: 300% 300%;
    filter: blur(12px);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.social-card:hover::before {
    opacity: 1;
    animation: socialGradient 3s ease infinite;
}

.social-card:hover {
    transform: scale(1.1);
    box-shadow: 0 0 1.5em 0.5em rgba(68, 0, 102, 0.25);
    outline: 0;
    background: transparent;
}

@keyframes socialGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

[data-theme="light"] .social-card {
    background: #e8e8e8;
    outline: 0.1em solid #c0c0c0;
    color: #1a1a1a;
}

[data-theme="light"] .social-card:hover {
    background: transparent;
    box-shadow: 0 0 1.5em 0.5em rgba(11, 135, 147, 0.2);
    color: #ffffff;
}

[data-theme="light"] .social-card:hover .social-icon {
    fill: #ffffff;
}

.social-icon {
    fill: currentColor;
    width: 52px;
    height: 52px;
    position: relative;
    z-index: 1;
}

.hero {
    padding: 4rem 0 10rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
}

.hero h2 {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #cccccc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
}

.tagline {
    font-size: 1.8rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.section-title {
    font-size: 2.4rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    letter-spacing: -1px;
}

.section-title::after {
    content: '';
    display: block;
    width: 120px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    margin: 1.5rem auto 0;
    border-radius: 2px;
}

/* Kombinovaná sekce Projects */
.projects {
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
}

.projects::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    z-index: 0;
}

.projects-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 5rem;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.projects-column {
    display: grid;
    grid-template-rows: auto 1fr;
    align-items: start;
}

.projects-container .column-title {
    grid-row: 1;
}

.app-grid,
.extension-list {
    grid-row: 2;
}

.projects-column {
    position: relative;
    display: flex;
    flex-direction: column;
}

.apps-column {
    position: relative;
    z-index: 2;
}

.extensions-column {
    position: relative;
    z-index: 1;
    padding-left: 2rem;
}

.column-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 3rem;
    margin-top: 0;
    text-align: left;
    letter-spacing: -0.5px;
    color: var(--text-secondary);
    height: auto;
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 3rem;
    justify-items: center;
    align-items: start;
}

.app-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    width: 100%;
    position: relative;
}

.app-card:nth-child(1) {
    z-index: 4;
}

.app-card:nth-child(2) {
    z-index: 3;
}

.app-card:nth-child(3) {
    z-index: 2;
}

.app-card:nth-child(4) {
    z-index: 1;
}

.app-card:hover {
    transform: translateY(-12px) scale(1.06);
}

.app-card:hover .app-icon {
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), var(--glow-hover);
}

.app-icon {
    width: 140px;
    height: 140px;
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7), var(--glow);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

.app-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    display: block;
}

.soon { background: linear-gradient(135deg, #333333, #555555); }
.soon::before { content: "✨"; font-size: 72px; }

.app-label {
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
}

.extension-list {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    align-items: flex-start;
    margin-top: 0;
}

.extension-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    width: 100%;
    gap: 1.5rem;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-small);
    background: rgba(30, 30, 30, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.extension-card:hover {
    transform: translateX(8px);
    background: rgba(30, 30, 30, 0.5);
    border-color: rgba(255, 255, 255, 0.1);
}

.extension-card:hover .extension-icon {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8), var(--glow-hover);
}

.extension-icon {
    width: 80px;
    height: 80px;
    min-width: 80px;
    border-radius: var(--radius-small);
    background: var(--surface);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), var(--glow);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    position: relative;
}

.extension-icon svg {
    width: 40px;
    height: 40px;
    color: var(--text);
}

.extension-icon img {
    width: 70%;
    height: 70%;
    object-fit: contain;
    border-radius: 0;
    display: block;
}

.extension-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin: 0;
}

/* Sekce Portfolio */
.portfolio {
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
}

.portfolio::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.02) 50%, transparent 100%);
    pointer-events: none;
    z-index: 0;
}

.portfolio .container {
    position: relative;
    z-index: 1;
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.6rem 1.5rem;
    background: rgba(30, 30, 30, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
    background: rgba(30, 30, 30, 0.6);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text);
    transform: translateY(-2px);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.portfolio-item {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: var(--radius-small);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}

.portfolio-item:hover {
    transform: translateY(-8px);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem;
    text-align: center;
    grid-column: 1 / -1;
}

.portfolio-icon {
    width: 120px;
    height: 120px;
    color: var(--text-tertiary);
    margin-bottom: 2rem;
    opacity: 0.4;
}

.portfolio-text {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.portfolio-subtext {
    font-size: 1.1rem;
    color: var(--text-tertiary);
    font-weight: 500;
}

/* Sekce Programy */
.programs {
    padding: 8rem 0;
    position: relative;
}

.programs::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    justify-items: center;
    align-items: start;
}

.program-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: var(--transition);
    width: 100%;
    max-width: 140px;
    cursor: default;
    position: relative;
    justify-content: flex-start;
    margin: 0;
}

.program-card:hover {
    transform: none;
}

/* Barevné záře podle programu – velmi jemné, měkké, průhledné */
.program-photoshop:hover .program-icon {
    transform: scale(1.08);
    filter: saturate(1);
    box-shadow: 0 6px 20px rgba(49, 168, 255, 0.14), 0 0 40px rgba(49, 168, 255, 0.08);
}
.program-lightroom:hover .program-icon {
    transform: scale(1.08);
    filter: saturate(1);
    box-shadow: 0 6px 20px rgba(49, 168, 255, 0.14), 0 0 40px rgba(49, 168, 255, 0.08);
}
.program-illustrator:hover .program-icon {
    transform: scale(1.08);
    filter: saturate(1);
    box-shadow: 0 6px 20px rgba(255, 154, 0, 0.14), 0 0 40px rgba(255, 154, 0, 0.08);
}
.program-indesign:hover .program-icon {
    transform: scale(1.08);
    filter: saturate(1);
    box-shadow: 0 6px 20px rgba(255, 51, 102, 0.14), 0 0 40px rgba(255, 51, 102, 0.08);
}
.program-premiere:hover .program-icon {
    transform: scale(1.08);
    filter: saturate(1);
    box-shadow: 0 6px 20px rgba(153, 102, 255, 0.14), 0 0 40px rgba(153, 102, 255, 0.08);
}
.program-figma:hover .program-icon {
    transform: scale(1.08);
    filter: saturate(1);
    box-shadow: 0 6px 20px rgba(162, 89, 255, 0.14), 0 0 40px rgba(162, 89, 255, 0.08);
}
.program-procreate:hover .program-icon {
    transform: scale(1.08);
    filter: saturate(1);
    box-shadow: 0 6px 20px rgba(255, 102, 0, 0.14), 0 0 40px rgba(255, 102, 0, 0.08);
}
.program-flstudio:hover .program-icon {
    transform: scale(1.08);
    filter: saturate(1);
    box-shadow: 0 6px 20px rgba(255, 123, 0, 0.14), 0 0 40px rgba(255, 123, 0, 0.08);
}
.program-xcode:hover .program-icon {
    transform: scale(1.08);
    filter: saturate(1);
    box-shadow: 0 6px 20px rgba(20, 126, 251, 0.14), 0 0 40px rgba(20, 126, 251, 0.08);
}
.program-cursor:hover .program-icon {
    transform: scale(1.08);
    filter: saturate(1);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.14), 0 0 40px rgba(124, 58, 237, 0.08);
}
.program-vscode:hover .program-icon {
    transform: scale(1.08);
    filter: saturate(1);
    box-shadow: 0 6px 20px rgba(0, 122, 204, 0.14), 0 0 40px rgba(0, 122, 204, 0.08);
}

.program-icon {
    width: 100px;
    height: 100px;
    min-width: 100px;
    min-height: 100px;
    border-radius: var(--radius-small);
    background: transparent;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    margin: 0 0 1rem 0;
    transition: var(--transition), filter 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    padding: 0;
    flex-shrink: 0;
    display: block;
    filter: saturate(0.5);
}

.program-icon img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    object-position: center;
    border-radius: var(--radius-small);
    transition: transform 0.3s ease;
    display: block;
    margin: 0;
    padding: 0;
    border: none;
    outline: none;
    box-sizing: border-box;
}

.program-icon:not(.icon-small) img {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
}

.program-icon.icon-small {
    background: var(--surface);
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.program-icon.icon-small img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 0;
    position: relative;
}

.program-card:hover .program-icon img {
    transform: none;
}

.program-label {
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    color: var(--text-secondary);
    transition: var(--transition-fast);
    margin: 0;
    line-height: 1.2;
}

.program-card:hover .program-label {
    color: var(--text);
}

/* Animace pro scroll */
.animate-ready {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(30, 30, 30, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 998;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: rgba(30, 30, 30, 0.95);
    transform: translateY(-5px);
    box-shadow: var(--glow-hover);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
}

/* About sekce */
.about {
    padding: 8rem 0;
    position: relative;
}

.about-content {
    max-width: 720px;
    margin: 0 auto;
    text-align: left;
}

.about-lead {
    font-size: 1.45rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.65;
    margin-bottom: 2rem;
}

.about-lead strong {
    font-weight: 700;
    color: var(--text);
}

.about-paragraph {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.85;
    margin-bottom: 1.5rem;
}

.about-paragraph:last-child {
    margin-bottom: 0;
}

.about-paragraph strong {
    color: var(--text);
    font-weight: 600;
}

/* Skrýt About text do chvíle, než JS vyprázdní odstavce – celý text se zobrazí až po dopsání */
.about-typewriter .about-reveal {
    visibility: hidden;
}
.about-typewriter .about-content--ready .about-reveal {
    visibility: visible;
}

.typewriter-text {
    display: inline;
}

.typewriter-cursor {
    display: inline-block;
    font-weight: 400;
    color: var(--text);
    animation: typewriter-blink 0.7s step-end infinite;
    margin-left: 1px;
}

.about-reveal.typed .typewriter-cursor {
    display: none;
}

@keyframes typewriter-blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .typewriter-cursor {
        animation: none;
    }
}

/* Stats sekce */
.stats {
    padding: 8rem 0;
    position: relative;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    max-width: 900px;
    margin: 0 auto;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    border-radius: var(--radius-small);
    background: rgba(30, 30, 30, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-8px);
    background: rgba(30, 30, 30, 0.5);
    border-color: rgba(255, 255, 255, 0.1);
}

.stat-number {
    font-size: 4rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #cccccc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.footer {
    padding: 6rem 0 3rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    position: relative;
    z-index: 2;
}

/* Responsivita */
@media (max-width: 1024px) {
    .projects-container {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .apps-column,
    .extensions-column {
        margin-top: 0;
        padding-left: 0;
    }
    
    .app-card:nth-child(2),
    .app-card:nth-child(4) {
        margin-top: 0;
    }
    
    .programs-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 2.5rem;
    }
    
    .program-icon {
        width: 90px;
        height: 90px;
    }
    
    .program-icon img {
        width: 100%;
        height: 100%;
        object-fit: fill;
        object-position: center;
        margin: 0;
        padding: 0;
    }
    
    .program-icon:not(.icon-small) img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
    
    .program-icon.icon-small {
        display: flex;
    }
    
    .program-icon.icon-small img {
        position: relative;
        width: 45px;
        height: 45px;
        object-fit: contain;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .header {
        padding: 2rem 0 0.75rem;
    }
    
    .logo {
        font-size: 2.6rem;
    }
    
    .hero {
        padding: 3rem 0 6rem;
    }
    
    .hero h2 { 
        font-size: 3.5rem; 
    }
    
    .tagline { 
        font-size: 1.6rem; 
    }
    
    .socials {
        padding: 1.5rem 0 4rem;
    }
    
    .social-grid { 
        gap: 3.5rem; 
    }
    
    .social-card { 
        width: 85px; 
        height: 85px; 
    }
    
    .social-icon { 
        width: 46px; 
        height: 46px; 
    }
    
    .about {
        padding: 5rem 0;
    }
    
    .about-lead {
        font-size: 1.3rem;
        margin-bottom: 1.75rem;
    }
    
    .about-paragraph {
        font-size: 1.05rem;
        margin-bottom: 1.35rem;
    }
    
    .stats {
        padding: 5rem 0;
    }
    
    .stats-grid {
        gap: 2rem;
        grid-template-columns: repeat(3, 1fr);
    }
    
    .stat-card {
        padding: 1.5rem 1rem;
    }
    
    .stat-number {
        font-size: 3rem;
    }
    
    .stat-label {
        font-size: 1rem;
    }
    
    .projects,
    .portfolio,
    .programs {
        padding: 5rem 0;
    }
    
    .footer {
        padding: 4rem 0 2rem;
        padding-bottom: calc(2rem + env(safe-area-inset-bottom, 0));
    }
    
    .column-title {
        text-align: center;
        margin-bottom: 2.5rem;
    }
    
    .apps-column,
    .extensions-column {
        align-items: center;
    }
    
    .app-grid {
        justify-content: center;
    }
    
    .extension-list {
        align-items: center;
    }
    
    .extension-card {
        flex-direction: column;
        max-width: 200px;
        width: 100%;
        padding: 1.5rem;
    }
    
    .extension-icon {
        width: 100px;
        height: 100px;
        margin-bottom: 1rem;
    }
    
    .extension-icon svg {
        width: 50px;
        height: 50px;
    }
    
    .extension-label {
        text-align: center;
    }
    
    .extensions-column {
        padding-left: 0;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 3rem;
    }
    
    .app-grid { 
        gap: 3rem; 
    }
    
    .app-icon { 
        width: 120px; 
        height: 120px; 
    }
    
    
    .portfolio-placeholder {
        padding: 4rem 1.5rem;
    }
    
    .portfolio-icon {
        width: 100px;
        height: 100px;
    }
    
    .portfolio-text {
        font-size: 1.6rem;
    }
    
    .portfolio-subtext {
        font-size: 1rem;
    }
    
    .programs-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 2rem;
    }
    
    .program-icon {
        width: 80px;
        height: 80px;
    }
    
    .program-icon img {
        width: 100%;
        height: 100%;
        object-fit: fill;
        object-position: center;
        margin: 0;
        padding: 0;
    }
    
    .program-icon:not(.icon-small) img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
    
    .program-icon.icon-small {
        display: flex;
    }
    
    .program-icon.icon-small img {
        position: relative;
        width: 40px;
        height: 40px;
        object-fit: contain;
    }
    
    .program-label {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1.25rem;
    }
    
    .header {
        padding: 1.5rem 0 0.5rem;
    }
    
    .logo {
        font-size: 2.2rem;
    }
    
    .hero {
        padding: 2rem 0 4rem;
    }
    
    .hero h2 {
        font-size: 2.8rem;
    }
    
    .tagline {
        font-size: 1.4rem;
    }
    
    .socials {
        padding: 1rem 0 3rem;
    }
    
    .social-grid {
        gap: 2.5rem;
    }
    
    .social-card {
        width: 72px;
        height: 72px;
    }
    
    .social-icon {
        width: 38px;
        height: 38px;
    }
    
    .about {
        padding: 3.5rem 0;
    }
    
    .about-lead {
        font-size: 1.15rem;
        margin-bottom: 1.5rem;
    }
    
    .about-paragraph {
        font-size: 1rem;
        margin-bottom: 1.25rem;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2.5rem;
    }
    
    .projects,
    .portfolio,
    .programs,
    .stats {
        padding: 3.5rem 0;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        max-width: 280px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .stat-card {
        padding: 1.25rem 1rem;
    }
    
    .stat-number {
        font-size: 2.75rem;
    }
    
    .stat-label {
        font-size: 0.95rem;
    }
    
    .app-grid {
        gap: 2.5rem;
    }
    
    .app-icon {
        width: 100px;
        height: 100px;
    }
    
    .app-label {
        font-size: 1.05rem;
    }
    
    .programs-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }
    
    .program-icon {
        width: 56px;
        height: 56px;
        min-width: 56px;
        min-height: 56px;
    }
    
    .program-icon img {
        width: 100%;
        height: 100%;
        object-fit: fill;
        object-position: center;
        margin: 0;
        padding: 0;
    }
    
    .program-icon:not(.icon-small) img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
    
    .program-icon.icon-small {
        display: flex;
    }
    
    .program-icon.icon-small img {
        position: relative;
        width: 28px;
        height: 28px;
        object-fit: contain;
    }
    
    .program-label {
        font-size: 0.75rem;
    }
    
    .program-card {
        max-width: none;
    }
    
    /* Sticky nav – kompaktní horizontální layout (ne sloupec) */
    .sticky-nav {
        padding: 0.6rem 0;
    }
    
    .glass-nav-content .container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        gap: 0.5rem;
    }
    
    .nav-logo .logo-chrome-nav {
        width: 72px;
        height: 20px;
    }
    
    .nav-right {
        flex-direction: row;
        gap: 0.75rem;
        flex-wrap: wrap;
        justify-content: flex-end;
    }
    
    .nav-links {
        gap: 0.6rem;
        flex-wrap: wrap;
        justify-content: flex-end;
    }
    
    .nav-link {
        font-size: 0.85rem;
        padding: 0.35rem 0.5rem;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
    
    .theme-toggle {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
    }
    
    .theme-icon {
        width: 22px;
        height: 22px;
    }
    
    .back-to-top {
        bottom: calc(1rem + env(safe-area-inset-bottom, 0));
        right: calc(1rem + env(safe-area-inset-right, 0));
        width: 48px;
        height: 48px;
        min-width: 48px;
        min-height: 48px;
    }
    
    .back-to-top svg {
        width: 22px;
        height: 22px;
    }
    
    .footer {
        padding: 3rem 0 1.5rem;
        padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0));
        font-size: 0.85rem;
    }
    
    .portfolio-filters {
        gap: 0.5rem;
        margin-bottom: 2rem;
    }
    
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-placeholder {
        padding: 3rem 1rem;
    }
    
    .portfolio-icon {
        width: 80px;
        height: 80px;
    }
    
    .portfolio-text {
        font-size: 1.4rem;
    }
    
    .portfolio-subtext {
        font-size: 0.9rem;
    }
    
    .extension-card {
        max-width: 100%;
    }
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--radius-small);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(30, 30, 30, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 2rem;
    transition: var(--transition-fast);
    z-index: 10001;
}

.lightbox-close {
    top: 2rem;
    right: 2rem;
}

.lightbox-prev,
.lightbox-next {
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    line-height: 1;
}

.lightbox-prev {
    left: 2rem;
}

.lightbox-next {
    right: 2rem;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(30, 30, 30, 0.95);
    transform: scale(1.1);
}

/* Lightbox – mobilní optimalizace */
@media (max-width: 768px) {
    .lightbox-close,
    .lightbox-prev,
    .lightbox-next {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        font-size: 1.5rem;
    }
    
    .lightbox-close {
        top: calc(1rem + env(safe-area-inset-top, 0));
        right: calc(1rem + env(safe-area-inset-right, 0));
    }
    
    .lightbox-prev {
        left: 0.75rem;
    }
    
    .lightbox-next {
        right: 0.75rem;
    }
    
    .lightbox-content {
        max-width: 95%;
        padding: 1rem;
    }
    
    .lightbox-content img {
        max-height: 80vh;
    }
}

@media (max-width: 480px) {
    .lightbox-close,
    .lightbox-prev,
    .lightbox-next {
        width: 44px;
        height: 44px;
        font-size: 1.25rem;
    }
    
    .lightbox-close {
        top: calc(0.75rem + env(safe-area-inset-top, 0));
        right: calc(0.75rem + env(safe-area-inset-right, 0));
    }
    
    .lightbox-prev {
        left: 0.5rem;
    }
    
    .lightbox-next {
        right: 0.5rem;
    }
}

/* Hover efekty pouze na zařízeních s myší – na dotyku bez „stuck“ stavu */
@media (hover: none) {
    .social-card:active {
        transform: scale(0.98);
    }
    
    .app-card:hover,
    .extension-card:hover,
    .program-card:hover {
        transform: none;
    }
    
    .app-card:active,
    .extension-card:active,
    .program-card:active {
        transform: scale(0.98);
    }
    
    .stat-card:hover {
        transform: none;
    }
    
    .back-to-top:hover {
        transform: translateY(0);
    }
    
    .back-to-top.visible:hover {
        transform: translateY(-3px);
    }
}