 :root {
    --bg-dark: #111827;
    --bg-light: #1F2937;
    --text-primary: #F9FAFB;
    --text-secondary: #9CA3AF;
    --accent: #818CF8;
    --accent-hover: #6366F1;
    --font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    margin: 0;
    padding: 0;
    line-height: 1.7;
}

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

/* --- Header --- */
header {
    background: rgba(17, 24, 39, 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--bg-light);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
}

nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

nav ul li {
    display: inline-block;
    margin-left: 30px;
}

nav a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

nav ul li:first-child {
    margin-left: 0;
}

nav a:hover {
    color: var(--accent);
}

/* --- Hero Section --- */
#hero {
    text-align: center;
    padding: 120px 0;
    background: linear-gradient(rgba(17, 24, 39, 0.9), rgba(17, 24, 39, 0.9)), url('https://images.unsplash.com/photo-1461749280684-dccba630e2f6?q=80&w=2070') center/cover no-repeat;
}

#hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

#hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

.btn {
    display: inline-block;
    background: var(--accent);
    color: var(--text-primary);
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn:hover {
    background: var(--accent-hover);
    transform: translateY(-3px);
}

/* --- Sections --- */
section {
    padding: 80px 0;
}

main > section:nth-of-type(even) {
    background-color: var(--bg-light);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 60px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Services & Portfolio Grid --- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid transparent;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

main > section:nth-of-type(even) .card {
    background-color: var(--bg-dark);
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.card h3 {
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--accent);
}

.card img {
    width: 100%;
    aspect-ratio: 400 / 250;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.portfolio-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

/* --- About Section --- */
.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    align-items: center;
    gap: 50px;
}

.about-image img {
    width: 100%;
    max-width: 280px;
    border-radius: 50%;
    border: 5px solid var(--bg-dark);
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.about-text h3 {
    font-size: 1.8rem;
    color: var(--accent);
    margin-top: 0;
    margin-bottom: 1rem;
    font-weight: 600;
}

/* --- Contact Details --- */
.contact-details {
    display: flex;
    justify-content: center;
    gap: 60px;
    text-align: center;
    margin-top: 40px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-item i {
    font-size: 2rem;
    color: var(--accent);
}

/* Specifický styl pro inline ikonu '@', aby odpovídala textu */
.contact-item .at-inline {
    font-size: 1em; /* Velikost shodná s okolním textem */
    color: inherit; /* Přebírá barvu textu */
    vertical-align: baseline; /* Zarovnání na účaří textu */
    /* Záporný margin kompenzuje vnitřní mezeru samotné ikony */
    margin: 0px;
}

.contact-item a {
    font-size: 1.2rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--accent);
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 40px 0;
    margin-top: 60px;
    border-top: 1px solid var(--bg-light);
    color: var(--text-secondary);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    nav ul {
        margin-top: 1rem;
    }
    nav ul li {
        margin: 0 10px;
    }
    #hero h1 {
        font-size: 2.5rem;
    }
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .about-image {
        margin: 0 auto 30px auto;
    }
    .about-text h3 {
        font-size: 1.5rem;
    }
    .contact-details {
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }
}