/* --- Background & Core --- */

.archive-body {
    background-color: var(--primary-color); /* Your #272729 */
    margin: 0;
    overflow-y: hidden; /* Lock vertical scroll so only horizontal works */
}
/* --- Force Pill Link Visibility --- */
.nav-links li a.pill-link {
    color: var(--secondary-color) !important; /* Forces the off-white color */
    background: transparent !important;       /* Removes any white-on-white backgrounds */
    border: 1px solid rgba(255, 255, 255, 0.2) !important; /* Adds a subtle border so you can see the 'pill' */
    opacity: 1 !important;                    /* Forces it to be 100% visible */
    visibility: visible !important;           
    display: inline-block !important;
    padding: 8px 20px !important;
    border-radius: 50px !important;           /* Keeps the pill shape */
    transition: all 0.3s ease !important;
}

/* Hover state for contrast */
.nav-links li a.pill-link:hover {
    background-color: var(--secondary-color) !important;
    color: var(--primary-color) !important; /* Flips the colors on hover */
}

/* --- The Wrapper --- */
.archive-wrapper {
    margin-top: 100px; /* Space for your header */
    height: calc(100vh - 100px);
    display: flex;
    align-items: center; /* Centers the whole row vertically */
}

/* --- The Scroll Track --- */
.horizontal-scroll-container {
    display: flex;
    gap: 80px; /* Breathing room between projects */
    padding: 0 100px; /* Starting padding so the first item isn't glued to the edge */
    overflow-x: auto; /* Manual scroll control */
    scroll-snap-type: x proximity; /* Snaps into place smoothly */
    -webkit-overflow-scrolling: touch; /* Smooth scroll for trackpads/mobile */
}

/* Hide the scrollbar for a clean look */
.horizontal-scroll-container::-webkit-scrollbar {
    display: none;
}

/* --- The Project Card --- */
.archive-item {
    width: 450px; /* Fixed width so they don't "squish" */
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

/* --- Metadata (Number, Name, Type) --- */
.item-meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 1px solid var(--secondary-color); /* Off-white line */
    padding-bottom: 10px;
    margin-bottom: 25px;
}

.item-number {
    font-size: 0.8rem;
    font-family: var(--font-body); /* Alata */
    color: var(--secondary-color);
}

.item-title {
    font-family: "Averia Serif Libre", serif; /* Your heading font */
    font-size: 1.3rem;
    text-transform: uppercase;
    color: var(--secondary-color);
    margin: 0 15px;
}

.item-type {
    font-size: 0.7rem;
    color: var(--secondary-color);
    opacity: 0.6;
    margin: 0;
}

/* --- The Image Box --- */
.item-image {
    width: 100%;
    height: 60vh; /* Takes up 60% of the screen height */
    overflow: hidden;
    background-color: #1a1a1b; /* Slightly lighter charcoal for the "empty" state */
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image fills the box without stretching */
    transition: transform 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

.archive-item:hover img {
    transform: scale(1.05); /* Subtle zoom on hover */
}

/* --- Strip All Underlines --- */
.project-link, 
.project-link:hover, 
.project-link:visited, 
.project-link:active {
    text-decoration: none !important; /* Forces the underline to disappear */
    color: inherit; /* Keeps your off-white color */
    outline: none;
}

/* Sometimes the H3 or Span inherits a decoration, so we clear those too */
.item-title, 
.item-number, 
.item-type {
    text-decoration: none !important;
    border-bottom: none; /* Ensures no bottom borders are mistaken for underlines */
}

/* Ensure the only line visible is the architectural one we built in item-meta */
.item-meta {
    border-bottom: 1px solid var(--secondary-color); 
    text-decoration: none;
}

/* --- DESKTOP NAV --- */
.nav-links {
    display: flex;
    list-style: none;
    gap: 15px;
    align-items: center;
}

.hamburger {
    display: none; /* Hidden on Desktop */
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 2000; /* Stays above the overlay */
}

.hamburger span {
    width: 30px;
    height: 3px;
    background: white; /* Change to var(--primary-color) if background is light */
    border-radius: 10px;
    transition: 0.3s ease;
}

/* --- MOBILE STATE (Triggered at 1024px) --- */
@media (max-width: 1024px) {
    
    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none; /* Hidden by default */
    }

    /* THE OVERLAY PAGE */
    .nav-links.mobile-active {
        display: flex !important;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: #272729; /* var(--primary-color) */
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 1500;
        gap: 30px;
    }

    .nav-links.mobile-active .pill-link {
        font-size: 1.5rem;
        color: white;
        /* Matches your desktop border exactly */
        border: 1px solid rgba(255,255,255,0.15); 
        padding: 12px 30px;
        border-radius: 50px;
        display: block;
        transition: 0.3s ease;
    }

    .nav-links.mobile-active .pill-link:hover {
        background: white;
        color: var(--primary-color);
    }
}

/* --- ANIMATION (Turns into X) --- */
.hamburger.is-active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.hamburger.is-active span:nth-child(2) {
    opacity: 0;
}
.hamburger.is-active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}