/* Projects Hero Section */
.projects-hero {
    background-size: cover;
    background-position: center;
    color: white;
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
}

.projects-hero .section-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.projects-hero .section-text {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Project Categories */
.project-categories {
    padding: 40px 0;
    background: white;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.categories-wrapper {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.category-btn {
    padding: 10px 20px;
    border: none;
    background: none;
    color: #666;
    font-size: 1rem;
    cursor: pointer;
    position: relative;
}

.category-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #F28C28;
    transform: translateX(-50%);
}

.category-btn:hover,
.category-btn.active {
    color: #303f9f;
}

.category-btn:hover::after,
.category-btn.active::after {
    width: 100%;
}

/* Projects Grid */
.projects-grid {
    padding: 60px 0;
    background: #f8f9fa;
}

.projects-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.project-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
}

.project-image {
    position: relative;
    padding-top: 75%;
    overflow: hidden;
}

.project-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-details {
    text-align: center;
    color: white;
    padding: 20px;
}

.project-details h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.project-details p {
    margin-bottom: 20px;
    opacity: 0.9;
}

.view-project-btn {
    padding: 10px 20px;
    background: #303f9f;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* Project Modal */
.project-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.project-modal.active {
    display: flex;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    border-radius: 10px;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    color: #666;
    cursor: pointer;
    z-index: 1;
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 40px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-gallery {
    position: relative;
}

.main-image {
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}

.main-image img {
    width: 100%;
    height: auto;
    display: block;
}

.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.thumbnail {
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.7;
}

.thumbnail:hover,
.thumbnail.active {
    opacity: 1;
}

.thumbnail img {
    width: 100%;
    height: 80px;
    object-fit: cover;
}

.modal-info {
    padding-right: 20px;
}

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

.project-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    color: #666;
}

.project-description {
    margin-bottom: 30px;
    line-height: 1.6;
    color: #444;
}

.project-features {
    margin-bottom: 30px;
}

.features-list {
    list-style: none;
    padding: 0;
}

.features-list li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    color: #666;
}

.features-list li:last-child {
    border-bottom: none;
}

.project-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    text-align: center;
}

.stat-item {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: #303f9f;
    margin-bottom: 5px;
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .modal-body {
        grid-template-columns: 1fr;
    }

    .modal-info {
        padding-right: 0;
    }

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

    .categories-wrapper {
        gap: 10px;
    }

    .category-btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Loading Indicator */
.loading-indicator {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    color: white;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #F28C28;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.loading-indicator p {
    font-size: 1.1rem;
    margin: 0;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
} 