/* ========================
   1. VARIABLES & RESET
   ======================== */
:root {
    --skin-color: #78cc6d;
    --opposite-color: #2b8bfd; 
    --bg-color: #ffffff;
    --text-color: #333333;
    --text-muted: #666666;
    --bg-modal: #ffffff;
    --btn-gray-bg: #f0f0f0;
    --btn-gray-text: #333;
    --stat-bg: #f8f9fa; 
    --stat-border: #eeeeee;
    --big-text-color: rgba(0,0,0,0.04);
}

body.dark-mode {
    --bg-color: #111111;
    --text-color: #ffffff;
    --text-muted: #aaaaaa;
    --bg-modal: #222222;
    --btn-gray-bg: #333333;
    --btn-gray-text: #fff;
    --stat-bg: #1a1a1a;
    --stat-border: #333;
    --big-text-color: rgba(255,255,255,0.05);
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Poppins', sans-serif; 
    transition: background 0.3s, color 0.3s; 
}

body { 
    background-color: var(--bg-color); 
    color: var(--text-color); 
    height: 100vh; 
    overflow: hidden; 
    position: relative; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
}

body.modal-open { 
    overflow: hidden; 
}

/* ========================
   2. HEADER & CONTENT AWAL
   ======================== */
.header-left { 
    position: fixed; 
    top: 25px; 
    left: 50px; 
    z-index: 10; 
}

.contact-text p { 
    font-size: 0.9rem; 
    color: var(--text-muted); 
    margin-bottom: 5px; 
    font-weight: 500; 
}

.social-icons { 
    margin-top: 15px; 
    display: flex; 
    gap: 15px; 
}

.social-icons a { 
    color: var(--text-color); 
}

.social-icons a:hover { 
    color: var(--skin-color); 
}

.social-icons svg { 
    width: 18px; 
}

.header-right { 
    position: fixed; 
    top: 25px; 
    right: 50px; 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    z-index: 10; 
}

#textMode { 
    font-size: 1rem; 
    font-weight: 600; 
}

/* TOGGLE SWITCH */
.toggle-switch { 
    width: 60px; 
    height: 30px; 
    background: #ccc; 
    border-radius: 30px; 
    position: relative; 
    cursor: pointer; 
}

.toggle-ball { 
    width: 22px; 
    height: 22px; 
    background: #fff; 
    border-radius: 50%; 
    position: absolute; 
    top: 4px; 
    left: 4px; 
    transition: 0.3s; 
}

body.dark-mode .toggle-switch { 
    background: var(--skin-color); 
}

body.dark-mode .toggle-ball { 
    transform: translateX(30px); 
}

/* TOMBOL KANAN BAWAH */
.right-buttons { 
    position: fixed; 
    bottom: 50px; 
    right: 50px; 
    display: flex; 
    flex-direction: column; 
    gap: 10px; 
    z-index: 20; 
    width: 200px; 
}

.btn-rect { 
    width: 100%; 
    padding: 10px 0; 
    text-align: center; 
    font-family: 'Montserrat', sans-serif; 
    font-weight: 700; 
    font-size: 0.95rem; 
    text-decoration: none; 
    cursor: pointer; 
    border: none; 
    transition: 0.3s; 
    border-radius: 0; 
}

.btn-gray { 
    background: var(--btn-gray-bg); 
    color: var(--btn-gray-text); 
    position: relative; 
    overflow: hidden; 
    z-index: 1; 
}

.btn-gray::after { 
    content: ''; 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    width: 100%; 
    height: 0%; 
    background-color: var(--skin-color); 
    transition: height 0.4s ease-out; 
    z-index: -1; 
}

.btn-gray:hover::after { 
    height: 100%; 
}

.btn-gray:hover { 
    color: #fff; 
    background: transparent; 
}

.copyright { 
    position: fixed; 
    bottom: 40px; 
    left: 50px; 
    color: var(--text-muted); 
    font-size: 0.8rem; 
    z-index: 10; 
}

/* ========================
   COLOR SWITCHER
   ======================== */
.color-switcher-wrapper { 
    position: fixed; 
    top: 30%; 
    left: 0; 
    background: var(--bg-modal); 
    z-index: 1020; 
    padding: 15px; 
    box-shadow: 2px 2px 10px rgba(0,0,0,0.1); 
    transform: translateX(-100%); 
    transition: 0.3s; 
    border-radius: 0 5px 5px 0; 
}

.color-switcher-wrapper.open { 
    transform: translateX(0); 
}

.gear-btn { 
    position: absolute; 
    top: 0; 
    right: -55px; 
    width: 55px; 
    height: 55px; 
    background: var(--bg-modal); 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    cursor: pointer; 
    box-shadow: 2px 0 5px rgba(0,0,0,0.1); 
    color: var(--text-color); 
    border-radius: 0 5px 5px 0; 
}

.spin-animation { 
    width: 30px; 
    animation: spin 4s linear infinite; 
}

@keyframes spin { 
    100% { transform: rotate(360deg); } 
}

.colors { 
    display: grid; 
    grid-template-columns: repeat(5, 1fr); 
    gap: 12px; 
    margin-top: 15px; 
}

.colors span { 
    width: 40px; 
    height: 40px; 
    border-radius: 50%; 
    cursor: pointer; 
    display: block; 
}

/* ========================
   HERO CENTER
   ======================== */
.hero-center { 
    text-align: center; 
    position: relative; 
    width: 100%; 
    z-index: 1; 
    padding-top: 60px; 
}

.bg-text { 
    position: absolute; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%); 
    font-family: 'Montserrat', sans-serif; 
    font-size: 25vw; 
    font-weight: 900; 
    color: var(--big-text-color); 
    z-index: -1; 
    pointer-events: none; 
    user-select: none; 
}

.main-title { 
    font-family: 'Montserrat', sans-serif; 
    font-size: 6rem; 
    font-weight: 900; 
    line-height: 1.1; 
    margin-bottom: 25px; 
}

.name-highlight { 
    color: var(--text-color); 
}

.typed-wrapper { 
    font-size: 2.2rem; 
    font-weight: 300; 
    color: var(--text-muted); 
    margin-bottom: 40px; 
}

.hero-desc { 
    max-width: 500px; 
    margin: 0 auto; 
    color: var(--text-muted); 
    line-height: 1.6; 
    font-size: 1.05rem; 
}

/* ========================
   3. MODAL ABOUT ME & TRANSISI
   ======================== */
.page-transition { 
    position: fixed; 
    top: 100%; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background-color: rgba(30, 30, 30, 0.9); 
    z-index: 1000; 
}

.modal-overlay { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0, 0, 0, 0.6); 
    z-index: 999; 
    display: flex; 
    align-items: flex-end; 
    justify-content: center; 
    visibility: hidden; 
    opacity: 0; 
    transition: opacity 0.3s ease; 
}

body.dark-mode .modal-overlay { 
    background: rgba(0, 0, 0, 0.85); 
}

.modal-box { 
    background: var(--bg-modal); 
    width: 100%; 
    max-width: 100%; 
    padding: 40px 5%; 
    position: relative; 
    box-shadow: 0 -10px 40px rgba(0,0,0,0.1); 
    transform: translateY(100vh); 
    margin: 0; 
}

.modal-box.show { 
    transform: translateY(0); 
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1); 
}

.close-btn { 
    position: absolute; 
    top: -60px; 
    right: 5%; 
    background: #fff; 
    border: none; 
    cursor: pointer; 
    color: #333; 
    width: 45px; 
    height: 45px; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.15); 
    transition: all 0.3s ease; 
    z-index: 10; 
    border-radius: 2px; 
}

body.dark-mode .close-btn { 
    background: #333; 
    color: #fff; 
}

.close-btn:hover { 
    transform: rotate(90deg); 
    color: var(--skin-color); 
}

.modal-content-grid { 
    display: grid; 
    grid-template-columns: 35% 60%; 
    gap: 5%; 
    align-items: flex-start; 
    max-width: 1100px; 
    margin: 0 auto; 
}

.photo-wrapper { 
    position: relative; 
    padding: 0 20px; 
    display: inline-block; 
    width: 100%; 
}

.photo-wrapper::before { 
    content: ''; 
    position: absolute; 
    left: 0; 
    top: 10%; 
    bottom: 10%; 
    width: 15px; 
    border: 3px solid var(--skin-color); 
    border-right: none; 
}

.photo-wrapper::after { 
    content: ''; 
    position: absolute; 
    right: 0; 
    top: 10%; 
    bottom: 10%; 
    width: 15px; 
    border: 3px solid var(--skin-color); 
    border-left: none; 
}

.photo-wrapper img { 
    width: 100%; 
    aspect-ratio: 4 / 5; 
    object-fit: cover; 
    display: block; 
    position: relative; 
    z-index: 1; 
}

.right-info { 
    padding-top: 5px; 
}

.modal-name { 
    font-family: 'Montserrat', sans-serif; 
    font-size: 3.2rem; 
    font-weight: 800; 
    margin-bottom: 35px; 
    line-height: 1; 
    color: var(--text-color); 
}

.info-list-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 20px 40px; 
    margin-bottom: 40px; 
}

.info-col { 
    display: flex; 
    flex-direction: column; 
    gap: 15px; 
}

.info-item { 
    display: grid; 
    grid-template-columns: 100px 1fr; 
    align-items: center; 
    font-size: 0.95rem; 
}

.info-item .label { 
    color: var(--text-muted); 
    font-weight: 400; 
}

.info-item .val { 
    color: var(--text-color); 
    font-weight: 600; 
}

.btn-download-small { 
    background: var(--skin-color); 
    color: #fff; 
    padding: 8px 25px; 
    font-size: 0.85rem; 
    font-weight: 600; 
    text-decoration: none; 
    border: none; 
    transition: 0.3s; 
    display: inline-block; 
    border-radius: 2px; 
}

.btn-download-small:hover { 
    opacity: 0.8; 
    transform: translateY(-2px); 
}

.stats-row { 
    display: flex; 
    gap: 20px; 
}

.stat-box { 
    background: var(--stat-bg); 
    flex: 1; 
    padding: 30px 25px; 
    text-align: left; 
}

.stat-num { 
    font-size: 3rem; 
    font-weight: 800; 
    color: var(--text-color); 
    font-family: 'Montserrat', sans-serif; 
    line-height: 1; 
    margin-bottom: 15px; 
}

.stat-num span { 
    font-size: 1.8rem; 
    font-weight: 600; 
}

.stat-desc { 
    display: flex; 
    align-items: flex-start; 
    gap: 15px; 
}

.dash { 
    width: 30px; 
    height: 3px; 
    background: var(--skin-color); 
    margin-top: 8px; 
    flex-shrink: 0; 
}

.stat-desc p { 
    font-size: 0.95rem; 
    color: var(--text-muted); 
    font-weight: 500; 
    line-height: 1.4; 
    margin: 0; 
}

/* =========================================
   4. EFEK HOVER PORTFOLIO BUTON
   ========================================= */
.btn-portfolio { 
    background: var(--skin-color); 
    color: #fff; 
    overflow: hidden; 
    transition: background 0.5s ease; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); 
}

.btn-portfolio:hover { 
    background: var(--opposite-color); 
    box-shadow: 0 5px 15px rgba(0,0,0,0.15); 
}

.portfolio-text-wrapper { 
    display: inline-flex; 
}

.btn-portfolio span.char { 
    position: relative; 
    display: inline-block; 
    transition: transform 0.5s cubic-bezier(0.76, 0, 0.24, 1); 
    transition-delay: calc(var(--i) * 0.03s); 
}

.btn-portfolio span.char::after { 
    content: attr(data-char); 
    position: absolute; 
    top: 250%; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    color: #fff; 
}

.btn-portfolio:hover span.char { 
    transform: translateY(-250%); 
}

/* =========================================
   5. TRANSISI 4 LAYER (TARIK KERTAS)
   ========================================= */
.trans-layer { 
    position: fixed; 
    top: 100%; 
    left: 0; 
    width: 100%; 
    height: 100vh; 
    z-index: 1005; 
    transition: top 0.6s cubic-bezier(0.85, 0, 0.15, 1); 
}

.layer-color { 
    background-color: var(--skin-color); 
}

.layer-gray { 
    background-color: #e0e0e0; 
}

body.dark-mode .layer-gray { 
    background-color: #1a1a1a; 
}

/* =========================================
   6. MODAL PORTFOLIO FULLSCREEN
   ========================================= */
.portfolio-overlay { 
    background: var(--bg-color); 
    align-items: flex-start; 
    overflow-y: auto; 
    z-index: 1004; 
}

body.dark-mode .portfolio-overlay { 
    background: var(--bg-color); 
}

.portfolio-box { 
    max-width: 100% !important; 
    min-height: 100vh; 
    padding: 120px 7% 50px 7%; 
    margin: 0; 
    box-shadow: none; 
    background: transparent; 
    transform: translateY(50px); 
}

.portfolio-box.show { 
    transform: translateY(0); 
}

.portfolio-title { 
    font-family: 'Montserrat', sans-serif; 
    font-size: 10rem; 
    font-weight: 900; 
    text-align: center; 
    color: var(--text-color); 
    margin-bottom: 5px; 
    line-height: 0.9; 
}

.portfolio-subtitle { 
    text-align: center; 
    color: var(--text-color); 
    font-weight: 500; 
    margin-bottom: 80px; 
    font-size: 1.2rem; 
}

.back-to-main-btn { 
    position: fixed; 
    top: 35px; 
    left: 35px; 
    background: transparent; 
    border: 1px solid var(--stat-border); 
    padding: 12px; 
    cursor: pointer; 
    width: 60px; 
    height: 60px; 
    z-index: 1010; 
    transition: border-color 0.3s; 
}

.back-to-main-btn:hover { 
    border-color: var(--skin-color); 
}

.square-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    grid-template-rows: repeat(3, 1fr); 
    gap: 4px; 
    width: 100%; 
    height: 100%; 
}

.square-grid span { 
    background: var(--text-color); 
    display: block; 
    position: relative; 
    overflow: hidden; 
}

.square-grid span::before { 
    content: ''; 
    position: absolute; 
    top: 0; 
    left: -100%; 
    width: 100%; 
    height: 100%; 
    background: var(--skin-color); 
    transition: left 0.3s ease; 
}

.back-to-main-btn:hover .square-grid span::before { 
    left: 0; 
}

.square-grid span:nth-child(1)::before, 
.square-grid span:nth-child(2)::before, 
.square-grid span:nth-child(3)::before { 
    transition-delay: 0s; 
}

.square-grid span:nth-child(4)::before, 
.square-grid span:nth-child(5)::before, 
.square-grid span:nth-child(6)::before { 
    transition-delay: 0.1s; 
}

.square-grid span:nth-child(7)::before, 
.square-grid span:nth-child(8)::before, 
.square-grid span:nth-child(9)::before { 
    transition-delay: 0.2s; 
}

/* =========================================
   7. GRID PORTFOLIO & MURNI 3D FOLD (NO OPACITY)
   ========================================= */
.portfolio-grid-full { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 20px; 
    max-width: 1000px; 
    margin: 0 auto; 
}

.portfolio-item { 
    position: relative; 
    cursor: pointer; 
    background: var(--stat-bg); 
    perspective: 1000px; 
    border-radius: 0; 
}

.portfolio-img { 
    width: 100%; 
    aspect-ratio: 1 / 1; 
    display: block; 
    background: var(--stat-bg); 
    overflow: hidden; 
    border-radius: 0; 
}

.portfolio-img img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    display: block; 
    transition: transform 0.6s ease; 
}

.dir-overlay { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: var(--skin-color); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    z-index: 2; 
    border-radius: 0; 
    backface-visibility: hidden; 
    -webkit-backface-visibility: hidden; 
    transform-origin: top; 
    transform: rotateX(-180deg); 
    pointer-events: none; 
}

.dir-overlay h3 { 
    font-family: 'Montserrat', sans-serif; 
    font-size: 1.2rem; 
    color: #fff; 
    margin: 0; 
    font-weight: 700; 
    text-align: center; 
    padding: 15px; 
}

.portfolio-item:hover .portfolio-img img { 
    transform: scale(1.08); 
}

/* =========================================
   8. HALAMAN DESKRIPSI PROJECT BARU
   ========================================= */
.project-detail-overlay { 
    background: var(--bg-color); 
    display: block; 
    padding-top: 0; 
    overflow-x: hidden; 
    overflow-y: auto; 
    z-index: 1004; 
}

.project-detail-box { 
    max-width: 100% !important; 
    min-height: auto; 
    padding: 120px 7% 0px 7%; 
    margin: 0; 
    box-shadow: none; 
    background: transparent; 
    transform: translateY(0) !important; 
}

/* TOMBOL NAVIGASI DIJADIKAN ABSOLUTE AGAR SCROLLABLE */
.project-detail-overlay .back-to-main-btn {
    position: absolute; 
}

.detail-nav-arrows { 
    position: absolute; 
    right: 35px; 
    top: 35px; 
    transform: translateY(0); 
    display: flex; 
    flex-direction: row; 
    gap: 10px; 
    z-index: 1010; 
}

.nav-arrow-btn { 
    background: transparent; 
    border: 2px solid var(--stat-border); 
    color: var(--text-muted); 
    width: 45px; 
    height: 45px; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    cursor: pointer; 
    transition: 0.3s; 
    border-radius: 0; 
}

.nav-arrow-btn svg { 
    width: 20px; 
    height: 20px; 
    stroke-width: 3px; 
    transition: 0.3s; 
}

.nav-arrow-btn:hover { 
    border-color: var(--skin-color); 
    color: var(--skin-color); 
}

body.dark-mode .nav-arrow-btn { 
    border-color: #333; 
}

body.dark-mode .nav-arrow-btn:hover { 
    border-color: var(--skin-color); 
}

.project-hero { 
    display: flex; 
    width: 100%; 
    height: 45vh; 
    min-height: 350px; 
    background: #e8e8e8; 
    margin-bottom: 40px; 
    position: relative; 
    overflow: hidden; 
}

body.dark-mode .project-hero { 
    background: #1a1a1a; 
}

.project-img-large { 
    flex: 6; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    padding: 40px; 
}

.project-img-large img { 
    max-width: 90%; 
    max-height: 90%; 
    object-fit: contain; 
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.15)); 
}

.project-title-box { 
    flex: 4; 
    background: var(--skin-color); 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    text-align: center; 
    padding: 40px 60px; 
    color: #fff; 
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%); 
    margin-left: -5%; 
}

.project-title-box h1 { 
    font-family: 'Montserrat', sans-serif; 
    font-size: 3.5rem; 
    font-weight: 900; 
    margin-bottom: 10px; 
    line-height: 1.1; 
}

.project-title-box p { 
    font-size: 1.2rem; 
    font-weight: 500; 
    opacity: 0.9; 
}

.project-info-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 20px 40px; 
    max-width: 1000px; 
}

.project-info-grid .info-block { 
    display: grid; 
    grid-template-columns: 130px 1fr; 
    gap: 10px; 
    font-size: 1.05rem; 
    align-items: flex-start; 
}

.project-info-grid .info-label { 
    font-weight: 600; 
    color: var(--text-color); 
}

.project-info-grid .info-val { 
    color: var(--text-muted); 
    line-height: 1.5; 
}


/* =========================================
   RESPONSIVE LAYOUT (MEDIA QUERIES) MOBILE FIX
   ========================================= */
@media (max-width: 1200px) { 
    .portfolio-title { font-size: 7rem; } 
    .project-title-box h1 { font-size: 2.5rem; }
}

@media (max-width: 900px) {
    /* --------------------------------------
       MOBILE HOMEPAGE LAYOUT
       -------------------------------------- */
    body { 
        display: block; 
        height: auto; 
        padding: 30px 20px; 
        overflow-y: auto; 
    }
    
    .header-left { 
        position: relative; 
        top: 0; left: 0; right: auto; bottom: auto; 
        text-align: left; 
        width: 100%; 
        margin-bottom: 20px; 
    }
    
    .social-icons { 
        justify-content: flex-start; 
        gap: 10px; 
    }
    
    .social-icons a { 
        display: flex; justify-content: center; align-items: center; 
        width: 35px; height: 35px; border: 1px solid var(--stat-border); border-radius: 4px; 
    }
    
    .header-right { position: absolute; top: 30px; right: 20px; }
    #textMode { display: none; }

    .hero-center { padding-top: 0px; }
    
    .bg-text { 
        font-size: 30vw; 
        top: 35%; 
    }
    
    .main-title { font-size: 3.5rem; }
    .typed-wrapper { font-size: 1.5rem; }

    .right-buttons { 
        position: relative; top: auto; left: auto; right: auto; bottom: auto; 
        width: 100%; margin-top: 40px; 
    }
    
    .btn-rect { padding: 15px 0; }
    
    .copyright { 
        position: relative; top: auto; left: auto; bottom: auto; 
        text-align: center; margin-top: 30px; 
    }

    /* --------------------------------------
       MODAL ABOUT ME MOBILE 
       -------------------------------------- */
    #modalOverlay {
        display: block; 
        padding: 170px 0% 0px 0%; 
        overflow-y: auto;
        align-items: unset;
        justify-content: unset;
    }

    .modal-box { 
        padding: 60px 8% 20px 8%; 
        margin: 0; 
        max-width: 100% !important; 
        width: 100% !important;
        max-height: none; 
        overflow-y: visible !important; 
        border-radius: 12px 12px 0 0; 
    }

    .photo-wrapper { 
        width: 160px; height: 160px; 
        margin: -140px auto 20px auto; 
        padding: 0; display: block; 
    }
    
    .photo-wrapper::before, .photo-wrapper::after { display: none; }
    
    .photo-wrapper img { 
        width: 100%; height: 100%; border-radius: 50%; 
        border: 8px solid var(--bg-modal); box-shadow: 0 5px 15px rgba(0,0,0,0.1); object-fit: cover; 
    }
    
    .close-btn { 
        top: -20px; right: 15px; width: 45px; height: 45px; 
        background: var(--bg-modal); border-radius: 50%; box-shadow: 0 5px 15px rgba(0,0,0,0.1); transition: all 0.3s ease; 
    }
    
    .close-btn:hover { 
        color: var(--skin-color); transform: rotate(90deg) scale(1.1); 
    }

    .modal-content-grid { grid-template-columns: 1fr; gap: 10px; }
    .modal-name { text-align: center; font-size: 2.8rem; margin-top: 10px; margin-bottom: 30px; }
    
    .info-list-grid { grid-template-columns: 1fr; gap: 15px; margin-bottom: 30px; }
    .info-col { gap: 15px; }
    .info-item { grid-template-columns: 120px 1fr; }
    
    .stats-row { flex-direction: column; gap: 20px; }
    .stat-box { text-align: center; padding: 40px 20px; border-radius: 8px; }
    .stat-num { display: flex; justify-content: center; align-items: center; font-size: 4rem; margin-bottom: 5px; }
    .stat-num span { font-size: 2rem; color: var(--skin-color); }
    .stat-desc { flex-direction: column; align-items: center; gap: 5px; }
    .dash { display: none; }
    .stat-desc p { text-align: center; font-size: 1.1rem; }
    
    /* --------------------------------------
       PORTFOLIO & DETAIL MOBILE
       -------------------------------------- */
    .portfolio-title { font-size: 4rem; }
    .portfolio-grid-full { grid-template-columns: repeat(3, 1fr); max-width: 800px; }
    .back-to-main-btn { top: 20px; left: 20px; width: 45px; height: 45px; padding: 10px; }
    .portfolio-subtitle { font-size: 1rem; margin-bottom: 40px; }

    .project-detail-overlay { padding-top: 80px; }
    .project-hero { flex-direction: column; height: auto; min-height: auto; margin-bottom: 30px; }
    .project-img-large { padding: 40px 20px; }
    .project-title-box { width: 100%; clip-path: none; margin-left: 0; margin-top: 0; padding: 40px 20px; }
    
    .project-info-grid { grid-template-columns: 1fr; gap: 15px; }
    .project-info-grid .info-block { grid-template-columns: 110px 1fr; font-size: 0.95rem; }
    
    .detail-nav-arrows { bottom: auto; top: 20px; right: 20px; transform: none; flex-direction: row; gap: 10px; }
    .nav-arrow-btn { width: 40px; height: 40px; }
}

@media (max-width: 500px) {
    .portfolio-grid-full { grid-template-columns: repeat(2, 1fr); }
    .portfolio-item h3 { font-size: 0.8rem; }
    .back-to-main-btn { top: 15px; left: 15px; }
    .portfolio-box { padding: 100px 5% 0px 5%; }
    .project-detail-box { padding: 10px 5% 0px 5%; } 
    .project-title-box h1 { font-size: 2.2rem; }
    
    .detail-nav-arrows { top: 15px; right: 15px; }
}