/* Featured Project Card Styles */
.featured-project-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 100px;
    gap: 1.5rem;
    transition: transform 0.3s ease;
}

.featured-project-card:hover {
    transform: translateY(-5px);
    /* Added hover effect from main.css */
}

.featured-project-card .project-content {
    flex: 1;
    z-index: 2;
    position: relative;
}

.featured-project-card .featured-project-image {
    flex: 1;
    position: relative;
    z-index: 1;
    max-width: 500px;
    overflow: hidden;
    border-radius: 20px;
    /* Added to contain the image zoom effect */
}

.featured-project-card .featured-project-image img {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
    /* Changed from cover to contain to match main.css */
    border-radius: 20px;
    /*filter: grayscale(100%) contrast(1.1);*/
    transition: transform 0.3s ease;/*filter 0.3s ease,*/
    /* Added transform transition */
}

.featured-project-card .featured-project-image img:hover {
    /*filter: grayscale(0%) contrast(1);*/
    transform: scale(1.05);    
    /* Added image zoom on hover to match main.css */
}

.featured-project-card .project-overline {
    color: var(--accent);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.featured-project-card .project-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #2d3436;    /* Dark gray for titles */
}

.featured-project-card .project-description {
    background-color: white;    /* Changed from var(--secondary-dark) to white */
    padding: 1.5rem;
    border-radius: 8px;    /* Increased from 4px to 8px to match personal projects */
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);    /* Added shadow to match personal projects */
    color: #333;    /* Added darker text color for better contrast on white */
}

.featured-project-card .project-description p {
    color: #636e72;
    /* Medium gray for description text */
    line-height: 1.6;
}

.featured-project-card .project-tech-list span {
    color: #2d3436;
    /* Dark gray for tech stack text */
}

/* Updated tech list styling to match main.css */
.featured-project-card .project-tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    list-style: none;
    padding: 0;
}

.featured-project-card .project-tech-list li {
    font-family: var(--font-mono);
    color: #333;
    /* Changed from #fff to #333 */
    background: #f0f0f0;
    /* Changed from rgba(0, 188, 212, 0.2) to solid light gray */
    padding: 0.25rem 0.5rem;
    border-radius: 20px;
    /* Increased from 3px to 20px to match personal projects */
}

.section-title {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 40px;
    text-align: center;
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -1px;
    /* Add this to reduce space between characters */
}

/* Mobile responsiveness */
@media only screen and (hover: none) and (pointer: coarse) {
    .featured-project-card {
        flex-direction: column;
        gap: 1rem;
        /* Reduced from 2rem to 1rem to match main.css */
    }

    .featured-project-card .project-content,
    .featured-project-card .featured-project-image {
        order: unset !important;
        /* Override inline styles on mobile */
        max-width: 100%;
        width: 100%;
    }

    .featured-project-card .featured-project-image {
        margin-bottom: 1rem;
    }

    .featured-project-card .featured-project-image img {
        max-height: 250px;
        /* Reduced height on mobile to match main.css */
    }
}

/* Modal Styles */
.project-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
}

.modal-content {
    position: relative;
    background: #fff;
    margin: 5% auto;
    padding: 2rem;
    width: 80%;
    max-width: 1000px;
    border-radius: 8px;
    max-height: 90vh;
    overflow-y: auto;
}

/* Mobile Responsive Styles */
@media only screen and (hover: none) and (pointer: coarse) {
    .modal-content {
        width: 95%;
        padding: 1rem;
        margin: 2% auto;
    }

    .media-section {
        margin-bottom: 1rem;
    }

    .description-section {
        margin-top: 1rem;
    }

    .carousel-item {
        height: 50vh;
    }

    .carousel-item img,
    .carousel-item video {
        max-height: 50vh;
    }
}
