/* ===== PROJECTS PAGE SPECIFIC STYLES ===== */

.projects-section {
    padding: 100px 0 80px;
    background-color: var(--light);
}

body.dark-mode .projects-section {
    background-color: var(--dark);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

body.dark-mode .section-header h2 {
    color: var(--secondary);
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

body.dark-mode .section-header p {
    color: var(--text-dark);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--card-light);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body.dark-mode .project-card {
    background: var(--card-dark);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.project-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.view-details-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
}

.view-details-btn:hover {
    background: var(--secondary);
}

.project-info {
    padding: 25px;
}

.project-info h3 {
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 10px;
}

body.dark-mode .project-info h3 {
    color: var(--secondary);
}

.project-info p {
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.6;
}

body.dark-mode .project-info p {
    color: var(--text-dark);
}

.project-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.project-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    font-size: 0.9rem;
}

body.dark-mode .project-meta span {
    color: var(--text-dark);
}

.project-meta i {
    color: var(--primary);
}

body.dark-mode .project-meta i {
    color: var(--secondary);
}

/* ===== PROJECT MODAL STYLES ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-content {
    position: relative;
    background: var(--card-light);
    margin: auto;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

body.dark-mode .modal-content {
    background: var(--card-dark);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    color: var(--text-light);
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

body.dark-mode .close-modal {
    color: var(--text-dark);
}

.close-modal:hover {
    color: var(--accent);
}

.modal-body {
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    overflow: hidden;
}

.modal-image {
    height: 300px;
    overflow: hidden;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-info {
    padding: 30px;
    overflow-y: auto;
    max-height: calc(90vh - 300px);
}

.modal-info h2 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 15px;
}

body.dark-mode .modal-info h2 {
    color: var(--secondary);
}

.modal-info p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.6;
}

body.dark-mode .modal-info p {
    color: var(--text-dark);
}

.modal-meta {
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(0, 64, 128, 0.05);
    border-radius: 10px;
    border-left: 4px solid var(--accent);
}

body.dark-mode .modal-meta {
    background: rgba(0, 160, 227, 0.1);
}

.modal-meta .project-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.modal-features h3 {
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 15px;
}

body.dark-mode .modal-features h3 {
    color: var(--secondary);
}

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

.modal-features li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: var(--text-light);
    line-height: 1.5;
}

body.dark-mode .modal-features li {
    color: var(--text-dark);
}

.modal-features li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

/* ===== PROJECTS PAGE RESPONSIVE ===== */
@media (max-width: 768px) {
    .projects-section {
        padding: 80px 0 60px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .project-image {
        height: 200px;
    }
    
    .modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .modal-body {
        flex-direction: column;
    }
    
    .modal-image {
        height: 200px;
    }
    
    .modal-info {
        padding: 20px;
        max-height: calc(95vh - 200px);
    }
    
    .modal-info h2 {
        font-size: 1.5rem;
    }
    
    .modal-meta .project-meta {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .project-info {
        padding: 20px;
    }
    
    .project-info h3 {
        font-size: 1.2rem;
    }
    
    .modal-info {
        padding: 15px;
    }
    
    .modal-info h2 {
        font-size: 1.3rem;
    }
    
    .modal-meta {
        padding: 15px;
    }
    
    .modal-features h3 {
        font-size: 1.2rem;
    }
}