/* Noryela — layout jako Roya reference, bez scene-overlay mezivrstvy */

html.page-home-html {
    background: #000;
}

body.page-home {
    background: transparent !important;
    background-image: none !important;
}

.page-home {
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-white: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.6);
    --accent-cyan: #64ffda;

    background: transparent !important;
    color: var(--text-white);
    font-family: "Inter", system-ui, sans-serif;
    overflow: hidden;
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
}

/* Aurora canvas — fixní pozadí (jako reference) */
#aurora-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -10;
    display: block;
    pointer-events: none;
}

#aurora-canvas[hidden] {
    display: none;
}

/* CSS fallback aurora */
.aurora-fallback {
    position: fixed;
    inset: 0;
    z-index: -9;
    background: #000;
    overflow: hidden;
    pointer-events: none;
}

.aurora-fallback[hidden] {
    display: none;
}

.aurora-stripe {
    position: absolute;
    left: -50%;
    width: 200%;
    filter: blur(80px);
    mix-blend-mode: screen;
}

.stripe-1 {
    top: 10%;
    height: 25vh;
    background: linear-gradient(to bottom, transparent, rgba(100, 255, 218, 0.4), transparent);
    animation: drift1 20s ease-in-out infinite alternate;
}

.stripe-2 {
    top: 40%;
    height: 35vh;
    background: linear-gradient(to bottom, transparent, rgba(0, 242, 254, 0.3), transparent);
    animation: drift2 28s ease-in-out infinite alternate-reverse;
}

.stripe-3 {
    bottom: -10%;
    height: 30vh;
    background: linear-gradient(to bottom, transparent, rgba(138, 43, 226, 0.25), transparent);
    animation: drift3 35s ease-in-out infinite alternate;
}

@keyframes drift1 {
    0% { transform: translateY(0) rotate(-15deg); opacity: 0.2; }
    50% { opacity: 0.6; }
    100% { transform: translateY(15vh) rotate(-10deg); opacity: 0.1; }
}

@keyframes drift2 {
    0% { transform: translateY(10vh) rotate(-20deg); opacity: 0.1; }
    50% { opacity: 0.5; }
    100% { transform: translateY(-10vh) rotate(-25deg); opacity: 0.2; }
}

@keyframes drift3 {
    0% { transform: translateY(0) rotate(-10deg); opacity: 0.3; }
    50% { opacity: 0.1; }
    100% { transform: translateY(-20vh) rotate(-5deg); opacity: 0.5; }
}

/* ── Kurzor — klasický pointer na interaktivních prvcích ── */
.page-home a,
.page-home button,
.page-home .btn-aurora,
.page-home .project-soft {
    cursor: pointer;
}

/* ── Nav (reference) ── */
.home-nav {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5vw;
    z-index: 100;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

.home-footer__brand {
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.home-logo {
    font-family: "Inter", system-ui, sans-serif;
    font-weight: 900;
    font-size: 1.15rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
    text-decoration: none;
    opacity: 1;
}

.home-logo:hover,
.home-logo:focus,
.home-logo:focus-visible {
    color: #fff;
    opacity: 1;
}

.home-logo span {
    color: #64ffda;
    text-shadow: 0 0 14px rgba(100, 255, 218, 0.55);
}

.home-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.home-nav a {
    color: var(--text-white);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.home-nav a:hover {
    opacity: 1;
    color: var(--accent-cyan);
}

@keyframes floatUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-in {
    opacity: 0;
    animation: floatUp 1s ease-out forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

/* Přepis globálního style.css — hero/main nesmí mít box ani padding */
body.page-home main.home-main {
    padding: 0 !important;
}

body.page-home .hero {
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* Obsah — průhledný, scrolluje přímo nad aurorou (žádná mezivrstva) */
.home-main {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: none;
    padding: 0;
    margin: 0;
    background: transparent !important;
}

.hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 10vw;
    position: relative;
    z-index: 2;
    background: transparent;
}

.hero-overline {
    color: var(--accent-cyan);
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: block;
    font-size: 0.72rem;
}

.hero h1 {
    font-size: clamp(4rem, 10vw, 8rem);
    font-weight: 800;
    line-height: 1.12;
    margin: 0 0 2rem;
    padding-bottom: 0.12em;
    background: linear-gradient(to bottom right, #ffffff, #999999);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    overflow: visible;
}

/* Velké nadpisy — oprava ořezu Y u gradient textu */
.display-title {
    font-weight: 800;
    line-height: 1.12;
    padding-bottom: 0.12em;
    overflow: visible;
    background: linear-gradient(to bottom right, #ffffff, #999999);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.display-title span {
    -webkit-text-fill-color: var(--accent-cyan);
    background: none;
}

.display-title--brand {
    letter-spacing: 3px;
    text-transform: uppercase;
    background: none;
    -webkit-text-fill-color: #ffffff;
    color: #ffffff;
}

.display-title--brand span {
    -webkit-text-fill-color: var(--accent-cyan);
    text-shadow: 0 0 14px rgba(100, 255, 218, 0.55);
}

.hero h1 span {
    -webkit-text-fill-color: var(--accent-cyan);
    background: none;
}

.hero p {
    font-size: clamp(1.05rem, 2.5vw, 1.3rem);
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 0 2.5rem;
    font-weight: 300;
    line-height: 1.75;
}

.btn-aurora {
    padding: 1rem 2.5rem;
    background: rgba(100, 255, 218, 0.05);
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan);
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    z-index: 2;
}

.btn-aurora:hover {
    background: var(--accent-cyan);
    color: #000;
    box-shadow: 0 0 30px rgba(100, 255, 218, 0.4);
}

.content-section {
    padding: 5rem 10vw 10rem;
    position: relative;
    z-index: 2;
    background: transparent;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: clamp(2rem, 5vw, 4rem);
    margin-bottom: 4rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.glass-card h2 {
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 700;
    margin: 0 0 1.5rem;
    line-height: 1.15;
}

.glass-card p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin: 0;
    font-weight: 300;
}

body.page-home.page-main {
    overflow-x: hidden;
    overflow-y: auto;
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
}

body.page-home.page-main .site-shell {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
}

body.page-home.page-main .home-footer--flow {
    position: static;
    flex-shrink: 0;
    margin-top: auto;
    border-top: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

body.page-home.page-welcome {
    overflow: hidden;
    height: 100vh;
    height: 100dvh;
}

body.page-home.page-welcome .site-shell {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

body.page-home.page-welcome .home-main {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

body.page-home.page-welcome .home-footer {
    position: static;
    flex-shrink: 0;
    border-top: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1rem 10vw;
}

/* ── Split layout — welcome ── */
.home-stage {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 5.5rem 10vw 2rem;
    position: relative;
    z-index: 2;
}

body.page-home.page-welcome .home-stage {
    min-height: calc(100dvh - 5rem);
}

.home-split {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.home-split-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.home-split-left .display-title {
    font-size: clamp(3rem, 8vw, 6.5rem);
    margin: 0 0 1.5rem;
}

.home-split-left .display-title:not(.display-title--brand) {
    margin: 0 0 1.5rem;
}

.home-split-left .display-title--brand {
    margin: 0 0 1.5rem;
}

.home-split-left .display-title span {
    -webkit-text-fill-color: var(--accent-cyan);
    background: none;
}

.split-title span {
    -webkit-text-fill-color: var(--accent-cyan);
    background: none;
}

.hero-motto {
    font-size: clamp(1rem, 2.2vw, 1.3rem);
    color: rgba(255, 255, 255, 0.82);
    max-width: 28rem;
    margin: 0;
    font-weight: 300;
    line-height: 1.75;
}

.home-split-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: right;
    align-items: flex-end;
}

.hero-overline--right {
    text-align: right;
    width: 100%;
}

.split-title {
    font-size: clamp(3rem, 8vw, 6.5rem);
    margin: 0 0 1.25rem;
    width: 100%;
    background-image: linear-gradient(to bottom left, #ffffff, #999999);
}

.project-stack {
    width: 100%;
    max-width: 22rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.home-stage-cta {
    position: relative;
    z-index: 5;
    text-align: center;
    padding: clamp(1.5rem, 3vw, 2rem) 0 0.5rem;
    flex-shrink: 0;
}

.project-soft {
    background: var(--glass-bg);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.1rem 1.25rem;
    text-align: left;
    width: 100%;
    transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
}

.project-soft:hover {
    border-color: rgba(100, 255, 218, 0.25);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    transform: translateY(-3px);
}

.project-soft-top {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.project-soft-badge {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(100, 255, 218, 0.08);
    border: 1px solid rgba(100, 255, 218, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-soft-badge img {
    width: 70%;
    height: 70%;
    object-fit: contain;
}

.project-soft-badge span {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--accent-cyan);
}

.project-soft-badge--violet {
    background: rgba(138, 43, 226, 0.1);
    border-color: rgba(179, 136, 255, 0.3);
}

.project-soft-badge--violet span {
    color: #b388ff;
}

.project-soft-top h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
}

.project-soft-meta h3 {
    margin: 0 0 0.25rem;
    font-size: 1.05rem;
    font-weight: 700;
}

.project-soft-label {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent-cyan);
    opacity: 0.85;
}

.project-soft-detail {
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--text-muted);
    font-weight: 300;
    margin: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.3s ease, margin 0.3s ease;
}

.project-soft:hover .project-soft-detail,
.project-soft:focus-within .project-soft-detail {
    max-height: 3rem;
    opacity: 1;
    margin-top: 0.65rem;
}

/* ── Homepage (/) — story + dovednosti ── */
.hero--story {
    min-height: auto;
    padding: 7rem 10vw 2rem;
    justify-content: flex-end;
}

.hero--story .display-title {
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    margin-bottom: 1rem;
}

.home-flow {
    padding: 0 10vw 5rem;
    position: relative;
    z-index: 2;
}

.flow-section {
    margin-bottom: clamp(3rem, 8vw, 4rem);
}

.flow-section .hero-overline {
    margin-bottom: 0.75rem;
}

.flow-title {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    margin: 0 0 1.75rem;
    line-height: 1.15;
}

.story-block {
    background: var(--glass-bg);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: clamp(1.75rem, 4vw, 2.5rem);
}

.story-block p {
    margin: 0;
    font-size: clamp(1rem, 2.2vw, 1.15rem);
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 300;
}

.skills-soft {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.skills-soft-group {
    background: var(--glass-bg);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.5rem 1.75rem;
}

.skills-soft-group h3 {
    margin: 0 0 0.5rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--accent-cyan);
}

.skills-soft-group p {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.65;
    color: var(--text-muted);
    font-weight: 300;
}

.flow-section--cta {
    text-align: center;
    padding-top: 0.5rem;
}

/* ── Kontakt ── */
.contact-page {
    min-height: calc(100dvh - 8rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 10vw 4rem;
    position: relative;
    z-index: 2;
}

.contact-title {
    font-size: clamp(2.5rem, 7vw, 4rem);
    margin-bottom: 1rem;
}

.contact-lead {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 300;
    margin: 0 0 2.5rem;
    max-width: 22rem;
    line-height: 1.7;
}

.contact-email {
    font-size: clamp(1.35rem, 4vw, 2.25rem);
    font-weight: 600;
    text-decoration: none;
    background: linear-gradient(90deg, #ffffff, var(--accent-cyan), #b388ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.5px;
    transition: opacity 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}

.contact-email:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

.contact-back {
    margin-top: 2.5rem;
    font-size: 0.9rem;
    padding: 0.85rem 2.25rem;
}

.home-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 10vw 2.5rem;
    background: transparent;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.home-footer__brand {
    color: var(--text-white);
}

.home-footer__domain {
    font-size: 0.82rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.home-footer__brand span {
    color: var(--accent-cyan);
    text-shadow: 0 0 14px rgba(100, 255, 218, 0.55);
}

@media (max-width: 768px) {
    .hero {
        padding: 0 5vw;
        padding-top: 5rem;
    }

    .home-nav ul {
        display: none;
    }

    .glass-card {
        padding: 2rem;
        margin-bottom: 2rem;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    .content-section {
        padding: 3rem 5vw 6rem;
    }

    .home-stage {
        padding-left: 5vw;
        padding-right: 5vw;
    }

    .home-split {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .home-split-right {
        text-align: left;
        align-items: flex-start;
    }

    .hero-overline--right {
        text-align: left;
    }

    .split-title {
        text-align: left;
        margin-bottom: 1.5rem;
    }

    .project-stack {
        max-width: none;
    }

    .project-soft-detail {
        max-height: none;
        opacity: 0.75;
        margin-top: 0.5rem;
    }

    .hero--story {
        padding-top: 5.5rem;
    }

    .home-flow {
        padding-left: 5vw;
        padding-right: 5vw;
    }

    .skills-soft {
        grid-template-columns: 1fr;
    }

    .home-footer {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .aurora-stripe {
        animation: none;
        opacity: 0.25;
    }

    .animate-in {
        opacity: 1;
        animation: none;
    }
}
