/* Portfolio Page Styles - Modern Design */

/* Ensure portfolio images display in full color */
.portfolio-hero-split img,
.portfolio-grid img,
.portfolio-image img,
.portfolio-hero-split .phs-slide-image img,
.portfolio-grid .portfolio-image img,
.portfolio-item img,
.portfolio-card img,
img[src*="portfolio"] {
    filter: none !important;
    -webkit-filter: none !important;
    -moz-filter: none !important;
    -ms-filter: none !important;
    -o-filter: none !important;
    filter: unset !important;
    -webkit-filter: unset !important;
    color: unset !important;
    background: unset !important;
    mix-blend-mode: normal !important;
    -webkit-mix-blend-mode: normal !important;
}

/* Portfolio Hero Section - Modern */
.portfolio-hero-modern {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    background: radial-gradient(1200px 600px at 15% 20%, rgba(1,79,182,0.25), transparent 60%),
                radial-gradient(1000px 500px at 85% 60%, rgba(152,87,235,0.20), transparent 60%),
                linear-gradient(135deg, #0b1220 0%, #0f172a 40%, #111827 100%);
    overflow: hidden;
}

.portfolio-hero-modern .hero-background-modern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.portfolio-hero-modern .hero-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(1, 79, 182, 0.4), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(152, 87, 235, 0.4), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(1, 79, 182, 0.3), transparent);
    background-repeat: repeat;
    background-size: 200px 200px;
    animation: float 20s ease-in-out infinite;
}

.portfolio-hero-modern .gradient-overlay-1 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(1, 79, 182, 0.1) 0%, rgba(152, 87, 235, 0.1) 100%);
    z-index: 2;
}

.portfolio-hero-modern .gradient-overlay-2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(15, 23, 42, 0.8) 0%, rgba(30, 41, 59, 0.6) 100%);
    z-index: 3;
}

.portfolio-hero-modern .floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 4;
}

.portfolio-hero-modern .floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-weight: 600;
    animation: floatCard 15s ease-in-out infinite;
}

.portfolio-hero-modern .card-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.portfolio-hero-modern .card-2 {
    top: 60%;
    right: 15%;
    animation-delay: -5s;
}

.portfolio-hero-modern .card-3 {
    top: 40%;
    right: 30%;
    animation-delay: -10s;
}

.portfolio-hero-modern .hero-content-modern {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: 100vh;
    padding: 4rem 0;
}

.portfolio-hero-modern .hero-text-modern {
    color: white;
}


.portfolio-hero-modern .hero-title-modern {
    font-size: 3.25rem;
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #ffffff 0%, #9ec5ff 45%, #c4b5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.portfolio-hero-modern .hero-subtitle-modern {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.75;
    margin-bottom: 2rem;
    max-width: 46ch;
}

.portfolio-hero-modern .hero-stats-modern {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
}

.portfolio-hero-modern .stat-item-modern {
    text-align: center;
}

.portfolio-hero-modern .stat-number-modern {
    font-size: 2.5rem;
    font-weight: 800;
    color: #60a5fa;
    display: block;
    margin-bottom: 0.5rem;
}

.portfolio-hero-modern .stat-label-modern {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.portfolio-hero-modern .hero-actions-modern {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.portfolio-hero-modern .btn-primary-modern,
.portfolio-hero-modern .btn-secondary-modern {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.portfolio-hero-modern .btn-primary-modern {
    background: linear-gradient(135deg, #014fb6 0%, #9857eb 100%);
    color: white;
    box-shadow: 0 10px 30px rgba(1, 79, 182, 0.3);
}

.portfolio-hero-modern .btn-primary-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(1, 79, 182, 0.4);
    color: white;
}

.portfolio-hero-modern .btn-secondary-modern {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.portfolio-hero-modern .btn-secondary-modern:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-3px);
    color: white;
}

/* 2025 Refresh Modifiers */
.portfolio-hero-modern.is-2025-refresh .hero-panel {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: rgba(255,255,255,.9);
    backdrop-filter: blur(10px);
}

.portfolio-hero-modern.is-2025-refresh .hero-panel:before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #60a5fa, #014fb6);
}

.portfolio-hero-modern.is-2025-refresh .hero-content-modern {
    min-height: 70vh;
}

.portfolio-hero-modern.is-2025-refresh .floating-elements { opacity: .5; }
.portfolio-hero-modern.is-2025-refresh .tech-icons { display: none; }
.portfolio-hero-modern.is-2025-refresh .hero-visual-modern { display: none; }

/* Minimal variant removed (reverted to 2025 refresh) */

.portfolio-hero-modern .btn-icon {
    transition: transform 0.3s ease;
}

.portfolio-hero-modern .btn-primary-modern:hover .btn-icon {
    transform: translateX(5px);
}

.portfolio-hero-modern .btn-secondary-modern:hover .btn-icon {
    transform: scale(1.2);
}

/* Hero Visual Modern */
.portfolio-hero-modern .hero-visual-modern {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-hero-modern .visual-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.portfolio-hero-modern .portfolio-showcase {
    position: relative;
    width: 100%;
    height: 100%;
}

.portfolio-hero-modern .showcase-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 1rem;
    height: 100%;
}

.portfolio-hero-modern .showcase-item {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.portfolio-hero-modern .showcase-item:hover {
    transform: translateY(-10px) scale(1.02);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(1, 79, 182, 0.3);
}

.portfolio-hero-modern .item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 2rem;
}

.portfolio-hero-modern .item-icon {
    width: 60px;
    height: 60px;
    background: rgba(1, 79, 182, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.portfolio-hero-modern .showcase-item:hover .item-icon {
    background: rgba(1, 79, 182, 0.3);
    transform: scale(1.1);
}

.portfolio-hero-modern .item-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: white;
}

.portfolio-hero-modern .tech-icons {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.portfolio-hero-modern .tech-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    animation: floatIcon 20s ease-in-out infinite;
}

.portfolio-hero-modern .tech-1 {
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.portfolio-hero-modern .tech-2 {
    bottom: 20%;
    left: 5%;
    animation-delay: -7s;
}

.portfolio-hero-modern .tech-3 {
    top: 50%;
    right: 5%;
    animation-delay: -14s;
}

/* Animations */
@keyframes floatCard {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(2deg); }
    66% { transform: translateY(20px) rotate(-2deg); }
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(180deg); }
}

/* Unique Portfolio Hero */
.portfolio-hero-unique { position: relative; min-height: 70vh; display: flex; align-items: center; overflow: hidden; background: linear-gradient(135deg, #0b1220 0%, #0f172a 40%, #111827 100%); }
.portfolio-hero-unique .phu-bg { position: absolute; inset: 0; z-index: 1; }
.portfolio-hero-unique .phu-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px); background-size: 48px 48px; animation: phuGridPan 50s linear infinite; }
.portfolio-hero-unique .phu-glow { position: absolute; inset: -25% -15% -10% -15%; background: radial-gradient(900px 450px at 20% 30%, rgba(1,79,182,0.30), transparent 60%), radial-gradient(800px 400px at 85% 70%, rgba(152,87,235,0.25), transparent 60%); filter: blur(12px); }
.portfolio-hero-unique .phu-diagonal { position: absolute; top: -30%; left: -10%; width: 140%; height: 70%; transform: rotate(-6deg); background: linear-gradient(90deg, rgba(255,255,255,0.06), rgba(255,255,255,0)); z-index: 2; }
.portfolio-hero-unique .phu-inner { position: relative; z-index: 5; width: 100%; text-align: center; padding: 4rem 0; }
.portfolio-hero-unique .phu-badge { display: inline-flex; align-items: center; gap: .5rem; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); padding: .5rem 1rem; border-radius: 999px; color: #e5e7eb; margin-bottom: 1rem; }
.portfolio-hero-unique .phu-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #60a5fa; box-shadow: 0 0 10px #60a5fa; }
.portfolio-hero-unique .phu-card { margin: 0 auto 1.5rem; max-width: 900px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: 24px; padding: 2rem 2.25rem; backdrop-filter: blur(10px); box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.portfolio-hero-unique .phu-title { font-size: 3rem; font-weight: 900; line-height: 1.05; margin-bottom: .75rem; background: linear-gradient(135deg, #ffffff 0%, #9ec5ff 45%, #c4b5fd 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.portfolio-hero-unique .phu-subtitle { font-size: 1.125rem; color: rgba(255,255,255,0.9); line-height: 1.75; max-width: 70ch; margin: 0 auto 1.25rem; }
.portfolio-hero-unique .phu-stats { display: flex; gap: 1.5rem; justify-content: center; margin-bottom: 1.25rem; flex-wrap: wrap; }
.portfolio-hero-unique .phu-stats .item { display: flex; flex-direction: column; align-items: center; }
.portfolio-hero-unique .phu-stats .num { font-size: 2.2rem; font-weight: 800; color: #60a5fa; }
.portfolio-hero-unique .phu-stats .label { font-size: .85rem; color: rgba(255,255,255,.8); text-transform: uppercase; letter-spacing: 1px; }
.portfolio-hero-unique .phu-actions { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.portfolio-hero-unique .btn-phu-primary, .portfolio-hero-unique .btn-phu-secondary { display: inline-flex; align-items: center; gap: .6rem; padding: .9rem 1.6rem; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 1rem; transition: all .3s ease; color: #fff; }
.portfolio-hero-unique .btn-phu-primary { background: linear-gradient(135deg, #014fb6 0%, #9857eb 100%); box-shadow: 0 10px 30px rgba(1,79,182,.3); }
.portfolio-hero-unique .btn-phu-secondary { background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.18); backdrop-filter: blur(8px); }
.portfolio-hero-unique .btn-phu-primary:hover { transform: translateY(-3px); box-shadow: 0 15px 40px rgba(1,79,182,.4); }
.portfolio-hero-unique .btn-phu-secondary:hover { transform: translateY(-3px); background: rgba(255,255,255,0.16); border-color: rgba(255,255,255,0.28); }
.portfolio-hero-unique .btn-icon { transition: transform .3s ease; }
.portfolio-hero-unique .btn-phu-primary:hover .btn-icon, .portfolio-hero-unique .btn-phu-secondary:hover .btn-icon { transform: translateX(4px); }
.portfolio-hero-unique .phu-marquee { overflow: hidden; mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent); -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent); }
.portfolio-hero-unique .phu-marquee .track { display: flex; gap: .75rem; padding: .5rem 0; animation: phuMarquee 20s linear infinite; }
.portfolio-hero-unique .phu-marquee .chip { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .9rem; border-radius: 999px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); color: #e5e7eb; font-weight: 600; font-size: .9rem; }
@keyframes phuMarquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes phuGridPan { from { background-position: 0 0, 0 0; } to { background-position: 240px 240px, 240px 240px; } }

@media (max-width: 768px) {
    .portfolio-hero-unique .phu-title { font-size: 2.25rem; }
    .portfolio-hero-unique .phu-card { padding: 1.5rem 1.75rem; }
    .portfolio-hero-unique { min-height: 60vh; }
}

/* Split Featured Hero */
.portfolio-hero-split { position: relative; min-height: 80vh; display: flex; align-items: center; overflow: hidden; background: linear-gradient(135deg, #0b1220 0%, #0f172a 40%, #111827 100%); }
.portfolio-hero-split .phs-bg { position: absolute; inset: 0; z-index: 1; }
.portfolio-hero-split .phs-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px); background-size: 48px 48px; animation: phuGridPan 50s linear infinite; }
.portfolio-hero-split .phs-glow { position: absolute; inset: -25% -15% -10% -15%; background: radial-gradient(900px 450px at 20% 30%, rgba(1,79,182,0.30), transparent 60%), radial-gradient(800px 400px at 85% 70%, rgba(152,87,235,0.25), transparent 60%); filter: blur(12px); }
.portfolio-hero-split .phs-inner { position: relative; z-index: 5; width: 100%; display: flex; justify-content: center; align-items: center; padding: 4rem 0; }
.portfolio-hero-split .phs-left { color: #fff; text-align: center; max-width: 800px; }
.portfolio-hero-split .phs-badge { display: inline-flex; align-items: center; gap: .5rem; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); padding: .5rem 1rem; border-radius: 999px; color: #e5e7eb; margin-bottom: 1rem; }
.portfolio-hero-split .phs-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #60a5fa; box-shadow: 0 0 10px #60a5fa; }
.portfolio-hero-split .phs-title { font-size: 3rem; font-weight: 900; line-height: 1.05; margin-bottom: .75rem; background: linear-gradient(135deg, #ffffff 0%, #9ec5ff 45%, #c4b5fd 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.portfolio-hero-split .phs-subtitle { font-size: 1.125rem; color: rgba(255,255,255,0.9); line-height: 1.75; max-width: 60ch; margin-bottom: 1.25rem; }
.portfolio-hero-split .phs-stats { display: flex; gap: 1.2rem; flex-wrap: wrap; margin-bottom: 1.25rem; justify-content: center; }
.portfolio-hero-split .phs-stats .item { display: flex; flex-direction: column; align-items: center; }
.portfolio-hero-split .phs-stats .num { font-size: 2rem; font-weight: 800; color: #60a5fa; }
.portfolio-hero-split .phs-stats .label { font-size: .85rem; color: rgba(255,255,255,.8); text-transform: uppercase; letter-spacing: 1px; }
.portfolio-hero-split .phs-actions { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.portfolio-hero-split .btn-phs-primary, .portfolio-hero-split .btn-phs-secondary { display: inline-flex; align-items: center; gap: .6rem; padding: .9rem 1.6rem; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 1rem; transition: all .3s ease; color: #fff; }
.portfolio-hero-split .btn-phs-primary { background: linear-gradient(135deg, #014fb6 0%, #9857eb 100%); box-shadow: 0 10px 30px rgba(1,79,182,.3); }
.portfolio-hero-split .btn-phs-secondary { background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.18); backdrop-filter: blur(8px); }
.portfolio-hero-split .btn-phs-primary:hover { transform: translateY(-3px); box-shadow: 0 15px 40px rgba(1,79,182,.4); }
.portfolio-hero-split .btn-phs-secondary:hover { transform: translateY(-3px); background: rgba(255,255,255,0.16); border-color: rgba(255,255,255,0.28); }
.portfolio-hero-split .btn-icon { transition: transform .3s ease; }
.portfolio-hero-split .btn-phs-primary:hover .btn-icon, .portfolio-hero-split .btn-phs-secondary:hover .btn-icon { transform: translateX(4px); }



/* Portfolio Filter Section */
.portfolio-filter {
    padding: 3rem 0;
    background: #f8fafc;
}

.filter-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.filter-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid #e2e8f0;
    background: white;
    color: #64748b;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    border-color: #667eea;
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

.search-box {
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    padding: 0.5rem;
    min-width: 300px;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    background: transparent;
}

.search-btn {
    background: #667eea;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: #5a67d8;
    transform: scale(1.1);
}

/* Portfolio Grid Section */
.portfolio-grid-section {
    padding: 4rem 0;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.portfolio-item {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.portfolio-item.hidden {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.portfolio-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.portfolio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.portfolio-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    filter: none;
}

.portfolio-card:hover .portfolio-image img {
    transform: scale(1.05);
}

.placeholder-image {
    width: 100%;
    height: 100%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-actions {
    display: flex;
    gap: 1rem;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.portfolio-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.portfolio-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.portfolio-category {
    background: #667eea;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.portfolio-year {
    color: #64748b;
    font-size: 0.875rem;
}

.portfolio-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.portfolio-description {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: #f1f5f9;
    color: #475569;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* No Projects State */
.no-projects {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
}

.no-projects-icon {
    color: #cbd5e1;
    margin-bottom: 1rem;
}

.no-projects h3 {
    font-size: 1.5rem;
    color: #475569;
    margin-bottom: 0.5rem;
}

.no-projects p {
    color: #64748b;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
}

.pagination-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: white;
    color: #475569;
    text-decoration: none;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pagination-btn:hover {
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-2px);
}

.pagination-numbers {
    display: flex;
    gap: 0.5rem;
}

.pagination-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: white;
    color: #475569;
    text-decoration: none;
    border: 2px solid #e2e8f0;
    border-radius: 50%;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pagination-number:hover,
.pagination-number.active {
    border-color: #667eea;
    background: #667eea;
    color: white;
}

/* Portfolio CTA */
.portfolio-cta {
    padding: 4rem 0;
    background: #ffffff;
    color: #1a202c;
    text-align: center;
}

.portfolio-cta .cta-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #1a202c;
}

.portfolio-cta .cta-content p {
    font-size: 1.25rem;
    color: #64748b;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.portfolio-cta .cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Project Detail Styles */
.project-hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #014fb6 0%, #9857eb 100%);
    overflow: hidden;
}

.project-hero .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.project-hero .geometric-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.project-hero .shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 20s infinite linear;
}

.project-hero .circle-1 {
    width: 200px;
    height: 200px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.project-hero .circle-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 15%;
    animation-delay: -5s;
}

.project-hero .triangle-1 {
    width: 0;
    height: 0;
    border-left: 75px solid transparent;
    border-right: 75px solid transparent;
    border-bottom: 130px solid rgba(255, 255, 255, 0.1);
    top: 30%;
    right: 30%;
    border-radius: 0;
    animation-delay: -10s;
}

.project-hero .gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(1, 79, 182, 0.9) 0%, rgba(152, 87, 235, 0.9) 100%);
    z-index: 2;
}

.project-hero .hero-content {
    position: relative;
    z-index: 10;
    color: white;
}

.project-breadcrumb {
    margin-bottom: 2rem;
}

.project-breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.project-breadcrumb a:hover {
    color: white;
}

.breadcrumb-separator {
    margin: 0 1rem;
    color: rgba(255, 255, 255, 0.6);
}

.project-header {
    max-width: 800px;
}

.project-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.project-category {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.875rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.project-year {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
}

.project-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.project-description {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.9;
    color: white;
}

.project-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.project-actions .btn-outline {
    color: white !important;
    border-color: rgba(255, 255, 255, 0.8) !important;
    background: transparent !important;
}

.project-actions .btn-outline:hover {
    color: #014fb6 !important;
    background: white !important;
    border-color: white !important;
}

/* Project Details */
.project-details {
    padding: 4rem 0;
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: start;
}

.project-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-card,
.tech-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.info-card h3,
.tech-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 1.5rem;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: #475569;
}

.info-value {
    color: #1a202c;
}

.status-completed {
    color: #10b981;
    font-weight: 600;
}

.status-ongoing {
    color: #f59e0b;
    font-weight: 600;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tech-tag {
    background: #667eea;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Project Gallery */
.project-gallery {
    position: sticky;
    top: 2rem;
}

.gallery-container {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.main-image {
    height: 400px;
    overflow: hidden;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 0.5rem;
    padding: 1rem;
    max-height: 240px; /* prevent overflow when many images */
    overflow-y: auto;
    overflow-x: hidden;
}

.thumbnail {
    width: 100%;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
}

.thumbnail.active {
    border-color: #667eea;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-images {
    height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    background: #f8fafc;
}

/* Project Results */
.project-results {
    padding: 4rem 0;
    background: #f8fafc;
}

.results-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 2rem;
    text-align: center;
}

.results-text {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.125rem;
    line-height: 1.7;
    color: #475569;
}

/* Related Projects */
.related-projects {
    padding: 4rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.125rem;
    color: #64748b;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.related-item {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.related-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.related-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.related-image {
    height: 200px;
    overflow: hidden;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-item:hover .related-image img {
    transform: scale(1.05);
}

.related-content {
    padding: 1.5rem;
}

.related-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 0.5rem;
}

.related-category {
    color: #667eea;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Project CTA */
.project-cta {
    padding: 4rem 0;
    background: linear-gradient(135deg, #014fb6 0%, #9857eb 100%);
    color: white;
    text-align: center;
}

.project-cta .cta-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.project-cta .cta-content p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: white;
}

.project-cta .cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.project-cta .btn-outline {
    color: white !important;
    border-color: rgba(255, 255, 255, 0.8) !important;
    background: transparent !important;
}

.project-cta .btn-outline:hover {
    color: #014fb6 !important;
    background: white !important;
    border-color: white !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .portfolio-hero-modern .hero-content-modern {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        padding: 2rem 0;
    }
    
    .portfolio-hero-modern .hero-title-modern {
        font-size: 2.5rem;
    }
    
    .portfolio-hero-modern .hero-subtitle-modern {
        font-size: 1rem;
        max-width: 100%;
    }
    
    .portfolio-hero-modern .hero-stats-modern {
        justify-content: center;
        gap: 1.5rem;
    }
    
    .portfolio-hero-modern .hero-actions-modern {
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }
    
    .portfolio-hero-modern .hero-visual-modern {
        height: 400px;
    }
    
    .portfolio-hero-modern .showcase-grid {
        gap: 0.5rem;
    }
    
    .portfolio-hero-modern .floating-card {
        display: none;
    }
    
    .portfolio-hero .hero-title {
        font-size: 2rem;
    }
    
    .portfolio-hero .hero-subtitle {
        font-size: 1rem;
    }
    
    .filter-content {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        min-width: auto;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .project-title {
        font-size: 2.5rem;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .project-gallery {
        position: static;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-cta .cta-buttons,
    .project-cta .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-30px) rotate(120deg); }
    66% { transform: translateY(30px) rotate(240deg); }
}

/* FORCE PORTFOLIO IMAGES TO DISPLAY IN FULL COLOR - HIGHEST PRIORITY */
.portfolio-hero-split .phs-slide-image img,
.portfolio-grid .portfolio-image img,
.portfolio-item .portfolio-image img,
.portfolio-card .portfolio-image img,
img[src*="portfolio"],
.portfolio-hero-split img,
.portfolio-grid img,
.portfolio-image img,
.portfolio-item img,
.portfolio-card img {
    filter: none !important;
    -webkit-filter: none !important;
    -moz-filter: none !important;
    -ms-filter: none !important;
    -o-filter: none !important;
    filter: unset !important;
    -webkit-filter: unset !important;
    color: unset !important;
    background: unset !important;
    mix-blend-mode: normal !important;
    -webkit-mix-blend-mode: normal !important;
    opacity: 1 !important;
    -webkit-opacity: 1 !important;
    transform: none !important;
    -webkit-transform: none !important;
    -moz-transform: none !important;
    -ms-transform: none !important;
    -o-transform: none !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
    -ms-box-shadow: none !important;
    -o-box-shadow: none !important;
}
