/* Work Page Styles */
#contact-hero.page-hero {
    background: var(--dark-bg);
    color: white;
    padding: 160px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
}

#contact-hero.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 1;
}

#contact-hero.page-hero .container {
    position: relative;
    z-index: 2;
}

#contact-hero.page-hero .page-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

#contact-hero.page-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    /* Fix lint */
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    /* Ensure no shadow dulls the gradient */
    line-height: 1.2;
    /* Explicitly match base heading line-height */
    animation: fadeInUp 0.8s ease-out;
}

#contact-hero.page-hero p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    animation: fadeInUp 0.8s ease-out 0.2s;
    animation-fill-mode: both;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #0a0a0a;
    /* Dark Title */
    margin-bottom: 1rem;
    font-weight: 600;
}

.section-header p {
    font-size: 1.1rem;
    color: #4b5563;
    /* Dark Gray text */
    max-width: 600px;
    margin: 0 auto;
}

.contact-cta .btn-primary {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    box-shadow: 0 4px 15px rgba(255, 0, 46, 0.3);
}

.contact-cta .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 0, 46, 0.25);
}

/* Services Section - Light Gray BG */
.services-section {
    padding: 5rem 0;
    background: #f8fafc;
}

/* Tech Section - Light Gray BG */
.tech-section {
    padding: 5rem 0;
    background: #f8fafc;
}

/* Grid Layout */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Work Item Card - White with Shadow */
.work-item {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    /* Subtle border */
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    min-height: 320px !important;
    opacity: 1 !important;
    visibility: visible !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    /* Soft shadow */
}

.work-item:hover {
    transform: none !important;
    /* Disable movement */
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.work-item-image-container {
    position: relative;
    width: 100%;
    min-height: 1px;
}

.work-item-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.work-item-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 50px;
}

.work-item-title {
    font-size: 1.25rem;
    color: #0a0a0a;
    /* Dark Title */
    margin-bottom: 0.5rem;
    font-weight: 600;
    line-height: 1.3;
}

.work-item-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(255, 0, 46, 0.1);
    /* Red tint pill */
    color: var(--primary-color);
    border-radius: 1rem;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    align-self: flex-start;
    border: 1px solid rgba(255, 0, 46, 0.2);
    font-weight: 500;
}

.work-item-description {
    color: #4b5563;
    /* Dark Gray text */
    font-size: 0.95rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 1rem;
}

.portfolio-featured-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background-color: var(--primary-color);
    color: white;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.view-project-btn {
    display: inline-block;
    margin-top: auto;
    padding: 0.6rem 1.2rem;
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    /* Match global */
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
}

/* Filter Buttons */
.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 2rem;
    background: white;
    color: #4b5563;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.view-project-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Loading Spinner */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: #4b5563;
    /* Dark text */
}

.loading-spinner i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* No Items Message */
.no-items h3,
.error-message h3 {
    color: #0a0a0a;
}

.no-items,
.error-message {
    color: #4b5563;
}

/* Work Modal */
/* ... existing modal code ... */

/* Contact Section - Light Theme */
.contact-section {
    padding: 5rem 0;
    background: #ffffff;
    /* White background */
    text-align: center;
}

.contact-section .section-header h2 {
    color: #0a0a0a;
    margin-bottom: 1rem;
}

.contact-section .section-header p {
    color: #4b5563;
    max-width: 600px;
    margin: 0 auto;
}

.contact-cta {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.contact-cta .btn {
    padding: 1rem 2.5rem;
    /* Match About: 40px horizontal */
    font-size: 1.1rem;
    /* Match About: Larger text */
    font-weight: 600;
    /* Match About: Bold */
    border-radius: 12px;
    /* Match About: Rounder corners */
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-cta .btn-primary {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    box-shadow: 0 4px 15px rgba(255, 0, 46, 0.3);
}

.contact-cta .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 0, 46, 0.25);
}

.contact-cta .btn-secondary {
    background: transparent;
    color: var(--primary-color);
    /* Red Text */
    border: 1px solid var(--primary-color);
    /* Red Border */
}

.contact-cta .btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 0, 46, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .work-page .page-hero {
        padding: 80px 0;
    }

    .work-page .page-hero h1 {
        font-size: 2.5rem;
    }

    .work-page .page-hero p {
        font-size: 1.1rem;
    }

    .work-page .section-header h2 {
        font-size: 2rem;
    }

    .filter-buttons {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    .grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }

    .work-details {
        grid-template-columns: 1fr;
    }

    .work-image {
        min-height: 300px;
    }

    .work-info {
        padding: 1.5rem;
    }

    .modal-content {
        width: 95%;
        margin: 1rem auto;
    }

    .contact-cta {
        flex-direction: column;
        align-items: center;
    }

    .contact-cta .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .work-page .page-hero {
        padding: 60px 0;
    }

    .work-page .page-hero h1 {
        font-size: 2rem;
    }

    .work-page .section-header h2 {
        font-size: 1.75rem;
    }

    .grid {
        grid-template-columns: 1fr;
    }

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