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

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #111;
    background-color: #fff;
    padding: 2rem;
    padding-right: 1em;
}


.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
}

.nav-brand {
    font-weight: 600;
    font-size: 2.5rem;
    color: #92a0a2;
    text-decoration: none;
    letter-spacing: -0.5px;
    transition: color 0.2s;
    padding-left: 2rem;

}

.nav-brand:hover {
    color: #7f8ba5;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-links a {
    text-decoration: none;
    color: #7b8788;
    font-size: 1rem;
    font-weight: 400;
    transition: color 0.2s;
    font-family: 'Inter', sans-serif;
}

.nav-links a:hover {
    color: #4e5556;
}

.nav-icons {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: 0.5rem;
}

.icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
}


.gallery {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    column-gap: 2.5rem;
    row-gap: 10rem;
    max-width: 1600px;
    margin: 0 auto;
    padding-bottom: 12rem;
    padding-top: 1rem;
}

.photo-card {
    display: block;
    text-decoration: none;
    width: 100%;
    padding-top: 1rem;
}

.photo-card img {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.3s ease;
}

.photo-card img:hover {
    opacity: 0.9;
}

.dropdown-menu a {
    padding: 0.5rem 1rem;
    color: #7b8788;
    text-decoration: none;
    font-size: 0.88rem;
    white-space: nowrap;
    transition: background-color 0.15s, color 0.15s;
}

.dropdown-menu a:hover {
    background-color: #f7fafc;
    color: #4e5556;
}

.item-1 {
    grid-column: 2 / span 5;
    margin-top: 0;
    
}

.item-2 {
    grid-column: 10 / span 5;
    margin-top: 10rem;
    margin-right: 1rem;
}


.item-3 {
    grid-column: 1 / span 7;
    margin-top: -8em;
}

.item-4 {
    grid-column: 9 / span 4;
    margin-top: -2rem;
}


.item-5 {
    grid-column: 5 / span 8;
    margin-top: 0;
}

.item-6 {
    grid-column: 2 / span 4;
    margin-top: 0;
}

.item-7 {
    display: none;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.nav-item-btn {
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    color: #7b8788 !important;
    font-size: 1rem !important;
    font-family: 'Inter', sans-serif !important;
    cursor: pointer;
    line-height: normal;
}

.nav-item-btn:hover {
    color: #4e5556 !important;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0.75rem;
    background-color: #ffffff;
    min-width: 140px;
    padding: 0.5rem 0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border-radius: 6px;
    z-index: 100;
}

.dropdown-content.show {
    display: flex !important;
    flex-direction: column;
}

.dropdown-content a {
    padding: 0.5rem 1rem;
    color: #3b4041;
    text-decoration: none;
    font-size: 0.88rem;
    display: block;
    white-space: nowrap;
}

.dropdown-content a:hover {
    background-color: #ffffff;
    color: #ababab;
}

/* vietnam page */
.collage-container {
    column-count: 2;         
    column-gap: 1.25rem;   
    max-width: 1150px;
    margin: 0 auto;
    padding-top: 1rem;
}

.collage-item {
    break-inside: avoid;     /* Prevents photos from tearing across column breaks */
    margin-bottom: 1.25rem;  /* Equal vertical whitespace matching column-gap */
}

.collage-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.25s ease;
}

.collage-item img:hover {
    opacity: 0.92;
}

/* Optional responsive switch: 3 columns on ultra-wide screens, 1 on mobile */
@media (min-width: 1600px) {
    .collage-container { column-count: 3; }
}
@media (max-width: 768px) {
    .collage-container { column-count: 1; }
}


.bento-gallery {
    display: grid;
    /* 24 columns allows perfect division for both half-screen and quarter-screen items */
    grid-template-columns: repeat(24, 1fr);
    gap: 20px;
    max-width: 1300px;
    margin: 0 auto;
    padding: 2rem;
}

.bento-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    background-color: #111; 
}

.bento-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.bento-item img:hover {
    transform: scale(1.02);
}

.bento-item.hero-img {
    grid-column: 1 / 13;
    grid-row: 1 / 3;
}

.bento-item.wide-img {
    grid-column: 13 / 25;
    grid-row: 1;
    aspect-ratio: 16 / 10;
}

.bento-item.small-img {
    grid-column: span 6;
    grid-row: 2;
    aspect-ratio: 4 / 5; 
}

@media (max-width: 900px) {
    .bento-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .bento-item.hero-img,
    .bento-item.wide-img {
        grid-column: 1 / -1;
        grid-row: auto;
    }
    
    .bento-item.hero-img {
        aspect-ratio: 4 / 5;

    }

    .bento-item.small-img {
        grid-column: span 6;
        grid-row: 2;
        aspect-ratio: 4/5;
    }
}


.about-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    align-items: center; /* Vertically centers the text with the image */
    min-height: 80vh;
}

.about-image img {
    width: 100%;
    height: auto;
    max-height: 85vh; 
    object-fit: cover;
    border-radius: 4px;
}

.about-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-text h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.about-text .lead {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #666; /* Adjust to a lighter gray like #aaa if your background is black */
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.about-contact {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #eaeaea; /* Adjust to #333 if your background is black */
}

.about-contact h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: normal;
}

.btn-group {
    display: flex;
    gap: 15px;
}

.contact-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #111; 
    color: #fff;  
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s ease, opacity 0.2s ease;
}

.contact-btn:hover {
    opacity: 0.8;
}

.contact-btn.outline {
    background-color: transparent;
    color: #111; 
    border: 1px solid #111;
}
.contact-btn.outline:hover {
    background-color: rgba(0, 0, 0, 0.05); 
}

@media (max-width: 900px) {
    .about-split {
        grid-template-columns: 1fr; 
        gap: 2rem;
        padding: 2rem;
    }

    .about-image img {
        max-height: 60vh;
    }

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

.site-header.centered-header {
    justify-content: center;
}

.centered-header .nav-links {
    justify-content: center;
    width: 100%;
}

/* Email Dropdown Container */
.email-dropdown {
    position: relative;
    display: inline-block;
}

.email-dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0.75rem;
    background-color: #ffffff;
    padding: 0.75rem 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid #eaeaea; /* Light border matching your horizontal line */
    border-radius: 6px;
    z-index: 100;
    white-space: nowrap;
    align-items: center;
    gap: 12px;
}

/* Flexbox controls the side-by-side layout of the text and button */
.email-dropdown-content.show {
    display: flex;
}

#email-text {
    font-size: 0.95rem;
    color: #3b4041;
    user-select: all; /* Allows visitors to double-click highlight the text instantly */
}

.copy-small-btn {
    background-color: #f0f0f0;
    border: none;
    padding: 0.35rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    color: #111;
    transition: background-color 0.2s;
}

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

/* Header Email Copy Pop-up */
.toast-message {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background-color: #111;
    color: #fff;
    padding: 10px 24px;
    border-radius: 30px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1000;
    pointer-events: none; /* Prevents it from blocking clicks */
}

/* Class added by JS to trigger the animation */
.toast-message.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}