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

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    background-color: #f5f5f9;
    background-image: linear-gradient(180deg, #1d539f 0%, #3b6fb5 15%, #eaf0f9 40%, #f5f5f9 100%);
    background-attachment: fixed;
    background-size: cover;
    width: auto;
    overflow-x: hidden;
    font-family: "Roboto", serif;
    margin: 0px;
}

.nav-bar {
    width: 100%;
    display: block;
    background: linear-gradient(90deg, #1C539F 0%, #2a66ba 100%);
    font-family: "Roboto", serif;
    font-weight: 700 !important;
    padding: 8px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.nav-content .logo-touch-target {
    display: inline-flex;
    height: 60%;
    width: 350px;
}

.nav-content .nav-logo {
    height: 60px;
    margin: auto;
}

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

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

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-links {
    display: flex;
    gap: 28px;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    padding: 8px 16px;
    border-radius: 20px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-links a:hover {
    background-color: rgba(255, 255, 255, 0.18);
}

.nav-links a.active {
    background-color: #ffffff;
    color: #1C539F;
    font-weight: 700;
}

.page-section {
    max-width: 800px;
    margin: 60px auto;
    padding: 0 20px;
    text-align: center;
}

.page-section h1 {
    color: #ffffff;
    font-size: 38px;
    margin-bottom: 40px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.20);
}

.page-section h1::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    margin: 12px auto 0 auto;
    border-radius: 2px;
    background-color: #ffffff;
}

/* Experience timeline — alternating left/right of a center line */
.timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 28px;
    text-align: left;
}

/* The single vertical spine running down the middle */
.timeline::before {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 8px;
    bottom: 8px;
    width: 4px;
    border-radius: 2px;
    background-color: #1d539f;
}

.exp-card {
    position: relative;
    width: calc(50% - 30px);
    box-sizing: border-box;
    background-color: #ffffff;
    border-radius: 14px;
    padding: 24px 28px;
    box-shadow:
        0 1px 2px rgba(29, 83, 159, 0.10),
        0 4px 8px rgba(29, 83, 159, 0.10),
        0 10px 20px rgba(29, 83, 159, 0.12),
        0 18px 36px rgba(29, 83, 159, 0.10);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Odd cards sit on the left, even cards on the right */
.exp-card:nth-child(odd) {
    align-self: flex-start;
}

.exp-card:nth-child(even) {
    align-self: flex-end;
}

/* The dot marker on the center line for each role */
.exp-card::before {
    content: "";
    position: absolute;
    top: 26px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #1d539f;
    border: 3px solid #f5f5f9;
    box-shadow: 0 0 0 2px #cdd9ec;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.exp-card:nth-child(odd)::before {
    right: -38px;
}

.exp-card:nth-child(even)::before {
    left: -38px;
}

/* The horizontal branch connecting each card to the spine */
.exp-card::after {
    content: "";
    position: absolute;
    top: 33px;
    height: 3px;
    width: 30px;
    background-color: #1d539f;
}

.exp-card:nth-child(odd)::after {
    right: -30px;
}

.exp-card:nth-child(even)::after {
    left: -30px;
}

/* Interactivity: lift the card and pop the dot on hover */
.exp-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow:
        0 2px 4px rgba(29, 83, 159, 0.12),
        0 8px 16px rgba(29, 83, 159, 0.16),
        0 18px 36px rgba(29, 83, 159, 0.20),
        0 30px 60px rgba(29, 83, 159, 0.18);
}

.exp-card:hover::before {
    transform: scale(1.35);
    background-color: #2a66ba;
}

/* On narrow screens, stack everything on one side */
@media (max-width: 720px) {
    .timeline {
        padding-left: 40px;
    }

    .timeline::before {
        left: 12px;
        transform: none;
    }

    .exp-card,
    .exp-card:nth-child(odd),
    .exp-card:nth-child(even) {
        width: 100%;
        align-self: stretch;
    }

    .exp-card:nth-child(odd)::before,
    .exp-card:nth-child(even)::before {
        left: -35px;
        right: auto;
    }

    .exp-card:nth-child(odd)::after,
    .exp-card:nth-child(even)::after {
        left: -27px;
        right: auto;
        width: 27px;
    }
}

.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
}

.exp-role {
    color: #1d539f;
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

.exp-dates {
    color: #777;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.exp-company {
    color: #333;
    font-size: 16px;
    font-weight: 500;
    margin: 4px 0 12px 0;
}

.exp-awards {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.exp-awards .award {
    background-color: #fff4d6;
    color: #8a6d00;
    font-size: 13px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 20px;
}

.exp-bullets {
    margin: 0;
    padding-left: 20px;
}

.exp-bullets li {
    color: #444;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 8px;
}

/* Education cards */
.edu-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    text-align: left;
}

.edu-card {
    background-color: #ffffff;
    border-radius: 14px;
    padding: 24px 28px;
    box-shadow:
        0 1px 2px rgba(29, 83, 159, 0.10),
        0 4px 8px rgba(29, 83, 159, 0.10),
        0 10px 20px rgba(29, 83, 159, 0.12),
        0 18px 36px rgba(29, 83, 159, 0.10);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.edu-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow:
        0 2px 4px rgba(29, 83, 159, 0.12),
        0 8px 16px rgba(29, 83, 159, 0.16),
        0 18px 36px rgba(29, 83, 159, 0.20),
        0 30px 60px rgba(29, 83, 159, 0.18);
}

.edu-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
}

.edu-degree {
    color: #1d539f;
    font-size: 21px;
    font-weight: 700;
    margin: 0;
}

.edu-gpa {
    background-color: #e8f0fb;
    color: #1d539f;
    font-size: 14px;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 20px;
    white-space: nowrap;
}

.edu-subhead {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    margin: 6px 0 14px 0;
}

.edu-school {
    color: #333;
    font-size: 16px;
    font-weight: 500;
}

.edu-dates {
    color: #777;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.edu-roles {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.edu-role {
    background-color: #fff4d6;
    color: #8a6d00;
    font-size: 13px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 20px;
}

.edu-label {
    color: #555;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 0 8px 0;
}

.edu-courses {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.edu-courses .course {
    background-color: #f0f3f8;
    color: #444;
    font-size: 13px;
    padding: 5px 12px;
    border-radius: 8px;
}

/* Hobbies — polaroid wall */
.polaroid-wall {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 36px 28px;
    padding: 10px 0 30px 0;
}

.polaroid {
    width: 300px;
    margin: 0;
    padding: 16px 16px 0 16px;
    background-color: #ffffff;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    /* Render on its own GPU layer so the rotation stays crisp */
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform-origin: center center;
}

.polaroid-photo img,
.polaroid-name {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Give each polaroid a slightly different casual tilt */
.polaroid:nth-child(odd) {
    transform: rotate(-3deg);
}

.polaroid:nth-child(even) {
    transform: rotate(2.5deg);
}

.polaroid:nth-child(3n) {
    transform: rotate(-1.5deg);
}

.polaroid-photo {
    width: 100%;
    height: 300px;
    overflow: hidden;
    background-color: #eceff4;
}

.polaroid-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.polaroid-caption {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 12px 6px 18px 6px;
}

.polaroid-name {
    font-family: "Caveat", cursive;
    font-size: 28px;
    font-weight: 700;
    color: #1d539f;
    line-height: 1;
}

.polaroid-note {
    font-size: 13px;
    color: #666;
    margin-top: 4px;
}

/* Hover: straighten, lift, and pop the shadow */
.polaroid:hover {
    transform: rotate(0deg) translateY(-10px) scale(1.04);
    box-shadow: 0 22px 40px rgba(0, 0, 0, 0.28);
    z-index: 2;
}

/* Map page — Leaflet container */
#map {
    height: 480px;
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(29, 83, 159, 0.18);
    z-index: 1;
}

.profile {
    background-color: #1d539f !important;
    text-align: center;
    height: 320px;
    margin-bottom: 50px;
}

.profile h1 {
    font-size: 50px;
    font-weight: 700;
    color: white;
}

.profile img {
    border-radius: 50%;
    max-width: 100%;
    max-height: 100%;
    margin-left: auto;
    margin-right: auto;
    display: block;
    padding: 20px;
}

.profile .profile-picture {
    margin-bottom: 30px;
    height: 200px;
}

.about {
    max-width: 700px;
    margin: 0 auto 50px auto;
    padding: 35px 40px;
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(29, 83, 159, 0.12);
    text-align: center;
}

.about h2 {
    color: #1d539f;
    font-size: 32px;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 8px;
}

.about h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    margin: 12px auto 0 auto;
    border-radius: 2px;
    background-color: #1d539f;
}

.about p {
    color: #444;
    font-size: 18px;
    line-height: 1.7;
}

.about-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 24px;
}

.about-tags .tag {
    background-color: #e8f0fb;
    color: #1d539f;
    font-size: 14px;
    font-weight: 500;
    padding: 6px 16px;
    border-radius: 20px;
}

.about-intro {
    margin-bottom: 30px;
}

.about-block {
    text-align: left;
    padding-top: 20px;
    border-top: 1px solid #eef1f6;
    margin-top: 20px;
}

.about-block h3 {
    color: #1d539f;
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.about-block p {
    margin: 0;
    font-size: 16px;
}

.banner {
    padding: 20px 0px 50px 0px;
    height: 150px;
    background-color: #1d539f;
}

.banner .logo {
    max-width: 180px;
    max-height: 60px;
    width: auto;
    height: auto;
}

.banner .title {
    color: white;
    font-size: 50px;
    font-weight: 700;
}


.timeline-container {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 1rem 3rem;
}

#timeline-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: #ffffff;
    padding: 1.25rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    margin-bottom: 2rem;
}

#timeline-form input,
#timeline-form textarea {
    font-family: inherit;
    font-size: 1rem;
    padding: 0.6rem 0.75rem;
    border: 1px solid #ccd3e0;
    border-radius: 8px;
}

#timeline-form textarea {
    min-height: 90px;
    resize: vertical;
}

#timeline-form input:focus,
#timeline-form textarea:focus {
    outline: none;
    border-color: #4466aa;
    box-shadow: 0 0 0 3px rgba(68, 102, 170, 0.15);
}

#timeline-form button {
    align-self: flex-end;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    background: #3b5998;
    border: none;
    border-radius: 8px;
    padding: 0.6rem 1.5rem;
    cursor: pointer;
}

#timeline-form button:hover {
    background: #2d4373;
}

.timeline-post {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    text-align: left;
}

.timeline-post strong {
    display: block;
    font-size: 1.05rem;
    color: #22304a;
}

.timeline-post p {
    margin: 0.4rem 0 0.6rem;
    color: #333;
    line-height: 1.5;
    overflow-wrap: break-word;
}

.timeline-post small {
    color: #8a93a5;
    font-size: 0.8rem;
}