/* --- VARIABLES & BASE --- */
:root {
    --bg: #F9F9F7;
    --text: #121212;
    --overlay: rgba(18, 18, 18, 0.9);
    --font-serif: 'Instrument Serif', serif;
    --font-sans: 'Inter', sans-serif;
    /* Smooth, professional easing for the slide */
    --transition-slide: cubic-bezier(0.25, 1, 0.5, 1);
}

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

html { 
    scroll-behavior: smooth; 
}

body { 
    background: var(--bg); 
    color: var(--text); 
    font-family: var(--font-sans); 
    -webkit-font-smoothing: antialiased; 
    overflow-x: hidden; 
    width: 100%;
}

/* --- NAVBAR --- */
.navbar {
    position: fixed; 
    top: 0; 
    width: 100%; 
    height: 100px; 
    padding: 0 5%;
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    z-index: 9999; 
    background: linear-gradient(to bottom, #ffffff 0%, #fcfcf9 100%) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.5s var(--transition-slide), height 0.3s ease;
}

.navbar--hidden { transform: translateY(-100%); }

.logo { 
    font-weight: 600; 
    letter-spacing: 2px; 
    font-size: 0.9rem; 
    text-transform: uppercase; 
}

/* Ensure Logo link stays black and matches site text color */
.logo a, 
.artist-name-link {
    color: var(--text) !important;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.logo a:hover {
    opacity: 0.7;
}

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

.nav-links a { 
    text-decoration: none; 
    color: var(--text); 
    font-size: 0.85rem; 
    text-transform: uppercase; 
    letter-spacing: 2px; 
    margin-left: 30px; 
    transition: 0.3s; 
}

.nav-socials { 
    display: flex; 
    align-items: center; 
    gap: 15px; 
    margin-left: 30px; 
}

.nav-socials a { 
    margin-left: 0; 
    opacity: 0.6; 
    font-size: 1rem; 
    transition: 0.3s; 
    color: var(--text); 
}

.nav-socials a:hover { opacity: 1; }

/* --- HERO CAROUSEL --- */
.hero { 
    height: 90vh; 
    padding: 0; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    background: #F9F9F7;
    overflow: hidden;
    position: relative;
    user-select: none; 
}

.hero-container { 
    width: 100%; 
    height: 100%;
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    height: 60vh; 
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; 
}

.carousel-track-container {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex; 
    align-items: center; 
}


.carousel-track {
    display: flex;
    align-items: center;
    height: 100%;
    width: max-content; 
    gap: 2vw; /* ADDED: This forces a strict, unbreakable gap between every image */
    will-change: transform; 
    transition: transform 0.45s cubic-bezier(0.2, 0, 0.2, 1);
}

.carousel-slide {
    height: 100%;
    flex: 0 0 auto; 
    display: flex;
    justify-content: center;
    align-items: center;
    /* Removed the side padding since the gap handles spacing much better now */
    transition: opacity 0.3s ease;
}

.carousel-slide img {
    height: 95%; /* Increased from 85% to make them taller */
    width: auto; 
    max-width: 65vw; /* Increased from 50vw to allow wide images to be much larger */
    object-fit: contain;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    pointer-events: none; 
    user-select: none;
}

.track-dragging {
    transition: none !important;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
}

.prev-btn { left: 30px; }
.next-btn { right: 30px; }

/* --- GENERAL TYPOGRAPHY --- */
.section-main-title {
    font-family: var(--font-sans);
    font-size: 3.5rem; 
    font-weight: 600; 
    letter-spacing: -0.03em;
    margin-bottom: 60px;
    text-align: center;
}

/* --- ABOUT SECTION --- */
.about-section { 
    padding: 120px 5%; 
    text-align: center; 
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
    position: relative;
    z-index: 1;
}

.content-limit-narrow { max-width: 800px; margin: 0 auto; } 

.about-manifesto {
    font-family: var(--font-sans);
    font-size: 1.8rem;
    font-weight: 300;
    line-height: 1.6;
    color: var(--text);
    letter-spacing: -0.01em;
}

/* --- BIOGRAPHY SECTION --- */

/* --- BIOGRAPHY SECTION --- */
.bio-section { 
    padding: 100px 5%; 
    background: linear-gradient(180deg, #ffffff 0%, #f9f7f2 100%);
    border-top: 1px solid rgba(0,0,0,0.03);
}

.bio-intro { 
    max-width: 900px; 
    margin: 0 auto 80px; 
    text-align: center; 
    font-size: 1.2rem; 
    line-height: 1.8; 
    color: #444; 
}

.bio-grid { 
    display: flex;
    flex-direction: column; 
    gap: 80px;
    max-width: 800px;
    margin: 0 auto;
}

/* All columns now start flush left with no extra padding or side-lines */
.bio-column { 
    position: relative; 
    padding-left: 0; 
}

/* Unifying titles: Large size, flush left, no bottom border */
.bio-sub { 
    font-size: 1.3rem; 
    text-transform: uppercase; 
    letter-spacing: 2px; 
    color: #121212; 
    margin-bottom: 50px; 
    border-bottom: none; 
    padding-bottom: 0; 
    text-align: left; 
}

/* --- EXHIBITION TIMELINE (Left Column) --- */
.exhibit-item { 
    display: flex; 
    gap: 120px; 
    margin-bottom: 35px; 
    align-items: baseline; 
    position: relative;
}

.exhibit-item span { 
    flex: 0 0 110px; 
    text-align: left; 
    font-weight: 600; 
    font-size: 0.85rem; 
    color: var(--text); 
}

.exhibit-item p { 
    flex: 1; 
    font-size: 1rem; 
    line-height: 1.6; 
    color: #444; 
}

.exhibit-item::before {
    content: ''; 
    position: absolute; 
    left: 165px; 
    top: 6px; 
    width: 11px; 
    height: 11px;
    background: #121212; 
    border-radius: 50%; 
    z-index: 2;
}

.exhibit-item::after {
    content: '';
    position: absolute;
    left: 170px; 
    top: 17px;   
    bottom: -41px; 
    width: 1px;
    background: #d1d1d1;
    z-index: 1;
}

.exhibit-item:last-child::after { display: none; }

/* --- ACHIEVEMENTS STYLE (Right Column) --- */
.highlight-group { 
    margin-bottom: 45px; 
    text-align: left; 
}

.highlight-group h4 { 
    font-size: 1rem; 
    margin-bottom: 15px; 
    font-weight: 600; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    color: var(--text); 
}

.highlight-group ul { 
    list-style: none; 
    padding-left: 0; 
}

.highlight-group li { 
    font-size: 0.95rem; 
    line-height: 1.6; 
    margin-bottom: 12px; 
    color: #555; 
    position: relative; 
    padding-left: 20px; 
}

.highlight-group li::before { 
    content: "–"; 
    position: absolute; 
    left: 0; 
}
/* --- HIGHLIGHT GROUP (Right Column) --- */
.highlight-group { margin-bottom: 45px; text-align: left; }
.highlight-group h4 { font-size: 1rem; margin-bottom: 15px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--text); }
.highlight-group ul { list-style: none; }
.highlight-group li { font-size: 0.95rem; line-height: 1.6; margin-bottom: 12px; color: #555; position: relative; padding-left: 20px; }
.highlight-group li::before { content: "–"; position: absolute; left: 0; }

/* --- ARTWORK GRID (Home & Series) --- */
.gallery-section { 
    padding: 100px 10%; 
    text-align: center; 
    background: linear-gradient(180deg, #F9F9F7 0%, #F4F6F6 100%);
}

.series-portal-grid { 
    display: grid; 
    grid-template-columns: repeat(6, 1fr); 
    gap: 20px; 
}

.portal-card { 
    position: relative; 
    aspect-ratio: 3 / 4; 
    overflow: hidden; 
    text-decoration: none; 
    background: #eee; 
}

.portal-card img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: transform 0.8s var(--transition-slide); 
}

.portal-overlay { 
    position: absolute; 
    inset: 0; 
    background: var(--overlay); 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    opacity: 0; 
    transition: 0.4s; 
    padding: 20px; 
}

.portal-card:hover .portal-overlay { opacity: 1; }
.portal-card:hover img { transform: scale(1.05); }

/* ZOOM FIX FOR FAST LANE TO HIDE BUILT-IN WHITE SPACE */
a.portal-card[href="fast-lane.html"] img {
    transform: scale(1.5);
}
a.portal-card[href="fast-lane.html"]:hover img {
    transform: scale(1.55);
}

.portal-overlay h3 { 
    color: #fff; 
    font-family: var(--font-serif); 
    font-size: 1.8rem; 
    margin-bottom: 15px; 
    font-style: italic; 
}

.portal-overlay .view-btn { 
    color: #ffffff !important; 
    border-bottom: 1px solid rgba(255,255,255,0.4); 
    padding-bottom: 2px; 
    font-size: 0.8rem; 
    letter-spacing: 2px; 
    text-transform: uppercase; 
}

.artwork-grid { 
    display: grid; 
    grid-template-columns: repeat(6, 1fr); 
    gap: 60px 30px; 
    margin-top: 60px; 
    text-align: center; 
}

/* Make items act like 3 columns on Desktop & Tablet */
@media (min-width: 769px) {
    .portal-card,
    .artwork-card { 
        grid-column: span 2; 
        width: 100%; 
    }
}

.artwork-card { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    width: 100%; 
}

.artwork-card img { 
    width: 100%; 
    aspect-ratio: 1 / 1; 
    object-fit: contain; 
    background: rgba(0,0,0,0.02); 
    display: block; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); 
    transition: transform 0.5s var(--transition-slide); 
}

.artwork-card:hover img { transform: translateY(-8px); }
.artwork-caption { 
    margin-top: 20px; 
    min-height: 60px; 
    text-align: center; 
}
.art-title { font-weight: 600; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 1px; }
.art-details { font-size: 0.85rem; opacity: 0.5; margin-top: 5px; }

/* --- SERIES HEADER --- */
.series-header { 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    border-bottom: 1px solid rgba(0,0,0,0.1); 
    padding-bottom: 40px; 
    margin-bottom: 80px; 
    text-align: center; 
}

.series-title { 
    font-family: var(--font-serif); 
    font-size: 4rem; 
    margin-bottom: 0; 
    border-bottom: none; 
    font-style: italic; 
}

.technique-box { 
    margin-bottom: 0; 
    padding-left: 40px; 
    border-left: 1px solid rgba(0,0,0,0.1); 
}

.technique-box h3 { 
    font-size: 0.75rem; 
    letter-spacing: 2px; 
    text-transform: uppercase; 
    margin-bottom: 10px; 
    opacity: 0.5; 
}

.technique-box ul { 
    list-style: none; 
    font-family: var(--font-serif); 
    font-size: 1.4rem; 
    font-style: italic; 
}

/* --- FOOTER --- */
.footer { 
    padding: 100px 5%; 
    text-align: center; 
    background: linear-gradient(180deg, #f9f7f2 0%, #ececec 100%); 
    border-top: 1px solid rgba(0,0,0,0.05); 
}

.contact-section { max-width: 800px; margin: 0 auto; }

.input-group { margin-bottom: 35px; text-align: left; }

.input-group input, 
.input-group textarea { 
    width: 100%; 
    padding: 20px 0; 
    background: transparent; 
    border: none; 
    border-bottom: 1px solid rgba(0,0,0,0.1) !important; 
    outline: none; 
    font-size: 1.1rem; 
    color: var(--text); 
    font-family: var(--font-sans); 
}

.submit-btn { 
    background: var(--text); 
    color: var(--bg); 
    border: none; 
    padding: 25px; 
    width: 100%; 
    text-transform: uppercase; 
    letter-spacing: 3px; 
    cursor: pointer; 
    font-size: 1rem; 
    transition: 0.4s; 
}

.submit-btn:hover { background: #333; }

.copyright { 
    margin-top: 100px; 
    font-size: 0.7rem; 
    opacity: 0.3; 
    letter-spacing: 2px; 
    text-transform: uppercase; 
}

/* --- UTILS --- */
.fade-up { 
    opacity: 0; 
    transform: translateY(20px); 
    transition: 1s var(--transition-slide); 
}

.fade-up.visible { 
    opacity: 1; 
    transform: translateY(0); 
}

.delay-1 { transition-delay: 0.2s; }

/* --- RESPONSIVE ADAPTIVE MEDIA QUERIES --- */

/* Tablets / Small Desktops */
@media (max-width: 1024px) and (min-width: 769px) { 
    /* Switch to 4 columns under the hood for Tablets */
    .series-portal-grid,
    .artwork-grid { 
        grid-template-columns: repeat(4, 1fr); 
    } 
    .carousel-slide img { max-width: 80vw; } 
}

/* Mobile Devices */
@media (max-width: 768px) { 
    /* Navbar Adjustment: Stacks logo and socials cleanly */
    .navbar { 
        height: 80px; 
        padding: 0 20px;
        flex-direction: row; /* Keep logo and socials on one line */
        justify-content: space-between; 
    }

    .logo {
        font-size: 0.75rem;
        letter-spacing: 1px;
    }

    /* Hide desktop nav links on small mobile to avoid overlap */
    .nav-links > a {
        display: none;
    }

    .nav-links {
        margin-left: 0;
    }

    .nav-socials { 
        margin-left: 10px; 
        gap: 12px;
    }

    .nav-socials a {
        font-size: 0.9rem;
    }

  /* Grids: 2 columns for Series, 1 column for individual artworks */
  /* Grids: 2 columns for Series, 1 column for individual artworks */
    .series-portal-grid { 
        grid-template-columns: repeat(4, 1fr) !important; /* Use 4-column math for centering */
        gap: 15px; 
    } 
    
    .series-portal-grid > .portal-card {
        grid-column: span 2; /* Force items to act like a 2-column grid */
    }

    /* Center ONE orphan item on the last row for Mobile */
    .series-portal-grid > .portal-card:nth-child(2n + 1):last-child {
        grid-column: 2 / span 2; 
    }

    .artwork-grid { 
        grid-template-columns: 1fr !important; 
        gap: 40px;
    }

    .section-main-title {
        font-size: 2.2rem;
        margin-bottom: 40px;
    }

    /* Series Header: Fix alignment for mobile */
    .series-header { 
        flex-direction: column; 
        align-items: center; 
        gap: 20px; 
    }

    .series-title {
        font-size: 2.8rem;
    }

    .technique-box { 
        padding-left: 0; 
        border-left: none; 
        text-align: center;
    }

    /* Carousel Adjustment */
    /* Carousel Adjustment */
    .carousel-wrapper { 
        height: 50vh; 
    }
    .carousel-slide {
        /* This allows the wide image container to expand as much as it needs to */
        width: max-content; 
        padding: 0 10px; /* Slight buffer between images */
    }
    .carousel-slide img { 
        /* We remove the max-width restriction. 
           Because height is 95%, the width will scale up automatically to match! */
        max-width: none; 
        width: auto;
        height: 95%; 
        object-fit: contain; 
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .prev-btn { left: 10px; }
    .next-btn { right: 10px; }

    /* Manifesto Adjustment */
    .about-manifesto {
        font-size: 1.3rem;
    }
}


/* --- HAMBURGER MENU STYLES --- */

/* Hide toggle by default on Desktop */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 10001;
}

.mobile-menu-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: var(--text);
    transition: 0.3s;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex; /* Show the hamburger */
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%; /* Hidden off-screen */
        width: 100%;
        height: 100vh;
        background: var(--bg);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.5s var(--transition-slide);
        z-index: 10000;
    }

    /* When menu is active */
    .nav-links.active {
        right: 0;
    }

    .menu-items {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 30px;
        margin-bottom: 40px;
    }

    .nav-links a {
        margin-left: 0;
        font-size: 1.5rem; /* Larger links for touch */
    }

    .nav-socials {
        margin-left: 0;
        gap: 25px;
    }

    .nav-socials a {
        font-size: 1.5rem;
    }

    /* Animate Hamburger to "X" when open */
    .mobile-menu-toggle.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .mobile-menu-toggle.active .bar:nth-child(2) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /* --- ARTWORK OVERLAY FIX FOR MOBILE ONLY --- */
    /* 1. Make the overlay permanently visible on mobile */
 /* --- ARTWORK OVERLAY FIX FOR MOBILE ONLY --- */
    /* 1. Make the overlay permanently visible on mobile */
    .portal-overlay {
        opacity: 1; 
        /* Made the dark gradient taller (80%) to protect the white text better */
        background: linear-gradient(to top, rgba(18,18,18,0.95) 0%, rgba(18,18,18,0) 80%); 
        justify-content: flex-end; 
        padding-bottom: 30px;
    }
    
    /* 2. Add text shadow to the Title */
    .portal-overlay h3 {
        font-size: 1.6rem;
        margin-bottom: 10px;
        text-shadow: 0px 2px 10px rgba(0, 0, 0, 0.9); /* Strong black shadow */
    }

    /* 3. Add text shadow to the "View Collection" button */
    .portal-overlay .view-btn {
        text-shadow: 0px 2px 8px rgba(0, 0, 0, 0.9); /* Strong black shadow */
        border-bottom: 1px solid rgba(255,255,255,0.7); /* Makes the underline slightly more visible */
    }
} /* <--- This closing bracket is what keeps it mobile-only! */

/* --- CENTER ORPHAN GRID ITEMS (6-Column Math) --- */

/* 1. For Desktop (3-Column Layout visually) */
@media (min-width: 1025px) {
    /* Center ONE item on the last row */
    .series-portal-grid > .portal-card:nth-child(3n + 1):last-child,
    .artwork-grid > .artwork-card:nth-child(3n + 1):last-child {
        grid-column: 3 / span 2; 
    }

    /* Center TWO items on the last row */
    .series-portal-grid > .portal-card:nth-child(3n + 1):nth-last-child(2),
    .artwork-grid > .artwork-card:nth-child(3n + 1):nth-last-child(2) {
        grid-column: 2 / span 2; 
    }
    .series-portal-grid > .portal-card:nth-child(3n + 2):last-child,
    .artwork-grid > .artwork-card:nth-child(3n + 2):last-child {
        grid-column: 4 / span 2; 
    }
}

/* 2. For Tablets (2-Column Layout visually) */
@media (max-width: 1024px) and (min-width: 769px) {
    /* Center ONE item on the last row */
    .series-portal-grid > .portal-card:nth-child(2n + 1):last-child,
    .artwork-grid > .artwork-card:nth-child(2n + 1):last-child {
        grid-column: 2 / span 2; 
    }
}

/* Biography Timeline adjustments for Mobile */
/* Biography Timeline adjustments for Mobile */
/* Biography Timeline adjustments for Mobile */
    /* Biography Timeline adjustments for Mobile */
.bio-column .bio-sub {
    padding-left: 0;
    font-size: 1.2rem; /* Slightly smaller for mobile screens */
}

.exhibit-item {
    gap: 60px; /* Reduced gap for narrow screens */
}

.exhibit-item span {
    flex: 0 0 80px; /* Narrower date column */
}

.exhibit-item::before {
    left: 105px; /* Re-centers bullet based on mobile gap */
}

.exhibit-item::after {
    left: 110px; /* Re-centers line based on mobile gap */
}

.highlight-group li {
    font-size: 0.9rem; /* Better readability on mobile */
}



    




/* Styling for the clickable achievement links */
.highlight-group li a {
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid rgba(18, 18, 18, 0.2);
    transition: all 0.3s ease;
}

.highlight-group li a:hover {
    color: #000;
    border-bottom: 1px solid rgba(18, 18, 18, 1);
}











/* --- IMAGE MODAL (LIGHTBOX) --- */
#image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(18, 18, 18, 0.95);
    z-index: 100000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#image-modal.modal-visible {
    opacity: 1;
    pointer-events: auto;
}

#modal-image {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    border-radius: 4px;
}

#close-modal {
    position: absolute;
    top: 25px;
    right: 40px;
    color: #fff;
    font-size: 45px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
    user-select: none;
}

#close-modal:hover {
    color: #aaa;
}






