/* Custom Styles for the Minimalist Portfolio Website */

/* Global Styles */
body {
    font-family: 'Inter', sans-serif;
    background-color: #ffffff; 
    color: #333;
    display: flex;
    flex-direction: column; 
    min-height: 100vh;
    margin: 0; 
    font-size: 0.95rem; 
    position: relative; 
}

h1, h2, h3, h4, h5, h6 { font-weight: 500; }
h1.website-title { 
    font-size: 1.7rem; 
    color: #000000; 
    font-weight: 700; 
    transition: color 0.2s ease-in-out; 
}
h1.website-title:hover {
    color: #555555; 
    text-decoration: none; 
}

/* Page Titles in the right column */
.right-column h2 { 
    font-size: 1.5rem; 
    margin-bottom: 1.8rem; 
    padding-bottom: 0.6rem; 
} 
h3 { font-size: 1.4rem; }
h4 { font-size: 1.2rem; } 
h5 { font-size: 1.05rem; }
h6 { font-size: 0.95rem; }

a { 
    color: #007bff; 
    text-decoration: none; 
    transition: color 0.2s ease-in-out;
}
a:hover { 
    color: #0056b3; 
    text-decoration: underline; 
}

.right-column a, 
.accordion-body a { 
    color: #000000; 
    text-decoration: underline; 
}
.right-column a:hover,
.accordion-body a:hover {
    color: #555555; 
    text-decoration: underline; 
}


/* --- Desktop Layout (768px and wider) --- */
.main-container { display: flex; flex-grow: 1; }

.left-column {
    background-color: #ffffff; 
    position: fixed; 
    top: 0;
    left: 0;
    bottom: 0;
    width: 210px; 
    overflow-y: auto; 
    flex-direction: column; 
    padding: 2.5rem 1.8rem; 
    z-index: 1000; 
}

.right-column {
    flex-grow: 1; 
    padding: 2.5rem 1.8rem; 
    margin-left: 210px; 
    background-color: #ffffff; 
    overflow-y: auto; 
}

.content-max-width-wrapper { max-width: 900px; margin-left: auto; margin-right: auto; }

.left-column header.site-header { margin-bottom: 1.8rem; }
.left-column header.site-header a:hover .website-title { 
    color: #555555; 
}

.main-nav { 
    margin-bottom: 1rem; 
}
.main-nav .nav-link { 
    padding: 0.6rem 0; 
    color: #555555; 
    font-size: 1rem; 
    display: block; 
    text-decoration: none; 
    transition: color 0.2s ease-in-out, text-decoration 0.2s ease-in-out;
}
.main-nav .nav-link:hover { 
    color: #000000; 
    text-decoration: underline; 
}
.main-nav .nav-link.active, 
.main-nav .nav-link.active-js { 
    color: #000000; 
    text-decoration: underline; 
}

.social-icons-left { margin-top: 0; } 
.social-icons-left a { margin-right: 0.5rem; display: inline-block; margin-bottom: 0.3rem; } 
.social-icons-left img { 
    width: 18px; 
    height: 18px; 
    opacity: 0.7; 
    transition: opacity 0.2s ease-in-out; 
}
.social-icons-left a:hover img { opacity: 1; }

.site-footer-wide { background-color: transparent; padding: 1.5rem; text-align: center; width: 100%; margin-top: auto; }
.copyright-text-wide { font-size: 0.8rem; color: #6c757d; }

p { line-height: 1.6; margin-bottom: 0.9rem; } 
ul.list-unstyled li { font-size: 0.9rem; margin-bottom: 0.3rem; } 

/* Custom Accordion Styles */
.accordion-item { border-radius: 0 !important; border: 1px solid #dee2e6; }
.accordion-item:not(:first-of-type) { border-top: 0; }
.accordion-header { margin-bottom: 0 !important; }
.accordion-button { padding: 0.5rem 1rem; font-size: 1.2rem; font-weight: 500; border-radius: 0 !important; }
.accordion-button:not(.collapsed) { color: #000000 !important; background-color: #f0f0f0 !important; box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.125); }
.accordion-button:focus { box-shadow: none; border-color: rgba(0,0,0,.125); }
.accordion-body { padding: 0.75rem 1rem; }
.accordion-body ul { margin-bottom: 0; }
.accordion-body ul li { font-size: 0.95rem; margin-bottom: 0.2rem; padding: 0.1rem 0; }
.accordion-body h5 { font-size: 1.05rem; font-weight: 500; margin-top: 0.5rem; margin-bottom: 0.2rem; }
.accordion-body h5:first-child { margin-top: 0; }

/* Masonry Gallery Styles - Using column-count */
.masonry-gallery {
    margin-top: 1.5rem;
    column-count: 2; /* 2 columns for mobile */
    column-gap: 1rem; /* Spacing between columns */
}
.gallery-image-item {
    margin-bottom: 1rem; /* Vertical spacing */
    break-inside: avoid; /* Prevents items from breaking across columns */
    position: relative;
    overflow: hidden;
}
@media (min-width: 768px) {
    .masonry-gallery {
        column-count: 3; /* 3 columns for desktop */
    }
}

.gallery-image-item a { display: block; position: relative; text-decoration: none; }
.gallery-image-item img { display: block; width: 100%; height: auto; border-radius: 4px; }

.image-info-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0); 
    display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
    color: white; opacity: 0; visibility: hidden;
    transition: all 0.3s ease-in-out;
    padding: 1rem; box-sizing: border-box; border-radius: 4px; 
}
.gallery-image-item a:hover .image-info-overlay {
    opacity: 1; visibility: visible; background-color: rgba(0, 0, 0, 0.65); 
}
.image-info-overlay .overlay-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.3rem; }
.image-info-overlay .overlay-details { font-size: 0.85rem; margin-bottom: 0.2rem; line-height: 1.3; }
.image-info-overlay .overlay-details:last-child { margin-bottom: 0; }

/* Mobile Navigation & Header Styles (condensed) */
.mobile-header { background-color: #ffffff; padding: 0 1rem; display: flex; justify-content: space-between; align-items: center; position: fixed; top: 0; left: 0; width: 100%; z-index: 1030; border-bottom: 1px solid #e9ecef; height: 60px; }
.mobile-header-title { font-size: 1.7rem; font-weight: 700; color: #000000; transition: color 0.2s ease-in-out; }
.mobile-header-title:hover { color: #555555; }
.hamburger-icon { background: none; border: none; padding: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; width: 44px;  height: 44px; cursor: pointer; position: relative; z-index: 1031; }
.hamburger-icon span { display: block; width: 30px; height: 3px; background-color: #343a40; transition: transform 0.15s ease-out; position: absolute; left: 50%; transform: translateX(-50%); }
.hamburger-icon span:nth-child(2) { transition: opacity 0s 0.075s, transform 0.15s ease-out; }
.hamburger-icon span:nth-child(1) { top: calc(50% - 8px); }
.hamburger-icon span:nth-child(2) { top: calc(50% - 1.5px); }
.hamburger-icon span:nth-child(3) { top: calc(50% + 5px);  }
.hamburger-icon.is-active span:nth-child(1) { top: calc(50% - 1.5px); transform: translateX(-50%) rotate(45deg); }
.hamburger-icon.is-active span:nth-child(2) { opacity: 0; transform: translateX(-150%); }
.hamburger-icon.is-active span:nth-child(3) { top: calc(50% - 1.5px); transform: translateX(-50%) rotate(-45deg); }
.mobile-nav { position: fixed; top: 60px; left: 0; width: 100%; background-color: #ffffff; z-index: 1020; padding: 1rem; border-bottom: 1px solid #dee2e6; transform: translateY(-150%); transition: transform 0.2s ease-out; box-shadow: 0 4px 12px rgba(0,0,0,0.1); max-height: calc(100vh - 60px); overflow-y: auto; }
.mobile-nav.is-active { transform: translateY(0); }
.mobile-nav ul { padding-left: 0; margin-bottom: 0; }
.mobile-nav .nav-link { display: block; padding: 0.75rem 1rem; color: #555555; font-size: 1rem; border-bottom: 1px solid #e9ecef; text-align: center; text-decoration: none; transition: color 0.2s ease-in-out, text-decoration 0.2s ease-in-out; }
.mobile-nav .nav-link:last-child { border-bottom: none; }
.mobile-nav .nav-link:hover, .mobile-nav .nav-link.active { color: #000000; text-decoration: underline; }
.social-icons-mobile img { width: 20px; height: 20px; margin: 0 0.4rem; opacity: 0.7; }
.social-icons-mobile a:hover img { opacity: 1; }
.mobile-menu-overlay { position: fixed; top: 60px; left: 0; width: 100%; height: calc(100% - 60px); background-color: rgba(0, 0, 0, 0.5); z-index: 1010; opacity: 0; visibility: hidden; transition: opacity 0.2s ease-out, visibility 0s 0.2s linear; }
.mobile-menu-overlay.is-active { opacity: 1; visibility: visible; transition: opacity 0.2s ease-out, visibility 0s 0s linear; }


/* General Mobile Layout Adjustments (Screens smaller than 768px) */
@media (max-width: 767.98px) { 
    body { font-size: 0.9rem; padding-top: 60px; }
    .right-column { margin-left: 0; padding: 1.8rem 1.5rem; }
    .right-column h2 { font-size: 1.4rem; }
    .content-max-width-wrapper { padding-left: 0; padding-right: 0; }
    .site-footer-wide { padding: 1.2rem 1rem; }
    .copyright-text-wide { font-size: 0.75rem; }
    h3 { font-size: 1.3rem; } 
    h4 { font-size: 1.15rem; } 
    ul.list-unstyled li { font-size: 0.85rem; } 
    .image-info-overlay .overlay-title { font-size: 1rem; }
    .image-info-overlay .overlay-details { font-size: 0.8rem; }
    .accordion-button { font-size: 1.15rem; padding: 0.4rem 0.8rem; }
    .accordion-button:not(.collapsed) { color: #000000 !important; background-color: #f0f0f0 !important; }
    .accordion-body { padding: 0.5rem 0.8rem; }
    .accordion-body ul li { font-size: 0.9rem; padding: 0.05rem 0;}
    .accordion-body h5 { font-size: 1.05rem; margin-top: 0.4rem; margin-bottom: 0.1rem; }
}
