/* TryDo Portfolio Custom Styling */

/* Portfolio Grid Styling */
.portfolio {
    position: relative;
    transition: all 0.3s ease;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    /* Override default portfolio styles for img tags */
    min-height: auto !important;
    padding-top: 0 !important;
}

.portfolio:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.portfolio .thumbnail-inner {
    position: relative;
    overflow: hidden;
    border-radius: 6px 6px 0 0;
    /* Remove problematic overlay and positioning for img tags */
    z-index: auto !important;
}

/* Override the problematic ::before pseudo-element that creates white overlay */
.portfolio .thumbnail-inner::before {
    display: none !important;
}

.portfolio .thumbnail {
    height: 400px;
    background-size: cover !important;
    background-position: center !important;
    transition: transform 0.3s ease;
    /* Reset positioning for img tags */
    position: relative !important;
    transform: none !important;
    z-index: auto !important;
}

/* Ensure img tags inside thumbnail display properly */
.portfolio .thumbnail img {
    display: block;
    border-radius: 6px;
}

.portfolio:hover .thumbnail {
    transform: scale(1.05);
}

.portfolio .bg-blr-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover !important;
    background-position: center !important;
    filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio:hover .bg-blr-image {
    opacity: 0.3;
}

.portfolio .content {
    padding: 25px 20px;
    background: white;
    border-radius: 0 0 6px 6px;
}

.portfolio .content .inner p {
    color: #f39c12;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.portfolio .content .inner h4 {
    color: #333;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 0;
    transition: color 0.3s ease;
}

.portfolio:hover .content .inner h4 {
    color: #f39c12;
}

/* Portfolio Details Page Styling */
.portfolio-details .inner h2 {
    font-size: 42px;
    margin-bottom: 20px;
    color: #222;
}

.portfolio-details .subtitle {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
    font-style: italic;
}

.portfolio-details .case-study-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.portfolio-details .case-study-content h3,
.portfolio-details .case-study-content h4,
.portfolio-details .case-study-content h5 {
    color: #222;
    margin: 25px 0 15px;
}

.portfolio-details .case-study-content p {
    margin-bottom: 20px;
}

.portfolio-details .case-study-content ul,
.portfolio-details .case-study-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.portfolio-details .case-study-content blockquote {
    border-left: 4px solid #f39c12;
    padding: 20px 30px;
    margin: 30px 0;
    background: #f8f9fa;
    font-style: italic;
}

/* Portfolio View List */
.portfolio-view-list {
    border-top: 2px solid #f39c12;
    padding-top: 30px;
    margin-top: 40px;
}

.portfolio-view-list .port-view {
    margin-right: 40px;
    margin-bottom: 20px;
}

.portfolio-view-list .port-view span {
    display: block;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.portfolio-view-list .port-view h4 {
    color: #222;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

/* Related Work Styling */
.related-work .thumb {
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 20px;
}

.related-work .thumb img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-work:hover .thumb img {
    transform: scale(1.05);
}

.related-work .inner h4 {
    font-size: 20px;
    margin-bottom: 10px;
}

.related-work .inner h4 a {
    color: #222;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-work .inner h4 a:hover {
    color: #f39c12;
}

.related-work .inner .category {
    color: #f39c12;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Empty State Styling */
.portfolio-empty-state {
    text-align: center;
    padding: 80px 20px;
}

.portfolio-empty-state h3 {
    color: #666;
    margin-bottom: 15px;
    font-size: 28px;
}

.portfolio-empty-state p {
    color: #999;
    font-size: 16px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .portfolio .thumbnail {
        height: 320px;
    }
    
    .portfolio-details .inner h2 {
        font-size: 32px;
    }
    
    .portfolio-view-list .port-view {
        margin-right: 20px;
    }
    
    .related-work .thumb img {
        height: 180px;
    }
}

@media (max-width: 576px) {
    .portfolio .thumbnail {
        height: 280px;
    }
    
    .portfolio .content {
        padding: 20px 15px;
    }
    
    .portfolio-details .inner h2 {
        font-size: 28px;
    }
}