.work-hero {
    padding: 120px 4rem 0px 4rem;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    background: var(--dark);
    color: var(--light);
    min-height: 60vh;
    position: relative;
}

.work-intro {
    max-width: 40%;
}

.work-intro h1 {
    font-size: 4rem;
    margin-bottom: 2rem;
}

.work-subtitle {
    color: var(--primary);
    margin-bottom: 1rem;
}

.work-description {
    font-size: 2.5rem;
    line-height: 1.2;
}

.work-hero .work-image {
    width: 600px;
    height: 500px;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 100px;
    transform: scale(1.3);
    margin-left: 300px;
}

.work-hero .work-image iframe {
    width: 300px;
    height: 250px;
    border: none;
   
}

.work-grid-section {
    padding: 0 4rem 4rem;
    background: var(--dark);
    margin-top: -70px;
}

/* Grid Layout */
.work-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    flex: 1;
}

.work-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    display: block;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.work-item:hover {
    transform: translateY(-5px);
}

.work-item .work-image {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.work-item .work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: white;
}

.work-content {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
}

.work-content h3 {
    color: white;
    margin: 0;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.work-content p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-size: 0.9rem;
}

/* Filters */
.work-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    padding: 0 4rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    white-space: nowrap;
}

.work-filters::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.filter-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    padding: 8px 16px;
    transition: all 0.3s ease;
    opacity: 0.6;
}

.filter-btn.active {
    opacity: 1;
    color: var(--primary);
    position: relative;
}

.filter-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
}

/* Container Layout */
.work-container {
    display: flex;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Iframe Column */
.iframe-column {
    width: 300px;
}

.iframe-item {
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
}

.iframe-item:last-child {
    margin-bottom: 0;
}

.iframe-item.small {
    height: 250px;
}

.iframe-item.large {
    height: 600px;
}

.iframe-item iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Load More Button */
.load-more {
    display: block;
    margin: 3rem auto 4rem;
    padding: 0.75rem 2rem;
    background: #00FF00;
    border: none;
    border-radius: 4px;
    color: var(--dark);
    cursor: pointer;
    font-size: 1rem;
    transition: opacity 0.3s ease;
}

.load-more:hover {
    opacity: 0.9;
}

.view-project {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-block;
    margin-top: 0.5rem;
}

@media screen and (max-width: 1024px) {
    .work-hero {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
        text-align: center;
        padding: 120px 3rem 0;
    }

    .work-intro {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .work-hero .work-image {
        width: 100%;
        max-width: 600px;
        height: 180px;
        margin: 1rem auto;
        transform: none;
    }

    .work-container {
        flex-direction: column;
        align-items: center;
    }

    .work-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 900px;
        margin: 0 auto;
    }

    .work-grid-section {
        padding: 0 3rem 3rem;
        text-align: center;
    }

    .iframe-column {
        width: 100%;
        max-width: 900px;
        display: flex;
        gap: 2rem;
        justify-content: center;
        margin: 0 auto;
        align-items: center;
    }

    .iframe-item {
        margin-bottom: 0;
        flex: 0 1 300px;
        max-width: 300px;
    }

    .iframe-item iframe {
        width: 100%;
        height: 100%;
        display: block;
        margin: 0 auto;
    }

    .work-hero .work-image iframe {
        width: 300px;
        height: 250px;
        display: block;
        margin: 0 auto;
    }

    .iframe-item.large {
        display: none;
    }

    .work-filters {
        justify-content: center;
        padding: 0 3rem;
        margin-bottom: 2.5rem;
    }
}

@media screen and (max-width: 768px) {
    .work-hero {
        padding: 80px 2rem 2rem;
        text-align: center;
        align-items: center;
    }

    .work-hero .work-image {
        width: 100%;
        height: 300px;
        margin: 1rem auto 0;
        transform: none;
        margin-left: 1.5rem;
    }

    .work-hero .work-image iframe {
        width: 100%;
        height: 100%;
        transform: scale(1);
    }

    .work-grid-section {
        padding: 2rem;
    }

    .work-filters {
        padding: 0 1rem;
        justify-content: center;
        gap: 0.5rem;
        margin-bottom: 2rem;
        flex-wrap: wrap;
        overflow-x: visible;
    }

    .filter-btn {
        padding: 6px 10px;
        font-size: 0.85rem;
        white-space: normal;
    }

    .work-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding-bottom: 2rem;
    }

    .work-item {
        width: 100%;
        display: flex;
        flex-direction: column;
        height: auto;
        margin-bottom: 0;
        height: 280px
    }

    .work-item .work-image {
        width: 100%;
        height: 150px;
    }

    .work-item .work-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .work-content {
        padding: 1.5rem;
        text-align: center;
        background: rgba(255, 255, 255, 0.1);
    }

    .work-content h3 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }

    .work-content p {
        font-size: 1rem;
        line-height: 1.4;
        margin-bottom: 0.5rem;
    }

    .iframe-column {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        padding-top: 0;
    }

    .iframe-item.small {
        width: 300px;
        height: 250px;
        margin: 0 auto;
    }

    .iframe-item.large {
        display: none;
    }

    .work-container {
        gap: 1rem;
    }
}

@media screen and (max-width: 360px) {
    .work-intro h1 {
        font-size: 2rem;
    }

    .work-description {
        font-size: 1.5rem;
    }

    .work-item {
        height: 200px;
    }
} 