/* ---- Base ---- */
* {
    box-sizing: border-box;
}

body {
    background-color: #f5f6fa;
    margin: 0;
    font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #1a1a1a;
    line-height: 1.5;
    overflow-x: hidden;
}

p, h1, h2, h3, h4, h5, h6 {
    font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ---- Nav bar ---- */
.nav-bar {
    width: 100%;
    background-color: #1C539F;
    padding: 14px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.nav-content {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 24px;
}

.nav-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

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

/* ---- Hero / profile ---- */
.profile {
    background: linear-gradient(135deg, #1C539F 0%, #2D6FCC 100%);
    padding: 70px 24px 110px;
    text-align: center;
    color: white;
}

.profile-picture {
    display: inline-block;
    margin-bottom: 22px;
}

.profile-picture img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid rgba(255,255,255,0.95);
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.profile h1 {
    color: white;
    margin: 0;
    font-size: 44px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* ---- Content layout ---- */
.container {
    max-width: 780px;
    margin: -60px auto 80px;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

.card {
    background: white;
    border-radius: 16px;
    padding: 38px 42px;
    margin-bottom: 22px;
    box-shadow: 0 4px 24px rgba(28, 83, 159, 0.08);
    border: 1px solid rgba(28, 83, 159, 0.05);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
    box-shadow: 0 6px 32px rgba(28, 83, 159, 0.12);
    transform: translateY(-2px);
}

.card h2 {
    margin: 0 0 22px 0;
    color: #1C539F;
    font-weight: 700;
    font-size: 22px;
    letter-spacing: -0.3px;
    position: relative;
    padding-bottom: 14px;
}

.card h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 44px;
    height: 3px;
    background: #1C539F;
    border-radius: 2px;
}

.card > p {
    margin: 0;
    line-height: 1.75;
    color: #374151;
    font-size: 15.5px;
}

/* ---- Entries (work / education) ---- */
.entry {
    margin-bottom: 26px;
    padding-left: 18px;
    border-left: 3px solid #e5e7eb;
}

.entry:last-child {
    margin-bottom: 0;
}

.entry h3 {
    margin: 0 0 6px 0;
    font-weight: 600;
    font-size: 17px;
    color: #111827;
}

.entry .muted {
    color: #6b7280;
    font-weight: 400;
}

.entry .dates {
    color: #9ca3af;
    font-size: 12.5px;
    margin-bottom: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.entry p {
    margin: 0;
    line-height: 1.65;
    color: #4b5563;
    font-size: 15px;
}

/* ---- Mobile ---- */
@media (max-width: 640px) {
    .profile {
        padding: 50px 20px 90px;
    }
    .profile h1 {
        font-size: 32px;
    }
    .profile-picture img {
        width: 140px;
        height: 140px;
    }
    .card {
        padding: 28px 24px;
    }
    .container {
        margin-top: -50px;
    }
}

/* ---- Menu bar links ---- */
.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: inline-flex;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    gap: 28px;
    align-items: center;
}

.nav-link {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 8px 4px;
    border-bottom: 2px solid transparent;
    transition: color 0.15s, border-color 0.15s;
}

.nav-link:hover {
    color: white;
}

.nav-link.active {
    color: white;
    border-bottom-color: white;
}

/* ---- Hobbies (inline on home) ---- */
.hobby-list {
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin-bottom: 22px;
}

.hobby-entry {
    display: flex;
    gap: 20px;
    align-items: center;
}

.hobby-image {
    width: 110px;
    height: 110px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.hobby-text h3 {
    margin: 0 0 6px 0;
    font-size: 17px;
    font-weight: 600;
    color: #111827;
}

.hobby-text p {
    margin: 0;
    color: #4b5563;
    font-size: 15px;
    line-height: 1.6;
}

.card-link {
    display: inline-block;
    margin-top: 8px;
    color: #1C539F;
    font-weight: 600;
    text-decoration: none;
    font-size: 15px;
    transition: transform 0.15s;
}

.card-link:hover {
    transform: translateX(3px);
}

/* ---- Hobbies page ---- */
.page-header {
    background: linear-gradient(135deg, #1C539F 0%, #2D6FCC 100%);
    padding: 60px 24px 90px;
    color: white;
    text-align: center;
}

.page-header h1 {
    margin: 0 0 10px 0;
    font-size: 40px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.page-header p {
    margin: 0;
    font-size: 17px;
    opacity: 0.9;
}

.hobbies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
    margin-top: -50px;
    margin-bottom: 60px;
}

.hobby-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(28, 83, 159, 0.08);
    border: 1px solid rgba(28, 83, 159, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hobby-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(28, 83, 159, 0.14);
}

.hobby-card-image {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.hobby-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hobby-card-body {
    padding: 22px 24px 26px;
}

.hobby-card-body h3 {
    margin: 0 0 8px 0;
    color: #1C539F;
    font-size: 19px;
    font-weight: 700;
}

.hobby-card-body p {
    margin: 0;
    color: #4b5563;
    font-size: 14.5px;
    line-height: 1.6;
}

@media (max-width: 640px) {
    .hobby-entry {
        flex-direction: column;
        align-items: flex-start;
    }
    .hobby-image {
        width: 100%;
        height: 180px;
    }
    .nav-menu {
        gap: 18px;
    }
    .page-header h1 {
        font-size: 32px;
    }
}

/* ---- Travel page ---- */
#travel-map {
    width: 100%;
    height: 520px;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(28, 83, 159, 0.12);
    border: 1px solid rgba(28, 83, 159, 0.05);
    margin-top: -50px;
    margin-bottom: 32px;
    z-index: 0;
}

.travel-list {
    background: white;
    border-radius: 16px;
    padding: 32px 36px;
    box-shadow: 0 4px 24px rgba(28, 83, 159, 0.08);
    border: 1px solid rgba(28, 83, 159, 0.05);
    margin-bottom: 60px;
}

.travel-list h2 {
    margin: 0 0 16px 0;
    color: #1C539F;
    font-size: 20px;
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
}

.travel-list h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: #1C539F;
    border-radius: 2px;
}

.travel-list ul {
    margin: 0;
    padding-left: 22px;
    color: #374151;
    font-size: 15.5px;
    line-height: 1.9;
}

@media (max-width: 640px) {
    #travel-map {
        height: 380px;
    }
    .travel-list {
        padding: 24px;
    }
}

/* ---- Travel page (overrides + gallery) ---- */
#travel-map {
    height: 420px;
}

.travel-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 22px;
    margin-bottom: 60px;
}

.travel-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(28, 83, 159, 0.08);
    border: 1px solid rgba(28, 83, 159, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.travel-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(28, 83, 159, 0.14);
}

.travel-card-image {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.travel-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.travel-card-body {
    padding: 18px 22px;
    text-align: center;
}

.travel-card-body h3 {
    margin: 0;
    color: #1C539F;
    font-size: 17px;
    font-weight: 700;
}

@media (max-width: 640px) {
    #travel-map {
        height: 320px;
    }
}
