:root {
    /* Solarpunk Color Palette */
    --text-main: #2a4032; /* Deep forest green */
    --text-muted: #5c7564; /* Soft moss green */
    --accent-hero: #1a2920; 
    --accent-mastercard: #eb6116; 
    --radius: 32px; 
    
    /* Bright, Frosted Glass Variables */
    --glass-bg: rgba(255, 255, 255, 0.45);
    --glass-bg-hover: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.8);
    --glass-shadow: 0 8px 32px rgba(42, 64, 50, 0.08); /* Soft green shadow */
}

body { 
    font-family: ui-rounded, 'Hiragino Maru Gothic ProN', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    /* Optimistic, sunlit nature gradient */
    background: radial-gradient(circle at top left, #fffff0 0%, #e8f5e9 50%, #c8e6c9 100%);
    color: var(--text-main);
    margin: 0; 
    display: flex; 
    justify-content: center; 
    align-items: flex-start;
    min-height: 100vh;
    padding: 2rem 20px;
    box-sizing: border-box;
}

.bento-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem; 
    max-width: 850px; 
    width: 100%;
}

/* --- LIGHT FROSTED GLASS BOX --- */
.box {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--glass-shadow); 
    border: 1px solid var(--glass-border);
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    min-height: 160px; 
    box-sizing: border-box; 
}

.box:hover {
    transform: translateY(-4px);
    background: var(--glass-bg-hover);
    box-shadow: 0 12px 40px rgba(42, 64, 50, 0.12);
}

/* Typography Scaling */
h1, h2, h3 { margin-top: 0; margin-bottom: 0.5rem; color: var(--accent-hero); }
h1 { font-size: 1.5rem; } 
h2 { font-size: 1.15rem; }
p, li { font-size: 0.9rem; line-height: 1.5; color: var(--text-muted); } 
p { margin-top: 0; margin-bottom: 0.8rem; }
ul { padding-left: 1.2rem; margin-bottom: 0; color: var(--text-muted); }

/* --- BENTO CARD TINTS (Organic Colors) --- */
.about {
    grid-column: span 2;
    grid-row: span 2;
    background: rgba(255, 255, 255, 0.7); /* Most opaque for the hero */
    justify-content: center;
}
.about .location { opacity: 0.8; margin-top: auto; font-weight: 500;}

.box > a.link { margin-top: auto; align-self: flex-start; }

.now {
    grid-column: span 2;
    background: rgba(255, 250, 230, 0.4); /* Pale warm sunlight tint */
}

.professional {
    grid-column: span 1;
    background: rgba(200, 230, 201, 0.3); /* Subtle leafy green tint */
}

.personal {
    grid-column: span 1;
    background: rgba(225, 213, 233, 0.3); /* Soft lavender morning tint */
}

.contact {
    grid-column: span 2;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.contact .socials {
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1rem;
}

/* Links & Tags */
.socials { display: flex; gap: 1rem; margin-top: 0.5rem; }
.socials a, .link {
    color: #2e7d32; /* Vibrant leaf green for links */
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease;
}
.socials a:hover, .link:hover { 
    color: var(--accent-mastercard); /* Pops orange on hover */
    text-decoration: underline; 
}

.tag {
    display: inline-block;
    margin-top: auto;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
    padding: 5px 10px;
    background: rgba(42, 64, 50, 0.06); 
    color: var(--accent-hero);
    border-radius: 12px;
    font-weight: 700;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .bento-container {
        grid-template-columns: 1fr;
        grid-auto-rows: auto; 
    }
    .box {
        grid-column: span 1 !important;
        grid-row: auto !important; 
    }
}

/* --- PACE Feasibility Map Styling --- */
.map-box {
    grid-column: 1 / -1; 
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.metrics-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.metric {
    background-color: rgba(255, 255, 255, 0.1); /* Glass metric pill */
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: bold;
    color: #181717;
    border: 1px solid var(--glass-border);
}

.iframe-container {
    width: 100%;
    height: 550px; 
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    background-color: rgba(0,0,0,0.2); 
}

.iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.project-actions {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.button {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background-color: #88ccaa;
    color: #1a1a1a;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    transition: background 0.2s ease, transform 0.2s ease;
}

.button:hover {
    background-color: #aaeec0; 
    color: #000000;
    transform: translateY(-2px);
}

.button.secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid rgba(255,255,255,0.3);
}

.button.secondary:hover {
    background-color: rgba(255,255,255,0.1);
    color: #ffffff;
}

.no-underline {
    text-decoration: none;
}

.social-link {
    font-size: 1.2rem;
}

.mini-stats-styling {
    font-size: 0.75rem;
    font-weight: bold;
    margin-top: auto;
    color: #2e7d32;
}

.block-display {
    display: block;
}

/* --- Photography Masonry Layout --- */
.masonry-gallery {
    column-count: 3; 
    column-gap: 1rem; 
    width: 100%;
    margin-top: 1rem;
}

.masonry-gallery img {
    width: 100%;
    display: block;
    margin-bottom: 1rem; 
    border-radius: 16px; 
    background-color: rgba(255,255,255,0.05); 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.masonry-gallery img:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    cursor: pointer;
}

@media (max-width: 480px) {
    .masonry-gallery {
        column-count: 1; 
    }
}

.projects-grid > .box {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.projects-grid > .box > .tag {
    margin-top: auto;
}
