/* ==========================================================================
   Simla - Portfolio Clone Styles
   An elegant, minimalist visual artist aesthetic (Cargo Collective style)
   ========================================================================== */

/* 1. ROOT & BASICS */
:root {
    --primary-color: #000000;
    --secondary-color: #222222;
    --text-muted: #666666;
    --bg-color: rgba(255, 255, 245, 0.73);
    --accent-color: #888888;
    --font-serif: "EB Garamond", "Playfair Display", Georgia, serif;
    --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--primary-color);
    font-family: var(--font-sans);
    font-size: 14.5px;
    font-weight: 400;
    line-height: 1.65;
    letter-spacing: 0.01em;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 2. LAYOUT WRAPPERS */
.site-container {
    max-width: 860px;
    margin: 0 auto;
    padding: 4rem 2rem 0 2rem; /* Removed bottom padding since it continues outside */
}

@media (max-width: 768px) {
    .site-container {
        padding: 2rem 1.25rem 0 1.25rem;
    }
}

.full-width-container {
    width: 100%;
    padding: 0 0 4rem 0; /* Add bottom padding here instead */
}

/* 3. TYPOGRAPHY */
h1, h2, h3, h4, .font-serif {
    font-family: var(--font-serif);
}

.artist-name {
    font-size: 2.2rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin: 0;
    text-transform: capitalize;
}

.artist-name a {
    color: var(--primary-color);
    text-decoration: none;
    transition: opacity 0.25s ease;
}

.artist-name a:hover {
    opacity: 0.7;
}

.section-title {
    font-size: 0.85rem;
    font-weight: 700;
    font-family: var(--font-sans);
    letter-spacing: 0.18em;
    color: var(--primary-color);
    margin: 0;
}

.text-content {
    color: var(--secondary-color);
}

.italic-custom {
    font-style: italic;
}

.text-muted-custom {
    color: var(--accent-color);
    font-size: 0.9em;
}

/* 4. DIVIDERS & RULERS */
hr.section-divider {
    border: 0;
    border-top: 1.5px solid var(--primary-color);
    opacity: 1;
    margin: 2.5rem 0;
}

/* 5. HEADER & ICONS */
.site-header {
    margin-bottom: 2.5rem;
}

.home-icon {
    color: var(--primary-color);
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.home-icon:hover {
    opacity: 0.7;
    transform: scale(1.05);
}

/* 6. GALLERY SLIDESHOW */
.gallery-section {
    position: relative;
    width: 100%;
}

.slideshow-wrapper {
    width: 100%;
    position: relative;
}

.slide-container {
    width: 100%;
    height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.slide-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    opacity: 1;
    transition: opacity 0.4s ease-in-out;
}

.slide-img.fade-out {
    opacity: 0;
}

.caption-bar {
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    color: var(--secondary-color);
    font-weight: 500;
}

.slide-caption-text {
    flex-grow: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 2rem;
}

.slide-nav {
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.nav-btn {
    cursor: pointer;
    color: var(--primary-color);
    font-weight: 600;
    transition: opacity 0.2s ease;
}

.nav-btn:hover {
    opacity: 0.6;
    text-decoration: underline;
}

.nav-divider {
    margin: 0 0.5rem;
    color: var(--accent-color);
}

.slide-counter-text {
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .slide-container {
        height: 320px;
    }
    
    .caption-bar {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.75rem;
    }
    
    .slide-caption-text {
        white-space: normal;
        padding-right: 0;
    }
}

/* 7. ENQUIRIES SECTION */
.gallery-contact-card {
    line-height: 1.8;
}

.gallery-name {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-family: var(--font-sans);
}

.address-line {
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-bottom: 0.25rem;
}

.contact-icon-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.25s ease;
}

.contact-icon-link:hover {
    color: var(--accent-color);
}

.contact-details {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.contact-item a {
    color: inherit;
    text-decoration: none;
    transition: text-decoration 0.2s ease, color 0.2s ease;
}

.contact-item a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.contact-divider {
    color: #ddd;
}

.border-end-md {
    border-right: 1px solid #eee;
}

@media (max-width: 768px) {
    .border-end-md {
        border-right: none !important;
    }
}

/* 8. SELECTED INDEX NAVIGATION & INTERACTIVITY */
.selected-index-section {
    position: sticky;
    top: 0;
    background-color: rgba(255, 255, 245, 0.85); /* Matches new root bg but translucent */
    z-index: 100;
    backdrop-filter: blur(8px);
    transition: box-shadow 0.3s ease;
}

.index-nav {
    font-size: 0.85rem;
    letter-spacing: 0.14em;
    border-bottom: 1.5px solid var(--primary-color);
}

.index-title {
    color: var(--primary-color);
}

.filter-controls {
    display: flex;
    align-items: center;
}

.filter-btn {
    cursor: pointer;
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.25s ease, font-weight 0.25s ease;
}

.filter-btn:hover, .filter-btn.active {
    color: var(--primary-color);
    font-weight: 700;
}

.filter-separator {
    margin: 0 0.6rem;
    color: #ccc;
    font-weight: 300;
}

.nav-bio-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.25s ease;
}

.nav-bio-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.scroll-down-indicator {
    color: var(--accent-color);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-4px);
    }
    60% {
        transform: translateY(-2px);
    }
}

@media (max-width: 768px) {
    .index-nav {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.5rem;
        padding-bottom: 0.75rem !important;
    }
}

/* 9. TIMELINE CONTAINER & INDEX ENTRIES */
.timeline-container {
    position: relative;
    margin-top: 1rem;
}

.timeline-year-group {
    transition: opacity 0.4s ease, transform 0.4s ease;
    opacity: 1;
    transform: translateY(0);
}

.timeline-year-group.fade-out {
    opacity: 0;
    transform: translateY(10px);
    height: 0;
    overflow: hidden;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
}

/* Styling border-top and bottom of year entries */
.timeline-year-group .row {
    border-color: #eaeaea !important;
}

.year-header {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-color);
    padding-top: 0.2rem;
}

.index-items {
    padding-left: 1rem;
}

.index-item {
    margin-bottom: 0.85rem;
    transition: opacity 0.3s ease, transform 0.3s ease;
    position: relative;
}

.index-item:last-child {
    margin-bottom: 0;
}

.index-item.hidden {
    opacity: 0;
    transform: scale(0.95);
    height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.work-title {
    font-weight: 500;
    color: var(--primary-color);
    transition: color 0.2s ease;
}

.index-item:hover .work-title {
    color: #444;
}

.venue-separator {
    color: #ddd;
    margin: 0 0.5rem;
    font-size: 0.9rem;
}

.venue {
    color: var(--secondary-color);
    font-weight: 300;
}

/* Custom Minimalist Badges for Filter Context */
.badge-pub, .badge-bio {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    padding: 0.1rem 0.4rem;
    border: 1px solid #ddd;
    border-radius: 2px;
    margin-right: 0.5rem;
    vertical-align: middle;
}

.badge-pub {
    color: #444;
    background-color: #fcfcfc;
}

.badge-bio {
    color: #444;
    background-color: #fafafa;
}

.publication-details {
    font-size: 0.82rem;
    border-left: 2px solid #eee;
    margin-top: 0.4rem;
}

@media (max-width: 768px) {
    .year-header {
        margin-bottom: 0.75rem;
        font-size: 1.25rem;
    }
    
    .index-items {
        padding-left: 0;
    }
    
    .index-item {
        margin-bottom: 1.1rem;
    }
    
    .venue-separator {
        display: block;
        height: 0;
        overflow: hidden;
        margin: 0.1rem 0;
    }
    
    .venue {
        display: block;
        margin-top: 0.15rem;
    }
}

/* 10. BIOGRAPHY DETAILS */
.bio-details-section {
    scroll-margin-top: 100px; /* Offset for sticky nav */
}

.bio-timeline {
    border-color: var(--primary-color) !important;
}

.bio-year-header {
    font-size: 1.1rem;
    font-weight: 700;
    font-family: var(--font-sans);
    color: var(--primary-color);
}

.bio-detail-content {
    font-size: 0.95rem;
}

.bio-event {
    font-size: 1.05rem;
    font-weight: 500;
}

.border-bottom-dashed {
    border-bottom: 1px dashed #eee;
}

@media (max-width: 768px) {
    .bio-year-header {
        margin-bottom: 0.25rem;
    }
}

/* 11. FOOTER */
.site-footer {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    border-top: 1.5px solid var(--primary-color);
    margin-top: 5rem;
    color: var(--text-muted);
}

.back-to-top-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s ease;
}

.back-to-top-link:hover {
    opacity: 0.6;
    text-decoration: underline;
}

.back-to-top svg {
    transition: transform 0.2s ease;
}

.back-to-top-link:hover svg {
    transform: translateY(-2px);
}
