/* ========================================
   WORK PAGE STYLES
   Clean alignment + Search
   ======================================== */

/* Lock scroll until category selected */
body.scroll-locked {
    overflow: hidden;
    height: 100vh;
}

/* Full Screen Selector */
.work-selector {
    min-height: 100vh;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 80px 80px;
}

.work-selector.hidden {
    display: none;
}

.selector-content {
    text-align: center;
    max-width: 900px;
}

.selector-content .section-label {
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    margin-bottom: 20px;
}

.selector-content h1 {
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 300;
    color: white;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.selector-intro {
    font-size: 18px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 60px;
}

/* Category Buttons */
.category-buttons {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.category-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 40px 50px;
    min-width: 320px;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.category-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
    z-index: 0;
}

.category-btn:hover::before {
    transform: scaleX(1);
}

.category-btn span {
    position: relative;
    z-index: 1;
    transition: color 0.4s ease;
}

.btn-text {
    font-size: 24px;
    font-weight: 400;
    color: white;
    letter-spacing: 1px;
}

.category-btn:hover .btn-text {
    color: #000;
}

.btn-count {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

.category-btn:hover .btn-count {
    color: rgba(0,0,0,0.6);
}

.btn-arrow {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: rgba(255,255,255,0.3);
    transition: all 0.4s ease;
}

.category-btn:hover .btn-arrow {
    color: #000;
    right: 25px;
}

/* ========================================
   WORK CONTENT
   ======================================== */

.work-content {
    display: none;
}

.work-content:not(.hidden) {
    display: block;
}

/* Category Header - Clean Alignment */
.category-header {
    background: #000;
    padding: 100px 80px 40px;
}

.header-row {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 40px;
}

.header-left h2 {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 300;
    color: white;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.header-left p {
    font-size: 15px;
    color: rgba(255,255,255,0.5);
    font-weight: 300;
}

.change-category-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 14px 28px;
    color: white;
    font-size: 13px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.change-category-btn:hover {
    background: white;
    color: #000;
    border-color: white;
}

.change-category-btn svg {
    width: 16px;
    height: 16px;
}

/* Search Row */
.search-row {
    max-width: 1400px;
    margin: 0 auto;
}

.search-box {
    position: relative;
    max-width: 500px;
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: rgba(255,255,255,0.4);
}

.search-box input {
    width: 100%;
    padding: 16px 20px 16px 55px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.search-box input::placeholder {
    color: rgba(255,255,255,0.4);
}

.search-box input:focus {
    outline: none;
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.4);
}

/* Work Grid */
.work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding: 60px 80px 80px;
    max-width: 1560px;
    margin: 0 auto;
    background: #fff;
}

.work-grid.hidden {
    display: none;
}

.work-card {
    background: white;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.4s ease;
}

.work-card:hover {
    transform: translateY(-8px);
}

.work-image {
    height: 280px;
    overflow: hidden;
}

.work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.work-info {
    padding: 25px 10px;
    text-align: center;
}

.work-info h3 {
    font-size: 17px;
    font-weight: 400;
    color: #000;
    margin-bottom: 8px;
}

.work-info p {
    font-size: 13px;
    color: #888;
    font-weight: 300;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 80px 40px;
    background: #fff;
}

.no-results.hidden {
    display: none;
}

.no-results p {
    font-size: 16px;
    color: #888;
}

/* CTA Section */
.work-cta {
    padding: 100px 80px;
    background: #000;
    text-align: center;
}

.work-cta.hidden {
    display: none;
}

.work-cta h2 {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 300;
    color: white;
    margin-bottom: 15px;
}

.work-cta p {
    font-size: 16px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 40px;
}

.work-cta .btn-primary {
    display: inline-block;
    padding: 18px 50px;
    background: transparent;
    color: white;
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: 1px solid white;
    transition: all 0.3s ease;
}

.work-cta .btn-primary:hover {
    background: white;
    color: #000;
}

/* ========================================
   RESPONSIVE - TABLET
   ======================================== */

@media (max-width: 1200px) {
    .work-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
        padding: 50px 60px 60px;
    }
}

@media (max-width: 1024px) {
    .work-selector {
        padding: 120px 40px 60px;
    }

    .category-btn {
        min-width: 280px;
        padding: 35px 40px;
    }

    .btn-text {
        font-size: 20px;
    }

    .category-header {
        padding: 100px 40px 40px;
    }

    .header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 25px;
    }

    .work-grid {
        padding: 50px 40px 60px;
    }

    .work-cta {
        padding: 80px 40px;
    }
}

/* ========================================
   RESPONSIVE - MOBILE
   ======================================== */

@media (max-width: 768px) {
    .work-selector {
        padding: 100px 20px 60px;
    }

    .selector-content h1 {
        font-size: 32px;
    }

    .selector-intro {
        font-size: 16px;
        margin-bottom: 40px;
    }

    .category-buttons {
        flex-direction: column;
        gap: 20px;
    }

    .category-btn {
        min-width: 100%;
        padding: 30px;
    }

    .btn-text {
        font-size: 18px;
    }

    .btn-arrow {
        right: 20px;
    }

    .category-header {
        padding: 90px 20px 30px;
    }

    .header-left h2 {
        font-size: 28px;
    }

    .header-left p {
        font-size: 14px;
    }

    .change-category-btn {
        padding: 12px 20px;
        font-size: 12px;
    }

    .search-box {
        max-width: 100%;
    }

    .search-box input {
        padding: 14px 15px 14px 50px;
        font-size: 13px;
    }

    .work-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 40px 20px 50px;
    }

    .work-image {
        height: 220px;
    }

    .work-info {
        padding: 20px 10px;
    }

    .work-cta {
        padding: 60px 20px;
    }
}
