/* Project Page Specific Styles */

.project-page-header {
    text-align: center;
    padding: 3rem 0 2rem;
    max-width: 700px;
    margin: 0 auto;
}

.project-page-header h1 {
    font-family: var(--ff-serif);
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 0.8rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.project-page-header p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Search Section */
.project-search-section {
    max-width: 900px;
    margin: 0 auto 2rem;
    padding: 0 2rem;
}

.search-wrapper {
    position: relative;
    width: 100%;
}

.search-icon {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 1rem 1.5rem 1rem 3.5rem;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    background: var(--card-bg);
    font-family: var(--ff-sans);
    font-size: 1rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
    outline: none;
}

.search-input:focus {
    border-color: var(--deep-teal);
    box-shadow: 0 0 0 3px rgba(79, 139, 140, 0.15);
}

.search-input::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

/* Filter Buttons */
.project-filter-section {
    max-width: 900px;
    margin: 0 auto 2.5rem;
    padding: 0 2rem;
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 0.6rem 1.4rem;
    border: 1px solid var(--border-light);
    border-radius: 30px;
    background: var(--card-bg);
    font-family: var(--ff-sans);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: var(--deep-teal);
    color: var(--deep-teal);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(135deg, #4f8b8c, #2d6b6c);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(45, 107, 108, 0.3);
}

/* Project Grid */
.project-grid {
    display: grid;
    gap: 2.5rem;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
}

.project-card {
    background: var(--card-bg);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 60px rgba(44, 40, 34, 0.15);
}

.project-image-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
}

.project-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .project-image-wrapper img {
    transform: scale(1.05);
}

/* Status Badge - Top Right of Image */
.project-status {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 1rem;
    border-radius: 50px; /* Radio pill shape */
    font-family: var(--ff-mono);
    font-size: 0.75rem;
    font-weight: 600;
    background:#c9e83d; 
    color:black;
    font-weight:bold;
    border: 2px solid rgba(255, 255, 255, 0.4); /* Radio border effect */
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Project Meta */
.project-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.8rem;
    flex-wrap: wrap;
}

.project-category {
    font-family: var(--ff-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.project-content-wrapper {
    padding: 2rem;
}

.project-card h2 {
    font-family: var(--ff-serif);
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    margin-bottom: 0.8rem;
    line-height: 1.3;
    color: var(--text-primary);
}

.project-excerpt {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 1.2rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Tech Stack */
.project-tech {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid var(--border-light);
}

.tech-badge {
    padding: 0.3rem 0.8rem;
    background: rgba(79, 139, 140, 0.1);
    border-radius: 6px;
    font-family: var(--ff-mono);
    font-size: 0.75rem;
    color: var(--deep-teal);
    font-weight: 500;
}

/* Project Actions */
.project-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.project-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-family: var(--ff-sans);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-live {
    background: linear-gradient(135deg, #4f8b8c, #2d6b6c);
    color: white;
    box-shadow: 0 4px 12px rgba(45, 107, 108, 0.3);
}

.btn-live:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(45, 107, 108, 0.4);
}

/* Mobile - Compact Design */
@media (max-width: 780px) {
    .project-page-header {
        padding: 2rem 0 1.5rem;
    }
    
    .project-page-header h1 {
        font-size: 2rem;
        margin-bottom: 0.6rem;
    }
    
    .project-page-header p {
        font-size: 0.9rem;
        padding: 0 1rem;
    }
    
    .project-search-section {
        padding: 0 1rem;
        margin-bottom: 1.5rem;
    }
    
    .search-input {
        padding: 0.9rem 1.2rem 0.9rem 3rem;
        font-size: 0.95rem;
    }
    
    .search-icon {
        left: 1.2rem;
        width: 18px;
        height: 18px;
    }
    
    .project-filter-section {
        padding: 0 1rem;
        margin-bottom: 2rem;
        gap: 0.6rem;
    }
    
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .project-grid {
        gap: 2rem;
        padding: 0 1rem 2rem;
    }
    
    .project-card {
        border-radius: 18px;
    }
    
    .project-image-wrapper {
        padding-bottom: 56.25%; /* 16:9 */
    }
    
    .project-status {
        top: 0.8rem;
        right: 0.8rem;
        font-size: 0.7rem;
        padding: 0.3rem 0.8rem;
    }
    
    .project-content-wrapper {
        padding: 1.5rem;
    }
    
    .project-meta {
        margin-bottom: 0.6rem;
        gap: 0.8rem;
    }
    
    .project-category {
        font-size: 0.75rem;
    }
    
    .project-card h2 {
        font-size: 1.25rem;
        margin-bottom: 0.6rem;
    }
    
    .project-excerpt {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 1rem;
    }
    
    .project-tech {
        margin-bottom: 1.2rem;
        padding-bottom: 1rem;
        gap: 0.5rem;
    }
    
    .tech-badge {
        font-size: 0.7rem;
        padding: 0.25rem 0.6rem;
    }
    
    .project-btn {
        padding: 0.65rem 1.2rem;
        font-size: 0.8rem;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .project-image-wrapper {
        padding-bottom: 56.25%;
    }
    
    .project-content-wrapper {
        padding: 1.2rem;
    }
    
    .project-card h2 {
        font-size: 1.15rem;
    }
    
    .project-excerpt {
        font-size: 0.85rem;
    }
    
    .project-btn {
        width: 100%;
        justify-content: center;
    }
    
    .filter-btn {
        padding: 0.45rem 0.9rem;
        font-size: 0.75rem;
    }
}

/* No results message */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.no-results-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}