:root {
    --p-blue: #0066ff;
    --p-bg: #020202;
    --p-card-bg: rgba(255, 255, 255, 0.03);
    --p-transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}
.portfolio-page {
    color: white;
    overflow-x: hidden;
    padding-bottom: 50px;
}
.p-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
    padding: 130px 20px 40px;
}
.p-title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -1.5px;
    margin: 0;
    line-height: 1.1;
}
.p-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
}
.p-line-bg {
    position: absolute;
    left: 50%;
    top: 0;
    width: 2px;
    height: 0;
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(-50%);
}
.p-line-progress {
    position: absolute;
    left: 50%;
    top: 0;
    width: 2px;
    height: 0;
    background: var(--p-blue);
    transform: translateX(-50%);
    box-shadow: 0 0 20px var(--p-blue), 0 0 40px rgba(0, 102, 255, 0.3);
    z-index: 2;
}
.p-item {
    display: flex;
    width: 100%;
    margin-bottom: 120px;
    position: relative;
    z-index: 5;
}
.p-item.left { justify-content: flex-start; }
.p-item.right { justify-content: flex-end; }
.p-item:last-of-type {
    margin-bottom: 80px;
}
.p-card {
    width: 44%;
    background: var(--p-card-bg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 30px;
    backdrop-filter: blur(12px);
    transition: var(--p-transition);
}
.p-card:hover {
    border-color: var(--p-blue);
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.05);
}

.p-dot {
    position: absolute;
    left: 50%;
    top: 45px;
    width: 14px;
    height: 14px;
    background: #000;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 10;
    transition: var(--p-transition);
}
.p-item.animated .p-dot {
    background: var(--p-blue);
    border-color: var(--p-blue);
    box-shadow: 0 0 15px var(--p-blue);
}


.p-tag {
    display: inline-block;
    color: var(--p-blue);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}

.p-info h2 {
    font-size: 1.8rem;
    margin: 0 0 15px 0;
    font-weight: 700;
}

.p-info p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
}
.p-visuals {
    display: grid;
    gap: 12px;
}
.p-visuals.duo { grid-template-columns: 1fr 1fr; }
.p-visuals.single { grid-template-columns: 1fr; }
.p-img-box {
    position: relative;
    height: 550px;
    border-radius: 16px;
    overflow: hidden;
    background: #111;
}

.p-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.p-img-box:hover img {
    transform: scale(1.08);
}
.p-label {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    color: white;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}
.p-footer-area {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 50px;
    width: 100%;
    z-index: 10;
}
.p-finish-dot {
    position: relative;
    width: 24px;
    height: 24px;
    background: var(--p-blue);
    border-radius: 50%;
    margin-bottom: 20px;
    animation: p-pulse 2s infinite;
    border: 4px solid var(--p-bg);
    box-shadow: 0 0 15px var(--p-blue);
}

.p-finish-text {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 2px;
    margin-bottom: 30px;
}
.p-view-all-btn {
    display: inline-block;
    padding: 18px 45px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--p-blue);
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 50px;
    text-decoration: none;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 102, 255, 0.1);
}

.p-view-all-btn:hover {
    background: var(--p-blue);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 102, 255, 0.4);
}

@keyframes p-pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 102, 255, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(0, 102, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 102, 255, 0); }
}
@media (max-width: 900px) {
    .p-line-bg, .p-line-progress, .p-dot, .p-finish-dot, .p-finish-text {
        display: none;
    }

    .p-item {
        justify-content: center !important;
        margin-bottom: 60px;
        width: 100%;
    }

    .p-card {
        width: 100%;
        max-width: 500px;
    }

    .p-img-box {
        height: 450px;
    }

    .p-visuals.duo {
        grid-template-columns: 1fr;
    }

    .p-footer-area {
        margin-top: 20px;
    }
}
.fp-modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(15px);
    z-index: 3000;
    display: none;
    justify-content: center;
    align-items: flex-start;
    overflow-y: auto;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.fp-modal.open {
    opacity: 1;
    display: flex;
}
.fp-close {
    position: fixed;
    top: 20px; right: 30px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 2.5rem;
    width: 50px; height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 3005;
    transition: 0.3s;
    display: flex; align-items: center; justify-content: center;
    line-height: 1;
}
.fp-close:hover { background: var(--p-blue); transform: rotate(90deg); }
.fp-content {
    width: 100%;
    max-width: 1400px;
    padding: 80px 20px 150px;
    position: relative;
}
.fp-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 50px;
}
.category-group {
    margin-bottom: 25px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    transition: border-color 0.3s ease, background 0.3s ease;
}
.category-group.active {
    border-color: rgba(0, 102, 255, 0.3);
    background: rgba(255, 255, 255, 0.03);
}

.cat-section-header {
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.cat-section-title {
    font-size: 1.1rem;
    color: var(--p-blue);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 800;
    margin: 0;
}
.acc-icon {
    font-size: 0.8rem;
    color: var(--p-blue);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.category-group.active .acc-icon {
    transform: rotate(180deg);
}
.fp-grid-wrapper {
    max-height: 0;
    overflow: hidden;
    transition: max-height 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: max-height;
}
.category-group.active .fp-grid-wrapper {
    max-height: 10000px;
    overflow: visible;
}
.fp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    padding: 10px 30px 40px;
}
.fp-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    aspect-ratio: 4 / 3;
    cursor: pointer;
    transition: all 0.3s ease;
}
.fp-item:hover {
    transform: translateY(-6px);
    border-color: var(--p-blue);
    background: rgba(255, 255, 255, 0.05);
}
.fp-preview-box {
    width: 100%; height: 100%;
    display: flex;
}
.fp-preview-box img { width: 100%; height: 100%; object-fit: cover; }
.fp-preview-box.duo img { width: 50%; border-right: 1px solid rgba(0,0,0,0.5); }
.fp-preview-box.duo img:last-child { border-right: none; }

.fp-item-title {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 15px;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    opacity: 0.9;
}

.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.lightbox-overlay.active { display: flex; opacity: 1; }
.lightbox-container {
    width: 90%; max-width: 1000px;
    height: 80vh; display: flex; flex-direction: column;
}
#lightbox-content { flex: 1; position: relative; display: flex; justify-content: center; align-items: center; overflow: hidden; }
.lightbox-img-single { max-width: 100%; max-height: 100%; object-fit: contain; }


.ba-side-by-side {
    display: flex;
    gap: 20px;
    width: 100%;
    height: 100%;
    padding: 10px;
}
.ba-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-width: 0;
}
.ba-item-label {
    align-self: center;
    background: var(--p-blue);
    color: white;
    padding: 5px 15px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1px;
}
.ba-side-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.lightbox-close {
    position: fixed;
    top: 20px;
    right: 30px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 2.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10000;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.lightbox-close:hover {
    background: var(--p-blue);
    transform: rotate(90deg);
}
.lightbox-caption {
    text-align: center; color: #999; padding: 20px;
    font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
}

@media (max-width: 768px) {
    .fp-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; padding: 5px 15px 30px; }
    .fp-item { aspect-ratio: 1 / 1; }
    .fp-item-title { font-size: 0.7rem; padding: 8px; }
    .lightbox-container { height: 85vh; width: 95%; }
    .ba-side-by-side { flex-direction: column; overflow-y: auto; }
    .ba-box { flex: none; height: 45%; }
}
.p-footer {
    padding: 80px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: #010101;
    width: 100%;
    position: relative;
    z-index: 10;
}
.p-footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}
.p-f-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 60px;
}

.p-f-legal { display: flex; flex-direction: column; gap: 15px; }
.p-legal-link { 
    color: var(--p-blue); 
    text-decoration: none; 
    font-weight: 700; 
    font-size: 0.9rem; 
    transition: 0.3s;
}
.p-legal-link:hover { filter: brightness(1.2); text-decoration: underline; }
.p-business-info { 
    color: #666; 
    font-size: 0.85rem; 
    line-height: 1.8; 
    display: flex; 
    flex-direction: column; 
}
.p-f-info p {
    margin-top: 15px;
    color: #666;
    font-size: 0.95rem;
    max-width: 300px;
}

.p-f-contact a {
    display: block;
    color: white;
    text-decoration: none;
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 10px;
    transition: 0.3s;
}

.p-f-contact a:hover {
    color: var(--p-blue);
}

.p-f-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 30px;
    color: #333;
    font-size: 0.85rem;
}

@media (max-width: 1024px) {
    .p-f-content {
        flex-direction: column;
        gap: 40px;
        text-align: center;
        align-items: center;
    }
    .p-f-contact a {
        font-size: 1.3rem;
    }
}
