/*
Theme Name: Coivet Theme
Theme URL: https://github.com/CoivetBoy
Author: CoivetBoy
Author URL: https://github.com/CoivetBoy
Description: Custom WordPress theme built from scratch
Version: 1.0
*/

/* ===== RESET & BASE STYLES ===== */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: #333;
}

main {
    padding: 20px;
}

.container {
    max-width: 1100px;
    margin: auto;
    padding: 40px 20px;
}

/* ===== HEADER STYLES ===== */
.site-header {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    gap: 40px;
    position: relative; /* Untuk positioning tombol */
}

/* Site Title - KIRI */
.site-branding {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.site-title {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #222222;
}

.site-title a {
    color: #222222;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
    padding: 5px 0;
}

.site-title a:hover {
    color: #0073aa;
}

.site-description {
    margin: 5px 0 0;
    font-size: 14px;
    color: #666666;
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* Navigation Menu - KANAN (Desktop) */
.site-nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    max-width: 800px;
}

.primary-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: flex-end;
    width: 100%;
}

.primary-menu > li {
    position: relative;
    margin-left: 35px;
}

.primary-menu > li:first-child {
    margin-left: 0;
}

/* Menu Item Styling */
.primary-menu a {
    color: #222222 !important;
    text-decoration: none;
    font-weight: 600 !important;
    font-size: 16px;
    padding: 12px 0;
    display: inline-block;
    position: relative;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

.primary-menu a:hover {
    color: #0073aa !important;
}

.primary-menu a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: #0073aa;
    left: 0;
    bottom: 8px;
    transition: width 0.3s ease;
}

.primary-menu a:hover:after,
.primary-menu .current-menu-item > a:after {
    width: 100%;
}

/* Portofolio menu item special style */
.primary-menu .menu-item-portofolio > a {
    background: #0073aa;
    color: white !important;
    padding: 10px 25px !important;
    border-radius: 6px;
    transition: all 0.3s ease;
    margin-left: 15px;
}

.primary-menu .menu-item-portofolio > a:hover {
    background: #005a87;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 115, 170, 0.2);
}

/* ===== MOBILE MENU TOGGLE BUTTON ===== */
.menu-toggle {
    display: none; /* Sembunyi di desktop */
    background: none;
    border: 2px solid #222222;
    border-radius: 4px;
    cursor: pointer;
    padding: 8px 12px;
    font-size: 24px;
    color: #222222;
    transition: all 0.3s ease;
    z-index: 1001;
    line-height: 1;
    height: 44px;
    width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 20px;
}

.menu-toggle:hover {
    color: #0073aa;
    border-color: #0073aa;
}

.menu-toggle .hamburger-icon {
    display: block;
    transition: transform 0.3s ease;
}

.menu-toggle.active .hamburger-icon {
    transform: rotate(90deg);
}

/* ===== RESPONSIVE: MOBILE STYLES ===== */
@media (max-width: 768px) {
    .header-content {
        padding: 0 20px;
        gap: 0;
        justify-content: space-between;
        min-height: 70px;
        position: relative;
        z-index: 1001; /* Header di atas overlay */
    }
    
    /* Tombol hamburger */
    .menu-toggle {
        display: flex;
        order: 3;
        position: relative;
        top: 0;
        right: 0;
    }
    
    /* Navigation Menu - FIXED */
    .site-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        background: white;
        box-shadow: -2px 0 20px rgba(0, 0, 0, 0.15);
        padding: 80px 25px 40px;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1002;
        overflow-y: auto;
        display: block !important;
        margin: 0;
        pointer-events: auto !important;
    }
    
    /* Tampilkan menu ketika active */
    .site-nav.active {
        right: 0;
    }
    
    /* Menu items */
    .primary-menu {
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        width: 100%;
        margin: 0;
        padding: 0;
        position: relative;
        z-index: 1;
    }
    
    .primary-menu > li {
        margin: 0;
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
        pointer-events: auto;
    }
    
    .primary-menu a {
        padding: 16px 0;
        width: 100%;
        font-size: 16px;
        color: #222222 !important;
        font-weight: 600 !important;
        display: block;
        position: relative;
        z-index: 2;
        pointer-events: auto;
        cursor: pointer !important;
    }
    
    .primary-menu .menu-item-portofolio > a {
        margin: 20px 0 0 0;
        text-align: center;
        background: #0073aa;
        color: white !important;
        border-radius: 6px;
        padding: 14px 20px !important;
        border: none;
        display: inline-block;
        width: auto;
    }
    
    /* Overlay background - PERBAIKAN */
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 1000; /* Di bawah menu, di atas konten */
        pointer-events: none;
    }
    
    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto; /* Bisa diklik untuk close */
    }
    
    /* Site title */
    .site-branding {
        order: 1;
        flex: 1;
        position: relative;
        z-index: 1003; /* Di atas overlay */
    }

    .site-title {
        font-size: 22px;
        line-height: 1.2;
    }
}

/* ===== FIX CLICK ISSUE ===== */
/* Pastikan semua elemen menu bisa diklik */
.site-nav * {
    pointer-events: auto !important;
}

.primary-menu * {
    pointer-events: auto !important;
}

/* Disable pointer events hanya untuk overlay */
.menu-overlay {
    pointer-events: none;
}

.menu-overlay.active {
    pointer-events: auto;
}

/* ===== DESKTOP STYLES (> 768px) ===== */
@media (min-width: 769px) {
    /* Pastikan tombol hamburger TIDAK tampil di desktop */
    .menu-toggle {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        width: 0 !important;
        height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        overflow: hidden !important;
    }
    
    /* Pastikan menu nav tampil normal di desktop */
    .site-nav {
        display: flex !important;
        position: static !important;
        width: auto !important;
        height: auto !important;
        background: transparent !important;
        box-shadow: none !important;
        padding: 0 !important;
        transition: none !important;
    }
    
    /* Sembunyikan overlay di desktop */
    .menu-overlay {
        display: none !important;
    }
    
    /* Menu normal di desktop */
    .primary-menu {
        display: flex !important;
        flex-direction: row !important;
    }
    
    .primary-menu > li {
        border-bottom: none !important;
    }
    
    .primary-menu a {
        padding: 12px 0 !important;
        width: auto !important;
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 0 15px;
        min-height: 65px;
    }
    
    .site-title {
        font-size: 20px;
    }
    
    .site-nav {
        width: 90%;
        padding: 70px 20px 30px;
    }
    
    .menu-toggle {
        padding: 6px 10px;
        height: 40px;
        width: 40px;
        font-size: 22px;
    }
    
    .primary-menu a {
        padding: 14px 0;
    }
}

/* ===== HOME PAGE STYLES ===== */
.home-page {
    font-family: 'Segoe UI', Arial, sans-serif;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary {
    background: #0073aa;
    color: white;
}

.btn-primary:hover {
    background: #005a87;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 115, 170, 0.2);
}

.btn-secondary {
    background: transparent;
    color: #0073aa;
    border-color: #0073aa;
}

.btn-secondary:hover {
    background: #0073aa;
    color: white;
}

.btn-large {
    padding: 16px 40px;
    font-size: 18px;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.5rem;
    color: #222;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #0073aa;
}

.section-description {
    font-size: 1.1rem;
    color: #666;
    max-width: 700px;
    margin: 20px auto 0;
    line-height: 1.6;
}

/* ===== HERO SECTION ===== */
.hero-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 100px 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    color: #222;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero-tags {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tag {
    background: white;
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 500;
    color: #0073aa;
    border: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== SOLUTIONS SECTION ===== */
.solutions-section {
    padding: 80px 0;
    background: white;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.solution-item {
    text-align: center;
    padding: 30px 20px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.solution-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.solution-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.solution-title {
    font-size: 1.3rem;
    color: #222;
    margin-bottom: 10px;
}

.solution-text {
    color: #666;
    line-height: 1.5;
}

.solutions-note {
    text-align: center;
    padding: 25px;
    background: #e7f1f7;
    border-radius: 8px;
    margin-top: 40px;
    border-left: 4px solid #0073aa;
}

.solutions-note p {
    margin: 0;
    font-size: 1.1rem;
    color: #333;
}

/* ===== SERVICES SECTION ===== */
.services-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.service-title {
    font-size: 1.4rem;
    color: #222;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.service-description {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-features li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: #555;
}

.service-features li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #0073aa;
    font-weight: bold;
}

/* ===== PORTFOLIO PREVIEW ===== */
.portfolio-preview {
    padding: 80px 0;
    background: white;
}

.portfolio-examples {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.portfolio-example {
    padding: 30px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #0073aa;
}

.example-title {
    font-size: 1.3rem;
    color: #222;
    margin-bottom: 15px;
}

.example-description {
    color: #666;
    line-height: 1.6;
}

.portfolio-cta {
    text-align: center;
    margin-top: 40px;
}

/* ===== WHY CHOOSE SECTION ===== */
.why-choose-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.benefits-grid {
    max-width: 800px;
    margin: 0 auto;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.benefit-check {
    font-size: 1.5rem;
    color: #0073aa;
    flex-shrink: 0;
}

.benefit-title {
    font-size: 1.2rem;
    color: #222;
    margin-bottom: 5px;
}

.benefit-text {
    color: #666;
    line-height: 1.5;
}

/* ===== WORKFLOW SECTION ===== */
.workflow-section {
    padding: 80px 0;
    background: white;
}

.workflow-steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
    counter-reset: step-counter;
}

.workflow-step {
    flex: 1;
    min-width: 200px;
    max-width: 220px;
    text-align: center;
    padding: 30px 20px;
    background: #f8f9fa;
    border-radius: 10px;
    position: relative;
}

.step-number {
    width: 50px;
    height: 50px;
    background: #0073aa;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 20px;
}

.step-title {
    font-size: 1.2rem;
    color: #222;
    margin-bottom: 10px;
}

.step-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ===== CTA SECTION ===== */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    color: white;
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-description {
    font-size: 1.2rem;
    margin-bottom: 20px;
    opacity: 0.9;
    line-height: 1.6;
}

.cta-highlight {
    font-size: 1.4rem;
    margin: 30px 0;
}

.cta-section .btn-primary {
    background: white;
    color: #0073aa;
    font-weight: 600;
}

.cta-section .btn-primary:hover {
    background: #f8f9fa;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.cta-note {
    margin-top: 30px;
    opacity: 0.9;
}

.cta-note a {
    color: white;
    text-decoration: underline;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .workflow-steps {
        gap: 20px;
    }
    
    .workflow-step {
        min-width: 180px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 70px 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 200px;
        margin-bottom: 10px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .solutions-grid,
    .services-grid,
    .portfolio-examples {
        grid-template-columns: 1fr;
    }
    
    .benefit-item {
        flex-direction: column;
        text-align: center;
    }
    
    .workflow-steps {
        flex-direction: column;
        align-items: center;
    }
    
    .workflow-step {
        max-width: 100%;
        width: 100%;
    }
    
    .cta-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .tag {
        font-size: 0.9rem;
        padding: 6px 15px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .btn-large {
        padding: 14px 30px;
        font-size: 16px;
    }
}

/* ===== PORTOFOLIO ARCHIVE ===== */
.portofolio-archive {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.archive-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
    color: #333;
}

/* Filter Buttons */
.portofolio-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.portofolio-filter button {
    padding: 10px 20px;
    border: 2px solid #ddd;
    background: #fff;
    color: #333;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.portofolio-filter button:hover,
.portofolio-filter button.active {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

/* Portofolio Grid */
.portofolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.portofolio-item {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeIn 0.5s ease-out;
}

.portofolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.portofolio-thumbnail {
    height: 200px;
    overflow: hidden;
}

.portofolio-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portofolio-item:hover .portofolio-thumbnail img {
    transform: scale(1.05);
}

.portofolio-content {
    padding: 20px;
}

.portofolio-content .portofolio-title {
    margin: 0 0 10px 0;
    font-size: 1.3rem;
}

.portofolio-content .portofolio-title a {
    color: #333;
    text-decoration: none;
}

.portofolio-content .portofolio-title a:hover {
    color: #0073aa;
}

.portofolio-categories {
    margin-bottom: 15px;
}

.portofolio-category {
    display: inline-block;
    background: #f0f0f0;
    color: #666;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    margin-right: 5px;
    margin-bottom: 5px;
}

.portofolio-excerpt {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.portofolio-read-more {
    display: inline-block;
    background: #0073aa;
    color: #fff;
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: background 0.3s ease;
}

.portofolio-read-more:hover {
    background: #005a87;
}

/* Empty State */
.portofolio-empty,
.no-portofolio {
    text-align: center;
    grid-column: 1 / -1;
    padding: 40px;
    color: #666;
    font-size: 1.2rem;
}

/* Load More Button */
.load-more-container {
    text-align: center;
    margin-top: 40px;
}

.load-more-btn {
    padding: 12px 30px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: background 0.3s ease;
}

.load-more-btn:hover {
    background: #005a87;
}

/* Loading Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.loading {
    font-size: 1.2rem;
    color: #666;
    padding: 40px;
}

.loading:after {
    content: '';
    display: inline-block;
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: ''; }
    40% { content: '.'; }
    60% { content: '..'; }
    80%, 100% { content: '...'; }
}

/* Fade transition for grid */
.portofolio-grid {
    transition: opacity 0.3s ease;
}

.portofolio-grid.loading {
    opacity: 0.5;
}

/* ===== SINGLE PORTOFOLIO MOBILE-FRIENDLY ===== */
.single-portofolio {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
    color: #333;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Touch-friendly buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 16px;
    min-height: 48px; /* Minimum touch target size */
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.btn:hover, .btn:focus {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: #0073aa;
    color: white;
}

.btn-primary:hover {
    background: #005a87;
}

.btn-secondary {
    background: white;
    color: #0073aa;
    border-color: #0073aa;
}

.btn-secondary:hover {
    background: #0073aa;
    color: white;
}

.btn-small {
    padding: 8px 16px;
    font-size: 14px;
    min-height: 40px;
}

.btn-block {
    display: flex;
    width: 100%;
    text-align: center;
}

/* ===== HERO SECTION MOBILE ===== */
.portofolio-hero {
    position: relative;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 24px 0 32px;
    margin-bottom: 24px;
}

.portofolio-hero .hero-image {
    max-height: 400px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-bottom: 24px;
}

.portofolio-featured-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.hero-content {
    text-align: center;
}

.portofolio-title {
    font-size: 2rem;
    color: #222;
    margin-bottom: 16px;
    line-height: 1.2;
    font-weight: 700;
}

.hero-meta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    margin-top: 20px;
}

.meta-item {
    background: white;
    padding: 12px 20px;
    border-radius: 30px;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.meta-item strong {
    color: #0073aa;
}

.mobile-cta {
    margin-top: 16px;
    width: 100%;
}

.mobile-cta .btn {
    width: 100%;
    max-width: 280px;
}

/* ===== MOBILE TABS NAVIGATION ===== */
.mobile-content-tabs {
    display: none; /* Hidden on desktop */
    position: sticky;
    top: 0;
    background: white;
    z-index: 100;
    border-bottom: 1px solid #e0e0e0;
    margin: 0 -16px 24px;
    padding: 0 16px;
}

.mobile-content-tabs .tab-btn {
    flex: 1;
    padding: 16px 0;
    background: none;
    border: none;
    font-size: 15px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.mobile-content-tabs .tab-btn.active {
    color: #0073aa;
}

.mobile-content-tabs .tab-btn.active:after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 3px;
    background: #0073aa;
    border-radius: 3px 3px 0 0;
}

/* ===== CONTENT SECTION MOBILE ===== */
.portofolio-content-section {
    padding: 24px 0;
}

.content-grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Section Headers */
.section-header {
    margin-bottom: 24px;
}

.section-title {
    font-size: 1.5rem;
    color: #222;
    margin-bottom: 8px;
    position: relative;
    padding-bottom: 8px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: #0073aa;
}

.section-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Content Wrapper for better text readability */
.content-wrapper {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #444;
}

.content-wrapper p {
    margin-bottom: 1.2em;
}

.content-wrapper h2,
.content-wrapper h3 {
    margin-top: 1.8em;
    margin-bottom: 0.8em;
}

/* ===== PROJECT INSIGHTS ===== */
.project-insights {
    margin: 40px 0;
}

.insight-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.insight-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
}

.insight-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.insight-icon {
    font-size: 1.5rem;
}

.insight-card h3 {
    font-size: 1.2rem;
    color: #222;
    margin: 0;
}

.insight-content p {
    margin: 0;
    color: #555;
    line-height: 1.6;
}

/* ===== PROJECT DETAILS MOBILE ===== */
.details-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.detail-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.05);
    border-left: 4px solid #0073aa;
}

.detail-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.detail-content h4 {
    font-size: 1rem;
    color: #0073aa;
    margin: 0 0 6px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-content p,
.detail-content .project-link {
    margin: 0;
    color: #333;
    font-size: 1.1rem;
    line-height: 1.5;
}

.project-link {
    color: #0073aa;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    padding: 4px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.project-link:hover {
    border-bottom-color: #0073aa;
}

/* Tech Tags */
.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.tech-tag {
    background: #e7f1f7;
    color: #0073aa;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Category Tags */
.category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.category-tag {
    background: #f0f0f0;
    color: #666;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #ddd;
}

.category-tag:hover {
    background: #0073aa;
    color: white;
    border-color: #0073aa;
    transform: translateY(-2px);
}

/* ===== GALLERY MOBILE ===== */
.portofolio-gallery {
    margin: 40px 0;
}

.gallery-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding: 8px 0 24px;
    margin: 0 -16px;
    padding-left: 16px;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.gallery-slider::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.gallery-slide {
    flex: 0 0 calc(100% - 32px);
    scroll-snap-align: start;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.gallery-slide img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 115, 170, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-slide:hover .gallery-overlay,
.gallery-slide:focus-within .gallery-overlay {
    opacity: 1;
}

.zoom-icon {
    color: white;
    font-size: 1rem;
    font-weight: 600;
}

.gallery-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.gallery-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ddd;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s ease;
}

.gallery-indicator.active {
    background: #0073aa;
    transform: scale(1.2);
}

/* ===== SIDEBAR - HIDDEN ON MOBILE ===== */
.portofolio-sidebar {
    display: none;
}

/* ===== RELATED PROJECTS MOBILE ===== */
.related-projects {
    padding: 48px 0;
    background: #f8f9fa;
}

.related-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding: 8px 0 24px;
    margin: 0 -16px;
    padding-left: 16px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.related-slider::-webkit-scrollbar {
    display: none;
}

.related-slide {
    flex: 0 0 calc(100% - 32px);
    scroll-snap-align: start;
}

.related-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    height: 100%;
}

.related-card:hover {
    transform: translateY(-5px);
}

.related-thumbnail {
    position: relative;
    display: block;
    height: 200px;
    overflow: hidden;
}

.related-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.related-card:hover .related-thumbnail img {
    transform: scale(1.05);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 115, 170, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.related-card:hover .card-overlay {
    opacity: 1;
}

.view-btn {
    color: white;
    font-weight: 600;
    padding: 10px 20px;
    background: rgba(255,255,255,0.2);
    border-radius: 30px;
    border: 2px solid white;
}

.card-content {
    padding: 20px;
}

.card-title {
    font-size: 1.2rem;
    color: #222;
    margin-bottom: 12px;
    line-height: 1.3;
}

.card-title a {
    color: #222;
    text-decoration: none;
}

.card-title a:hover {
    color: #0073aa;
}

.card-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.card-category {
    background: #f0f0f0;
    color: #666;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #666;
    font-size: 0.9rem;
}

.meta-label {
    font-weight: 600;
}

.related-cta {
    text-align: center;
    margin-top: 32px;
}

/* ===== NAVIGATION MOBILE ===== */
.portofolio-navigation {
    padding: 32px 0;
    border-top: 1px solid #eee;
}

.nav-container {
    width: 100%;
}

.nav-row {
    display: flex;
    gap: 12px;
}

.nav-col {
    flex: 1;
    display: flex;
}

.nav-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 12px;
    border: 2px solid #f0f0f0;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    background: white;
    transition: all 0.3s ease;
    min-height: 64px;
    -webkit-tap-highlight-color: transparent;
}

.nav-btn:hover {
    border-color: #0073aa;
    background: #f8f9fa;
    transform: translateY(-2px);
}

.nav-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.nav-btn.disabled:hover {
    transform: none;
    border-color: #f0f0f0;
    background: white;
}

.nav-icon {
    font-size: 1.2rem;
    font-weight: bold;
    flex-shrink: 0;
}

.nav-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex-grow: 1;
    overflow: hidden;
}

.nav-label {
    font-size: 0.85rem;
    color: #0073aa;
    font-weight: 600;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-title {
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.3;
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-line-clamp: 2;
    -moz-line-clamp: 2;
    line-clamp: 2; /* Standard property */
    -webkit-box-orient: vertical;
    -moz-box-orient: vertical;
    box-orient: vertical;
    overflow: hidden;
}

.prev-btn .nav-content {
    align-items: flex-start;
}

.next-btn .nav-content {
    align-items: flex-end;
}

.all-btn {
    flex-direction: column;
    gap: 4px;
    max-width: 80px;
}

/* ===== DESKTOP STYLES ===== */
@media (min-width: 769px) {
    .container {
        padding: 0 24px;
    }
    
    .portofolio-hero {
        padding: 48px 0 40px;
    }
    
    .portofolio-title {
        font-size: 3rem;
    }
    
    .hero-meta {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .mobile-cta {
        display: none;
    }
    
    .mobile-content-tabs {
        display: none;
    }
    
    .content-grid {
        flex-direction: row;
        gap: 48px;
    }
    
    .main-content {
        flex: 1;
    }
    
    .portofolio-sidebar {
        display: block;
        flex: 0 0 300px;
        position: sticky;
        top: 100px;
        height: fit-content;
    }
    
    .sidebar-card {
        background: white;
        padding: 24px;
        border-radius: 12px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.05);
        margin-bottom: 24px;
    }
    
    .card-title {
        font-size: 1.2rem;
        color: #222;
        margin-bottom: 20px;
        padding-bottom: 12px;
        border-bottom: 2px solid #f0f0f0;
    }
    
    .info-grid {
        display: grid;
        gap: 16px;
    }
    
    .info-item {
        display: flex;
        justify-content: space-between;
        padding-bottom: 12px;
        border-bottom: 1px solid #f5f5f5;
    }
    
    .info-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    
    .category-pills {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .category-pill {
        background: #f0f0f0;
        color: #666;
        padding: 8px 16px;
        border-radius: 20px;
        font-size: 0.9rem;
        text-decoration: none;
        transition: all 0.3s ease;
    }
    
    .category-pill:hover {
        background: #0073aa;
        color: white;
    }
    
    .cta-card {
        background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
        color: white;
        text-align: center;
    }
    
    .cta-card .card-title {
        color: white;
        border-bottom-color: rgba(255,255,255,0.2);
    }
    
    .cta-icon {
        font-size: 2.5rem;
        margin-bottom: 12px;
    }
    
    .cta-text {
        opacity: 0.9;
        margin-bottom: 20px;
        line-height: 1.5;
    }
    
    .gallery-slider {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
        overflow: visible;
        padding: 0;
        margin: 0;
    }
    
    .gallery-slide {
        flex: none;
    }
    
    .gallery-indicators {
        display: none;
    }
    
    .related-slider {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
        gap: 30px;
        overflow: visible;
        padding: 0;
        margin: 0;
    }
    
    .related-slide {
        flex: none;
    }
    
    .nav-row {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        gap: 24px;
    }
    
    .nav-btn {
        padding: 20px;
    }
    
    .all-btn {
        max-width: none;
        width: auto;
        min-width: 150px;
    }
}

/* ===== TABLET STYLES ===== */
@media (min-width: 481px) and (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .portofolio-title {
        font-size: 2.5rem;
    }
    
    .mobile-content-tabs {
        display: flex;
    }
    
    .gallery-slide {
        flex: 0 0 calc(50% - 20px);
    }
    
    .related-slide {
        flex: 0 0 calc(50% - 20px);
    }
    
    .nav-row {
        flex-wrap: wrap;
    }
    
    .nav-all {
        order: -1;
        flex: 0 0 100%;
        margin-bottom: 12px;
    }
    
    .all-btn {
        max-width: none;
    }
}

/* ===== SMALL MOBILE OPTIMIZATIONS ===== */
@media (max-width: 360px) {
    .container {
        padding: 0 12px;
    }
    
    .portofolio-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 15px;
        min-height: 44px;
    }
    
    .meta-item {
        padding: 10px 16px;
        font-size: 0.95rem;
    }
    
    .detail-card {
        padding: 16px;
    }
    
    .nav-btn {
        padding: 12px 8px;
    }
    
    .nav-title {
        font-size: 0.9rem;
    }
}

/* ===== TOUCH OPTIMIZATIONS ===== */
@media (hover: none) and (pointer: coarse) {
    .gallery-overlay {
        opacity: 0.7;
    }
    
    .card-overlay {
        opacity: 0.7;
    }
    
    .category-tag:hover,
    .category-pill:hover,
    .project-link:hover {
        transform: none;
    }
    
    .nav-btn:hover {
        transform: none;
    }
    
    .related-card:hover {
        transform: none;
    }
    
    .btn:hover {
        transform: none;
    }

    /* Gallery Styles */
.portofolio-gallery {
    margin: 30px 0;
}

.gallery-main {
    margin-bottom: 20px;
}

.main-image {
    background: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
}

.main-image img {
    width: 100%;
    height: auto;
    display: block;
}

.gallery-thumbnails {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border: 2px solid transparent;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.thumbnail:hover,
.thumbnail.active {
    opacity: 1;
    border-color: #0073aa;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive */
@media (max-width: 768px) {
    .thumbnail {
        width: 60px;
        height: 60px;
    }
}
}