/* --- Project Detail Page --- */
.project-header {
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    margin: 100px;
}

.category-tag {
    color: var(--color-cyan);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.9rem;
    font-weight: 700;
}

.project-header h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin: 10px 0;
}

.platform-badges {
    font-size: 1.5rem;
    display: flex;
    gap: 15px;
    opacity: 0.8;
}

/* Body Layout */
.project-body {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    padding: 80px 0;
}

.project-section {
    margin-bottom: 40px;
}

.project-section h2 {
    color: var(--color-cyan);
    margin-bottom: 20px;
}

.project-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.gallery-img {
    width: 100%;
    /* 1. Set a fixed height so they aren't 'auto' */
    height: 350px;

    /* 2. This is the magic: it fills the box without stretching */
    object-fit: cover;

    /* 3. This ensures the middle of the image is always visible */
    object-position: center;

    display: block;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

/* Optional: Subtle hover effect */
.gallery-img:hover {
    transform: scale(1.03);
    border-color: var(--color-cyan);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.project-gallery img {
    width: 100%;
    border-radius: 5px;
    object-fit: contain;
    border: 1px solid rgba(255,255,255,0.1);
}

/* Sidebar */
.sidebar-box {
    background: rgba(255,255,255,0.03);
    padding: 30px;
    border-radius: 5px;
    border: 1px solid rgba(16, 241, 238, 0.1);
    top: 110px;
}

.spec-list {
    list-style: none;
    margin: 20px 0;
}

.spec-list li {
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.spec-list li strong {
    color: var(--color-cyan);
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.full-width {
    width: 100%;
    margin-top: 15px;
}

/* Responsive */
@media (max-width: 992px) {
    .project-body {
        grid-template-columns: 1fr;
    }

    .project-gallery {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablets */
        gap: 15px;
    }

    .gallery-img {
        height: 200px; /* Slightly shorter for tablets */
    }
}

@media (max-width: 768px) {
    .project-gallery {
        /* Force 1 column so the static images have room to scale down */
        grid-template-columns: 1fr;
    }

    .gallery-img {
        /* On mobile, we let it fill the screen width up to its original size */
        width: 100%;
        max-height: 220px;
    }
}