/* ============================================================
   PORTOFOLIO CSS - TOPI DRUMBAND
   Versi 2.0 - Terintegrasi dengan Lightbox
   ============================================================ */

/* ============================================================
   RESET & BASE (Hanya untuk halaman portofolio)
   ============================================================ */
.portfolio-hero,
.portfolio-hero *,
.gallery-wrap,
.gallery-wrap *,
.gallery,
.gallery *,
.lightbox-overlay,
.lightbox-overlay * {
    box-sizing: border-box;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.portfolio-hero {
    background: linear-gradient(145deg, #0f172a 0%, #1e293b 100%);
    padding: 60px 0 50px;
    text-align: center;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
}

.portfolio-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 40%, rgba(56, 189, 248, 0.06) 0%, transparent 60%);
}

.portfolio-hero .hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.portfolio-label {
    display: inline-block;
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #38bdf8;
    padding: 6px 24px;
    border-radius: 40px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.portfolio-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
    line-height: 1.2;
}

.portfolio-hero .sub-text {
    font-size: 1.15rem;
    max-width: 650px;
    margin: 0 auto 30px;
    opacity: 0.8;
    line-height: 1.7;
}

/* Filter Badge */
.filter-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.filter-group .badge {
    display: inline-block;
    padding: 6px 20px;
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: default;
    transition: all 0.3s ease;
}

.filter-group .badge.highlight {
    background: #38bdf8;
    color: #0f172a;
    border-color: #38bdf8;
    font-weight: 600;
}

.filter-group .badge:not(.highlight):hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

/* ============================================================
   GALERI WRAPPER
   ============================================================ */
.gallery-wrap {
    padding: 40px 0 20px;
    background: #f8fafc;
}

/* ============================================================
   RESET GALERI WORDPRESS (TIMPA STYLE DEFAULT)
   ============================================================ */
.gallery {
    margin: 0 auto !important;
    padding: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
    gap: 24px !important;
    clear: both !important;
    max-width: 1200px;
}

/* Sembunyikan <br> bawaan WordPress */
.gallery br {
    display: none !important;
}

/* ============================================================
   ITEM GALERI (CARD)
   ============================================================ */
.gallery-item {
    float: none !important;
    margin: 0 !important;
    width: 100% !important;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    list-style: none !important;
    text-align: left !important;
}

/* Hover effect */
.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
    border-color: #38bdf8;
}

/* ============================================================
   GAMBAR (THUMBNAIL)
   ============================================================ */
.gallery-icon {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0;
    overflow: hidden;
    background: #f1f5f9;
    position: relative;
}

.gallery-icon a {
    display: block;
    overflow: hidden;
    position: relative;
}

.gallery-icon img {
    width: 100% !important;
    height: 260px !important;
    object-fit: cover !important;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: none !important;
    background: #f1f5f9;
}

/* Zoom gambar saat hover */
.gallery-item:hover .gallery-icon img {
    transform: scale(1.06);
}

/* ============================================================
   OVERLAY GRADIENT SAAT HOVER
   ============================================================ */
.gallery-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 45%;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.50), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    border-radius: 0 0 16px 16px;
    z-index: 1;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* ============================================================
   BADGE "KLIK UNTUK ZOOM" (di pojok gambar)
   ============================================================ */
.gallery-icon a::after {
    content: '??';
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(255, 255, 255, 0.90);
    backdrop-filter: blur(6px);
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 0.75rem;
    color: #0f172a;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-family: sans-serif;
    font-weight: 600;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.10);
    pointer-events: none;
    z-index: 2;
    letter-spacing: 0.3px;
}

.gallery-item:hover .gallery-icon a::after {
    opacity: 1;
}

/* ============================================================
   CAPTION (jika ada) - Di sini tidak digunakan, tapi tetap disiapkan
   ============================================================ */
.gallery-caption {
    display: none !important;
}

/* ============================================================
   RESPONSIVE - GRID
   ============================================================ */

/* Tablet besar - 1024px */
@media (max-width: 1024px) {
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
        gap: 20px !important;
    }
    .gallery-icon img {
        height: 220px !important;
    }
}

/* Tablet kecil - 768px */
@media (max-width: 768px) {
    .portfolio-hero {
        padding: 45px 0 35px;
    }
    .portfolio-hero h1 {
        font-size: 2.2rem;
    }
    .portfolio-hero .sub-text {
        font-size: 1rem;
    }

    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
        gap: 16px !important;
    }
    .gallery-icon img {
        height: 180px !important;
    }

    .filter-group .badge {
        font-size: 0.75rem;
        padding: 4px 16px;
    }
}

/* Mobile - 480px */
@media (max-width: 480px) {
    .portfolio-hero {
        padding: 35px 0 25px;
    }
    .portfolio-hero h1 {
        font-size: 1.7rem;
    }
    .portfolio-hero .sub-text {
        font-size: 0.9rem;
        padding: 0 10px;
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        padding: 0 4px !important;
    }
    .gallery-icon img {
        height: 150px !important;
    }

    .filter-group {
        gap: 6px;
    }
    .filter-group .badge {
        font-size: 0.65rem;
        padding: 3px 12px;
    }

    .gallery-item {
        border-radius: 12px;
    }
    .gallery-item:hover {
        transform: translateY(-4px);
    }

    .portfolio-label {
        font-size: 0.65rem;
        padding: 4px 16px;
    }
}

/* Mobile sangat kecil - 360px */
@media (max-width: 360px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px !important;
    }
    .gallery-icon img {
        height: 120px !important;
    }

    .portfolio-hero h1 {
        font-size: 1.4rem;
    }
    .portfolio-hero .sub-text {
        font-size: 0.8rem;
    }
}

/* ============================================================
   LIGHTBOX (Overlay, Navigasi, Counter)
   ============================================================ */

/* Overlay latar belakang */
.lightbox-overlay {
    display: none !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(0, 0, 0, 0.92) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 999999 !important;
    padding: 40px 20px !important;
    opacity: 0 !important;
    transition: opacity 0.4s ease !important;
    cursor: zoom-out !important;
}

.lightbox-overlay.active {
    display: flex !important;
    opacity: 1 !important;
}

/* ============================================================
   KONTEN LIGHTBOX
   ============================================================ */
.lightbox-overlay .lightbox-content {
    position: relative !important;
    max-width: 92vw !important;
    max-height: 88vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
}

/* Gambar di dalam lightbox */
#lightbox-image {
    max-width: 92% !important;
    max-height: 88vh !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    border-radius: 14px !important;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6) !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    background: rgba(255, 255, 255, 0.03) !important;
    padding: 4px !important;
    transition: transform 0.3s ease !important;
}

/* ============================================================
   TOMBOL NAVIGASI (Prev / Next)
   ============================================================ */
.lightbox-nav {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
    width: 56px !important;
    height: 56px !important;
    border-radius: 50% !important;
    font-size: 28px !important;
    font-weight: 300 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 10 !important;
    user-select: none !important;
    -webkit-user-select: none !important;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.20) !important;
    transform: translateY(-50%) scale(1.08) !important;
}

.lightbox-nav.prev {
    left: 20px !important;
}

.lightbox-nav.next {
    right: 20px !important;
}

/* ============================================================
   TOMBOL CLOSE (X)
   ============================================================ */
.lightbox-close {
    position: absolute !important;
    top: 30px !important;
    right: 40px !important;
    width: 50px !important;
    height: 50px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(255, 255, 255, 0.10) !important;
    border-radius: 50% !important;
    color: #ffffff !important;
    font-size: 26px !important;
    font-weight: 300 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 10 !important;
    line-height: 1 !important;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.20) !important;
    transform: rotate(90deg) !important;
}

/* ============================================================
   COUNTER (misal: 3 / 10)
   ============================================================ */
.lightbox-counter {
    position: absolute !important;
    bottom: 30px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    color: rgba(255, 255, 255, 0.50) !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.5px !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    background: rgba(0, 0, 0, 0.40) !important;
    padding: 6px 20px !important;
    border-radius: 30px !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    pointer-events: none !important;
    user-select: none !important;
    -webkit-user-select: none !important;
}

/* ============================================================
   RESPONSIVE LIGHTBOX
   ============================================================ */

/* Tablet & Mobile besar */
@media (max-width: 768px) {
    .lightbox-nav {
        width: 44px !important;
        height: 44px !important;
        font-size: 22px !important;
    }
    .lightbox-nav.prev {
        left: 12px !important;
    }
    .lightbox-nav.next {
        right: 12px !important;
    }

    .lightbox-close {
        top: 18px !important;
        right: 18px !important;
        width: 42px !important;
        height: 42px !important;
        font-size: 20px !important;
    }

    #lightbox-image {
        max-width: 94% !important;
        max-height: 76vh !important;
    }

    .lightbox-counter {
        bottom: 18px !important;
        font-size: 0.8rem !important;
        padding: 4px 16px !important;
    }
}

/* Mobile kecil - 480px */
@media (max-width: 480px) {
    .lightbox-overlay {
        padding: 16px 8px !important;
    }

    .lightbox-nav {
        width: 36px !important;
        height: 36px !important;
        font-size: 18px !important;
    }
    .lightbox-nav.prev {
        left: 6px !important;
    }
    .lightbox-nav.next {
        right: 6px !important;
    }

    .lightbox-close {
        top: 12px !important;
        right: 12px !important;
        width: 36px !important;
        height: 36px !important;
        font-size: 18px !important;
    }

    #lightbox-image {
        max-width: 98% !important;
        max-height: 65vh !important;
    }

    .lightbox-counter {
        bottom: 12px !important;
        font-size: 0.7rem !important;
        padding: 3px 14px !important;
    }
}

/* ============================================================
   ANIMASI MASUK (Fade In Up)
   ============================================================ */
.gallery-item {
    animation: fadeInUp 0.8s ease both;
}

.gallery-item:nth-child(1)  { animation-delay: 0.05s; }
.gallery-item:nth-child(2)  { animation-delay: 0.10s; }
.gallery-item:nth-child(3)  { animation-delay: 0.15s; }
.gallery-item:nth-child(4)  { animation-delay: 0.20s; }
.gallery-item:nth-child(5)  { animation-delay: 0.25s; }
.gallery-item:nth-child(6)  { animation-delay: 0.30s; }
.gallery-item:nth-child(7)  { animation-delay: 0.35s; }
.gallery-item:nth-child(8)  { animation-delay: 0.40s; }
.gallery-item:nth-child(9)  { animation-delay: 0.45s; }
.gallery-item:nth-child(10) { animation-delay: 0.50s; }
.gallery-item:nth-child(11) { animation-delay: 0.55s; }
.gallery-item:nth-child(12) { animation-delay: 0.60s; }
.gallery-item:nth-child(13) { animation-delay: 0.65s; }
.gallery-item:nth-child(14) { animation-delay: 0.70s; }
.gallery-item:nth-child(15) { animation-delay: 0.75s; }
.gallery-item:nth-child(16) { animation-delay: 0.80s; }
.gallery-item:nth-child(17) { animation-delay: 0.85s; }
.gallery-item:nth-child(18) { animation-delay: 0.90s; }
.gallery-item:nth-child(19) { animation-delay: 0.95s; }
.gallery-item:nth-child(20) { animation-delay: 1.00s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ============================================================
   FOOTER STYLE (agar konsisten)
   ============================================================ */
footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 30px 0;
    margin-top: 20px;
    border-top: 1px solid #1e293b;
}

footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
}

footer .footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 16px;
}

footer .footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

footer .footer-links a:hover {
    color: #ffffff;
}

footer .footer-links span {
    color: #334155;
    user-select: none;
}

footer p {
    font-size: 0.85rem;
    opacity: 0.6;
    margin: 0;
}

/* ============================================================
   TAMBAHAN: Sembunyikan CSS default WordPress yang tertanam
   ============================================================ */
/* Jika ada style inline yang tersisa, kita timpa */
#gallery-1 .gallery-item {
    float: none !important;
    margin: 0 !important;
    width: 100% !important;
    text-align: left !important;
}

#gallery-1 img {
    border: none !important;
}

#gallery-1 .gallery-caption {
    display: none !important;
}
/* ========== PORTOFOLIO DESCRIPTION ========== */
.portfolio-description {
    max-width: 1100px;
    margin: 40px auto;
    padding: 20px;
    background: #f9f8f6;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.portfolio-description h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 10px 0;
    border-left: 6px solid #d4af37;
    padding-left: 18px;
}

.portfolio-description > p {
    font-size: 17px;
    line-height: 1.8;
    color: #2d2d2d;
    margin: 18px 0 12px 0;
}

.portfolio-description > p:last-of-type {
    margin-bottom: 0;
}

/* Grid dua kolom */
.porto-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin: 30px 0 20px 0;
}

.porto-card {
    flex: 1 1 45%;
    min-width: 260px;
    background: #ffffff;
    padding: 18px 22px;
    border-radius: 10px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.04);
    border-left: 4px solid #d4af37;
}

.porto-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.porto-card h3 .icon {
    font-size: 24px;
}

.porto-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 16px;
    line-height: 1.9;
    color: #2d2d2d;
}

.porto-card ul li {
    padding: 6px 0 6px 28px;
    background: url('data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2216%22 height=%2216%22 viewBox=%220 0 16 16%22%3E%3Cpath fill=%22%23d4af37%22 d=%22M8 0C3.6 0 0 3.6 0 8s3.6 8 8 8 8-3.6 8-8-3.6-8-8-8zm3.5 6.5l-4.5 4.5-2.5-2.5 1-1 1.5 1.5 3.5-3.5 1 1z%22/%3E%3C/svg%3E') left center/18px no-repeat;
}

/* Box penutup (call to action) */
.porto-cta {
    background: #ffffff;
    padding: 18px 22px;
    border-radius: 10px;
    border-left: 4px solid #d4af37;
    margin: 10px 0 0 0;
    box-shadow: 0 1px 6px rgba(0,0,0,0.04);
}

.porto-cta p {
    font-size: 17px;
    line-height: 1.8;
    color: #2d2d2d;
    margin: 0;
}

.porto-cta a {
    color: #d4af37;
    font-weight: bold;
    text-decoration: none;
    border-bottom: 2px solid #d4af37;
}

.porto-cta a:hover {
    color: #b8982e;
    border-bottom-color: #b8982e;
}

/* Responsive */
@media (max-width: 768px) {
    .porto-card {
        flex: 1 1 100%;
        min-width: unset;
    }
    .portfolio-description h2 {
        font-size: 22px;
    }
}

/* ============================================================
   BREADCRUMB STYLING
   ============================================================ */

.breadcrumb-wrap {
    background: #f8f8f8;
    border-bottom: 1px solid #e8e8e8;
    padding: 10px 0;
    margin-bottom: 20px;
}

.breadcrumb-wrap .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.breadcrumb-wrap nav {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
}

.breadcrumb-wrap nav a {
    color: #555;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-wrap nav a:hover {
    color: #d4af37; /* Warna emas sesuai tema Anda */
    text-decoration: underline;
}

.breadcrumb-wrap nav span {
    margin: 0 6px;
    color: #999;
}

.breadcrumb-wrap nav .current {
    color: #d4af37;
    font-weight: 600;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
    .breadcrumb-wrap nav {
        font-size: 13px;
    }
    
    .breadcrumb-wrap nav span {
        margin: 0 4px;
    }
}

@media (max-width: 480px) {
    .breadcrumb-wrap {
        padding: 8px 0;
    }
    
    .breadcrumb-wrap nav {
        font-size: 12px;
    }
    
    .breadcrumb-wrap nav a,
    .breadcrumb-wrap nav .current {
        display: inline-block;
        padding: 2px 0;
    }
}

/* Sembunyikan skip link secara visual, tapi tetap bisa di-fokus keyboard */
.skip-link {
    position: absolute;
    top: -9999px;
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a2e;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 0 0 8px 8px;
    font-weight: bold;
    z-index: 9999;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: top 0.2s ease;
}

/* Saat pengguna menekan tombol Tab, link akan muncul di bagian atas layar */
.skip-link:focus {
    top: 0;
    color: #ffffff;
    background: #e63946; /* Warna mencolok agar terlihat */
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}