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

/* Re-apply necessary margins/paddings - only for specific containers */
.city-info,
.photo-gallery-card,
.form-card {
    margin-bottom: 1em;
}

nav, header {
    margin-bottom: 0.5em;
}

@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;700&family=Montserrat:wght@400;700&display=swap');

body {
    font-family: 'Montserrat', sans-serif;
    color: #333;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background-color: #f8f9fa;
}

header {
    margin-bottom: 0.3em;
    padding-top: 0.8em;
    padding-bottom: 0.4em;
}

header h1 {
    margin: 0;
    padding: 0;
    font-size: 2em;
}

.page-description {
    margin-top: 0.5em;
    font-size: 0.95em;
    color: #666;
    line-height: 1.5;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0;
}

header, nav, main, footer {
    margin: 0 auto;
    padding: 2em 1em;
    max-width: 800px;
    text-align: center;
}

nav {
    margin-bottom: 0;
    padding-bottom: 0.2em;
    padding-top: 1em;
}

/* Tighter spacing for travel page */
.travel-main ~ footer {
    padding-top: 1em;
    padding-bottom: 1em;
}

nav ul {
    display: flex;
    justify-content: space-around;
    list-style: none;
    padding: 0;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 1em;
}

nav a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #555;
}

nav a.current-page {
    font-weight: bold;
}

h1 {
    font-family: 'Lora', serif;
}

main {
    padding-top: 1em;
}

footer {
    font-size: 0.8em;
    color: #777;
    border-top: 1px solid #e0e0e0;
    padding-top: 1em;
}

.content-container {
    display: flex;
    gap: 20px;
    justify-content: space-between;
}

.photo-section {
    flex: 1;
    text-align: center;
}

.info-section {
    flex: 2;
}

.circular-frame {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #333;
    transform: scale(1.4);  /* Revert zoom to previous level */
    filter: grayscale(100%) contrast(125%) brightness(1.2); /* Add brightness */
}

.split-screen {
    display: flex;
    max-height: 400px; /* Reduced height */
}

.left-side, .right-side {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.left-side {
    flex: 1;
    background-color: initial; /* Reset background */
}

.right-side {
    flex: 2;
    background-color: initial; /* Reset background */
}

.right-side h1,
.right-side h2,
.right-side p {
    margin-bottom: 0.5em;
}

.right-side p:last-child {
    margin-bottom: 0;
}

blockquote {
    font-size: 1.2em;
    font-style: italic;
    color: #666;
    margin: 20px 0;
}

/* Work Experience Card Base Styles */
.work-card {
    padding: 1.5em;
    margin-bottom: 1.5em;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.work-card:hover {
    transform: translateY(-3px);
}

.work-card.collapsed:hover {
    transform: translateY(-5px);
}

/* Current Role Cards - White background with solid black border */
.work-card-current {
    background-color: #fff;
    border: 2px solid #333;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.work-card-current:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Previous Role Cards - Page background color with dashed border */
.work-card-previous {
    background-color: #f8f9fa;
    border: 2px dashed #333;
    cursor: pointer;
}

/* Collapsed state for all cards */
.work-card.collapsed .card-content {
    display: none;
}

/* Card Header - Contains image, company name, skills, and timeframe */
.card-header {
    display: grid;
    grid-template-columns: 140px 1fr 140px;
    gap: 1em;
    align-items: stretch;
    margin-bottom: 0;
}

/* Left: Company Image */
.card-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 4px;
}

/* Middle: Company name and skills */
.card-middle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

/* When collapsed: company name at top, skills at bottom (if skills exist) */
.work-card.collapsed .card-middle:has(.card-summary) {
    justify-content: space-between;
    min-height: 80px;
}

/* When collapsed but no skills: just center the company name */
.work-card.collapsed .card-middle:not(:has(.card-summary)) {
    justify-content: center;
    min-height: 80px;
}

/* When expanded: center everything vertically */
.work-card:not(.collapsed) .card-middle {
    justify-content: center;
}

.card-title {
    margin: 0;
}

.card-title h2 {
    font-family: 'Lora', serif;
    font-size: 1.4em;
    margin: 0;
    color: #333;
}

/* Card Summary - Shows skills */
.card-summary {
    text-align: center;
}

.summary-skills {
    font-style: italic;
    color: #666;
    margin: 0;
    font-size: 0.95em;
}

/* Hide skills when expanded */
.work-card:not(.collapsed) .card-summary {
    display: none;
}

/* Right: Timeframe */
.card-timeframe {
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-timeframe p {
    font-size: 0.9em;
    color: #777;
    margin: 0;
    white-space: nowrap;
}

/* Add border when expanded */
.work-card:not(.collapsed) .card-header {
    margin-bottom: 1em;
    padding-bottom: 1em;
    border-bottom: 1px solid #e0e0e0;
}

/* Expand Indicator */
.expand-indicator {
    text-align: center;
    margin-top: 0.8em;
    padding-top: 0.5em;
    border-top: 1px solid #e0e0e0;
}

.expand-indicator .expand-text {
    font-size: 0.85em;
    color: #999;
    font-style: italic;
    transition: color 0.3s ease;
}

.work-card:hover .expand-indicator .expand-text {
    color: #333;
}

/* Hide indicator when expanded */
.work-card:not(.collapsed) .expand-indicator {
    display: none;
}

/* Card Content - Details when expanded */
.card-content {
    text-align: left;
}

/* Role Section - Multiple roles within a company */
.role-section {
    display: flex;
    gap: 2em;
    margin-bottom: 1.5em;
    align-items: flex-start;
}

.role-section:last-child {
    margin-bottom: 0;
}

/* Role Info - Title and timeframe on the left (1/4 width) */
.role-info {
    flex-basis: 25%;
    flex-shrink: 0;
    flex-grow: 0;
}

.role-info h3 {
    font-size: 1.1em;
    font-weight: 600;
    color: #555;
    margin-bottom: 0.3em;
}

.role-info .timeframe {
    font-size: 0.9em;
    color: #777;
    font-style: italic;
    margin: 0;
}

/* Role Details - Bullets on the right (3/4 width) */
.role-details {
    flex-basis: 75%;
    flex-grow: 0;
    flex-shrink: 1;
}

.role-details ul {
    list-style-type: disc;
    padding-left: 1.5em;
    margin: 0;
}

.role-details li {
    margin-bottom: 0.4em;
    color: #555;
    line-height: 1.5;
}

.role-details li:last-child {
    margin-bottom: 0;
}

.role-divider {
    border: none;
    border-top: 1px dashed #ccc;
    margin: 1.5em 0;
}

/* ============================================ */
/* TRAVEL PAGE STYLES */
/* ============================================ */

/* Travel main container - override default max-width for full-width map */
.travel-main {
    max-width: 100% !important;
    padding: 0.2em 0 0 0 !important;
}

/* Travel Statistics */
.travel-stats {
    display: flex;
    justify-content: center;
    margin-bottom: 0.5em;
    padding: 0 2em;
}

.stat-card-combined {
    background: white;
    padding: 0.6em 2em;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 2em;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.8em;
}

.stat-number {
    font-size: 1.8em;
    font-weight: bold;
    color: #4A90E2;
    font-family: 'Lora', serif;
    line-height: 1;
}

.stat-label {
    font-size: 0.85em;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.stat-divider {
    font-size: 1.5em;
    color: #ddd;
    font-weight: 300;
}

/* Map Container */
.travel-map {
    width: 100%;
    max-width: 1000px;
    height: calc(100vh - 380px);
    min-height: 450px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
}

/* Custom Leaflet Popup Styles */
.leaflet-popup-content-wrapper {
    border-radius: 8px;
    box-shadow: 0 3px 14px rgba(0,0,0,0.3);
}

.leaflet-popup-content {
    margin: 0.6em;
    width: 120px !important;
    text-align: center;
}

.country-popup h3,
.city-popup h3 {
    margin: 0 0 0.3em 0;
    font-family: 'Lora', serif;
    color: #333;
    font-size: 1.05em;
}

.country-popup p,
.city-popup p {
    margin: 0.2em 0;
    color: #555;
    font-size: 0.8em;
}

.country-popup strong,
.city-popup strong {
    color: #333;
}

.city-link {
    display: inline-block;
    margin-top: 0.5em;
    padding: 0.45em 0.7em;
    background-color: #4A90E2;
    color: white !important;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.8em;
    line-height: 1.3;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.city-link:hover {
    background-color: #2c5aa0;
}

/* Wishlist popup button */
.wishlist-link {
    display: inline-block;
    margin-top: 0.6em;
    padding: 0.5em 0.8em;
    background-color: #f4d03f;
    color: #333 !important;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.wishlist-link:hover {
    background-color: #d4af37;
}

.wishlist-popup p {
    font-size: 0.8em;
}

/* Custom City Marker Styles */
.city-marker {
    background: transparent;
    border: none;
}

/* CUSTOM PIN WITH DARK BLUE TIP (ACTIVE) */
.city-pin {
    width: 24px;
    height: 24px;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Main pin body (light blue) */
.city-pin::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    background-color: #4A90E2;
    border: 2px solid white;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    top: 0;
    left: 3px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* Dark blue tip */
.city-pin::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 8px solid #2c5aa0;
    bottom: 0;
    left: 8px;
    z-index: 1;
}

.city-marker:hover .city-pin {
    transform: scale(1.2);
}

.city-marker:hover .city-pin::before {
    background-color: #2c5aa0;
}

/* BENCHED STYLES BELOW */
/* EMOJI PIN STYLE (BENCHED)
.city-pin {
    font-size: 24px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.city-marker:hover .city-pin {
    transform: scale(1.2);
}
*/

/* CUSTOM CIRCULAR PIN STYLE (BENCHED)
.city-pin {
    width: 20px;
    height: 20px;
    background-color: #4A90E2;
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.city-pin::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: white;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.city-marker:hover .city-pin {
    transform: scale(1.3);
    background-color: #2c5aa0;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
}
*/

/* ============================================ */
/* RECOMMENDATION FORM PAGE STYLES */
/* ============================================ */

.recommend-form-container {
    max-width: 600px;
    margin: 0 auto;
}

.form-card {
    background: white;
    padding: 2em;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.recommendation-form {
    text-align: left;
}

.form-group {
    margin-bottom: 1.5em;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5em;
    color: #333;
}

.form-group input[type="text"],
.form-group textarea {
    width: 100%;
    padding: 0.8em;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4A90E2;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-actions {
    display: flex;
    gap: 1em;
    margin-top: 2em;
}

.btn-submit {
    flex: 1;
    padding: 0.8em 1.5em;
    background-color: #4A90E2;
    color: white;
    border: none;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-submit:hover {
    background-color: #2c5aa0;
}

.btn-cancel {
    padding: 0.8em 1.5em;
    background-color: #f0f0f0;
    color: #333 !important;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.3s ease;
    text-align: center;
}

.btn-cancel:hover {
    background-color: #e0e0e0;
}

.success-message {
    text-align: center;
    padding: 2em;
}

.success-message h3 {
    color: #4A90E2;
    font-size: 1.8em;
    margin-bottom: 0.5em;
}

.success-message p {
    color: #666;
    margin-bottom: 1.5em;
}

/* ============================================ */
/* CITY DETAIL PAGE STYLES */
/* ============================================ */

.city-detail {
    max-width: 800px;
    margin: 0 auto;
}

.city-info {
    background: white;
    padding: 2em;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 2em;
}

/* Photo Gallery Card */
.photo-gallery-card {
    background: white;
    padding: 2em;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 2em;
}

.photo-gallery-card h2 {
    font-family: 'Lora', serif;
    color: #333;
    margin-bottom: 1em;
    font-size: 1.3em;
    text-align: center;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1em;
}

.gallery-thumb {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-thumb:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox-content {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 10000;
    user-select: none;
}

.lightbox-close:hover {
    color: #4A90E2;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    padding: 16px;
    transition: all 0.3s ease;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: rgba(74, 144, 226, 0.8);
}

.lightbox-caption {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1em;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 0.8em 1.5em;
    border-radius: 4px;
    max-width: 80%;
}

.city-meta {
    background: #f8f9fa;
    padding: 0.7em 1em;
    border-radius: 4px;
    margin-bottom: 1.5em;
}

.city-meta p {
    margin: 0;
    color: #555;
    text-align: center;
}

.city-description h2,
.city-section h2 {
    font-family: 'Lora', serif;
    color: #333;
    margin-bottom: 0.8em;
    font-size: 1.3em;
}

.city-description,
.city-section {
    margin-bottom: 2em;
}

.city-description p,
.city-section p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 1em;
}

.city-section ul {
    list-style-type: disc;
    padding-left: 1.5em;
    margin: 0;
    text-align: left;
}

.city-section li {
    color: #555;
    line-height: 1.6;
    margin-bottom: 0.5em;
    text-align: left;
}

.city-section li:last-child {
    margin-bottom: 0;
}

.placeholder {
    color: #999;
    font-style: italic;
}

.city-actions {
    text-align: center;
}

.btn-back {
    display: inline-block;
    padding: 0.8em 1.5em;
    background-color: #333;
    color: white !important;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    font-size: 1em;
}

.btn-back:hover {
    background-color: #555;
}

/* ============================================ */
/* RESPONSIVE STYLES */
/* ============================================ */

@media (max-width: 768px) {
    /* Reduce padding on mobile for more content space */
    header, nav, main, footer {
        padding-left: 0.8em;
        padding-right: 0.8em;
    }

    header h1 {
        font-size: 1.6em;
    }

    .page-description {
        font-size: 0.9em;
    }

    nav ul {
        flex-direction: column;
        gap: 0.3em;
        padding-bottom: 0.5em;
    }

    nav li {
        padding: 0.3em 0;
    }

    .content-container {
        flex-direction: column;
        align-items: center;
    }

    .info-section {
        order: 2;
        text-align: center;
    }

    .photo-section {
        order: 1;
    }

    .split-screen {
        flex-direction: column;
        height: auto;
    }

    .left-side, .right-side {
        padding: 15px;
    }

    /* Work and Project Cards - Mobile Layout */
    .card-header {
        display: flex;
        flex-direction: column;
        gap: 0.8em;
        align-items: center;
    }

    .card-image {
        order: 1;
    }

    .card-image img,
    .placeholder-logo {
        width: 70px;
        height: 70px;
    }

    .card-middle {
        order: 2;
        text-align: center;
        min-height: auto !important;
    }

    .card-title h2 {
        font-size: 1.1em;
        margin-bottom: 0.3em;
    }

    .card-timeframe {
        order: 3;
        justify-content: center;
    }

    .card-timeframe p {
        font-size: 0.85em;
        white-space: normal;
        text-align: center;
    }

    /* Skills span full width at bottom when collapsed */
    .work-card.collapsed .card-summary {
        order: 4;
        width: 100%;
        margin-top: 0.5em;
        padding-top: 0.8em;
        border-top: 1px solid #e0e0e0;
    }

    .summary-skills {
        font-size: 0.9em;
        text-align: center;
    }

    /* Technology tags for projects on mobile */
    .summary-technologies {
        text-align: center;
    }

    /* Hide card-summary when expanded on mobile (normal behavior) */
    .work-card:not(.collapsed) .card-summary {
        display: none !important;
    }

    /* Expand indicator on mobile */
    .expand-indicator {
        margin-top: 0.6em;
        padding-top: 0.6em;
    }

    .expand-text {
        font-size: 0.8em;
    }

    /* Role sections on mobile */
    .role-section {
        flex-direction: column;
        gap: 0.8em;
    }

    .role-info {
        flex-basis: 100%;
    }

    .role-info h3 {
        font-size: 1em;
    }

    .role-details {
        flex-basis: 100%;
    }

    .role-details ul {
        padding-left: 1.2em;
    }

    .role-details li {
        font-size: 0.95em;
    }

    /* Travel page responsive */
    .travel-stats {
        padding: 0 1em;
    }

    .stat-card-combined {
        flex-direction: column;
        gap: 0.5em;
        padding: 1em 1.5em;
    }

    .stat-divider {
        display: none;
    }

    .travel-map {
        height: 450px;
        min-height: 300px;
        border-radius: 0;
        max-width: 100%;
        touch-action: pan-x pan-y;  /* Enable panning on touch devices */
    }

    /* Make leaflet controls more mobile-friendly */
    .leaflet-control-zoom {
        margin-top: 10px !important;
        margin-right: 10px !important;
    }

    .leaflet-control-zoom a {
        width: 36px !important;
        height: 36px !important;
        line-height: 36px !important;
        font-size: 20px !important;
    }

    /* Make popups more touch-friendly */
    .leaflet-popup-content-wrapper {
        font-size: 1em;
    }

    .city-link,
    .wishlist-link {
        padding: 0.6em 0.9em;
        font-size: 0.9em;
        min-height: 44px;  /* iOS minimum touch target size */
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .map-legend {
        margin: 0 1em;
    }

    .city-info {
        padding: 1em;
    }
    
    /* Photo gallery responsive */
    .photo-gallery-card {
        padding: 1.5em;
    }
    
    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8em;
    }
    
    .gallery-thumb {
        height: 150px;
    }
    
    .lightbox-prev,
    .lightbox-next {
        font-size: 30px;
        padding: 12px;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
    
    .lightbox-close {
        top: 15px;
        right: 20px;
        font-size: 35px;
    }

    /* Form elements on mobile */
    .form-card {
        padding: 1.5em;
    }

    .btn-submit,
    .btn-cancel {
        min-height: 44px;  /* iOS minimum touch target */
    }

    /* Project and city detail buttons */
    .project-link-button,
    .btn-back {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    /* Even tighter card layout for small phones */
    .work-card {
        padding: 1em;
    }

    .card-header {
        gap: 0.5em;
    }

    .card-title h2 {
        font-size: 1em;
    }

    .card-timeframe p {
        font-size: 0.8em;
    }

    .summary-skills {
        font-size: 0.85em;
    }

    /* Adjust image size for very small screens */
    .card-image img,
    .placeholder-logo {
        width: 60px;
        height: 60px;
    }

    /* Tighter spacing for skills section on bottom */
    .work-card.collapsed .card-summary {
        padding-top: 0.6em;
        margin-top: 0.3em;
    }

    /* Travel stats on small phones */
    .stat-card-combined {
        padding: 0.8em 1em;
    }

    .stat-number {
        font-size: 1.5em;
    }

    .stat-label {
        font-size: 0.75em;
    }

    /* Reduce header font sizes */
    header h1 {
        font-size: 1.4em;
    }

    .page-description {
        font-size: 0.85em;
    }

    /* Adjust map for very small screens */
    .travel-map {
        height: 350px;
    }

    /* Photo gallery */
    .photo-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-thumb {
        height: 200px;
    }

    /* Form elements */
    .form-card {
        padding: 1em;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn-cancel {
        width: 100%;
    }
}

/* Project-specific styles */
.placeholder-logo {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e0e0e0;
    color: #999;
    font-size: 0.75em;
    border-radius: 4px;
    text-align: center;
}

/* Technology tags in collapsed view */
.summary-technologies {
    margin: 0.5em 0 0 0;
    font-size: 0.85em;
}

.tech-tag {
    display: inline-block;
    padding: 0.2em 0.6em;
    margin: 0 0.2em;
    background-color: #e3f2fd;
    color: #1976d2;
    border-radius: 12px;
    font-size: 0.9em;
}

.tech-more {
    color: #666;
    font-style: italic;
    font-size: 0.9em;
}

/* Project expanded content sections */
.project-description {
    margin-bottom: 1.5em;
}

.project-description p {
    line-height: 1.6;
    color: #555;
}

.project-details {
    margin-bottom: 1.5em;
}

.project-details h3 {
    font-size: 1.1em;
    color: #333;
    margin-bottom: 0.5em;
    font-family: 'Lora', serif;
}

.project-details ul {
    list-style-position: outside;
    padding-left: 1.5em;
    margin: 0;
}

.project-details li {
    margin-bottom: 0.5em;
    line-height: 1.5;
    color: #555;
}

.project-technologies {
    margin-bottom: 1.5em;
}

.project-technologies h3 {
    font-size: 1.1em;
    color: #333;
    margin-bottom: 0.5em;
    font-family: 'Lora', serif;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
}

.tech-badge {
    display: inline-block;
    padding: 0.4em 0.8em;
    background-color: #e3f2fd;
    color: #1976d2;
    border-radius: 16px;
    font-size: 0.9em;
    font-weight: 500;
}

/* Project link button */
.project-link {
    margin-top: 1.5em;
    padding-top: 1em;
    border-top: 1px solid #e0e0e0;
}

.project-link-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    padding: 0.75em 1.5em;
    background-color: #333;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.project-link-button:hover {
    background-color: #555;
    transform: translateY(-2px);
}

.external-link-icon {
    width: 1.2em;
    height: 1.2em;
}

/* No content message */
.no-content {
    text-align: center;
    padding: 3em;
    color: #666;
    font-style: italic;
}
