/* Project Page Styles */
.project-hero {
    position: relative;
    padding: 6rem 0;
    color: white;
    background-color: rgba(0, 0, 0, 0.7);
    background-blend-mode: overlay;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-image: url('https://via.placeholder.com/1920x600');
}

.project-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.096), rgba(0, 0, 0, 0.527));
    z-index: 1;
}

.project-hero .container {
    position: relative;
    z-index: 2;
}

.project-hero h1 {
    font-size: 3rem;
    margin-bottom: 2rem;
}

.project-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.project-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

/* Project Content */
.project-content {
    padding: 5rem 0;
}

.project-description {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: left;
}

.project-description p,
.project-description ul {
    text-align: left;
}

.project-description h2 {
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.project-description ul {
    list-style-type: none;
    padding: 0;
}

.project-description li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.project-description li:before {
    content: "→";
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

/* Project Gallery */
.project-gallery {
    margin: 2rem 0;
    position: relative;
}

.project-gallery .swiper {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.project-gallery .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px; /* Fixed height for consistent look */
    overflow: hidden;
}

.project-gallery .swiper-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Ensures entire image is visible */
    object-position: center;
}

.project-gallery .swiper-button-next, 
.project-gallery .swiper-button-prev {
    background-color: rgba(128, 128, 128, 0.7); /* Slightly darker on hover */
}

.project-gallery .swiper-button-next::after,
.project-gallery .swiper-button-prev::after {
    color: var(--primary-color);
    font-size: 20px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .project-gallery .swiper-slide {
        height: 250px; /* Smaller height on mobile */
    }

    .project-gallery .swiper-button-next, 
    .project-gallery .swiper-button-prev {
        display: none; /* Hide navigation buttons on small screens */
    }

    .project-gallery .swiper-pagination {
        bottom: 10px; /* Adjust pagination position */
    }
}

/* Project Details */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

/* Project Details */
.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.detail-item {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.detail-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Other Projects Section */
.other-projects {
    padding: 4rem 0;
    background: #f8f9fa;
}

.other-projects h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #2c3e50;
}

.other-projects .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.project-preview-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    height: 100%;
    overflow: hidden;
}

.project-preview-card:hover {
    transform: translateY(-5px);
}

.project-preview-card .project-link {
    text-decoration: none;
    color: inherit;
}

.project-preview-card .project-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

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

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

.project-preview-card .project-info {
    padding: 1.5rem;
}

.project-preview-card h3 {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
    font-size: 1.25rem;
}

.project-preview-card p {
    margin: 0 0 1rem 0;
    color: #666;
    line-height: 1.5;
}

.project-preview-card .view-more {
    color: #27ae60;
    font-weight: 500;
    display: inline-block;
    transition: color 0.3s ease;
}

.project-preview-card:hover .view-more {
    color: #219a52;
}

/* Responsive Design */
@media (max-width: 768px) {
    .project-hero h1 {
        font-size: 2rem;
    }

    .project-meta {
        flex-direction: column;
        gap: 1rem;
    }

    .gallery-slider {
        height: 400px;
    }
}

/* Navigation Arrows */
.gallery-slider .swiper-button-next,
.gallery-slider .swiper-button-prev {
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.9);
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.gallery-slider .swiper-button-next:after,
.gallery-slider .swiper-button-prev:after {
    font-size: 1.5rem;
}

.gallery-slider .swiper-pagination-bullet-active {
    background: var(--primary-color);
}
