/* ===================================
   WORK PAGE STYLES
   =================================== */

/* Page Background */
body {
    overflow-x: hidden;
}

main {
    background-color: #0B001A;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ===================================
   HERO SECTION
   =================================== */

.work-hero {
    background-color: #1E0044;
    padding: calc(var(--spacing-3xl) + 40px) 0 var(--spacing-2xl);
    position: relative;
    overflow: hidden;
    margin: 20px auto 60px;
    max-width: 1280px;
    border-radius: 32px;
}

.work-hero::before {
    content: '';
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    height: 800px;
    background: radial-gradient(circle, rgba(76, 29, 149, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    text-align: center;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}

.work-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 51.72px;
    font-weight: 500;
    line-height: 100%;
    letter-spacing: -0.04em;
    text-align: center;
    margin-bottom: var(--spacing-lg);
    color: #FFFFFF;
    animation: fadeInUp 0.8s ease-out;
}

.highlight-italic {
    font-family: Georgia, serif;
    font-style: italic;
    font-weight: 400;
    font-size: 51.72px;
    line-height: 100%;
    letter-spacing: -0.02em;
    text-align: center;
    background: linear-gradient(93deg, #8338EC 49.3%, #B923FF 87.76%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: underline;
    text-decoration-color: #A78BFA;
    text-underline-offset: 8px;
    text-decoration-thickness: 2px;
}

.work-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.125rem;
    color: #D1D5DB;
    font-weight: 500;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
    text-align: center;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

/* ===================================
   CATEGORY SECTION
   =================================== */

.category-section {
    background-color: #0B0A0F;
    padding: var(--spacing-3xl) 0;
    margin: 60px auto 20px;
    max-width: 1280px;
    border-radius: 32px;
}

/* ===================================
   CATEGORY CARDS
   =================================== */

.category-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.category-card {
    border-radius: 24px;
    padding: 40px;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

/* Development Card - Left */
.category-card:nth-child(1) {
    background: linear-gradient(135deg, #7C3AED 0%, #A78BFA 100%);
}

/* Art Direction Card - Right */
.category-card:nth-child(2) {
    background: linear-gradient(135deg, #C084FC 0%, #E879F9 100%);
}

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

.category-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 500;
    color: #FFFFFF;
    margin-bottom: 20px;
}

.category-card p {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 90%;
}

/* Category Tags */
.category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.category-tag {
    font-family: 'Montserrat', sans-serif;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 100px;
    font-size: 0.875rem;
    color: #FFFFFF;
    font-weight: 500;
    backdrop-filter: blur(4px);
}

/* ===================================
   PORTFOLIO SECTION
   =================================== */

.portfolio-section {
    padding: var(--spacing-3xl) 0;
    background-color: #0B0A0F;
    margin: 60px auto;
    max-width: 1280px;
    border-radius: 32px;
}

.portfolio-section .container {
    padding: 0;
    max-width: none;
}

/* ===================================
   FILTER TABS
   =================================== */

/* ===================================
   FILTER TABS
   =================================== */

.filter-tabs {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 60px;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
    animation: fadeInUp 0.8s ease-out;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox - hide scrollbar */
    -ms-overflow-style: none; /* IE and Edge - hide scrollbar */
}

.filter-tabs::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera - hide scrollbar */
}

.filter-tabs:active {
    cursor: grabbing;
}

.filter-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #FFFFFF;
    margin-right: 8px;
    flex-shrink: 0;
    white-space: nowrap;
}

.filter-tab {
    font-family: 'Montserrat', sans-serif;
    padding: 8px 24px;
    height: auto;
    display: inline-flex;
    align-items: center;
    background: transparent;
    border: none;
    border-radius: 100px;
    color: #9CA3AF; /* Gray text for inactive */
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    white-space: nowrap;
}

.filter-tab:hover {
    color: #FFFFFF;
}

.filter-tab.active {
    background: #1F2937; /* Dark gray pill background */
    color: #FFFFFF;
    font-weight: 600;
}

/* ===================================
   CASE STUDIES CAROUSEL
   =================================== */

/* ===================================
   CASE STUDIES CAROUSEL
   =================================== */

.case-studies-carousel {
    position: relative;
    overflow: hidden;
    max-width: 1280px;
    margin: 0 auto;
}

.case-studies-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.case-study {
    min-width: 100%;
    width: 100%;
    flex-shrink: 0;
    padding: 0 5px; /* Tiny padding to prevent cut-off shadows */
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
    box-sizing: border-box;
}

.case-study.hidden {
    display: none;
}

.case-study-content {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 40px;
    align-items: center;
    background: #F3E8FF; /* Light lavender background */
    border-radius: 32px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
}

/* Decorative line for Naelix card */
.case-study-content::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='1200' height='400' viewBox='0 0 1200 400' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 200C200 200 300 100 450 150C600 200 700 300 900 250C1100 200 1200 50 1200 50' stroke='%23E9D5FF' stroke-width='2'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    pointer-events: none;
    z-index: 0;
}

.case-study-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.case-study-text {
    position: relative;
    z-index: 1;
}

.case-label {
    font-family: 'Montserrat', sans-serif;
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #6B7280;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.case-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 16px;
    line-height: 1.1;
}

.case-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.tag {
    font-family: 'Montserrat', sans-serif;
    padding: 6px 16px;
    background: transparent;
    border: 1px solid #D1D5DB;
    border-radius: 100px;
    font-size: 0.8125rem;
    color: #4B5563;
    font-weight: 500;
}

.case-description {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: #1F2937;
    line-height: 1.6;
    margin-bottom: 24px;
    font-weight: 500;
}

.case-cta {
    font-family: 'Montserrat', sans-serif;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: #E9D5FF;
    color: #111827;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    border-radius: 100px;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.case-cta::after {
    content: '↗';
    margin-left: 8px;
    font-size: 1.1em;
    transition: transform 0.2s ease;
}

.case-cta:hover {
    background: #D8B4FE;
    transform: translateY(-2px);
}

.case-cta:hover::after {
    transform: translate(2px, -2px);
}

/* ===================================
   CASE STUDY IMAGE PLACEHOLDER
   =================================== */

.case-study-image {
    border-radius: 16px;
    overflow: hidden;
    background: #000000;
    border: none;
    position: relative;
    z-index: 1;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    height: 400px;
    width: 100%;
    max-width: 100%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.case-image {
    width: 100%;
    height: 100%;
    max-width: 100%;
    display: block;
    object-fit: cover;
    border-radius: 16px;
    background: transparent;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.case-image:hover {
    transform: scale(1.05);
}

.image-placeholder {
    aspect-ratio: 16 / 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: #0F0F11;
}

.placeholder-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 24px;
}

.placeholder-header {
    margin-bottom: 20px;
    text-align: left;
    background: transparent;
    padding: 0;
}

.placeholder-header span {
    font-size: 1.5rem;
    color: #FFFFFF;
    font-weight: 600;
}

.placeholder-body {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 0;
    align-items: start;
}

/* Mock UI Elements for Naelix Dashboard */
.mock-card {
    background: #1A1A1E;
    border-radius: 12px;
    padding: 16px;
    height: 100px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mock-line {
    height: 6px;
    background: #2A2A30;
    border-radius: 3px;
    width: 100%;
}

.mock-line.short { width: 60%; }
.mock-line.medium { width: 80%; }

.mock-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #2A2A30;
    margin-bottom: 8px;
}

/* ===================================
   CAROUSEL ARROWS
   =================================== */

.carousel-arrows {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: var(--spacing-xl);
}

.carousel-arrow {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.carousel-arrow:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

.carousel-arrow:active {
    transform: scale(0.95);
}

.carousel-arrow:disabled {
    cursor: not-allowed;
    opacity: 0.3;
}

.carousel-arrow svg {
    pointer-events: none;
}

/* ===================================
   AWARDS SECTION
   =================================== */

/* ===================================
   AWARDS SECTION
   =================================== */

.awards-section {
    background: #F3E8FF; /* Light lavender background */
    border-radius: 32px;
    max-width: 1280px;
    margin: 60px auto;
    padding: 60px 45px; /* 40px + 5px to match case-study padding */
    position: relative;
    overflow: hidden;
}

.awards-section .container {
    display: grid;
    grid-template-columns: 0.4fr 1fr;
    gap: 60px;
    align-items: start;
    padding: 0;
    max-width: none;
    margin: 0;
}

.awards-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem;
    font-weight: 500;
    color: #111827;
    margin-bottom: 0;
    animation: fadeInUp 0.8s ease-out;
}

.awards-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.award-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: all var(--transition-normal);
    animation: fadeInUp 0.8s ease-out backwards;
}

.award-item:first-child {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.award-item:nth-child(1) { animation-delay: 0.1s; }
.award-item:nth-child(2) { animation-delay: 0.2s; }
.award-item:nth-child(3) { animation-delay: 0.3s; }
.award-item:nth-child(4) { animation-delay: 0.4s; }

.award-item:hover {
    padding-left: 20px;
    background: rgba(255, 255, 255, 0.4);
}

.award-info {
    flex: 1;
}

.award-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
}

.award-org {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.875rem;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.award-link {
    color: #111827;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.award-link svg {
    width: 24px;
    height: 24px;
    stroke-width: 1.5;
}

.award-link:hover {
    transform: translate(4px, -4px);
    color: #7C3AED;
}

/* ===================================
   CTA SECTION
   =================================== */

/* ===================================
   CTA SECTION
   =================================== */

.work-cta-section {
    padding: 60px 20px;
    margin: 60px auto 20px;
    max-width: 1280px;
    background-color: #1E0044;
    border-radius: 32px;
    border: none;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.work-cta-section .container {
    background: transparent;
    border-radius: 0;
    padding: 0;
    position: relative;
    overflow: visible;
    text-align: center;
    border: none;
    max-width: 100%;
    margin: 0;
}

.cta-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.cta-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 51.72px;
    font-weight: 500;
    line-height: 100%;
    letter-spacing: -0.04em;
    text-align: center;
    color: #FFFFFF;
    margin-bottom: 0;
    animation: fadeInUp 0.8s ease-out;
}

.cta-title .highlight-italic {
    font-family: Georgia, serif;
    font-style: italic;
    font-weight: 400;
    font-size: 51.72px;
    line-height: 100%;
    letter-spacing: -0.02em;
    background: linear-gradient(93deg, #8338EC 49.3%, #B923FF 87.76%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: underline;
    text-decoration-color: #A78BFA;
    text-underline-offset: 8px;
    text-decoration-thickness: 2px;
}

.neon-badge-cta {
    position: relative;
    display: inline-block;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.neon-badge-cta:hover {
    transform: scale(1.05);
}

.badge-container {
    position: relative;
    width: 160px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.badge-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.6));
}

.wavy-outer {
    stroke: #D8B4FE;
    stroke-width: 1.5;
    filter: drop-shadow(0 0 4px #A855F7);
}

.wavy-inner {
    stroke: #E9D5FF;
    stroke-width: 1;
    opacity: 0.8;
}

.badge-text {
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    animation: rotateText 20s linear infinite;
    transform-origin: center;
}

.badge-icon {
    position: relative;
    z-index: 2;
    color: #FFFFFF;
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.8));
}

@keyframes rotateText {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 768px) {
    .work-hero {
        padding: calc(var(--spacing-2xl) + 40px) 24px var(--spacing-2xl);
        margin: 20px 16px 60px;
    }

    .hero-content {
        margin-bottom: 40px;
    }

    .work-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .category-section {
        display: none; /* Hide category cards on mobile */
    }

    .portfolio-section {
        margin: 60px 16px;
        padding: var(--spacing-3xl) 24px;
    }

    .filter-tabs {
        margin-bottom: 40px;
        justify-content: flex-start;
        overflow-x: auto;
        padding: 0 0 10px 0;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap;
    }

    .case-studies-carousel {
        padding: 0 5px; /* Match desktop padding */
    }

    .case-study-content {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 24px;
        text-align: left;
        border-radius: 20px;
    }

    .carousel-arrows {
        gap: 12px;
        margin-top: var(--spacing-lg);
    }

    .carousel-arrow {
        width: 44px;
        height: 44px;
    }

    /* Flatten the structure for reordering */
    .case-study-text {
        display: contents;
    }

    /* Order 1: Label, Title, Tags */
    .case-label {
        order: 1;
        justify-content: flex-start;
    }

    .case-title {
        order: 2;
        font-size: 2.5rem;
        margin-bottom: 10px;
    }

    .case-tags {
        order: 3;
        justify-content: flex-start;
        margin-bottom: 20px;
    }

    /* Order 2: Image */
    .case-study-image {
        order: 4;
        margin: 20px 0;
        width: 100%;
        height: 300px;
        border-radius: 16px;
    }

    .case-image {
        width: 100%;
        height: 100%;
        border-radius: 16px;
        display: block;
        object-fit: cover;
        background: transparent;
    }

    /* Order 3: Description */
    .case-description {
        order: 5;
        margin-top: 10px;
    }

    /* Order 4: Button */
    .case-cta {
        order: 6;
        width: auto; /* Revert full width if not needed, or keep 100% */
        display: inline-flex;
        margin-top: 10px;
    }

    .placeholder-body {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .awards-section {
        padding: 60px 29px; /* 24px + 5px to match case-study padding */
        margin: 60px 16px;
    }

    .awards-section .container {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0;
    }

    .awards-title {
        font-size: 2.5rem;
        text-align: center;
    }

    .award-item {
        padding: 20px 0;
    }

    .work-cta-section {
        padding: 60px 24px;
        margin: 60px 16px 20px;
    }

    .work-cta-section .container {
        padding: 0;
    }

    .cta-title {
        font-size: 2.5rem;
    }

    .circular-cta {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 480px) {
    .category-card {
        padding: var(--spacing-md);
    }

    .category-card h3 {
        font-size: 1.25rem;
    }

    .category-card p {
        font-size: 0.875rem;
    }

    .case-study-content {
        padding: var(--spacing-md);
    }

    .case-study-image {
        border-radius: 12px;
        margin: 16px 0;
        height: 250px;
    }

    .case-image {
        border-radius: 12px;
        object-fit: cover;
        background: transparent;
    }

    .award-name {
        font-size: 1rem;
    }
}

/* ===================================
   IMAGE ZOOM MODAL
   =================================== */

.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.image-modal.active {
    display: flex;
}

.image-modal img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
}

.image-modal-close {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #FFFFFF;
    font-size: 24px;
    font-weight: 300;
}

.image-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===================================
   SMALL MOBILE (< 480px)
   =================================== */

@media (max-width: 480px) {
    .work-hero {
        margin: 16px 12px 40px;
        padding: calc(var(--spacing-2xl) + 20px) 16px var(--spacing-xl);
    }

    .work-title {
        font-size: clamp(1.75rem, 7vw, 2.5rem);
    }

    .category-section {
        margin: 40px 12px 16px;
        padding: var(--spacing-2xl) 16px;
    }

    .portfolio-section {
        margin: 40px 12px;
        padding: var(--spacing-2xl) 16px;
    }

    .case-study-content {
        padding: 20px;
    }

    .awards-section {
        margin: 40px 12px;
        padding: 40px 20px;
    }

    .work-cta-section {
        margin: 40px 12px 16px;
        padding: 40px 16px;
    }

    .cta-title {
        font-size: 2rem;
    }

    .carousel-arrow {
        width: 40px;
        height: 40px;
    }

    .carousel-arrow svg {
        width: 20px;
        height: 20px;
    }
}

/* ===================================
   ANIMATIONS
   =================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}
