:root {
    --bg-base: #09090b;
    --panel-bg: rgba(24, 24, 27, 0.7);
    --panel-border: rgba(255, 255, 255, 0.12);
    --text-main: #f4f4f5;
    --text-muted: #a1a1aa;
    --accent-blue: #3b82f6;
    --accent-red: #ef4444;
    --panel-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
}

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

body {
    margin: 0; padding: 0;
    background-color: var(--bg-base);
    background-image: 
        radial-gradient(circle at 15% 15%, rgba(59, 130, 246, 0.25), transparent 60%),
        radial-gradient(circle at 85% 85%, rgba(239, 68, 68, 0.2), transparent 60%);
    background-attachment: fixed;
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex; flex-direction: column;
    align-items: center; 
}

/* HORNÍ LIŠTA */
nav {
    width: 100%;
    background: rgba(15, 15, 18, 0.85);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--panel-border);
    display: flex; justify-content: center;
    position: sticky; top: 0; z-index: 100;
}
.nav-content {
    width: 100%; max-width: 1200px;
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 40px; box-sizing: border-box;
}

.nav-logo { font-size: 1.2rem; font-weight: 800; letter-spacing: 1px; color: var(--text-main); transition: opacity 0.2s ease; }
.nav-logo:hover { opacity: 0.8; }
.nav-right { display: flex; align-items: center; gap: 12px; }

.nav-btn {
    background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main); font-weight: 600; font-size: 0.9rem; padding: 8px 16px;
    border-radius: 8px; transition: all 0.2s ease;
}
.nav-btn:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.2); transform: translateY(-2px); }

.icon-btn {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-red));
    border: none; color: #ffffff; font-family: 'Inter', sans-serif; font-weight: 600;
    padding: 8px 16px; border-radius: 8px; cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease; font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}
.icon-btn:hover { transform: translateY(-2px); filter: brightness(1.15); }

/* --- HLAVNÍ KONTEJNER --- */
.container {
    width: 100%; 
    max-width: 900px; /* TROCHU ROZŠÍŘENO KVŮLI MŘÍŽCE PROJEKTŮ */
    padding: 60px 20px 40px 20px; 
    box-sizing: border-box;
    display: flex; flex-direction: column;
}

.hero-panel {
    background: var(--panel-bg); backdrop-filter: blur(16px); border: 1px solid var(--panel-border);
    border-radius: 24px; padding: 40px; text-align: center; box-shadow: var(--panel-shadow);
}
.hero-panel h1 { font-size: 3rem; margin: 0 0 15px 0; font-weight: 800; letter-spacing: -1px; }
.hero-panel p { font-size: 1.1rem; color: var(--text-muted); margin: 0; line-height: 1.5; }


/* --- NOVÉ: MŘÍŽKA PROJEKTŮ --- */
.projects-section {
    margin-top: 50px;
    width: 100%;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 25px;
    letter-spacing: -0.5px;
}

/* Tohle automaticky poskládá karty vedle sebe (nebo pod sebe, pokud není místo) */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* Skleněné karty pro jednotlivé projekty */
.project-card {
    background: rgba(24, 24, 27, 0.4);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--panel-border);
    border-radius: 16px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px); /* Karta po najetí kousek povyskočí */
    background: rgba(24, 24, 27, 0.8);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.4);
}

.pc-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pc-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
}

.pc-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* Odkaz v kartě projektu */
.pc-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-blue);
    transition: color 0.2s;
}

.project-card:hover .pc-link {
    color: var(--accent-red); /* Mění barvu z modré na červenou při najetí */
}


@media (max-width: 768px) {
    .nav-content { padding: 15px 20px; flex-direction: column; gap: 15px; }
    .hero-panel { padding: 30px 20px; }
    .hero-panel h1 { font-size: 2.2rem; }
}