/* ===================================
   WORK PAGE - ORBIS.EXMACHINA
   =================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: #0a0a0a;
    color: #fff;
    overflow-x: hidden;
}

/* ===================================
   WORK HERO SECTION
   =================================== */

.work-hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0d0d12 0%, #0a0a0a 100%);
    position: relative;
    overflow: hidden;
    padding: 8rem 2rem 4rem;
}

.work-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(59, 68, 75, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.work-hero-container {
    max-width: 1000px;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 1;
}

.work-label {
    display: inline-block;
    font-size: 0.7rem;
    letter-spacing: 4px;
    color: rgba(255, 255, 255, 0.6);
    padding: 0.7rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    text-transform: uppercase;
    background: rgba(59, 68, 75, 0.1);
    backdrop-filter: blur(10px);
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease forwards;
}

.work-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(4rem, 10vw, 8rem);
    letter-spacing: 12px;
    color: #3B444B;
    margin-bottom: 2rem;
    line-height: 1;
}

.work-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
    max-width: 700px;
    margin: 0 auto 3rem;
    animation: fadeInUp 0.8s ease 0.3s forwards;
    opacity: 0;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    animation: fadeIn 1s ease 1s forwards;
}

.scroll-mouse {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    position: relative;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s ease-out infinite;
}

@keyframes scroll {
    0% {
        top: 8px;
        opacity: 1;
    }
    100% {
        top: 24px;
        opacity: 0;
    }
}

.scroll-indicator span {
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
}

/* ===================================
   CATEGORIES GRID
   =================================== */

.work-categories {
    padding: 6rem 2rem;
    background: #0a0a0a;
}

.work-container {
    max-width: 1400px;
    margin: 0 auto;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 2.5rem;
}

/* Category Card */
.work-category-card {
    display: block;
    text-decoration: none;
    color: inherit;
    opacity: 0;
    transform: translateY(50px);
}

.work-card-inner {
    position: relative;
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    background: #0d0d12;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.work-category-card:hover .work-card-inner {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(59, 68, 75, 0.4);
}

/* Video Background */
.work-card-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.work-card-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.work-category-card:hover .work-card-video {
    transform: scale(1.1);
}

.work-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(10, 10, 10, 0.3) 0%,
        rgba(10, 10, 10, 0.6) 50%,
        rgba(10, 10, 10, 0.9) 100%
    );
    z-index: 2;
    transition: opacity 0.5s ease;
}

.work-category-card:hover .work-card-overlay {
    opacity: 0.7;
}

/* Card Content */
.work-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2.5rem;
    z-index: 3;
}

.work-card-number {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 5rem;
    letter-spacing: 4px;
    color: rgba(59, 68, 75, 0.3);
    line-height: 1;
    margin-bottom: 1rem;
    transition: all 0.5s ease;
}

.work-category-card:hover .work-card-number {
    color: rgba(59, 68, 75, 0.6);
    transform: translateY(-10px);
}

.work-card-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.2rem;
    letter-spacing: 4px;
    color: #fff;
    margin-bottom: 0.8rem;
    line-height: 1.2;
    transition: all 0.3s ease;
}

.work-category-card:hover .work-card-title {
    color: #3B444B;
}

.work-card-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.work-category-card:hover .work-card-description {
    color: rgba(255, 255, 255, 0.9);
}

.work-card-arrow {
    width: 50px;
    height: 50px;
    background: rgba(59, 68, 75, 0.2);
    border: 1px solid rgba(59, 68, 75, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.work-card-arrow i {
    font-size: 1.2rem;
    color: #fff;
    transition: transform 0.3s ease;
}

.work-category-card:hover .work-card-arrow {
    background: #3B444B;
    border-color: #3B444B;
    transform: translateX(10px);
}

.work-category-card:hover .work-card-arrow i {
    transform: translateX(5px);
}

/* ===================================
   CTA SECTION
   =================================== */

.work-cta {
    padding: 8rem 2rem;
    background: linear-gradient(135deg, #0d0d12 0%, #0a0a0a 100%);
    position: relative;
    overflow: hidden;
}

.work-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 50%, rgba(59, 68, 75, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.work-cta-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.work-cta-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(3rem, 8vw, 6rem);
    letter-spacing: 8px;
    color: #3B444B;
    margin-bottom: 1.5rem;
    line-height: 1;
}

.work-cta-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 3rem;
}

.work-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 3rem;
    background: #3B444B;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 2px;
    border-radius: 50px;
    font-size: 0.95rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 40px rgba(59, 68, 75, 0.3);
}

.work-cta-button:hover {
    background: #4a5562;
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(59, 68, 75, 0.5);
}

.work-cta-button i {
    transition: transform 0.3s ease;
}

.work-cta-button:hover i {
    transform: translateX(5px);
}

/* ===================================
   ANIMATIONS
   =================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* ===================================
   RESPONSIVE
   =================================== */

/* Tablet */
@media (max-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
        gap: 2rem;
    }
    
    .work-card-inner {
        height: 450px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .work-hero {
        min-height: 70vh;
        padding: 6rem 1.5rem 3rem;
    }
    
    .work-title {
        font-size: 4rem;
        letter-spacing: 6px;
    }
    
    .work-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .work-categories {
        padding: 4rem 1.5rem;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .work-card-inner {
        height: 400px;
    }
    
    .work-card-content {
        padding: 2rem;
    }
    
    .work-card-number {
        font-size: 4rem;
    }
    
    .work-card-title {
        font-size: 1.8rem;
        letter-spacing: 3px;
    }
    
    .work-cta {
        padding: 6rem 1.5rem;
    }
    
    .work-cta-title {
        font-size: 3rem;
        letter-spacing: 4px;
    }
    
    .work-cta-text {
        font-size: 1rem;
    }
    
    .work-cta-button {
        padding: 1rem 2.5rem;
        font-size: 0.85rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .work-title {
        font-size: 3rem;
        letter-spacing: 4px;
    }
    
    .work-card-inner {
        height: 350px;
    }
    
    .work-card-number {
        font-size: 3rem;
    }
    
    .work-card-title {
        font-size: 1.5rem;
        letter-spacing: 2px;
    }
    
    .work-card-description {
        font-size: 0.9rem;
    }
}