/* Work Detail Page Styles */
.work-detail {
    padding-top: 60px;
    max-width: 1000px;
    margin: 0 auto;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding-left: 365px;
    padding-right: 20px;
    min-height: 100vh;
    padding-bottom: 60px;
}

/* Hero Section */
.project-hero {
    width: 100%;
    margin-bottom: 40px;
    border-radius: 12px;
    overflow: hidden;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    position: relative;

}

.phone-container {
    width: 600px;
    /* Increased width for larger image */
    border-radius: 16px;
    /* Adjusted border radius */
    overflow: hidden;
    background: #1a1a1a;
}

.hero-image {
    width: 100%;
    height: 338px;
    display: block;
    border-radius: 20px;
    position: relative;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.002);
    border: 0.01px solid rgba(255, 255, 255, 0.04);
}

/* Project Title */
.project-header {
    margin-bottom: 60px;
}

.project-title {
    font-size: 32px;
    font-weight: 500;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
}

/* Project Info Grid */
.project-info-grid {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 32px;
}

.detail-row {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 24px;
    width: 100%;
    text-align: left;
}

.detail-label {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    font-weight: 400;
}

.detail-value {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    line-height: 1.6;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 16px;
    margin-top: 32px;
    margin-bottom: 32px;
}

.btn-primary,
.btn-secondary {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: #fff;
    color: #000;
    border: none;
}

.btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: none;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Project Description */
.project-description {
    width: 100%;
    margin-top: 40px;
}

.project-description p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 24px;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .work-detail {
        padding-left: 325px;
        max-width: 700px;
    }
}

@media (max-width: 768px) {
    .work-detail {
        padding: 40px 20px;
        max-width: 100%;
    }

    .detail-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

.project-meta {
    margin-bottom: 24px;
}

.project-meta h1 {
    font-size: 48px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.project-info {
    display: flex;
    gap: 16px;
    color: var(--text-secondary);
    font-size: 14px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 60px;
}

.gallery-item {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
}

.gallery-item.full-width {
    grid-column: 1 / -1;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.detail-column h3 {
    color: var(--text-primary);
    font-size: 16px;
    margin-bottom: 16px;
}

.detail-column p {
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.project-content {
    max-width: 700px;
    margin-bottom: 80px;
}

.project-content h2 {
    color: var(--text-primary);
    font-size: 24px;
    margin-bottom: 24px;
    margin-top: 40px;
}

.project-content p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.next-project {
    border-top: 1px solid var(--nav-border);
    padding-top: 40px;
    margin-bottom: 80px;
}

.next-project-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.next-project-link:hover {
    opacity: 0.8;
}

.next-label {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 8px;
}

.next-title {
    color: var(--text-primary);
    font-size: 24px;
    margin-bottom: 8px;
}

.next-arrow {
    color: var(--text-primary);
    font-size: 24px;
}

/* Navigation Layout */
.work-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    z-index: 100;
}

.work-section-nav {
    position: fixed;
    left: 65px;
    top: 0;
    width: 340px;
    bottom: 0;
    border-right: 1px solid #343434;
    padding: 32px 24px;
    overflow-y: auto;
}

/* Section Header */
.section-header h2 {
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 32px;
}

/* Now Viewing Section */
.now-viewing {
    margin-bottom: 48px;
}

.label {
    display: block;
    color: #666;
    font-size: 13px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.current-item {
    padding: 16px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    will-change: transform;
}

.current-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.03);
    transform-origin: left;
    transform: scaleX(var(--scroll-progress, 0));
    will-change: transform;
}

.current-item h3,
.current-item p {
    position: relative;
    z-index: 1;
}

.current-item h3 {
    color: var(--text-primary);
    font-size: 15px;
    margin-bottom: 8px;
}

.current-item p {
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

/* Ensure smooth animation */
@media (prefers-reduced-motion: no-preference) {
    .current-item::before {
        transition: transform 0.1s ease-out;
    }
}

/* Up Next Section */
.next-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.next-item {
    display: block;
    text-decoration: none;
    padding: 16px;
    border-radius: 12px;
    transition: background-color 0.2s ease;
}

.next-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.next-item h3 {
    color: var(--text-primary);
    font-size: 15px;
    margin-bottom: 8px;
}

.next-item p {
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .work-section-nav {
        width: 260px;
    }

    .work-detail {
        padding-left: 325px;
    }
}

@media (max-width: 768px) {
    .work-section-nav {
        display: none;
    }

    .work-detail {
        padding-left: 20px;
    }
}

/* Update the categories menu styles */
.categories-menu {
    /* Hide by default on desktop */
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

/* Show only on mobile devices */
@media (max-width: 768px) {
    .categories-menu {
        display: block;
        top: 12px;
        right: 12px;
    }
}

.hamburger-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: background-color 0.2s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.hamburger-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.categories-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: #1a1a1a;
    border-radius: 12px;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

.categories-menu.active .categories-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.categories-content {
    padding: 16px;
}

.categories-content h3 {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.categories-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.categories-content li {
    margin-bottom: 4px;
}

.categories-content a {
    display: block;
    padding: 8px 12px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.categories-content a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

/* Add responsive styles */
@media (max-width: 768px) {
    .categories-menu {
        top: 12px;
        right: 12px;
    }
}

.footer {
    padding-left: 300px;
}

@media (max-width: 768px) {
    .footer {
        padding-left: inherit;
    }
}