/* ==========================================================================
   CUSTOM PORTFOLIO GALLERY STYLES FOR THEMEKIT
   Compatible with Themekit Framework
   Author: masarifysveri
   Date: 2025-11-09
   ========================================================================== */

/* ============================================
   1. FILTER BUTTON GROUP
   ============================================ */
.btn-group-filter {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 30px;
}

.btn-group-filter .btn {
    padding: 12px 28px;
    border-radius: 30px;
    background: #ffffff;
    color: #333333;
    border: 2px solid #e0e0e0;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.btn-group-filter .btn:hover {
    background: #f5f5f5;
    border-color: #cccccc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-group-filter .btn.active {
    background: linear-gradient(135deg, #2AB8CA 0%, #1E90A8 100%);
    color: #ffffff;
    border-color: #2AB8CA;
    box-shadow: 0 4px 15px rgba(42, 184, 202, 0.4);
    transform: translateY(-2px);
}

/* ============================================
   2. PORTFOLIO GRID & ITEMS
   ============================================ */
#portfolio-grid {
    margin-left: -15px;
    margin-right: -15px;
}

.portfolio-item {
    padding-left: 15px;
    padding-right: 15px;
    margin-bottom: 50px;
    transition: all 0.3s ease;
}

/* ============================================
   3. CARD STYLING
   ============================================ */
.portfolio-item .card {
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: #ffffff;
    display: flex;
    flex-direction: column;
    border: none !important;
    margin-bottom: 20px;
}

.portfolio-item:hover .card {
    transform: translateY(-12px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* ============================================
   4. IMAGE BOX
   ============================================ */
.portfolio-item .image-box {
    position: relative;
    width: 100%;
    height: 260px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f8f9fa;
}

.portfolio-item .img-box {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.portfolio-item .img-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(42, 184, 202, 0.7) 0%, rgba(30, 144, 168, 0.7) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.portfolio-item:hover .img-box::before {
    opacity: 1;
}

.portfolio-item .img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.portfolio-item:hover .img-box img {
    transform: scale(1.1);
}

/* ============================================
   5. CARD BODY
   ============================================ */
.portfolio-item .card-body {
    padding: 28px;
    display: flex;
    flex-direction: column;
    flex: 1;
    background: #ffffff;
}

.portfolio-item .card-title {
    font-size: 22px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 15px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.portfolio-item:hover .card-title {
    color: #2AB8CA;
}

.portfolio-item .card-text {
    font-size: 14px;
    color: #666666;
    line-height: 1.8;
    margin-bottom: 20px;
    flex: 1;
}

/* ============================================
   6. PORTFOLIO TAGS / BADGES
   ============================================ */
.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.portfolio-tags .badge {
    display: inline-block;
    padding: 7px 18px;
    background: linear-gradient(135deg, #2AB8CA 0%, #1E90A8 100%);
    color: #ffffff;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(42, 184, 202, 0.2);
}

.portfolio-tags .badge:hover {
    background: linear-gradient(135deg, #1E90A8 0%, #166d85 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(42, 184, 202, 0.4);
}

/* ============================================
   7. ANIMATIONS
   ============================================ */
.portfolio-item.hidden {
    display: none !important;
    opacity: 0;
}

.portfolio-item.visible {
    display: block !important;
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered Animation Delays */
.portfolio-item:nth-child(1) { animation-delay: 0.05s; }
.portfolio-item:nth-child(2) { animation-delay: 0.10s; }
.portfolio-item:nth-child(3) { animation-delay: 0.15s; }
.portfolio-item:nth-child(4) { animation-delay: 0.20s; }
.portfolio-item:nth-child(5) { animation-delay: 0.25s; }
.portfolio-item:nth-child(6) { animation-delay: 0.30s; }
.portfolio-item:nth-child(7) { animation-delay: 0.35s; }
.portfolio-item:nth-child(8) { animation-delay: 0.40s; }
.portfolio-item:nth-child(9) { animation-delay: 0.45s; }

/* ============================================
   8. RESPONSIVE BREAKPOINTS
   ============================================ */

/* Large Desktop (1200px+) - 3 Columns */
@media (min-width: 1200px) {
    .portfolio-item .image-box {
        height: 280px;
    }
}

/* Desktop (992px - 1199px) - 3 Columns */
@media (min-width: 992px) and (max-width: 1199px) {
    .portfolio-item .image-box {
        height: 240px;
    }
    
    .portfolio-item .card-body {
        padding: 24px;
    }
    
    .portfolio-item .card-title {
        font-size: 20px;
    }
}

/* Tablet (768px - 991px) - 2 Columns */
@media (min-width: 768px) and (max-width: 991px) {
    .portfolio-item {
        margin-bottom: 30px;
    }
    
    .portfolio-item .image-box {
        height: 220px;
    }
    
    .portfolio-item .card-body {
        padding: 22px;
    }
    
    .portfolio-item .card-title {
        font-size: 19px;
    }
    
    .btn-group-filter .btn {
        padding: 10px 22px;
        font-size: 14px;
    }
}

/* Mobile (767px and below) - 1 Column */
@media (max-width: 767px) {
    .portfolio-item {
        margin-bottom: 25px;
    }
    
    .portfolio-item .image-box {
        height: 200px;
    }
    
    .portfolio-item .card-body {
        padding: 20px;
    }
    
    .portfolio-item .card-title {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    .portfolio-item .card-text {
        font-size: 13px;
        line-height: 1.7;
    }
    
    .btn-group-filter {
        gap: 8px;
    }
    
    .btn-group-filter .btn {
        padding: 9px 20px;
        font-size: 13px;
    }
    
    .portfolio-tags .badge {
        padding: 6px 14px;
        font-size: 11px;
    }
}

/* Extra Small Mobile (576px and below) */
@media (max-width: 576px) {
    .portfolio-item .image-box {
        height: 180px;
    }
    
    .portfolio-item .card-body {
        padding: 18px;
    }
    
    .portfolio-item .card-title {
        font-size: 17px;
    }
    
    .btn-group-filter .btn {
        padding: 8px 16px;
        font-size: 12px;
    }
}

/* ============================================
   9. UTILITY CLASSES
   ============================================ */
.margin-bottom-30 {
    margin-bottom: 30px !important;
}

.margin-bottom-40 {
    margin-bottom: 40px !important;
}

/* ============================================
   10. PRINT STYLES
   ============================================ */
@media print {
    .btn-group-filter {
        display: none;
    }
    
    .portfolio-item {
        page-break-inside: avoid;
    }
    
    .portfolio-item .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* ==========================================================================
   END OF CUSTOM PORTFOLIO STYLES
   ========================================================================== */