/* ===== Our Works Page Specific Styles ===== */

/* ============================================
   PRODUCT GALLERY MODAL
============================================ */
body.modal-open {
    overflow: hidden !important;
}

.product-gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    overflow: hidden;
    overscroll-behavior: contain;
}

.product-gallery-modal.active {
    opacity: 1;
    visibility: visible;
}

.product-gallery-content {
    width: 90%;
    max-width: 1200px;
    height: 90vh;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    overscroll-behavior: contain;
    display: flex;
    flex-direction: column;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.product-gallery-modal.active .product-gallery-content {
    transform: scale(1);
}

.product-gallery-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 30px;
    background: linear-gradient(135deg, #100F57 0%, #1a1980 50%, #0a92dd 100%);
    color: #fff;
}

.product-gallery-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.product-gallery-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-gallery-share {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-gallery-share:hover {
    background: rgba(255, 255, 255, 0.35);
}

.product-gallery-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-gallery-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Pinterest / Masonry Grid Gallery */
.product-gallery-grid {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    overscroll-behavior: contain;
    columns: 4 240px;
    column-gap: 16px;
}

.product-gallery-grid .gallery-item {
    break-inside: avoid;
    margin-bottom: 16px;
    display: inline-block;
    width: 100%;
}

@media (max-width: 900px) {
    .product-gallery-grid {
        columns: 3 200px;
    }
}

@media (max-width: 600px) {
    .product-gallery-grid {
        columns: 2 150px;
    }
}

.product-gallery-grid::-webkit-scrollbar {
    width: 8px;
}

.product-gallery-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.product-gallery-grid::-webkit-scrollbar-thumb {
    background: #100F57;
    border-radius: 4px;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.gallery-item video {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16/9;
    object-fit: cover;
}

/* Video item play button overlay (handled by .gallery-video-overlay) */
.gallery-item.video-item {
    position: relative;
}

.gallery-item-info {
    padding: 15px;
    background: #fff;
}

.gallery-item-info h4 {
    font-size: 1rem;
    color: #1a1a2e;
    margin: 0 0 5px 0;
}

.gallery-item-info p {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
}

/* Gallery inline video overlay */
.gallery-video-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 2;
}

.gallery-play-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(16, 15, 87, 0.85);
    border: 2px solid rgba(255,255,255,0.5);
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gallery-play-btn:hover {
    background: rgba(16, 15, 87, 1);
    transform: scale(1.1);
}

.gallery-item.video-item {
    position: relative;
}

.gallery-item.video-item video {
    width: 100%;
    height: auto;
    display: block;
}

/* Reel items - taller portrait-style like shorts/reels */
.gallery-item.reel-item video {
    aspect-ratio: 9/16;
    object-fit: cover;
}

/* ============================================
   CATEGORIES SHOWCASE
============================================ */
.categories-showcase {
    padding: 80px 0;
    background: #f8f9fa;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.category-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 280px;
    cursor: pointer;
    transition: all 0.4s ease;
}

.category-card.large {
    grid-column: span 2;
    grid-row: span 2;
    height: 100%;
}

.category-card.wide {
    grid-column: span 2;
}

.category-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.category-bg .bg-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #100F57 0%, #1a1980 50%, #0a92dd 100%);
}

/* Category Slider for Bento Cards — Fade Carousel */
.category-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.category-slider .slider-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.category-slider .slider-img.active {
    opacity: 1;
}

/* Scale effect on hover */
.category-card:hover .category-slider {
    transform: scale(1.05);
    transition: transform 0.5s ease;
}

.category-bg .category-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    transition: transform 0.5s ease;
}

.category-card:hover .category-bg .category-bg-img {
    transform: scale(1.1);
}

/* When no image loaded, keep the gradient placeholder visible */
.category-bg .category-bg-img[src=""] {
    opacity: 0;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.65) 100%);
    z-index: 1;
}

.category-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px;
    z-index: 2;
    color: var(--white);
    transition: transform 0.3s ease;
}

.category-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #0a92dd, #667eea);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.category-card.large .category-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
}

.category-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.category-card.large .category-content h3 {
    font-size: 1.8rem;
}

.category-content p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.category-count {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(102, 126, 234, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    z-index: 3;
    transition: opacity 0.3s ease;
}

.category-card:hover .category-overlay {
    opacity: 1;
}

.explore-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: var(--white);
    color: #0a92dd;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.category-card:hover .explore-btn {
    transform: translateY(0);
}

.explore-btn:hover {
    background: #f8f9fa;
    transform: scale(1.05);
}

/* More Categories */
.more-categories {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.mini-category {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--white);
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #495057;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.mini-category:hover {
    background: linear-gradient(135deg, #0a92dd, #667eea);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(10, 146, 221, 0.3);
}

.mini-category i {
    font-size: 1rem;
}

/* ============================================
   PORTFOLIO SECTION
============================================ */
.portfolio-section {
    padding: 80px 0;
    background: #f8f9fa;
}

/* Filter Tabs */
.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.filter-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--white);
    border: 2px solid #e9ecef;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #495057;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-tab:hover {
    border-color: #0a92dd;
    color: #0a92dd;
}

.filter-tab.active {
    background: linear-gradient(135deg, #0a92dd, #667eea);
    border-color: transparent;
    color: var(--white);
}

.filter-tab i {
    font-size: 0.85rem;
}

/* Portfolio Grid - Pinterest / Masonry Layout */
.portfolio-grid {
    columns: 4 240px;
    column-gap: 20px;
}

.portfolio-item {
    break-inside: avoid;
    display: inline-block;
    width: 100%;
    margin-bottom: 20px;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid #e2e8f0;
    background: #fff;
    transition: all 0.3s ease;
}

.portfolio-item:hover {
    border-color: #0a92dd;
    box-shadow: 0 10px 30px rgba(10, 146, 221, 0.15);
}

/* Remove forced aspect ratios for masonry - let images be natural height */
.portfolio-item.square,
.portfolio-item.landscape,
.portfolio-item.portrait,
.portfolio-item:not(.square):not(.landscape):not(.portrait) {
    aspect-ratio: unset;
}

.portfolio-item.featured {
    border-width: 3px;
}

.portfolio-image {
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
}

.portfolio-image img,
.portfolio-image video {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    transition: transform 0.5s ease;
}

/* For items with aspect ratio, use cover */
.portfolio-item.square .portfolio-image img,
.portfolio-item.square .portfolio-image video,
.portfolio-item.landscape .portfolio-image img,
.portfolio-item.landscape .portfolio-image video,
.portfolio-item.portrait .portfolio-image img,
.portfolio-item.portrait .portfolio-image video,
.portfolio-item.featured .portfolio-image img,
.portfolio-item.featured .portfolio-image video {
    object-fit: contain;
}

.portfolio-item:hover .portfolio-image img,
.portfolio-item:hover .portfolio-image video {
    transform: scale(1.05);
}

/* Video type portfolio items */
.portfolio-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.9);
    z-index: 3;
    pointer-events: none;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
}
.portfolio-item:hover .portfolio-play-icon {
    transform: translate(-50%, -50%) scale(1.15);
}
.portfolio-video-placeholder {
    width: 100%;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #100F57 0%, #0a92dd 100%);
    color: rgba(255,255,255,0.5);
    font-size: 3rem;
}

/* Video specific styles */
.portfolio-image video {
    cursor: pointer;
}

.portfolio-image .video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: all 0.3s ease;
    pointer-events: none;
}

.portfolio-image .video-play-btn i {
    font-size: 1.5rem;
    color: #0a92dd;
    margin-left: 4px;
}

.portfolio-item:hover .video-play-btn {
    transform: translate(-50%, -50%) scale(1.1);
    background: #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.portfolio-item.playing .video-play-btn {
    opacity: 0;
}

.featured-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    color: #333;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 5;
}

.portfolio-overlay {
    display: none;
}

.portfolio-item:hover .portfolio-overlay {
    display: none;
}

.overlay-content {
    padding: 25px;
    color: var(--white);
    width: 100%;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.portfolio-item:hover .overlay-content {
    transform: translateY(0);
}

.portfolio-category {
    display: inline-block;
    background: rgba(102, 126, 234, 0.8);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.overlay-content h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.overlay-content p {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-bottom: 15px;
}

.overlay-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: var(--white);
    color: #0a92dd;
}

.action-btn.like-btn.liked {
    background: #e74c3c;
    color: var(--white);
}

/* Load More */
.load-more-wrapper {
    text-align: center;
    margin-top: 50px;
}

.load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 40px;
    background: var(--white);
    border: 2px solid #0a92dd;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    color: #0a92dd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    background: #0a92dd;
    color: var(--white);
}

.load-more-btn i {
    transition: transform 0.3s ease;
}

.load-more-btn:hover i {
    transform: translateY(3px);
}

/* ============================================
   PROCESS SECTION
============================================ */
.process-section {
    padding: 80px 0;
    background: var(--white);
}

.process-timeline {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
}

.process-step {
    text-align: center;
    flex: 1;
    max-width: 200px;
    position: relative;
}

.step-number {
    font-size: 3rem;
    font-weight: 800;
    color: rgba(10, 146, 221, 0.15);
    line-height: 1;
    margin-bottom: 15px;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #0a92dd, #667eea);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--white);
    margin: 0 auto 20px;
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 30px rgba(10, 146, 221, 0.3);
}

.step-content h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.step-content p {
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.5;
}

.process-connector {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #0a92dd, #667eea);
    margin-top: 85px;
    position: relative;
}

.process-connector::after {
    content: '';
    position: absolute;
    right: -5px;
    top: -4px;
    width: 10px;
    height: 10px;
    border-right: 3px solid #667eea;
    border-bottom: 3px solid #667eea;
    transform: rotate(-45deg);
}

/* ============================================
   LIGHTBOX
============================================ */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.lightbox-close:hover {
    background: rgba(255,255,255,0.2);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.lightbox-nav:hover {
    background: rgba(255,255,255,0.2);
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85vh;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 10px;
    display: block;
}

.lightbox-footer {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    pointer-events: none;
}

.lightbox-caption {
    color: var(--white);
    font-size: 1.05rem;
}

.lightbox-counter {
    color: rgba(255,255,255,0.55);
    font-size: 0.85rem;
    letter-spacing: 0.04em;
}

/* ============================================
   VIDEO MODAL
============================================ */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.video-modal.active {
    opacity: 1;
    visibility: visible;
}

.video-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
}

/* Portrait video (reels) */
.video-modal-content.portrait {
    max-width: 400px;
}

.video-modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.video-modal-close:hover {
    background: rgba(255,255,255,0.3);
    transform: rotate(90deg);
}

.video-modal-content video {
    width: 100%;
    max-height: 85vh;
    border-radius: 16px;
    object-fit: contain;
}

/* Active nav link */
.nav-links a.active {
    color: var(--accent-color);
    font-weight: 600;
}


/* ===== Extra Categories Tag Bar (below bento) ===== */
.extra-categories-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 24px;
    padding-bottom: 8px;
}

.extra-category-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1.5px solid var(--accent-color, #6d5dfc);
    color: var(--accent-color, #6d5dfc);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.extra-category-tag:hover,
.extra-category-tag.active {
    background: var(--accent-color, #6d5dfc);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(109, 93, 252, 0.25);
}

.extra-category-tag i {
    font-size: 0.85rem;
}
