/* Project Details Specific Styles */

.project-detail-hero-bg {
    background-position: center;
    background-size: cover;
}

.project-meta {
    display: inline-flex;
    gap: 15px;
    margin-bottom: 25px;
    padding: 0;
    border: none;
    background: transparent;
    flex-wrap: wrap;
    align-items: center;
    color: #0a0e27;
    font-weight: 700;
}

.meta-item {
    background: transparent;
    color: #0a0e27;
    padding: 0;
    border-radius: 0;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
}

.meta-item:not(:last-child):after {
    content: "|";
    margin-left: 15px;
    font-weight: 400;
    color: #0a0e27;
}

@media (max-width: 600px) {
    .project-meta {
        padding: 8px 15px;
        gap: 10px;
        flex-direction: row;
        justify-content: flex-start;
    }

    .meta-item:not(:last-child):after {
        display: inline-block;
        margin-left: 10px;
    }

    .meta-item {
        font-size: 0.85rem;
        margin-bottom: 0;
    }
}

/* Side-by-Side Layout Override for Projects */
.specs-grid {
    display: grid !important;
    grid-template-columns: 1.2fr 1fr !important;
    gap: 60px !important;
    align-items: start;
}

.specs-content {
    padding-right: 0 !important;
}

.project-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.gallery-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 0;
    cursor: pointer;
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    opacity: 0;
    transform: translateY(30px);
}

.gallery-img:hover {
    transform: scale(1.02);
}

/* Project Navigation Styles */
.project-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
    flex-wrap: wrap;
    gap: 20px;
}

.project-navigation a {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 15px;
    max-width: 45%;
    transition: opacity 0.3s ease;
}

.project-navigation a:hover {
    opacity: 0.7;
}

.nav-label {
    color: #24b1a5;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 1rem;
}

.nav-title {
    color: #64748b;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 1rem;
}

/* Project Details Split Layout */
.project-details-split {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: start;
}

.project-details-list h2 {
    margin-top: 0;
    color: #0a0e27;
    font-size: 2rem;
}

.project-details-list ul li {
    font-size: 1.05rem;
    line-height: 1.3;
}

.project-details-list ul li strong {
    min-width: 170px;
    display: inline-block;
}

.project-details-image-container {
    width: 100%;
    position: sticky;
    top: 100px;
}

.project-details-img {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 0;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.project-details-img:hover {
    transform: scale(1.02);
}

/* New Clean Detail List Styles */
.project-details-vertical {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.detail-row {
    padding: 15px 0;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: background-color 0.3s ease;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    color: #0a0e27;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

.detail-value {
    color: #64748b;
    font-size: 1.05rem;
    line-height: 1.6;
    font-weight: 400;
}

.specs-description {
    line-height: 1.6 !important;
    font-size: 1.1rem !important;
    color: #475569 !important;
    margin-bottom: 2rem !important;
}

.project-section-title {
    font-size: 1.8rem;
    color: #0a0e27;
    margin-top: 10px;
    margin-bottom: 10px;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.project-section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #3ec4e1;
    border-radius: 2px;
}

@media (max-width: 992px) {

    .project-details-split,
    .specs-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
}

@media (max-width: 768px) {
    .project-navigation {
        flex-direction: column;
        align-items: flex-start;
    }

    .project-navigation a {
        max-width: 100%;
    }

    .project-navigation .nav-next {
        align-self: flex-end;
        text-align: right;
    }
}

/* Product Application Showcase Section */
.product-application-showcase {
    background-color: #f1f5f9;
    padding: 30px 0;
    margin: 30px 0;
    text-align: center;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden;
}

.product-application-showcase h2 {
    font-size: 1.5rem;
    color: #0a0e27;
    margin-bottom: 25px;
}

.product-application-showcase .product-categories-badge {
    background: #ffffff !important;
    padding: 15px 35px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04) !important;
    transition: all 0.3s ease !important;
    border: none !important;
}

.product-application-showcase .product-categories-badge:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08) !important;
}

.product-application-showcase .product-categories-logo {
    height: 32px !important;
}

@media (max-width: 768px) {
    .product-application-showcase {
        padding: 30px 0;
        margin: 30px 0;
    }

    .product-application-showcase h2 {
        font-size: 1.25rem;
        margin-bottom: 20px;
    }

    .product-application-showcase .product-categories-badge {
        padding: 12px 25px !important;
    }

    .product-application-showcase .product-categories-logo {
        height: 24px !important;
    }

    .detail-row {
        padding: 1rem 0;
    }

    .detail-value {
        font-size: 0.95rem;
    }

    .project-section-title {
        font-size: 1.5rem;
    }

    .product-application-showcase {
        width: 100%;
        left: 0;
        right: 0;
        margin-left: 0;
        margin-right: 0;
        padding: 40px 20px;
    }
}

/* Point Form Project Details */
.project-details-points {
    list-style: none;
    padding: 0;
    margin: 10px 0;
    /* border-top: 1px solid #f1f5f9; */
}

.point-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
    text-align: left;
}

.point-item:last-child {
    border-bottom: none;
}

/* This is where the magic happens for vertical spacing */
.point-content {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #64748b;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    /* Creates perfect spacing between the label and the text/list */
}

.point-label {
    color: #0a0e27;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: block;
    opacity: 0.8;
    margin: 0;
    /* Margin is handled by the gap in .point-content */
}

/* Sub-points for multi-item values */
.point-value-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    /* Spacing between bullet points */
}

.point-value-item {
    position: relative;
    padding-left: 20px;
}

/* Custom Bullet Point */
.point-value-item::before {
    content: "•";
    position: absolute;
    left: 0;
    top: -2px;
    /* Adjusts the bullet so it perfectly aligns with the text */
    color: #3ec4e1;
    font-weight: bold;
    font-size: 1.2rem;
    /* Makes the bullet slightly larger and cleaner */
}

/* Back to Projects Button — base styles in unified component (style.css) */
.back-to-projects {
    margin-bottom: 2rem;
}