:root {
    --bg-dark: #020308;
    --text-light: #e0e6ed;
    --accent: #5e81ac;
    --nav-bg: rgba(5, 7, 15, 0.85);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    color: var(--text-light);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
    scroll-behavior: smooth;
    background: radial-gradient(ellipse at bottom, #09122b 0%, #020308 100%);
}

/* --- Fixní plátno pro hvězdy --- */
#space-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none; /* Myš projíždí skrz plátno do stránek */
}

/* --- Plynulá Navigační lišta --- */
.sticky-nav {
    position: fixed;
    top: -80px;
    left: 0;
    width: 100%;
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    z-index: 1000;
    /* Plynulý přechod (transition) jako aplikace */
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.sticky-nav.visible {
    top: 0;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    letter-spacing: 1px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent);
}

/* --- Hero Sekce --- */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-content {
    text-align: center;
    animation: fadeIn 2s ease-out;
}

.main-title {
    font-size: 5rem;
    font-weight: bold;
    letter-spacing: 4px;
    color: #ffffff;
    text-shadow: 0 0 25px rgba(255, 255, 255, 0.4);
    margin-bottom: 0.5rem;
}

.slogan {
    font-size: 1.5rem;
    font-style: italic;
    color: #899bb3;
    letter-spacing: 2px;
}

@keyframes fadeIn {
    0% { opacity: 0; transform: scale(0.95); }
    100% { opacity: 1; transform: scale(1); }
}

/* --- Sekce obsahu --- */
.portfolio-content {
    padding-bottom: 4rem;
}

.section {
    padding: 6rem 5% 2rem 5%;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
    color: #ffffff;
    letter-spacing: 1px;
}

/* --- Tým a projekty (Vyjížděcí animace zleva) --- */
.team-grid, .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    max-width: 1100px;
    margin: 0 auto;
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-100px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide-in-left.show {
    opacity: 1;
    transform: translateX(0);
}

.team-card, .project-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2.5rem;
    backdrop-filter: blur(5px);
}

.team-card h3, .project-card h3 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 0.3rem;
}

.role {
    color: var(--accent);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.team-card p, .project-card p {
    line-height: 1.7;
    color: #94a3b8;
    margin-bottom: 2rem;
}

.projects-list strong {
    color: #e2e8f0;
    display: block;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.projects-list ul {
    list-style: none;
}

.projects-list li {
    color: #94a3b8;
    margin-bottom: 0.6rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.4;
}

.projects-list li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 1.2rem;
    top: -2px;
}

.project-link {
    display: inline-block;
    color: var(--accent);
    text-decoration: none;
    font-weight: bold;
    margin-top: 1rem;
    transition: color 0.3s;
}

.project-link:hover {
    color: #fff;
}

/* --- Formulář Kontakt --- */
.contact-container {
    max-width: 700px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.02);
    padding: 3rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.double-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

label {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-left: 0.5rem;
}

input, select, textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.submit-btn {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    margin-top: 1rem;
}

.submit-btn:hover {
    background: #4a6a8c;
    transform: translateY(-2px);
}

@media (max-width: 600px) {
    .double-col {
        grid-template-columns: 1fr;
    }
    .nav-links {
        display: none;
    }
}