/* style.css */
:root {
    color-scheme: dark;
    --bg: #000000;
    --text: #f5f7fb;
    --muted: #8b8b8b;
    --border: rgba(255, 69, 0, 0.12);
    --accent: #ff4500;
    --accent-hover: #e03e00;
    --glow: rgba(255, 69, 0, 0.35);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #000000;
    color: var(--text);
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: 
        radial-gradient(circle at 30% 20%, #1a0502 0%, transparent 40%),
        radial-gradient(circle at 70% 80%, #290803 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, #0d0201 0%, #000000 100%);
    z-index: -2;
    pointer-events: none;
}

.nether-bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 50% 120%, #bd2a08 0%, transparent 60%);
    opacity: 0.18;
    z-index: -1;
    pointer-events: none;
    animation: netherGlow 8s ease-in-out infinite alternate;
}

/* Kontejner pro částice */
.nether-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

/* Vrstva 1: Větší oranžové čtverce (6px) padající doleva dolů */
.nether-particles::before {
    content: '';
    position: absolute;
    top: -100vh;
    left: -10vw;
    width: 120vw;
    height: 200vh;
    background-color: rgba(255, 100, 0, 0.4);
    /* SVG maska, která vyřízne čisté izolované čtverce bez čar */
    -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://w3.org" width="300" height="300"><rect x="20" y="50" width="6" height="6" fill="white"/><rect x="180" y="140" width="6" height="6" fill="white"/><rect x="260" y="270" width="6" height="6" fill="white"/></svg>');
    mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://w3.org" width="300" height="300"><rect x="20" y="50" width="6" height="6" fill="white"/><rect x="180" y="140" width="6" height="6" fill="white"/><rect x="260" y="270" width="6" height="6" fill="white"/></svg>');
    background-size: 300px 300px;
    animation: netherStormOne 14s linear infinite;
}

/* Vrstva 2: Menší šedé čtverce (4px) padající doprava dolů */
.nether-particles::after {
    content: '';
    position: absolute;
    top: -100vh;
    left: -10vw;
    width: 120vw;
    height: 200vh;
    background-color: rgba(200, 200, 200, 0.25);
    /* SVG maska pro menší izolované čtverce */
    -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://w3.org" width="250" height="250"><rect x="90" y="30" width="4" height="4" fill="white"/><rect x="40" y="180" width="4" height="4" fill="white"/><rect x="200" y="120" width="4" height="4" fill="white"/></svg>');
    mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://w3.org" width="250" height="250"><rect x="90" y="30" width="4" height="4" fill="white"/><rect x="40" y="180" width="4" height="4" fill="white"/><rect x="200" y="120" width="4" height="4" fill="white"/></svg>');
    background-size: 250px 250px;
    animation: netherStormTwo 22s linear infinite;
}

@keyframes netherGlow {
    0% {
        opacity: 0.14;
        transform: scale(1);
    }
    100% {
        opacity: 0.26;
        transform: scale(1.1) translateY(-10px);
    }
}

@keyframes netherStormOne {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(-300px, 300px);
    }
}

@keyframes netherStormTwo {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(250px, 250px);
    }
}

.page-shell {
    width: min(1120px, 100%);
    margin: 0 auto;
    padding: 48px 24px 0;
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.hero {
    display: flex;
    flex-direction: column;
    text-align: center;
    flex: 1;
}

.brand-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    width: 100%;
}

.brand-banner {
    max-width: 500px;
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 25px rgba(255, 69, 0, 0.25));
}

.hero-text {
    max-width: 700px;
    margin: auto auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.status-badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(255, 69, 0, 0.04);
    border: 1px solid rgba(255, 69, 0, 0.25);
    color: #ff6324;
    border-radius: 99px;
    font-size: 0.85rem;
    align-self: center;
    box-shadow: 0 0 16px rgba(255, 69, 0, 0.15);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 24px;
    backdrop-filter: blur(4px);
}

.lead-text {
    color: var(--muted);
    font-size: 1.2rem;
    line-height: 1.6;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
    width: 100%;
    margin: 0 auto;
}

.project-card {
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(13, 4, 2, 0.85), rgba(5, 1, 0, 0.95));
    backdrop-filter: blur(6px);
    text-align: left;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.75), inset 0 0 20px rgba(255, 69, 0, 0.02);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.project-card h2 {
    margin: 0 0 12px;
    font-size: 1.35rem;
    font-weight: 600;
    color: #ffaa80;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.project-card p {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.navigation-action {
    text-align: center;
    margin: auto auto 32px;
}

.btn-back {
    display: inline-block;
    padding: 12px 24px;
    background: rgba(0, 0, 0, 0.4);
    color: var(--text);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid rgba(255, 69, 0, 0.2);
    backdrop-filter: blur(4px);
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
}

.btn-back:hover {
    background: rgba(255, 69, 0, 0.05);
    border-color: rgba(255, 69, 0, 0.4);
    box-shadow: 0 0 14px rgba(255, 69, 0, 0.15);
}

.btn-back:active {
    transform: scale(0.98);
}

.site-footer {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    border-top: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.9);
    padding: 24px 24px 32px;
    text-align: center;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    line-height: 1.8;
    color: var(--muted);
}

.mojang-disclaimer {
    color: rgba(255, 69, 0, 0.2);
    margin: 4px 0 0;
}

@media (max-width: 600px) {
    .page-shell {
        padding-top: 32px;
    }
    .brand-header {
        margin-bottom: 24px;
    }
    .brand-banner {
        max-width: 100%;
        padding: 0 16px;
    }
    .status-badge {
        margin-bottom: 32px;
    }
    .hero-text {
        margin: 0 auto 32px;
        text-align: center;
    }
    .lead-text {
        text-align: center;
    }
    .projects-grid {
        gap: 24px;
    }
    .project-card {
        text-align: center;
    }
    .project-card p {
        text-align: center;
    }
    .navigation-action {
        margin: 40px auto 40px;
    }
}
