/* Projects Page Specific Styles */

.projects-hero {
    background: linear-gradient(rgba(44, 44, 44, 0.7), rgba(44, 44, 44, 0.7)), url('../images/projects-hero-bg.jpg');
    background-size: cover;
    background-position: center;
    min-height: 60vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
    margin-top: 80px;
}

.projects-hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: white;
}

.projects-hero-content p {
    font-size: 1.3rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Filter Section */
.project-filters {
    padding: 40px 0;
    background: white;
    border-bottom: 1px solid #f0f0f0;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 24px;
    border: 2px solid #2c2c2c;
    background: transparent;
    color: #2c2c2c;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(135deg, #d4af37, #f4e37a);
    border-color: #d4af37;
    color: #2c2c2c;
    transform: translateY(-2px);
}

/* Projects Gallery */
.projects-gallery {
    padding: 60px 0;
    background: #fafafa;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    animation: fadeIn 0.6s ease-out;
}

.project-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.project-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.project-image {
    position: relative;
    overflow: hidden;
    height: 300px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-item:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(44, 44, 44, 0.9) 100%);
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-item:hover .project-overlay {
    opacity: 1;
}

.project-info {
    color: white;
    text-align: left;
    width: 100%;
}

.project-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: white;
}

.project-info p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.view-btn {
    background: linear-gradient(135deg, #d4af37, #f4e37a);
    color: #2c2c2c;
    border: none;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

/* Load More Section */
.load-more-section {
    padding: 40px 0;
    text-align: center;
    background: #fafafa;
}

/* Project Modal */
.project-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background: white;
    margin: 2% auto;
    padding: 0;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 15px;
    position: relative;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 0;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.close-modal:hover {
    background: rgba(0, 0, 0, 0.8);
}

.modal-gallery {
    background: #f8f8f8;
    padding: 2rem;
}

.main-image {
    margin-bottom: 1rem;
}

.main-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
}

.thumbnail-gallery {
    max-height: 120px;
    overflow-x: auto;
}

.thumbnails {
    display: flex;
    gap: 1rem;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    flex-shrink: 0;
}

.thumbnail:hover,
.thumbnail.active {
    opacity: 1;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.modal-info {
    padding: 2rem;
    background: white;
}

.modal-info h2 {
    font-size: 2rem;
    color: #2c2c2c;
    margin-bottom: 1.5rem;
}

.project-details {
    margin-bottom: 2rem;
}

.detail-item {
    display: flex;
    margin-bottom: 0.8rem;
    align-items: center;
}

.detail-item strong {
    color: #2c2c2c;
    width: 100px;
    flex-shrink: 0;
}

.detail-item span {
    color: #d4af37;
    font-weight: 500;
}

.modal-info p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.modal-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Filter Animation */
.project-item {
    opacity: 1;
    transform: scale(1);
    transition: all 0.3s ease;
}

.project-item.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

/* Loading Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-item {
    animation: fadeIn 0.6s ease-out;
}

.project-item:nth-child(2) { animation-delay: 0.1s; }
.project-item:nth-child(3) { animation-delay: 0.2s; }
.project-item:nth-child(4) { animation-delay: 0.3s; }
.project-item:nth-child(5) { animation-delay: 0.4s; }
.project-item:nth-child(6) { animation-delay: 0.5s; }

/* Responsive Design */
@media (max-width: 768px) {
    .projects-hero-content h1 {
        font-size: 2.5rem;
    }

    .projects-hero-content p {
        font-size: 1.1rem;
    }

    .filter-buttons {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 10px 16px;
        font-size: 0.8rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .project-image {
        height: 250px;
    }

    .modal-content {
        grid-template-columns: 1fr;
        width: 95%;
        margin: 5% auto;
    }

    .modal-gallery {
        padding: 1.5rem;
    }

    .main-image img {
        height: 300px;
    }

    .modal-info {
        padding: 1.5rem;
    }

    .modal-info h2 {
        font-size: 1.5rem;
    }

    .modal-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .projects-hero-content h1 {
        font-size: 2rem;
    }

    .filter-buttons {
        gap: 0.3rem;
    }

    .filter-btn {
        padding: 8px 12px;
        font-size: 0.7rem;
    }

    .project-overlay {
        padding: 1.5rem;
    }

    .project-info h3 {
        font-size: 1.2rem;
    }

    .modal-content {
        margin: 2% auto;
        width: 98%;
    }

    .close-modal {
        top: 10px;
        right: 15px;
        font-size: 1.5rem;
        width: 35px;
        height: 35px;
    }
}

/* Accessibility Improvements */
.filter-btn:focus,
.view-btn:focus {
    outline: 2px solid #d4af37;
    outline-offset: 2px;
}

.project-item:focus-within {
    outline: 2px solid #d4af37;
    outline-offset: 4px;
}

/* Print Styles */
@media print {
    .project-modal,
    .filter-buttons,
    .load-more-section {
        display: none;
    }
    
    .project-overlay {
        opacity: 1;
        background: rgba(255, 255, 255, 0.9);
    }
    
    .project-info,
    .project-info h3 {
        color: #2c2c2c;
    }
}