:root {
    --bg: #f9f8f5;
    --card: #f3f1ed;
    --text: #2d2c28;
    --muted: #6e6a63;
    --accent: #8c6b50;
    --border: #ddd5ca;
    --radius-card: 14px;
    --radius-img: 20px;
    --radius-button: 10px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #161514;
        --card: #1d1c1b;
        --text: #ece7df;
        --muted: #a8a095;
        --accent: #c0aa8d;
        --border: #2d2a28;
    }
}

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

body {
    font-family: 'Manrope', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 1rem;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.navbar {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.navbar a {
    text-decoration: none;
    color: var(--muted);
    font-weight: 500;
    transition: color 0.2s;
}

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

.hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 3rem;
    flex-wrap: wrap;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

.hero-text p {
    font-size: 1rem;
    color: var(--text);
    max-width: 600px;
}

.profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 200px;
    gap: 0.5rem;
}

.profile-img {
    width: 180px;
    height: 180px;
    border-radius: var(--radius-img);
    object-fit: cover;
}

.profile-name {
    font-weight: 600;
    font-size: 1.25rem;
}

.profile-role,
.profile-location,
.profile-email {
    font-size: 0.9rem;
    color: var(--muted);
}

.section-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

.card-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 1rem 1.25rem;
    transition: transform 0.2s;
}

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

.card-title {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.card-meta {
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 0.5rem;
}

.card-description {
    font-size: 0.95rem;
    color: var(--text);
}

.card-link {
    margin-top: 0.5rem;
    display: inline-block;
    color: var(--accent);
    font-size: 0.9rem;
    text-decoration: none;
}

.blog-link {
    color: var(--accent);
    text-decoration: none;
}

.footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
}

.socials {
    display: flex;
    gap: 1rem;
}

.socials a {
    color: var(--muted);
    font-size: 1.25rem;
    transition: 0.2s;
}

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

.cv-button {
    padding: 0.5rem 1.2rem;
    border-radius: var(--radius-button);
    background-color: var(--accent);
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s;
}

.cv-button:hover {
    background-color: #a28160;
}

@media (max-width: 768px) {

    .container {
        gap: 3rem;
        padding: 2rem 1.25rem;
    }

    .hero {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .hero-text {
        flex: unset;
        width: 100%;
        max-width: 650px;
        margin: 0 auto;
        text-align: center;
    }

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

    .hero-text p {
        max-width: 100%;
        margin: 0 auto;
        text-align: center;
    }

    .profile {
        width: 100%;
        align-items: center;
        text-align: center;
    }

    .profile-img {
        width: 150px;
        height: 150px;
    }

    .section-title,
    .page-title {
        text-align: center;
        font-size: 1.75rem;
        width: 100%;
        display: block;
        margin-bottom: 1rem;
    }

    .page-description,
    .blog-link,
    section>p {
        text-align: center;
    }

    .card {
        text-align: center;
    }

    .navbar {
        display: none;
    }

    .footer {
        text-align: center;
        margin-top: 1rem;
    }
}

@media (max-width: 480px) {

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-text p {
        font-size: 0.95rem;
    }

    .navbar {
        font-size: 0.9rem;
        gap: 0.75rem;
    }

    .card {
        padding: 1rem;
    }
}

.page-title {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.page-description {
    max-width: 600px;
    color: var(--muted);
}