*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    background-color: #f5f5f9;
    color: #111827;
    font-family: "Roboto", sans-serif;
    margin: 0;
    overflow-x: hidden;
}

p,
h1,
h2,
h3,
h4,
h5,
h6,
button,
a {
    font-family: "Roboto", sans-serif;
}

/* Header / Navigation */
.nav-bar {
    background-color: #1C539F;
    padding: 14px 28px;
    width: 100%;
}

.nav-content {
    align-items: center;
    display: flex;
    gap: 24px;
    justify-content: flex-start;
    margin: 0 auto;
    width: 100%;
}

.nav-logo {
    align-items: center;
    display: flex;
    flex-shrink: 0;
    justify-content: center;
    text-decoration: none;
}

.nav-logo img {
    display: block;
    max-height: 72px;
    object-fit: contain;
    width: 260px;
}

.nav-content nav {
    display: flex;
    gap: 18px;
}

.nav-content nav a {
    color: white;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
}

.nav-content nav a:hover {
    text-decoration: underline;
}

.header-switch {
    background: white;
    border-radius: 999px;
    color: #1C539F !important;
    flex-shrink: 0;
    font-size: 18px;
    font-weight: 700;
    margin-left: auto;
    margin-right: 18px;
    max-width: fit-content;
    padding: 12px 20px;
    text-decoration: none;
    white-space: nowrap;
}

.header-switch:hover {
    background: #f5f5f9;
}

/* Hero / Profile */
.profile {
    background-color: #1d539f;
    color: white;
    padding: 54px 20px 64px;
    text-align: center;
}

.profile-picture {
    height: 190px;
    margin: 0 auto 28px;
    width: 190px;
}

.profile-picture img {
    border-radius: 50%;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.profile h1 {
    color: white;
    font-size: 52px;
    font-weight: 800;
    margin: 0;
}

.profile-title {
    color: white;
    font-size: 20px;
    font-weight: 700;
    margin: 12px 0 0;
}

.small-profile {
    padding: 48px 20px;
}

/* Main content */
.content-section {
    margin: 34px auto;
    max-width: 1100px;
    padding: 0 24px;
}

.content-section h2 {
    color: #1C539F;
    font-size: 34px;
    margin-bottom: 18px;
}

.content-section > p,
.section-intro {
    color: #374151;
    font-size: 18px;
    line-height: 1.7;
}

.card-grid {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(31, 41, 55, 0.08);
    padding: 24px;
}

.card h3 {
    margin-top: 0;
}

.muted {
    color: #5b6472;
    font-weight: 700;
}

/* Hobbies */
.hobby-card {
    border: none;
    overflow: hidden;
    padding: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hobby-card:hover {
    box-shadow: 0 14px 30px rgba(31, 41, 55, 0.14);
    transform: translateY(-4px);
}

.hobby-card img {
    display: block;
    height: 220px;
    margin: 0;
    object-fit: cover;
    width: 100%;
}

.hobby-card h3,
.hobby-card p {
    padding-left: 20px;
    padding-right: 20px;
}

.hobby-card h3 {
    margin-bottom: 10px;
    margin-top: 18px;
}

.hobby-card p {
    line-height: 1.6;
    padding-bottom: 22px;
}

/* Buttons */
.switch-button,
.button-link {
    border-radius: 999px;
    display: inline-block;
    font-weight: 700;
    padding: 12px 18px;
    text-decoration: none;
}

.button-link {
    background: #1C539F;
    color: white;
    margin-top: 20px;
}

.button-link:hover {
    background: #153f79;
}

/* Travel map */
#travel-map {
    border: 8px solid white;
    border-radius: 22px;
    box-shadow: 0 14px 32px rgba(31, 41, 55, 0.14);
    height: 430px;
    margin: 18px 0 24px;
    overflow: hidden;
    width: 100%;
}

.leaflet-popup-content {
    font-family: "Roboto", sans-serif;
    font-weight: 700;
}

.travel-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.travel-list span {
    background: white;
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(31, 41, 55, 0.08);
    color: #1C539F;
    font-weight: 700;
    padding: 10px 14px;
}

/* Mobile */
@media (max-width: 800px) {
    .nav-content {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    .nav-content nav {
        flex-wrap: wrap;
    }

    .header-switch {
        margin-left: 0;
        margin-right: 0;
    }

    .nav-logo img {
        width: 220px;
    }

    .profile h1 {
        font-size: 38px;
    }

    .profile-picture {
        height: 160px;
        width: 160px;
    }
}
