/* C:\xampp\htdocs\techsolution\css\portfolio-detail.css */
/* Dark theme – all elements dark with red accents, white text */

/* Force dark background for the whole page */
body.page-portfolio-detail {
    background: #0d0d0d !important;
}

.portfolio-detail-hero {
    background: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 100%);
    padding: 60px 0 40px;
    text-align: center;
    margin-bottom: 40px;
}
.portfolio-detail-hero h1 {
    font-family: 'Syne', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
}
.portfolio-detail-hero p {
    font-size: 1rem;
    color: rgba(255,255,255,0.7);
    max-width: 600px;
    margin: 0 auto;
}

.detail-container {
    max-width: 1100px;
    margin: 0 auto 60px;
    padding: 0 20px;
}

/* Description card – dark background, white text */
.detail-description {
    background:  rgba(255,255,255,0.15); 
    border-radius: 16px;
    border: 1px solid rgba(208,2,27,0.2);
    padding: 30px;
    margin-bottom: 40px;
    font-size: 1rem;
    line-height: 1.7;
    color: #ddd0d4;
}
.detail-description h2 {
    font-family: 'Syne', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
}
.detail-description p {
    margin-bottom: 20px;
}
.detail-description strong {
    color: #8c0404;
}

/* External link button – red */
.external-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #D0021B;
    color: #fff;
    padding: 10px 24px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 20px;
    transition: background 0.2s, transform 0.2s;
}
.external-link:hover {
    background: #a80015;
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
}

/* Gallery section heading */
.detail-container h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
}

/* Gallery grid – dark cards */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(208,2,27,0.2);
    background: #1a0709;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.4);
    border-color: #D0021B;
}
.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    background: #2a0a0f;
}

/* Lightbox – already dark, keep as is */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.lightbox.active { display: flex; }
.lightbox-img { max-width: 90%; max-height: 80%; object-fit: contain; }
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
}
.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    font-size: 2rem;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.2s;
}
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.4); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    color: #fff;
    background: rgba(0,0,0,0.5);
    padding: 5px;
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 768px) {
    .portfolio-detail-hero h1 { font-size: 1.8rem; }
    .detail-description { padding: 20px; }
    .gallery-item img { height: 160px; }
    .detail-description h2 { font-size: 1.3rem; }
}