:root {
    --primary-color: #0f172a;
    --secondary-color: #2563eb;
    --accent-color: #f59e0b;
    --text-color: #111827;
    --text-light: #6b7280;
    --background-color: #f6f7fb;
    --background-light: #eef2ff;
    --border-color: #e5e7eb;
    --shadow-light: 0 4px 14px rgba(15, 23, 42, 0.06);
    --shadow-medium: 0 12px 30px rgba(15, 23, 42, 0.12);
    --shadow-heavy: 0 18px 50px rgba(15, 23, 42, 0.18);
    --border-radius: 8px;
    --border-radius-large: 12px;
    --transition: all 0.3s ease;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    background: radial-gradient(circle at 10% 20%, rgba(79, 70, 229, 0.08), transparent 22%), radial-gradient(circle at 80% 0%, rgba(14, 165, 233, 0.08), transparent 24%), var(--background-color);
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.navbar {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-light);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.nav-logo h2 {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.5rem;
    margin-bottom: 2px;
    letter-spacing: 0.045em;
    display: block;
}

.nav-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.logo-subtitle {
    color: var(--text-light);
    font-size: 0.875rem;
    font-weight: 400;
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    padding: 8px 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--secondary-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 3px 0;
    transition: var(--transition);
}

.hero {
    min-height: calc(100vh - 40px);
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #ffffff 0%, #eef2ff 40%, #e0f2fe 100%);
    padding-top: 100px;
    position: relative;
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: var(--shadow-light);
    margin-bottom: 0.5rem;
}
.hero-badge.soft {
    background: rgba(37, 99, 235, 0.12);
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.15;
    margin: 1.25rem 0 1.5rem;
}
.hero-title-line {
    display: block;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 32px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: white;
    box-shadow: var(--shadow-light);
}

.btn-primary:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-secondary {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.btn-secondary:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
}

.hero-image {
    position: relative;
    display: grid;
    place-items: center;
}

.hero-photo {
    width: min(440px, 100%);
    aspect-ratio: 1;
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(37, 99, 235, 0.25), rgba(14, 165, 233, 0.25)),
        url('1.jpeg') center/cover no-repeat;
    box-shadow: var(--shadow-heavy);
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
}

.hero-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.35), transparent 40%);
}

.hero-orbit {
    position: absolute;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    border: 1px dashed rgba(37, 99, 235, 0.2);
    z-index: 1;
    animation: float 12s ease-in-out infinite;
}

.hero-list {
    list-style: none;
    margin-top: 1.75rem;
    display: grid;
    gap: 0.5rem;
}

.hero-list li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-color);
    font-weight: 500;
}

.hero-list li::before {
    content: '•';
    color: var(--accent-color);
    font-size: 1.25rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.about {
    padding: 100px 0;
    background-color: var(--background-color);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text h3 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.about-intro {
    font-size: 1.125rem;
    color: var(--text-color);
    margin-bottom: 2rem;
    line-height: 1.7;
    text-align: justify;
}

.about-body {
    font-size: 1.125rem;
    color: var(--text-color);
    line-height: 1.7;
    margin: 1.25rem 0 2rem;
    text-align: justify;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: stretch;
}

.services {
    padding: 100px 0;
    background-color: var(--background-light);
}

.blog {
    padding: 100px 0;
    background-color: var(--background-color);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: white;
    border-radius: var(--border-radius-large);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.blog-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-date {
    color: var(--text-light);
    font-size: 0.875rem;
    font-weight: 500;
}

.blog-badges {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.blog-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    background-color: rgba(42, 100, 255, 0.08);
    color: var(--secondary-color);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.blog-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0.5rem 0;
    line-height: 1.4;
}

.blog-card p {
    color: var(--text-color);
    margin-bottom: 1rem;
    line-height: 1.6;
    flex-grow: 1;
}

.read-more {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    align-self: flex-start;
}

.read-more:hover {
    color: var(--primary-color);
}

.contact {
    padding: 100px 0;
    background-color: var(--background-light);
}

.contact-content-simple {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
    text-align: center;
}
.contact-content-simple .contact-item {
    flex-direction: column;
    align-items: center;
}
.contact-content-simple .contact-item a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
}
.contact-content-simple .contact-item a:hover {
    text-decoration: underline;
}

.contact-item i {
    color: var(--secondary-color);
    font-size: 1.25rem;
    margin-top: 0.25rem;
}

.contact-item h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.contact-item p {
    color: var(--text-color);
    line-height: 1.5;
}

.footer {
    background-color: var(--primary-color);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
}

/* Blog Page Styles */
.blog-hero {
    background: linear-gradient(135deg, #eef2ff 0%, #e0f2fe 100%);
    padding: 140px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-hero h1 {
    font-size: 2.75rem;
    color: var(--primary-color);
    margin: 0.75rem 0 0.5rem;
}

.blog-hero p {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.blog-main {
    padding: 60px 0;
}

.blog-article {
    max-width: 800px;
    margin: 0 auto 3rem;
}

.blog-article h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.blog-article-body {
    line-height: 1.7;
}

.blog-article-body p {
    margin-bottom: 1rem;
}

.blog-category-section {
    margin-bottom: 4rem;
}

.blog-category-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: var(--transition);
        box-shadow: var(--shadow-medium);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-placeholder {
        width: 300px;
        height: 300px;
        font-size: 4rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .services-grid-dynamic,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 1024px) {
    .hero-container {
        gap: 2rem;
    }

    .hero-title {
        font-size: 3rem;
    }
}

/* --- REDESIGNED & IMPROVED STYLES --- */

/* Redesigned Expandable Sections */
.expandable-section {
    background-color: var(--background-light);
    border-radius: var(--border-radius-large);
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition);
}
.expandable-section:hover {
    box-shadow: var(--shadow-medium);
}
.expandable-section summary {
    padding: 1.5rem 2rem;
    font-weight: 700;
    font-size: 1.25rem;
    cursor: pointer;
    list-style: none;
    position: relative;
    display: flex;
    align-items: center;
    color: var(--primary-color);
    transition: background-color 0.3s ease;
}
.expandable-section summary:hover {
    /* Hover effect is handled by the parent .expandable-section:hover */
}
.expandable-section summary::-webkit-details-marker {
    display: none;
}
.expandable-section summary::after {
    content: 'Více informací';
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-left: auto;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    background-color: white;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}
.expandable-section summary:hover::after {
    background-color: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}
.expandable-section[open] > summary {
    /* No background color change needed when open */
}
.expandable-section[open] > summary::after {
    content: 'Skrýt informace';
    background-color: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}
.expandable-section .details-content {
    padding: 2rem;
    border-top: 1px solid var(--border-color);
    margin: 0;
    background-color: white;
}
.details-content p {
    margin-bottom: 1rem;
}
.columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}
.columns > div {
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: var(--border-radius);
    border-left: 3px solid var(--secondary-color);
}
.columns ul {
    list-style-position: outside;
    padding-left: 1.2rem;
}
.quote-style {
    font-style: italic;
    color: var(--text-light);
    border-left: 4px solid var(--secondary-color);
    padding-left: 1rem;
    margin: 2rem 0;
}
.quote-style cite {
    display: block;
    margin-top: 0.5rem;
    font-weight: 600;
}

/* Improved Services Section */
.services-grid-dynamic {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}
.service-card-dynamic {
    background: white;
    border-radius: var(--border-radius-large);
    padding: 2rem;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}
.service-card-dynamic:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    border-color: var(--secondary-color);
}
.service-card-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.service-card-header img {
    display: block;
}
.service-card-dynamic h3 {
    display: flex;
    align-items: center;
    min-height: 50px;
}
.service-card-icon {
    font-size: 1.75rem;
    color: var(--secondary-color);
    min-width: 32px;
    text-align: center;
}
.service-card-dynamic h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}
.service-card-dynamic ul {
    list-style: none;
    padding-left: 0;
    flex-grow: 1;
    min-height: 150px;
}
.service-card-dynamic li {
    padding-left: 1.75rem;
    position: relative;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}
.service-card-dynamic li::before {
    content: '\f00c'; /* Font Awesome check */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--secondary-color);
}

/* Image Placeholder in About Section */
.profile-card {
    width: 100%;
    max-width: 360px;
    background: linear-gradient(145deg, #ffffff, #f2f4ff);
    border-radius: 18px;
    padding: 1.5rem;
    box-shadow: var(--shadow-medium);
    border: 1px solid rgba(255, 255, 255, 0.6);
    display: grid;
    gap: 1rem;
}

.profile-photo {
    width: 100%;
    aspect-ratio: 4 / 5;
    border-radius: 14px;
    background:
        linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(14, 165, 233, 0.2)),
        url('2.jpeg') center/cover no-repeat;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
}

.profile-note {
    font-size: 0.95rem;
    color: var(--text-color);
    background: rgba(37, 99, 235, 0.08);
    border-radius: 12px;
    padding: 0.9rem 1rem;
    line-height: 1.5;
}

.profile-author {
    display: block;
    margin-top: 0.25rem;
    font-weight: 700;
    color: var(--secondary-color);
}
