:root {
    /* Barvy */
    --bg: #09090b;
    --surface: #111113;
    --surface-border: rgba(255, 255, 255, 0.05);
    --primary: #8cc63f;
    --text-main: #ffffff;
    --text-muted: #8a8a93;
    --input-bg: #a3a3a3;
    
    /* Typografie */
    --font-heading: 'Instrument Serif', serif;
    --font-body: 'Inter Tight', sans-serif;
    
    /* Dynamický layout - chová se jako středový container s max-width 1280px */
    --pad-x: max(6vw, calc((100% - 1280px) / 2));

    
}

html {
    /* Pokud má tvoje <nav> padding 40px nahoře i dole a logo má 60px, 
       celková výška je cca 140px. Můžeš přidat trochu rezervy, např. 160px.
    */
    scroll-padding-top: 160px; 
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none !important;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg);
    color: var(--text-main);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* --- Vlastní Kurzor --- */
.cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 12px;
    height: 12px;
    background-color: var(--primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
                height 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
                background-color 0.3s ease;
    mix-blend-mode: difference;
}
.cursor.hovered {
    width: 40px;
    height: 40px;
    background-color: rgba(140, 198, 63, 0.3);
    backdrop-filter: blur(4px);
}

/* --- Navigace --- */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 40px var(--pad-x);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: linear-gradient(to bottom, rgba(9,9,11,1) 0%, rgba(9,9,11,0) 100%);
}

.nav-links { display: flex; gap: 40px; }
.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}
.nav-links a:hover { color: var(--text-main); }

/* --- Hero Sekce --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 var(--pad-x);
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('https://images.unsplash.com/photo-1522071820081-009f0129c71c?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: right center;
    opacity: 0.4;
    z-index: -2;
}
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(9,9,11,1) 40%, rgba(9,9,11,0) 100%);
    z-index: -1;
}

.hero-content {
    max-width: 700px;
    margin-top: 5vh;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 5rem;
    line-height: 1.05;
    margin-bottom: 40px;
    font-weight: 400;
    letter-spacing: -1px;
}
.hero h1 .highlight { color: var(--primary); font-style: italic; }

.btn {
    background-color: var(--primary);
    color: var(--bg);
    border: none;
    padding: 18px 40px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    border-radius: 6px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s;
    display: inline-block;
}
.btn:hover {
    transform: scale(1.05);
    background-color: #9cdb46;
}

/* --- Klienti --- */
.clients {
    padding: 60px var(--pad-x);
    display: flex;
    flex-direction: column;
    align-items: center;
    border-bottom: 1px solid var(--surface-border);
}
.clients p {
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.client-logos {
    display: flex;
    gap: 40px 80px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap; /* Zabrání přetečení na menších displejích */
}
.client-logos .client-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--primary);
    font-weight: 700;
    font-size: 1.1rem;
}
.client-logos i { font-size: 2.2rem; }

/* Styly pro nová SVG loga */
.client-logos .client-item .client-img {
    height: 45px; /* Výšku upravte podle potřeby */
    width: auto;
    display: block;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
}

/* Volitelný efekt při najetí myší pro oživení */
.client-logos .client-item:hover .client-img {
    transform: scale(1.05);
}

/* --- Karty Výhod --- */
.features {
    display: grid;
    /* minmax(0, 1fr) opravuje chybu a bezpečně drží grid v hranicích obrazovky */
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
    padding: 100px var(--pad-x);
}
.feature-card {
    background-color: var(--surface);
    padding: 45px 40px;
    border-radius: 12px;
    border: 1px solid var(--surface-border);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s;
}
.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(140, 198, 63, 0.3);
}
.feature-card i {
    color: var(--primary);
    font-size: 2.5rem;
    margin-bottom: 25px;
    display: inline-block;
}
.feature-card p {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 0.95rem;
    font-weight: 300;
}

/* --- Portfolio --- */
.portfolio {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
    padding: 50px var(--pad-x) 100px;
}
.port-item {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.port-img-wrapper {
    width: 100%;
    height: 450px;
    border-radius: 12px;
    overflow: hidden;
    background-color: var(--surface);
}
.port-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
}
.port-item:hover .port-img-wrapper img {
    transform: scale(1.05);
    filter: grayscale(40%);
}
.port-info {
    display: flex;
    align-items: center;
    gap: 15px;
}
.port-icon {
    background-color: var(--primary);
    color: var(--bg);
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    font-size: 1.6rem;
}
.port-info h3 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--primary);
    font-weight: 400;
}

/* --- Kontakt --- */
.contact {
    padding: 80px var(--pad-x) 120px;
    background-color: var(--bg);
}
.contact h2 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    margin-bottom: 5px;
    font-weight: 400;
    line-height: 1.1;
}
.contact h2 .highlight { color: var(--primary); font-style: italic; }

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr 1.5fr auto;
    gap: 20px;
    margin-top: 50px;
}
.contact-form input {
    background-color: var(--input-bg);
    border: none;
    padding: 20px 25px;
    border-radius: 6px;
    font-family: var(--font-body);
    color: #111;
    font-size: 1rem;
    font-weight: 500;
    outline: none;
    transition: background-color 0.3s;
    width: 100%; /* Zajišťuje, že input nepřeteče parenta */
}
.contact-form input::placeholder { color: #444; font-weight: 400; }
.contact-form input:focus { background-color: #b5b5b5; }

/* --- Patička --- */
footer {
    padding: 40px var(--pad-x);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--surface-border);
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 300;
}
.footer-left { display: flex; align-items: center; gap: 15px; }
.footer-left .highlight { color: var(--primary); font-weight: 500; }

/* --- Responzivita --- */
@media (max-width: 1024px) {
    .hero h1 { font-size: 3.5rem; }
    
    /* Dynamické skládání karet a portfolia do řádků */
    .features { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
    .portfolio { grid-template-columns: 1fr; }
    
    .contact-form { grid-template-columns: 1fr; }
    
    footer { flex-direction: column; gap: 20px; text-align: center; }
}

@media (max-width: 768px) {
    .nav-links { display: none; } /* Můžeš v budoucnu přidat hamburger menu */
    .hero h1 { font-size: 2.8rem; }
    .port-img-wrapper { height: 300px; }
    .contact h2 { font-size: 2.5rem; }
}
/* --- Podstránka Kontakt --- */
.contact-info-section {
    padding: 180px var(--pad-x) 100px;
    min-height: 100vh;
}

.contact-intro {
    max-width: 800px;
    margin-bottom: 70px;
}

.contact-intro h1 {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    margin-bottom: 25px;
    font-weight: 400;
    line-height: 1.05;
}

.contact-intro h1 .highlight {
    color: var(--primary);
    font-style: italic;
}

.contact-intro p {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--text-muted);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.contact-card {
    background-color: var(--surface);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--surface-border);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s;
}

.contact-card:hover {
    transform: translateY(-8px);
    border-color: rgba(140, 198, 63, 0.3);
}

.contact-card h3 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    margin-bottom: 25px;
    color: var(--text-main);
    font-weight: 400;
}

.contact-card p {
    color: var(--text-muted);
    margin-bottom: 12px;
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.95rem;
}

.contact-card p i {
    color: var(--primary);
    font-size: 1.3rem;
    margin-top: 2px; /* Drobné zarovnání ikony s textem */
}

.contact-card p strong {
    color: var(--text-main);
    font-weight: 500;
}

.contact-card .small-text {
    font-size: 0.8rem;
    margin-top: 20px;
    opacity: 0.6;
    display: block;
}
/* --- Podstránky Projektů --- */
.project-page-section {
    padding: 160px var(--pad-x) 100px;
    min-height: 100vh;
}

.project-header {
    max-width: 800px;
    margin-bottom: 60px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 20px;
    transition: color 0.3s;
}

.back-link:hover {
    color: var(--primary);
}

.project-header h1 {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    margin-bottom: 15px;
    font-weight: 400;
    line-height: 1.05;
}

.project-header h1 .highlight {
    color: var(--primary);
    font-style: italic;
}

.project-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.project-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.project-card {
    background-color: var(--surface);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--surface-border);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s;
}

.project-card:hover {
    transform: translateX(10px);
    border-color: rgba(140, 198, 63, 0.3);
}

.project-card h3 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 25px;
    color: var(--text-main);
    font-weight: 400;
}

.project-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.project-features li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.5;
}

.project-features li > i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-top: 2px;
}

.tech-icons {
    display: flex;
    gap: 8px;
    font-size: 1.5rem;
    margin-top: 2px;
}