/* Projects Section Styles */

.projects-header {
    text-align: center;
    margin: 40px 0;
}

.projects-header h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 15px;
}

.projects-header p {
    font-size: 1.2rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto 30px;
}

/* Search Bar Styles */
.search-container {
    max-width: 600px;
    margin: 30px auto 0;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 15px 20px;
    font-size: 1rem;
    border: 2px solid #e0e0e0;
    outline: none;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.search-input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.clear-search-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 5px;
}

.clear-search-btn:hover {
    color: #333;
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    font-size: 1.2rem;
    color: #666;
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.project-card {
    /* border: 1px solid #e0e0e0; */
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.project-image {
    width: 100%;
    height: 480px;
    object-fit: cover;
}

.project-content {
    padding: 20px;
}

.project-title {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #333;
}

.project-description {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.view-details-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.view-details-btn:hover {
    background-color: #0056b3;
}

.project-link-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #28a745;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    margin-left: 10px;
}

.project-link-btn:hover {
    background-color: #1e7e34;
}

.project-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

/* Pagination Styles */
.pagination-container {
    margin-top: 40px;
    text-align: center;
}

.pagination {
    display: inline-flex;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-btn {
    padding: 10px 15px;
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    color: #333;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.pagination-btn:hover:not(.active) {
    background-color: #e9ecef;
    border-color: #adb5bd;
}

.pagination-btn.active {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
}

.pagination-btn:disabled {
    background-color: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
}

/* Project Details Page Styles */

.project-detail-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: #007bff;
    text-decoration: none;
}

.back-link:hover {
    text-decoration: underline;
}

.project-header {
    text-align: center;
    margin-bottom: 40px;
}

.project-header h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 15px;
}

.project-image {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.project-details-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.project-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.project-info h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.project-info p {
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.project-meta {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.meta-item {
    margin-bottom: 15px;
}

.meta-label {
    font-weight: bold;
    color: #333;
    display: block;
    font-size: 1.1rem;
}

.meta-value {
    color: #666;
    font-size: 1rem;
}

.technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.tech-tag {
    background: #007bff;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* Responsive Styles */

@media (max-width: 768px) {
    .project-details {
        grid-template-columns: 1fr;
    }
    
    .project-actions {
        flex-direction: column;
    }
    
    .project-link-btn {
        margin-left: 0;
        margin-top: 10px;
    }
    
    .projects-header h2 {
        font-size: 2rem;
    }
    
    .project-header h1 {
        font-size: 2rem;
    }
    
    .project-title {
        font-size: 1.2rem;
    }
}