/* --- WORK HUB STYLES --- */

.hub-container {
    max-width: 1200px;
    margin: 160px auto 100px;
    padding: 0 20px;
}

.hub-header {
    margin-bottom: 80px;
}

.hub-title {
    font-family: 'Anton', sans-serif;
    font-size: clamp(4rem, 10vw, 8rem); /* Fluid typography */
    line-height: 0.9;
    margin-bottom: 20px;
}

.hub-subtitle {
    font-size: 1.2rem;
    color: var(--secondary-gray);
    max-width: 500px;
}

/* Filter Bar
.filter-bar {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 40px;
    font-size: 0.9rem;
    font-weight: 600;
}

.filter-btn {
    background: none;
    border: 1px solid #ddd;
    padding: 6px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: 0.3s;
}

.filter-btn.active, .filter-btn:hover {
    background: var(--primary-black);
    color: white;
    border-color: var(--primary-black);
} */

/* Grid Logic */
.work-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columns on desktop */
    gap: 60px 40px;
}

.hub-card {
    text-decoration: none;
    color: inherit;
    display: block;
}

.card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #f0f0f0;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position:0% center;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Hover Effects */
.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(59, 130, 246, 0.9); /* var(--accent-blue) with opacity */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    opacity: 0;
    transition: 0.3s ease;
}

.hub-card:hover .card-overlay {
    opacity: 1;
}

.hub-card:hover .card-image img {
    transform: scale(1.05);
}

/* Card Typography */
.card-category {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--accent-blue);
    letter-spacing: 1px;
}

.card-title {
    font-family: 'Anton', sans-serif;
    font-size: 2rem;
    margin: 10px 0;
}

.card-desc {
    font-family: 'Inter', sans-serif;
    color: var(--secondary-gray);
    font-size: 1rem;
    line-height: 1.5;
}

/* Mobile Responsive */
@media (max-width: 850px) {
    .work-grid {
        grid-template-columns: 1fr; /* 1 column on tablets/phones */
    }
    .hub-title { font-size: 4rem; }
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    
    /* The Secret Sauce */
    width: 100%; 
    box-sizing: border-box; /* Ensures padding doesn't add to the width */
    padding: 20px 5%;     /* Reduced 10% to 5% for better spacing on smaller screens */
    
    position: fixed;
    top: 0;
    left: 0; /* Align it to the absolute start of the screen */
    
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid #eee; /* Optional: adds a nice subtle line */
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 60px; /* Adjust this to make your logo bigger or smaller */
    width: auto;  /* Keeps the aspect ratio perfect */
    display: block;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    font-family: 'Inter';
    text-decoration: none;
    color: var(--primary-black);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;

    display: inline-block; /* Allows the link to hold height/padding */
    padding: 8px 0;       /* Adds clickable area above/below text */
    border-bottom: 2px solid transparent; /* Prevents "jumping" when active */
    transition: 0.3s ease;
}

.nav-links a.active {
    border-bottom: 2px solid black;
    padding-bottom: 4px; /* Space between text and line */
    color: black; /* Keeps it dark */
}

.nav-links a:hover {
    border-bottom: 2px solid black;
    padding-bottom: 4px;
    color: black;
}