:root {
    --bg: #ffffff;
    --text: #111111;
    --accent: #777777;
    --card-bg: #f9f9f9;
    --border: #eeeeee;
    --switch-bg: #eeeeee;
    --switch-handle: #ffffff;
}

body.dark-theme {
    --bg: #0a0a0a;
    --text: #f0f0f0;
    --accent: #888888;
    --card-bg: #151515;
    --border: #222222;
    --switch-bg: #222222;
    --switch-handle: #111111;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: "Inter", sans-serif;
    background-color: var(--bg);
    color: var(--text);
    margin: 0;
    line-height: 1.6;
    transition: background-color 0.3s ease;
}

/* --- NAVIGACE --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2.5rem 5%;
    position: absolute; /* Plave nad hero sekcí */
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.brand { 
    font-weight: 800; 
    letter-spacing: -1px; 
    font-size: 1.1rem; 
    text-transform: uppercase;
}

.nav-right { display: flex; align-items: center; gap: 35px; }

/* Retro Toggle */
#theme-toggle {
    background: var(--switch-bg);
    border: 1px solid var(--border);
    cursor: pointer;
    width: 46px;
    height: 24px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    padding: 2px;
    position: relative;
    transition: 0.3s;
}

.switch-handle {
    width: 18px;
    height: 18px;
    background: var(--switch-handle);
    border-radius: 50%;
    position: absolute;
    left: 3px;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.dark-theme .switch-handle { transform: translateX(20px); }

.nav-links a { text-decoration: none; color: var(--text); font-size: 0.85rem; font-weight: 600; margin-left: 20px; }
.contact-btn { border: 1px solid var(--text); padding: 8px 18px; border-radius: 2px; }

/* --- HERO (Full-screen) --- */
.hero { 
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 5%; 
    max-width: 1200px; 
    opacity: 0; 
    transform: translateY(20px); 
    transition: 0.8s; 
    position: relative;
}

.hero.visible { opacity: 1; transform: translateY(0); }

.hero h1 { 
    font-size: clamp(2.5rem, 8vw, 4.5rem); 
    line-height: 0.95; 
    font-weight: 900; 
    letter-spacing: -0.05em; 
    margin-bottom: 2.5rem;
    margin-top: -5vh;
}
.hero h1 span { color: var(--accent); font-weight: 800; }
.hero p { font-size: 1.25rem; max-width: 550px; color: var(--accent); font-weight: 400; }

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 5%;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    color: var(--accent);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-10px);}
    60% {transform: translateY(-5px);}
}

/* --- SPOLEČNÉ --- */
.section-title { 
    font-size: 0.75rem; 
    text-transform: uppercase; 
    letter-spacing: 0.3em; 
    font-weight: 800; 
    color: var(--accent); 
    margin-bottom: 60px;
}

/* --- O MNĚ --- */
.about-section { padding: 180px 5%; border-top: 1px solid var(--border); }
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 100px; opacity: 0; transition: 0.8s; }
.about-grid.visible { opacity: 1; }
.about-text h2 { font-size: 2.8rem; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 2rem; line-height: 1.1; }
.about-text p { font-size: 1.15rem; color: var(--accent); margin-bottom: 1.8rem; max-width: 600px; }
.trust-pills { display: flex; gap: 10px; margin-top: 35px; }
.trust-pills span { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; border: 1px solid var(--border); padding: 6px 14px; color: var(--accent); }
.about-image img { width: 100%; filter: grayscale(1); border: 1px solid var(--border); }

/* --- PORTFOLIO --- */
.portfolio { padding: 180px 5%; border-top: 1px solid var(--border); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 120px 60px; }
.project-card { opacity: 0; transform: translateY(20px); transition: 0.6s; }
.project-card.visible { opacity: 1; transform: translateY(0); }
.image-placeholder { background: var(--card-bg); border: 1px solid var(--border); aspect-ratio: 16/10; overflow: hidden; margin-bottom: 25px; }
.image-placeholder img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.5); transition: 0.6s cubic-bezier(0.2, 1, 0.3, 1); }
.project-card:hover img { filter: grayscale(0); transform: scale(1.05); }
.project-info h3 { font-size: 1.4rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 8px; }
.project-info p { font-size: 1rem; color: var(--accent); }

/* --- KONTAKT --- */
.contact-section { padding: 180px 5%; border-top: 1px solid var(--border); background: var(--card-bg); }
.contact-container { max-width: 550px; margin: 0 auto; text-align: center; }
.contact-form { margin-top: 60px; text-align: left; }
.form-group { margin-bottom: 25px; }
.contact-form input, .contact-form textarea { width: 100%; padding: 20px; background: var(--bg); border: 1px solid var(--border); color: var(--text); font-family: inherit; font-size: 1rem; border-radius: 0; outline: none; }
.submit-btn { width: 100%; padding: 22px; background: var(--text); color: var(--bg); border: none; font-weight: 800; text-transform: uppercase; cursor: pointer; letter-spacing: 0.2em; transition: opacity 0.3s; }

/* --- FOOTER --- */
footer { padding: 100px 5% 60px; text-align: center; border-top: 1px solid var(--border); }
.tax-info { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--accent); margin-bottom: 15px; }
.copyright { font-size: 0.7rem; color: var(--accent); opacity: 0.4; }

@media (max-width: 768px) {
    .about-grid { grid-template-columns: 1fr; gap: 60px; }
    .nav-links { display: none; }
    .hero { padding: 0 5%; }
    .about-section, .portfolio, .contact-section { padding: 120px 5%; }
}

/* --- SERVICES SECTION --- */
.services-section {
    padding: 160px 5%;
    border-top: 1px solid var(--border);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 60px;
}

.service-item {
    opacity: 0;
    transform: translateY(20px);
    transition: 0.8s ease;
}

.service-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-num {
    display: block;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 20px;
}

.service-item h3 {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 15px;
    text-transform: none;
}

.service-item p {
    font-size: 1rem;
    color: var(--accent);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .services-section { padding: 100px 5%; }
    .services-grid { gap: 40px; }
}

/* --- PRICING SECTION --- */
.pricing-section {
    padding: 160px 5%;
    border-top: 1px solid var(--border);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 80px;
}

.price-item h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 30px;
    letter-spacing: -0.02em;
}

.price-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.price-list li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 15px;
    color: var(--accent);
    font-size: 1rem;
}

/* Tečkovaná čára mezi textem a cenou */
.price-list li span:first-child::after {
    content: "";
    flex: 1;
    border-bottom: 1px dotted var(--border);
    margin: 0 10px;
}

.price-list li span:last-child {
    font-weight: 700;
    color: var(--text);
}

.price-item.individual p {
    font-size: 0.95rem;
    color: var(--accent);
    margin-bottom: 20px;
}

.hourly {
    display: inline-block;
    padding: 10px 20px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    font-weight: 800;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

@media (max-width: 768px) {
    .pricing-section { padding: 100px 5%; }
    .pricing-grid { gap: 50px; }
}

::selection {
    background: var(--text);
    color: var(--bg);
}

.faq-section {
    padding: 160px 5%;
    border-top: 1px solid var(--border);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 60px;
}

.faq-item h3 {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: -0.01em;
}

.faq-item p {
    font-size: 1rem;
    color: var(--accent);
}

/* Aby animace fungovaly, musí mít tyto prvky tento základ: */
.service-item, .price-item, .faq-item, .step {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

/* Když je skript "uvidí", přidá jim třídu .visible */
.service-item.visible, .price-item.visible, .faq-item.visible, .step.visible {
    opacity: 1;
    transform: translateY(0);
}

::selection {
    background: var(--text); /* Text se označí černě/bíle podle tématu */
    color: var(--bg);
}

/* Jemné ztmavnutí obrázků v portfoliu při hoveru, aby vynikl text */
.project-card:hover .image-placeholder img {
    filter: grayscale(0) brightness(0.8);
}

/* Styl pro nové Logo */
.brand { 
    font-weight: 900; /* Extra tučné */
    letter-spacing: -1.5px; /* Upnuté */
    font-size: 1.2rem; 
    text-transform: uppercase;
    display: flex;
    align-items: center;
}

.logo-dots {
    color: var(--accent);
    font-weight: 900;
    /* Inter má dvojtečky trochu výš, tímto je vycentrujeme opticky */
    position: relative;
    top: -0.02em; 
    margin: 0 2px;
    /* Tady je to kouzlo: Inter má kulaté tečky v základu, 
       ale můžeme jim přidat trochu "glow" v dark modu */
    text-shadow: 0 0 10px rgba(120, 120, 120, 0.2);
}

.logo-sub {
    font-weight: 400; /* Lehčí font pro "DESIGN" */
    font-size: 0.8rem;
    color: var(--accent);
    margin-left: 8px; /* Odstup od "ITS:ME" */
    letter-spacing: 1px;
}