/* Projects Page Styling */

/* Featured Project */
.featured-project {
    margin-top: 20px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eaeaea;
}

.project-description p {
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.project-description h3 {
    color: #006080;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.project-description ul {
    margin-bottom: 25px;
    padding-left: 20px;
}

.project-description li {
    margin-bottom: 10px;
    line-height: 1.5;
}

/* Project Skills */
.project-skills {
    margin-bottom: 25px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    background-color: #e6f3f7;
    color: #006080;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Project Actions */
.project-actions {
    margin-top: 20px;
}

.view-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background-color: #006080;
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.view-btn:hover {
    background-color: #004d66;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.view-btn i {
    margin-right: 8px;
}

/* LinkedIn Embeds Styling */
.linkedin-embed {
    width: 100%;
    max-width: 100%;
    margin-bottom: 20px;
    min-height: 270px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.linkedin-embed iframe,
.linkedin-embed .linkedin-post {
    width: 100% !important;
    max-width: 100% !important;
    border: none !important;
    margin: 0 !important;
}

/* Project Videos Section */
.project-videos {
    margin-top: 30px;
    width: 100%;
    overflow-x: hidden;
}

.project-videos h3 {
    color: #006080;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

/* Video Grid Layout - Modified for responsiveness */
.video-grid {
    display: grid;
    grid-template-columns: 1fr;  /* Default to single column on mobile */
    gap: 30px;
    width: 100%;
}

/* Switch to two columns on wider screens */
@media (min-width: 992px) {
    .video-grid {
        grid-template-columns: 1fr 1fr;  /* Two columns on desktop */
    }
}

/* Video Container */
.video-container {
    width: 100%;
    margin-bottom: 20px;
}

/* Description text */
.post-description {
    margin-top: 10px;
    font-size: 0.95rem;
    color: #555;
}

/* Fix for LinkedIn embedded content */
iframe[src*="linkedin.com"],
.li-embed {
    width: 100% !important;
    max-width: 100% !important;
}

/* Other Projects Section */
.coming-soon {
    text-align: center;
    padding: 40px 0;
    color: #777;
    font-style: italic;
}

/* Other Projects Button Grid */
.other-projects-container {
    margin-top: 10px;
}

.project-button-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

@media (min-width: 600px) {
    .project-button-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 992px) {
    .project-button-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

.project-button {
    display: flex;
    align-items: center;
    padding: 15px;
    background-color: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.project-button:hover {
    border-color: #006080;
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.project-icon {
    width: 40px;
    height: 40px;
    background-color: #e6f3f7;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.project-icon i {
    color: #006080;
    font-size: 1.2rem;
}

.project-name {
    font-weight: 500;
    font-size: 1rem;
}


.project-images {
    margin: 2rem 0;
}

.project-images h3 {
    color: #2c5aa0;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

.image-container {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.project-image {
    width: 100%;
    height: 250px;
    object-fit: contain;
    display: block;
    cursor: pointer;
    background-color: #f8f9fa;
}

.image-caption {
    padding: 1rem;
}

.image-caption h4 {
    color: #2c5aa0;
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.image-caption p {
    color: #666;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .image-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .project-image {
        height: 200px;
    }
}


/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: relative;
    margin: auto;
    padding: 0;
    width: 90%;
    max-width: 1200px;
    max-height: 90%;
    top: 50%;
    transform: translateY(-50%);
    text-align: center;
}

#modalImage {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
}

#modalCaption {
    color: white;
    font-size: 1.2rem;
    padding: 1rem;
    margin-top: 1rem;
}

.close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    transition: color 0.3s ease;
}

.close:hover {
    color: #ccc;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
    }
    
    #modalImage {
        max-height: 70vh;
    }
    
    .close {
        top: -30px;
        font-size: 28px;
    }
}
