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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f7fa;
}

header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    color: white;
    font-size: 1.8rem;
    font-weight: bold;
    text-decoration: none;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 0.5rem;
}

nav a:hover {
    color: #64b5f6;
    border-bottom: 2px solid #64b5f6;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

main {
    padding: 3rem 0;
}

.hero {
    background: linear-gradient(135deg, #2a5298 0%, #1e3c72 100%);
    color: white;
    padding: 4rem 1rem;
    text-align: center;
    margin-bottom: 2rem;
    border-radius: 8px;
}

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

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    background-color: #64b5f6;
    color: white;
    padding: 0.8rem 2rem;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background-color: #42a5f5;
}

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

.card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.card h2 {
    color: #1e3c72;
    margin-bottom: 1rem;
}

.card p {
    color: #666;
    margin-bottom: 1rem;
}

#about {
    background: white;
    border-left: 4px solid #2a5298;
    padding: 3rem 2rem;
    margin: 2rem 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#about h2 {
    color: #1e3c72;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

#about p {
    color: #555;
    line-height: 1.8;
    font-size: 1.05rem;
}

footer {
    background-color: #1e3c72;
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
}

footer p {
    margin-bottom: 0.5rem;
}

footer a {
    color: #64b5f6;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #42a5f5;
    text-decoration: underline;
}

/* Styly pro podstránku projektů a nástrojů */
.projects-section h2,
.tools-section h2 {
    color: #1e3c72;
    font-size: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 4px solid #2a5298;
    display: inline-block;
}

.links-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.link-item {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid #2a5298;
}

.link-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.link-item a {
    color: #2a5298;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.link-item a:hover {
    color: #64b5f6;
}

.link-item p {
    color: #666;
    margin-top: 0.8rem;
    line-height: 1.6;
}

/* Responzivní design */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        gap: 1rem;
    }

    nav ul {
        gap: 1rem;
        justify-content: center;
    }

    nav a {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .content {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .menu-toggle {
        display: block;
    }

    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #1e3c72;
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
    }

    nav ul.active {
        display: flex;
    }

    nav a {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .hero h1 {
        font-size: 1.5rem;
    }
}

/* Styly pro kontaktní formulář */
.contact-container {
    display: block !important;
    max-width: 600px;
    padding: 2rem 1rem;
}

.contact-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #2a5298;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #1e3c72;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2a5298;
    box-shadow: 0 0 0 3px rgba(42, 82, 152, 0.1);
}

.btn-submit {
    width: 100%;
    background-color: #2a5298;
    padding: 1rem 2rem;
}

.btn-submit:hover {
    background-color: #1e3c72;
}

.contact-info {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.contact-info h2 {
    color: #1e3c72;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #2a5298;
}

.contact-info p {
    color: #555;
    margin-bottom: 1rem;
    line-height: 1.8;
}

.contact-info a {
    color: #2a5298;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #64b5f6;
    text-decoration: underline;
}

.email-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    margin: 1rem 0;
    display: block;
}
