/* ========================================
   PREMIUM PORTFOLIO TABS DESIGN
   Creative Pill Style with Vibrant Colors
   ======================================== */

/* Portfolio Tabs Container */
.premium-portfolio-tabs {
    background: #fdad5980;
    padding: 20px;
    margin-bottom: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: visible;
}

/* Tabs Navigation Wrapper - Pill Style */
.premium-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 0;
    margin: 0;
    list-style: none;
    justify-content: center;
    align-items: center;
}

/* Individual Tab Item */
.premium-tab-item {
    position: relative;
}

/* Tab Link Styling - Pill/Capsule Design */
.premium-tab-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    text-align: center;
    color: #555;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    /*transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);*/
    position: relative;
    border-radius: 50px;
    background: #ffffff;
    /*border: 2px solid #e0e0e0;*/
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    white-space: nowrap;
}

/* Tab Link Hover Effect - Unified Orange Color */
.premium-tab-link {
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.premium-tab-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #ff6600;
    transform: scale(0);
    transform-origin: center;
    transition: transform 0.35s ease;
    border-radius: inherit;
    z-index: -1;
}

.premium-tab-link:hover::before {
    transform: scale(1);
}

.premium-tab-link:hover {
    color: #ffffff !important;
    border-color: #ff6600 !important;
    box-shadow: 0 6px 20px rgba(255, 102, 0, 0.3);
}
/* Active Tab State - Unified Orange Color */
.premium-tab-item.active .premium-tab-link,
.premium-tab-link.active {
    background: #ff6600 !important;
    color: #ffffff !important;
    border-color: #ff6600 !important;
    transform: scale(1.08);
    box-shadow: 0 4px 8px rgba(255, 102, 0, 0.25),
  0 12px 24px rgba(255, 102, 0, 0.18);
}

/* Tab Icon */
.premium-tab-icon {
    margin-right: 8px;
    font-size: 16px;
}

/* ========================================
   PORTFOLIO GRID - 3 COLUMNS
   ======================================== */

.premium-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
    width: 100%;
    justify-content: center;
}

/* ========================================
   UNIFIED PORTFOLIO CARD STYLES
   ======================================== */

.premium-portfolio-card,
.project-item {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
}

.premium-portfolio-card:hover,
.project-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(33, 150, 243, 0.3);
}

/* Card Heading - TOP POSITION */
.premium-card-heading,
.project-item .card-heading {
    padding: 10px 15px;
    background: #0c63a7;
    position: relative;
    order: 1;
    border-bottom: 1px solid #ffffff75;
}

.premium-card-heading h4,
.project-item .card-heading h4 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    height: 22px; /* Slightly reduced to fit 2 lines well */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

.premium-card-heading h4 a,
.project-item .card-heading h4 a {
    color: #ffffff !important;
    text-decoration: none;
    transition: all 0.3s ease;
}

.premium-card-heading h4 a:hover,
.project-item .card-heading h4 a:hover {
    color: #E0F2F1 !important;
    transform: scale(1.02);
}

/* Card Image Container - MIDDLE POSITION */
.premium-card-image,
.project-item .image-box {
    position: relative;
    overflow: hidden;
    height: 300px;
    background: #f5f5f5;
    order: 2;
    margin: 0;
}

.premium-card-image a,
.project-item .image-box a {
    display: block;
    width: 100%;
    height: 100%;
}

.premium-card-image img,
.project-item .image-box img {
  width: 100%;
  height: auto;
  min-height: 100%;
  object-fit: cover;
  transition: transform 3.5s ease-in-out;
  transform: translateY(0);
}

.premium-portfolio-card:hover .premium-card-image img,
.project-item:hover .image-box img {
    transform: translateY(calc(-100% + 300px));
}

/* Image Scroll Effect handled by CSS */

/* Card Bottom Info - BOTTOM POSITION */
.premium-card-info,
.project-item .bottom-info {
    padding: 15px 20px;
    background: #fdfdfd;
    order: 3;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.premium-info-row,
.project-item .info-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 0;
    color: #555;
    font-size: 13px;
    white-space: nowrap;
}

.premium-info-row i,
.project-item .info-row i {
    color: #2196F3;
    font-size: 16px;
    flex-shrink: 0;
}

.premium-info-row a,
.project-item .info-row a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    max-width: 17ch;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    vertical-align: middle;
}

.premium-info-row a:hover,
.project-item .info-row a:hover {
    color: #2196F3;
}

.premium-info-row span,
.project-item .info-row span {
    color: #666;
}

/* Section Title */
.premium-section-title {
    text-align: center;
    /* margin-bottom: 50px; */
    width: 100%;
}

.premium-section-title h4 {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    /* margin-bottom: 16px; */
    position: relative;
    display: inline-block;
}

/* .premium-section-title h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: #2196F3;
    border-radius: 2px;
} */

.premium-section-title p {
    font-size: 16px;
    color: #666;
    max-width: 700px;
    margin: 0px auto 0;
    line-height: 1.6;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Tablet - 2 Columns */
@media (max-width: 992px) {
    .premium-portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .premium-tab-link {
        padding: 12px 20px;
        font-size: 13px;
    }
    
    .premium-section-title h4 {
        font-size: 32px;
    }
    
    .premium-card-image {
        height: 280px;
    }
    
    .premium-portfolio-card:hover .premium-card-image img {
        transform: translateY(calc(-100% + 280px));
    }
    
    .premium-info-row a,
    .premium-info-row span {
        max-width: 180px;
    }
}

/* Mobile - 1 Column */
@media (max-width: 768px) {
    .premium-portfolio-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .premium-tabs-nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .premium-tab-link {
        padding: 10px 16px;
        font-size: 12px;
    }
    
    .premium-tab-icon {
        font-size: 14px;
        margin-right: 6px;
    }
    
    .premium-portfolio-tabs {
        margin-bottom: 30px;
        padding: 15px;
    }
    
    .premium-section-title h4 {
        font-size: 28px;
    }
    
    .premium-section-title p {
        font-size: 15px;
    }
    
    .premium-card-heading {
        padding: 16px 20px;
    }
    
    .premium-card-heading h4 {
        font-size: 16px;
        min-height: auto;
    }
    
    .premium-card-image {
        height: 250px;
    }
    
    .premium-portfolio-card:hover .premium-card-image img {
        transform: translateY(calc(-100% + 250px));
    }
    
    .premium-card-info {
        padding: 16px 20px;
    }
    
    .premium-info-row {
        font-size: 13px;
    }
    
    .premium-info-row a,
    .premium-info-row span {
        max-width: 250px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .premium-portfolio-tabs {
        border-radius: 12px;
        padding: 12px;
    }
    
    .premium-tabs-nav {
        gap: 6px;
    }
    
    .premium-tab-link {
        padding: 8px 12px;
        font-size: 11px;
    }
    
    .premium-portfolio-card {
        border-radius: 10px;
    }
    
    .premium-card-heading {
        padding: 14px 16px;
    }
    
    .premium-card-heading h4 {
        font-size: 15px;
    }
    
    .premium-card-info {
        padding: 14px 16px;
    }
    
    .premium-info-row {
        font-size: 12px;
        gap: 6px;
    }
    
    .premium-info-row i {
        font-size: 14px;
    }
    
    .premium-section-title h4 {
        font-size: 24px;
    }
    
    .premium-card-image {
        height: 220px;
    }
    
    .premium-portfolio-card:hover .premium-card-image img {
        transform: translateY(calc(-100% + 220px));
    }
    
    .premium-info-row a,
    .premium-info-row span {
        max-width: 200px;
    }
}

/* ========================================
   OLD PORTFOLIO STRUCTURE STYLES
   Matching the Premium Design
   ======================================== */

/* Responsive Adjustments */
@media (max-width: 992px) {
    .premium-card-image,
    .project-item .image-box {
        height: 280px;
    }
    
    .premium-portfolio-card:hover .premium-card-image img,
    .project-item:hover .image-box img {
        transform: translateY(calc(-100% + 280px));
    }
}

/* Responsive for Old Structure */
@media (max-width: 992px) {
    .project-item .image-box {
        height: 280px;
    }
    
    .project-item:hover .image-box img {
        transform: translateY(calc(-100% + 280px));
    }
    
    .project-item .info-row a,
    .project-item .info-row span {
        max-width: 180px;
    }
}

@media (max-width: 768px) {
    .premium-card-heading,
    .project-item .card-heading {
        padding: 12px 15px;
    }
    
    .premium-card-heading h4,
    .project-item .card-heading h4 {
        font-size: 16px;
    }
    
    .premium-card-image,
    .project-item .image-box {
        height: 250px;
    }
    
    .premium-portfolio-card:hover .premium-card-image img,
    .project-item:hover .image-box img {
        transform: translateY(calc(-100% + 250px));
    }
    
    .premium-card-info,
    .project-item .bottom-info {
        padding: 12px 15px;
    }
    
    .premium-info-row,
    .project-item .info-row {
        font-size: 12px;
    }

    .premium-info-row a,
    .project-item .info-row a {
        max-width: 7.5ch;
    }
}

@media (max-width: 480px) {
    .premium-portfolio-card,
    .project-item {
        border-radius: 10px;
    }
    
    .premium-card-image,
    .project-item .image-box {
        height: 220px;
    }
    
    .premium-portfolio-card:hover .premium-card-image img,
    .project-item:hover .image-box img {
        transform: translateY(calc(-100% + 220px));
    }
    
    .premium-info-row a,
    .project-item .info-row a {
        max-width: 6.5ch;
    }
}

/* ========================================
   ANIMATION UTILITIES
   ======================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.premium-fade-in {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

/* Stagger animation for grid items */
.premium-portfolio-card:nth-child(1) { animation-delay: 0.1s; }
.premium-portfolio-card:nth-child(2) { animation-delay: 0.2s; }
.premium-portfolio-card:nth-child(3) { animation-delay: 0.3s; }
.premium-portfolio-card:nth-child(4) { animation-delay: 0.4s; }
.premium-portfolio-card:nth-child(5) { animation-delay: 0.5s; }
.premium-portfolio-card:nth-child(6) { animation-delay: 0.6s; }

/* ========================================
   BADGE/TAG STYLING (Optional)
   ======================================== */

.premium-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #1791d8;
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 5;
    box-shadow: 0 2px 10px rgba(23, 145, 216, 0.4);
}
