/* --- PROJECTEN MODULE STYLES --- */

/* 1. Hero Section */
.projects-hero {
    background-color: var(--background-offwhite);
    padding: 80px 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.projects-hero h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.projects-hero p {
    color: var(--text-light);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* 2. Projects Grid (Index Page) */
.projects-container {
    padding: 60px 0;
}

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

.project-card {
    background: var(--background-white);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.project-img-wrapper {
    position: relative;
    padding-top: 60%;
    /* Aspect Ratio 16:10 */
    overflow: hidden;
}

.project-img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.project-category-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.project-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-content h3 {
    font-size: 1.4rem;
    margin: 0 0 10px 0;
}

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

.project-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.project-desc {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.btn-project-link {
    color: var(--primary-blue);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.2s;
}

.btn-project-link:hover {
    gap: 10px;
}

/* 3. Detail Page Styles */
.detail-header {
    height: 50vh;
    position: relative;
    background-color: var(--text-dark);
    display: flex;
    align-items: flex-end;
}

.detail-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

.detail-header-content {
    position: relative;
    z-index: 2;
    padding-bottom: 60px;
    color: white;
}

.detail-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.detail-meta {
    display: flex;
    gap: 30px;
    font-size: 1.1rem;
    opacity: 0.9;
}

.case-study-section {
    padding: 80px 0;
}

.case-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
}

.case-block {
    margin-bottom: 50px;
}

.case-block h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--text-dark);
    border-left: 4px solid var(--primary-blue);
    padding-left: 15px;
}

.case-block p {
    line-height: 1.8;
    color: var(--text-light);
    font-size: 1.05rem;
}

.products-card {
    background-color: var(--background-offwhite);
    padding: 30px;
    border-radius: 12px;
    position: sticky;
    top: 100px;
    /* Sticky scroll */
}

.products-card h3 {
    margin-top: 0;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.product-list-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.product-list-item i {
    color: var(--primary-blue);
    margin-right: 12px;
    margin-top: 4px;
}

/* Responsive */
@media (max-width: 992px) {

    .projects-grid,
    .case-grid {
        grid-template-columns: 1fr;
    }

    .products-card {
        position: static;
        margin-top: 40px;
    }
}

@media (max-width: 768px) {
    .detail-title {
        font-size: 2.2rem;
    }

    .detail-meta {
        flex-direction: column;
        gap: 10px;
    }
}